0

Adafruit PN532 NFC/RFID: How to read NFC and RFID
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit PN532 NFC/RFID: How to read NFC and RFID

by A_E_M on Mon Sep 16, 2019 8:06 am

Hi,

I have a device which are both communicating using NFC and broadcasting using RFID.

NFC
Standard: ISO / IEC 14443 A+B
NFC Type: Type 2
NFC Data Exchange Format: NDEF

RFID
Standard: ISO / IEC 18000-63 (gen 2)
Band: EPC Gen2 (860 to 960 MHz)

I have found this board:
Adafruit PN532 NFC/RFID
https://www.adafruit.com/product/789

And the library:
https://github.com/adafruit/Adafruit-PN532/

Can anyhelp with me with the simplest form of NFC read record and RFID read tag?

Thanks.

A_E_M
 
Posts: 4
Joined: Mon Sep 16, 2019 7:59 am

Re: Adafruit PN532 NFC/RFID: How to read NFC and RFID

by oesterle on Tue Sep 17, 2019 1:40 am

Hi, A_E_M!

Welcome to the Forums!

Check out the primary product guide for the Adafruit PN532 RFID/NFC Breakout and Shield. It has instructions to get you started quickly reading the IDs of tags, in either Arduino or CircuitPython.

If you're using Arduino, once you've installed Adafruit's PN532 library, in the Arduino IDE navigate to:
File > Examples > Adafruit_PN532 > readMifare

There's also a Python & CircuitPython section that will guide you through wiring and coding your PN532 for boards that support CircuitPython, and for Raspberry Pi.

You can use the PN532 to store information on some tags and read it back later, like the ones in the 13.56MHz RFID/NFC tag assortment - Classic 1K.

There are more NFC/RFID project ideas and tutorials in the Adafruit Learning System.

What are you making?


Cheers,

Eric

oesterle
 
Posts: 656
Joined: Tue Sep 17, 2013 11:32 pm

Re: Adafruit PN532 NFC/RFID: How to read NFC and RFID

by A_E_M on Tue Sep 17, 2019 2:00 am

Thanks a lot for your input.

I'm making a reader that can read tags that I have not programmed. They contain information in both NFC and RFID.
I have found a NFC reader app on my phone, and it can read 3 "records" from the tags. I would like to read those records using the Adafruit board. Is that possible, or can it only read the IDs?
Based on the examples, I cannot see how RFID works?

Thanks for your time!

A_E_M
 
Posts: 4
Joined: Mon Sep 16, 2019 7:59 am

Re: Adafruit PN532 NFC/RFID: How to read NFC and RFID

by oesterle on Tue Sep 17, 2019 3:58 pm

Radio-frequency identification (RFID) technologies work at various frequencies, protocols, power levels, and distances. Near Field Communication (NFC), as I understand it, is a kind of RFID, and is a specific set of communication protocols designed to work at very close distances (4cm/1.5in or less).

NFC Data Exchange Format (NDEF) standardizes ways of encoding small amounts of data, like URIs, phone numbers, etc, as “records.”

The Adafruit PN532 primary product guide discusses those record formats in the section, About the NDEF Format.

The adafruit/Adafruit-PN532 library includes examples for reading and writing NDEF records.

Running the examples with my PN532 board and tags helped me understand the capabilities, and I was able to use and modify example code for prototypes I built.

You also mention wanting to support:
Standard: ISO / IEC 18000-63 (gen 2)
Band: EPC Gen2 (860 to 960 MHz)

You'll need a different board to read and write EPCglobal Gen 2 tags. (The PN532 board does not support this.)

oesterle
 
Posts: 656
Joined: Tue Sep 17, 2013 11:32 pm

Re: Adafruit PN532 NFC/RFID: How to read NFC and RFID

by A_E_M on Thu Sep 19, 2019 4:37 am

Thanks for your input.

When I use an app for my phone (called NFC Tools), I can read the tag and the app displays the following information:
* Tag type: ISO 14443-3A, NXP MIFARE Ultralight
* Technologies: NfcA, Ndef
* Data format: NFC Forum Type 2
* And then it has 3 "records" with the actual data.

I believe that since my mobile can read this tag, then the Adafruit PN532 can do that as well?

Also, I'm not use I understand how to instruct the library to scan a RFID tag instead of a NFC tag?

A_E_M
 
Posts: 4
Joined: Mon Sep 16, 2019 7:59 am

Re: Adafruit PN532 NFC/RFID: How to read NFC and RFID

by A_E_M on Thu Sep 19, 2019 7:02 am

BTW: Thanks for the link to the explanation of NDEF
https://learn.adafruit.com/adafruit-pn532-rfid-nfc/ndef

That is what I want. That explains very well the concept of NDEF records.
But I do not see an example in the library that can read a NDEF record? The readMifare example seems not to read NDEF records?

Thanks.

A_E_M
 
Posts: 4
Joined: Mon Sep 16, 2019 7:59 am

Please be positive and constructive with your questions and comments.