1、 ETSI TS 102 394 V1.1.1 (2005-02)Technical Specification Near Field Communication Interface and Protocol-1 (NFCIP-1);Protocol Test MethodsETSI ETSI TS 102 394 V1.1.1 (2005-02) 2 Reference DTS/ECMA-00298 Keywords NFC, testing ETSI 650 Route des Lucioles F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +
2、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 Individual copies of the present document can be downloaded from: http:/www.etsi.org The present document may be made avai
3、lable in more than one electronic version or in print. In any case of existing or perceived difference in contents between such versions, the reference version is the Portable Document Format (PDF). In case of dispute, the reference shall be the printing on ETSI printers of the PDF version kept on a
4、 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 of this and other ETSI documents is available at http:/portal.etsi.org/tb/status/status.asp If you find e
5、rrors in the present document, please send your comment to one of the following services: http:/portal.etsi.org/chaircor/ETSI_support.asp Copyright Notification No part may be reproduced except as authorized by written permission. The copyright and the foregoing restriction extend to reproduction in
6、 all media. European Telecommunications Standards Institute 2005. All rights reserved. DECTTM, PLUGTESTSTM and UMTSTM are Trade Marks of ETSI registered for the benefit of its Members. TIPHONTMand the TIPHON logo are Trade Marks currently being registered by ETSI for the benefit of its Members. 3GPP
7、TM is a Trade Mark of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. ETSI ETSI TS 102 394 V1.1.1 (2005-02) 3 Contents Intellectual Property Rights6 Foreword.6 Brief history6 1 Scope 7 2 Conformance 7 3 References 7 4 Notational conventions.7 4.1 Representatio
8、n of numbers.7 4.2 Names.7 4.3 Test report 7 5 Definitions8 5.1 Activation in Active communication Mode .8 5.2 Activation in Passive communication Mode 8 5.3 Active communication Mode .8 5.4 Operating volume.8 5.5 Passive communication Mode8 5.6 Single Device Detection (SDD) .8 5.7 Scenario8 5.8 Tes
9、t commands.9 6 Acronyms and abbreviations10 7 General description.10 7.1 Apparatus for Testing.10 7.1.1 Generating the I/O character timing in reception mode10 7.1.2 Measuring and monitoring the RF I/O protocol11 7.1.3 Test scenario and report11 7.1.4 RFU bits11 7.1.5 General rules.11 8 Target test
10、methods 11 8.1 Apparatus for testing the Target (Target-test-apparatus)11 8.2 List of protocol test methods related to ECMA-340 11 8.3 Activation in Passive communication Mode at 212 kbps and 424 kbps.12 8.3.1 Activation time .12 8.3.1.1 Procedure 12 8.3.1.2 Test report .12 8.3.2 Frame format 12 8.3
11、.2.1 Procedure 13 8.3.2.2 Test report .13 8.3.3 SDD at 212 kbps and 424 kbps.13 8.3.3.1 Procedure 13 8.3.3.2 Test report .13 8.4 Activation in Active communication Mode .14 8.4.1 RF Collision Avoidance14 8.4.1.1 Procedure 14 8.4.1.2 Test report .14 8.5 Logical operation of the Target Transport Proto
12、col .14 8.5.1 Handling of ATR_REQ 14 8.5.1.1 Procedure 14 8.5.1.2 Test report .15 8.5.2 Handling of PSL_REQ .15 8.5.2.1 Procedure 16 8.5.2.2 Test report .17 ETSI ETSI TS 102 394 V1.1.1 (2005-02) 4 8.5.3 Handling of DEP_REQ Information PDUs 17 8.5.3.1 Procedure 17 8.5.3.2 Test report .19 8.5.4 Handli
13、ng of DEP_REQ Information PDUs with the “more information“ bit set to ONE 19 8.5.4.1 Procedure 20 8.5.4.2 Test report .22 8.5.5 Handling of DEP_REQ supervisory PDUs with timeout bit set to ONE .22 8.5.5.1 Procedure 22 8.5.5.2 Test report .23 8.5.6 Handling of DEP_REQ supervisory PDUs with timeout bi
14、t set to ZERO24 8.5.6.1 Procedure 24 8.5.6.2 Test report .25 8.5.7 Handling of DSL_REQ.25 8.5.7.1 Procedure 25 8.5.7.2 Test report .26 8.5.8 Handling of RLS_REQ.26 8.5.8.1 Procedure 27 8.5.8.2 Test report .27 8.5.9 Handling of WUP_REQ (Active communication Mode Only) 28 8.5.9.1 Procedure 28 8.5.9.2
15、Test report .30 9 Initiator test methods30 9.1 Apparatus for testing the Initiator (Initiator-test-apparatus).30 9.1.1 Initiator test apparatus concept .30 9.1.2 Protocol activation procedure for Passive communication Mode at 106 kbps .31 9.1.3 Protocol activation procedures for Passive communicatio
16、n Mode at 212 kbps and 424 kbps31 9.1.4 Protocol activation procedures for Active communication Mode.31 9.2 List of protocol test methods for Initiators .32 9.3 Activation in Passive communication Mode at 212 kbps and 424 kbps.32 9.3.1 Frame format 32 9.3.1.1 Procedure 33 9.3.1.2 Test report .33 9.3
17、.2 SDD at 212 kbps and 424 kbps.33 9.3.2.1 Procedure 33 9.3.2.2 Test report .33 9.4 Activation in Active communication Mode .33 9.4.1 Initial RF Collision Avoidance .33 9.4.1.1 Procedure 34 9.4.1.2 Test report .34 9.4.2 Response RF Collision Avoidance with time jitter n = 034 9.4.2.1 Procedure 34 9.
18、4.2.2 Test report .34 9.5 Logical operation of the Transport Protocol.34 9.5.1 Handling of ATR_RES.34 9.5.1.1 Procedure 35 9.5.1.2 Test report .35 9.5.2 Handling of PSL_RES 35 9.5.2.1 Procedure 35 9.5.2.2 Test report .36 9.5.3 Handling of DEP_RES Information PDUs.36 9.5.3.1 Procedure 36 9.5.3.2 Test
19、 report .37 9.5.4 Handling of DEP_RES Information PDUs with more information bit set to ONE .38 9.5.4.1 Procedure 38 9.5.4.2 Test report .40 9.5.5 Handling of DEP_RES supervisory PDUs with timeout bit set to ONE40 9.5.5.1 Procedure 40 9.5.5.2 Test report .41 9.5.6 Handling of DEP_RES supervisory PDU
20、s with timeout bit set to ZERO 42 9.5.6.1 Procedure 42 9.5.6.2 Test report .42 ETSI ETSI TS 102 394 V1.1.1 (2005-02) 5 9.5.7 Handling of DSL_RES .42 9.5.7.1 Procedure 43 9.5.7.2 Test report .43 9.5.8 Handling of RLS_RES43 9.5.8.1 Procedure 44 9.5.8.2 Test report .44 Annex A (normative): Test report
21、template for Target tests .45 Annex B (normative): Test report template for Initiator tests 48 History 51 ETSI ETSI TS 102 394 V1.1.1 (2005-02) 6 Intellectual Property Rights IPRs essential or potentially essential to the present document may have been declared to ETSI. The information pertaining to
22、 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. La
23、test updates are available on the ETSI Web server (http:/webapp.etsi.org/IPR/home.asp). 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 updat
24、es on the ETSI Web server) which are, or may be, or may become, essential to the present document. Foreword This Technical Specification (TS) has been produced by ECMA on behalf of its members and those of the European Telecommunications Standards Institute (ETSI). Brief history In 2002, Ecma Intern
25、ational formed Task Group 19 of Technical Committee 32 to specify Near Field Communication (NFC) signal interfaces and protocols. The NFC devices are wireless closely coupled devices communicating at 13,56 MHz. The General Assembly of December 2002 adopted Near Field Communication Interface and Prot
26、ocol-1 (NFCIP-1) as Standard ECMA-340 1. The present document specifies protocol tests for ECMA-340 1 and complements ECMA-356 2, which specifies the RF interface tests for ECMA-340 1. ETSI ETSI TS 102 394 V1.1.1 (2005-02) 7 1 Scope The present document specifies protocol test methods for ECMA-340 1
27、 in addition to those specified in ECMA-356 2. 2 Conformance In addition to conforming to ECMA-356 2, implementations of ECMA-340 1 shall pass all normative tests and requirements specified herein; test results shall be recorded using annexes A and B of the present document. 3 References The followi
28、ng are normative references for the purpose of the present document. Referenced documents which are not found to be publicly available in the expected location might be found at http:/docbox.etsi.org/Reference. 1 ECMA-340: “Near Field Communication - Interface and Protocol (NFCIP-1)“. 2 ECMA-356: “N
29、FCIP-1 - RF Interface Test Methods“. 3 ISO/IEC 10373-6: “Identification cards - Test methods - Part 6: Proximity cards“. 4 Notational conventions 4.1 Representation of numbers The following conventions and notations apply in the present document unless otherwise stated. - Letters and digits in paren
30、theses represent numbers in hexadecimal notation. - The setting of bits is denoted by ZERO or ONE. - Numbers in binary notation and bit patterns are represented by strings of digits 0 and 1 shown with the most significant bit to the left. Within such strings, X may be used to indicate that the setti
31、ng of a bit is not specified within the string. 4.2 Names The names of basic elements, e.g. specific fields, are written with a capital initial letter. 4.3 Test report The test report includes the number of passed tests versus the total number of tests, the number of different samples and the date o
32、f the tests, see annexes A and B. ETSI ETSI TS 102 394 V1.1.1 (2005-02) 8 5 Definitions 5.1 Activation in Active communication Mode Flow to activate the DUT in Active communication Mode as defined in ECMA-340 1, which includes initialization and protocol activation. 5.2 Activation in Passive communi
33、cation Mode Flow to activate the DUT in Passive communication Mode as defined in ECMA-340 1, which includes initialization and protocol activation. 5.3 Active communication Mode In the Active communication Mode scheme, as defined in ECMA-340 1, both the Initiator and the Target use their own RF fiel
34、d to enable the communication. 5.4 Operating volume A volume with a field strength of at least Hminand not exceeding Hmaxgenerated by a NFC device at manufacturer specified positions. 5.5 Passive communication Mode The Initiator is generating the RF field and the Target responds to an Initiator comm
35、and in a load modulation scheme as defined in ECMA-340 1. 5.6 Single Device Detection (SDD) SDD is an algorithm used by the initiator to detect one out of several Targets in its RF field. 5.7 Scenario A scenario is a protocol and application specific sequence test operations. Scenario description ta
36、bles list all individual test operations. A horizontal line in a scenario description table indicates that the device shall be reset to initial conditions. ETSI ETSI TS 102 394 V1.1.1 (2005-02) 9 5.8 Test commands Commands defined for dedicated functional behaviour on an implemented system according
37、 to ECMA-340 1. The PDUs that are actually used in these commands shall be recorded in the test report (see annexes A and B). Definitions valid for all test commands: xx PNI The following test commands are specified based on PDUs specified in ECMA-340 1: A(ACK)xxDEP_REQ or DEP_RES PDU coded as ACK/N
38、ACK PDU with ACK/NACK bit set to ZERO and PNI set to xx. A(NACK)xxDEP_REQ or DEP_RES PDU coded as ACK/NACK PDU with ACK/NACK bit set to ONE and PNI set to xx. S(A) DEP_REQ or DEP_RES PDU coded as Supervisory PDU (as defined in ECMA-340) with the Timeout bit set to ZERO. No PNI is used for this comma
39、nd. S(TO) DEP_REQ or DEP_RES PDU coded as Supervisory PDU (as defined in ECMA-340) with the Timeout bit set to ONE. No PNI is used for this command. TEST_COMMAND1xxDefault Test command, it is a DEP_REQ frame coded as information PDU with “More Information“ bit set to ZERO (no chaining) and the PNI s
40、et to xx. The Initiator or the target-test-apparatus sends this PDU. TEST_RESPONSE1xxResponse to TEST_COMMAND1 (DEP_RES) with the PNI set to xx. TEST_COMMAND2xxTest command used for tests of the chaining procedure. This command forces the counterpart (either Initiator or Target) to use chaining in t
41、he next DEP_REQ. This command is a DEP_REQ or DEP_RES frame, for an Initiator or Target respectively, with its “More Information“ bit set to ZERO and it uses the same PDU as TEST_COMMAND1, but this PDU has different data. TEST_COMMAND3BxxThis command marks the beginning of a DEP_REQ or DEP_RES frame
42、, for an Initiator or Target respectively, with its “More Information“ bit set to ONE and the PNI set to xx. TEST_COMMAND3nxxThis command is sent after TEST_COMMAND3B and before TEST_COMMAND3E. The lower case n represents a number ranging from 0 to 9. This command has the “More Information“ bit set
43、to ONE and the PNI set to xx. TEST_COMMAND3ExxThis command marks the end of the chaining procedure and is a DEP_REQ or DEP_RES frame, for an Initiator or Target respectively, with the “More Information“ bit set to ZERO and the PNI set to xx. TEST_RESPONSE3xxis the response to the chaining command. S
44、hall be a DEP_REQ or DEP_RES frame, for an Initiator or Target respectively, with the “More Information“ bit set to ZERO and the PNI set to xx. TEST_COMMAND4xxTest command used for tests dealing with frame waiting time. The Initiator sends this command and forces the Target to use a Supervisory PDU
45、with the timeout bit set to ONE and the PNI set to xx. TEST_RESPONSE4xxis the response to TEST_COMMAND4. It is a DEP_RES with the “More Information“ bit set to ZERO and the PNI set to xx. It may be the same as TEST_RESPONSE1. ETSI ETSI TS 102 394 V1.1.1 (2005-02) 106 Acronyms and abbreviations ATR_R
46、EQ ATtribute REQuest command as defined in ECMA-340 ATR_RES RESponse to the ATR_REQ CRC Cyclic Redundancy Check as defined in annex A of ECMA-340 CRC CRC as defined above with all bits inverted DEP_REQ Data Exchange Protocol Request as defined in ECMA-340 DEP_RES RESponse to the Data Exchange Protoc
47、ol Request DID Device ID as defined in ECMA-340 DSL_REQ DeSeLect Request command as defined in ECMA-340 DSL_RES Response to the DSL_REQ DUT Device Under Test fc Frequency of operating field (carrier frequency) as defined in ECMA-340 Hmax Maximum field strength of the Initiator antenna field as defin
48、ed in ECMA-340 Hmin Minimum field strength of the Initiator antenna field as defined in ECMA-340 HThreshold Defined in ECMA-340 ID IDentification number LT Lower Tester the Target-emulation part of the Initiator-Test-apparatus Mute No response within a specified timeout NFC Near Field Communication
49、PDU Protocol Data Unit as defined in ECMA-340 PNI Package Number Information as defined in ECMA-340 POL_REQ POlling REQuest command as defined in ECMA-340 POL_RES RESponse to the Polling Request PSL_REQ Parameter SeLect Request command as defined in ECMA-340 PSL_RES RESponse to the PSL_REQ RF Radio Frequency RFU Reserved for Future Use RLS_REQ ReLease Request command as defined in ECMA-340 RLS_RES Response to the RLS_REQ SDD Single Device Detection as defined in ECMA-340 Td The delay between the end of the Request frame and the start of the