Reputation: 2576
I'm testing APDU commands transmitting, and I've found a strange issue,
for GET DATA
command 00:CA:7F:68
I receive an error:
6D00: "Instruction code not supported or invalid"
What can be the problem??? I'm able to read ATR
, send SELECT
command.
Thanks in advance.
Upvotes: 0
Views: 2963
Reputation: 5333
As frequently mentioned, ISO 7816-4 is a weak standard: no card needs to support all commands and can still claim to be standard-compliant. So it may be that your card does
understand the command, but I don't think it has to do with the 7F68 object number.
Adding an LE byte (as suggested) is definitely worth a try, even if I would expect 67 00 for that cause.
Upvotes: 1
Reputation: 2767
Are you trying to read the data from the file 7f68
? Can you give more background info? In any case, I think you may be missing the last byte (LE
) of the apdu, where you specify the maximum amount of bytes expected in your answer.
Upvotes: 1