1 (edited by lewisloofis 2016-07-02 08:47:14)

Topic: Unexpected PN53x Reply

Hi guys,

I'm planning a new project using NFC and Raspberry Pi 3 for my holiday, so I buy PN532 v3 Mini NFC/RFID Module. The bad thing is this device has so little tutorial with Raspberry Pi. After trying to install it all day, I'm frustated with the same error that I get. It is written like this everytime I do sudo nfc-list or nfc-scan-device:

error    libnfc.chip.pn53x    Unexpected PN53x reply!

Here is my log_level = 3 when I run sudo nfc-scan-device -i -v:

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: [log_level], value: [1]
debug    libnfc.config    key: [allow_intrusive_scan], value: [true]
debug    libnfc.config    Unable to open directory: /etc/nfc/devices.d
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 true
debug    libnfc.general    1 device(s) defined by user
debug    libnfc.general      #0 name: "PN532 board via UART", connstring: "pn532_uart:/dev/ttyAMA0"
nfc-scan-device uses libnfc 1.7.1
debug    libnfc.driver.arygon    Trying to find ARYGON device on serial port: /dev/ttyAMA0 at 9600 baud.
debug    libnfc.bus.uart    Serial port speed requested to be set to 9600 baud.
debug    libnfc.bus.uart    TX: 30 61 72 
debug    libnfc.bus.uart    Timeout!
debug    libnfc.driver.arygon    No reply to 'reset TAMA' command.
debug    libnfc.driver.arygon    Trying to find ARYGON device on serial port: /dev/ttyS0 at 9600 baud.
debug    libnfc.general    0 device(s) found using arygon driver
debug    libnfc.general    0 device(s) found using pn532_i2c driver
debug    libnfc.general    0 device(s) found using pn532_spi driver
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyAMA0 at 115200 baud.
debug    libnfc.bus.uart    Serial port speed requested to be set to 115200 baud.
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: 00 ff 00 ff 00 e0 
error    libnfc.chip.pn53x    Unexpected PN53x reply!
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS0 at 115200 baud.
debug    libnfc.general    0 device(s) found using pn532_uart driver
debug    libnfc.driver.acr122s    Trying to find ACR122S device on serial port: /dev/ttyAMA0 at 9600 baud.
debug    libnfc.bus.uart    Serial port speed requested to be set to 9600 baud.
debug    libnfc.driver.acr122s    Trying to find ACR122S device on serial port: /dev/ttyS0 at 9600 baud.
debug    libnfc.general    0 device(s) found using ACR122S driver
debug    libnfc.general    0 device(s) found using acr122_usb driver
debug    libnfc.general    0 device(s) found using pn53x_usb driver
1 NFC device(s) found:
debug    libnfc.driver.pn532_uart    Attempt to open: /dev/ttyAMA0 at 115200 baud.
debug    libnfc.bus.uart    Serial port speed requested to be set to 115200 baud.
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: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 02 fe 
debug    libnfc.bus.uart    RX: d5 15 
debug    libnfc.bus.uart    RX: 16 00 
debug    libnfc.bus.uart    TX: 00 00 ff 09 f7 d4 00 00 6c 69 62 6e 66 63 be 00 
debug    libnfc.bus.uart    RX: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 09 f7 
debug    libnfc.bus.uart    RX: d5 01 
debug    libnfc.bus.uart    RX: 00 6c 69 62 6e 66 63 
debug    libnfc.bus.uart    RX: bc 00 
debug    libnfc.chip.pn53x    GetFirmwareVersion
debug    libnfc.bus.uart    TX: 00 00 ff 02 fe d4 02 2a 00 
debug    libnfc.bus.uart    RX: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 06 fa 
debug    libnfc.bus.uart    RX: d5 03 
debug    libnfc.bus.uart    RX: 32 01 06 07 
debug    libnfc.bus.uart    RX: e8 00 
debug    libnfc.chip.pn53x    SetParameters
debug    libnfc.bus.uart    TX: 00 00 ff 03 fd d4 12 14 06 00 
debug    libnfc.bus.uart    RX: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 02 fe 
debug    libnfc.bus.uart    RX: d5 13 
debug    libnfc.bus.uart    RX: 18 00 
debug    libnfc.general    "PN532 board via UART" (pn532_uart:/dev/ttyAMA0) has been claimed.
- PN532 board via UART:
    pn532_uart:/dev/ttyAMA0
