Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Is It Possible To Simulate a Communication Via Serial?

Is it possible to Simulate a communication via serial?

Profile picture for user Frank
By Frank, 31 January, 2025
Forums
Gurux.Serial

Hi
I have successfully simulated my device via tcp/ip but my device is originally communicating by serial

I have tried the examples but i can't successfully do it.

Profile picture for user Kurumi

Kurumi

10 months 2 weeks ago

Hi, You can simulate your…

Hi,

You can simulate your meter with a serial port connection if you remove TCP arguments (-h and -p) and add -S COM_X where COM_X is your serial port.

BR,
Mikko

Profile picture for user Frank

Frank

10 months 2 weeks ago

this is the argument…

this is the argument parameters that i am using
args = new string[]
{
"-S", "COM1:56000:8None1",
"-x", "sim1.xml"
};
I tried using a comport that my pc doesn't have, and it asked me to use one of my existing ports.
I tried com1 which is there, but I am not using, and this is the console output

Logical Name DLMS Server in serial port COM1 56000 8None1 None using HDLC.
----------------------------------------------------------

i tried connecting to it using the director but the throws this port access denied

08:36:34 Initializing serial connection.
System.UnauthorizedAccessException: Access to the port 'COM1' is denied.
at GXDLMSDirector.GXDLMSCommunicator.InitSerial()
at GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
at GXDLMSDirector.GXDLMSDevice.InitializeConnection()
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
08:36:47 Initializing serial connection.
System.UnauthorizedAccessException: Access to the port 'COM1' is denied.
at GXDLMSDirector.GXDLMSCommunicator.InitSerial()
at GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
at GXDLMSDirector.GXDLMSDevice.InitializeConnection()
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
08:37:09 Initializing serial connection.
System.UnauthorizedAccessException: Access to the port 'COM1' is denied.
at GXDLMSDirector.GXDLMSCommunicator.InitSerial()
at GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
at GXDLMSDirector.GXDLMSDevice.InitializeConnection()
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)

does it need actual hardware? and am i missing some parameters?

I also tried using the just -S COM1, still the same errors

Profile picture for user Kurumi

Kurumi

10 months 1 week ago

Hi, You need two serial…

Hi,
You need two serial ports and then you need to connect them.
GXDLMSDirector needs one serial port and the simulator uses the other one.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Fri, 12/12/2025 - 08:38
    Gurux.DLMS.Python 1.0.195
  • Thu, 12/11/2025 - 13:22
    Gurux.DLMS.Python 1.0.194
  • Thu, 12/11/2025 - 11:01
    gurux.dlms.java 4.0.86
  • Wed, 12/10/2025 - 08:45
    gurux.dlms.java 4.0.85
  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201

New forum topics

  • Inhemeter i210 dlms director
  • Gurux.Net
  • GXTIME Conversion Issue
  • DLMS Meter Gurux DLMS Director Properties
  • Using MAX3232 + FT232RL to Energy meter with GXDLMS Director
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin