简体   繁体   English

Nexus S和ACS ACR122进行卡仿真

[英]Card Emulation with Nexus S and ACS ACR122

as I wrote in the title, I'm trying to use card emulation using my Nexus S, Cyanogenmod 10.1.3 and the ACS Acr122 usb reader. 正如我在标题中所写的那样,我正在尝试通过Nexus S,Cyanogenmod 10.1.3和ACS Acr122 usb读取器使用卡仿真。 I found this article http://nelenkov.blogspot.it/2012/10/emulating-pki-smart-card-with-cm91.html and the github with the source code https://github.com/nelenkov/virtual-pki-card . 我发现这篇文章http://nelenkov.blogspot.it/2012/10/emulating-pki-smart-card-with-cm91.html和github以及源代码https://github.com/nelenkov/virtual- pki卡 I followed the instructions and it happened a strange thing. 我按照指示进行,发生了一件奇怪的事。 While the smartphone is on the reader the connection starts and stops repeatedly thus the demo doesn't work and the client raises this exception: 当智能手机在阅读器上时,连接会反复启动和停止,因此演示无法正常工作,并且客户端会引发以下异常:

Exception in thread "main" java.lang.RuntimeException: javax.smartcardio.CardException: connect() failed
    at org.nick.sepkiclient.Main.main(Main.java:105)
Caused by: javax.smartcardio.CardException: connect() failed
    at sun.security.smartcardio.TerminalImpl.connect(Unknown Source)
    at org.nick.sepkiclient.Main.waitForCard(Main.java:166)
    at org.nick.sepkiclient.Main.main(Main.java:48)
Caused by: sun.security.smartcardio.PCSCException: SCARD_E_READER_UNAVAILABLE
    at sun.security.smartcardio.PCSC.SCardStatus(Native Method)
    at sun.security.smartcardio.CardImpl.<init>(Unknown Source)
    ... 3 more

Do you have any idea on how to fix that? 您是否有解决办法的想法? Thanks 谢谢

Unfortunately, the ACR 122U NFC reader is not really useable as a smartcard reader. 不幸的是,ACR 122U NFC读取器实际上不能用作智能卡读取器。 Eventhough it uses PC/SC (CCID) to connect the reader to a PC, most versions of the ACR 122U require you to use reader specific commands and tunnel them over PC/SC. 尽管它使用PC / SC(CCID)将阅读器连接到PC,但大多数版本的ACR 122U仍要求您使用特定于阅读器的命令并通过PC / SC进行隧道传输。 See this question for further information on the tunneling procedure and on available commands. 有关隧道过程和可用命令的更多信息,请参见此问题

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

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