【发布时间】:2016-03-05 04:26:51
【问题描述】:
我被搜索了有关 NFC SIM 卡的信息,并在这里和那里找到了 such explanations 关于它们的信息:
对于那些想要使用近场通信技术但 目前没有兼容 NFC 的智能手机,还有其他 在您的手机上启用 NFC 而无需以旧换新的方法 昂贵的新型号。 SIM 卡和 SD 卡均可配备 NFC 芯片,一些公司目前提供或准备提供 这些选项让更多客户可以开始使用 NFC 技术。
我现在的问题是:
- NFC SIM 卡是否也有内置天线,或者手机本身必须为 NFC SIM 提供 NFC 天线?
- 如果NFC SIM没有内置天线,手机需要为SIM提供天线,(这意味着手机必须兼容NFC,对吧?)为什么我们需要NFC SIM?我们不能简单地使用手机的 NFC 芯片代替 SIM 的 NFC 芯片吗?
- 也就是说,外面有没有NFC天线的手机,但没有NFC芯片?或者有什么方法可以在旧手机上添加天线以便在其中使用 NFC SIM?
无论如何,假设我想在我的 SIM 卡上安装以下小程序 (its source):
import sim.toolkit.ToolkitInterface;
import sim.toolkit.ToolkitRegistry;
...
import javacard.framework.ISOException;
public class STKTest extends Applet implements ToolkitInterface {
public static void install(byte[] bArray, short bOffset, byte bLength) {
// GP-compliant JavaCard applet registration
new STKTest().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
}
//this method handles standard APDU commands
public void process(APDU apdu) {
// Good practice: Return 9000 on SELECT
if (selectingApplet()) {
return;
}
apdu.setIncomingAndReceive();
final byte[] buf = apdu.getBuffer();
switch (buf[ISO7816.OFFSET_INS]) {
case (byte) 0x00:
//do something
break;
}
}
//this method handles the SIM Toolkit commands
public void processToolkit(byte event) throws ToolkitException {
switch (event) {
case ToolkitConstants.EVENT_TIMER_EXPIRATION:
//do something
break;
}
}
}
问题是:我可以使用 GlobalPlatform 命令安装我的小程序(就像普通智能卡一样)还是基于this presentation in DefCon,我必须使用信封命令、SMS 数据包和 OTA 技术来安装它?
最后一个问题是关于contents of this article(SIM卡应用开发入门)。在某些页面(例如第 16 页和第 17 页)中,提到该人说现在有一些 GlobalPlatform 3 兼容的 SIM 卡可用。但据我所知,GlobalPlatform 智能卡规范的最新版本是 GlobalPlatform 2.3(在本文发表时尚未发布)。那么作者在文章中提到的GlobalPlatform 3规范是什么?
【问题讨论】:
标签: nfc javacard sim-card globalplatform handset