Попытка записать запись ndef в тег Desfire EV1 не работает.Я полагаю, что это потому, что тег не отформатирован, однако, когда я пытаюсь сделать это (с tagtool.py), я получаю ошибку.
Я использую Adafruit PN532, подключенный к Raspberry Pi 3B + через мини-UART (S0 вместо AMA0, так как мне нужен Bluetooth для чего-то другого).
python tagtool.py --device tty:S0 format
No handlers could be found for logger "nfc.llcp.sec"
[nfc.clf] searching for reader on path tty:S0
[nfc.clf] using PN532v1.6 at /dev/ttyS0
** waiting for a tag **
[nfc.tag.tt4] no ndef capability file
[nfc.tag.tt4] format error: no ndef or not writeable
Sorry, I could not format this tag.
python tagtool.py --device tty:S0 -v
No handlers could be found for logger "nfc.llcp.sec"
[nfc.clf] searching for reader on path tty:S0
[nfc.clf] using PN532v1.6 at /dev/ttyS0
** waiting for a tag **
Type4ATag MIU=63 FWT=0.077329
[nfc.tag.tt4] no ndef capability file
Memory Dump:
[nfc.tag.tt4] no ndef capability file
Python 2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nfc
No handlers could be found for logger "nfc.llcp.sec"
>>> clf = nfc.ContactlessFrontend('tty:S0')
>>> tag = clf.connect(rdwr={'on-connect': lambda tag: False})
>>> print(tag)
Type4ATag MIU=63 FWT=0.077329
>>> print(tag.ndef)
None