Why “No NFC device found” with libnfc and PN532 SHIELD

此生再无相见时 提交于 2020-06-27 13:07:13

问题


I installed the libnfc on my ArchLinux and i would use it through my Adafruit PN532 arduino SHIELD.

nfc-list returns me the message "No NFC device found".

I have the following file in /etc/nfc/devices.d/pn532.conf that gives me

nfc-list uses libnfc 1.7.1 error libnfc.driver.pn532_uart pn53x_check_communication error error libnfc.chip.pn53x Unexpected PN53x reply! nfc-list: ERROR: Unable to open NFC device: pn532_uart:/dev/ttyACM0

Any idea about how to fix that ? TY


回答1:


First of all verify your Rx/Tx connections.

And then Configure LIBNFC with following command :

1) ./configure --with-drivers=pn532_uart --sysconfdir=/etc --prefix=/usr --enable-serial-autoprobe

2) make clean all

3) sudo make install all

And Finally 4) LIBNFC_LOG_LEVEL=3

Now Try 5) nfc-list

If Still problem persists try this tutorial from nfc-tool

Source/Reference




回答2:


For me it worked to swap the RX <-> TX



来源:https://stackoverflow.com/questions/39109147/why-no-nfc-device-found-with-libnfc-and-pn532-shield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!