how to dlms client program parameter configuration?

30 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

mnvasani

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

Kurumi
Kurumi's picture

Hi,

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

BR,

Mikko

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

mnvasani

I only changes in the below highlighted area ,

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

Image: 
Kurumi
Kurumi's picture

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

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

mnvasani

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

Kurumi
Kurumi's picture

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

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

mnvasani

which one is best and easy as per your experience ?

Kurumi
Kurumi's picture

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

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