I'm writing a smart card program for ISO 7816 Cards which I need to update a record. I write the program with JAVA and javax.smartcardio Library.
I select the file with this command: ins = 0xA4
I can read record with this command: cla = 0x80 , ins = 0xB2 , p1 = 0x00 , p2 = 0x00 , le = 90
Read record works correct and send me 90 00.
Now I need to update this record. So I use this command: cla = 0x80 , ins = 0xDC , p1 = 0x00 , p2 = 0x00 , and some data.
But in response APDU I get 6D 00 Error which means "Ins Value not supported".
How can I update records correctly?
80, INS=B2) is a proprietary command that does not follow the ISO/IEC 7816-4 standard (CLA=80indicates the proprietary class). You would need to get more information about the smartcard chip (and possibly the applications running on it) in order to determine if (and how) data structures on the chip could be modified. - Michael Roland