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? -
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.
-
Hi,
I have the same problem with you. Have you solved this problem?
-
@mia1913 @pcraven @mia1913 Did you try @Paul-Thornton suggestions?
-
@rskoniec On further investigation im not sure what I posted will help this issue. Looking into this still.
-
@rskoniec Yes, I tried it, but it did not work. The type of NFC tage I use is Ntag213.
-
This post is deleted! -
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login