Grove NFC - Peer to Peer using UART

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Post Reply
steven928
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Apr 18, 2019 5:15 am

Grove NFC - Peer to Peer using UART

Post by steven928 » Mon Jul 08, 2019 1:41 pm

Dear support team,

I have successfully used your Grove NFC ver 1.1 to read and write to tags. However I couldn't find anything for using it for P2P. When I try to use the write function used for writing to tags but passing the message size it says that the function does not exist.

Is there any documentation available?

Thank you,

bill.yu
Junior-7
Junior-7
Posts: 732
Joined: Mon Apr 02, 2018 11:05 am

Re: Grove NFC - Peer to Peer using UART

Post by bill.yu » Wed Jul 10, 2019 10:55 am

Hi there~

Please check below link and see if it works. thanks.

https://github.com/Seeed-Studio/Grove-N ... er-to-peer

steven928
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Apr 18, 2019 5:15 am

Re: Grove NFC - Peer to Peer using UART

Post by steven928 » Thu Jul 18, 2019 7:48 pm

Thank you.
I tried using the libraries and the examples to do a P2P communication but it seems like all examples require the following libraries:

#include "SPI.h"
#include "PN532_SPI.h"
#include "llcp.h"
#include "snep.h"

PN532_SPI pn532spi(SPI, 10);
SNEP nfc(pn532spi);

However the NFC is connected using UART and there is no P2P example using UART or HSU.
Can you please provide an example Peer to Peer using PN532_HSU library?

Also in the examples it does mention that:

P2P requires SPI and has only been tested with the Seeed Studio shield. Peer to Peer was tested between Arduino and Android or BlackBerry

Thank you

steven928
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Apr 18, 2019 5:15 am

Re: Grove NFC - Peer to Peer using UART

Post by steven928 » Mon Jul 22, 2019 4:46 pm

Dear Support team,

Is there any way to get Peer to Peer Communication to work using HSU and UART with the PN532_HSU library?

Thank you!

Post Reply