我将此示例代码用于 apdu 连接。当我运行这段代码时,我得到了 BAD AID 异常。以前有没有人收到此错误消息?
APDUConnection acn = null;
try{
//Create an APDUConnection object
acn = (APDUConnection)
Connector.open(“apdu:0;target=A0.0.0.67.4.7.1F.3.2C.3”);
// Send a command APDU and receive response APDU
responseAPDU = acn.exchangeAPDU(commandAPDU);
...
} catch (IOException e) {
...
} finally {
...
if(acn != null) {
// Close connection
acn.close();
}
...
}
...