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
Hi, The client address is…
Hi,
The client address is usually bound to the CGXDLMSAssociationLogicalName. The server address is checked on IsTarget.
https://www.gurux.fi/Gurux.DLMS.Server
You can check the ANSI C implementation here: https://github.com/Gurux/GuruxDLMS.c/blob/b14e6e0b5505d90a78d059f3bafd7…
Regards,
Mikko
Hi, thank you for the reply,…
Hi, thank you for the reply, i will try implement it in c++
Regards
jack