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

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

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

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

  • Tue, 05/20/2025 - 08:40
    gurux.dlms.c 9.0.2505.2001
  • Mon, 05/19/2025 - 10:19
    gurux.net.java 1.0.30
  • Mon, 05/19/2025 - 10:00
    gurux.dlms.c 9.0.2505.1901
  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401

New forum topics

  • Reading all "Data" object type parameter together
  • com_read getting failed for billing profile and instantaneous profile
  • Simulator connection closed
  • Regarding the dlms android project
  • Issue with "ServiceError Initiate Error exception. Service UNSUPPORTED"
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin