CEA-2040-2011 SD Card Common Interface Standard《SD卡公用接口标准》.pdf

上传人:刘芸 文档编号:591457 上传时间:2018-12-16 格式:PDF 页数:55 大小:449.12KB
下载 相关 举报
CEA-2040-2011 SD Card Common Interface Standard《SD卡公用接口标准》.pdf_第1页
第1页 / 共55页
CEA-2040-2011 SD Card Common Interface Standard《SD卡公用接口标准》.pdf_第2页
第2页 / 共55页
CEA-2040-2011 SD Card Common Interface Standard《SD卡公用接口标准》.pdf_第3页
第3页 / 共55页
CEA-2040-2011 SD Card Common Interface Standard《SD卡公用接口标准》.pdf_第4页
第4页 / 共55页
CEA-2040-2011 SD Card Common Interface Standard《SD卡公用接口标准》.pdf_第5页
第5页 / 共55页
亲,该文档总共55页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、 ANSI/CEA Standard SD Card Common Interface Standard ANSI/CEA-2040 July 2011 NOTICE Consumer Electronics Association (CEA) Standards, Bulletins and other technical publications are designed to serve the public interest through eliminating misunderstandings between manufacturers and purchasers, facil

2、itating interchangeability and improvement of products, and assisting the purchaser in selecting and obtaining with minimum delay the proper product for his particular need. Existence of such Standards, Bulletins and other technical publications shall not in any respect preclude any member or nonmem

3、ber of CEA from manufacturing or selling products not conforming to such Standards, Bulletins or other technical publications, nor shall the existence of such Standards, Bulletins and other technical publications preclude their voluntary use by those other than CEA members, whether the standard is t

4、o be used either domestically or internationally. Standards, Bulletins and other technical publications are adopted by CEA in accordance with the American National Standards Institute (ANSI) patent policy. By such action, CEA does not assume any liability to any patent owner, nor does it assume any

5、obligation whatever to parties adopting the Standard, Bulletin or other technical publication. This CEA Standard is considered to have International Standardization implication, but the International Electrotechnical Commission activity has not progressed to the point where a valid comparison betwee

6、n the CEA Standard and the IEC document can be made. This Standard does not purport to address all safety problems associated with its use or all applicable regulatory requirements. It is the responsibility of the user of this Standard to establish appropriate safety and health practices and to dete

7、rmine the applicability of regulatory limitations before its use. This document is copyrighted by the Consumer Electronics Association (CEA) and may not be reproduced, in whole or part, without written permission. Federal copyright law prohibits unauthorized reproduction of this document by any mean

8、s. Organizations may obtain permission to reproduce a limited number of copies by entering into a license agreement with IHS (http:/). .Requests to reproduce text, data, charts, figures or other material should be made to the CEA. (Formulated under the cognizance of the CEAs R4.8 DTV Interface Subco

9、mmittee.) Published by CONSUMER ELECTRONICS ASSOCIATION 2011 Technology Fax 202-872-9161; Fax 202-828-3131; Internet http:/www.atsc.org DVB Registry: DVB Services Srl is 17A Ancienne Route, CH -1218 le Grand Saconnex, Switzerland; Internet http:/ SD Memory Card specifications: SD Association, c/o Gl

10、obal Inventures, Inc., 2400 Camino Ramon, Suite 375, San Ramon, CA 94583; Phone 925-275-6615; Fax 925-886-4870; Internet http:/www.sdcard.org Internet Engineering Task Force standards: IETF Secretariat, c/o Association Management Solutions, LLC (AMS), 48377 Fremont Blvd., Suite 117, Fremont, Califor

11、nia 94538; Phone: 510-492-4080; Fax: 510-492-4001; Internet: http:/www.ietf.org Internet Streaming Media Alliance specifications: CEA-2040 2 Internet Streaming Media Alliance, Presidio of San Francisco, P.O. Box 29920, 572 B Ruger Street, San Francisco, CA 94129-0920; Phone: 415-561-6276; Fax: 415-5

12、61-6120; Internet http:/www.isma.tv ISO standards: Library of Congress via http:/www.loc.gov/standards/iso639-2/langhome.html 3. Acronyms AU Access Unit CAS Conditional Access System CI Common Interface CID Card Identification register CP Copy Protection ECM Entitlement Control Message EMM Entitleme

13、nt Management Message ESP Encapsulating Security Payload, part of the IPsec protocol suite ESG Electronic Service Guide IP Internet Protocol PNM Product Name SAC Secure Authenticated Channel 4. Definitions Closed Recording Session A Recording Session that is not in progress and no data may be added

14、to it. Common Interface Module A small device, not working by itself, designed to run specialized conditional access processing in association with a Terminal. Open Recording Session A Recording Session that is in progress and data may be added to it. Recording Session The result of all the data rec

15、eived for a particular Service over a period of time. Service - A set of synchronized media streams delivered in a time-constrained or unconstrained manner for immediate consumption (during the reception). Terminal The television receiver (not including the CI Module) device with a CI Module interfa

16、ce CEA-2040 3 5. Overview 5.1 Architecture The reference architecture using the Common Interface Module is shown below: Figure 1 Terminal Architecture The CI Module based system consists of a Terminal and a CI Module. The Terminal provides the reception and decoding functionality whilst the CI Modul

17、e provides the decryption functionality. The Terminal and the CI Module are connected through the Common Interface. Please refer to the documentation of the applicable broadcast standard for a detailed description of the Terminal architecture and requirements. The Common Interface described in this

18、document supports (at minimum) the transfer of the encrypted authorization information as well as the encrypted audio/video/data streams to the CI Module, and the transfer of the decrypted audio/video/data streams back to the Terminal. The transfer from the CI Module to the Terminal may optionally b

19、e protected by a Secure Authenticated Channel (SAC). The Common Interface specified in this document allows independent operation of both Terminal and the CI Module. In the case that the CI Module is not present in the Terminal, the Terminal should be able to render only the unencrypted broadcast ch

20、annels. In case that the CI Module is present in the Terminal the encrypted broadcast channels shall be presented to the CI Module for decryption. This document focuses only on the CI Module aspects of the interface. It does not include the mass storage aspects of the SD card that remains unchanged

21、and is accessible through the standard SD Protocol. 5.2 Physical Interface The physical interface of the CI Module shall be as defined in 2. 5.3 Logical Interface The logical interface of the CI Module shall be as defined in 2. 5.4 Form Factor The form factor of the CI Module shall be the microSD fo

22、rm factor as defined in the 2. CEA-2040 4 6. Transport Protocol Communications between the Terminal and the CI Module shall consist of a series of pairs of write commands followed by read commands. All CI Module commands shall be formatted using the READ_SINGLE_BLOCK (CMD17), READ_MULTIPLE_BLOCK (CM

23、D18), WRITE_SINGLE_BLOCK (CMD24) and WRITE_MULTIPLE_BLOCK (CMD25) commands. The “multiple block” commands should be used for performance reasons. For all commands (CMD17, CMD18, CMD24 and CMD25), the “data address” on bits 39 to 8 (inclusive) shall be set to 0xFFFF. A read command shall immediately

24、follow the write command. If the CI Module is not ready to answer the command carried in the write command, it shall respond to the read command with a Status Word of 0x6E04 (Busy) and the Terminal shall issue the read command once more after waiting the period of time described in the delay field,

25、see section 8.2.2.1.2. Note that all commands except for “Send Broadcast Data“ (9.3) will fit in a single 512 byte data block (see 4.3.4 of 2). Responses to commands will fit in a single 512 byte data block (see 4.3.3 of 2), except for some responses to “SAC Information Exchange“ (8.2.2.4), “Notific

26、ation management“ (9.4), “Storage Information“ (10.2), and “Get Product List/Details“ (11.2), and except for most responses to “Send Broadcast Data“ (9.3). 6.1 Writing Data to the CI Module The payload of the write commands (CMD24 and CMD25) shall be as follows (general form): Syntax Bytes Format he

27、ad_string 32 (fixed) tag 1 uimsbf length 2 uimsbf data length head_string The head_string constant value is used by the CI Module to differentiate regular file write commands from commands meant for the CAS functionality of the CI Module. The head_string shall be 0x2AB5534443492A436F6D6D616E642A4865

28、6164537472696E672A57726974652A (32 bytes). Note that the head_string value for write operations is different from that of read operations. tag The tag field identifies the command sent. length The length field indicates the number of bytes following this field (not including the length field bytes)

29、in this message. data The optional data field contains the details of the command. If the length field is zero, there shall be no bytes of data (no payload). The values of tag, length and data vary by the message written. CEA-2040 5 6.2 Reading Data from the CI Module The payload of the read command

30、s (CMD17 and CMD18) shall be as follows (general form): Syntax Bytes Format head_string 32 (fixed) tag 1 uimsbf length 2 uimsbf data length status_word 2 uimsbf status_flags 2 bslbf head_string The head_string constant value is used by the CI Module to differentiate regular file read commands from c

31、ommands meant for the CAS functionality of the CI module. The head_string shall be 0x2AB5534443492A436F6D6D616E642A48656164537472696E672A726561642A2A (32 bytes). Note that the head_string value for read operations is different from that of write operations. tag The tag field identifies the command r

32、esponded to. length The length field indicates the number of bytes of data that follow this field (not including the length field bytes, and not including the two bytes of status_word , and not including the two bytes of status_flags) in this message. data The optional data field contains the detail

33、s of the command. If the length field is zero, there shall be no bytes of data (no payload). CEA-2040 6 status_word The status_word is a response code. Possible values for the status_word are shown below. Some values are not returned for some commands. status_word Description0x9000 Command executed

34、normally 0x9240 Storage error 0x9500 No authorization0x9501 ECM not received 0x9502 Invalid data format 0x9503 No corresponding CAS module 0x9504 EMM error in CAS module 0x9505 ECM error in CAS module 0x9506 Authorization about to expire 0x9507 CAS module banned 0x9508 Descrambler not configured 0x9

35、509 Descrambler context count exceeded 0x950a Session count exceeded 0x6dXX Unrecognized command*0x6e00 Incorrect command0x6e01 Invalid argument 0x6e02 Missing information 0x6e03 End of file 0x6e04 Busy0x6fXX Technical error. No diagnostics available.* In these cases, the byte indicated as XX will c

36、ontain the tag value of the Command. status_flags The status_flags is a bit field used for indications from the CI Module to the Terminal. status_flags bit meanings shall be as shown below: status_flags Description0bxxxx xxxx xxxx xxx1 Notification PendingOther bits reserved The CI Module shall set

37、the Notification Pending bit to indicate that information is ready to be supplied to the Terminal via the Notification Management command (see section 9.4 below). Upon receiving a response with the Notification Pending bit set, the Terminal may retrieve the pending information via the Notification M

38、anagement command. CEA-2040 7 7. Text Strings Text may be supplied by the CI Module to the Terminal which may then be displayed to the end user by the Terminal. The ATSC A/65 Multiple String Structure, as constrained below, shall be used to convey text strings when the CI Module supplies text to the

39、 Terminal. See ATSC A/65:2009 1 Section 6.10. The syntax for the Multiple String Structure is as shown below (included for convenience): Syntax Bytes Format multiple_string_structure() number_strings 1 uimsbf for ( i=0 ; in ; +i) ISO_639_language_code 3 uimsbf number_segments 1 uimsbf for ( j=0 ; jn

40、umber_segments ; +j) compression_type 1 uimsbf mode 1 uimsbf number_bytes 1 uimsbf for ( k=0 ; knumber_bytes ; +k) compressed_string_bytek 8 bslbf compression_type compression_type shall be 0x00 (no compression). mode The mode field shall be 0x42, indicating UTF-8 encoded character data. CEA-2040 8

41、8. Workflow 8.1 Workflow The workflow when receiving audio/video/data between the Terminal and CI Module is described by the following diagram: Terminal CI ModuleInit/ResetInit/ResetGet ParametersEMM ServiceStream Reception EMM Service selectionEMM Filtering isac_sys _count ; +i) sac_vendor 2 uimsbf

42、 sac_vendor_length 2 uimsbf for ( j=0 ; jsac_vendor_length ; +j) sac_vendor_dataj 8 uimsbf head_string See in 6.1. tag Shall be 0x06, indicating “SAC Information Exchange” length Shall be the number of bytes in the SAC Information Exchange command following the length field. sac_sys _count Indicates

43、 the number of copy protection systems supported by the Terminal. sac_sys _count may be 0x00. sac_vendor Indicates the copy protection mechanism supported. This identifier is globally unique, and is registered at http:/ sac_vendor_length Shall be the length of the following sac_vendor_data, in bytes

44、. sac_vendor_length may be 0x00. sac_vendor_data Shall be vendor data. CEA-2040 17 8.2.2.4.2 Response The response to the Reset command shall be as follows: Syntax Bytes Format Value head_string 32 (fixed) tag 1 0x06 length 2 uimsbf sac_match 1 bslbf sac_sys 2 uimsbf sac_resp_length 2 uimsbf for ( i

45、=0 ; isac_resp_length ; +i) sac_resp_datai 8 uimsbf status_word 2 uimsbf status_flags 2 bslbf head_string See in 6.2. tag Shall be 0x06, indicating a “SAC Information Exchange” response length Shall be the number of bytes in the SAC Information Exchange response following the length field and not in

46、cluding the status_word and status_flags. sac_match The sac_match field is a bitfield indicating SAC system matches and requirements, as shown below status_flags Description0b1xxx xxxx xxxx xxxx There are no common SAC mechanisms between the CI Module and the Terminal0b0xxx xxxx xxxx xxxx There are

47、common SAC mechanisms between the CI Module and the Terminal 0bx1xx xxxx xxxx xxxx Successful SAC negotiation is essential for proper operation 0bx0xx xxxx xxxx xxxx Successful SAC negotiation is not essential for proper operation (other bits) Reserved sac_sys Indicates the SAC system chosen by the

48、CI Module for operation. The Terminal should commence additional SAC negotiation specific to the common SAC system chosen by the CI Module. sac_resp_length Shall be the number of bytes in sac_resp_data. sac_resp_data may be 0x00. sac_resp_data Shall be SAC-vendor-specific data. status_word Shall be

49、set to one of the values listed in section 6.2 for status_word . status_flags Status flags are as defined in 6.2 above. CEA-2040 18 9. Class 0 Live Stream Handling This section specifies the commands that shall be supported by Class 0 Terminals. All Terminals compliant with this standard shall be at least Class 0 Terminals. 9.1 Open Sess

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 标准规范 > 国际标准 > 其他

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1