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. How To Setup High Level Authentication With Gurux.DLMS.c

How to setup High level authentication with Gurux.DLMS.c

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 stanQ , 26 November, 2018
Forums
Gurux.DLMS

Hi,
I must say you guys at GURUX are doing a great work.

I am currently working a smart meter project and which to implement the GURUX DLMS protocol.
The server and client component works well and I'm able to read the server with the client application.

Now I want to write to the server. I observed I would need to use DLMS_AUTHENTICATION_HIGH and I guess a password. I'm not exactly sure now to do this on the client and server side.

On the client side, I initialized the client with

cl_init(&meterSettings, 1, 16, 1, DLMS_AUTHENTICATION_HIGH, password, DLMS_INTERFACE_TYPE_HDLC);

where password is a pointer to the password.

On the server side, I attempted to create same password with

bb_addString(&settings.base.password,password);

before initializing the server with

svr_init(&settings, 1, DLMS_INTERFACE_TYPE_HDLC, HDLC_BUFFER_SIZE, PDU_BUFFER_SIZE, frame, HDLC_BUFFER_SIZE, pdu, PDU_BUFFER_SIZE);

with these settings the server returns DLMS_ERROR_CODE_AUTHENTICATION_FAILURE.

How do I enable client connection with DLMS_AUTHENTICATION_HIGH?

Pointers and/or code snippets would be appreciated.

I'm quite new to GURUX DLMS and would require help.

Thanks.

Regards,
stanQ

Profile picture for user Kurumi

Kurumi

7 years 6 months ago

How to setup High level authentication with Gurux.DLMS.c

Hi,

Positive feedback is always nice to get.

In DLMS Low-level password is set as you have done. If you want to set a high-level password it is set for as a secret for gxAssociationLogicalName object.

Like this:

bb_addString(&association.secret, password);

In our example it's set as "Gurux".

BR,
Mikko

stanQ

7 years 6 months ago

In reply to How to setup High level authentication with Gurux.DLMS.c by Kurumi

stanQ

Thanks Kurumi, you're the best. Didn't expect the quick response.

Its working now.

KUDOS on your product and service.

  • 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