最新版本的libnfc无法找到读者

时间:2014-03-28 20:04:36

标签: c compilation nfc

我刚编译了最新版本的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.

1 个答案:

答案 0 :(得分:1)

事实证明,虽然它连接到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