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. Forums
  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

5 years 7 months 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…

5 years 7 months 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

5 years 7 months ago

Hi,

Hi,

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

BR,
Mikko

Gorantlaharikr…

5 years 7 months ago

sir

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

Profile picture for user Kurumi

Kurumi

5 years 7 months 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…

5 years 7 months 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

5 years 7 months ago

Hi,

Hi,

What is the last frame that meter replies?

BR,
Mikko

Sudhir Khairnar

5 years 6 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 6 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 6 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 6 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 6 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 3 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

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin