正如我在标题中所写的,我正在尝试使用我的Nexus,Cyanogenmod 10.1.3和ACS Acr122 usb阅读器来使用卡仿真。我找到了这篇文章http://nelenkov.blogspot.it/2012/10/emulating-pki-smart-card-with-cm91.html和github的源代码为https://github.com/nelenkov/virtual-pki-card。我按照指示去做,然后发生了一件奇怪的事情。当智能手机在阅读器上时,连接反复启动和停止,因此演示程序无法工作,客户端引发此异常:
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
你有什么办法解决这个问题吗?谢谢
发布于 2013-12-06 15:51:07
不幸的是,ACR 122U NFC读卡器并不能真正用作智能卡读卡器。尽管ACR 122U使用PC/SC (CCID)将读卡器连接到PC,但大多数版本的ACR 122U都要求您使用读卡器特定的命令并通过PC/SC进行隧道传输。有关隧道过程和可用命令的详细信息,请参阅this question。
https://stackoverflow.com/questions/20397550
复制相似问题