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. How To Dlms Client Program Parameter Configuration?

how to dlms client program parameter configuration?

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 mnvasani , 10 June, 2019
Forums
Gurux.DLMS

Dear Sir,

This is not an issue. I have removed it. You can add it to the forum.

Good morning sir
I have complete the steps what you suggest as per github program but In this
program where I can set the parameter of meter reading ?like that dlms
setting ,port ,client server ,passward ,etc...

can you tell that which more parameter configuration required in this
program?

Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

Client example implements serial port client app. open client.imo and find setup().
All settings are set there.

BR,
Mikko

mnvasani

7 years ago

I have complete the steps.

I have complete the steps.
but after that i confuse where I configure arduino port number which is used for meter parameter reading ?

void setup() {
bb_init(&frameData);
//Set frame size.
bb_capacity(&frameData, 128);
cl_init(&meterSettings, 1, 16, 1, DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_HDLC);

cosem_init(&clock1.base, DLMS_OBJECT_TYPE_CLOCK, "0.0.1.0.0.255");

// start serial port at 9600 bps:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
}

Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

We have only one serial port in our boards. You need to ask this info from Arduino.

BR,
Mikko

mnvasani

7 years ago

hello mikko

hello mikko
can you tell me that which parameter configure in below line ?
program:

cl_init(&meterSettings, 1, 16, 1, DLMS_AUTHENTICATION_NONE, NULL, DLMS_INTERFACE_TYPE_HDLC);

in above program line what is configuration require instead of &metersetting ?

Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

It initializes the meter settings to the default values. This is the only place what you need to change if you are not using ciphered connections. This config works for most of the meters. metersetting is global settings that you must use to save packet counter, etc.

BR,

Mikko

mnvasani

7 years ago

if arduino read parameter

if arduino read parameter reading from meter then where i can see live monitor without leddisplay ?

are you have any simulator where i can see all meter parameter ?

how to know that communication established between arduino and meter ?

can you tell me that which arduino board used for DLMS ?

Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

Usually we are sending read data using REST. Parameters depend from the meter.

You can download example meter from Github.
http://www.github.com/gurux

check that readout. It makes connection to the meter and reads all the data from the meter. It might be good if you run this on your PC first to see how DLMS meters works.
See also; https://www.gurux.fi/Gurux.DLMS
BR,

Mikko

mnvasani

7 years ago

my smart meter support rs232

my smart meter support rs232 ,
is arduino directly communicate through rs232 ?
or another mechanism required ?

Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

You can connect directly with RS-232.

BR,
Mikko

mnvasani

7 years ago

is it possible that all meter

is it possible that all meter reading parameter display on arduino serial monitor ?

Image
Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

I believe that this is DLMS data that the client sends. It's binary data. The client tries to establish a connection.

BR,

Mikko

mnvasani

7 years ago

why this type of symbol show

why this type of symbol show in serial monitor ?
It's read
but does not show real values and real name.....

please give me real solution...

Image
Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

A client tries to make a connection and sends binary data. DLMS is not using ASCII.

BR,
Mikko

mnvasani

7 years ago

for getting data from meter

for getting data from meter for that snrm request is compulsory or not ??

IS GURUXDLMS.C GITHUB Program IS for dlms or IEC 62056-21 ?

Profile picture for user Kurumi

Kurumi

7 years ago

Hi,

Hi,

Gurux.DLMS.c is for DLMS. IEC 62056-21 is a totally different protocol.
That is ASCII based.

BR,

Mikko

mnvasani

7 years ago

where i can see dlms arduino

where i can see dlms arduino program log file ???

Profile picture for user Kurumi

Kurumi

6 years 12 months ago

Hi,

Hi,

Arduino doesn't write a log. Try run this on your PC first. I hope it helps.

BR,

Mikko

mnvasani

6 years 12 months ago

when i was try to read meter

when i was try to read meter through gurux software then all parameter read in software but when I was try to read meter through arduino then why not read ?

Profile picture for user Kurumi

Kurumi

6 years 12 months ago

Hi,

Hi,

You need to check that your parameters are the same. Are you using the same cable?

BR,
Mikko

mnvasani

6 years 12 months ago

NO, I CHANGED AFTER READ

NO, I CHANGED AFTER READ THROUGH SOFTWARE...
I USED ANOTHER CABLE FOR ARDUINO BOARD.

WHY ??

Profile picture for user Kurumi

Kurumi

6 years 12 months ago

Hi,

Hi,

Cables are causing a lot of problems. Can you use the same cable both and check that it works with both.

BR,

Mikko

mnvasani

6 years 12 months ago

I also changed the cable and

I also changed the cable and try to read data from meter but did not communicate.,,
then what exact problem are there ...?\

I try another program its read but dlms arduino program does not read from meter..

please give me a such solution about this program...

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

Hi,

Hi,

Are your settings the same? If one of the settings is wrong, meter doesn't reply.

BR,

Mikko

mnvasani

6 years 11 months ago

I only changes in the below

I only changes in the below highlighted area ,

if any settings changes required in program in any where then tell me....

Image
Profile picture for user Kurumi

Kurumi

6 years 11 months ago

Hi,

Hi,

Those settings depend from the meter. Make sure that your settings are the same as GXDLMSDirector.
If one of the values is wrong, meter doesn't reply anything.

BR,
Mikko

mnvasani

6 years 11 months ago

is it posible any other

is it posible any other device use instead of arduino board for meter reading ???

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

Yes, you can use any HW you

Yes, you can use any HW you want to. You need only modify how you send and receive bytes from the meter. The stack will take care of everything else.

BR,

Mikko

mnvasani

6 years 11 months ago

which one is best and easy as

which one is best and easy as per your experience ?

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

In reply to which one is best and easy as by mnvasani

Hi,

Hi,

It depends on what you want to read and what communication channel you want to use.
There is no simple answer for this.

BR,
Mikko

  • 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