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. DLMS In Python

DLMS in Python

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 DARCARPER , 14 January, 2019
Forums
Gurux DLMS for ME

Hi.

I have an application in python that uses an optical probe to communicate with a meter. I identify with the emter correctly. The problem comes when I want to ask for data. I have these frames taken from the gxdlms:

16:45:58 Read object type Data index: 1
TX: 7E A0 19 03 21 "FE" "0F" "D4" E6 E6 00 C0 01 C1 00 01 00 00 60 0A 07 FF 01 00 2C 9A 7E

16:45:58
RX: 7E A0 18 21 03 1E BA 89 E6 E7 00 C4 01 C1 00 09 06 00 00 60 0A 07 FF AB A3 7E

16:45:58 Read object type Data index: 2
TX: 7E A0 19 03 21 "10" "7F" "DA" E6 E6 00 C0 01 C1 00 01 00 00 60 0A 07 FF 02 00 44 B0 7E

16:45:58
RX: 7E A0 12 21 03 30 68 9D E6 E7 00 C4 01 C1 00 11 82 01 EA 7E

the bytes between quotes are the ones that change and do not know what criteria. Can you help me or tell me where I can find out?

Thank you

Profile picture for user Kurumi

Kurumi

7 years 7 months ago

DLMS in Python

Hi,

That is HDLC Control Field. There is a counter that is changed every time when you send and receive data from the meter.

BR,

Mikko

DARCARPER

7 years 7 months ago

DLMS in Python

But is it a random code or does it have something to do with something?

Thanks

Profile picture for user Kurumi

Kurumi

7 years 7 months ago

DLMS in Python

Hi,
It's not a random code. Send and receive sequence number is there. Meter don't reply if it's wrong.

BR,
Mikk

DARCARPER

7 years 7 months ago

DLMS en Python

and how can I know what code is in each moment?

Profile picture for user Kurumi

Kurumi

7 years 7 months ago

DLMS in Python

Hi,

You can get more info from here:
https://en.wikipedia.org/wiki/High-Level_Data_Link_Control

I have to say that HDLC framing is not very easy.

BR,
Mikko

DARCARPER

7 years 7 months ago

DLMS in Python

I read the article and finally I have running my program in python.

Thank you so much for everything

Sergiy

1 year 2 months ago

Having Gurux app with the…

I have Gurux app with the following command line parameters
-h 192.168.20.35 -p 4059 -i WRAPPER -c 1 -a HighGMAC -C AuthenticationEncryption -V Suite1 -T 4142434445464748 -A 00000000000000000000000000000000 -B 00000000000000000000000000000000 -v 0.0.43.1.1.255 -t Verbose

And tried to use such parameters to run my python script.
The main issue - there is no capital -V key handling in the https://github.com/Gurux/Gurux.DLMS.Python examples

Can smn help please ?

Thanks in advance!

Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi, Support to -V argument…

Hi,

Support to -V argument is added to the client example. Get the latest version.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96

New forum topics

  • Connecting to meter using Wrapper
  • DLMS Server / Meter emulation in Golang library
  • Unknown Baudrate
  • negative indexing for custom method/attribute
  • System title
More

Who's new

  • obedph10
  • FERRUM 26
  • Splin
  • Carlos Ely
  • Sandeep Bajaniya
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin