How can I get the serial number of a smart card using APDU command?
I have tried to query it by using SCardGetAttrib function of winscard.dll with no luck, I've been told to use an APDU command to do that since there is no standard way to get the serial number. The problem is that I can't figure out what type my smart cards are! So I have looked into the documents of few of popular smart card manufacturers with no luck to find a way to get the serial number!!
My card reader is ACR88.
解决方案
In the commands below the A0 might need to be 00 or something else (the code below works on a SIM card) :
SELECT MF :
=> A0A40000023F00
<= 9F16
SELECT EFiccid :
=> A0A40000022FE2
<= 9F0F
READ BINARY :
=> A0B000000A
<= 984310011823020084F99000
Your ICCID is swapped and has a luhn check (984310011823020084F9 => 8934011081322000489).