智能卡61 XX错误 - 这到底是什么意思?
我已经在SmartCard上安装了一个小程序,但是在向其发送命令时,请继续获得61 XX响应。当我在jcide中运行它时,只有在实际卡上运行它。
我知道61 XX的响应意味着“响应字节剩余”,XX是剩下多少个数据字节 - 但我不确定为什么会发生这种情况。命令APDU的LE是否需要指定响应中的字节数?我需要以某种方式得到响应(以及我该怎么做)?还是我遇到此错误的另一个原因?
我已经使用相同的代码编写了其他小程序(请参见下文),但没有这个问题
apdu.SetOutgoing();
apdu.setOutGoingLength(length);
apdu.sendByteslOng(buff, offset, length);
I've installed an applet I've written onto a smartcard - but when sending commands to it, keep getting the 61 xx response. This doesn't happen when I run it in JCIDE, only when on an actual card.
I understand that a response of 61 xx means 'response bytes remaining' and that the xx is how many bytes of data are left - but I'm not sure why this happens. Does the Le of the command APDU need to specify the number of bytes in response? Do I need do get the response somehow (and how do I do this)? or is there another reason I am getting this error?
I have written other applets using the same code (see below) and not had this issue
apdu.SetOutgoing();
apdu.setOutGoingLength(length);
apdu.sendByteslOng(buff, offset, length);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
61xx不是错误,而是警告,请参见ISO 7816,第4部分,第5.6节。警告不太严重,并且仍然保留其响应数据(由于错误而被丢弃)。
那里的61xx是最简单的状态代码之一(超过90 00),因为反应简单明了:发送
获取响应
命令,p3/le设置为SW2中指示的数字(XX Part 61xx)。该状态的主要原因是,t = 0协议无法发送任意多字节(因此仅发送61xx)或响应中的256个字节(在这种情况下,它发送了第一个块,并指示了多少个字节字节随访;如果只能显示255个以上,则需要重复获得响应命令。61xx is not an error, but a warning, see ISO 7816, part 4, section 5.6. Warnings are less severe and still keep their response data (which are discarded for errors).
There 61xx is one of the easiest status codes (beyond 90 00), because the reaction is simple and clear: send a
Get Response
command with P3/LE set to the number indicated in SW2 (the xx part of 61xx). The main reason for the status is, that T=0 protocol is unable to send arbitrary many bytes (so it just sends 61xx) or more than 256 bytes in a response (in which case it sends the first chunk and an indication of how many bytes follow-up; if more than 255, only 255 can be shown and repeated Get Response commands are required getting the remaining chunks).