miguelbalboa / rfid

Arduino RFID Library for MFRC522
The Unlicense
2.75k stars 1.43k forks source link

No NDEF format support #463

Closed hutje closed 5 years ago

hutje commented 5 years ago

Step 1: Describe your environment

Step 2: Describe the problem

The library doesn't support NDEF format. This is a normal format for writing to a NFC tag

Observed Results:

reading auth error when dumpinfo

Expected Results:

I expect to be able to read the dump info. Maybe even decode the NDEF.

Rotzbua commented 5 years ago

NDEF is not supported and not planned for the future.

The https://github.com/miguelbalboa/rfid/wiki mention a extension https://github.com/Gargantuanman/MFR522_NDEF .

The data on a tag is always protected by a key. The dumpinfo uses fff..f as key. Maybe there is a different key used by the NDEF specification.

hutje commented 5 years ago

I have made it work with https://github.com/BoolLi/RC522_RFID_NFC_Utilities and this library. I have made an extra function that gives back every byte that is on the card. So you can get the value and write it to a byte array and then convert to a String. I have no experience with GitHub and how to merge...