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. GXDLMSData

GXDLMSData

By alnardn , 12 October, 2023
Forums
Gurux.DLMS

Hello! I don't understand how to write to object. I tried to change value of hardware relay blocking switch (0.0.96.4.3.255). My goal was to turn off load relay blocker. There are code lines:
data = GXDLMSData("0.0.96.4.3.255")
data.setDataType(2, DataType.UINT8)
data.value = GXInt8(2)
reader.write(data, 2)
But nothing happens. Maybe it's not possible? Or I made something wrong?

Profile picture for user Kurumi

Kurumi

2 years 8 months ago

Hi, If you want to use a…

Hi,

If you want to use a relay, you need to use a disconnect control for that.
Something like this:

d = GXDLMSDisconnectControl("YOUR_OBIS_CODE")

#Disconnect
self.readDataBlock(d.remoteDisconnect(self.client), reply)
#Reconnect
self.readDataBlock(d.remoteReconnect(self.client), reply)

BR,
Mikko

alnardn

2 years 8 months ago

I meant another thing. Load…

I meant another thing. Load relay blocker isn't the same as disconnect control. It has different obis (0.0.96.4.3.255) and 3 states:
0 - relay is controlled by meter according to specified algorithms;
1 - relay is always open and there is no load;
2 - relay is always closed and load isn't interrupted.
In cases 1 and 2 meter can't controll relay. So my goal was to try to change it from code. Is it possible?

Profile picture for user Kurumi

Kurumi

2 years 8 months ago

Hi, If your meter supports…

Hi,

If your meter supports it, it's possible. You can try that easily with GXDLMSDirector. If you can modify the value, try to change it and then write it to the meter.

BR,
Mikko

alnardn

2 years 8 months ago

Thanks for responce! And…

Thanks for responce! And does it possible from code not using GXDLMSDirector?

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, Yes, it's possible…

Hi,

Yes, it's possible. Check my previous post. It will do what you want to do.

https://www.gurux.fi/comment/26873#comment-26873

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