简体   繁体   English

Java Card:如何将 SIM 小程序加载到真正的智能卡上?

[英]Java Card: How to load SIM applet to real smart card?

I developed a Java Card applet in Eclipse and obtained a cap file.我在 Eclipse 中开发了一个 Java Card 小程序并获得了一个 cap 文件。 Then i used jcManager – Java Secure Card Manager to load that file to my smart cards.然后我使用jcManager – Java Secure Card Manager将该文件加载到我的智能卡中。 I have two type of smart cards:我有两种类型的智能卡:

  1. Contact, JCOP 2.1 36K联系人,JCOP 2.1 36K
  2. Contactless, JCOP 2.1非接触式,JCOP 2.1

My smart card reader is: SDI011 Dual Interface Reader .我的智能卡读卡器是: SDI011 双接口读卡器

Also to developing SIM applet, i'm using Gemalto Developer Suite [3.6] .同样为了开发 SIM 小程序,我正在使用Gemalto Developer Suite [3.6] That IDE has a GSM emulator and my SIM applet works on it well.该 IDE 有一个 GSM 仿真器,我的 SIM 小程序可以很好地运行。 It gives cap, jar, jac, exp.. files of applet.它提供了小程序的 cap、jar、jac、exp.. 文件。

Everything is fine so far but i want to load that cap file to my contact or contactless Java Card [because i have no SIM card to work on], and then send-receive APDU messages.到目前为止一切都很好,但我想将该 cap 文件加载到我的接触式或非接触式 Java 卡 [因为我没有可使用的 SIM 卡],然后发送-接收 APDU 消息。

Is it possible?是否可以? If yes, how?如果是,如何? How to load my SIM applet to real smart card [ not SIM card ]?如何将我的 SIM 小程序加载到真正的智能卡[不是 SIM 卡]?

It might not work because the SIM application might have dependencies to APIs that are not present in the JCOP cards (for instance ETSI 102 705).它可能不起作用,因为 SIM 应用程序可能依赖于 JCOP 卡中不存在的 API(例如 ETSI 102 705)。 But then it is worth trying.但那是值得一试的。 Make sure that the file format is compatible between the tools (a cap file is not always a cap file by the way; a real cap file is a zip, some tools prefer IJC files).确保文件格式在工具之间兼容(顺便说一下,cap 文件并不总是 cap 文件;真正的 cap 文件是 zip,有些工具更喜欢 IJC 文件)。 Try using the cap file from the Gemalto tool in the jcManager.尝试使用 jcManager 中 Gemalto 工具中的 cap 文件。 If it does not work you can try GPShell.如果它不起作用,您可以尝试 GPSShell。 The main challenge is to have the keys to your target, and then the right tool.主要的挑战是拥有目标的钥匙,然后是正确的工具。

Uploading a .cap file will already fail if there is a slight difference in the API.如果 API 略有不同,上传.cap文件就会失败。 In Java class files directly specify the method to call by name.在 Java 类文件中直接指定按名称调用的方法。 In Java Card however, the converter will remove the dynamic binding.但是,在 Java Card 中,转换器将删除动态绑定。

If you want to upload to a different platform, then please at least run the generated .class files through the converter.如果你想上传到不同的平台,那么请至少通过转换器运行生成的.class文件。

If your card os supports the OTA then you can try loading the applet via OTA.如果您的卡操作系统支持 OTA,那么您可以尝试通过 OTA 加载小程序。 You can also delete via OTA.您也可以通过 OTA 删除。 I have never used gemalto tools so I am only giving you a way you can try.我从来没有使用过 gemalto 工具,所以我只是给你一个你可以尝试的方法。 Refer to GP document or, 3gpp ts 03.48.请参阅 GP 文档或 3gpp ts 03.48。 For OTA.对于 OTA。

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

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