I'm trying to understand the communication for sending APDU command-response pair. Could anyone please explain, in a simple way, how T=0 works?
What are the differences between APDU and TPDU?
For example, the command header is CLA, INS, P1, P2 and P3=0x20 32 bytes data. how does a card know whether the 5th byte of a command is Lc or Le? How does the card know not to expect any command data, and how does it know if 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?