Added support for reading serial numbers and manf IDs of MiFare UL tags

This commit is contained in:
2009-02-01 19:56:19 +00:00
parent 874ef3591e
commit 8732e8ff8b
3 changed files with 40 additions and 4 deletions

12
test.py
View File

@@ -14,11 +14,15 @@ print r.firmware_version()
m = tikitag.TikiTag(r)
print m.get_uid()
print m.get_tag_url()
#d = m.read_tag()
#d = m.read_block(0x6)
#print "%s bytes" % len(d)
#print toHexString(d)
#print toASCIIString(d)
print m.write_block(0xf, [0xde, 0xad, 0xbe, 0xee])
#print m.write_block(0xf, [0xde, 0xad, 0xbe, 0xee])
print toHexString(m.read_block(0xf))
#print toHexString(m.read_block(0xf))
print m.get_manf_ascii()
print m.get_serial()