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. Value Keep Spamming and Error At Reader.getAssociationView()

Value keep spamming and error at reader.getAssociationView()

By Ansarr24, 10 October, 2023
Forums
Known problems

Issue: Output keep spamming value.
Manufacturer: DZG
Input: python main.py -S COM4 -a Low -P 33333333 -s 255 -c 20 -g "0.0.1.0.0.255:1" -t Verbose -f 288

Info: [09:57:56.616] dlms obj IECAddress is 0000017F,Client id is 14,Password is33333333,Authentication is Low,Req_AP_Title is 0000000000000000

Error Log: Authentication: 1
ClientAddress: 0x14
ServerAddress: 0xff
Standard: 0
TX: 15:30:14 7E A0 15 02 FF 29 93 E5 48 81 80 08 05 02 01 20 06 02 01 20 C5 D7 7E
RX: 15:30:14 7E A0 21 29 02 FF 73 CC 61 81 80 14 05 02 01 20 06 02 01 20 07 04 00 00 00 01 08 04 00 00 00 01 0B C9 7E
TX: 15:30:14 7E A0 45 02 FF 29 10 14 8B E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 33 33 33 33 33 33 33 33 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF A3
A9 7E
RX: 15:30:15 7E A0 38 29 02 FF 30 77 F4 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 18 1D 01 20 00 07 76 D3 7E
TX: 15:30:15 7E A0 1A 02 FF 29 32 9A 96 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
RX: 15:30:15 7E A1 39 29 02 FF 52 0C BB E6 E7 00 C4 02 C1 00 00 00 00 01 00 82 01 20 01 82 2A 4C 02 04 12 00 0F 11 01 09 06 00 00 28 00 01 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 00 00 02 03 0F 03 16 01 00 02
03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 00 00 02 03 0F 07 16 00 00 02 03 0F 08 16 01 00 02 03 0F 09 16 00 00 01 00 02 04 12 00 0F 11 01 09 06 00 00 28 00 02 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 00 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 02 00 02 03 0F 08 16 01 00 02 03 0F 09 16 00 00 01 00 02 04 12 00 0F 11 01 09 06 00 00 28 00 03 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 00 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 02 00 02 03 0F 08 16 01 00 02 03 0F 09 16 00 00 01 00 02 04 12 00 0F 11 01 09 06 00 00 28
00 04 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 00 B2 6D 7E
TX: 15:30:15 7E A0 14 02 FF 29 54 12 F1 E6 E6 00 C0 02 C1 00 00 00 01 51 BE 7E
RX: 15:30:16 7E A1 39 29 02 FF 74 38 FF E6 E7 00 C4 02 C1 00 00 00 00 02 00 82 01 20 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 02 00 02 03 0F 08 16 01 00 02 03
0F 09 16 00 00 01 00 02 04 12 00 0F 11 01 09 06 00 00 28 00 05 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 02 00 02 03 0F 08 16 01 00 02 03 0F 09 16 00 00 01 00 02 04 12 00 0F 11 01 09 06 00 00 28 00 06 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 00 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 00 00 02 03 0F 08 16 01 00 02 03 0F 09 16 00 00 01 00 02 04 12 00 01 11 00 09 06 00 00 2A 00 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 01 00 00 09
01 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 00 00 D6 C2 7E
TX: 15:30:16 7E A0 14 02 FF 29 76 02 F3 E6 E6 00 C0 02 C1 00 00 00 02 CA 8C 7E
Traceback (most recent call last):
File "C:\Users\SMT\Documents\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\main.py", line 102, in main
reader.getAssociationView()
File "C:\Users\SMT\Documents\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\GXDLMSReader.py", line 518, in getAssociationView
self.readDataBlock(self.client.getObjectsRequest(), reply)
File "C:\Users\SMT\Documents\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\GXDLMSReader.py", line 188, in readDataBlock
self.readDLMSPacket(data, reply)
File "C:\Users\SMT\Documents\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\GXDLMSReader.py", line 118, in readDLMSPacket
self.readDLMSPacket2(data, reply)
File "C:\Users\SMT\Documents\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\GXDLMSReader.py", line 159, in readDLMSPacket2
while not self.media.receive(p):
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SMT\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_serial\GXSerial.py", line 389, in receive
return self.__syncBase.receive(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SMT\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_serial\_GXSynchronousMediaBase.py", line 244, in receive
foundPosition = self.__findData(args)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SMT\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_serial\_GXSynchronousMediaBase.py", line 193, in __findData
isReceived = self.__receivedEvent.wait(waitTime / 1000)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SMT\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 622, in wait
signaled = self._cond.wait(timeout)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SMT\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 324, in wait
gotit = waiter.acquire(True, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
Ended. Press any key to continue.

Profile picture for user Kurumi

Kurumi

1 year 9 months ago

Hi, You try to read the…

Hi,

You try to read the association view and it's not a complete read.
When you try to read data block #2 the meter doesn't return it.

If this happens every time at the same location you need to ask the meter vendor if there is a firmware update available for the meter that fixes this issue

BR,
Mikko

Ansarr24

1 year 9 months ago

New update.. if i wait until…

New update.. if i wait until it finish spamming output, the value will appear. The process take up to 5 minutes. It is normal or is there a way to speed up the process? Thank you for your response. :)

Profile picture for user Kurumi

Kurumi

1 year 9 months ago

Hi, If you add -o file.xml…

Hi,

If you add -o file.xml the association view is saved to the file. It will save some time.
Now you are reading all the objects from the meter and there might be hundreds of objects.
Try to add
-g 0.0.1.0.0.255:2

It will read only the current time from the meter.

BR,
Mikko

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

Hire Us!

Latest Releases

  • Wed, 07/09/2025 - 16:41
    Gurux.Serial.Android 2.0.13
  • Wed, 07/09/2025 - 12:07
    gurux.dlms.c 9.0.2507.0901
  • Sat, 07/05/2025 - 15:04
    Gurux.DLMS.Python 1.0.188
  • Tue, 07/01/2025 - 10:09
    Gurux.DLMS.Python 1.0.187
  • Tue, 07/01/2025 - 09:54
    gurux.dlms.c 9.0.2507.0101

New forum topics

  • Regarding the dlms android project
  • Unable to read attribute =3 (1.0.94.91.0.255) IC=7 for Indian Metering, while I'm able to read attribute 3 for other Profile generic class
  • Register Activation class (class_id = 9) attribute index 3 data is not visible
  • Load profile
  • DLMS Decryption Implementation Status and Clarification Needed
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin