微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > 射频无线通信设计 > Ubuntu安装Libnfc 1.70这样?

Ubuntu安装Libnfc 1.70这样?

时间:10-02 整理:3721RD 点击:
这个是错误提示

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的.奇怪啊.

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


需要建 /etc/nfc/devices.d/pn532_via_uart2usb.conf 这个文件
摘至 libnfc 的开发论坛 ,具体链接没有记下来

/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

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

支持一个支持一个支持一个

好东西!!

谢谢楼主分享

比如nfc-list nfc-poll如何注册到ubuntn? 现在只能在/example 目录运行这几个例子。

你好,你现在还再弄没nfc,请教一下相关问题,我的问题和你的类似

楼主,怎样显示debug的调试信息

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top