I have NXP NTag213 NFC tags that I need to scan on my particle mesh boards to get the UID and NDEF data from the tag to replace Android phones currently reading the tags (https://schooltag.org). I recently discovered this won’t be possible using the native NFC capabilities in the mesh products (Xenon, Argon, Boron).
I purchased a Mifare RC522 Card Reader and I was able to read the NFC tag using the MFRC522 (v 0.1.4) available as a searchable library in the Web IDE and Particle Workbench. I had to use different Pin mapping than is documented in the library which is for the Spark Core. I’ve created a Pull Request to the library with the changes used.
- MOSI: MO
- MISO: MI
- SCK : SCK
- SS : Pin A2 (Configurable)
- RST : Pin D2 (Configurable)
I’m posting this here in case anyone else needs it, to separate from the long original discussion of getting the MFRC522 library to work and to encourage any feedback about how the solution may be improved since I am not an embedded programmer.
Thanks to all who contributed to the the library and original discussion.