ETSI
ETSI TS 102 221 V8.3.0 (2009
6.3.1 Coding of historical bytes ........................................................................................................................... 29
6.3.2 Speed enhancement..................................................................................................................................... 29
6.3.3 Global Interface bytes ................................................................................................................................. 29
6.4 PPS procedure .................................................................................................................................................. 30
6.5 Reset procedures .............................................................................................................................................. 30
6.5.1 Cold reset .................................................................................................................................................... 30
6.5.2 Warm reset .................................................................................................................................................. 30
6.5.3 Reaction to resets ........................................................................................................................................ 31
6.6 Clock stop mode ............................................................................................................................................... 31
6.7 Bit/character duration and sampling time ......................................................................................................... 31
6.8 Error handling .................................................................................................................................................. 31
6.9 Compatibility .................................................................................................................................................... 32
7 Transmission protocols........................................................................................................................... 32
7.1 Physical layer ................................................................................................................................................... 33
7.2 Data link layer .................................................................................................................................................. 33
7.2.1 Character frame .......................................................................................................................................... 33
7.2.1.1 Low impedance I/O line behaviour ....................................................................................................... 34
7.2.2 Transmission protocol T = 0 ....................................................................................................................... 34
7.2.2.1 Timing and specific options for characters in T = 0 .............................................................................. 34
7.2.2.2 Command header .................................................................................................................................. 34
7.2.2.3 Command processing ............................................................................................................................ 35
7.2.2.3.1 Procedure bytes ............................................................................................................................... 35
7.2.2.3.2 Status bytes ...................................................................................................................................... 35
7.2.2.4 Error detection and correction ............................................................................................................... 35
7.2.3 Transmission protocol T = 1 ....................................................................................................................... 36
7.2.3.1 Timing and specific options for blocks sent with T = 1 ........................................................................ 36
7.2.3.1.1 Information field size ...................................................................................................................... 36
7.2.3.1.2 Character waiting integer................................................................................................................. 36
7.2.3.1.3 Character waiting time .................................................................................................................... 36
7.2.3.1.4 Block waiting time .......................................................................................................................... 37
7.2.3.1.5 Block guard time ............................................................................................................................. 37
7.2.3.1.6 Waiting time extension .................................................................................................................... 37
7.2.3.1.7 Error detection code ........................................................................................................................ 37
7.2.3.2 Block frame structure ............................................................................................................................ 37
7.2.3.2.1 Prologue field .................................................................................................................................. 38
7.2.3.2.2 Epilogue field .................................................................................................................................. 39
7.2.3.2.3 Block notations ................................................................................................................................ 39
7.2.3.3 Error free operation ............................................................................................................................... 40
7.2.3.4 Error handling for T = 1 ........................................................................................................................ 40
7.2.3.4.1 Protocol initialization ...................................................................................................................... 41
7.2.3.4.2 Block dependent errors .................................................................................................................... 41
7.2.3.5 Chaining ................................................................................................................................................ 41
7.2.3.5.1 Rules for chaining............................................................................................................................ 42
7.3 Transport layer ................................................................................................................................................. 42
7.3.1 Transportation of an APDU using T = 0 ..................................................................................................... 42
7.3.1.1 Mapping of APDUs to TPDUs .............................................................................................................. 42
7.3.1.1.1 Case 1 .............................................................................................................................................. 43
7.3.1.1.2 Case 2 .............................................................................................................................................. 43
7.3.1.1.3 Case 3 .............................................................................................................................................. 44
7.3.1.1.4 Case 4 .............................................................................................................................................. 45
7.3.1.1.5 Use of procedure bytes '61xx' and '6Cxx' ........................................................................................ 46
7.3.2 Transportation of a APDU using T = 1 ....................................................................................................... 47
7.3.2.1 Case 1 .................................................................................................................................................... 47
7.3.2.2 Case 2 .................................................................................................................................................... 47
7.3.2.3 Case 3 .................................................................................................................................................... 48
7.3.2.4 Case 4 .................................................................................................................................................... 48
7.4 Application layer .............................................................................................................................................. 48
7.4.1 Exchange of APDUs ................................................................................................................................... 49
7.4.2 CAT layer ................................................................................................................................................... 49
7.4.2.1 Proactive command ............................................................................................................................... 49
7.4.2.2 ENVELOPE Commands ....................................................................................................................... 50