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 1 month 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 1 month 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 1 month 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

  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801
  • Fri, 09/26/2025 - 10:02
    gurux.dlms.cpp 9.0.2509.2601
  • Fri, 09/26/2025 - 09:45
    gurux.dlms.c 9.0.2509.2601

New forum topics

  • Guidance on using the source codes
  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
  • Unable to Release Request when closing connection with meter.
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin