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. Node
  3. Can't Change/write MonitoredValue In Limiter

Can't change/write MonitoredValue in Limiter

By alexcd , 24 April, 2024
Forums
Gurux.DLMS

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.

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Are you getting an error…

Hi,

Are you getting an error from the meter? Have you changed the authentication level?

BR,
Mikko

alexcd

2 years 4 months ago

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

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

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

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin