1、 ANSI/CTA Standard Modular Communications Interface for Generic Display Message Set ANSI/CTA-2045.2 (Formerly ANSI/CEA-2045.2) July 2014 NOTICE Consumer Technology Association (CTA) Standards, Bulletins and other technical publications are designed to serve the public interest through eliminating mi
2、sunderstandings between manufacturers and purchasers, facilitating 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 publicat
3、ions shall not in any respect preclude any member or nonmember of the Consumer Technology Association 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 publicati
4、ons preclude their voluntary use by those other than Consumer Technology Association members, whether the standard is to be used either domestically or internationally. Standards, Bulletins and other technical publications are adopted by the Consumer Technology Association in accordance with the Ame
5、rican National Standards Institute (ANSI) patent policy. By such action, the Consumer Technology Association does not assume any liability to any patent owner, nor does it assume any obligation whatever to parties adopting the Standard, Bulletin or other technical publication. This document does not
6、 purport to address all safety problems associated with its use or all applicable regulatory requirements. It is the responsibility of the user of this document to establish appropriate safety and health practices and to determine the applicability of regulatory limitations before its use. This docu
7、ment is copyrighted by the Consumer Technology Association and may not be reproduced, in whole or part, without written permission. Federal copyright law prohibits unauthorized reproduction of this document by any means. Organizations may obtain permission to reproduce a limited number of copies by
8、entering into a license agreement. Requests to reproduce text, data, charts, figures or other material should be made to the Consumer Technology Association. (Formulated under the cognizance of the CTA R7.8 Modular Communication Interface for Energy Management Subcommittee.) Published by CONSUMER TE
9、CHNOLOGY ASSOCIATION 2015 Technology Phone 800-699-9277; Fax 734-780-2046; Internet http:/; Email 2.2 Compliance Notation As used in this document “shall” and “must” denote mandatory provisions of the standard. “Should” denotes a provision that is recommended but not mandatory. “May” denotes a feat
10、ure whose presence does not preclude compliance, and implementation of which is optional. “Optional” denotes items that may or may not be present in a compliant device. 2.3 Definitions and Abbreviations Big-Endian Specifies that the transmission byte order of a data stream is MSB first LSB Least Sig
11、nificant Byte e.g. for the value 0x12345678, 0x78 is the LSB LSN Bits 23through 20e.g. the LSN of 0xAB is 0xB MSB Most Significant Byte e.g. for the value 0x12345678, 0x12 is the MSB MSN Bits 27through 24e.g. the MSN of 0xAB is 0xA 3 Nibble Four bit value obtained by dividing a byte in half SGD Smar
12、t Grid Device the end device that is being informed of grid conditions SINT8 Eight-bit signed value (ones compliment) SINT16 16-bit signed value (ones compliment) UCM Universal Communications Module the communications device that provides communication connectivity to an SGD UINT8 Eight-bit unsigned
13、 value UINT16 16-bit unsigned value UINT32 32-bit unsigned value 3 Message Set The Generic Display message set is an extension of the ANSI/CEA-2045 Intermediate DR message set (Message Type = 0x08, 0x02). Unlike the Basic DR Application message set, which is fixed at 8 bytes total message length, In
14、termediate DR application messages have variable lengths. Some message definitions include Null terminated strings which causes the length of the packet to be content specific. Prior to sending any of the messages defined in this specification, the device must negotiate the maximum payload size usin
15、g the “Query: Maximum payload length?“ and “Response: Maximum payload length“ messages defined in Section 6 of ANSI/CEA-2045. ANSI/CEA-2045 prohibits transfer of serial messages that would overflow buffers of the recipient. Intermediate DR commands are all optional, however if the device supports th
16、e Generic Display message set, the following message in this specification shall be fully supported. Message Display Features Where the terms “optional” and “mandatory” are used in the tables in this section, they refer only to the requirement for those fields within the message being described. Whe
17、re multiple fields are labeled as “optional”, the sender must include all elements up to the last “optional” value transmitted. 3.1 Generic Display The messages in this section are used to display generic and pricing information on the SGD. All strings passed in this message set are encoded using th
18、e ASCII 8-bit format. 3.1.1 Message Display Features 4 This command is used to determine the generic message features supported by the SGD. Parameters Num Price Displays: The number of price display entries supported, UINT8. Num Lines per Price Display: One or two lines, UINT8. Price Display Size: T
19、he number of displayable (not including a trailing null) characters supported in a price display entry, UINT8. Num Message Displays: The number of message display entries supported, UINT8. Message Display Size: The number of displayable (not including a trailing null) characters supported in a messa
20、ge display entry, UINT8. SGD Get: Not Applicable SGD Set: Not Applicable UCM Get: SGD responds UCM Set: Not Applicable 3.1.1.1 Get Message Display Features Request Payload Byte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x00 OpCode2 M 3.1.1.2 Get Message Display Features Response Payload B
21、yte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x80 OpCode2 M 3 Response Code M 4 Num Price Displays M 5 Num Lines per Price Display M 6 Price Display Size M 7 Num Message Displays M 8 Message Display Size M Set Message Display Features Request: Not Applicable Set Message Display Features
22、Response: Not Applicable 3.1.2 Price Display 5 If the SGD supports the price display feature, the UCM shall use the Get Message Display Features Request (3.1.1) to determine the number of price displays, string length and number of lines before sending any price display entries. Populated values wil
23、l be cycled through the display in display index order. An entry is disabled by setting both Display Line values to zero length (Null) strings. Parameters Display Index: Index to populate, UINT8. Display Line 1: String to display, null terminated. Display Line 2: String to display, null terminated.
24、SGD Get: Not Applicable SGD Set: Not Applicable UCM Get: SGD responds UCM Set: SGD responds 3.1.2.1 Get Price Display Request Payload Byte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x01 OpCode2 M 3 Display Index M 3.1.2.2 Get Price Display Response Payload Byte Value Comments Mandatory/Op
25、tional 1 0x09 OpCode1 M 2 0x81 OpCode2 M 3 Response Code M 4 Display Index M 5-? Display Line 1 (Null Terminated) M ?-? Display Line 2 (Null Terminated) M 3.1.2.3 Set Price Display Request Payload Byte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x01 OpCode2 M 3 Display Index M 4-? Display
26、Line 1 (Null Terminated) M ?-? Display Line 2 (Null Terminated) M 6 3.1.2.4 Set Price Display Response Payload Byte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x81 OpCode2 M 3 Response Code M 3.1.3 Message Display If the SGD supports a generic message feature, this message is used to read
27、and write the message contents. To determine how many messages and the maximum length of the messages, use the Get Message Display Features Request (3.1.1). Populated values will be cycled through the display in Display Index order. An entry is disabled by setting the display message value to a zero
28、 length (Null) string. The SGD should truncate strings that are too long and display the message up to the capability of the device. The SGD should automatically center the message on the display. Parameters Display Index: Index to populate, UINT8. Display Message: Null terminated string to display
29、SGD Get: Not Applicable SGD Set: Not Applicable UCM Get: SGD responds UCM Set: SGD responds 3.1.3.1 Get Message Display Request Payload Byte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x02 OpCode2 M 3 Display Index M 3.1.3.2 Get Message Display Response Payload Byte Value Comments Mandator
30、y/Optional 1 0x09 OpCode1 M 2 0x82 OpCode2 M 3 Response Code M 4 Display Index M 5-? Display Message (Null Terminated) M 7 3.1.3.3 Set Message Display Request Payload Byte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x02 OpCode2 M 3 Display Index M 4-? Display Message (Null Terminated) M 3.
31、1.3.4 Set Message Display Response Payload Byte Value Comments Mandatory/Optional 1 0x09 OpCode1 M 2 0x82 OpCode2 M 3 Response Code M 8 Consumer Technology Association Document Improvement Proposal If in the review or use of this document a potential change is made evident for safety, health or technical reasons, please email your reason/rationale for the recommended change to standardsce.org. Consumer Technology Association Technology & Standards Department 1919 S Eads Street, Arlington, VA 22202 FAX: (703) 907-7693 standardsce.org