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. Node
  3. Setting Time Using The ValueEventArgs.

Setting time using the ValueEventArgs.

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 pramodahanya , 19 July, 2019
Forums
Gurux DLMS for Java

Dear,
We want to parse the LP entries received as push messages. We are using the XMLTranslator to translate the received message into XML and converting it into GXDLM objects.
When we try to set the time using the ValueEventArgs only the time is set and the deviation is ignored.
We don't know if this is a bug or limitation. As per blue book if we set the time the meter has to populate other values based on the time, does this also apply while reading the time.
If the GXDLMSClock is designed to set only the time while setting the attribute 2 is there any other method which can be used without explicitly reading the deviation and setting it. I do understand that the deviation which we get from the meter will be a combination of timezone and deviation.

The behaviour is the same while reading the load profile profile generic object from HES.

Below is an extraction of the code snippet. (Logical name, Object type, attribute index, data index and value are extracted from the XML. Have hardcoded for easier interpretation).

GXDLMSObject obj = GXDLMSClient.createObject(ObjectType.CLOCK);
obj.setLogicalName("0.0.1.0.0.255");
ValueEventArgs e = new ValueEventArgs(obj, 2, 0, null);
e.setValue(Util.hex2ByteArray("07E307130507000015FF8880"));
obj.setValue(null, e);

Thank You
Best Regards
Pramod G

Profile picture for user Kurumi

Kurumi

7 years 1 month ago

Hi,

Hi,

Meter deviation is wrong (0xFF88). Check that and try to change that to the meter or ask meter manufacturer to fix it.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin