how to dlms client program parameter configuration?

22 posts / 0 new
Last post
mnvasani
how to dlms client program parameter configuration?

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?

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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
}
}

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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 ?

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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 ?

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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

Kurumi
Kurumi's picture

Hi,

You can connect directly with RS-232.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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

Image: 
Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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: 
Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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 ?

Kurumi
Kurumi's picture

Hi,

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

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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

Kurumi
Kurumi's picture

Hi,

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

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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 ?

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

mnvasani

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

WHY ??

Kurumi
Kurumi's picture

Hi,

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

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi