I write an application for smart cards and after successfully selecting an application with its AID, when it is sent to send processing processing parameters
I get 6E 00 as a response - Invalid CLA command. This is part of the code that sends a command and receives a response:
ResponseAPDU rapdu = sendCommand(new byte[]{(byte)0x80, (byte)0xA8, (byte)0x00, (byte)0x00, (byte)0x02, (byte)0x83, (byte)0x00, (byte)0x00}); private ResponseAPDU sendCommand(byte[] apdu) throws CardException{ CommandAPDU capdu = new CommandAPDU(apdu); ResponseAPDU rpd = channel.transmit(capdu); return rpd; }
I use the same command to read the map using the Jaccal library, and it works fine, but it's just that jaccal is not suitable for my application due to the use of an external dll file. I do not know why this gives me such an answer.
source share