1、g3g3g3IEEE Standard for Telephone Modem Communication Protocol to Complement the Utility Industry End Device Data Tablesg3Sponsored by theIEEE Standards Coordinating Committee 31 on Automatic Meter Reading and Energy Management g3IEEE 3 Park Avenue New York, NY 10016-5997 USA2 March 2011IEEE Standar
2、ds Coordinating Committee 31 IEEE Std 1702g4862011IEEE Std 1702-2011 IEEE Standard for Telephone Modem Communication Protocol to Complement the Utility Industry End Device Data Tables SponsorIEEE Standards Coordinating Committee 31 on Automatic Meter Reading and Energy Management Approved 2 February
3、 2011 IEEE-SA Standards BoardApproved 28 June 2011American National Standards Institute Abstract: This standard provides multisource and “plug and play” environment for the millions of metering devices in the field now and in the future using the telephone modem communication interface. It solves th
4、e problems associated with single-source systems and with multisource systems based upon proprietary communications protocols. Electric, water, and gas utilities and corresponding vendors can realize cost savings that ultimately shall benefit the client consumers of the utilities. Keywords: ANSI C12
5、.21, IEEE 1702, MODEM, PSEM The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA Copyright 2011 by the Institute of Electrical and Electronics Engineers, Inc. All rights reserved. Published 2 March 2011. Printed in the United States of America. IEEE
6、 is a registered trademark in the U.S. Patent +1 978 750 8400. Permission to photocopy portions of any individual standard for educational classroom use can also be obtained through the Copyright Clearance Center. iv Copyright 2011 IEEE. All rights reserved. Introduction This introduction is not par
7、t of IEEE Std 1702-2011, IEEE Standard for Telephone Modem Communication Protocol to Complement the Utility Industry End Device Data Tables. This standard provides an open-platform communications protocol for two-way communication with a metering device via a telephone modem. The protocol is written
8、 to conform to the Open Systems Interconnection (OSI) seven-layer stack. Long-time readers of ANSI C12.21-1999 will discover many editing changes to this version of the standard. The End Device/Telemetry Interface Unit Subcommittee 1701/1702 Working Group chose to improve the clarity of the text as
9、an aid to the reader while retaining the normative elements in the manner of previous publications. The 2006 revision to ANSI C12.21 was considered in the context of the so-called “protocol suite” of ANSI standards: ANSI C12.18 / MC1218 / IEEE Std 1701, ANSI C12.19 / MC1219 / IEEE Std 1377, ANSI C12
10、.21 / MC1221 / IEEE Std 1702, and ANSI C12.22 / MC1222 / IEEE Std 1703. Changes made were included only after assuring that existing devices implementing ANSI C12.18-1996 would continue to remain compatible with this version of the document. It is expected that the Logoff Service will become mandato
11、ry in the next revision of this standard. Implementers are strongly encouraged to support this service to comply with this change. Notice to users The body of this standard was developed jointly with ANSI C12.21 and MC1221. The joint agreement calls for the standards and regulatory organizations IEE
12、E, ANSI and MC to maintain the body of this standard in step as they publish versions and revisions of the standard. A number of editorial errors and error of omission where discovered since the publication of ANSI C12.21-2006, just before the acceptance of IEEE 1702. These errors are listed in Anne
13、x J Listing of Editorial Errors and Errors of Omission in ANSI C12.21-2006. All reported errors were identified in the body of this standard and highlighted to indicate that the text was in error and was corrected. Errors of omission were corrected in the body of this document and similarly highligh
14、ted. Laws and regulations Users of these documents should consult all applicable laws and regulations. Compliance with the provisions of this standard does not imply compliance to any applicable regulatory requirements. Implementers of the standard are responsible for observing or referring to the a
15、pplicable regulatory requirements. IEEE does not, by the publication of its standards, intend to urge action that is not in compliance with applicable laws, and these documents may not be construed as doing so. Copyrights This document is copyrighted by the IEEE. It is made available for a wide vari
16、ety of both public and private uses. These include both use, by reference, in laws and regulations, and use in private self-regulation, standardization, and the promotion of engineering practices and methods. By making this document available for use and adoption by public authorities and private us
17、ers, the IEEE does not waive any rights in copyright to this document. Updating of IEEE documents Users of IEEE standards should be aware that these documents may be superseded at any time by the issuance of new editions or may be amended from time to time through the issuance of amendments, corrige
18、nda, or errata. An official IEEE document at any point in time consists of the current edition of the document together with any amendments, corrigenda, or errata then in effect. In order to determine whether a given document is the current v Copyright 2011 IEEE. All rights reserved. edition and whe
19、ther it has been amended through the issuance of amendments, corrigenda, or errata, visit the IEEE Standards Association web site at http:/ieeexplore.ieee.org/xpl/standards.jsp, or contact the IEEE at the address listed previously. For more information about the IEEE Standards Association or the IEE
20、E standards development process, visit the IEEE-SA web site at http:/standards.ieee.org. Errata Errata, if any, for this and all other standards can be accessed at the following URL: http:/standards.ieee.org/reading/ieee/updates/errata/index.html. Users are encouraged to check this URL for errata pe
21、riodically. Interpretations Current interpretations can be accessed at the following URL: http:/standards.ieee.org/reading/ieee/interp/ index.html. Patents Attention is called to the possibility that implementation of this may require use of subject matter covered by patent rights. By publication of
22、 this, no position is taken with respect to the existence or validity of any patent rights in connection therewith. The IEEE is not responsible for identifying Essential Patent Claims for which a license may be required, for conducting inquiries into the legal validity or scope of Patents Claims or
23、determining whether any licensing terms or conditions provided in connection with submission of a Letter of Assurance, if any, or in any licensing agreements are reasonable or non-discriminatory. Users of this are expressly advised that determination of the validity of any patent rights, and the ris
24、k of infringement of such rights, is entirely their own responsibility. Further information may be obtained from the IEEE Standards Association. Participants At the time this was submitted to the IEEE-SA Standards Board for approval, the End Device/Telemetry Interface Unit Subcommittee 1701/1702 Wor
25、king Group had the following membership: Aaron F. Snyder, Chair Michael Anderson, Vice Chair Ed Beroset, Editor Brent Cain David Haynes Lawrence J. Kotewa Avygdor Moise Vuong Nguyen Terry Penn Richard D. Tucker Michel Veillette Virginia Zinkowski The following members of the individual balloting com
26、mittee voted on this . Balloters may have voted for approval, disapproval, or abstention. Chris Bagge Hugh Barrass Brent Cain Keith Chow Randall Groves David Haynes Brad Johnson Piotr Karocki Lawrence J. Kotewa Jim Kulchisky William Lumpkins Greg Luri Faramarz Maghsoodlou Gary Michel Avygdor Moise J
27、ose Morales Michael S. Newman Vuong Nguyen vi Copyright 2011 IEEE. All rights reserved. Terry Penn Bartien Sayogo Gil Shultz Aaron F. Snyder Walter Struppler Richard D. Tucker Scott Weikel Oren Yuen Virginia Zinkowski When the IEEE-SA Standards Board approved this standard on 2 February 2011, it had
28、 the following membership: Robert M. Grow, Chair Richard H. Hulett, Vice Chair Steve M. Mills, Past Chair Judith Gorman, Secretary Karen Bartleson Victor Berman Ted Burse Clint Chaplin Andy Drozd Alexander Gelman Jim Hughes Young Kyun Kim Joseph L. Koepfinger* John Kulick David J. Law Hung Ling Oleg
29、 Logvinov Ted Olsen Ronald C. Petersen Thomas Prevost Jon Walter Rosdahl Sam Sciacca Mike Seavey Curtis Siller Don Wright *Member Emeritus Also included are the following nonvoting IEEE-SA Standards Board liaisons: Satish Aggarwal, NRC Representative Richard DeBlasio, DOE Representative Michael Jane
30、zic, NIST Representative Michelle Turner IEEE Standards Program Manager, Document Development William Ash IEEE Standards Program Manager, Technical Program Development vii Copyright 2010 IEEE. All rights reserved. Contents 1. Overview . 1 1.1 Scope 1 1.2 Purpose . 2 2. Normative references . 2 3. De
31、finitions and syntax . 2 3.1 Definitions 2 3.2 Document syntax 3 4. Protocol details 3 4.1 Order of transmission 3 4.2 Layer 7 - Application Layer 3 4.3 Layer 6 - Presentation Layer . 13 4.4 Layer 5 - Session Layer 14 4.5 Layer 4 - Transport Layer . 14 4.6 Layer 3 - Network Layer 14 4.7 Layer 2 - Da
32、ta Link Layer 14 4.8 Layer 1 - Physical Layer . 18 5. Compliance 18 Annex A (informative) Communication example (Layer 7 and Layer 2) 19 Annex B (informative) Packet transmission example 22 Annex C (informative) Service sequence state control 24 Annex D (informative) Modifications and extensions to
33、ANSI C12.19-1997 26 D.1 RDATE type . 26 D.2 Table 03, ED_MODE STATUS Table . 27 D.3 Table 07, Procedure initiate Table 30 D.4 Decade 90: Telephone control Tables 31 D.5 History and event log codes 43 D.6 Default sets for decade tables . 44 D.7 Indices for partial table access 44 Annex E (informative
34、) CRC examples 48 E.1 Trace . 48 E.2 C code example 49 Annex F (informative) Error handling . 50 Annex G (normative) Data encryption standard (DES) . 52 G.1 Usage 52 G.2 53 G.3 Implementation . 53 G.4 Code example . 56 G.5 Trace example 59 Annex H (informative) I command operational description 60 H
35、.1 The problem 60 H.2 The solution 60 viii Copyright 2010 IEEE. All rights reserved. Annex I (informative) Compatibility . 61 I.1 Backward compatibility with previous versions of the standard . 61 I.2 Forward compatibility with next versions of the standard 62 Annex J (normative) Listing of editoria
36、l errors and errors of omission in ANSI C12.21-2006 63 1 Copyright 2010 IEEE. All rights reserved. IEEE Standard for Telephone Modem Communication Protocol to Complement the Utility Industry End Device Data Tables IMPORTANT NOTICE: This standard is not intended to ensure safety, security, health, or
37、 environmental protection. Implementers of the standard are responsible for determining appropriate safety, security, environmental, and health practices or regulatory requirements. This IEEE document is made available for use subject to important notices and legal disclaimers. These notices and dis
38、claimers appear in all publications containing this document and may be found under the heading “Important Notice” or “Important Notices and Disclaimers Concerning IEEE Documents.” They can also be obtained on request from IEEE or viewed at http:/standards.ieee.org/IPR/disclaimers.html. 1. Overview
39、1.1 Scope This standard details the criteria required for communication between a C12.21 Device and a C12.21 Client via a modem connected to the switched telephone network. The C12.21 Client could be a laptop or portable computer, a master station system, or some other electronic communications devi
40、ce. This standard does not specify the implementation requirements of the telephone switched network to the modem, nor does it include definitions for the establishment of the communication channel. This document provides details for an implementation of the Open Systems Interconnection (OSI) seven-
41、layer model in accordance with ISO/IEC 7498-1.1The protocol specified in this standard was designed to transport data in Table format. The Table definitions are in ANSI C12.19 and in Annex D of this document. This standard specifies the differences between ANSI C12.18-2006 and ANSI C12.19-1997 and t
42、he features and services required to describe a protocol specification for telephone modem communications. 1Information on references can be found in Clause 2. IEEE Std 1702-2011 IEEE Standard for Telephone Modem Communication Protocol to Complement the Utility Industry End Device Data Tables 2 Copy
43、right 2011 IEEE. All rights reserved. 1.2 Purpose The utility industry has need for a standard that provides an operable “plug and play” environment for field metering devices. The purpose of this standard is to define the means to transport the Utility Industry End Device Data Tables via a telephon
44、e modem so that multisource environment and End Device interchangeability is possible. 2. Normative references The following referenced documents are indispensable for the application of this document (i.e., they must be understood and used; therefore, each referenced document is cited in text and i
45、ts relationship to this document is explained). For dated references, only the edition cited applies. For undated referenced, the latest edition of the referenced document (including any amendments or corrigenda) applies. ANSI C12.18, Protocol Specification for ANSI Type 2 Optical Port.2ANSI C12.19,
46、 Utility Industry End Device Data Tables. ANSI INCITS 92-1981 (R2003), Data Encryption Algorithm. ISO/IEC 7498-1 (1994), Information Technology Open Systems Interconnection Basic Reference Model: The Basic Model.3ISO/IEC 8825-1 (2002), Information Technology ASN.1 Encoding Rules: Specification Of Ba
47、sic Encoding Rules (BER), Canonical Encoding Rules (CER) And Distinguished Encoding Rules (DER). ISO/IEC 13239 (2002), Information Technology Telecommunications and Information Exchange Between Systems - High-Level Data Link Control (HDLC) Procedures. 3. Definitions and syntax 3.1 Definitions For th
48、e purposes of this document, the following terms and definitions apply. For other terms, refer to The IEEE Standards Dictionary: Glossary of Terms e.g., 1.2.840.10066.0., encoded as described in ISO/IEC 8825-1, Basic Encoding Rules (BER). The last four (4) bytes of this identifier shall be identical
49、 to the values delivered in the C12.19 Table elements MANUFACTURER as defined in Table 00 of ANSI C12.19-1997 or the DEVICE_CLASS as defined by Version 2 of ANSI C12.19. := 0DHThe relative encoding of the C12.19 Device Class relative to the universal identifier 1.2.840.10066.0, encoded as described in ISO/IEC 8825-1, Basic Encoding Rules (BER). The shall range between to 00Hto 04Hresulting in up to four (4) bytes being transmitted. These four (4) bytes shall be identical IEEE Std 1702-2011 IEEE Standard for Telephone Modem Communication Protocol to Com