1、INCITS/ISO/IEC 7816-12:20052008 (ISO/IEC 7816-12:2005, IDT) Identification cards Integrated circuit cards Part 12: Cards with contacts USB electrical interface andoperating proceduresINCITS/ISO/IEC 7816-12:20052008(ISO/IEC 7816-12:2005, IDT)INCITS/ISO/IEC 7816-12:20052008 ii ITIC 2008 All rights res
2、erved 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 be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this
3、file, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe 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
4、 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 member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below.
5、Adopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard. Date of ANSI Approval: 7/2/2008 Published by American National Standards Institute, 25 West 43rd Street, New York, New York 10036 Copyright 2008 by Information Technology Industry Counc
6、il (ITI). All rights reserved. These materials are subject to copyright claims of International Standardization Organization (ISO), International Electrotechnical Commission (IEC), American National Standards Institute (ANSI), and Information Technology Industry Council (ITI). Not for resale. No par
7、t of this publication may be reproduced in any form, including an electronic retrieval system, without the prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI, 1250 Eye Street NW, Washington, DC 20005. Printed in the United States of America INCITS/IS
8、O/IEC 7816-12:20052008 ITIC 2008 All rights reserved iii Contents Page Foreword iv Introduction .v 1 Scope 1 2 Normative references .2 3 Terms and definitions 2 3.1 Device .2 3.2 Terms and definitions used in other specifications2 4 Abbreviations and notation2 5 Electrical characteristics of the con
9、tacts 3 6 USB-ICC operated by an interface device .3 7 USB Descriptors .4 7.1 Standard Descriptors .4 7.1.1 The Standard Device Descriptor 4 7.1.2 The Standard Configuration Descriptor 5 7.1.3 The Standard Interface Descriptor.6 7.1.4 The Standard Endpoint Descriptors 7 7.2 The Class Specific Descri
10、ptor .8 8 Data transfer between host and USB-ICC . 10 8.1 Bulk transfers . 10 8.1.1 Bulk messages . 10 8.1.2 ATR and transmission of data . 13 8.1.3 Status and error conditions . 15 8.2 Control transfers 16 8.2.1 Version A 16 8.2.2 Version B 23 8.3 Interrupt transfers 29 8.3.1 Virtual insertion/remo
11、val event 29 Annex A (informative) Notation for the state diagrams . 30 Annex B (informative) Scenarios for USB transfers 31 Annex C (informative) Terms and definitions in the USB specification 45 Annex D (informative) Class specific descriptor Smart Card device class 46 Bibliography 50 INCITS/ISO/I
12、EC 7816-12:20052008 iv ITIC 2008 All rights reserved Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the
13、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 international organizations, governmental and non-gove
14、rnmental, 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 the ISO/IEC Directives, Part 2. The main task
15、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 least 75 % of the national bodies casting a vo
16、te. 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 7816-12 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information tech
17、nology, Subcommittee SC 17, Cards and personal identification. ISO/IEC 7816 consists of the following parts, under the general title Identification cards Integrated circuit cards: Part 1: Cards with contacts Physical characteristics Part 2: Cards with contacts Dimensions and location of the contacts
18、 Part 3: Cards with contacts Electrical interface and transmission protocols Part 4: Organization, security and commands for interchange Part 5: Registration of application providers Part 6: Interindustry data elements for interchange Part 7: Interindustry commands for Structured Card Query Language
19、 (SCQL) Part 8: Commands for security operations Part 9: Commands for card management Part 10: Cards with contacts Electronic signals and answer to reset for synchronous cards Part 11: Personal verification through biometric methods Part 12: Cards with contacts USB electrical interface and operating
20、 procedures Part 15: Cryptographic information application ISO/IEC 105362 specifies access by close coupling. ISO/IEC 144433 and 156934 specify access by radio frequency. Such cards are also known as contactless cards. INCITS/ISO/IEC 7816-12:20052008 ITIC 2008 All rights reserved v Introduction ISO/
21、IEC 7816 is a series of documents specifying integrated circuit cards and the use of such cards for interchange. These cards are identification cards intended for information exchange negotiated between the outside world and the integrated circuit in the card. As a result of an information exchange,
22、 the card delivers information (computation result, stored data), and / or modifies its content (data storage, event memorization). Five parts are specific to cards with galvanic contacts and three of them specify electrical interfaces. ISO/IEC 7816-1 specifies physical characteristics for cards wit
23、h contacts. ISO/IEC 7816-2 specifies dimensions and location of the contacts. ISO/IEC 7816-3 specifies electrical interface and transmission protocols for asynchronous cards. ISO/IEC 7816-10 specifies electrical interface and answer to reset for synchronous cards. ISO/IEC 7816-12 specifies electrica
24、l interface and operating procedures for USB cards. All the other parts are independent from the physical interface technology. They apply to cards accessed by contacts and / or by radio frequency. ISO/IEC 7816-4 specifies organization, security and commands for interchange. ISO/IEC 7816-5 specifies
25、 registration of application providers. ISO/IEC 7816-6 specifies interindustry data elements for interchange. ISO/IEC 7816-7 specifies commands for structured card query language. ISO/IEC 7816-8 specifies commands for security operations. ISO/IEC 7816-9 specifies commands for card management. ISO/IE
26、C 7816-11 specifies personal verification through biometric methods. ISO/IEC 7816-15 specifies cryptographic information application. The International Organization for Standardization (ISO) and International Electrotechnical Commission (IEC) draw attention to the fact that it is claimed that compli
27、ance with this document may involve the use of the following patents: WO 00/16255, Data transmission method and card therefor, 23 March 2000 Declared for ISO/IEC 7816-2 WO 01/69881, A method of communication between a smart card and a host station, 20 September 2001 WO 01/57684 A1, Conveying protoco
28、l units for portable electronic objects via a protocol for microcomputer peripherals, 9 August 2001 0001399 / France, Transport dunits de protocole dobjet lectronique portable par protocole pour pripheriques de micro-ordinateur 09/775668 / USA, Conveying protocol units for portable electronic object
29、s via a protocol for microcomputer peripherals INCITS/ISO/IEC 7816-12:20052008 vi ITIC 2008 All rights reserved 1904043 / Europe, Transport dunits de protocole dobjet lectronique portable par protocole pour pripheriques de micro-ordinateur 1804474 / China, Conveying protocol units for portable elect
30、ronic objects via a protocol for microcomputer peripherals PCT / FR01 / 00326, Transport dunits de protocole dobjet lectronique portable par protocole pour pripheriques de micro-ordinateur US 6148354, Architecture for a universal serial bus-based PC flash disk US 6763399, USB key apparatus for inter
31、acting with a USB host via a USB port ISO and IEC take no position concerning the evidence, validity and scope of these patent rights. The holders of these patent rights have assured the ISO and IEC that they are willing to negotiate licences under reasonable and non-discriminatory terms and conditi
32、ons with applicants throughout the world. In this respect, the statements of the holders of these patent rights are registered with the ISO and IEC. Information may be obtained from: Contact Patent number Schlumberger Systmes, France WO 00/16255 WO 01/69881 GEMPLUS, France WO 01/57684 A1 0001399 / F
33、rance / Granted 09/775668 / USA / Pending 1904043 / Europe / Pending 1804474 / China / Pending PCT / FR01 / 00326 / Pending M-Systems, Israel US 6148354 Aladdin Knowledge Systems, USA US 6763399 Infineon Technologies has not identified any patents but confirms that it is prepared to license its pate
34、nts, both granted and pending, which may be deemed necessary to manufacture, use, and sell implementations of ISO/IEC 7816-12 on reasonable and non-discretionary terms and conditions. The following companies may hold patents relating to this part of ISO/IEC 7816 but have not provided details of the
35、patents or agreed to provide licenses: Orga Kartensysteme GmbH, Germany AU 752627 Renesas, Japan US 20050052924 US 20040070952 ST Microelectronics US 6769622 WO 02/317161 Attention is drawn to the possibility that some elements of the document may be the subject of patent rights other than those ide
36、ntified above. ISO and IEC shall not be held responsible for identifying any or all such patent rights. AMERICAN NATIONAL STANDARD INCITS/ISO/IEC 7816-12:20052008 ITIC 2008 All rights reserved 1 Identification cards Integrated circuit cards Part 12: Cards with contacts USB electrical interface and o
37、perating procedures 1 Scope This part of ISO/IEC 7816 specifies the operating conditions of an integrated circuit card that provides a USB interface. Figure 1 shows the assignment of the contact fields for a USB interface and to illustrate interoperability the assignment as used in ISO/IEC 7816-3. F
38、igure 1 Assignment of contacts for a USB integrated circuit card INCITS/ISO/IEC 7816-12:20052008 2 ITIC 2008 All rights reserved 2 Normative references The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For
39、 undated references, the latest edition of the referenced document (including any amendments) applies. ISO/IEC 7816-2:1999/Amd.1:2004, Identification cards Integrated circuit cards Part 2: Cards with contacts Dimensions and location of the contacts Amendment 1: Assignment of contacts C4 and C8 ISO/I
40、EC 7816-3, Identification cards Integrated circuit cards Part 3: Cards with contacts Electrical interface and transmission protocols Universal Serial Bus Specification Revision 2.0, April 27, 2000 USB Implementers Forum Available at Universal Serial Bus, Device Class Specification for USB Chip/Smart
41、 Card Interface Devices , Revision 1.00, March 20, 2001 USB Implementers Forum, Device Working Group: Smart Card Available at 3 Terms and definitions For the purposes of this document, the following terms and definitions apply. 3.1 Device 3.1.1 interface device terminal communication device or machi
42、ne to which the card is electrically connected during operation ISO/IEC 7816-3 3.1.2 USB connection device device providing an electrical connection path between a USB-ICC and a USB host or hub 3.2 Terms and definitions used in other specifications For the purposes of this document, the terms and de
43、finitions given in the USB specification and the CCID specification (see Clause 4) apply. NOTE The relevant terms used in this document are listed in informative Annexes C and D. 4 Abbreviations and notation For the purposes of this document, the following abbreviations apply. Protocol T=0, Protocol
44、 T=1 ISO/IEC 7816-3 D+, D- Universal Serial Bus Specification Revision 2.0 USB specification Referencing to Universal Serial Bus Specification Revision 2.0 (see clause 2). CCID Chip Card Interface Device. Designates an interface device controlled via USB. INCITS/ISO/IEC 7816-12:20052008 ITIC 2008 Al
45、l rights reserved 3 CCID specification Reference to the Device Class Specification for USB Chip/Smart Card Interface Devices (see clause 2). USB-ICC USB Integrated Circuit Card. An integrated circuit card providing a USB interface. 5 Electrical characteristics of the contacts The assignment of the c
46、ontacts for USB operating conditions is given in ISO/IEC 7816-2:1999 and ISO/IEC 7816-2:1999/Amd.1:2004. An interface device will provide a USB connection to a USB-ICC through VCC, GND, AUX1 and AUX2 respectively VBUS, GND, D+ and D- defined by the USB specification. Cards designed for ISO/IEC 7816-
47、3 operating conditions shall not be damaged when activated under USB conditions. Conversely, cards designed for USB operation shall not be damaged when activated under ISO/IEC 7816-3 operating conditions (by definition, a damaged card no longer operates as specified or contains corrupt data). 6 USB-
48、ICC operated by an interface device A USB-ICC that only provides a USB interface shall have electrically connected C1, C5, C4 and C8. All other contact fields shall be electrically isolated. This type of USB-ICC can be operated by a USB connection device. The USB connection device shall establish an
49、 electrical connection to C1, C5, C4 and C8 only, following the electrical characteristics and protocol given in the USB specification. An interface device that does not support a USB interface shall have AUX1 and AUX2 electrically isolated or ensure that the voltage applied at these contact fields shall remain between 0,3V and Vcc + 0,3V. INCITS/ISO/IEC 7816-12:20052008 4 ITIC 2008 All rights reserved 7 USB De