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

2 months 4 weeks 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

2 months 4 weeks 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

2 months 3 weeks 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

2 months 3 weeks 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, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801
  • Fri, 09/26/2025 - 10:02
    gurux.dlms.cpp 9.0.2509.2601
  • Fri, 09/26/2025 - 09:45
    gurux.dlms.c 9.0.2509.2601

New forum topics

  • Guidance on using the source codes
  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
  • Unable to Release Request when closing connection with meter.
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin