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 3 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 3 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin