no response from pn53x, writing tag with example tooltag.py

Asked by sio2

Hi,

i can read tags with tagtool.py dump, but when i try to write on the tags with ie:
echo 3434 | ./tagtool.py load

I get:
Traceback (most recent call last):
  File "./tagtool.py", line 298, in <module>
    main()
  File "./tagtool.py", line 236, in main
    load_tag(clf)
  File "./tagtool.py", line 188, in load_tag
    tag.ndef.message = data
  File "/home/sio2/tecroom/rfid/nfcpy/nfc/tt2.py", line 138, in message
    offset += 1
  File "/home/sio2/tecroom/rfid/nfcpy/nfc/tt2.py", line 204, in __exit__
    self.write(i, self._mmap[i/4][(i*4)%16:(i*4)%16+4])
  File "/home/sio2/tecroom/rfid/nfcpy/nfc/tt2.py", line 246, in write
    return self.dev.tt2_exchange("\xA2" + chr(block) + str(data))
  File "/home/sio2/tecroom/rfid/nfcpy/nfc/dev/pn53x.py", line 478, in tt2_exchange
    rsp = self.dev.in_data_exchange(0x01, cmd, timeout=100)
  File "/home/sio2/tecroom/rfid/nfcpy/nfc/dev/pn53x.py", line 241, in in_data_exchange
    rsp = self.command(0x40, chr(tg) + data_out, timeout)
  File "/home/sio2/tecroom/rfid/nfcpy/nfc/dev/acr122_usb.py", line 49, in command
    raise pn53x.NoResponse("no response from pn53x")
nfc.dev.pn53x.NoResponse: no response from pn53x

Im using:
tqg: mifare ultralight
reader: ACR122
os: ubuntu 11.10

Thanks.

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:
Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#1

I've tried the same command with an RC-S360 reader on a Mifare Ultralight, that works. I'll check with an ACR122U on Monday. Meanwhile, could you please run the tagtool script with debug output enabled, that's the -d flag, and post the tag memory dump here.

Revision history for this message
sio2 (miguel-mail) said :
#2

i´m thinknig that may be is because the tags i´m using
(not the reader, is the acs one) are from touchatag, can be only write 4bytes.

tag memory dump:
0000: 04 98 7c 68 91 21 25 80 15 48 ff 7f e1 10 06 00 ..|h.!%..H......
0010: 03 1d d1 01 19 55 01 74 74 61 67 2e 62 65 2f 6d .....U.ttag.be/m
0020: 2f 30 34 39 38 37 43 39 31 32 31 32 35 38 30 03 /04987C91212580.
0030: e0 14 5c d9 c2 97 fb cd 8a b9 95 00 31 31 31 31 ..\.........1111

thanks.

Revision history for this message
Best Stephen Tiedemann (stephen-tiedemann) said :
#3

Your tag is physically locked against writing although the NDEF capability container states unrestricted read and write access. This is a format error. Anyhow, the tag is unusable for any other content.

Revision history for this message
sio2 (miguel-mail) said :
#4

Thanks Stephen Tiedemann, that solved my question.