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.
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