nfc-list 配置&解决No NFC device

2016-09-05  本文已影响1556人  胤默思佚
$nfc-list
  nfc-list uses libnfc 1.7.1
  No NFC device found.

sudo mkdir /etc/nfc && sudo mkdir /etc/nfc/devices.d/
sudo vim /etc/nfc/devices.d/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

参考网址
http://www.brokeragesdaytrading.com/article/8395128793/how-to-configure-libnfc-on-linux-for-pn532-breakout-board-uart-ftdi-/

新方法

在kali2016.1中发现只需对libnfc进行简单的配置即可解决问题
编辑/etc/nfc/libnfc.conf

# Allow device auto-detection (default: true)
# Note: if this auto-detection is disabled, user has to set manually a device
#因篇幅问题 中间部分配置省略
# Note: if autoscan is enabled, default device will be the first device available in device list.
#device.name = "microBuilder.eu"
#device.connstring = "pn532_uart:/dev/ttyUSB0"

去掉最后两行的注释即可,如下。

# Allow device auto-detection (default: true)
# Note: if this auto-detection is disabled, user has to set manually a device
#因篇幅问题 中间部分配置省略
# Note: if autoscan is enabled, default device will be the first device available in device list.
device.name = "microBuilder.eu"
device.connstring = "pn532_uart:/dev/ttyUSB0"

配置用于指明所用设备为/dev/ttyUSB0,即libnfc绑定tty设备。

上一篇下一篇

猜你喜欢

热点阅读