Page 1 of 1

How to handle short commands

Posted: Wed Aug 09, 2017 2:13 am
by Anenl
For the project requirement, I am developing an applet to anwser to some specific commands.

But some of these commands are only 2 byte length, which don't match with APDU standard length - 4 byte.
And the response I get from the applet is only 0x6881. So I wonder if there is a way to do handle short commands.

Thanks.

Re: How to handle short commands

Posted: Wed Aug 09, 2017 10:35 pm
by Pf6KINE
Describe your question clearer, then we can give you specific help.

Re: How to handle short commands

Posted: Wed Aug 09, 2017 11:09 pm
by Anenl
As shown in the following code, When I sent 0x00, it works, but with other, I got error status word.

Code: Select all

m>  /send 00
 => 00
 <= 00 00 00 00 00 90 00

cm>  /send 01
 => 01
 <= 68 81                           

cm>  /send A0
 => A0
 <= 6D 00