简体   繁体   English

如何恢复配置错误的JCOP卡

[英]How to revive a misconfigured JCOP card

I've got a JCOP card. 我有一张JCOP卡。 Have issued an erroneous command to modify it's ATR. 发出了错误的命令来修改它的ATR。 The horror is the card appears to not to return an ATR at all. 令人恐惧的是,该卡似乎根本不返回ATR。 Now that the card is responding in a Windows app: 现在,该卡正在Windows应用程序中响应:

<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_... 出现SCARD_SHARE_失败...

I found here: 我在这里找到:

https://www.mail-archive.com/search?l=muscle@lists.musclecard.com&q=subject:%22Re%3A+[Muscle]+How+can+I+use+SCARD_PROTOCOL_RAW+with+IFD_HVERSION_3_0%3F%22&o=newest&f=1 https://www.mail-archive.com/search?l=muscle@lists.musclecard.com&q=subject:%22Re%3A+[Muscle]+How+can+I+use+SCARD_PROTOCOL_RAW+with+IFD_HVERSION_3_0%3F% 22&o = newest&f = 1

that for SCARD_PROTOCOL_RAW the wincard.c is using IFDControl_v2 instead of IFDTransmit. 对于SCARD_PROTOCOL_RAW,wincard.c使用的是IFDControl_v2,而不是IFDTransmit。

Please tell me if it worthwhile to write a linux app based on pcsc-lite doing the same task? 请告诉我是否值得编写基于pcsc-lite的Linux应用程序来执行相同的任务?
I want to somehow issue 2 commands: 我想以某种方式发出2个命令:
1. 00A4040010 [Transport-Key] (OPEN the card) 1. 00A4040010 [Transport-Key](打开卡)
2. 00F00000 (BOOT the card) 2. 00F00000(将卡引导)
These shall definitely reset the ATR so that i will resurrect the card! 这些肯定会重置ATR,以便我将卡复活!

Does anybody know another way to reset such a card? 有人知道重置这种卡的另一种方法吗?

如果您有非接触式或双接口卡,请尝试非接触式读卡器,在这种情况下,ATR混乱不会影响打开与卡的连接的能力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM