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. Node
  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 11 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 11 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, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More

Who's new

  • Asier Sierra
  • BlessyAnn
  • sravya.thota@m…
  • Diwakar
  • williamorussell
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin