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. Can I Get a Script In Python To Set The RTC Clock Set ? For a Meter ?

Can i get a script in python to set the RTC clock set ? for a meter ?

By sunil K.P , 19 October, 2023
Forums
General discussion

We failed to set the rtc clock of meter using Gurux UI, may be due to some limitation of ms in timing of the meter ,
Is there is any Gurux python library is available so that i can try using the script?

Also i want to go the all the configuration of meter using Gurux python library, Can you help for the same.

Profile picture for user Kurumi

Kurumi

2 years 9 months ago

Hi, I believe that you are…

Hi,

I believe that you are using the clock object to update the clock. Milliseconds are ignored as a default because meters usually do not support it.

You can use a client example to read all values from the meter.
https://github.com/Gurux/Gurux.DLMS.Python/tree/master/Gurux.DLMS.Clien…

BR,
Mikko

sunil K.P

2 years 9 months ago

Hi, But i heard that…

Hi,

But i heard that scheinder meter support ms to write the clock ? is it right , in gurux we did not see any option to pass this ms, so looking for a script

Profile picture for user Kurumi

Kurumi

2 years 9 months ago

Hi, The client examples don…

Hi,

The client examples don't use ms, because it is not commonly used. You must modify the source code and set the milliseconds to use them.

BR,
Mikko

sunil K.P

2 years 8 months ago

Hi, Could you please share…

Hi, Could you please share the code in python with an example that would be great.

Profile picture for user Kurumi

Kurumi

2 years 8 months ago

Hi, You can do it like this…

Hi,

You can do it like this using GXDLMSReader.py:

clock1 = GXDLMSClock()
#Update the time.
clock1.time = GXDateTime(datetime.datetime.now())
#Write time for the meter.
self.write(clock1, 2):

BR,
Mikko

  • 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