Compatibility with linux_libnfc-nci?
NXP is pushing new NCI based chips, and refer to https://github.com/NXPNFCLinux/linux_libnfc-nci. Is it possible to use "libnfc" (and/or libfreefare) on top of this project? Or is it so that the only thing shared between these projects is the "libnfc" substring...?
I have now found out about the pn71xx driver. Perhaps it should be mentioned on http://nfc-tools.org/index.php/Devices_compatibility_matrix ? It works "sort of": If I place a tag near the reader and run nfc-list:
nfc-list nfc-list uses libnfc 1.8.0 2021:05:06-09:55:02.600 NfcHcpX:8103 2021:05:06-09:55:02.609 NfcHcpR:8180 2021:05:06-09:55:02.610 NfcHcpX:810103020304 2021:05:06-09:55:02.620 NfcHcpR:8180 2021:05:06-09:55:02.620 NfcHcpX:810101a27403009c740300 2021:05:06-09:55:02.637 NfcHcpR:8180 2021:05:06-09:55:02.792 NfcHcpX:810204 2021:05:06-09:55:02.806 NfcHcpR:818000 NFC device: pb_rfid opened 1 ISO14443A passive target(s) found: ISO/IEC 14443A (106 kbps) target: ATQA (SENS_RES): 00 00 UID (NFCID1): 66 64 42 cf SAK (SEL_RES): 08
NFC device: pn71xx-device opened
However, nfc-pool apparently does not work:
nfc-poll nfc-poll uses libnfc 1.8.0 NFC reader: pb_rfid opened NFC device will poll during 36000 ms (20 pollings of 300 ms for 6 modulations) No target found.
I had this in libnfc.conf:
device.name = "myrfid" device.connstring = pn71xx:/dev/i2c-1
Apparently bad, since nfc-scan-device listed two devices. After removing the above lines, nfc-poll sort of works:
nfc-poll nfc-poll uses libnfc 1.8.0 2021:05:06-10:10:05.643 NfcHcpX:8103 2021:05:06-10:10:05.653 NfcHcpR:8180 2021:05:06-10:10:05.653 NfcHcpX:810103020304 2021:05:06-10:10:05.663 NfcHcpR:8180 2021:05:06-10:10:05.664 NfcHcpX:81010163d504005dd50400 2021:05:06-10:10:05.681 NfcHcpR:8180 2021:05:06-10:10:05.842 NfcHcpX:810204 2021:05:06-10:10:05.856 NfcHcpR:818000 NFC reader: pn71xx-device opened NFC device will poll during 36000 ms (20 pollings of 300 ms for 6 modulations) ISO/IEC 14443A (106 kbps) target: ATQA (SENS_RES): 00 00 UID (NFCID1): 04 2b 51 6a 64 34 80 SAK (SEL_RES): 20 ATS: 75 77 81 02 00 Waiting for card removing...nfc_initiator_target_is_present: Success done.
The poll time is only 6 seconds though - as if it is polling for only 1 modulation.