Pi & PN532 Board

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
klomp
 
Posts: 4
Joined: Mon Oct 21, 2013 1:08 am

Pi & PN532 Board

Post by klomp »

I have followed all the instructions in setting up my Pi with this board. However, I keep getting the following error "Unexpected PN53x reply!". Any Ideas as to why?

pi@raspberrypi:~/libnfc/libnfc-1.7.0/examples$ sudo LIBNFC_LOG_LEVEL=3 nfc-poll
nfc-poll uses libnfc 1.7.0
info libnfc.config Unable to open file: /etc/nfc/libnfc.conf
debug libnfc.config key: [device.name], value: [PN532 board via UART]
debug libnfc.config key: [device.connstring], value: [pn532_uart:/dev/ttyAMA0]
debug libnfc.config key: [device.allow_intrusive_scan], value: [true]
info libnfc.config Unknown key in config line: device.allow_intrusive_scan = true
debug libnfc.general log_level is set to 3
debug libnfc.general allow_autoscan is set to true
debug libnfc.general allow_intrusive_scan is set to false
debug libnfc.general 1 device(s) defined by user
debug libnfc.general #0 name: "PN532 board via UART", connstring: "pn532_uart:/dev/ttyAMA0"
debug libnfc.driver.pn532_uart Attempt to open: /dev/ttyAMA0 at 115200 bauds.
debug libnfc.bus.uart Serial port speed requested to be set to 115200 bauds.
debug libnfc.chip.pn53x Diagnose
debug libnfc.chip.pn53x Timeout value: 500
debug libnfc.bus.uart TX: 55 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00
debug libnfc.chip.pn53x SAMConfiguration
debug libnfc.chip.pn53x Timeout value: 1000
debug libnfc.bus.uart TX: 00 00 ff 03 fd d4 14 01 17 00
debug libnfc.bus.uart RX: 51 d0 f0 00 00 01
error libnfc.chip.pn53x Unexpected PN53x reply!
pn53x_check_communication: Input / Output Error
debug libnfc.chip.pn53x InRelease
debug libnfc.bus.uart TX: 00 00 ff 03 fd d4 52 00 da 00
debug libnfc.bus.uart RX: 00 00 00 01 00 01
error libnfc.chip.pn53x Unexpected PN53x reply!
debug libnfc.general Unable to open "pn532_uart:/dev/ttyAMA0".
nfc-poll: ERROR: Unable to open NFC device.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Pi & PN532 Board

Post by adafruit_support_mike »

I vaguely remember an inconsistency between the PN532 and libnfc-1.7, but don't know if that's still in effect. Let me pass this over to our NFC expert.

klomp
 
Posts: 4
Joined: Mon Oct 21, 2013 1:08 am

Re: Pi & PN532 Board

Post by klomp »

Thanks look forward to your response.

klomp
 
Posts: 4
Joined: Mon Oct 21, 2013 1:08 am

Re: Pi & PN532 Board

Post by klomp »

I fixed some of the wiring so that rx/tx on the ftdi are correct. Now I see more communications. However, when I use the pn532-diagnose I only get an error on the samconfiguration command. The inrelease reconfiguration and power down commands get a pn53x acked response.

The return data from the samconfiguration command is: 00 00 ff 02 fe d5 which the libnfc does not seem to understand. I wonder if the pn532 is returning some sort of error code.

klomp
 
Posts: 4
Joined: Mon Oct 21, 2013 1:08 am

Re: Pi & PN532 Board

Post by klomp »

Problem solved. Issue was that my raspdebian was version 6. Did the upgrade to weezy and things started working.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”