nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.64k stars 436 forks source link

initiator_poll_target for PCSC #728

Open drebes opened 1 month ago

drebes commented 1 month ago

This allows polling on CCID compatible readers like the SONY FeliCa RC-S300/P:

Without this change:

nfc-poll
nfc-poll uses libnfc libnfc-1.8.0-72-gdf0a3be
NFC reader: SONY FeliCa RC-S300/P (0236798) 00 00 opened
NFC device will poll during 36000 ms (20 pollings of 300 ms for 6 modulations)
No target found.

With the change:

# nfc-poll
nfc-poll uses libnfc libnfc-1.8.0-72-gdf0a3be
NFC reader: SONY FeliCa RC-S300/P (0236798) 00 00 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  e0  ed  5a  35  60  80  
      SAK (SEL_RES): 20  
                ATS: 75  77  81  02  80  4f  0c  a0  00  00  03  06  03  00  03  00  00  00  00  
Waiting for card removing...nfc_initiator_target_is_present: Success
done.

Found this issue while troubleshooting https://github.com/wizzomafizzo/tapto/issues/60