I've got a JCOP card. Have issued an erroneous command to modify it's ATR. The horror is the card appears to not to return an ATR at all. Now that the card is responding in a Windows app:
<code>
SCardConnect() ERROR: The chip card is not responding to a reset.
</code>
using
<code>
SCardConnect(... SCARD_SHARE_(SHARED|DIRECT), SCARD_PROTOCOL_RAW, ...);
</code>
Failure with either SCARD_SHARE_...
I found here:
that for SCARD_PROTOCOL_RAW the wincard.c is using IFDControl_v2 instead of IFDTransmit.
Please tell me if it worthwhile to write a linux app based on pcsc-lite
doing the same task?
I want to somehow issue 2 commands:
1. 00A4040010 [Transport-Key] (OPEN the card)
2. 00F00000 (BOOT the card)
These shall definitely reset the ATR so that i will resurrect the card!
Does anybody know another way to reset such a card?
If you have a contactless or dual interface card, try a contactless reader, where the ATR mess should not affect ability to open a connection to the card.