接触卡和非接触式(RF)卡之间的区别 [英] Difference between contact card and contactless(RF) card

查看:405
本文介绍了接触卡和非接触式(RF)卡之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道接触卡和非接触式(RF)卡在APDU命令/响应,实现等方面的区别。

I want to know the difference between contact card and contactless(RF) card in terms of APDU command/response, implementation and so on.

我正在实现使用组合卡的小程序。我以为,无论接触界面或非接触(RF)界面如何,小程序都会为命令返回相同的响应APDU,但事实并非如此。我对此一无所知。 (我以前为唯一的RF接口或唯一的接触接口实现了applet,但没有为两者实现。)

I'm implementing an applet using combi card. I thought that regardless of contact interface or contactless(RF) interface, an applet returns the same response APDU for a command but it doesn't seem like that. I have no idea about that. (I implemented an applet for the only RF interface or for the only contact interface before, not for both.)

是否可以实现applet以返回相同的响应用于命令的APDU APDU?如果没有,区别是什么。当我为两个接口都实现一个applet时,是否有任何考虑因素。我感谢任何相关的评论或信息(URL)。

Is it possible to implement an applet to return the same response APDU for a command APDU? If not, what part is the difference. Is there any considerations when I implement an applet for both interface. I appreciate any related comment or information(URL).

谢谢。

推荐答案

您要暗示的区别是T = 0和T = 1 / T = CL之间的区别。 T = 0和T = 1是基于联系人的传输协议。 T = CL是用于14443 A型或B型非接触卡的ContactLess协议。

The difference you are hinting at is the difference between T=0 and T=1 / T=CL. T=0 and T=1 are contact based transport protocols. T=CL is a ContactLess protocol for either 14443 type A or type B contactless cards.

T = 0基于字节,并且APDU的内容用于传输层。从这个意义上讲,它是一个较低级别的协议。尽管在ISO / IEC 7816-4规范中,层之间的分隔非常糟糕,但这并不是很明确。

T=0 is byte based and the contents of the APDU are used for the transport layer as well. In that sense it is a lower level protocol. The separation between layers is very bad in the ISO/IEC 7816-4 specifications though, this is not made very explicit.

T = 0的影响之一是它不能区分对命令进行编码的Lc和Le字节与最大响应大小。因此,需要APDU发送或接收数据。它可以使用特定的状态字,例如 61XX GET RESPONSE APDU,以同时包含命令和响应数据。

One of the effects of T=0 is that it cannot distinguish between the Lc and Le bytes that encode the command and maximum response sizes. Hence the APDU is required to either send or receive data. It can use specific status words, such as 61XX and the GET RESPONSE APDU to allow for both command and response data.

T = 1和T = CL提供了在其自身层上运行的基础传输协议。因此,它不需要对ISO情况4进行特殊处理。

T=1 and T=CL provide an underlying transport protocol operates on its own layer. It therefore does not require special handling of the ISO case 4.

现在对于Java Card,T = 0 GET RESPONSE的处理大部分由Java Card Runtime Environment完成。 ,因此通常不需要非常具体的T = 0代码。

Now for Java Card, the handling of T=0 GET RESPONSE Is mostly done by the Java Card Runtime Environment, so there is usually no need for very specific T=0 code.

这篇关于接触卡和非接触式(RF)卡之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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