[riot-users] NFC support on RIOT

Christian Mehlis christian at m3hlis.de
Sat Oct 4 20:09:04 CEST 2014


Am 04.10.2014 um 19:52 schrieb Francesco Ermini:
> For the NFC I'll use two Adafruit shields  PN532,they are going to arrive
> next week.The boards which run RIOT are two UDOO quad. The professors told
> me that the first purpose is to let comunicate the two board,each one with
> his NFC connected. Thanks for the advice about SPI,if it works with
> RFID,then it works with the NFC who as the same ISO standard. Do you think
> is easier to port the arduino drivers then writing the module? can you
> suggest me a link for the documentation on it? Thanks for support, when
> I'll start coding I'll sure pull a request on GitHub!

the product page seems to be a pretty good starting point: 
http://www.adafruit.com/product/789

The sheets:

	NXP PN532 Datasheet
	NXP PN532 User Manual

are there.

But there is also a message saying:

########################################################################
Please note that there is a minor issue with the current version of the 
boards (v1.0). SEL0 and SEL1 are reversed on the silkscreen, so SEL0 is 
actually SEL1 and vice versa. This only affects users who wish to use 
UART or SPI to communicate with the PN532 instead of the default I2C, 
which is the communication bus supported by Adafruit's PN532/NFC library 
for Arduino. This will be update on the next version of the boards.
########################################################################

And the software they provide 
(https://github.com/adafruit/Adafruit_NFCShield_I2C) is only 
implementing support via I2C.

In case you want to use I2C in RIOT the infrastructure (interfaces) is 
missing.
Have a look at 
https://github.com/RIOT-OS/RIOT/tree/master/drivers/include/periph

So you (or anyone who has a good idea) can propose a generalized I2C 
interface design for RIOT. We did the same for SPI/GPIO/timers/....

So far no one needed I2C, but I think @hauke is somehow working with I2C 
hardware.

Best
Christian


More information about the users mailing list