Smart Card communication protocol

27 views
Skip to first unread message

tsa...@gmail.com

unread,
Mar 30, 2014, 8:29:44 AM3/30/14
to
Dear all,

I'm trying to understand the communication for sending APDU command response pair.
Could anyone please explain in a ,simple way, how does it work?
(lets start with T0 protocol).

What are the differences between APDU and TPDU?

If for example, the command header, which is CLA, INS, P1, P2, and , P3=0x20
32 bytes data), how does a card "konw" whether the 5th byte of a command is Lc, or Le?
How does it "know" not to expest any command data, or, that the reader is expecting data in the response?

Another thing, when does the procedure byte participate in the scenario?
Is it procedure byte? or, procedure bytes?
Is it mandatory for the card to send procedure byte?

Many thanks and appreciation for who ever shad some light here.

Tsach



Reply all
Reply to author
Forward
0 new messages