Hi guys!
When reading GXDLMSClock, the response from the hardware is an empty HDLC packet:
SEND:
GXDLMSClock clock = new GXDLMClock();
byte[] obj = client.Read(clock, 2);
reader.ReadDLMSPackage(obj, reply);
"7E A0 1C 00 02 00 21 61 32 41 DB E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 02 00 60 1A 7E"
RECEIVED:
7E A0 0A 61 00 02 00 21 51 3D D4 7E
~~~ ~~~ ~~~ ~~~
Full traffic:
22:08:27.892 Start processing.
22:08:27.944 SNRM request.
22:08:27.950 > 7E A0 23 00 02 00 21 61 93 7C A0 81 80 14 05 02 04 00 06 02 04 00 07 04 00 00 00 01 08 04 00 00 00 01 72 E3 7E
22:08:28.066 < 7E A0 23 61 00 02 00 21 73 97 F4 81 80 14 05 02 04 00 06 02 04 00 07 04 00 00 00 01 08 04 00 00 00 01 72 E3 7E
22:08:28.081 AARQ request.
22:08:28.089 > 7E A0 4F 00 02 00 21 61 10 F0 03 E6 E6 00 60 3E A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 41 18 10 5E 64 3B 45 70 3F 0D 3D 65 2A 05 1D 4E BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF 9B 39 7E
22:08:28.302 < 7E A0 5B 61 00 02 00 21 30 A8 4B E6 E7 00 61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 0E 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 42 77 66 69 79 6C 62 67 7B 6C 47 42 3B 35 55 5E BE 10 04 0E 08 00 06 5F 1F 04 00 00 18 1D 04 00 00 07 0D BF 7E
22:08:28.312 start read clock
22:08:28.315 > 7E A0 1C 00 02 00 21 61 32 41 DB E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 02 00 60 1A 7E
22:08:33.388 < 7E A0 0A 61 00 02 00 21 51 3D D4 7E
22:08:33.391 end read clock
22:08:33.394 DisconnectRequest.
22:08:33.398 > 7E A0 0A 00 02 00 21 61 53 CA 44 7E
22:08:33.468 < 7E A0 21 61 00 02 00 21 73 2C C3 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
22:08:33.591 Finish processing.
Why am I getting an empty package?
Hi, The meter should return…
Hi,
The meter should return the time of the clock. Check first that the clock object is available on the association view.
Then try to remove DeltaValueEncoding from the proposed conformance. Something like this:
client.ProposedConformance &= ~Conformance.DeltaValueEncoding
This must be done before you establish the connection to the meter.
BR,
Mikko
Hi Mikko, thank you very…
Hi Mikko, thank you very much for a good idea!
I will try it.
Just update the GXDLMSReader component first, from https://github.com/Gurux/Gurux.DLMS.Net/blob/master/Gurux.DLMS.Client.E… .Net/GXDLMSReader.cs
BR,
vtulyakov84
Miko I did it! ~~~ I missed…
Miko I did it!
~~~
I missed a part of the code:
...
this.logger.log_msg("GetApplicationAssociationRequest");
foreach (byte[] it3 in client.GetApplicationAssociationRequest()) {
reply.Clear();
reader.ReadDLMSPacket(it3, reply);
}
client.ParseApplicationAssociationResponse(reply.Data);
...
I read serial number!!! Yahuu...!!!!
Many thanks to you and your group!
BR,
vtulyakov84