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 Set Logical Server Address On Client?

How to set logical server address on client?

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 bayasgalan , 5 November, 2020
Forums
Gurux.DLMS

I'm working on driver software as client for Wasion electric meter. But meter's logical server address is 1, but I can't find logical server address setting in dlms.c file. is it not implemented yet? how to add logical server address part in hdlc address?

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,
Logical server address 1 is the default value, but you can change it with cl_init method.

cl_init(&settings,
// Is used Logican Name or Short Name referencing.
1,
//Client ID
16,
//Server ID
1,
//Authentication Level.
DLMS_AUTHENTICATION_NONE,
//Password
NULL,
// Is used HDLC or COSEM transport layers for IPv4 networks (IEC 62056-47)
DLMS_INTERFACE_TYPE_HDLC);

You can get more information from here:
http://www.gurux.fi/Gurux.DLMS.Client

BR,
Mikko

bayasgalan

5 years 7 months ago

The meter's physical server

The meter's physical server address is 129 and logical server address is 1. But I can only set physical server address in cl_init. In GX dlms director, I can set logical server address as attached picture.
When I set logical server address to 1, the SNRM request is like 7E A0 0A 00 02 02 03 03 93 D6 5B 7E and meter responds.
When i set logical server address to 0, the SNRM request is: 7E A0 08 02 03 03 93 05 77 7E and meter is not responding because Meter's logical server address is 1.

Image
Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

There is no GetServerAddress for ANSI C. I'll add that to the worklist. In the meantime, you can use value: 0x4081. It will do the trick.

BR,
Mikko

bayasgalan

5 years 7 months ago

i've tried and it's working.

i've tried and it's working.
Thanks a lot

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

cl_getServerAddress method is added. You can use it to get the server address from the physical and logical address.

BR,
Mikko

Rui Costa

3 years 3 months ago

Hi, how did you arrive at…

Hi,
how did you arrive at that number (0x4081)?
I am using meter ACE6000 and my phisical adress server is 7F. The logic is 1. Using the example, what number should I put?
Best regards,
Rui Costa

  • 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