Hello, I'm using a Python library and can't change the monitored value in the Limiter object. When I use Director everything works as expected, maybe I'm doing something wrong?
limiter = GXDLMSLimiter('0.0.17.0.0.255')
reg_obj = GXDLMSRegister('1.0.31.7.0.255')
limiter.monitoredValue= reg_obj
limiter.monitoredAttributeIndex = 2
self.reader.write(limiter,2)
Thanks for the answer.
Hi, Are you getting an error…
Hi,
Are you getting an error from the meter? Have you changed the authentication level?
BR,
Mikko
I read on the forum that the…
I read on the forum that the object should be taken from the association and updated my code. But the result remained unchanged, I add the code and log.
limiter = self.reader.client.objects.findByLN(0, "0.0.17.0.0.255")
value = self.reader.client.objects.findByLN(3, "1.0.31.7.0.255")
limiter.monitoredValue = value
limiter.monitoredAttributeIndex = 2
print("==========read===========")
read_mon = self.reader.read(limiter, 2)
print(read_mon)
print("==========write===========")
self.reader.write(limiter, 2)
print("==========read===========")
read_mon = self.reader.read(limiter, 2)
print(read_mon)
From the log
==========read===========
TX: 16:39:08 7E A0 1A 02 21 05 FE 7D 8F E6 E6 00 C0 01 C1 00 47 00 00 11 00 00 FF 02 00 9B 28 7E
RX: 16:39:08 7E A0 20 05 02 21 1E 27 0F E6 E7 00 C4 01 C1 00 02 03 12 00 03 09 06 01 00 03 07 00 FF 0F 02 B0 07 7E
1.0.3.7.0.255 Ch. 0 Sum Li Reactive power+ (QI+QII) Inst. value
==========write===========
TX: 16:39:08 7E A0 29 02 21 05 10 10 48 E6 E6 00 C1 01 C1 00 47 00 00 11 00 00 FF 02 00 02 03 10 00 03 09 06 01 00 03 07 00 FF 0F 02 FD 21 7E
RX: 16:39:08 7E A0 11 05 02 21 30 CE 18 E6 E7 00 C5 01 C1 0C 3C 43 7E
==========read===========
TX: 16:39:08 7E A0 1A 02 21 05 32 1D 83 E6 E6 00 C0 01 C1 00 47 00 00 11 00 00 FF 02 00 9B 28 7E
RX: 16:39:08 7E A0 20 05 02 21 52 4F 87 E6 E7 00 C4 01 C1 00 02 03 12 00 03 09 06 01 00 03 07 00 FF 0F 02 B0 07 7E
1.0.3.7.0.255 Ch. 0 Sum Li Reactive power+ (QI+QII) Inst. value
DisconnectRequest
Most likely the data is not being transferred correctly
Hi, Class id is changed from…
Hi,
Class id is changed from Int16 to UInt16.
This is fixed for version 1.0.151.
https://gurux.fi/release/guruxdlmspython-10151
BR,
Mikko