PN532 P2P

373 views
Skip to first unread message

Scott Penrose

unread,
Jul 2, 2014, 9:05:11 PM7/2/14
to connected-commu...@googlegroups.com
Good morning

I have a few DF Robot NFC Modules hanging around and have been trying to get NFC P2P between two board.

So far I have played mostly with the Seed-Studio PN532 library - https://github.com/Seeed-Studio/PN532 - as it has support for HSU (High Speed UART) where most of the libraries seem to use SPI or I2C, and the boards I have use HSU.

Long story short. I have them working fine reading tags. Seems all the tag examples work. I don't have an Android device with NFC so I can't test that yet.

Finally I want to do P2P which I think involves switching one into Active Mode and one into Passive mode - but I am having trouble working out how to do that. The library above doesn't have it, while the other libraries use I2C.

Anyone got any code (or interest) that would help in this space - or some advice on how I should change it?

BTW. Reason for this is to have an external serial interface for debugging sealed equipment.

Ta

Scott

tubular

unread,
Jul 2, 2014, 9:27:46 PM7/2/14
to connected-commu...@googlegroups.com
Matt who worked on the NFC door access system would be good to talk with.  

Also the NFC enabled eeproms might be of interest as the interface point.  Essentially an 8 pin eeprom with dual I2C and NFC access.   Part number escapes me at the moment as I'm one foot out the door but think it was an ST or NXP product.  

Stuart Young

unread,
Jul 2, 2014, 9:33:18 PM7/2/14
to CCHS

Hi Scott,

From memory the Arduino lib doesn't support that, or it didn't when we built the NFC system. It may do now however.

There was a few Ras Pi libs that did support it, so might be worth looking at those (to test your hardware and/or implement stuff in combo with an Arduino on one end). May also find libs for BeagleBone that do the same as well.

--
Cefiar - aka Stuart Young

--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to connected-community-h...@googlegroups.com.
To post to this group, send email to connected-commu...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/connected-community-hackerspace/4BACC20D-A694-40EA-A2D2-D37115995510%40dd.com.au.
For more options, visit https://groups.google.com/d/optout.

Scott Penrose

unread,
Jul 2, 2014, 10:03:03 PM7/2/14
to connected-commu...@googlegroups.com
OK Good idea. I could use the standard arduino lib on the arduino and nfclib on the Raspberry Pi - I think it even works on the same boards I have using a FTDI cable. Would still love to get two arduino talking though. Some libraries have done the work others not, so looks like I will need to do the hard work to make the working ones into Serial.

Scott

Kevin Barker

unread,
Jul 3, 2014, 12:03:11 AM7/3/14
to connected-commu...@googlegroups.com
The PN532 supports the following modes...
  • ISO/IEC 14443A/MIFARE Reader/Writer.
  • FeliCa Reader/Writer.
  • ISO/IEC 14443B Reader/Writer
  • ISO/IEC 14443A/MIFARE Card 1 KB or MIFARE 4 KB emulation
  • FeliCa Card emulation
  • ISO/IEC 18092, ECMA 340 NFCIP-1 Peer-to-Peer
Here are some helpful links...
To my knowledge there is no 'serial interface' but I think you're just referring to peer-to-peer. Look up 'target' and 'initiator'.

Luke Weston

unread,
Jul 3, 2014, 12:25:55 AM7/3/14
to connected-commu...@googlegroups.com
If your goal is to transmit information through a sealed piece of plastic I can think of easier ways to do it - either RF or even optical, if it's transparent. Maybe IrDA transceiver optics?

Cheers,
  Luke

Mathew McBride

unread,
Jul 3, 2014, 1:58:45 AM7/3/14
to connected-commu...@googlegroups.com
Hi Scott,
I'd have a look at how libnfc (http://nfc-tools.org/index.php?title=Libnfc) does it - it is what we use for the door system, and is a fairly complete implementation of all the PN532 features.

IIRC the PN532 command set is similar across all the interface types, there is an application note floating around (I think it may be linked from the adafruit website) that explains the differences - so you might be able to work out what the I2C based libraries are doing and apply it to the serial interface.

Hope this helps,
Matt 
Reply all
Reply to author
Forward
0 new messages