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 11 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 11 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 10 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 10 months ago

Any update on this?

Any update on this? I would really appreciate

Profile picture for user Kurumi

Kurumi

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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • JosephNok
  • IUJbutxeSTSNcNRN
  • Peraturaidetetug
  • NnmIomcqcTDVWiDuCD
  • iRnseovnShdVWR…
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin