Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. 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

8 months 1 week 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

8 months 1 week 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

8 months 1 week 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

8 months 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

  • Tue, 04/14/2026 - 11:47
    gurux.dlms.java 4.0.93
  • Mon, 04/13/2026 - 16:12
    gurux.dlms.java 4.0.92
  • Mon, 04/13/2026 - 11:39
    Gurux.DLMS.Net 9.0.2604.1301
  • Tue, 04/07/2026 - 17:17
    Gurux.DLMS.Python 1.0.197
  • Tue, 04/07/2026 - 15:03
    gurux.dlms.c 9.0.2604.0701

New forum topics

  • FRMR information field translation
  • Connect to EDMI metter
  • Meter rejects reading multiple objects, but it conformance says it supports it.
  • ISKRA ME372 CONNECTION BY DLMSDIRECTOR
  • Connecting To iskrameco ME382- Single Phase Meter with Optical Probe
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin