Topic: How to send 7816 APDUs using libnfc
Hi,
I am attempting to use a "PN531USB" to communicate with a Java Smart Card (complies with 14443,7816,contactless).
I have successfully used WinSCard (using SCARD_PROTOCOL_T0) and an OMNIKey device to talk to the card.
How do I send 7816 APDUs using libnfc?
I understand you first need to do an anti-collision, then a selection before you can send the APDUs, but I don't know how that is coded, or how to use 7816 APDUs with the libnfc API.
The output of the supplied "anticol.exe" is
Connected to NFC reader: PN531USB
R: 26
T: 04 00
R: 93 20
T: 08 3a 46 3a 4e
R: 93 70 08 3a 46 3a 4e e7 23
T: 20 fc 70
R: e0 50 bc a5
T: 08 57 80 02 01 10 00 09 94 da
R: 50 00 57 cd
Found tag with UID: 083a463aThe output of list is
Connected to NFC reader: PN531USB
The following (NFC) ISO14443A tag was found:
ATQA (SENS_RES): 04 00
UID (NFCID1): 08 24 27 ba
SAK (SEL_RES): 20
ATS (ATR): 08 57 80 02 01 10 00 09I am using WinXP with libusb-win32.
Thanks,
snapdev
Last edited by snapdev (2009-06-22 22:19:59)