chip: PN532 v1.6
initator mode modulations: ISO/IEC 14443A (424 kbps, 212 kbps, 106 kbps), FeliCa (424 kbps, 212 kbps), ISO/IEC 14443-4B (106 kbps), ISO/IEC 14443-4B' (106 kbps), ISO/IEC 14443-2B ST SRx (106 kbps), ISO/IEC 14443-2B ASK CTx (106 kbps), Innovision Jewel (106 kbps), D.E.P. (424 kbps, 212 kbps, 106 kbps)
target mode modulations: ISO/IEC 14443A (424 kbps, 212 kbps, 106 kbps), FeliCa (424 kbps, 212 kbps), D.E.P. (424 kbps, 212 kbps, 106 kbps)
debug    libnfc.chip.pn53x    ReadRegister
debug    libnfc.bus.uart    TX: 00 00 ff 0c f4 d4 06 63 02 63 03 63 0d 63 38 63 3d b0 00 
debug    libnfc.bus.uart    RX: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 07 f9 
debug    libnfc.bus.uart    RX: d5 07 
debug    libnfc.bus.uart    RX: 00 00 00 00 00 
debug    libnfc.bus.uart    RX: 24 00 
debug    libnfc.chip.pn53x    PN53X_REG_CIU_TxMode (Defines the transmission data rate and framing during transmission)
debug    libnfc.chip.pn53x    PN53X_REG_CIU_RxMode (Defines the transmission data rate and framing during receiving)
debug    libnfc.chip.pn53x    WriteRegister
debug    libnfc.bus.uart    TX: 00 00 ff 08 f8 d4 08 63 02 80 63 03 80 59 00 
debug    libnfc.bus.uart    RX: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 02 fe 
debug    libnfc.bus.uart    RX: d5 09 
debug    libnfc.bus.uart    RX: 22 00 
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 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 03 fd 
debug    libnfc.bus.uart    RX: d5 53 
debug    libnfc.bus.uart    RX: 00 
debug    libnfc.bus.uart    RX: d8 00 
debug    libnfc.chip.pn53x    RFConfiguration
debug    libnfc.bus.uart    TX: 00 00 ff 04 fc d4 32 01 00 f9 00 
debug    libnfc.bus.uart    RX: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 02 fe 
debug    libnfc.bus.uart    RX: d5 33 
debug    libnfc.bus.uart    RX: f8 00 
debug    libnfc.chip.pn53x    PowerDown
debug    libnfc.bus.uart    TX: 00 00 ff 03 fd d4 16 f0 26 00 
debug    libnfc.bus.uart    RX: 00 00 ff 00 ff 00 
debug    libnfc.chip.pn53x    PN53x ACKed
debug    libnfc.bus.uart    RX: 00 00 ff 03 fd 
debug    libnfc.bus.uart    RX: d5 17 
debug    libnfc.bus.uart    RX: 00 
debug    libnfc.bus.uart    RX: 14 00

And I also have errors whenever I run libnfc example like nfc-poll:

/home/pi/libnfc/libnfc-master/examples/.libs/lt-nfc-poll uses libnfc 1.7.1
error    libnfc.chip.pn53x    Unexpected PN53x reply!
error    libnfc.driver.pn532_uart    pn53x_check_communication error
lt-nfc-poll: ERROR: Unable to open NFC device.

Anyone can help why I have this error?