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. Fix For Parsing a GatewayResponse PDU

Fix for parsing a GatewayResponse PDU

By alyainfo , 12 February, 2021
Project
Gurux.DLMS.Python
Status
Closed (fixed)

getDataFromBlock arg is the class instead of the attribute which eventually raises an error when getting len of it in the function.

diff --git a/Gurux.DLMS.python/gurux_dlms/GXDLMS.py b/Gurux.DLMS.python/gurux_dlms/GXDLMS.py
index 1ce6ec8..cd0b983 100644
--- a/Gurux.DLMS.python/gurux_dlms/GXDLMS.py
+++ b/Gurux.DLMS.python/gurux_dlms/GXDLMS.py
@@ -1671,7 +1671,7 @@ class GXDLMS:
len_ = _GXCommon.getObjectCount(data.data)
pda = bytearray(len_)
data.data.get(pda)
- cls.getDataFromBlock(data, index)
+ cls.getDataFromBlock(data.data, index)
data.command = (Command.NONE)
cls.getPdu(settings, data)
else:
--

Priority
Normal
Category
Bug report
Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Thank you for this info. This is now fixed and your name is added to credits. The new version is released today.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin