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. DLMS Server How To Set Server Logical Address, and Attach Object To Different Association

DLMS Server how to set server logical address, and attach object to different association

Profile picture for user jack 001
By jack 001 , 12 July, 2026
Forums
Gurux DLMS for ANSI C++

Hello, good day
I want to ask regarding DLMS server:
- how to set the server's logical address? I havent yet found the methods regarding that, i only found:

    unsigned char GetClientSAP();
    void SetClientSAP(unsigned char value);
 
    unsigned short GetServerSAP();
    void SetServerSAP(unsigned short value);

and in the header file (GXDLMSServerLN.h) i set it like this:

CGXDLMSServerLN(CGXDLMSAssociationLogicalName* ln,
        CGXDLMSIecHdlcSetup* hdlc) : CGXDLMSBase(ln, hdlc)
    {
        // CGXDLMSSecuritySetup* pSecurity = new CGXDLMSSecuritySetup("0.0.43.0.2.255");
        // CGXByteBuffer systemTitle;
   
        ln->SetClientSAP(10);
        ln->SetServerSAP(11);
        CGXByteBuffer password;
        password.AddString("00011123");
        ln->SetSecret(password);
    }

- after that, how to attach it to different association (with different authentication level)? last time i asked, you stated that there will be example about it. perhaps can you show some code sample on how to achieve that?

If the latter should be posted on different post, i'd happily crerate new post. thank you

 

Regards

jack

 

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • 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
  • 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

New forum topics

  • DLMS Server how to set server logical address, and attach object to different association
  • 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
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin