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. US Association With GuruxDLMSServer.c

US Association with guruxDLMSServer.c

By Sravanti , 9 May, 2025
Forums
Gurux.DLMS

Hi Kurumi,

Currently working on PC association using guruxDLMSserver.c with ESP32 using Arduino IDE .
With TCP communication we are able to download objects using GXDLMSDirector. Now we want to use US association.
Unable to assign authentication key and blockcipherkey in esp32 as dlms server.
What settings we need to do or add to get US association work.

Thank you

Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi, You can set the block…

Hi,

You can set the block cipher and authentication keys like this:

Server.assingBlockCipherKey(&blockCipherKey.value);
Server.assingAuthenticationKey(&authenticationKey.value);

BR,
Mikko

Sravanti

1 year 2 months ago

Thank you, Kurumi, for the…

Thank you, Kurumi, for the quick reply.
I have tried the lines which you have mentioned. Its giving error regarding value not a member.
I need to know what code modification I need to do for US association with security and authentication HIGH.

https://github.com/Gurux/GuruxDLMS.c/blob/master/GuruxDLMSServerExample…
with the above reference code able to download objects with PC association, with DLMServer in ESP32. The same way I need US association as well.
Facing issue with assigning authentication, security keys and assigning DLMS_AUTHENTICATION_HIGH.
Please let me know.

Thank you.

Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi, You can find the Arduino…

Hi,

You can find the Arduino example from here:

https://github.com/Gurux/GuruxDLMS.c/tree/master/Arduino_IDE/server

BR,
Mikko

Sravanti

1 year 2 months ago

Hi kurumi, I tried the…

Hi kurumi,

I tried the example that you have specified, but unable to communicate using authentication and encryption enabling. Am I missing something?
I am using default keys and secret password.

Thankyou.

  • 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

  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin