【发布时间】:2018-05-08 09:40:19
【问题描述】:
我正在尝试使用以下代码使用串行端口连接到我的智能卡:
String port = "COM1"; // serial port
CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier(port);
String appname = "CadClient";
int timeout = 30000;
CommPort commPort = portId.open(appname, timeout);
InputStream is = commPort.getInputStream();
OutputStream os = commPort.getOutputStream();
cad = CadDevice.getCadClientInstance(CadDevice.PROTOCOL_T1, is, os);
//...hangs here for unlimited time
cad.powerUp();
任何帮助为什么它卡在 powerUp() 上。谢谢
【问题讨论】:
标签: smartcard javacard smartcard-reader contactless-smartcard