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. Node
  3. Client Example Program In C

client example program in c

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Gorantlaharikr… , 20 October, 2020
Forums
Gurux.DLMS

hi sir,
I'm new to this work. can i get complete procedure for reading DLMS meter by using guruxclientexample c program.

thanks & regards,
hari

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

DLMS is not an easy task to read. Gurux client example makes connections and reads the association view. Then it reads all the objects from the meter.

The client app depends on your needs. You can modify the client app so it fills your needs.
I recommend that you download GXDLMSDirector and read your meter with it first so you can get an idea from DLMS meters.

BR,
Mikko

Gorantlaharikr…

6 years 1 month ago

In reply to Hi, by Kurumi

thanks for your response sir,

thanks for your response sir,
can i get any flow chart of procedure

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

I hope this will help you.
http://www.gurux.fi/Gurux.DLMS.Client

BR,
Mikko

Gorantlaharikr…

6 years ago

sir

sir
how Read Frame counter(invocation Counter) by its obiscode.

Profile picture for user Kurumi

Kurumi

6 years ago

Hi,

Hi,

All client examples do it automatically if you give -v parameter. Example:
-v 0.0.43.1.1.255

Note! There might be several IVs. Select the right logical name.

BR,
Mikko

Gorantlaharikr…

6 years ago

i got invocation counter and

i got invocation counter and try to read data(ex: battary voltage ) using low authentication i got error ( ret value 276)

plz help me .

thank you

Profile picture for user Kurumi

Kurumi

6 years ago

Hi,

Hi,

What is the last frame that meter replies?

BR,
Mikko

Sudhir Khairnar

5 years 11 months ago

hello,

hello,
we am also trying on this DLMS client program but we are getting com port error.
we are NOT communication with smart energy meter on DLMS Protocol in arduino IDE.
so we need small help from you how to communication with mcu to energy meter.
please checked attached file.

thanks & regards,
sudhir khairnar

Image

Sudhir Khairnar

5 years 11 months ago

HELLO SIR,

HELLO SIR,
SUB-client.c example

thanks for your response sir,

We are already download GXDLMSDirector and read all data from DLMS meters. But when we
connect arduino MCU with same connection and Gurux client.c example. Then it not reads
all the objects from the DLMS meter.(we are set all parameter as per requirement).

Now we are getting ( com_initialization_error 252 ) so we need complete procedure for reading DLMS meter by using guruxclientexample c program.
Please checked attached file.

thanks & regards,
Sudhir khairnar

Image
Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

Please, add plain text. Reading bytes from the image is hard.

In your last image reply data is invalid. Check your serial port settings.
Try to read the meter with GXDLMSDirector first and then use the same serial port settings.

BR,

Mikko

Sudhir Khairnar

5 years 11 months ago

Hi,

Hi,
We are already done GXDLMSDirector and read all data from DLMS meters. But when we
connect arduino MCU with same connection and Gurux client.ino example. Then we are not read
all the objects from the DLMS meter.(we are set all parameter as per GXDLMSDirector).

---
//Client.init(true, 16, 1, DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_HDLC);
Client.init(true, 32, 1, DLMS_AUTHENTICATION_LOW, "XXX", DLMS_INTERFACE_TYPE_HDLC);
---

Now we are getting ( com_initialization_error 252 ) so we need some help.

thanks & regards,
Sudhir khairnar

Image
Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

Can you first connect the Arduino to the PC and check that you are receiving bytes. You can use any terminal application that can show hex data on the PC side.

I believe that this is serial port issue because you are receiving invalid data in the latest picture.

BR,
Mikko

Sudhir Khairnar

5 years 9 months ago

Hello,

Hello,
Thanks for supporting. Now i got all data from 1 phase and 3 phase meter using GUI.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More

Who's new

  • Sayang
  • q80435762@gmail.com
  • ONCAK
  • Berhasil
  • ratirvivege1979
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin