简体   繁体   English

通过OpenNFC进行卡仿真

[英]Card Emulation via OpenNFC

I am currently researching the possibility of card emulation on NFC enabled smartphones. 我目前正在研究在支持NFC的智能手机上进行卡仿真的可能性。 Basicly, what I'm trying to do is use the phone for a reconfigurable physical access system. 基本上,我要做的是将手机用于可重新配置的物理访问系统。 While reading the api as far as I understand the approach, the card emulation works via the antenna and the operatingsystem of the smartphone without using and relying on the secure element. 在我理解该方法的同时阅读api时,卡仿真通过天线和智能手机的操作系统工作,而无需使用和依赖安全元件。 But I'm actually totaly unsure about this. 但实际上我完全不确定这一点。

Has anyone been able to use card emulation via the Open NFC softwarestack? 有没有人能够通过Open NFC软件堆栈使用卡片仿真? I'm completly lost on this one, as it has a very confusing documentation style and offers no examples for the card emulation case. 我完全迷失了这个,因为它有一个非常令人困惑的文档风格,并没有提供卡仿真案例的例子。

Also, if someone had been able to use it, I'd realy love to know if there are anye requirements I have to meet with a phone for it to work. 此外,如果有人能够使用它,我真的很想知道是否有任何要求我必须要用手机才能工作。

On most Android phones, card emulation will be turned off. 在大多数Android手机上,卡片仿真将被关闭。 On some of them it will be directed towards the embedded secure element (Google Wallet) or to the SIM (Cityzi and Quicktap wallet). 其中一些将指向嵌入式安全元素(Google Wallet)或SIM(Cityzi和Quicktap钱包)。

OpenNFC offers the possibility of doing card emulation by the host (theoretically), but some performance problems could surface. OpenNFC提供了由主机进行卡仿真的可能性(理论上),但是可能会出现一些性能问题。

The other problem is that most of current Android phones include NXP chipsets, which OpenNFC cannot drive. 另一个问题是目前大多数Android手机都包含NXP芯片组,OpenNFC无法驱动。

If you wish to perform card emulation, you should look at EasyNFC which lets you build a NFC application in a SIM. 如果您希望执行卡仿真,您应该查看EasyNFC ,它允许您在SIM中构建NFC应用程序。

So as it seems like noone could give a definitive answer, at least I was able to answer my question via other channels. 因此,似乎没有人可以给出确定的答案,至少我能够通过其他渠道回答我的问题。 Here's what I found out. 这是我发现的。

Basically, the OpenNFC software stack is designed to work with any hardware through the help of a hardware abstraction layer. 基本上,OpenNFC软件堆栈旨在通过硬件抽象层的帮助与任何硬件一起使用。 This HAL is currently only supplied for their own SecuRead and MicroRead Chipsets. 此HAL目前仅为其自己的SecuRead和MicroRead芯片组提供。 So out of the box it is not possible to use it. 因此开箱即用是不可能的。

For the card emulation case on Android: As many of you know it is normally not possible to use card emulation mode without the help of a secure element. 对于Android上的卡仿真案例:许多人都知道,如果没有安全元素的帮助,通常无法使用卡仿真模式。 What I was looking for is some sort of software card emulation possibility. 我正在寻找的是某种软件卡仿真的可能性。 This may be supplied with Cyanogenmod 1 (there were some nightly builds where it was activated, you can find furhter Information on this by checking this project here: NFCProxy 2 ). 这可以与Cyanogenmod 1一起提供(有一些夜间构建它被激活,你可以通过在这里检查这个项目找到更多信息:NFCProxy 2 )。 Very recently (actually exactly the day I asked my question), these features were ported to work with Jelly Bean in the newest version. 最近(实际上就是我问我的问题的那一天),这些功能被移植到最新版本的Jelly Bean中。

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

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