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. When Read More Than 14 Block Load Survey Count Then Error Is Coming

When read more than 14 Block load survey count then error is coming

By satishjyoti1998 , 2 August, 2024
Forums
Gurux.DLMS

Hi Mikko,

When we read 14 entries of Block load profile entries then it is reading successfully but if we make count more than 14 say 15 then below error is coming. I'm using Gurux python client example. Please help.

pg = GXDLMSProfileGeneric("1.0.99.1.0.255")

y3 = reader.read(pg,3)
z3 = reader.readRowsByEntry(pg,1,15)

Traceback (most recent call last):
File "C:\Users\s_paliwal\PycharmProjects\Gurux\trial.py", line 201, in <module>
z3 = reader.readRowsByEntry(pg,1,15)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\s_paliwal\PycharmProjects\Gurux\GXDLMSReader.py", line 353, in readRowsByEntry
self.readDataBlock(data, reply)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\GXDLMSReader.py", line 179, in readDataBlock
self.readDataBlock(it, reply)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\GXDLMSReader.py", line 182, in readDataBlock
self.readDLMSPacket(data, reply)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\GXDLMSReader.py", line 118, in readDLMSPacket
self.readDLMSPacket2(data, reply)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\GXDLMSReader.py", line 169, in readDLMSPacket2
raise e
File "C:\Users\s_paliwal\PycharmProjects\Gurux\GXDLMSReader.py", line 149, in readDLMSPacket2
while not self.client.getData(rd, reply, notify):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMSClient.py", line 1423, in getData
raise ex
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMSClient.py", line 1420, in getData
ret = GXDLMS.getData(self.settings, reply, data, notify)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMS.py", line 2973, in getData
GXDLMS.getPdu(settings, target)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMS.py", line 2574, in getPdu
GXDLMS.handleGloDedResponse(settings, data, index)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMS.py", line 2803, in handleGloDedResponse
GXDLMS.getPdu(settings, data)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMS.py", line 2514, in getPdu
if not GXDLMS.handleGetResponse(settings, data, index):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMS.py", line 2396, in handleGetResponse
GXDLMS.handleGetResponseNextDataBlock(settings, reply, index)
File "C:\Users\s_paliwal\PycharmProjects\Gurux\.venv\Lib\site-packages\gurux_dlms\GXDLMS.py", line 2310, in handleGetResponseNextDataBlock
raise ValueError(
ValueError: Invalid Block number. It is 3 and it should be 1.

Profile picture for user Kurumi

Kurumi

2 years ago

Hi, There is an issue with…

Hi,

There is an issue with the meter. When you read the profile generic, the meter doesn't reset the block counter to one. Now its value is three.

Ask if there is a firmware update for the meter that fixes 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

  • 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
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin