AnsweredAssumed Answered

Peer to Peer communication between 2 PN532 not working

Question asked by patrick visser on Feb 20, 2017
Latest reply on Mar 3, 2017 by Jorge_Gonzalez

I am trying to preform peer to peer communication between 2 PN532. 

I am able to read tags with the devices that I have.


I have tried multiple examples that say that they work but i am unable to get the 2 to detect each other.

 

When i look at the flowchart of the UM0701-02 (PN532 User Manual) paragraph  7.5.6 Peer to Peer example with two PN532 (active mode) 

 

The PN532 INITIATOR send a ack to the InJumpForDEP command, but does not give any response after that.

The PN532 Target send a ack to the TgInitAsTarget command , but does not give any response after that.\

The 2 PN532 are placed approximately 1 cm above each other.

 

 

the output and serial log of the INITIATOR:

P2P Initiator Demo BY ELECHOSUE!
-> 00 00 FF 02 FE D4 02 2A 00
<- 00 00 FF 00 FF 00
<- 00 00 FF 06 FA D5 03 32 01 06 07 E8
Found chip PN532
Firmware ver. 1.6
SAMConfiguration
-> 00 00 FF 05 FB D4 14 01 14 00 03 00
IRQ received
<- 00 00 FF 00 FF 00
<- 00 00 FF 02 FE D5 15 16
-> 00 00 FF 02 FE D4 04 28 00

<- 00 00 FF 00 FF 00
<- 00 00 FF 06 FA D5 05 00 00 00 80 A6
00 00 FF 06 FA D5 05 00 00 00 80 A6 00 00 00 00 00 00 00 00 00
InJumpForDEP

-> 00 00 FF 0A F6 D4 56 01 01 01 00 FF FF 00 00 D5 00
<- 00 00 FF 00 FF 00
InJumpForDEP sent ******

 

the output and serial log of the target:

P2P Target Demo From Elechouse!
-> 00 00 FF 02 FE D4 02 2A 00
<- 00 00 FF 00 FF 00
<- 00 00 FF 06 FA D5 03 32 01 06 07 E8
Found chip PN532
Firmware ver. 1.6
SAMConfiguration
-> 00 00 FF 05 FB D4 14 01 14 00 03 00
<- 00 00 FF 00 FF 00
<- 00 00 FF 02 FE D5 15 16

TgInitAsTarget
-> 00 00 FF 27 D9 D4 8C 00 04 00 12 34 56 40 01 FE A2 A3 A4 A5 A6 A7 C0 C1 C2 C3 C4 C5 C6 C7 FF FF AA 99 88 77 66 55 44 33 22 11 00 00 25 00
<- 00 00 FF 00 FF 00
Target init sent.

 

After this the devices do not send any more over the serial link.

 

Can you give me any idea what is going wrong?

Outcomes