David Corcoran wrote:
> Everything works great. There is one minor problem though with ISO Case 2
> functions. These are 5 byte header commands that receive alot of Data. The
> problem I think is that the status bytes come at the end of the data not at
> the beginning. Your command goes through to the card and the card responds
> appropriately it is just the status bytes are not properly taken from the right
> location. Let me know if you understand or not. I will try to explain it
> better. Good Job.
>
I had noticed that before, and I'm gonna change it rigth now. By the way, this is
not an ISO 7816 compilant behaviour of the card, not?
> BTW - What was the problem with Select/etc commands ?
With commands greater than 5 bytes, you have to send first the 5 header bytes (for
instance C0 A4 00 00 02), then read one procedure byte that indicates how to
write (or read in Case2 commands) the remaining bytes, and finally send the
TxData (3F 00)
Bye,
Carlos.
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************