Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. DLMS Python. CLOCK Object. Change Time

DLMS Python. CLOCK object. change time

By Robin Niezen, 2 October, 2024
Forums
Gurux.DLMS

Hello,

When I was reading a profile based on date range.
I noticed that the time of my device was several days of?
This probably due to production to installation off-time.

In the director I saw that we can set the time to current time.
But i cannot really figure out which method of the clock object is called.

I want to set the time to current time using the python library. Since my application needs to be able to correct the time.

How could I best implement this feature?

Robin

Profile picture for user Kurumi

Kurumi

9 months 2 weeks ago

Hi Robin, Update the date…

Hi Robin,

Update the date time and then write it to the meter like this:

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

BR,
Mikko

Robin Niezen

9 months 2 weeks ago

Hi Mikko, I was making it…

Hi Mikko,

I was making it more difficult than it needs to be.

In the clock item there are all these methods for adjusting time.
But not really one for syncing.

I will work with this one for now.

Regards,

Robin

Profile picture for user Kurumi

Kurumi

9 months 2 weeks ago

Hi Robin, DLMS is very…

Hi Robin,

DLMS is very complicated protocol and it offers all kinds of features.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 07/09/2025 - 16:41
    Gurux.Serial.Android 2.0.13
  • Wed, 07/09/2025 - 12:07
    gurux.dlms.c 9.0.2507.0901
  • Sat, 07/05/2025 - 15:04
    Gurux.DLMS.Python 1.0.188
  • Tue, 07/01/2025 - 10:09
    Gurux.DLMS.Python 1.0.187
  • Tue, 07/01/2025 - 09:54
    gurux.dlms.c 9.0.2507.0101

New forum topics

  • DLMS communication issue when routing through VPN on Android
  • ESP32-Based Smart Meter Interface via DLMS/COSEM
  • svr_postWrite: args->size Always Zero
  • DLMS over LoraWan in water metering
  • Update High password - any way to cipher new password
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin