Can't read Type1 Tags
I'm unable to read data (NDEF message previously stored) from two Type1 tags... Below is the output from tagtool.py utility. What am I doing wrong?
~/nfcpy/examples $ sudo python tagtool.py --device 'tty:AMA0:pn53x' -d nfc.tag
[main] enable debug output for module 'nfc.tag'
[nfc.clf] searching for reader with path 'tty:AMA0:pn53x'
[nfc.clf] using NXP PN532 at /dev/ttyAMA0
[main] touch a tag
[nfc.tag.tt1] read all
[nfc.tag.tt1] capability container e1113f00
[nfc.tag.tt1] dynamic lock byte tlv at 0xC
[nfc.tag.tt1] memory control tlv at 0x11
[nfc.tag.tt1] ndef message tlv at 0x16
[nfc.tag.tt1] while reading ndef: ValueError('invalid tlv lenght value',)
Type1Tag UID=07467600
~/nfcpy/examples $ sudo python tagtool.py --device 'tty:AMA0:pn53x' -d nfc.tag
[main] enable debug output for module 'nfc.tag'
[nfc.clf] searching for reader with path 'tty:AMA0:pn53x'
[nfc.clf] using NXP PN532 at /dev/ttyAMA0
[main] touch a tag
[nfc.tag.tt1] read all
[nfc.tag.tt1] capability container e1103f00
[nfc.tag.tt1] dynamic lock byte tlv at 0xC
[nfc.tag.tt1] memory control tlv at 0x11
[nfc.tag.tt1] ndef message tlv at 0x16
[nfc.tag.tt1] ndef message length is 86
[nfc.tag.tt1] read block at address 0x078
[nfc.tag.tt1] while reading ndef: TimeoutError(
Type1Tag UID=c7507600
A brand new tag without data doesn't report any error:
~/nfcpy/examples $ sudo python tagtool.py --device 'tty:AMA0:pn53x' -d nfc.tag
[main] enable debug output for module 'nfc.tag'
[nfc.clf] searching for reader with path 'tty:AMA0:pn53x'
[nfc.clf] using NXP PN532 at /dev/ttyAMA0
[main] touch a tag
[nfc.tag.tt1] read all
[nfc.tag.tt1] capability container e1103f00
[nfc.tag.tt1] dynamic lock byte tlv at 0xC
[nfc.tag.tt1] memory control tlv at 0x11
[nfc.tag.tt1] ndef message tlv at 0x16
[nfc.tag.tt1] ndef message length is 0
Type1Tag UID=27417600
NDEF capabilities:
version = 1.0
readable = yes
writeable = yes
capacity = 462 byte
message = 0 byte
Please help!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stephen Tiedemann
- Solved:
- Last query:
- Last reply: