Author Topic: Data transaction with NXP PN532 NFC reader  (Read 3394 times)

0 Members and 1 Guest are viewing this topic.

Offline VanitarNordicTopic starter

  • Frequent Contributor
  • **
  • Posts: 277
  • Country: 00
Data transaction with NXP PN532 NFC reader
« on: December 13, 2013, 02:40:59 am »
Hello,

Has anybody worked with the PN532 NFC R/W? I' trying to send a command and receive a response at least but the chip does not send back anything. I'm using the UART connection.  Everything is OK. Baudrate is 115200, hardware is OK, Voltages are OK, transmission is OK (Checked by DSO) but no response  :(

I have connected the demo board containing the PN532 to the PC through USB to serial FTDI.

I send a command like this for example to get the chip firmware version for example: 00 00 FF 02 FE D4 02 2A 00 (all in Hex).
« Last Edit: December 13, 2013, 08:43:23 am by VanitarNordic »
 

Offline Maxlor

  • Frequent Contributor
  • **
  • Posts: 565
  • Country: ch
Re: Data transaction with NXP PN532 NFC reader
« Reply #1 on: December 13, 2013, 02:52:54 am »
I have used that chip for a project a while back. I also found setting it up to be slightly frustrating, because at th beginning, it would simply not respond at all. The datasheet is long and not too accessible unfortunately, which means, read it 3 times and pay attention to all the details.

The most time consuming issues I encountered, if I remember correctly, where getting the framing right (you need to put the commands you send into checksummed frames... and this is mentioned in a whole different section of the documentation), and getting the timing right (if you poll the chip too often, it'll hang.) Never fully understood what's required for a reliable reset sequence either. At some point I hit a timing that seemed to work for resets and decided to just not touch that part anymore :)

I was using I2C at the time though, not the serial port. I have some Arduino code somewhere that communicates with the PN532. If you feel that it might be useful to you, I'll see whether i can dig it up.
 

Offline VanitarNordicTopic starter

  • Frequent Contributor
  • **
  • Posts: 277
  • Country: 00
Re: Data transaction with NXP PN532 NFC reader
« Reply #2 on: December 13, 2013, 08:49:15 am »
I have used that chip for a project a while back. I also found setting it up to be slightly frustrating, because at th beginning, it would simply not respond at all. The datasheet is long and not too accessible unfortunately, which means, read it 3 times and pay attention to all the details.

The most time consuming issues I encountered, if I remember correctly, where getting the framing right (you need to put the commands you send into checksummed frames... and this is mentioned in a whole different section of the documentation), and getting the timing right (if you poll the chip too often, it'll hang.) Never fully understood what's required for a reliable reset sequence either. At some point I hit a timing that seemed to work for resets and decided to just not touch that part anymore :)

I was using I2C at the time though, not the serial port. I have some Arduino code somewhere that communicates with the PN532. If you feel that it might be useful to you, I'll see whether i can dig it up.

I don't know really. in my point of view datasheet is frustrating also. The frames are correct. no problem  :(

Apart from that, is there any other good chip to work with?
« Last Edit: December 13, 2013, 09:24:13 am by VanitarNordic »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf