1、raising standards worldwide NO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAW BSI Standards Publication BS ISO/IEC 10373-8:2011 Identification cards Te s t methods Part 8: USB-ICCBS ISO/IEC 10373-8:2011 BRITISH STANDARD National foreword This British Standard is the UK implement
2、ation of ISO/IEC 10373-8:2011. The UK participation in its preparation was entrusted to T e c h n i c a l C o m m i t t e e I S T / 1 7 , C a r d s a n d p e r s o n a l i d e n t i f i c a t i o n . A list of organizations represented on this committee can be obtained on request to its secretary. T
3、his publication does not purport to include all the necessary provisions of a contract. Users are responsible for its correct application. BSI 2011 ISBN 978 0 580 63678 3 ICS 35.240.15 Compliance with a British Standard cannot confer immunity from legal obligations. This British Standard was publish
4、ed under the authority of the Standards Policy and Strategy Committee on 30 April 2011. Amendments issued since publication Date T e x t a f f e c t e dBS ISO/IEC 10373-8:2011Reference number ISO/IEC 10373-8:2011(E) ISO/IEC 2011INTERNATIONAL STANDARD ISO/IEC 10373-8 First edition 2011-03-15 Identifi
5、cation cards Test methods Part 8: USB-ICC Cartes didentification Mthodes dessai Partie 8: USB-ICC BS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall not
6、be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe
7、is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO mem
8、ber bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2011 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
9、 or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 4
10、7 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2011 All rights reservedBS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) ISO/IEC 2011 All rights reserved iiiContents Page Foreword .v Introductionvi 1 Scope1 2 Normative references1 3 Terms and definitions .1 4 Symbols and
11、 abbreviated terms3 5 Testing USB Physical and Electrical Characteristics3 5.1 Introduction3 6 Test Set-Up.4 6.1 Basic Configuration 4 6.2 USB Protocol Analyzer features 5 6.3 Devices under Test5 7 Test Classification and Validation Criteria .6 7.1 Test Classification.6 7.2 Test types.6 7.3 Test Tar
12、gets .7 7.4 Test criticality 7 7.5 Test Acceptance and refusal criteria.7 8 USB Protocol Compliance Test Procedure 8 8.1 USB Protocol Tests Groups .8 8.2 Test Description Framework 8 8.2.1 USB signals management Testing 9 8.2.2 Timing management Test .14 8.2.3 Low level protocol and error recovery T
13、esting 15 8.2.4 Cancel and Abandon Tests 19 8.2.5 USB State Machine20 8.3 Standard Request management Tests20 8.3.1 Objectives 20 8.3.2 Requirements.20 8.3.3 Initial condition20 8.3.4 Nominal cases .20 8.3.5 Test List21 8.3.6 Error cases.22 8.3.7 Common Test Conditions.22 8.3.8 Test List23 9 Tests f
14、or compliance with CCID Class24 9.1 Objectives 24 9.2 Control A Transfer Individual Request Test .24 9.2.1 Test Description 24 9.2.2 Objectives 24 9.2.3 Requirements.24 9.2.4 Initial USB-ICC condition:.25 9.2.5 Testing Set-Up .25 9.2.6 Test List: Individual Requests in Nominal and with Error Cases.2
15、5 9.3 Control A Transfer State Diagram Test.27 9.3.1 Objectives 27 9.3.2 Requirements.27 BS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) iv ISO/IEC 2011 All rights reserved9.3.3 Initial condition . 27 9.3.4 Type of Test. 27 9.3.5 Test Description 27 9.3.6 Control transfer version A: Test list . 28 B
16、ibliography. 33 BS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) ISO/IEC 2011 All rights reserved vForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that
17、are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other internati
18、onal organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards are drafted in accordance with the rules given in t
19、he ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at l
20、east 75 % of the national bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. ISO/IEC 10373-8 was prepared by Joint Techni
21、cal Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 17, Cards and personal identification. ISO/IEC 10373 consists of the following parts, under the general title Identification cards Test methods: Part 1: General characteristics Part 2: Cards with magnetic stripes Part 3: Integrated
22、 circuit cards with contacts and related interface devices Part 5: Optical memory cards Part 6: Proximity cards Part 7: Vicinity cards Part 8: USB-ICC Part 9: Optical memory cards: Holographic recording method BS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) vi ISO/IEC 2011 All rights reservedIntrodu
23、ction The USB-ICC is a complex device supporting the USB protocol. The layered structure of the USB protocol involves setting the USB-ICC in different testing configurations when a card manufacturer needs to set forth a Validation Plan. In addition, any USB device belongs to a USB Class. Therefore,
24、the comprehensive testing of any USB device involves carefully developing a Test Plan that includes three different groups of Tests: 1) evaluation of the Electrical, Physical features; 2) effective execution of the USB protocol; 3) execution of Tests designed to prove the compliance of the USB devic
25、e with its specific Class. These High-Level Groups of Test are made up of a series of individual Test Scenarios. These scenarios challenge the device, and are designed so that any non-compliance of the card could be disclosed. The final objective is to guarantee the compatibility of the USB-ICC with
26、 other USB-compliant devices. Figure 1 summarizes the Validation Test Framework for the USB-ICC that this part of ISO/IEC 10373 suggests for the USB-ICC. Figure 1 Compliance test overview According to ISO/IEC 7816-12, the USB-ICC is required to comply with the USB Specification 2.0 at physical and e
27、lectrical levels This specification is common to all USB devices; it is published by the USB Implementers Forum, which has also published some Compliance Test Procedures that can be used to test some of the functionalities of the card. Note that ISO/IEC 7816-12 actually describes the USB-ICC Device
28、Class, and testing procedures specific to the USB-ICC Class are not available. TESTS PHYSICAL discusses issues relative to the Test Tools to analyse USB bus traffic and provides guidance for the Test Scenarios given in this part of ISO/IEC 10373; proposes a classification of Test Scenarios given in
29、this part of ISO/IEC 10373, along with validation criteria; discusses Test Cases for compliance with the USB CCID Class Device. NOTE Compliance means cards that are called USB-ICC products are designed to match the description in ISO/IEC 7816-12. 2 Normative references The following referenced docum
30、ents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. ISO/IEC 7816-12:2005, Identification cards Integrated circuit cards Part 12: Ca
31、rds with contacts USB electrical interface and operating procedures RE1 in Test Tags in this part of ISO/IEC 10373 Universal Serial Bus specification Revision 2.0, 27 April 2000 RE2 in this part of ISO/IEC 10373 3 Terms and definitions 3.1 USB Request Control Transfer Request transmission unit for t
32、he Control Transfer mode, composed of a Setup Stage (3.5), an optional Data Stage (3.2) and a Status Stage (3.6) NOTE 1 Used in particular for the enumeration (3.4) phase. NOTE 2 The sum of these stages establishes an applicative protocol layer. NOTE 3 A Request can be either Standard, Class Specifi
33、c or Vendor Specific. BS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) 2 ISO/IEC 2011 All rights reserved3.2 Data Stage part of the Control Transfer that conveys the data associated with a given Request in one or more Data Bus Transactions 3.3 endpoint communication channel established between a host
34、 and a device NOTE An endpoint is generally mono-directional, except for the Control Transfer mode, where the endpoint is upstream and downstream at the same time. 3.4 enumeration Standard Procedure for recognition by the host of the USB-ICC for setting up a communication pipe, during which the host
35、 attributes a unique address to the device, and the device driver(s) configure(s) the USB-ICC properly NOTE 1 It starts when a device is plugged onto a USB port. NOTE 2 It allows one or more suitable device drivers to be attributed to the device. 3.5 Setup Stage part of a request (see Request) conta
36、ining the request definition NOTE The Setup Stage contains the target identification of the request, its direction and the length of the next Data Stage. 3.6 Status Stage part of a request (see Request) standing for global acknowledge of the request NOTE Any request (except the SetAddress request) i
37、s supposed to be terminated before the Status Stage is completed. 3.7 transfer USB transfer one or more USB transactions NOTE A transfer is generally mono-directional (downstream from host to device, or upstream from device to host), except for the Control Transfer transfers that are always bi-direc
38、tional. 3.8 USB mode mode of transfer used by the USB protocol NOTE The USB protocol uses four different modes of transfer: The Control Transfer (used for enumeration, and certain interfaces), the Interrupt Transfer (simulating a hardware interrupt behaviour using a polling mechanism), the Bulk Tran
39、sfer (generally used for non-real-time data transfers) and the Isochronous Transfer (used for real-time data transfers). 3.9 USB transaction sequence of one, two or three phases: Token, Data, Handshake BS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) ISO/IEC 2011 All rights reserved 34 Symbols and ab
40、breviated terms NA Not applicable ACK Acknowledged CCID Integrated Circuit(s) Cards Interface Device conforming to RE5 NAK Not acknowledged STALL Indicates that a transfer is out of context or wrongly formatted. May require a host intervention. 5 Testing USB Physical and Electrical Characteristics 5
41、.1 Introduction Electrical tests are common to any USB device compliant device. This specification has been published by the USB Implementers Forum. ISO/IEC 10373-3 should refer to this baseline document RE4. USB Specification 2.0 defines the following data rates and rise times: Table 1 Data rates a
42、nd rise times DATA RATES RISE TIMES Low Speed (LS) 1.5 Mbit/s 75ns-300ns Full Speed ( FS) 12 Mbit/s 4ns-20ns High Speed (HS) 480 Mbit/s 500 ps USB-ICC manufacturers should build a Validation Test Program based on the USB-IF applicable documentation. USB 2.0 electrical testing includes: Differential
43、signal quality (eye diagram testing, signal rates, EOP width, cross-over voltage range, paired J-K and K-J as well as consecutive jitter and of course rise and fall times); In-Rush current check (current drawn by the CUT) when plugged-in; Loaded Vbus power line Drop and droop measurements. For the t
44、ests whose compliance guarantees interoperability at electrical level, either the USB-ICC is directly attached to a Host or it is sharing the USB bus with other USB devices. USB 2.0 specification introduced a 40 times increase in data rates, and therefore a high level of complexity to the chip (Hi-S
45、peed). Specific testing for High-Speed compliant devices include receiver sensitivity, chirp (special signaling during the High-Speed devices speed detection protocol), monotonicity (smooth increase or decrease of Hi-speed signal amplitude without reverse response) and impedance measurements (CUT an
46、d cable). The measurement of very short rise times requires use of real-time oscilloscopes with tight requirements for bandwidth, data sample rates and rising and falling times. The USB connection device shall establish an electrical connection to C1, C5, C4 and C8 only, following the electrical cha
47、racteristics and protocol given in the USB 2.0 specification. BS ISO/IEC 10373-8:2011 ISO/IEC 10373-8:2011(E) 4 ISO/IEC 2011 All rights reservedNOTE 1 Since the publication of ISO/IEC 7816-12, a new relevant USB Specification RE3 for smart card technology has been released as a supplement to the USB
48、 2.0 Specification. RE3 or Inter-Chip USB specifies the communication between devices operating at different voltage classes (3.0V, 1.8V, 1.5V, 1.2V and 1.0V) using USB Data Transfers. ISO/IEC 7816-12 refers to the USB specification 2.0, requiring the power supply V BUSat 5.0V nominal. However, the
49、configurations and data transfers defined in ISO/IEC 7816-12 may be supported by cards compliant with the Inter-Chip USB. Compliance rules regarding Inter-chip USB products have not been established yet. NOTE 2 According to ISO/IEC 7816-12, the USB connection device shall establish an electrical connection to C1, C5, C4 and C8 only, following the electrical characteristics and protocol given in the USB 2.0 specification. This document does not address the electrical characteristics o