我刚刚编译了libnfc的最新版本,但是它(nfc poll&nfc list)找不到我的读者。
有人有这个问题,知道怎么解决吗?
旧版本:

nfc_list.exe use libnfc 1.3.9
Connected to NFC reader: ACS ACR122 0 / ACR122U210 - PN532 v1.6 (0x07)
1 ISO14443A passive target(s) was found:
    ATQA (SENS_RES): 00  02
       UID (NFCID1): 91  e8  1c  57
      SAK (SEL_RES): 18

新版本:
nfc-list.exe uses libnfc 1.7.1
debug   libnfc.general  0 device(s) found using arygon driver
debug   libnfc.general  0 device(s) found using pn532_uart driver
debug   libnfc.general  0 device(s) found using ACR122S driver
debug   libnfc.general  0 device(s) found using acr122_usb driver
debug   libnfc.general  0 device(s) found using pn53x_usb driver
No NFC device found.

最佳答案

结果是,当它连接到usb端口时,需要用LIBNFC_DRIVER_ACR122_PCSC而不是LIBNFC_DRIVER_ACR122_USB标记编译它。
这为我解决了问题。

nfc-list.exe uses libnfc 1.7.1
NFC device: ACS ACR122 0 / ACR122U210 opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  02
       UID (NFCID1): 91  e8  1c  57
      SAK (SEL_RES): 18

08-04 09:47