Link Between Smart Card and Smart Card Reader - Blackberry

I am trying to implement a connection between a smart card and a smart card reader on a Blackberry simulator.

And in accordance with this, I implemented the class SmartCardand SmartCardSession, as well as the class SmartCardReaderand SmartCardReaderSession.

I can not send apdufor communication. A code snippet is shown below. I would be grateful for all the help in this regard. Please indicate where I am mistaken or what else I need to implement.

CommandAPDU commandAPDU = new CommandAPDU( (byte)0x00, (byte)0x20, (byte)0x00, (byte)0x00);
byte[] LcData= {(byte)0x01, (byte)0x02, (byte)0x03};
ResponseAPDU responseAPDU = new ResponseAPDU();

SmartCardReaderSession readerSession= reader.openSession();

readerSession.sendAPDU(commandAPDU, responseAPDU);
+3
source share

All Articles