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. Write Data In Objects Like Payment Mode, Metering Mode, Clock.

Write data in objects like Payment Mode, Metering Mode, Clock.

By saraf_kshitiz , 13 August, 2025
Forums
Gurux DLMS for Android

Hi Mikko Sir,

I need to create methods in my app's code for writing data to the COSEM Object of the meter. Can you please guide on how can I do that?

For example, I've to set 0.0.94.96.20.255 Payment Mode from prepaid to postpaid (or vice versa). For doing that in windows GXDLMSDirector, we change its value from 0 to 1 or 1 to 0 and write it to the meter after making a secured US connection.

Please guide.

Thanks,
Kshitiz

saraf_kshitiz

1 year ago

Hi Sir, Also, please guide…

Hi Sir,

Also, please guide on how can I set the time in 0.0.1.0.0.255 Clock Object.
Further, I need to Execute - MD Reset Action (0.0.10.0.1.255) - make a billing profile script and execute that on command.
Also, set 0.0.94.96.19.255 Metering Mode (Value - 0/1)

saraf_kshitiz

1 year ago

Hi Mikko Sir, I am…

Hi Mikko Sir,

I am expecting a response on the above issue. Please provide your guidance on the same.

Thanks,
Kshitiz

Profile picture for user Kurumi

Kurumi

1 year ago

Hi, You can write values…

Hi,

You can write values like this:

GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
clock.setTime(java.util.Calendar.getInstance().getTime());
byte[][] data = mClient.write(object, 2);
GXReplyData reply = new GXReplyData();
readDataBlock(data, reply);

Check this from the client example:

https://github.com/Gurux/Gurux.DLMS.Android/blob/a2e6f6d568c57335a9a172…

You can invoke the method by calling it on the COSEM object. Check the class that you want to use.

BR,
Mikko

saraf_kshitiz

1 year ago

Hi Sir, Thanks for the…

Hi Sir,

Thanks for the response. This code words for me.

BR,
Kshitiz

  • 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

  • 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)
  • Reading PushSetupObject attr 10 error
  • addCaptureObject as Class ID=01 (Data) (not 03 (Register))
  • L+G E355 Load Control
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin