美文网首页
nfc-list 配置&解决No NFC device

nfc-list 配置&解决No NFC device

作者: 胤默思佚 | 来源:发表于2016-09-05 08:57 被阅读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设备。

    相关文章

      网友评论

          本文标题:nfc-list 配置&解决No NFC device

          本文链接:https://www.haomeiwen.com/subject/spkrettx.html