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. Change Host Name, Port and DLMS Settings

Change Host name, port and DLMS settings

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 meru , 24 November, 2021
Forums
Gurux.DLMS

Hello Marco,

I'm running gurux.dlms.c on linux but i dont know on which file i should make modifications to change Host name, Port and DLMS settings. Can you please advice?

Thanks in advance

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

Add command line parameters

-h YOUR_HOSN_NAME -p YOUR_METER_PORN_NUMBER

BR,
Mikko

meru

4 years 6 months ago

Here's the out put of the

Here's the out put of the command:

~/GuruxDLMS.c-master/GuruxDLMSClientExample/bin$ sudo ./gurux.dlms.client.bin -h 192.168.1.17 -p 4062 -c 16 -s 1 -r SN
Connecting to 192.168.1.17:4062
InitializeConnection
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
Data send failed. Try to resend 3/3
SNRMRequest failed Data receive failed.
Data receive failed.

I dont know what's wrong

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi Meru,

Hi Meru,

I believe that one of your settings is wrong and the meter doesn't reply because of that.
What meter do you try to read?

Try to connect with GXDLMSDirector. After you can establish the connection select the meter and you can see the correct command line parameters.

BR,
Mikko

meru

4 years 6 months ago

Hello,

Hello,

I"m using Gurux serverexample on windows pc . I tried another command and here is the result:

sudo ./gurux.dlms.client.bin -h 192.168.1.17 -s 1 -p 4060 -r SN -c 16
Connecting to 192.168.1.17:4060
InitializeConnection
GetAssociationView
-------- Reading Object AssociationShortName 0.0.40.0.0.255
ReadObject failed AssociationShortName 0.0.40.0.0.255:2 Invalid response
munmap_chunk(): invalid pointer
Aborted

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

You are right. I was able to make the same error. Everything seems to work with Logical Name referencing, but Short Name referencing is causing an exception in Linux. This seems to work in Windows. I'll let you know as soon as I have more info.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

Thank you for pointing this out. This is now fixed. Get the latest version from GitHub.

BR,
Mikko

  • 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