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. Forums
  3. RLRQ-RLRE With Glo-service-specific

RLRQ-RLRE with glo-service-specific

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By belen.morenate , 22 August, 2022
Forums
Gurux.DLMS

Hi all
I am using Gurux.DLMS as a server simulator.
I get all request-responses well except RLRE.

When I request to GXDLMSServer.cs the RLRQ like this:
https://www.gurux.fi/GuruxDLMSTranslator?pdu=6228800100BE230421211F3000…

I get as response an invalid APDU
https://www.gurux.fi/GuruxDLMSTranslator?pdu=632D800100BE2B042ADB08454D…

Server is configured ok because the rest AARQ, AARE, Get-requests, glo-ciphered... all are working fine except RLRE.

Any idea? is this working in the Gurux.DLMS server or is there any known issues around?

Thanks!

Profile picture for user Kurumi

Kurumi

3 years 9 months ago

Hi,

Hi,

It should work without problems. What programming language you are using in the server side?

BR,
Mikko

belen.morenate

3 years 9 months ago

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!

belen.morenate

3 years 8 months ago

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?

belen.morenate

3 years 8 months ago

Any update on this?

Any update on this? I would really appreciate

Profile picture for user Kurumi

Kurumi

3 years 8 months ago

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

  • 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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin