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. Use DLMS Server Over Serial Interface

Use DLMS server over serial interface

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 Bhaumik , 27 March, 2020
Forums
Gurux.Serial

Hi Mikko,

Is there anything in the DLMS server EXE, that we can connect it over a serial interface, Or else we can connect it only through IP address and port?

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

You can use csharp server example -S parameter gives serial port. Like this -S COM1

BR,
Mikko

Bhaumik

6 years 2 months ago

Hi Mikko,

Hi Mikko,

Can you please provide link to download csharp server example ASAP.

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Server.E…

BR,
Mikko

Bhaumik

6 years 2 months ago

Hi Mikko,

Hi Mikko,

I have tried with the provided source.
As per reply #2, I have provided parameter as shown attached screenshot "SerialServer.png" and got the print as
"Logical Name DLMS Server in serial port COM33".

Then after I am trying to connect this using GXDLMSDIrector but it gives an error message "COM33" already in use.

So, How to use the serial c# server? Let me know I need to any other configuration.

PFA.

Image
Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

IF you want to use serial connection port you need two serial port and then you connect them using serial port cable. The server is using other serial port and GXDLMSDirector is using the other.

You can't share one serial port between the server and client.

BR,
Mikko

KhushbuBadheka

6 years 2 months ago

Thanks Mikko.

Thanks Mikko.

KhushbuBadheka

6 years 2 months ago

Hi Mikko,

Hi Mikko,

We tried a setup with just two ports with no communication between them via Server and GuruX client executable. So can you please give some brief idea for setting up the ports. Do we need to use virtual ports with twisted pair connection?

Regards.

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

If you can use virtual ports it's ok. Just connect two ports together so when a client is send data to the port1 it's coming out from port2 and vice verse.

BR,
Mikko

KhushbuBadheka

6 years 2 months ago

Hi Mikko,

Hi Mikko,

We used virtual COM ports and made connection between server client but when I tried to create a new connection server threw error that "Connection is permanently rejected. No reason is given." Do you have any idea on this?

Regards.

KhushbuBadheka

6 years 2 months ago

Hi there,

Hi there,
We set same configuration and tried again with success.

Regards.

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

I'm glad that you solve this. The amount of error codes is very limited in DLMS. A connection might fail if one of the parameters is wrong and there is not a clear solution to find out what parameter is invalid.

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