IEC 62056-21 Standard: Direct Local Data Exchange for Electricity Metering

IEC 62056-21 (formerly IEC 61107) specifies the physical layer and data link layer protocols for direct local data exchange between electricity metering equipment and data reading devices — typically via an optical probe connected to a handheld terminal, laptop, or test equipment. This standard is the foundation of local meter access for configuration, calibration, and load profile retrieval, and it serves as the transport mechanism for the higher-layer DLMS/COSEM application protocol.

Legacy Compatibility: IEC 62056-21 evolved from IEC 61107 (1992), which itself evolved from IEC 1107. The optical interface specifications have remained backward-compatible across all three generations, meaning a modern optical probe can read meters manufactured 30 years ago.

Physical Layer: The Optical Interface

The physical layer defined by IEC 62056-21 is an optical serial interface using infrared (IR) light-emitting diodes and phototransistors. The optical probe head contains both a read element (phototransistor) and a write element (IR LED), allowing bidirectional half-duplex communication:

Parameter Specification
Optical wavelength (transmit LED) 900-1000 nm (near infrared)
Optical wavelength (receive phototransistor) 900-1000 nm (matched to LED)
Coupling mechanism Magnetic or clamp-on optical probe
Default baud rate 300 baud (handshake), up to 115200 baud (data transfer)
Data encoding Serial asynchronous, 7 or 8 data bits, even parity, 1 stop bit
Maximum cable length 2 m (probe to reading device)
Electrical isolation Optically isolated (no galvanic connection to meter circuits)
Safety Advantage: Because the optical probe provides complete galvanic isolation, it can be safely connected to a live meter without risk of electric shock or damage to the reading equipment. This is essential for metering technicians working in the field.

Protocol Modes and Connection Sequence

IEC 62056-21 defines several protocol modes, each optimized for different use cases. The two most important are Mode C (variable-length ASCII protocol) and Mode E (HDLC-based transport for DLMS/COSEM):

Mode C: Variable Length Protocol

Mode C is a simple ASCII-based protocol used primarily for reading meter data with basic handheld terminals. The data is structured as a sequence of data lines, each identified by an OBIS-like address code. Mode C does not support the full DLMS object model but is sufficient for reading current register values and basic consumption data.

Mode E: HDLC-Based Protocol

Mode E uses High-Level Data Link Control (HDLC) framing and is the mandatory mode for DLMS/COSEM communication. It supports connection-oriented sessions, multiple-layer security, and complex data objects (load profiles, event logs, tariff tables).

Connection Sequence

The standard connection sequence proceeds as follows:

  1. Identification Request: The master device sends the character sequence /?!rn at 300 baud.
  2. Identification Response: The meter responds with its identity string: /[Manufacturer ID][Baud Rate ID]rn. For example, /ABC5rn indicates a meter from manufacturer “ABC” capable of 9600 baud.
  3. Mode Selection: The master selects the protocol mode by sending a control character: P0 through P6 for various modes, or 2 for Mode E (HDLC).
  4. Baud Rate Change (optional): The master can request a higher baud rate by sending B[rate ID].
  5. Application Session: In Mode E, a DLMS/COSEM association is established via AARQ/AARE (Application Association Request/Response) frames, followed by GET/SET/ACTION requests for meter data.
Master: /?!rn
Meter: /ABC5rn
Master: �
Master: B5
Meter: �
Master: [HDLC frame: AARQ]
Meter: [HDLC frame: AARE]
Master: [HDLC frame: GET 1.8.0]
Meter: [HDLC frame: GET response]
Troubleshooting Tip: If the meter does not respond to the identification request, the most common cause is incorrect optical probe alignment. The probe must be centered within ±2 mm of the meter’s optical port and at an angle within ±15° of perpendicular. A secondary cause is ambient light interference — the IR phototransistor can be saturated by strong sunlight or fluorescent lighting.

Engineering Design Insights

Implementing IEC 62056-21 in a meter or reading device requires attention to several practical design details:

Optical Port Layout

The meter’s optical port consists of a molded plastic holder that positions the IR components behind a transparent window. Key design considerations include:

  • Background light rejection: The phototransistor should be shielded from ambient light using a molded IR-transparent filter that blocks visible light while passing 900-1000 nm. A daylight-blocking filter (typically a dark red or black plastic) is essential for outdoor-mounted meters.
  • Magnetic retention: The optical probe head contains permanent magnets that align with ferromagnetic inserts in the meter optical port. The magnetic attraction force should be 5-15 N to ensure reliable coupling without making removal difficult.
  • Baud rate flexibility: The meter firmware should support automatic baud rate detection during the identification phase. Starting at 300 baud and switching to a higher rate (typically 9600 or 19200) after identification is standard practice.

DLMS/COSEM Transport over Mode E

When using Mode E for DLMS/COSEM, the HDLC frames carry DLMS Protocol Data Units (PDUs) in the information field. The HDLC frame structure is:

Field Length (bytes) Description
Flag 1 0x7E (frame delimiter)
Address 1-4 Server address (logical device address)
Control 1 Frame type: I (information), S (supervisory), U (unnumbered)
Information (DLMS PDU) Variable Application layer data (max 64K bytes with segmentation)
Frame Check Sequence 2 CRC-16 (polynomial 0x8005)
Flag 1 0x7E (frame delimiter)
Performance Optimization: For large data transfers (e.g., downloading a year of 15-minute load profile data), the HDLC window size parameter significantly affects throughput. Increasing the window size from the default of 1 to 4-7 allows the master to send multiple frames without waiting for individual acknowledgments, improving transfer speed by 3-5x.

FAQs

Q: Can IEC 62056-21 be used with wireless communication?

A: The standard is designed specifically for direct local exchange via optical interface. For wireless communication (RF mesh, GPRS, NB-IoT), other parts of the IEC 62056 series apply — particularly IEC 62056-46 for IP-based data link layers and IEC 62056-47 for IPv4/IPv6 networking.

Q: What is the maximum data transfer speed achievable with the optical interface?

A: Practical field deployments typically use 9600 or 19200 baud. Higher rates (38400, 57600, or 115200 baud) are specified and possible with high-quality optical components, but the reliability decreases with cable length and ambient light interference. For large data transfers, 19200 baud represents a good balance of speed and reliability.

Q: What is the difference between IEC 62056-21 and IEC 62056-61?

A: IEC 62056-21 defines the physical and data link layers (how data is transported). IEC 62056-61 defines the OBIS object identification system (what data is addressed). They are complementary parts of the same DLMS/COSEM protocol suite.

Q: Is the optical probe standardized or proprietary?

A: The optical probe interface (physical dimensions, magnet placement, and IR component positions) is standardized in IEC 62056-21. However, some manufacturers use proprietary pin assignments for the electrical connector on the probe cable. The optical head itself is interoperable between most major meter brands.

© 2026 TNLab. All rights reserved. This article is for informational purposes and does not constitute official IEC documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *