nfc p2p communication arduino to arduino

2019-05-21 01:12发布

问题:

for my master thesis I am currently working in a project that should exchange data between two arduino uno by means of a NFC communication p2p using SPI interface.

The shield is a NFC pn532 based, from Elechouse (NFC MODULE V3). Actually it could be the adafruit breakout board but the important thing is the pn532.

I am using this library https://github.com/don/NDEF and it works with arduino to android and android to arduino. According to the creator, It should work also for my purpose.

There's something that initiates the connection between Android and Arduino that is not happening between 2 Arduinos. Unfortunately I think it's something low level in SNEP or LLCP. All that's happening in the PN532 driver.

So here is the point: no one had achieved that, but I don´t think is something huge. I need to know what is missing between two arduino that is happening between arduino and android. The datasheet of PN532/C1 rev. 3.2 should help.

Anyone can help me in that?

回答1:

Phones have to perform some sort of card emulation to be able to be detected by a reader, as they are not tags. Same story with arduino shields, they are not tags either. I've checked the adafruit shield and it doesn't do card emulation because it requires an external Secure Element from NXP. So I'm not sure about your shield but you should check the documentation.

Another risk might be that your project only worked with NXP technology. Android phones with Broadcom NFC chips might not be compatible with your shield/library if it only reads Mifare cards (which are NXP propietary).