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

1 year 2 months 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

1 year 2 months 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

1 year 2 months ago

Hi Robin, DLMS is very…

Hi Robin,

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

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193
  • Thu, 11/13/2025 - 15:23
    Gurux.DLMS.Python 1.0.192
  • Thu, 11/13/2025 - 14:55
    gurux.dlms.java 4.0.84
  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901

New forum topics

  • Incomplete Firmware Upgrade Process
  • SNRM byte mening
  • P384 Client Certificate incorrect issuer CN
  • Confirmed push service support
  • DLMS Stack hang during Firmware Upgrade
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin