By 953313493@qq.com, 23 May, 2022 Forums General discussion python support xml client? is there any python xml client demo ? Hi, Hi, XML client example is not implemented for Python at the moment. BR, Mikko ok ,so ok ,so java and C# is implemented C++ nocode for xml client python is not implemented right ? 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 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 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.") ``` 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 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 Log in or register to post comments
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
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
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.") ```
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
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
Hi,
Hi,
XML client example is not implemented for Python at the moment.
BR,
Mikko
ok ,so
ok ,so
java and C# is implemented
C++ nocode for xml client
python is not implemented
right ?
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
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
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.")
```
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
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