1、 ETSI TS 102 221 V14.0.0 (2017-02) Smart Cards; UICC-Terminal interface; Physical and logical characteristics (Release 14) TECHNICAL SPECIFICATION ETSI ETSI TS 102 221 V14.0.0 (2017-02)2Release 14Reference RTS/SCP-T102221ve00 Keywords smart card ETSI 650 Route des Lucioles F-06921 Sophia Antipolis C
2、edex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice The present document can be downloaded from: http:/www.etsi.org/standards-search The present document
3、 may be made available in electronic versions and/or in print. The content of any electronic and/or print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any existing or perceived difference in contents between such versions and/or i
4、n print, the only prevailing document is the print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of status. Information on the current status
5、 of this and other ETSI documents is available at https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx If you find errors in the present document, please send your comment to one of the following services: https:/portal.etsi.org/People/CommiteeSupportStaff.aspx Copyright Notification No part may be
6、reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm except as authorized by written permission of ETSI. The content of the PDF version shall not be modified without the written authorization of ETSI. The copyright and the foregoing restr
7、iction extend to reproduction in all media. European Telecommunications Standards Institute 2017. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members. 3GPPTM and LTE are Trade Marks of ETSI registered for the benefit of
8、its Members and of the 3GPP Organizational Partners. GSM and the GSM logo are Trade Marks registered and owned by the GSM Association. ETSI ETSI TS 102 221 V14.0.0 (2017-02)3Release 14Contents Intellectual Property Rights 12g3Foreword . 12g3Modal verbs terminology 12g3Introduction 13g31 Scope 14g32
9、References 14g32.1 Normative references . 14g32.2 Informative references 15g33 Definitions, symbols, abbreviations and coding conventions 16g33.1 Definitions 16g33.2 Symbols 18g33.3 Abbreviations . 18g33.4 Coding conventions 20g34 Physical characteristics. 21g34.0 UICC Form Factors 21g34.0.0 Generic
10、 requirements 21g34.0.1 ID-1 UICC 21g34.0.2 Plug-in UICC 21g34.0.3 Mini-UICC 22g34.0.4 4FF 23g34.1 ID-1 UICC 24g34.2 Plug-in UICC 24g34.3 Mini-UICC . 24g34.4 Environmental conditions for card operation and storage 24g34.4.0 Standard UICC environmental conditions 24g34.4.1 Specific UICC environmental
11、 conditions . 24g34.4.1.0 Specific UICC environmental conditions indication . 24g34.4.1.1 Temperature range for specific UICC environmental conditions 25g34.4.1.2 High humidity . 25g34.5 Contacts 25g34.5.1 Provision of contacts . 25g34.5.1.1 Terminal 25g34.5.1.2 UICC. 25g34.5.2 Contact activation an
12、d deactivation 25g34.5.2.1 Contacts assigned by the present document 25g34.5.2.2 Optional contacts . 26g34.5.3 Inactive contacts . 26g34.5.4 Contact pressure 26g35 Electrical specifications of the UICC - Terminal interface 26g35.0 General requirements . 26g35.1 Class A operating conditions 27g35.1.1
13、 Supply voltage Vcc (contact C1) 27g35.1.2 Reset (RST) (contact C2) 27g35.1.3 Programming voltage Vpp (contact C6) . 27g35.1.4 Clock CLK (contact C3) . 28g35.1.5 I/O (contact C7) 28g35.2 Class B operating conditions 28g35.2.1 Supply voltage Vcc (contact C1) 28g35.2.2 Reset (RST) (contact C2) 29g35.2
14、.3 Clock CLK (contact C3) . 29g35.2.4 I/O (contact C7) 30g35.3 Class C operating conditions 30g35.3.1 Supply voltage Vcc (contact C1) 30g3ETSI ETSI TS 102 221 V14.0.0 (2017-02)4Release 145.3.2 Reset (RST) (contact C2) 31g35.3.3 Clock CLK (contact C3) . 31g35.3.4 I/O (contact C7) 31g36 Initial commun
15、ication establishment procedures . 32g36.1 UICC activation and deactivation. 32g36.2 Supply voltage switching . 32g36.2.0 UICC activation voltage . 32g36.2.1 Supply voltage classes 32g36.2.2 Power consumption of the UICC during ATR 32g36.2.3 Application related electrical parameters 32g36.3 Answer T
16、o Reset content . 33g36.3.0 Introduction. 33g36.3.1 Coding of historical bytes . 34g36.3.2 Speed enhancement. 34g36.3.3 Global Interface bytes . 34g36.4 PPS procedure 35g36.5 Reset procedures 35g36.5.1 Cold reset 35g36.5.2 Warm reset 35g36.5.3 Reaction to resets 36g36.6 Clock stop mode . 36g36.7 Bit
17、/character duration and sampling time . 36g36.8 Error handling 36g36.9 Compatibility 37g37 Transmission protocols. 37g37.0 Introduction 37g37.1 Physical layer . 38g37.2 Data link layer 38g37.2.0 Introduction. 38g37.2.1 Character frame 38g37.2.1.0 Structure, coding and timing . 38g37.2.1.1 Low impeda
18、nce I/O line behaviour . 39g37.2.2 Transmission protocol T = 0 . 39g37.2.2.0 Introduction . 39g37.2.2.1 Timing and specific options for characters in T = 0 39g37.2.2.2 Command header 40g37.2.2.3 Command processing 40g37.2.2.3.0 General description 40g37.2.2.3.1 Procedure bytes . 40g37.2.2.3.2 Status
19、 bytes 40g37.2.2.4 Error detection and correction . 41g37.2.3 Transmission protocol T = 1 . 41g37.2.3.0 Introduction . 41g37.2.3.1 Timing and specific options for blocks sent with T = 1 41g37.2.3.1.0 Introduction . 41g37.2.3.1.1 Information field size 41g37.2.3.1.2 Character waiting integer. 41g37.2
20、.3.1.3 Character waiting time 41g37.2.3.1.4 Block waiting time 42g37.2.3.1.5 Block guard time . 42g37.2.3.1.6 Waiting time extension 42g37.2.3.1.7 Error detection code 42g37.2.3.2 Block frame structure 42g37.2.3.2.0 Overall structure 42g37.2.3.2.1 Prologue field 43g37.2.3.2.2 Epilogue field 44g37.2.
21、3.2.3 Block notations 45g37.2.3.3 Error free operation . 45g37.2.3.4 Error handling for T = 1 46g37.2.3.4.0 General description 46g3ETSI ETSI TS 102 221 V14.0.0 (2017-02)5Release 147.2.3.4.1 Protocol initialization 46g37.2.3.4.2 Block dependent errors 46g37.2.3.5 Chaining 47g37.2.3.5.0 Chaining Mech
22、anism . 47g37.2.3.5.1 Rules for chaining 47g37.3 Transport layer . 47g37.3.0 Introduction. 47g37.3.1 Transportation of an APDU using T = 0 . 47g37.3.1.0 Introduction . 47g37.3.1.1 Mapping of APDUs to TPDUs 48g37.3.1.1.0 General behaviour . 48g37.3.1.1.1 Case 1 48g37.3.1.1.2 Case 2 49g37.3.1.1.3 Case
23、 3 49g37.3.1.1.4 Case 4 50g37.3.1.1.5 Use of procedure bytes 61xx and 6Cxx 51g37.3.2 Transportation of a APDU using T = 1 . 52g37.3.2.0 General mechanism . 52g37.3.2.1 Case 1 52g37.3.2.2 Case 2 52g37.3.2.3 Case 3 53g37.3.2.4 Case 4 53g37.4 Application layer 53g37.4.0 Overall description 53g37.4.1 Ex
24、change of APDUs . 54g37.4.2 CAT layer . 54g37.4.2.0 Overview . 54g37.4.2.1 Proactive command . 54g37.4.2.2 ENVELOPE Commands . 55g37.4.3 Application execution . 55g38 Application and file structure . 56g38.1 UICC application structure . 56g38.2 File types 56g38.2.0 Introduction. 56g38.2.1 Dedicated
25、files 57g38.2.2 Elementary files 57g38.2.2.1 Transparent EF 57g38.2.2.2 Linear fixed EF . 57g38.2.2.3 Cyclic EF 57g38.2.2.4 BER-TLV structure EF . 58g38.3 File referencing 58g38.4 Methods for selecting a file 58g38.4.0 Default state after UICC activation and ATR . 58g38.4.1 SELECT by File Identifier
26、 referencing . 59g38.4.2 SELECT by path referencing 60g38.4.3 Short File Identifier (SFI) . 61g38.5 Application characteristics . 61g38.5.0 Application selection types . 61g38.5.1 Explicit application selection 61g38.5.1.1 SELECT by DF name . 61g38.5.1.2 SELECT by partial DF name 62g38.5.2 Applicati
27、on session activation 62g38.5.3 Application session termination 62g38.5.4 Application session reset 63g38.5.5 Void 63g38.6 Reservation of file Ids 63g38.7 Logical channels . 64g38.8 Shareable versus not-shareable files . 65g38.9 Secure channels 65g39 Security features . 66g3ETSI ETSI TS 102 221 V14.
28、0.0 (2017-02)6Release 149.0 Introduction 66g39.1 Supported security features 66g39.2 Security architecture . 66g39.2.0 Overview and basic rules 66g39.2.1 Security attributes . 67g39.2.2 Access mode . 67g39.2.3 Security condition . 67g39.2.4 Access rules 67g39.2.5 Compact format 68g39.2.6 Expanded fo
29、rmat. 68g39.2.7 Access rule referencing . 68g39.3 Security environment . 69g39.3.0 Description 69g39.3.1 Definition of the security environment . 70g39.3.2 Logical Channels and Security Environment 70g39.4 PIN definitions . 71g39.4.0 Introduction. 71g39.4.1 Universal PIN . 71g39.4.2 Application PIN
30、71g39.4.3 Local PIN 71g39.4.4 PINs and logical channels . 71g39.5 PIN and key reference relationship 72g39.5.0 Introduction. 72g39.5.1 Access condition mapping 72g39.5.2 PIN status indication . 73g310 Structure of commands and responses . 74g310.1 Command APDU . 74g310.1.0 Structure and case . 74g31
31、0.1.1 Coding of Class Byte 75g310.1.2 Coding of Instruction Byte . 76g310.1.3 Coding of parameter bytes 77g310.1.4 Coding of Lc byte . 77g310.1.5 Coding of data part . 77g310.1.6 Coding of Le byte . 77g310.2 Response APDU . 77g310.2.0 Structure 77g310.2.1 Status conditions returned by the UICC . 77g
32、310.2.1.0 Introduction . 77g310.2.1.1 Normal processing 78g310.2.1.2 Postponed processing 78g310.2.1.3 Warnings . 78g310.2.1.4 Execution errors 78g310.2.1.5 Checking errors . 79g310.2.1.5.0 Base checking errors 79g310.2.1.5.1 Functions in CLA not supported . 79g310.2.1.5.2 Command not allowed . 79g3
33、10.2.1.5.3 Wrong parameters . 79g310.2.1.6 Application errors . 80g310.2.2 Status words of the commands . 81g310.3 Logical channels . 83g311 Commands 83g311.1 Generic commands . 83g311.1.0 Introduction. 83g311.1.1 SELECT 83g311.1.1.1 Functional description . 83g311.1.1.2 Command parameters and data
34、. 83g311.1.1.3 Response Data . 84g311.1.1.3.0 Base coding . 84g311.1.1.3.1 Response for MF, DF or ADF . 85g311.1.1.3.2 Response for an EF 85g3ETSI ETSI TS 102 221 V14.0.0 (2017-02)7Release 1411.1.1.4 File control parameters 85g311.1.1.4.1 File size 85g311.1.1.4.2 Total file size . 86g311.1.1.4.3 Fil
35、e Descriptor . 86g311.1.1.4.4 File identifier . 87g311.1.1.4.5 DF name 87g311.1.1.4.6 Proprietary information . 87g311.1.1.4.7 Security attributes 91g311.1.1.4.8 Short file identifier 93g311.1.1.4.9 Life cycle status integer . 93g311.1.1.4.10 PIN status template DO . 93g311.1.2 STATUS . 94g311.1.2.1
36、 Functional description . 94g311.1.2.2 Command parameters 94g311.1.3 READ BINARY . 95g311.1.3.1 Functional description . 95g311.1.3.2 Command parameters 95g311.1.4 UPDATE BINARY 95g311.1.4.1 Functional parameters . 95g311.1.4.2 Command parameters and data . 96g311.1.5 READ RECORD 96g311.1.5.1 Functi
37、onal description . 96g311.1.5.2 Command parameters 97g311.1.6 UPDATE RECORD . 97g311.1.6.1 Functional description . 97g311.1.6.2 Command parameters and data . 98g311.1.7 SEARCH RECORD . 98g311.1.7.1 Functional description . 98g311.1.7.2 Command parameters and data . 99g311.1.8 INCREASE . 100g311.1.8
38、.1 Functional description . 100g311.1.8.2 Command parameters and data . 100g311.1.9 VERIFY PIN 101g311.1.9.1 Functional description . 101g311.1.9.1.1 PIN verification . 101g311.1.9.1.2 PIN retry counter . 101g311.1.9.2 Void. 102g311.1.9.3 Command parameters 102g311.1.10 CHANGE PIN 102g311.1.10.1 Fun
39、ctional description . 102g311.1.10.2 Command parameters 103g311.1.11 DISABLE PIN 103g311.1.11.1 Functional description . 103g311.1.11.2 Command parameters 104g311.1.12 ENABLE PIN . 104g311.1.12.1 Functional description . 104g311.1.12.2 Command parameters 105g311.1.13 UNBLOCK PIN 105g311.1.13.1 Funct
40、ional description . 105g311.1.13.1.1 PIN unblocking 105g311.1.13.1.2 UNBLOCK PIN retry counter . 106g311.1.13.2 Void. 106g311.1.13.3 Command parameters 106g311.1.14 DEACTIVATE FILE 106g311.1.14.1 Functional description . 106g311.1.14.2 Command parameters 107g311.1.15 ACTIVATE FILE . 107g311.1.15.1 F
41、unctional description . 107g311.1.15.2 Command parameters 107g311.1.16 AUTHENTICATE 108g311.1.16.1 Functional description . 108g311.1.16.2 Command parameters and data . 109g3ETSI ETSI TS 102 221 V14.0.0 (2017-02)8Release 1411.1.17 MANAGE CHANNEL . 110g311.1.17.1 Functional description . 110g311.1.17
42、.2 Command parameters and data . 111g311.1.18 GET CHALLENGE 111g311.1.18.1 Functional description . 111g311.1.18.2 Command parameters and data . 112g311.1.19 TERMINAL CAPABILITY . 112g311.1.19.1 Functional description . 112g311.1.19.2 Command parameters and data . 112g311.1.19.2.0 Base coding . 112g
43、311.1.19.2.1 Terminal power supply 113g311.1.19.2.2 Extended logical channels terminal support 113g311.1.19.2.3 Additional interfaces support . 113g311.1.19.2.4 Additional Terminal capability indications related to eUICC . 114g311.1.20 MANAGE SECURE CHANNEL . 114g311.1.20.1 General functional descri
44、ption 114g311.1.20.2 Retrieve UICC Endpoints . 115g311.1.20.2.0 Introduction . 115g311.1.20.2.1 Functional description . 115g311.1.20.2.2 Command parameters and data 116g311.1.20.3 Establish SA - Master SA . 117g311.1.20.3.0 Introduction . 117g311.1.20.3.1 Functional description . 118g311.1.20.3.2 C
45、ommand parameters and data 118g311.1.20.4 Establish SA - Connection SA 120g311.1.20.4.0 Introduction . 120g311.1.20.4.1 Functional description . 120g311.1.20.4.2 Command parameters and data 120g311.1.20.5 Establish SA - Start Secure Channel . 122g311.1.20.5.0 Introduction . 122g311.1.20.5.1 Function
46、al description . 122g311.1.20.5.2 Command parameters and data 122g311.1.20.6 Terminate Secure Channel SA 123g311.1.20.6.0 Introduction . 123g311.1.20.6.1 Functional description . 124g311.1.20.6.2 Command parameters and data 124g311.1.21 TRANSACT DATA . 125g311.1.21.1 General functional description 1
47、25g311.1.21.2 Command parameters and data . 126g311.1.22 SUSPEND UICC 128g311.1.22.1 Functional description . 128g311.1.22.2 UICC suspension . 128g311.1.22.2.1 Introduction . 128g311.1.22.2.2 Functional description . 128g311.1.22.2.3 Command parameters and data 129g311.1.22.3 UICC resume. 129g311.1.
48、22.3.1 Introduction . 129g311.1.22.3.2 Functional description . 130g311.1.22.3.3 Command parameters and data 130g311.2 CAT commands 131g311.2.1 TERMINAL PROFILE . 131g311.2.1.1 Functional description . 131g311.2.1.2 Command parameters and data . 131g311.2.2 ENVELOPE 131g311.2.2.1 Functional descript
49、ion . 131g311.2.2.2 Command parameters and data . 131g311.2.3 FETCH 132g311.2.3.1 Functional description . 132g311.2.3.2 Command parameters and data . 132g311.2.4 TERMINAL RESPONSE . 132g311.2.4.1 Functional description . 132g311.2.4.2 Command parameters and data . 132g3ETSI ETSI TS 102 221 V14.0.0 (2017-02)9Release 1411.3 Data Oriented commands . 133g311.3.0 Overview and generic mechanism 133g311.3.1 RETRIEVE DATA . 134g311.3.1.1 Functional description . 134g311.3.1.2 Command parameters and data . 135g311.3.2 SET DATA . 135g311.3.2.1 Functional description . 135g311.3.2.2