ETSI TS 102 695-3 V13.0.0 (2019-04)
Smart Cards; Test specification for the Host Controller Interface (HCI); Part 3: Host Controller features (Release 13)
Smart Cards; Test specification for the Host Controller Interface (HCI); Part 3: Host Controller features (Release 13)
RTS/SCP-00HCIHvd00
General Information
Standards Content (Sample)
TECHNICAL SPECIFICATION
Smart Cards;
Test specification for the Host Controller Interface (HCI);
Part 3: Host Controller features
(Release 13)
Release 13 2 ETSI TS 102 695-3 V13.0.0 (2019-04)
Reference
RTS/SCP-00HCIHvd00
Keywords
smart card, terminal
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - 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 enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search
The present document 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 in print, the prevailing version of an ETSI
deliverable is the one made publicly available in PDF format at www.etsi.org/deliver.
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 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 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 restriction extend to reproduction in all media.
© ETSI 2019.
All rights reserved.
TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are trademarks of ETSI registered for the benefit of its Members.
TM TM
3GPP and LTE are trademarks of ETSI registered for the benefit of its Members and
of the 3GPP Organizational Partners.
oneM2M™ logo is a trademark of ETSI registered for the benefit of its Members and
of the oneM2M Partners. ®
GSM and the GSM logo are trademarks registered and owned by the GSM Association.
ETSI
Release 13 3 ETSI TS 102 695-3 V13.0.0 (2019-04)
Contents
Intellectual Property Rights . 8
Foreword . 8
Modal verbs terminology . 9
Introduction . 9
1 Scope . 10
2 References . 10
2.1 Normative references . 10
2.2 Informative references . 11
3 Definition of terms, symbols, abbreviations and formats . 11
3.1 Terms . 11
3.2 Symbols . 11
3.3 Abbreviations . 11
3.4 Formats . 12
3.4.1 Format of the table of optional features . 12
3.4.2 Format of the applicability table . 12
3.4.3 Status and Notations . 12
3.4.4 Format of the conformance requirements tables . 13
4 Test environment . 14
4.1 Table of optional features . 14
4.2 Applicability table . 15
4.3 Information to be provided by the device supplier . 17
4.4 Test equipment . 17
4.4.0 Base Requirements . 17
4.4.1 Measurement / setting uncertaintie s . 18
4.4.2 Default conditions for DUT operation . 18
4.4.2.1 General . 18
4.4.2.2 Status of UICC interfaces . 18
4.4.3 Minimum/maximum conditions for DUT operation . 18
4.4.4 Conventions . 18
4.5 Test execution . 18
4.5.1 Parameter variations . 18
4.5.2 Execution requirements . 18
4.6 Pass criterion . 19
4.6.0 Principle . 19
4.6.1 Unanticipated behaviour from the DUT . 19
5 Test cases . 19
5.1 HCI architecture . 19
5.1.1 Overview . 19
5.1.2 Hosts . 20
5.1.3 Gates . 20
5.1.3.1 Conformance requirements . 20
5.1.4 Pipes. 20
5.1.4.1 Conformance requirements . 20
5.1.5 Registries . 21
5.1.5.1 Conformance requirements . 21
5.2 HCP . 21
5.2.1 HCP packets. 21
5.2.1.1 Conformance requirements . 21
5.2.2 HCP message structure . 22
5.2.2.1 Conformance requirements . 22
5.2.3 Message fragmentation . 22
5.2.3.1 Conformance requirements . 22
5.3 Instructions . 22
ETSI
Release 13 4 ETSI TS 102 695-3 V13.0.0 (2019-04)
5.3.1 Commands . 22
5.3.1.1 Overview . 22
5.3.1.1.1 Conformance requirements . 22
5.3.1.2 Generic commands . 23
5.3.1.2.1 ANY_SET_PARAMETER . 23
5.3.1.2.2 ANY_GET_PARAMETER. 24
5.3.1.2.3 ANY_OPEN_PIPE . 25
5.3.1.2.4 ANY_ CLOSE_P IP E . 26
5.3.1.3 Administration commands . 26
5.3.1.3.1 ADM_CREATE_PIPE . 26
5.3.1.3.2 ADM_NOTIFY_PIPE_CREATED . 27
5.3.1.3.3 ADM_DELETE_PIPE . 27
5.3.1.3.4 ADM_NOTIFY_PIPE_DELETED . 27
5.3.1.3.5 ADM_CLEAR_ALL_PIPE . 27
5.3.1.3.6 ADM_NOTIFY_ALL_PIPE_CLEARED . 28
5.3.2 Responses . 28
5.3.2.1 Conformance requirements . 28
5.3.2.2 Test case 1: responses received out of order, previous commands sent by host . 28
5.3.2.2.1 Test execution . 28
5.3.2.2.2 Initial conditions . 28
5.3.2.2.3 Test procedure . 28
5.3.2.3 Test case 2: responses received out of order, previous commands sent by host controller . 29
5.3.2.3.1 Test execution . 29
5.3.2.3.2 Initial conditions . 29
5.3.2.3.3 Test procedure . 29
5.3.3 Events . 29
5.3.3.1 Conformance requirements . 29
5.4 GATES and subclauses . 30
5.4.1 GATES . 30
5.4.1.1 Conformance requirements . 30
5.4.2 Management gates . 30
5.4.2.1 Administration gates . 30
5.4.2.1.1 Host controller administration gate . 30
5.4.2.1.2 Host administration gate . 31
5.4.2.2 Link management gate . 31
5.4.2.2.1 Host controller link management gate . 31
5.4.2.2.2 Host link management gate . 32
5.4.2.3 Identity management gate . 33
5.4.2.3.1 Local registry . 33
5.4.2.3.2 Remote registry . 34
5.4.2.4 Loop back gate . 35
5.4.2.4.1 Conformance requirements . 35
5.4.3 Generic gates . 35
5.5 HCI procedures . 35
5.5.1 Pipe management . 35
5.5.1.1 Pipe creation . 35
5.5.1.1.1 Conformance requirements . 35
5.5.1.1.2 Test case 1: valid pipe creation from host simulator to another host . 36
5.5.1.1.3 Test case 2: pipe creation from host simulator to another host, host simulator not in other
host's WHITELIST . 36
5.5.1.1.4 Test case 3: pipe creation from host simulator to another host, other host rejects pipe creation . 37
5.5.1.1.5 Test case 4: valid pipe creation from host controller to host simulator . 37
5.5.1.1.6 Test case 5: pipe creation from host simulator to host controller, pipe not supported by host
controller . 38
5.5.1.2 Pipe deletion . 38
5.5.1.2.1 Conformance requirements . 38
5.5.1.2.2 Test case 1: valid pipe deletion from host simulator to another host . 39
5.5.1.3 Clear all Pipes . 39
5.5.1.3.1 Conformance requirements . 39
5.5.1.3.2 Test case 1: clear all pipes from host controller - static pipes, dynamic pipes to host . 39
5.5.2 Registry access . 40
5.5.3 Host and Gate discovery . 40
ETSI
Release 13 5 ETSI TS 102 695-3 V13.0.0 (2019-04)
5.5.4 Session initialization . 40
5.5.4.1 Conformance requirements . 40
5.5.5 Loop back testing . 41
5.5.5.1 Conformance requirements . 41
5.5.5.2 Test case 1: pipe creation . 41
5.5.5.2.1 Test execution . 41
5.5.5.2.2 Initial conditions . 41
5.5.5.2.3 Test procedure . 41
5.6 Contactless card emulation . 41
5.6.1 Overview . 41
5.6.1.1 Conformance requirements . 41
5.6.2 Void . 42
5.6.3 Gates . 42
5.6.3.1 Void. 42
5.6.3.2 Identity management gate . 42
5.6.3.2.1 Conformance requirements . 42
5.6.3.3 Card RF gates . 42
5.6.3.3.1 Overview . 42
5.6.3.3.2 Commands . 42
5.6.3.3.3 Events and subclauses . 42
5.6.3.3.4 Registry and subclauses . 43
5.6.3.4 Card application gates . 49
5.6.3.4.1 Overview . 49
5.6.3.4.2 Commands . 49
5.6.3.4.3 Events and subclauses . 49
5.6.3.4.4 Registry . 50
5.6.4 Procedures. 51
5.6.4.1 Use of contactless card application . 51
5.6.4.1.1 Conformance requirements . 51
5.6.4.2 Non ISO/IEC 14443-4 type A applications . 51
5.6.4.2.1 Conformance requirements . 51
5.6.4.3 Type B' RF technology . 52
5.6.4.3.1 Conformance requirements . 52
5.6.4.4 Type F RF technology . 52
5.6.4.4.1 Conformance requirements . 52
5.6.4.4.2 Test case 1: NFCIP-1 command is not forwarded to UICC . 53
5.6.4.5 Update RF technology settings . 54
5.6.4.5.1 Conformance requirements . 54
5.6.4.6 Identity check . 54
5.6.4.6.1 Conformance requirements . 54
5.7 Contactless reader. 54
5.7.1 Overview . 54
5.7.1.1 Conformance requirements . 54
5.7.2 Reader RF gates . 55
5.7.2.1 Overview . 55
5.7.2.2 Command . 55
5.7.2.2.1 WR_XCHG_DATA . 55
5.7.2.3 Registries . 56
5.7.2.3.1 Type A reader RF gate . 56
5.7.2.3.2 Type B reader RF gate . 57
5.7.2.4 Events and subclauses . 57
5.7.2.4.1 Events . 57
5.7.2.4.2 EVT_READER_REQUESTED . 58
5.7.2.4.3 EVT_END_OPERATION. 58
5.7.2.4.4 EVT_READER_STATUS . 58
5.7.2.5 Responses . 58
5.7.2.5.1 Conformance requirements . 58
5.7.3 Reader application gates . 59
5.7.3.1 Overview . 59
5.7.3.2 Command . 59
5.7.3.2.1 Conformance requirements . 59
5.7.3.3 Registry . 59
ETSI
Release 13 6 ETSI TS 102 695-3 V13.0.0 (2019-04)
5.7.3.3.1 Conformance requirements . 59
5.7.3.4 Events and subclauses . 59
5.7.3.4.1 Events . 59
5.7.3.4.2 EVT_TARGET_DISCOVERED . 59
5.7.4 Procedures. 60
5.7.4.1 Use of contactless reader application . 60
5.7.4.1.1 Conformance requirements . 60
5.7.4.2 Contactless reader not available . 60
5.7.4.2.1 Conformance requirements . 60
5.7.4.3 Error management . 60
5.7.4.3.1 Conformance requirements . 60
5.8 Connectivity . 61
5.8.1 Overview . 61
5.8.2 Connectivity gate and subclauses . 61
5.8.2.1 Connectivity gate . 61
5.8.2.2 Commands . 61
5.8.2.2.1 PRO_HOST_REQUEST . 61
5.8.2.3 Events and subclauses . 61
5.8.2.3.1 Events . 61
5.8.2.3.2 EVT_CONNECTIVITY . 61
5.8.2.3.3 Void . 61
5.8.2.3.4 EVT_OPERATION_ENDED . 62
5.8.2.3.5 EVT_TRANSACTION . 62
5.8.2.4 Registry . 62
5.8.2.4.1 Conformance requirements . 62
5.8.3 Connectivity application gate and subclauses . 62
5.8.3.1 Connectivity application gate . 62
5.8.3.1.1 Conformance requirements . 62
5.8.3.2 Commands . 63
5.8.3.2.1 Conformance requirements . 63
5.8.3.3 Events and subclauses . 63
5.8.3.3.1 Events . 63
5.8.3.3.2 EVT_STANDBY . 63
5.8.3.4 Registry . 63
5.8.3.4.1 Conformance requirements . 63
5.8.4 Procedures. 63
5.8.4.1 Use of connectivity gate . 63
5.9 APDU Transport . 63
5.9.1 Server APDU host (APDU gate) . 63
5.9.1.1 General . 63
5.9.1.1.1 Conformance requirements . 63
5.9.1.2 Commands . 64
5.9.1.3 Events . 64
5.9.1.3.1 Conformance requirements . 64
5.9.1.4 Registry . 65
5.9.1.4.1 Conformance requirements . 65
5.9.1.5 State diagram for the APDU gate . 65
5.9.1.5.1 Conformance requirements . 65
5.9.2 Client APDU host (APDU application gate) . 65
5.9.2.1 General . 65
5.9.2.1.1 Conformance requirements . 65
5.9.2.2 Commands . 65
5.9.2.3 Events . 65
5.9.2.3.1 Conformance requirements . 65
5.9.2.3.2 Test case 1: initial activation of APDU gate – Client APDU host . 66
5.9.2.3.3 Test case 2: APDU command processing after reboot . 67
5.9.2.4 Registry . 67
5.9.2.5 State diagram for the APDU gate . 67
5.9.2.5.1 Conformance requirements . 67
Annex A (informative): Bibliography . 68
ETSI
Release 13 7 ETSI TS 102 695-3 V13.0.0 (2019-04)
Annex B (informative): Core specification version information . 69
Annex C (informative): Change history . 70
History . 71
ETSI
Release 13 8 ETSI TS 102 695-3 V13.0.0 (2019-04)
Intellectual Property Rights
Essential patents
IPRs essential or potentially essential to normative deliverables may have been declared to ETSI. The information
pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found
in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in
respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web
server (https://ipr.etsi.org/).
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Trademarks
The present document may include trademarks and/or tradenames which are asserted and/or registered by their owners.
ETSI claims no ownership of these except for any which are indicated as being the property of ETSI, and conveys no
right to use or reproduce any trademark and/or tradename. Mention of those trademarks in the present document does
not constitute an endorsement by ETSI of products, services or organizations associated with those trademarks.
Foreword
This Technical Specification (TS) has been produced by ETSI Technical Committee Smart Card Platform (SCP).
The contents of the present document are subject to continuing work within TC SCP and may change following formal
TC SCP approval. If TC SCP modifies the contents of the present document, it will then be republished by ETSI with
an identifying change of release date and an increase in version number as follows:
Version x.y.z
where:
x the first digit:
0 early working draft;
1 presented to TC SCP for information;
2 presented to TC SCP for approval;
3 or greater indicates TC SCP approved document under change control.
y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections,
updates, etc.
z the third digit is incremented when editorial only changes have been incorporated in the document.
The present document is part 3 of a multi-part deliverable covering the Test specification for the Host Controller
Interface (HCI), as identified below:
Part 1: "Terminal features";
Part 2: "UICC features";
Part 3: "Host Controller features".
ETSI
Release 13 9 ETSI TS 102 695-3 V13.0.0 (2019-04)
Modal verbs terminology
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and
"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of
provisions).
"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.
Introduction
The present document defines test cases for the terminal relating to the Host Controller Interface (HCI) as specified in
ETSI TS 102 622 [1].
The aim of the present document is to ensure interoperability between the terminal and the UICC independently of the
respective manufacturer, card issuer or operator.
ETSI
Release 13 10 ETSI TS 102 695-3 V13.0.0 (2019-04)
1 Scope
The present document covers additional test cases for the Host Controller to those specified in ETSI TS 102 695-1 [10].
The present document specifies the test cases for:
• the HCI core as described in the first part of ETSI TS 102 622 [1];
• the contactless platform as described in the second part of ETSI TS 102 622 [1].
Test cases for the UICC and terminal relating to ETSI TS 102 622 [1] and test cases for the Single Wire Protocol (SWP)
covering both terminal and UICC are out of scope of the present document.
2 References
2.1 Normative references
References are either specific (identified by date of publication and/or edition number or version number) or
non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the
referenced document (including any amendments) applies.
• In the case of a reference to a TC SCP document, a non-specific reference implicitly refers to the latest version
of that document in the same Release as the present document.
...








Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.
Loading comments...