Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
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.
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) |
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 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 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).
The standard connection sequence proceeds as follows:
/?!rn at 300 baud./[Manufacturer ID][Baud Rate ID]rn. For example, /ABC5rn indicates a meter from manufacturer “ABC” capable of 9600 baud.P0 through P6 for various modes, or 2 for Mode E (HDLC).B[rate ID].Implementing IEC 62056-21 in a meter or reading device requires attention to several practical design details:
The meter’s optical port consists of a molded plastic holder that positions the IR components behind a transparent window. Key design considerations include:
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) |
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.
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.
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.
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.