Przemysław Niepsuj wrote:
> Hello Muscle,
> 
>       Im absolute beginner with smart card. Howover, I wrote a small
>       program using pcsc-lite that sends APDU meassage to card, but
>       any time I recived APDU response 6D 00 -Instruction code not
>       supported or invalid. My card is SLE44C80S with Siemens CardOS/M
>       V 1.4. My question is: How correcly construct APDU measage?
>       Could sombay give me some example of ADPU's?

Search for IS0 7816-4.

Brief survey.

APDU consists of

CLA (class of the command) byte | INS (instruction) byte | P1 (parameter
1) byte | P2 byte

This is mandatory.

Now if you want to send something there is the Lc (Length of command
body) byte, now comes the payload (short = 255 bytes, there also a
version with 65535 bytes)

If you get something from the card there is the Le (length expected)
byte. This is set to 0 for maximum value (= 256 or 65536 bytes) or the
amount of data you expect.

But this will not be your problem, I think I remember, that 6D00 means
"instruction not found" (See the error codes in ISO 7816-4), that means
the INS byte is not found, what means that the current selected
application does not know about a instruction with this INS byte.

But I also believe that your true problem is, that you have an empty
card. Is something installed on the card? Do you have a documentation
against which interface you are programming? What should your APDU
command do? Which standards does the card support?

Karsten

> 
>       Thanks in advice
>       
> Best regards,
>  Przemo                          mailto:[EMAIL PROTECTED]
> 
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to