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. 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

6 years 10 months 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

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin