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. Forums
  3. Year In Clock Structure Is Not Correct

Year in clock structure is not correct

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By manju_guru , 10 August, 2020
Forums
General discussion

Hello Mikko,

I tried reading clock from the meter using DLMS client example in C. everything is fine except the year value. It reads as 120 instead of 2020 or 20. Can you please tell me how can i fix this?
Clock structure screenshot is attached here.

Here is the trace:

Time Sync
Time Sync : COSEM Init
OK
Time Sync : Init Connection
SNRM Request
TX:7EA00A00020401619311F37E
RX:7EA023610002040173C5B4818014050200FA060200FA0704000000010804000000011C5A7E
AARQ Request
TX:7EA06E000204016110718EE6E600605DA109060760857405080103A60A04085A454E30303039318A0207808B0760857405080202AC12801091C8E472391C8E47A3D1E874BADD6E37BE230421211F3000000258E486A40AD3D2E0105D0F47BBFA96EA3BD0AA35DAEE6D19A94C0AF48E7E
RX:7EA07A610002040130ACF7E6E7006169A109060760857405080103A203020100A305A10302010EA40A04085A454E303030393188020780890760857405080202AA128010DD44D0CBF0829C323FE3FD1DDBBB0264BE230421281F3000000BD4FD691C6458793B69599418CDC253EFE4B8A475B396CCF8FEC10DCC607E
App. Association Request
TX:7EA04100020401613216F6E6E600CB303000000259AF66A0961FB142522CCD2EA643684A5D38B28BF711E512618832ABCB84E1A86E649646504E70DACAA24FCFD9487E
RX:7EA03A610002040152BE70E6E700CF293000000BD503D5934A6A5B073FB12F37C62DE58FFC55D7138EFE10B9F13D8F3EC8542FF3EAC4AF6ACE13F87E
OK
Time Sync : Read Meter Clock
TX:7EA02F00020401615482D2E6E600C81E300000025B9185018D3AFDC951FE43376331B36BDD5C0D0433A7A89164F82B1F7E
RX:7EA034610002040174ABB2E6E700CC233000000BD64FEA9D932445CB4BB9D92443B5AE66C67B581478BB01DD37DC36CD7C8E7327E97E
OK

Image
Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

It's correct. Year in tm structure is years since 1900. It's defined on ANSI C standard.

BR,

Mikko

manju_guru

6 years 2 months ago

Hello Mikko,

Hello Mikko,

I was thinking to add the offset as 1900. Thanks for the clarification. :)

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Association refresh related issue
  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
More

Who's new

  • Anand Raj
  • amir.jradi
  • JOEBID€N123
  • yogibear
  • Eric@li
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin