正如我在标题中所写,我正在尝试使用我的 Nexus S、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 卡。我按照说明进行操作,发生了一件奇怪的事情。当智能手机在阅读器上时,连接会反复启动和停止,因此演示不起作用,客户端会引发此异常:
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
你对如何解决这个问题有任何想法吗?谢谢