var ldn = new GXDLMSData("0.0.42.0.0.255") { Value = Device.LogicalName };
ldn.SetDataType(2, DataType.OctetString);
ldn.SetUIDataType(2, DataType.String);
Items.Add(ldn);
<Lots of Items added to Items>
server.Initialize();
var sr = new GXServerReply("6228800100BE230421211F3000000005434F286885E6467CD203A378F493C9896CF195AF8A0AD55FA9F3".HexToBytes());
server.HandleRequest(sr);
var rlre = sr.Reply.ToHexString();
We get an invalid RLRE:
632D800100BE2B042ADB08454D4541303030311F30000000045F3C63A87DDAF0EB19C912FF2E2E70557A65E33D9056364F066F
Should we set anything else to make RLRE work?
What are the Items evolved in the RLRE that may affect RLRE generation?
What are the Items stored in GXDLMSServer.cs that may affect the RLRE generation?
or alternativelly could you point me to the code in github to read it?
You need to set UseProtectedRelease to true and call the client's Release method. You don't hardcode RLRE because it's changing for every transaction. I believe this is the reason why it fails.
Hi,
Hi,
It should work without problems. What programming language you are using in the server side?
BR,
Mikko
We are using .net (C#):
We are using .net (C#):
We set properties of GXDLMSServer->Settings (type GXDLMSSettings):
Settings.Authentication = Authentication.HighGMAC;
Ciphering.SystemTitle = Encoding.ASCII.GetBytes(Device.LogicalName);
Ciphering.RecipientSystemTitle = "<any byte[8]>"
Ciphering.Security = Security.AuthenticationEncryption;
Ciphering.SecuritySuite = SecuritySuite.GMac;
Ciphering.BlockCipherKey = <any byte[16]>;
Ciphering.AuthenticationKey = <any byte[16]>;
var ldn = new GXDLMSData("0.0.42.0.0.255") { Value = Device.LogicalName };
ldn.SetDataType(2, DataType.OctetString);
ldn.SetUIDataType(2, DataType.String);
Items.Add(ldn);
<Lots of Items added to Items>
server.Initialize();
var sr = new GXServerReply("6228800100BE230421211F3000000005434F286885E6467CD203A378F493C9896CF195AF8A0AD55FA9F3".HexToBytes());
server.HandleRequest(sr);
var rlre = sr.Reply.ToHexString();
We get an invalid RLRE:
632D800100BE2B042ADB08454D4541303030311F30000000045F3C63A87DDAF0EB19C912FF2E2E70557A65E33D9056364F066F
Should we set anything else to make RLRE work?
What are the Items evolved in the RLRE that may affect RLRE generation?
Thanks!
What are the Items stored in
What are the Items stored in GXDLMSServer.cs that may affect the RLRE generation?
or alternativelly could you point me to the code in github to read it?
Any update on this?
Any update on this? I would really appreciate
Hi,
Hi,
You need to set UseProtectedRelease to true and call the client's Release method. You don't hardcode RLRE because it's changing for every transaction. I believe this is the reason why it fails.
BR,
Mikko