Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Ansi C With IEC 62056-21

Ansi C with IEC 62056-21

By labasvakaras , 3 May, 2023
Forums
Gurux.DLMS

If my device does not use any password, is it possible to read cosem objects using IEC 62056-21?

labasvakaras

3 years 2 months ago

Actually, I don't understand…

Actually, I don't understand the scheme: you need to establish connection with IEC 62056-21 mode E (IEC62056-21 Handshake, like specified here: https://www.gurux.fi/DLMSIntro

and then you just continue to communicate with DLMS messages? (requests etc)

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, If your meter is…

Hi,

If your meter is supporting the IEC 62056-21 you can read the meter if you know the OBIS codes that you want to read. Or you can try to get a readout.

You should know that there are lots of differences between IEC 62056-21 meters.

Some meters are using IEC 62056-21 only for moving to Mode E and only that is supported from IEC 62056-21. You can't ask for any objects with IEC 62056-21.

If the meter is supporting DLMS, use it. because meters are more standardized and you can get more data from the meter.

BR,
Mikko

labasvakaras

3 years 2 months ago

I have CL730S22 meter: i…

I have CL730S22 meter: i successfully used ANSI C to read values through RS485.

Now i want to test optical meter. Documentation says:

The optical port is designed according to IEC62056-21 mode-E and IEC62056-46 in the data link layer.

So, if I understand correctly, everything should work as it is? I just need to add IEC 62056-21 handshake before trying to initialise connection with gurux?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, You need add IEC 62056…

Hi,

You need add IEC 62056-21 handshake to move Mode E and afer that you can use DLMS in the same way as with RS-485.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin