NFC Reading
-
I've got a Pyscan and a NTAG203 NFC tag. I can read and write to the NFC tag just fine with my phone. I try to read from the NFC tag, and instead of getting the 7 byte UID of the tag, I get 4 bytes, only 3 of which are correct. The other byte is 0x00.
The example at:
https://github.com/pycom/pycom-libraries/blob/master/pyscan/nfc.py
...wants some authentication with
mfrc630_MF_auth
, which I can't get to work and don't understand. My understanding is I should be able to read blocks from the tag, but I can't do that without some authentication? There's not much in the way of examples out there. Anyone have luck with NFC?
-
This post is deleted!
-
This post is deleted!
-
@rskoniec Yes, I tried it, but it did not work. The type of NFC tage I use is Ntag213.
-
@rskoniec On further investigation im not sure what I posted will help this issue. Looking into this still.
-
@mia1913 @pcraven @mia1913 Did you try @Paul-Thornton suggestions?
-
Hi,
I have the same problem with you. Have you solved this problem?
-
When writing to the NFC tag you can specify an Encryption key for the reader/writer to use. by default on the MiFaire cards its just [ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF ], (if the feature is even enabled).
To turn it on based on that demo you'd want to put the correct key on line 17 and change line 18 to True.
Most of the NFC apps on phones just leave it off by default so I Imagine your having another issue but its worth checking.