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. Addressing

Addressing

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.

Profile picture for user hassin Ayaz
By hassin Ayaz , 24 December, 2017
Forums
Gurux.Net

Hello ,

I have a problem regarding server(meter) addressing

in the raw HDLC frame
the destination address should be 0x00 0x02 0x00 0x03 &
the source address should be 0x03

in order to do the the above what should be the ServerAddress in the Gurux.DLMS.METER.Listener.Net example code ? here is the code snippet

GXDLMSClient client = new GXDLMSClient();

client.UseLogicalNameReferencing = true;
client.Authentication = Enums.Authentication.None;
client.Password = null;
client.InterfaceType = Enums.InterfaceType.HDLC;

client.ClientAddress = 0x01; //this is okay
client.ServerAddress = 0x0001; //I am stuck here

Thank you

Profile picture for user Kurumi

Kurumi

8 years 5 months ago

Addressing

Hi,

client.ServerAddress = 0x4001;

BR,

Mikko

Profile picture for user hassin Ayaz

hassin Ayaz

8 years 5 months ago

Addressing

Hi ,

Thanks a Lot
it has worked

BR
Hassin Ayaz

Profile picture for user hassin Ayaz

hassin Ayaz

8 years 1 month ago

Addressing

Dear Mr Kurumi

I want to understand how gurux calculates logical address of the server address
For example if i put the following values at GXDLMSDirector Software

client address = 1= 0x01
logical server = 1= 0x01
physical server = 10 = 0x10

Then According to DLMS address theory , for 2 byte address size
in the HDLC frame

client address should be 0x03
locical address should be 0x02
physical address should be 0x21

the generated hdlc snrm frame by GXDLMSDirector software is
0x7E 0xA0 0x08 0x02 0x21 0x03 0x93 0x86 0xC1 0x7E

this is okay ,it matches with the theory
but in the C# client code the output frame does not match

here is my code snippet
------------------------------------------------
client.ServerAddressSize = 2;
client.ClientAddress = 0x01;
client.ServerAddress = 0x0110;
-----------------------------------------------
and here is the output hdlc snrm frame
----------------------------------------------
Send SNRM request.0x7E 0xA0 0x08 0x04 0x21 0x03 0x93 0x1C 0x8A 0x7E
----------------------------------------------

So does the client code calculated address differenlty than the GX software ?

It would be great if you reply
Thanks A Lot & Best regards
Hassin AYaz

Profile picture for user hassin Ayaz

hassin Ayaz

8 years 1 month ago

Addressing

Dear Mr Kurumi

i have an update . using server.address = 0x4010 , 4 byte server address was generated and meter accepted that too

Thank you & best regards
hassin ayaz

Profile picture for user Kurumi

Kurumi

8 years 1 month ago

Hi,

Hi,
I have described how counting address here:

http://www.gurux.fi/dlmsAddress

You can count server address

GXLMDSClient.GetServerAddress(logical, physical);

BR,
Mikko

Profile picture for user hassin Ayaz

hassin Ayaz

8 years 1 month ago

Addressing

Dear Mr Kurumi ,
thanks a lot for the explanation .

Profile picture for user hassin Ayaz

hassin Ayaz

7 years 7 months ago

Addressing

Hello Mr Kurumi

i am trying to connect to a DCU using GXDLMSDirector Desktop Software

The DCU communicates with its own software and the SNRM packet sent by its software is

7E A0 21 00 02 22 23 03 93 ....

what should be the "Physical Server" Value in the GxDirector software
to generate the same Physical address raw packet 0x22 0x23 ?

thanks in advance

Profile picture for user Kurumi

Kurumi

7 years 7 months ago

Addressing

Hi,

Client address: 1
Logical Server address: 1
Physical server address: 2193 (0x891)

BR,

Mikko

Profile picture for user hassin Ayaz

hassin Ayaz

7 years 7 months ago

Addressing

Thanks A Lot Mr Kurumi .

server address has matched

  • 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