如何NFC读取器(ACR122)检测到我的电话? [英] how does nfc reader(acr122) detect my phone?
问题描述
我买ACR122U SDK具有ACR122读写器,CD和卡片,我尝试对其进行测试。读者从红色改变它的LED灯为绿色检测卡,但是当我把我的手机(NFC已开启)靠近读卡器,有什么情况发生。
I buy ACR122U SDK that has a acr122 reader,cd and cards and I try to test it. the reader detect the cards by changing its LED light from red to green but when I take my phone (NFC is turned on) near the reader,there is nothing happen.
我如何使读者发现我的手机?我必须安装java applet的卡到我手机让我的手机充当非接触式卡?
How do I make the reader detect my phone? I have to install java card applet into my phone for letting my phone act as a contactless card?
推荐答案
使用ACR122U NFC阅读器,你有三种选择:
Using the ACR122U NFC reader you have three options:
-
在ACR122U对等网络模式:在对等网络模式,您可以使用Android的内置功能束的Android设备进行通信。在读者方面,你将需要实现SNEP服务(和潜在的LLCP + NFCIP-1协议栈)。你可以找到例子,比如,用 ISMB-SNEP , NFC工具和 nfcpy 。
在卡模拟模式ACR122U:在卡仿真模式ACR122U可以用来模拟可以通过Android设备,就像任何其他NFC标签/接触式智能卡检测到标签/接触式智能卡。你可以找到例子,比如,用 libnfc 。
ACR122U in card emulation mode: In card emulation mode the ACR122U can be used to emulate a tag/contactless smartcard that can be detected by an Android device just like any other NFC tag/contactless smartcard. You can find examples, for instance, with libnfc.
在ACR122U读/写器模式:在读/写器模式下,ACR122U可以与接触式智能卡通信。该进入什么的 takumar 的已经张贴在他的答案的方向。当你被套牢了安全元件的要求(通常是困难的,因为得不到,甚至缺乏SE的),最近的Android版本(具体的CyanogenMod 9.1+或Android 4.4或以上版本),你必须使用的选项主机卡模拟(HCE)模式。见href=\"http://developer.android.com/guide/topics/connectivity/nfc/hce.html\" rel=\"nofollow\"> Android文档了解如何在Android 4.4及更高版本的工作
ACR122U in reader/writer mode: In reader/writer mode, the ACR122U can communicate with contactless smartcards. This goes into the direction of what takumar already posted in his answer. While you were stuck with the requirement of a secure element (which is typically difficult due to lack of access or even lack of an SE), with recent Android versions (specifically CyanogenMod 9.1+ or Android 4.4+), you have the option to use host card emulation (HCE) mode. See the Android documentation for how that works on Android 4.4 and later.
这篇关于如何NFC读取器(ACR122)检测到我的电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!