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. Is There Any Python Xml Client Demo

is there any python xml client demo

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 953313493@qq.com , 23 May, 2022
Forums
General discussion

python support xml client?
is there any python xml client demo ?

Profile picture for user Kurumi

Kurumi

4 years 2 months ago

Hi,

Hi,

XML client example is not implemented for Python at the moment.

BR,
Mikko

953313493@qq.com

4 years 2 months ago

ok ,so

ok ,so
java and C# is implemented
C++ nocode for xml client
python is not implemented
right ?

Profile picture for user Kurumi

Kurumi

4 years 2 months ago

Hi,

Hi,

Yes. Those are the programming languages that our clients have asked for. Support for XML client can be added at some point for Python and C++, but I don't have an exact time for that yet.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

4 years 2 months ago

Hi,

Hi,

One of our clients asked for support for Python and it's now added.
https://github.com/Gurux/Gurux.DLMS.Python/tree/master/Gurux.DLMS.XmlCl…

BR,
Mikko

953313493@qq.com

4 years 2 months ago

thankyou

thankyou

I donot know if it is the bug , both in c# and python when use xml to read block
both in get and action in c#

I need to fix settings.command when to recv block like that , other wise cmd=none
```
def handleMethodResponse(cls, settings, data, index):
type_ = int(data.data.getUInt8())
data.invokeId = data.data.getUInt8()
if data.xml:
data.xml.appendStartTag(Command.METHOD_RESPONSE)
data.xml.appendStartTag(Command.METHOD_RESPONSE, type_)
data.xml.appendLine(TranslatorTags.INVOKE_ID, None, data.xml.integerToHex(data.invokeId, 2))
if type_ == ActionResponseType.NORMAL:
GXDLMS.handleActionResponseNormal(settings, data)
elif type_ == 2:
settings.command=0xc3 --------------------------------------add it
GXDLMS.handleActionResponseWithBlock(settings, data, index)
elif type_ == 3:
raise ValueError("Invalid Command.")
```

953313493@qq.com

4 years 2 months ago

error pdu like that if I do

error pdu like that if I do not fix it

TX: 17:18:44 00 01 00 11 00 01 00 19 C3 01 C1 00 7B 00 00 12 00 00 FF 02 01 02 02 11 00 02 02 12 00 01 12 F4 47
RX: 17:18:44 00 01 00 01 00 11 02 57 C7 02 C1 00 00 00 00 01 82 02 4C 01 82 02 55 02 09 0A 01 30 0A 05 39 39 39 39 39 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 06 38 38 38 38 38 38 0A 01 32 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 35 0A 01 32 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 36 0A 01 32 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 37 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 38 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 39 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 33 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 34 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 35 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 36 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 37 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 38 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 39 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 32 30 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 32 31 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32
TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 01
RX: 17:18:44 00 01 00 01 00 11 00 03 D8 02 05
TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 02
RX: 17:18:44 00 01 00 01 00 11 00 03 D8 02 05
TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 03
RX: 17:18:44 00 01 00 01 00 11 00 03 D8 02 05
TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 04

Profile picture for user Kurumi

Kurumi

4 years 2 months ago

Hi,

Hi,

Please, create a new topic if you have a new question.
Create a new topic and add a hex trace from all the frames so I can check what is causing this.

BR,
Mikko

  • 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

  • Possible memory leak in file dlms.c, getCompactArrayItem(), getCompactArrayItem2()
  • Official Gurux.DLMS.Client.Example.Net fails during High GMAC secure association (Invalid PDU), while Gurux Director connects successfully
  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
More

Who's new

  • RBCLQVpfdDeeYPPbKksI
  • eZDLCKpzJAzARY…
  • RicardoNoula
  • ScottKit
  • liha_2019
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin