can't read/write a tag type 2 with acr122

Asked by olk

I have a nfc reader/writer acr122 and i tried the HelloWorld example. For some tags i can write and read the ndef message. In one case i take the message: No ndef tag. What is going wrong with these tags?
Can I make them ndef tags?
Is there any other way to read and write these tags?

If i try :
import nfc

def connected(tag):print tag

clf=nfc.ContactlessFrontend('usb')
clf.connect(rdwr={'on-connect':connected})

i get this:
Type2Tag ATQ=4400 SAK=00 UID=04742902772f84
<nfc.tag.tt2.Type2Tag object at 0x971518c>

Thanks in advance!

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

Most likely you are using Mifare Classic tags. They are not supported by
nfcpy.

Revision history for this message
olk (olgak) said :
#2

No, I am using Mifare Ultralight. I read the tag with Android Nfc reader successfully (this gave me feedback about the type of the tag: MifareUltralight, NdefFormatable). And only when i write with a TagWriter i was able to read/write with nfcpy. It seems that the tags need initialization or sth ??!

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

Yes, they need to be NDEF formatted. Otherwise there's nothing to show other than the tag identity. The NXP tool is the right tool to use, they certainly know about their different chip types to create the correct format.

Revision history for this message
olk (olgak) said :
#4

Thanks Stephen Tiedemann, that solved my question.