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. 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 2 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, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin