Skip to content

DLMS/COSEM

The DLMS/COSEM (meters) connection reads electricity meters and data concentrators under IEC 62056: energy per tariff, power, voltages and currents, serial number, clock and load profiles. Register values arrive already in engineering units, and load profile entries go to the Scadora archive with their own time.

The implementation is Scadora’s own, with no third-party libraries: logical name referencing (LN), TCP and HDLC channels, sign-in without a password, with a password (LLS) and HLS-GMAC with AES-GCM-128 encryption (Security Suite 0).

  1. In the editor: Connection → DLMS/COSEM (meters).
  2. Channel depends on how the meter is connected (see below). For a meter with Ethernet or a modem, use TCP (wrapper), its address and port 4059.
  3. Client address 16 and Sign-in “No password” is the public client, which almost every meter accepts. For extended access, use the client address and password from the meter manual.
  4. Create a Float64 tag with address 1.0.1.8.0.255, active energy A+.
  5. Start the project: the tag shows the energy in kWh or Wh, as the meter stores it.
Channel When What to set
TCP (wrapper) A meter or concentrator with Ethernet, GPRS, LTE Address, port (usually 4059)
HDLC over TCP Meters on RS-485 through an RS-485 to Ethernet converter in “transparent TCP server” mode Converter address and port, meter physical address
HDLC over a COM port RS-485 straight into the computer, or an optical port in HDLC mode COM port, speed (usually 9600), meter physical address

One RS-485 line can carry several meters: create a separate connection for each, with its own physical address. Connections sharing a COM port take turns on the line.

Setting Default Meaning
Channel TCP (wrapper) TCP wrapper, HDLC over TCP or HDLC over a COM port
Address, Port —, 4059 For TCP channels
COM port, Speed, baud —, 9600 For the COM port channel: 8 bits, no parity, 1 stop bit
Client address 16 16 — public client, 1 — management, 17, 32, 48 — per the meter manual
Meter logical address 1 Logical device: wPort or HDLC upper address
Meter physical address 0 HDLC lower address on the RS-485 line. 0 — not set
Sign-in No password No password, password (LLS) or HLS-GMAC
Password empty For LLS
Client system title, Encryption key (EK), Authentication key (AK) —, —, — For HLS-GMAC, in hex
Invocation counter object 0.0.43.1.0.255 For HLS: where to read the invocation counter before signing in
Meter time is local off Ignore the UTC deviation in meter time tags
Timeout, ms 10000 Wait for the meter’s reply
Profiles — every, s 300 How often to read new load profile entries
Profiles — depth, h 24 How many hours back to read profiles on the first connection

Meters reply slowly, especially over GPRS and 9600 baud RS-485. Set the connection’s poll cycle to 5–60 s, depending on the number of tags.

Address Meaning
1.0.1.8.0.255 or 1-0:1.8.0 Register (class 3), value (attribute 2)
class;OBIS;attribute Any attribute: 8;0.0.1.0.0.255;2 — clock, 1;0.0.96.1.0.255;2 — serial number
7;OBIS;2;column Load profile column: a number from 1 or the OBIS of a captured object

DLMS address panel

Common OBIS codes (check the manual of your meter):

OBIS Value
1.0.1.8.0.255 Active energy A+, all tariffs
1.0.1.8.1.255, 1.0.1.8.2.255 Active energy A+, tariffs 1 and 2
1.0.2.8.0.255 Active energy A− (export)
1.0.3.8.0.255, 1.0.4.8.0.255 Reactive energy R+, R−
1.0.1.7.0.255 Active power
1.0.32.7.0.255, 1.0.52.7.0.255, 1.0.72.7.0.255 Voltages of phases A, B, C
1.0.31.7.0.255, 1.0.51.7.0.255, 1.0.71.7.0.255 Currents of phases A, B, C
1.0.14.7.0.255 Frequency
1.0.13.7.0.255 Power factor
0.0.96.1.0.255 Serial number (class 1, String tag)
0.0.1.0.0.255 Clock (class 8, String tag)
1.0.99.1.0.255 Load profile 1

Registers (classes 3, 4, 5) store an integer and a scaler: for example, 1234567 and 10⁻² mean 12345.67. Scadora reads the scaler (attribute 3, scaler_unit) once per connection and applies it itself, so the tag gets 12345.67. A Float64 or Float32 tag suits any register.

Strings, serial numbers, clock go into a String tag. The clock shows as 2026-11-21 14:05:00 in this computer’s local time.

Reading in lists. If the meter supports it (multiple references), tags are read 10 per request, otherwise one at a time. The meter sends long replies in blocks, and Scadora puts them together.

Quality. No such object, no access for this client, or a value that does not fit the tag type gives Bad. No reply from the meter gives “no connection”, and Scadora reconnects.

A load profile is the meter’s own archive: rows with a time stamp and values of captured objects (energy or power per interval, voltages). A tag with address 7;1.0.99.1.0.255;2;2 gets the profile’s second column.

  • Every Profiles — every, s Scadora asks only for new entries using a time range (range selector).
  • On the first connection it reads entries for Profiles — depth, h.
  • Each entry goes into the tag with its own time. If the tag is archived, interval values land in the archive and on trends at their real time, even after a link outage of several hours.
  • The column can be given by number or by the OBIS of the captured object: 7;1.0.99.1.0.255;2;1.0.1.29.0.255. Check the column number and profile layout in the meter manual.
  • Register columns are scaled the same way as ordinary registers.
Sign-in Client address What you need
No password 16 Nothing. Usually reading part of the objects only
Password (LLS) 1, 17, 32… Password from the manual or from the utility
HLS-GMAC 1, 48… Keys EK and AK (16 bytes each) and the client system title

HLS-GMAC. All requests and replies are encrypted with AES-GCM, and sign-in is confirmed by a mutual key check. The meter rejects a repeated invocation counter, so before signing in Scadora reads it with the public client from object 0.0.43.1.0.255 and continues from a larger value. If the meter has no such object, clear the field and Scadora keeps the counter itself in %ProgramData%\Scadora\dlms.

The password and keys are stored in the project file as plain text, like the other connection settings. Do not keep a project with keys in a public repository.

Writing. A tag bound to a meter attribute can be written: Scadora reads the current value to learn its type and writes the same type, taking the scaler into account. Most metering parameters can be changed only with extended access.

Symptom Cause and what to do
“No connection”, timeout Wrong address, port or COM port, the meter runs at another speed, or the modem is offline
“The meter refused the HDLC connection (DM)” Wrong client address or meter physical address
“The meter rejected the sign-in: wrong password or keys” Password, keys or system title do not match the meter
“The meter requires sign-in” This client address needs a password or keys
“The meter does not support this context” The meter expects encryption or does not support it: change Sign-in
Tag Bad No such object, no access for this client, or the value does not fit the tag type
Profile shifted by hours The meter stores the UTC deviation with the opposite sign. Turn on Meter time is local and check the meter’s own clock
Empty profile No entries in the period, wrong column, or the meter does not support time range selection
  • Logical names (LN) only. Short names (SN) of older meters are not supported.
  • An optical port in IEC 62056-21 mode (300 baud opening, mode E) is not supported: only an optical port already switched to HDLC.
  • Encryption is Security Suite 0 (AES-GCM-128) only. Suites 1 and 2 (ECDSA) and dedicated keys are not supported.
  • Profiles are read with a time range selection. If the meter does not support it, profile tags get Bad.
  • Scadora does not set the meter’s clock.