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. Gurux Server

Gurux Server

Profile picture for user alfathaff
By alfathaff , 15 January, 2024
Forums
Gurux.Net

Is it possible to read the Gurux.server.example on linux through another device using a serial port? I have tried it through localhost, and it worked. However, when using the serial port, it becomes like this:

Gurux.DLMS.Client.Example.Net -r sn -h 0.0.40.0.2.255 -p 4060 -S COM13 -t Verbose
Standard: DLMS
Send SNRM request.7E A0 07 03 21 93 0F 01 7E
TX: 6:39:22 PM 7E A0 07 03 21 93 0F 01 7E
TX: 6:39:27 PM 7E A0 07 03 21 93 0F 01 7E
TX: 6:39:32 PM 7E A0 07 03 21 93 0F 01 7E
Disconnecting from the meter.
Failed to receive reply from the device in the given time.
System.Exception: Failed to receive reply from the device in the given time.

What command should I modify?

Thank you very much.

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Yes, that is possible…

Hi,

Yes, that is possible. Your serial port (COM13) is invalid. In Linux serial ports are like this:

/dev/ttyS1

You need to check what serial ports are available in your distro.

BR,
Mikko

Profile picture for user alfathaff

alfathaff

2 years 4 months ago

I am currently utilizing the…

I am currently utilizing the DLMS client net on my computer to access the Gurux server example running on Linux. The available port is COM13. Should I consider changing the port and host?

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Are you running your…

Hi,

Are you running your Linux in Windows subsystem (WSL)?

How you have connected your Linux and Windows serial ports?

BR,
Mikko

Profile picture for user alfathaff

alfathaff

2 years 4 months ago

Hello, I apologize for the…

Hello,

I apologize for the incomplete explanation. Currently, I am using the DLMS client net on my Windows computer to access the Gurux server example running on another device, which is a Linux-based Raspberry Pi.

I also attempted to communicate between Gurux.client and Gurux.server using Windows and a serial port. I have confirmed that the connection is successful, and commands from Gurux.client are being received (between two Windows devices) using Docklight: 1/22/2024 8:59:35:22 [RX] - 74 65 73 74 7E A0 07 03 21 93 0F 01 7E 7E A0 07 03 21 93 0F 01 7E

However, when executed through the command prompt (cmd):

E:\Gurux.DLMS.Net\Gurux.DLMS.Net-master\Gurux.DLMS.Client.Example.Net\bin\Release>Gurux.DLMS.Client.Example.Net.exe -r sn -h localhost -p 4060 -S COM6:9600:8None1 -t Verbose
Standard: DLMS
Send SNRM request.7E A0 07 03 21 93 0F 01 7E
TX: 9:00:10 PM 7E A0 07 03 21 93 0F 01 7E
TX: 9:00:15 PM 7E A0 07 03 21 93 0F 01 7E
TX: 9:00:20 PM 7E A0 07 03 21 93 0F 01 7E
Disconnecting from the meter.
Failed to receive a reply from the device in the given time.
System.Exception: Failed to receive a reply from the device in the given time.

Is there any command that I should change?

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, I believe that your…

Hi,

I believe that your server is communicating with TCP/IP and your client is trying to connect with a serial port.

You haven't told the server what serial port it should use. What programming language are you using on the server side?

BR,
Mikko

Profile picture for user alfathaff

alfathaff

2 years 4 months ago

Hello, For the server, I am…

Hello,

For the server, I am using the Java programming language (gurux.dlms.server.example.java)

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, I belive that you have…

Hi,

I belive that you have started the example meter without arguments and it's using TCP/IP connection. You need to start server like this:

java -jar gurux.dlms.server.example.java-0.0.1-SNAPSHOT -S YOUR_SERIAL_PORT

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin