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. Issue With Using Python XmlClient

Issue with using python XmlClient

By mick93 , 7 April, 2025
Forums
Gurux.DLMS

I've just started to use python's xmlclient and I used same cmd arguments as in "normal" gurux client. The problem is, when it starts to read Clock, there's "Data send failed" and it stops reading. Same issue happens when I added -x argument with GetClock.xml . Logs are below:

------------------------------------------------------------
Messages\LN\GetClock
Authentication: 1
ClientAddress: 0x1
ServerAddress: 0x1
TX: 09:22:48 00 01 00 01 00 01 00 38 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 31 32 33 34 35 36 37 38 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 40 1E 5D 01 92
RX: 09:22:48 00 01 00 01 00 01 00 2B 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 1D 01 92 00 07
------------------------------------------------------------
<GetRequest>
<GetRequestNormal>
<InvokeIdAndPriority Value="129" />
<AttributeDescriptor>

<ClassId Value="0008" />

<InstanceId Value="0000010000FF" />
<AttributeId Value="02" />
</AttributeDescriptor>
</GetRequestNormal>
</GetRequest>

TX: 09:22:48 00 01 00 01 00 01 00 0D C0 01 81 00 08 00 00 01 00 00 FF 02 00
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 09:23:03

And there's just exception at end:
raise TimeoutException("Failed to receive reply from the device in given time.")

What am I doing wrong? Cmd line (which worked in normal gurux client) below:
python main.py -r ln -c 1 -s 1 -h <ip> -p 3294 -i WRAPPER -t Verbose -a Low -P 12345678 -C None -d DLMS -L MCS -v 0.0.43.1.1.255 -o "GetClock.xml"

mick93

1 year 3 months ago

Update: I figured it out. In…

Update: I figured it out. In InvokeIdAndPriority it had wrong value, changed that and now works.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • 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
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin