问题描述
我可能会工作的一个项目中,现有的DESFire卡(用于支付接入服务)将被替换为NFC功能的移动设备。任何人都可以点我的任何资源来帮助我了解什么是参与)复制一个DESFire非卡的数据到移动设备上,因此它可以拿证的地方,和b)的应用程序来提供,以NFC数据present给读者,好像它是一个卡。所有相关的密钥和访问将由发卡行提供(如果该项目向前走),但我非常希望了解的过程中前进。
I'm likely to be working on a project where existing Desfire cards (used to access paid services) will be replaced with an NFC-capable mobile device. Can anyone point me to any resources to help me understand what's involved in a) replicating a Desfire card's data onto a mobile device so it can take the place of a card, and b) for the app to deliver NFC data in order to present to the reader as if it were a card. All relevant keys and access will be provided by the card issuer (if the project goes ahead) but I'm keen to understand the process in advance.
我还需要了解如何在Android NFC API支持的DESFire,因为据我可以看到它只有正确地支持经典。 http://developer.android.com/reference/android/nfc/tech/package-summary.html
I also need to understand how well the Android NFC API supports Desfire, because as far as I can see it only properly support Classic. http://developer.android.com/reference/android/nfc/tech/package-summary.html
推荐答案
MIFARE DESFire非是ISO 14443-4标准。支持Android中的ISO 14443-4(因此MIFARE DESFire非)由完成 IsoDep
类。你可以使用这个类的收发()
方法发送任何DESFire非命令。
MIFARE DESFire is ISO 14443-4 compliant. Support in Android for ISO 14443-4 (and therefore MIFARE DESFire) is done by the IsoDep
class. You can send any DESFire command using the transceive()
method of that class.
除此之外,DESFire非可被配置为NFC论坛4型标记符合。在这种情况下,Android将读出自动任何NDEF从标签信息,并派遣它的意图。所以,你可以让你的应用程序自动启动,当一个特定的标签被扫描。 (安卓也可以格式化的DESFire芯片包含NDEF写NDEF数据给它。)
Besides that, DESFire can be configured to be NFC Forum type 4 Tag compliant. In which case Android will read out automatically any NDEF messages from the tag and dispatch it in an intent. So you can make your app start automatically when a specific tag is scanned. (Android can also format a DESFire chip to contain NDEF and write NDEF data to it.)
由移动NFC设备更换的DESFire卡是另一回事。当前可用Android设备卡仿真由嵌入的安全元件连接至NFC芯片完成。 Android应用程序无法模拟卡(也有这个没有API)和安全元件无法效仿的DESFire芯片。此外,也没有公开API从一个应用程序访问安全元素
Replacing a DESFire card by a mobile NFC device is another matter. Card emulation on currently available Android devices is done by an embedded Secure Element connected to the NFC chip. An Android app cannot emulate a card (there is also no API for this) and the Secure Element cannot emulate a DESFire chip. Furthermore, there is no open API to access the Secure Element from an app.
这是Android的NFC应用程序可以通过NFC到其他设备进行通信(这不是一个卡)使用的。这是,然而,不同的协议比卡和读卡器之间使用。
The only way an Android NFC app can communicate via NFC to another device (that is not a card) is using Android Beam. This is, however, a different protocol than that used between card and reader.
这篇关于如何以及是否在Android NFC API支持的Mifare DESFire非?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!