Ubuntu安装Libnfc 1.70[官方最新的]这样?

2019-03-26 13:33发布

这个是错误提示

root@t-VirtualBox:~/libnfc-1.7.0# nfc-list
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: "microBuilder.eu", connstring: "pn532_uart:/dev/ttyUSB0"
nfc-list uses libnfc 1.7.0
debug        libnfc.driver.pn532_uart        Attempt to open: /dev/ttyUSB0 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: 55 55 00 00 00 00
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 02 f8 d4 52
error        libnfc.chip.pn53x        Unexpected PN53x reply!
debug        libnfc.general        Unable to open "pn532_uart:/dev/ttyUSB0".
nfc-list: ERROR: Unable to open NFC device: pn532_uart:/dev/ttyUSB0

用的是Breakout Board,PN532 Adafruit的.奇怪啊.
此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
10条回答
dlfuture
2019-03-27 04:24
dlfuture 发表于 2014-3-3 16:09
/etc/nfc/devices.d/pn532_via_uart2usb.conf

Here is a small howto for ubuntu 12.04 TLS using the git version. I hope it may be helpful to someone, I was strugling all day...$ sudo apt-get install autoconf automake libtool
$ sudo apt-get install libusb-0.1-4 libusb-dev libpcsclite1 libpcsclite-dev libccid pcscd
$ sudo apt-get install git
$ git clone https://code.google.com/p/libnfc/
$ cd libnfc
$ mkdir /etc/nfc
$ mkdir /etc/nfc/devices.d/
$ sudo nano /etc/nfc/devices.d/pn532_via_uart2usb.conf
paste the following 5 lines into the pn532_via_uart2usb.conf:## Typical configuration file for PN532 board (ie. microbuilder.eu / Adafruit) device
name = "Adafruit PN532 board via UART"
connstring = pn532_uart:/dev/ttyUSB0
allow_intrusive_scan = true
log_level = 3
$ sudo autoreconf -vis
$ ./configure --prefix=/usr --with-drivers=pn532_uart --sysconfdir=/etc
$ sudo make clean
$ sudo make
$ sudo make install all
plugin your ftdi usb$ cd examples
$ sudo ./nfc-poll


一周热门 更多>