Question

I send the following command to a Desfire tag to detect a Ndef Application :

new CommandAPDU(0x00, 0xA4, 0x04, 0x00, new byte[]{(byte) 0xD2, (byte) 0x76, 0x00, 0x00, (byte) 0x85, 0x01, 0x01}

I can't get any response because I get the following security exception : SCARD_W_RESET_CARD

Was it helpful?

Solution

Actually what you are doing is Selecting Application by AID. Theoretically if card cannot find this AID i.e. there is not such application on the card it should return Status Word 6A82. If it is not the case most probably Card or Reader are faulty. I don't know details of your source code snippet. Could you please give more details?

OTHER TIPS

It looks like you have set P2 to 0 (requesting to have File Control Info returned in the response), while Le is absent. This is not compliant to the latest version of ISO 17816-4. Try setting Le to 0, then the select command will be compliant to the Type 4 Tag version 2 specification.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top