nfc-list 配置&解決No NFC device found.

  • 問題
$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

參考網(wǎng)址
http://www.brokeragesdaytrading.com/article/8395128793/how-to-configure-libnfc-on-linux-for-pn532-breakout-board-uart-ftdi-/

新方法

在kali2016.1中發(fā)現(xiàn)只需對(duì)libnfc進(jìn)行簡單的配置即可解決問題
編輯/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"

配置用于指明所用設(shè)備為/dev/ttyUSB0,即libnfc綁定tty設(shè)備。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容