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
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
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
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