Page 1 of 1

ISO7816 T=0 Com Protocol

Posted: Mon Apr 01, 2024 12:10 pm
by Alan_37
Hi ,

ISO/IEC 7816 is a standard com protocol for smart cards and security Chips .

It has several transmission protocols, denoted as T=0, T=1, T=2, and T=3. Each transmission protocol defines how data
is exchanged between the smart card and the MCU / Terminal .

T=0 is one of the transmission protocols defined in ISO/IEC 7816. It is a byte-oriented protocol, meaning that data is
sent and received in bytes.

In T=0 protocol:

1, Communication between the terminal and the smart card is based on a half-duplex asynchronous serial communication.
2, Each communication is initiated by the terminal sending a command byte to the card.
3, The card processes the command and responds with one or more bytes of data.
4, The terminal then sends more commands or terminates the communication.

Would be really great to see T=0 Added to Flowcode V10

Regards

Alan

Re: ISO7816 T=0 Com Protocol

Posted: Wed Apr 03, 2024 3:41 pm
by BenR
Hi Alan,

There's some code here which looks simple enough for us to port across into Flowcode.

http://www.tobiasfeigl.de/2015/12/23/ar ... otocol-t1/

What worries me slightly is that parts of the schematic have been blanked out. I wonder if there is a licensing requirement surrounding the protocol?

Looks like it's a synchronous bus but should be easy enough to bit bang using standard IO pins.