Page 1 of 1

Update Record command return 6D 00

Posted: Tue Dec 29, 2015 7:06 pm
by k2evil
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:

Code: Select all

cla = 0x00 , ins = 0xA4 , p1 = 0x00 , p2 = 0x00
and I enter the name of file in data field.
I can read record with this command:

Code: Select all

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:

Code: Select all

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?

Re: Update Record command return 6D 00

Posted: Tue Dec 29, 2015 9:54 pm
by UNKNwYSHSA
Do you have the User Manul for the applet in the card? Perhaps this INS is not implemented in this applet.

Re: Update Record command return 6D 00

Posted: Wed Dec 30, 2015 6:28 am
by k2evil
UNKNwYSHSA wrote:Do you have the User Manul for the applet in the card? Perhaps this INS is not implemented in this applet.


No I don't have it...
I'm new in Smart Card programming, So you mean INSes may not be same in all ISO 7618-4 cards?

Re: Update Record command return 6D 00

Posted: Wed Dec 30, 2015 9:42 am
by UNKNwYSHSA
Do you have the source code of the applet in the card?