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

Class creation

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 sha m , 4 May, 2019
Forums
Gurux.DLMS

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

7 years 1 month ago

Hello any one there to help?

Hello any one there to help?

Profile picture for user Kurumi

Kurumi

7 years 1 month ago

Hi,

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

sha m

7 years 1 month ago

Hi mikko,

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.

Profile picture for user Kurumi

Kurumi

7 years 1 month ago

Hi,

Hi,

Change start protocol from DLMS to IEC.

BR,
Mikko

sha m

7 years 1 month ago

Hi mikko,

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.

Profile picture for user Kurumi

Kurumi

7 years 1 month ago

Hi,

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

sha m

7 years ago

Hi mikko,

Hi mikko,
Thanks for your reply.
1. In which case SNRM will contain Information?
2. If information is not there then meter should send default value right?
3. How the negotiation will happen? can I send Default value as negotiated value?
4. client is sending some information about window size, tx and rx size, What all are it means?

Thanks & Regards,
Sha.

Profile picture for user Kurumi

Kurumi

7 years ago

In reply to Hi mikko, by sha m

Hi,

Hi,

If there are no parameters, default settings are used. tx and rx size are size of the frame.

BR,
Mikko

sha m

6 years 11 months ago

Hi mikko,

hi mikko kindly reply as soon as possible

sha m

6 years 11 months ago

In reply to Hi, by Kurumi

Hi mikko kindly reply as soon

Hi mikko,
Thanks for your reply. I have tried with Gurux open source server code and I have sent AARQ with low level authentication and got the below response,
7E A0 37 41 03 30 21 79 E6 E7 00 61 29 A1 09 06
07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1
03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 40 1E 1C
01 64 00 07 5D C6 7E

It's well and good then I tried without authentication that case also I got "40 1E 1C" as Conformance block value.. why it's giving same access to the both cases? is it right?

Thanks & Regards,
Sha M.

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

Hi,

Hi,

Yes, Conformance block value can be the same. It depends on the meter what kind of functionality is allowed.

BR,

Mikko

sha m

6 years 11 months ago

In reply to Hi, by Kurumi

Hi mikko,

Hi mikko,

Is there any standard documents for authentication and its accessibility. I mean, lowest level authentication only give this much accessibility and low level can give this much accessibility like that.

Thanks & Regards,
Sha m.

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

Hi,

Hi,

DLMS standard doesn't define what to show. That depends on the manufacturer. In some sub-standards, Like India and Italy, it's defined.

BR,
Mikko

sha m

6 years 11 months ago

In reply to Hi, by Kurumi

Ok thank you mikko

Ok thank you mikko

sha m

6 years 11 months ago

HI mikko,

HI mikko,
In colored book they are using one term MAC frame,on it mac value is coming along with the HDLC packet
example from green book
MAC frame carrying an SNRM HDLC frame
6C 6C 00 C0 10 10 10 7E A0 08 02 23 C9 93 E4 43
7E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 3F 96 F1
-- Explanation:
6C 6C // NS field, number of MAC subframes is 1
00 // Credit fields, IC = 0, CC = 0, DC = 0
C0 10 10 // MAC addresses: SA = C01, Initiator, DA = 010, Individual
10 // Pad length
7E // HDLC frame flag
A0 08 // Frame type and length
02 23 C9 // DA =0x0111, SA = 0x64
E4 43 // HDLC FCS
7E // // HDLC frame flag
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // padding
3F 96 F1 // MAC FCS

My doubt is what is the use MAC frame and in which condition mac frame is to be used?

Thanks,
Sha M.

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

HI,

HI,

We are not supporting MAC frames at the moment. I have made a design for that and we can add support quite easily. Can you tell what programming language you want to use and we'll add support for that first?

BR,
Mikko

sha m

6 years 11 months ago

Hi,

Hi,
I'm just asking about the case, in which case MAC should be used. one of my friend told PLC needs MAC is it right? btw I'm using C language for my meter.
Thanks,
Sha M.

Profile picture for user Kurumi

Kurumi

6 years 11 months ago

Hi,

Hi,

Your friend is right. MAC is used with PLC.

BR,

Mikko

sha m

6 years 11 months ago

In reply to Hi, by Kurumi

Thanks mikko.

Thanks 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