PN532 NFC/RFID reading multiple tags

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

PN532 NFC/RFID reading multiple tags

Postby paulofloresjunior » Fri Dec 07, 2012 1:28 pm

Hi,

I have one PN532 NFC/RFID and I need to read multiple tags to know how many objects are near to PN532.
In reading program example (from Arduino SDK) I can reading 2 tags in same time, but I want to read all tags, how can I do that?

Thanks in advanced,
Paulo
paulofloresjunior
 
Posts: 2
Joined: Fri Dec 07, 2012 12:52 pm

Re: PN532 NFC/RFID reading multiple tags

Postby ktownsend » Wed Dec 12, 2012 11:47 am

You can only physically read max two cards. The spec and HW is defined tha way.
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am

Re: PN532 NFC/RFID reading multiple tags

Postby paulofloresjunior » Thu Dec 13, 2012 7:48 am

ktownsend wrote:You can only physically read max two cards. The spec and HW is defined tha way.


Do you know another hardware that can do that?

Thanks,
Paulo
paulofloresjunior
 
Posts: 2
Joined: Fri Dec 07, 2012 12:52 pm

Re: PN532 NFC/RFID reading multiple tags

Postby ktownsend » Fri Dec 14, 2012 8:46 am

It's not a HW problem in terms of the chip, it's a limitation of the NFC and appropriate ISO standards. Being able to read two cards at once is already an added feature ... I don't see how you can read a stack of cards, so no ... I don't know anything that can do that.
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am

Re: PN532 NFC/RFID reading multiple tags

Postby GordieGii » Fri Feb 01, 2013 10:45 pm

This card seems to be able to handle up to 15 at a time (http://www.dlpdesign.com/dlp-rfid2-ds-v10.pdf) so I don't see how it could be a limitation of the protocol...

So is it a limitation of the chip or the library?

Gordie.
Logic is the art of going wrong with confidence. -- Morris Kline
User avatar
GordieGii
 
Posts: 6
Joined: Fri Jan 04, 2013 7:26 pm
Location: Toronto, Canada

Re: PN532 NFC/RFID reading multiple tags

Postby dennisma » Fri Feb 01, 2013 11:58 pm

There is no RFID limitation in the spec that I have ever heard of. On the contrary there are readers that can read tens/hundred RFID tags simultaneously.

Here is a post from the RFID Journal that briefly discusses this http://www.rfidjournal.com/article/view/7853. It states:

One way to understand this is to think of a teacher trying to take attendance in a room containing a lot of students, but with no list of the children's names. The instructor might announce, "If your last name begins with the letter A, stand up." If five children stand up, he or she might say, "If your last name starts with AA, remain standing. If not, sit down." That might leave one child to communicate with. Then the teacher can say, "If your last name starts with AB, please stand up." And so on.

RFID systems have a variety of different means of doing this as rapidly as possible. But essentially, they all come down to the same processes of polling the tags, and narrowing down the requests until the reader can communicate with one tag at a time. It happens very quickly, so it appears you are reading 50 or so tags at the same time, when, in fact, the reader is communicating with only one tag in any given interval.
...
I have seen the firm read 100 tags on documents stacked one on top of another. I have also witnessed NXP Semiconductors interrogate tags on 90 drug vials without a problem.
User avatar
dennisma
 
Posts: 22
Joined: Fri Feb 01, 2013 4:39 pm

Re: PN532 NFC/RFID reading multiple tags

Postby GordieGii » Sat Feb 02, 2013 4:31 pm

OK. I'm new here. How does one get a decisive answer from Adafruit re this subject.
Does the chip / board(s) / library support 'simultaneously' reading from more than two tags?

Gordie.
Logic is the art of going wrong with confidence. -- Morris Kline
User avatar
GordieGii
 
Posts: 6
Joined: Fri Jan 04, 2013 7:26 pm
Location: Toronto, Canada

Re: PN532 NFC/RFID reading multiple tags

Postby adafruit_support_bill » Sun Feb 03, 2013 6:20 am

How does one get a decisive answer from Adafruit re this subject.
Does the chip / board(s) / library support 'simultaneously' reading from more than two tags?

Ktownsend is the designer of the board. His answer was at the top of the thread:
You can only physically read max two cards. The spec and HW is defined tha way.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: PN532 NFC/RFID reading multiple tags

Postby GordieGii » Mon Feb 04, 2013 12:38 am

Oops! Didn't realize. Please accept my apologies.

Then ktownsend is the right person to ask.

So as I understand it, the limitation must be that the chip is designed for phones, not inventory readers, and therefore has only implemented resources enough to keep track of two tags at a time (but can chat with other phones). Hacking the library isn't going to help. So if I want to be able to read more than 2 tags at a time, then, unless there is a more (or differently) capable chip that could be subbed onto this shield I will have to get something else. (...like the DLP-RFID2)

Does that sound accurate?

BTW: Is the library for this card open source? I wouldn't want to write an interface from scratch if I could modify an existing one. (...by which I mean "I wouldn't want to get my son to write an interface from scratch if I could get him to modify an existing one." I'm more of a hardware guy.)

Gordie.
Logic is the art of going wrong with confidence. -- Morris Kline
User avatar
GordieGii
 
Posts: 6
Joined: Fri Jan 04, 2013 7:26 pm
Location: Toronto, Canada

Re: PN532 NFC/RFID reading multiple tags

Postby adafruit_support_bill » Mon Feb 04, 2013 6:51 am

I'll let Kevin answer your questions about the chip.
But to answer your last question: Yes, all our libraries are open source : https://github.com/adafruit/Adafruit_NFCShield_I2C
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: PN532 NFC/RFID reading multiple tags

Postby ktownsend » Mon Feb 04, 2013 7:14 am

As stated, you can only ever read two tags at most with this chip. It's a fixed in stone HW limit that no amount of firmware hacking will get around.

RFID is a very big field and there are many solutions for many problems (different protocols, different frequencies, etc.) ... NFC is intended for very short range communication, not something like inventory control where other RFID frequencies and standards are a much better match.

Based on your description, this probably isn't the chip that you want or need.

Kevin
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am

Re: PN532 NFC/RFID reading multiple tags

Postby ktownsend » Mon Feb 04, 2013 7:18 am

dennisma wrote:There is no RFID limitation in the spec that I have ever heard of. On the contrary there are readers that can read tens/hundred RFID tags simultaneously.

The discussion was specifically for the PN532 shield and NFC, which does have a very specific fixed 2-tag limit.

Talking about generic RFID isn't particularly useful ... the possibilities are all over the map. But NFC is a very specific segment of the (very wide) RFID landscape, with very specific limitations and possibilities.
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: Google [Bot] and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]