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. Incorrect HDLC Source Address (0x21) Sent When Security Level != NONE (Python Library V1.0.178)

Incorrect HDLC Source Address (0x21) Sent When Security Level != NONE (Python Library v1.0.178)

By harshdeep , 17 April, 2025
Forums
Gurux.DLMS

When using GXDLMSSecureClient with the HDLC interface, the clientAddress set in the settings object (client.settings.clientAddress) is incorrectly ignored during the generation of the HDLC SNRM frame if and only if a Security level other than Security.NONE is configured via client.ciphering.security.
If client.ciphering.security is left as Security.NONE, the HDLC source address is generated correctly based on settings.clientAddress.
If client.ciphering.security is set to Security.AUTHENTICATION, Security.ENCRYPTION, or Security.AUTHENTICATION_ENCRYPTION, the HDLC source address incorrectly defaults to the value corresponding to logical address 16 (0x21), regardless of the actual value present in settings.clientAddress just before the connection attempt.
The serverAddress (settings.serverAddress) is always used correctly to generate the HDLC Destination Address byte in both scenarios.

Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi, DLMS standards define…

Hi,

DLMS standards define HDLC client address only for the authentication level None, and different manufacturers are using different values. If you are using other authentication levels, you must set the client address like this:

self.client.clientAddress = 1

BR,
Mikko

harshdeep

1 year 2 months ago

Hi, Okay sir, I’m in now…

Hi,

Okay sir, I’m in now.

Thank you very much!

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501
  • 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

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin