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 8 months ago

Hi,

Hi,

Add command line parameters

-h YOUR_HOSN_NAME -p YOUR_METER_PORN_NUMBER

BR,
Mikko

meru

4 years 8 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 8 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 8 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 8 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 8 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • CorwXGlcWwyuiJawypxb
  • Vegazone-Casin…
  • VegaZone-lBit
  • Vegazone-Sverige-Fug
  • UIRlLOZQoyTZHC…
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin