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 2 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

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin