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

4 years ago

Hi,

Hi,

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

BR,
Mikko

belen.morenate

4 years 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 12 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 11 months ago

Any update on this?

Any update on this? I would really appreciate

Profile picture for user Kurumi

Kurumi

3 years 11 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

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin