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. Universal Way To Change OBIS' Value?

Universal way to change OBIS' value?

By mick93 , 31 March, 2025
Forums
Gurux.DLMS

I've found the following example for changing obis' value/property:

clock = GXDLMSClock()
clock.time =datetime.datetime.now()
self.write(clock, 2)

But is here other way? For example, in my python code I'd have one function and I'd like to change with this function various things: APN, PIN, ports etc. Do we must to specify different object for each obis, like below:

clock = GXDLMSClock()
apn_change = GXDLMSGprsSetup()
mac = GXDLMSMacAddressSetup()

etc. etc?

Also, how do I make ACTION? Does it work like write method? I have obis 0-0:131.14.0*255 which is for soft reset, but I have no idea how to execute that - because I do not even know object's type (like above with GXDLMSClock())

Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi, Yes, you must create an…

Hi,

Yes, you must create an object and fill the correct parameters. APN, PIN, ports are using different objects and there is no generic object that you want use to write them all.

You must know the object type or you can't call the action. Each object has own actions. Try to connect with GXDLMSDirector and check what is the object type. Then create the object and you can call its action method.

The simple actions don't send any data, but data can be very complex.

BR,
Mikko

what object youwant to

mick93

1 year 2 months ago

Hi, thanks for response…

Hi, thanks for response.
Looks like that my obis 0.0.131.14.0.255 (soft reset) is manufacturer specific - GXDLMSDirector was unable to read that obis (it was not on the list), but I was able to read it directly from my meter (using manufacturer's software).
So, so far, according to some notes, it's not possible to execute method of manufacturer's specific object with python?

  • 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