Ansi C12 18
Ansi C12 18
Ansi C12 18
18-2006
American National Standard
Protocol Specification for ANSI
Type 2 Optical Port
ANSI C12.18-2006
Revision of
ANSI C12.18-1996
Secretariat:
ANSI C12.18-2006
ANSI C12.18-2006
AMERICAN
NATIONAL
STANDARD
Published by
ANSI C12.18-2006
ii
ANSI C12.18-2006
Contents
Page
1
2
3
Scope...................................................................................................................................................... 1
References ............................................................................................................................................. 1
Definitions and Syntax............................................................................................................................ 1
3.1
Definitions ....................................................................................................................................... 1
3.1.1 C12.18 Client............................................................................................................................. 1
3.1.2 C12.18 Device ........................................................................................................................... 1
3.1.3 Point-to-point Communications ................................................................................................. 1
3.1.4 Table.......................................................................................................................................... 2
3.2
Document Syntax ........................................................................................................................... 2
4 Protocol Details ...................................................................................................................................... 2
4.1
Order of Transmission .................................................................................................................... 3
4.2
Layer 7Application Layer ............................................................................................................ 3
4.2.1 Data Structure ........................................................................................................................... 3
4.2.2 Protocol Specifications for Electric Metering............................................................................. 3
4.2.2.1
Request Codes............................................................................................................. 4
4.2.2.2
Response Codes .......................................................................................................... 4
4.2.2.3
Identification Service .................................................................................................... 6
4.2.2.4
Read Service ................................................................................................................ 9
4.2.2.5
Write Service .............................................................................................................. 11
4.2.2.6
Logon Service............................................................................................................. 12
4.2.2.7
Security Service.......................................................................................................... 13
4.2.2.8
Logoff Service............................................................................................................. 13
4.2.2.9
Negotiate Service ....................................................................................................... 14
4.2.2.10
Wait Service ............................................................................................................... 15
4.2.2.11
Terminate Service ...................................................................................................... 15
4.2.2.12
Partial Table Access Using the Index/element-count Method ................................... 16
4.2.2.13
Index Count Access Method Examples ..................................................................... 17
4.2.2.14
Partial Table Access Using the Offset/octet-count Method........................................ 18
4.3
Layer 6Presentation Layer........................................................................................................ 19
4.4
Layer 5Session Layer ............................................................................................................... 19
4.5
Layer 4Transport Layer............................................................................................................. 19
4.6
Layer 3Network Layer............................................................................................................... 19
4.7
Layer 2Data Link Layer............................................................................................................. 19
4.7.1 Basic Data ............................................................................................................................... 19
4.7.1.1
Default Settings .......................................................................................................... 20
4.7.2 Packet...................................................................................................................................... 20
4.7.3 Duplicate packets .................................................................................................................... 21
4.7.4 CRC selection.......................................................................................................................... 22
4.7.5 Acknowledgment ..................................................................................................................... 22
4.7.6 Retransmission........................................................................................................................ 22
4.7.7 Time-out................................................................................................................................... 22
4.7.7.1
Channel Traffic Time-out............................................................................................ 22
4.7.7.2
Inter-character Time-out............................................................................................. 22
4.7.7.3
Response Time-out .................................................................................................... 23
4.7.8 Delays...................................................................................................................................... 23
4.7.8.1
Turn-around Delay...................................................................................................... 23
4.8
Layer-1Physical Layer .............................................................................................................. 23
4.8.1 Physical ................................................................................................................................... 23
4.8.2 Basic Data ............................................................................................................................... 24
4.8.3 Light Levels ............................................................................................................................. 24
4.8.3.1
Optical Characteristics ............................................................................................... 24
4.8.3.2
Transmitter Characteristics ........................................................................................ 24
iii
ANSI C12.18-2006
4.8.3.3
Receiver Characteristics ............................................................................................ 25
4.8.3.4
Environmental Lighting Condition............................................................................... 26
5 Compliance........................................................................................................................................... 26
Annex A - Communication Example (Layer 7 and Layer 2) ....................................................................... 27
Annex B - Packet Transmission Example................................................................................................... 29
Annex C - Service Sequence State Control................................................................................................ 31
Annex D Compatibility.............................................................................................................................. 33
D.1
Backward compatibility with previous versions of the Standard .................................................. 33
D.2
Forward compatibility with next versions of the Standard ............................................................ 33
Annex E - Historical Background ................................................................................................................ 35
E.1
Foreword of C12.18-1996 and C12.18-1996 (R2002) ................................................................. 35
iv
ANSI C12.18-2006
ANSI C12.18-2006
vi
ANSI C12.18-2006
2 References
ANSI C12.19, Utility Industry End Device Data Tables
ANSI C12.21, Protocol Specification for Telephone Modem Communication
ISO/IEC 646 (1991), Information Technology - ISO 7-Bit Coded Character Set For Information
Interchange
ISO/IEC 7498-1 (1994), Information Technology - Open Systems Interconnection - Basic Reference
Model: The Basic Model
ISO/IEC 8825-1 (2002), Information Technology - ASN.1 Encoding Rules: Specification Of Basic
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
C12.18 Client
An electronic communication apparatus that attaches to the ANSI Type 2 Optical Port of a C12.18 Device
and implements communication according to the protocol specification of this Standard.
3.1.2
C12.18 Device
An electronic communication apparatus that implements an ANSI Type 2 Optical Port for communication
according to the protocol specification of this Standard.
3.1.3
Point-to-point Communications
Point-to-point communications is defined as communication between two devices through a single optical
interface.