PN352_UART Timeout on rPI4
ImDevinC opened this issue · 1 comments
ImDevinC commented
I'm trying to use a PN532 board on raspberry PI, but getting this error when I try to do nfc-scan-devices
. I followed this for initial setup: https://blog.digitaloctave.com/posts/hardware/nfc-module-v3-raspberry-pi.html. While written for rpi3, the instructions seem valid for rpi4 as well. I also made sure my /boot/firmware/config.txt
has enable_uart = 1
. Any insight is appreciated
nfc-scan-device
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/ttyS0"
nfc-scan-device uses libnfc libnfc-1.8.0-74-g0bfcd9c
1 NFC device(s) found:
debug libnfc.driver.pn532_uart Attempt to open: /dev/ttyS0 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 Timeout!
debug libnfc.driver.pn532_uart Unable to read ACK
error libnfc.driver.pn532_uart pn53x_check_communication 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 Timeout!
debug libnfc.driver.pn532_uart Unable to read ACK
debug libnfc.general Unable to open "pn532_uart:/dev/ttyS0".
nfc_open failed for pn532_uart:/dev/ttyS0
ImDevinC commented
This was on me. The wiring diagram on that page is not very clear. I used this diagram to understand how to connect things properly and now it works properly. https://pinout.xyz/pinout/uart