Class creation

7 posts / 0 new
Last post
sha m
Class creation

Hai,
I planned to integrate DLMS protocol to my existing energy meter code. Initially I want to know how to create a class for meter(server). If there any tutorial or example kindly let me know. Thanks in advance.

Regards,
sha.

sha m

Hello any one there to help?

Kurumi
Kurumi's picture

Hi,
I'm sorry for the slow reply. What programming language you want to use? There is an example server available in GitHub. https://github.com/gurux/

BR,

Mikko

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

sha m

Hi mikko,
I have tried with gurux director and I have seen the request and response but there is no baud rate setting or changing commands in it. 7E A0 07 03 41 93 5A 64 7E this is the initial request, after that AARQ is sending. My doubt is,
1. when will the synchronization happen?
2.I have not seen anything like this “/ ? Device Address ! CR LF” why?

Thanks
sha.

Kurumi
Kurumi's picture

Hi,

Change start protocol from DLMS to IEC.

BR,
Mikko

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

sha m

Hi mikko,
Thanks for your reply.
1. if start protocol is DLMS then there is no Serial number detection then how it will identify the exact server? by unique server ID?
2. What is the standard procedure, starting with IEC or DLMS?

Thanks
sha.

Kurumi
Kurumi's picture

Hi,

1. After connection is made client will ask Logical Device Name from the server. It consists FLAG ID + serial number.

2. IEC is used if you connect to the meter using optical head (probe) otherwise, it's DLMS.

BR,
Mikko

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