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. Block Action Error In Xml Client In C# and Python

block action error In xml client In c# and 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 953313493@qq.com , 25 May, 2022
Forums
General discussion

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

I need to fix settings.command when to recv block like that , otherwise settings.command=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 ##############################################fix to add it
GXDLMS.handleActionResponseWithBlock(settings, data, index)
elif type_ == 3:
raise ValueError("Invalid Command.")

error pdu like that if I do not fix it , loss cmd

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 ago

Hi,

Hi,

You are right on this. Thank you for pointing that out. This is now fixed.
Get the latest version.

BR,
Mikko

  • 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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin