Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. When We Are Reading Block Load Profile By Range Then Error Is Coming

When we are reading block load profile by range then error is coming

By satishjyoti1998, 18 July, 2024
Forums
Gurux.DLMS

Hi Mikko,

When we are reading block load profile by range then following error is coming

pg = GXDLMSProfileGeneric("1.0.99.1.0.255") # Block Load profile
y3 = reader.read(pg,3)
z3 = reader.readRowsByRange(pg,start_date,end_date )

Traceback (most recent call last):
File "C:\Users\s_paliwal\PycharmProjects\Gurux\trial.py", line 175, in <module>
z3 = reader.readRowsByRange(pg,start_date,end_date ) # Then we can read buffer (attribute index 2).
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\s_paliwal\PycharmProjects\Gurux\GXDLMSReader.py", line 359, in readRowsByRange
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
RX: 16:10:09 7E A3 17 41 03 74 9E EF E6 E7 00 CC 82 03 07 20 00 00 0E 3A 96 81 99 D8 10 21 20 8A B9 EB 61 FA D9 7B AB 41 31 B6 CB 1A 97 15 A0 94 C8 1B 08 EB 24 4C 90 99 5C 41 86 85 3D 83 B7 CE AA 3B 4D B3 FD 3C BA E7 2A 27 FF 79 F1 7F 15 5B B5 11 8D 9A 1E A6 EB 1B 3C 11 C3 31 C6 CE 80 31 73 C9 3E 88 F4 4B 69 4F 6A 49 28 65 03 FF 9B 46 87 AB D5 50 D4 7E FB 14 AE 0A FD 1F 36 CC E7 D5 27 1E 97 29 46 F9 0E 19 B7 41 50 89 03 70 D2 7E C2 A9 5E EA 02 3E A3 C9 9F 49 B0 B7 8A 7B 78 3E 59 1D E7 B2 72 49 ED F2 C4 9F 10 30 1C F8 1B 58 38 19 D0 C9 4F 11 8B C6 2F 00 5A 5C 2E 6F 88 78 1E B3 D1 57 34 CC C9 32 5C 03 BC CC 63 FF 93 F9 E5 FC 57 4C 59 00 6B 23 E8 C4 47 2F 9D 3D E7 FF A1 B8 8C 94 17 63 02 03 38 33 48 C3 7B C7 E1 86 92 44 3A D1 C6 84 4C 7A 95 3F 56 32 E4 88 EA 98 44 CC 58 AF AD 82 4F 86 73 71 67 26 05 DF 64 1A 61 B1 47 89 F5 24 C6 16 C4 13 45 A5 54 99 60 2E FB C6 32 05 6A E9 8F 33 12 60 DB 4B 6E 71 B1 A2 AF 56 0D 91 13 08 3D 12 78 BD 84 A5 8C 90 31 47 3F 33 FC 04 9D AC DE 07 73 56 A4 AF B6 7D 7E E0 EC 33 73 31 C6 D2 08 FF 97 F3 87 A0 FE 99 C1 82 72 55 A6 B0 DC 96 42 C2 7E 09 A3 19 8D 47 57 A6 6D 1F 37 1A BD 89 B9 27 01 DE 70 92 0B C1 9F A8 14 06 B7 A3 B7 E3 05 C9 F2 3E B3 43 76 0B B5 62 B9 A1 25 A1 00 9A B4 01 2E 2B CC 23 F0 A0 8E 6F 39 3E C3 6D 14 B9 49 89 57 12 1F 34 BF B4 4E D9 F4 8A 93 90 3A D3 04 4C 64 2B DB 71 0E 77 1A CE CC 26 EC A9 CF 96 04 5A D1 5B 2B F0 5E DC C7 3E 66 2F F5 C9 ED 60 BD 1D 97 BB DF FC 45 6D E8 CB 70 27 9C 2C 54 6B 5A AA F9 A2 83 23 B6 2C B1 E4 E9 AC 97 E6 09 03 83 60 13 9C F3 D2 1E FE 04 1C D3 87 54 55 81 5B 06 96 11 12 4A 2A 54 1F 40 51 AA 27 18 D1 5F CC 85 CB B1 7A 13 BF 07 AD DF B0 30 F3 FA C0 7D 87 5A 37 4A 44 D0 D2 68 04 EE 31 15 E9 C9 98 9A 98 4E 94 CC B2 13 A7 A4 B6 8E 84 31 0A F9 9D 6D 42 4F EF C1 94 C1 AB E4 F7 5C 94 37 1C 41 D4 A4 F4 96 1A 82 51 B8 CF E3 CE 44 47 4F 2F 9D EA C5 E6 2D 86 C9 23 41 80 60 C0 98 F8 23 89 31 51 17 C4 2D 1D A2 90 3E 10 08 79 F1 2C B1 F5 61 19 8E 0A 88 1F 03 EA BD E4 18 47 83 2F DE 88 01 FC A9 DC B9 4E 29 A2 B7 6B 07 06 FC 8D CF C8 85 21 8C FF A6 15 C1 19 BA 43 AA 7A 92 99 9E DC 31 5F C8 45 1D B3 43 7C B2 D4 90 D8 34 A0 C2 63 61 C0 2F 2A A7 7F A4 B6 A9 43 A2 39 B4 D8 61 79 09 41 F2 DA 4C 55 20 27 04 53 20 FD 56 AD 35 EA F4 30 25 F2 A0 8A A1 24 4C CD 74 6D 9A BE 48 93 0A 2F 6A C0 9A B3 97 BA C7 7D 93 90 FE DF D0 AA 91 CF 6C CB 17 03 42 F2 35 B3 5E 81 59 45 0F 27 E9 BD E0 74 D3 CC 78 4F FD BE 7E
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.

please help to resove it.

Regards
Satish

Profile picture for user Kurumi

Kurumi

11 months ago

Hi, There is an error on the…

Hi,

There is an error on the meter. The block index is not reset to the default value (1). Ask if there is a meter update available that fixes this.

BR,
Mikko

satishjyoti1998

10 months 3 weeks ago

Hi Mikko, When I'm reading…

Hi Mikko,

When I'm reading thsi meter through GXDLMS Director then error is not coming but when we I'm using reading through Gurx python client example library then error is coming. Please help.

Regards
Satish

Profile picture for user Kurumi

Kurumi

10 months 2 weeks ago

Hi, This error is handled in…

Hi,

This error is handled in C# because one of our customers asked. This check can be added to the Python as well.

But this is a meter issue and you should ask the meter manufacturer to fix it.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 06/19/2025 - 09:33
    Gurux.DLMS.Python 1.0.185
  • Wed, 06/18/2025 - 15:11
    Gurux.DLMS.Python 1.0.184
  • Wed, 06/18/2025 - 10:05
    Gurux.DLMS.Python 1.0.183
  • Wed, 06/18/2025 - 09:06
    GXDLMSDirector 9.0.2506.1801
  • Wed, 06/18/2025 - 08:41
    Gurux.DLMS.Net 9.0.2506.1801

New forum topics

  • Unable to read parameter values from Landis+Gyr E550 meter using GXDLMSDirector - NoAccess status
  • data.SetComplete(false); But all data recieved
  • Crash (endless loop)
  • Server is not able to download object list with maxPduSize 64 or 128 (or anything below 156-bytes PDU size)
  • Day profile action item add error (String is not recognized as valid DateTime value)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin