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.Net Sample Applications

DLMS.Net Sample Applications

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 ksinghal , 12 July, 2017
Forums
Gurux.DLMS

I want to do the following:
1. How to make the DLMS.net client sample application work with DLMS.net server Sample application?
2. Is this just a simulation samples on Development Machine or can be tried on Power meter?
3. Is there any special class/type of Power meter this samples will work?
I am new to DLMS and need your help.

Thanks

ksinghal

8 years 11 months ago

Parameter Configuration

In Sample what all needs to be changed for making them work?

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

DLMS.Net Sample Applications

Hi,

Start DLMS example server. Then you can connect to the one of four meters.
You can connect example Short Name server like this:
Gurux.DLMS.Client.Example.Net /m=lgz /h=localhost /p=4060

Using Logical Name referencing:
Gurux.DLMS.Client.Example.Net/m=grx /h=localhost /p=4061

BR,

Mikko

ksinghal

8 years 11 months ago

Remote Assistance

Can you show me how on remote session?

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Remote Assistance

Hi,

We are quite busy at the moment and for this reason we can arrange remote assistance only our commercial clients.

BR,

Mikko

ksinghal

8 years 11 months ago

This +358 3 265 1244 is your

This +358 3 265 1244 is your mobile number or landline number?
I can call you and discuss for paid assistance.

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Remote Assistance

Hi,

It's land line. Yes, you can call anytime.

BR,

Mikko

Profile picture for user ivan

ivan

8 years 11 months ago

Wrong variable is used

Please check at line 124. id variable is used for both referencing and manufacturer.
https://github.com/Gurux/Gurux.DLMS.Net/blob/master/Gurux.DLMS.Client.E…

I suppose that was not the intention.

else if (item.StartsWith("/r="))//referencing

{

id = item.Replace("/r=", "");

}

else if (item.StartsWith("/m="))//Manufacturer

{

id = item.Replace("/m=", "");

}

Also check ShowHelp at line 78
Console.WriteLine("GuruxDlmsSample /sp=COM1 /s=DLMS /client=16 /server=1 /sn /wrapper");

/sn should be used for serial number, but it is on half way to be /r=sn or it should be /sn=12345678

Best regards

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Wrong variable is used

Hi,

You are right. Parameter /r is not used. I'll ask to remove it.

BR,

Mikko

Profile picture for user ivan

ivan

8 years 11 months ago

Paremeters are not used, default instead

Another situation is if you'd like to read meter with different parameters, for example with low level security, example does not use provided parameters. It uses default settings for specific meter.

Example.

I'd like to read Landis+Gyr E650 meter, with following parameters
/m=LGZ /sp=COM5 /s=DLMS /client=32(0x20) /server=1 /a=Low /pw=xxxxxxxx

example tries to read meter with client 0x11

As I see, only [id, host, port, iec, auth, pw] has purpose. other variables are unused.

GXCommunicatation.cs
UpdateManufactureSettings(string id) sets defaults clientAddr, serverAddr according to auth type.

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Paremeters are not used, default instead

Hi,

You are right on this. Client and server address settings should not be on Open Source version yet.
You don't need to set client address. It's updated automatically from the settings when you select authentication level.

BR,

Mikko

Profile picture for user ivan

ivan

8 years 11 months ago

World is not perfect

But the problem is that the default settings for LGZ are wrong, or something else, but Landis+Gyr E650, according to map110 and map120 app, Landis uses
following client addresses

Access Levels for IEC and dlms
-------------------------------UID---Password---Comment
[0] Public Access--------------16
[1] Data Collection------------32---xxxxxxxx---(static)
[2] Utility Field Service--------48---xxxxxxx---[Coded password]
[3] Utility Service--------------64--------------- Service Menu required
[4] Extended Utility Service---80--------------- Hardware Switch required

Access Level for dlms only
[5] Extended Consumer------17---xxxxxxxx---(static)
[6] Remote Data Collection---18---xxxxxxxx---(static)
[7] Remote Service-----------19---xxxxxxxx---[no password/static/coded]

Access Level for Security System Modification (dlms only)
[A] Utility Defined-------------22----------------[no password/static/coded]
[C] Read Administrator-------96---xxxxxxx----(coded) - Harware Switch required
[D] Utility Administrator-------97---xxxxxxx----(coded) - Harware Switch required
[E] Distributor Service--------100--xxxxxxx----(coded) - Harware Switch required

User Defined Access Level
[X] User Defined--------------xx---xxxxxxx------[no password/static/coded]

Profile picture for user ivan

ivan

8 years 11 months ago

But OK

I'll rewrite GXCommunicatation for my needs.

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Paremeters are not used, default instead

Hi,

This is a big problem because DLMS standard don't define client's IDs and different meters are
using different values.

As project name says this is an example and it's a starting point how to read your meter.
I believe that you are not interested to read all your values from the meter.

Happy coding.

BR,

Mikko

ksinghal

8 years 11 months ago

Hi Ivan, Mikko

Hi Ivan, Mikko

Can you share your email to share screen shots of the problem I am facing?

Profile picture for user ivan

ivan

8 years 11 months ago

I don't know how

According to this rule
http://www.gurux.fi/node/4099

I'm not sure how.

There is no option private message.

Profile picture for user Administrator

Administrator

8 years 11 months ago

Private messages.

Hello,

Private messages are not allowed at the moment. It's blocked because all peoples don't want to receive emails from unknown people.

  • 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