当我向SmartCard发送命令时,6E 00的含义是什么 [英] What is the meaning of 6E 00 when I send a command to a SmartCard

查看:624
本文介绍了当我向SmartCard发送命令时,6E 00的含义是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过C ++访问SmartCard。
我已经连接和CardHandle。

I try to access a SmartCard via C++. I got already the Connection and the CardHandle.

但是当我通过SCardTransmit发送APDU命令,我会得到6E 00作为答案从卡。
无论我发送哪个APDU命令。
每次6E 00。

But when I send an APDU Command via SCardTransmit, i'll get 6E 00 as the answer from the card. No matter which APDU Command i send. Everytime 6E 00.

例如:


  • FF CA FA 00 00(信用卡的ATR - 重设应答)或

  • FF CA FF 82 00(产品名称为ASCII)

当我使用PC / SC Testtootl发送命令,比如PC / SC Diag时,同样的情况。

The same thing when i send the Command with an PC/SC Testtootl like "PC/SC Diag".

这个错误代码的意义和如何解决这个问题?

Has anybody an Idea what the meaning of this Error-Code and how to solve the problem?

请帮助我! ; - )

Please help me !!!! ;-)

推荐答案

根据ISO 7816-4 0x6E00表示不支持类。

According to ISO 7816-4 0x6E00 means "Class not supported".

您在APDU中使用正确的CLA值?

Are you using the correct CLA value in the APDU?

类(CLA)字节通常为0x00,0xA0,0xC0或0xF0,有时屏蔽了0x0C,表示某些卡上的安全消息。 AFAIK,唯一无效的CLA值是0xFF。

The class (CLA) byte is usually 0x00, 0xA0, 0xC0 or 0xF0 and sometimes masked with 0x0C that indicates Secure Messaging on some cards. AFAIK, the only invalid CLA value is 0xFF.

但是这一点从一个卡到另一个卡,你有供应商的卡规格吗?

But this varies from one card to another, do you have the card specification from the vendor?

这篇关于当我向SmartCard发送命令时,6E 00的含义是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