LudovicRousseau / pcsc-tools

Some tools to be used with smart cards and PC/SC
https://pcsc-tools.apdu.fr/
GNU General Public License v2.0
185 stars 63 forks source link

pcsc_scan ISO/IEC 14443-4B ? #56

Closed aleksas closed 2 years ago

aleksas commented 2 years ago

I'm using UART PN532. pcsc_scan detects visa, master cards and also smart watch (fitbit charge 4) payment card. But if fails to detect card associated with my smart phone. Does pcsc support ISO/IEC 14443-4B ?

Bellow nfc-poll output of detected phone nfc.

$ nfc-poll 
nfc-poll uses libnfc libnfc-1.8.0-63-g3df7f25
NFC reader: IFD-NFC opened
NFC device will poll during 36000 ms (20 pollings of 300 ms for 6 modulations)
ISO/IEC 14443-4B (106 kbps) target:
               PUPI: 54  0d  **  **  
   Application Data: 00  00  **  **  
      Protocol Info: 80  **  **  
Waiting for card removing...nfc_initiator_target_is_present: Target Released
done.

p.s. there are numbers under **

LudovicRousseau commented 2 years ago

The question is: is your pcsc-lite driver able to report ISO/IEC 14443-4B cards?

pcsc_scan just reports what comes from the PC/SC layer.

aleksas commented 2 years ago

Yes correct, i've found that i probably had to look here https://github.com/nfc-tools/ifdnfc/blob/master/src/ifd-nfc.c from the first look it seems that ISO/IEC 14443-4B implementation at least partially is missing. I'll review https://github.com/nfc-tools/libnfc/issues ... and https://github.com/nfc-tools/ifdnfc