NFC主机卡模拟(HCE) [英] NFC host card Emulation(HCE)

查看:2343
本文介绍了NFC主机卡模拟(HCE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我试图仿效NFC卡与我的Andr​​oid智能手机(4.4),并发送此信息到我的NFC读写女巫连接到我的Java应用程序。我们的目标是赶上一个唯一的ID,但我的NFC读取器不支持对等网络。

I'm actually trying to emulate a NFC card with my android smartphone(on 4.4) and send this information to my NFC reader witch is connected to my Java Application. The goal is to catch an unique ID but my NFC reader do not support peer-to-peer.

所以在 https://developer.android.com/的例子指南/主题/连接/ NFC / hce.html 不起作用。

感谢您的帮助。

推荐答案

对等网络模式和Android HCE是两回事。为了与Android HCE接入设备,你的读者只需要支持接触式智能卡(即ISO 14443-4 + ISO 7816-4)。如果您的阅读器连接到使用Java API SmartcardIO这可能是您的Java应用程序的情况。

Peer-to-peer mode and Android HCE are two different things. In order to access devices with Android HCE, your reader only needs to support contactless smartcards (i.e. ISO 14443-4 + ISO 7816-4). If your reader is connected to your Java application using the Java SmartcardIO API this is likely the case.

关于唯一标识符:借助Android HCE时,ISO 14443协议的防碰撞序列(例如UID,PUPI)期间所使用的序列号是随机的(典型地的每个协议的新值激活)。因此,要克服的Andr​​oid HCE的唯一标识符的唯一方法是将您的HCE应用程序中定义了一个这样的标识符,并使用自定义ISO 7816-4命令(-sequence)查询您的申请此ID。

Regarding a unique identifier: With Android HCE, the serial number used during the anti-collision sequence of the ISO 14443 protocol (e.g. UID, PUPI) is random (typically a new value for each protocol activation). So the only way to get a unique identifier over Android HCE would be to define such an identifier within your HCE application and to query your application for this ID using a custom ISO 7816-4 command(-sequence).

这篇关于NFC主机卡模拟(HCE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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