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. Parse Write Command Response

Parse write command response

By nick32 , 22 March, 2023
Forums
Gurux DLMS for Java

Hi,

I have a question about write method.

How parse the response sent by meter when I want write some object ?

For example, below are two write command sent to meter and these response. Both command response are similar but I don't know what to do with its.

Disconnect charge command:

Code:

GXDLMSDisconnectControl control = new GXDLMSDisconnectControl();

readDataBlock(control.remoteDisconnect(client), replyData);

System.out.println(GXCommon.bytesToHex(replyData.getData().getData()));

Meter Request: 7E A0 1E 00 20 00 23 23 32 8D 5A E6 E6 00 C3 01 C1 00 46 00 00 60 03 0A FF 01 01 0F 00 68 A6 7E

Meter Response: 7E A0 14 23 00 20 00 23 52 5C 5A E6 E7 00 C7 01 C1 00 00 FC B4 7E

Payload Response:
C7 01 C1 00 00

Change CLOCK Object, attibute 2:

Code:

Calendar cal = Calendar.getInstance();

readDataBlock(
client.write(
OBISObjectAddress.CLOCK,
cal.getTime(),
DataType.OCTET_STRING,
ObjectType.CLOCK,
2
),
replyData
);

Messages:

Meter Request: 7E A0 2A 00 20 00 23 23 54 81 E5 E6 E6 00 C1 01 C1 00 08 00 00 01 00 00 FF 02 00 09 0C 07 E7 03 16 03 0E 34 31 FF 00 B4 80 81 63 7E

Meter Response: 7E A0 13 23 00 20 00 23 74 70 D9 E6 E7 00 C5 01 C1 00 50 89 7E

Payload Response: C5 01 C1 00

What does it mean this message ? or where can I look into about this ?
Does it make sense try to parse this message ?

Thank you for your time.
Best regards.

Profile picture for user Kurumi

Kurumi

3 years 7 months ago

Hi, If you are interested in…

Hi,

If you are interested in DLMS you can read the DLMS standards:
https://www.gurux.fi/DLMSCOSEMFAQ

I have to warn you that DLMS is quite a complicated standard and you need lots of time to read those standards.

You can also use Gurux DLMS libraries as you have done.

You can use DLMS translator to convert messages to XML format:

https://www.gurux.fi/GuruxDLMSTranslator?translate=7EA01E0020002323328D…

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin