Skip to main content
Home
for DLMS smart meters

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 1 month 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 1 month 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 1 month 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 1 month ago

DLMS en Python

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

Profile picture for user Kurumi

Kurumi

7 years 1 month 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 1 month ago

DLMS in Python

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

Thank you so much for everything

Sergiy

8 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

8 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

  • Sun, 02/01/2026 - 19:47
    gurux.dlms.cpp 9.0.2602.0101
  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87

New forum topics

  • Landisgyr meter
  • GxDateTime always return DayOfWeek as FF
  • Asynchronous support in Gurux DLMS stack (.NET)?
  • Multiple meter loop On OFF Problem
  • Python GXDLMSTranslator
More

Who's new

  • mohammad_tolba
  • navadeep_tiwari_pl
  • nemo881
  • navadeep_polaris
  • adriancasandra
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin