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

1 year 10 months 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

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin