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

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

  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • Dawsontot
  • Jerrylam
  • qvlLdJweKzGUYaSOVS
  • LindanEt
  • annoyingconsultants
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin