简体   繁体   English

如何使用 NFC-B 卡上的 java 卡在 iPhone 上打开网站?

[英]How do I open a website on an iPhone using java card on an NFC-B card?

I am trying to use an OMNI from NFCRing to send a website to Apple and Android phones.我正在尝试使用NFCRing的 OMNI 将网站发送到 Apple 和 Android 手机。 I'm new to NFC so I don't really know what I'm doing.我是 NFC 的新手,所以我真的不知道自己在做什么。

So far I have attempted to build and install the full NDEF applet from OpenJavacardNDEF using version 20.01.23 of the GlobalPlatformPro API .到目前为止,我已尝试使用GlobalPlatformPro API的 20.01.23 版从OpenJavacardNDEF构建和安装完整的 NDEF 小程序。 Whenever I try to send ADPU commands to the card, however, the response is always 0x6D00.然而,每当我尝试向卡发送 ADPU 命令时,响应总是 0x6D00。

Edit:编辑:

The APDU commands I have tried are 00000000, 00a4000c, 00a4000c02e10400, and 00b00150 all with the same response.我尝试过的 APDU 命令是 00000000、00a4000c、00a4000c02e10400 和 00b00150,它们都具有相同的响应。 I am trying to follow the protocol outlined in the applet's documentation but I may be doing something wrong;我正在尝试遵循小程序文档中概述的协议,但我可能做错了什么; as I said I am new to this.正如我所说,我对此很陌生。

It looks like you are not doing the first step of actually selecting your Application, that protocol doc you linked only give you the details of how it can respond to each type of command once selected.看起来您没有做实际选择应用程序的第一步,您链接的协议文档只为您提供了一旦选择它如何响应每种类型的命令的详细信息。

As you are trying to emulate a NFC Type 4 Tag I would read the NFC specification doc Section 5.4 is the most relevant.当您尝试模拟 NFC Type 4 标签时,我会阅读 NFC 规范文档第 5.4 节是最相关的。

But as a shortcut:-但作为捷径:-

The first ADPU to send is 00h A4h 04h 00h 07h D2760000850101h 00h第一个发送的ADPU是00h A4h 04h 00h 07h D2760000850101h 00h

This is select the NFC Ndef App standard AID number (the D276... part)这是select NFC Ndef App标准AID号(D276...部分)

If you look at the OpenJavaCardNDEF example client library on connect and performSelectApplet do just this.如果您在connectperformSelectApplet上查看 OpenJavaCardNDEF 示例客户端库,请执行此操作。

Further APDU's are needed once the applet is selected, I would read the NDEF spec and or the example client library on which ones are needed to do what you want from the Tag.一旦选择了小程序,就需要进一步的 APDU,我会阅读 NDEF 规范和/或示例客户端库,在这些库上需要做你想从标签中做的事情。

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

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