I created a pair of emulated serial ports, renamed them to COM4/5 and then tried to open a tcp client session to a remote server. Unfortunately, com2tcp could not find the device. Here is the error message:
C:\>com2tcp \\.\CNCB0 192.168.0.20 22222
OpenC0C(): CreateFile("\\.\CNCB0") ERROR No such file or directory (2)
According to the list command, the port should exist:
command> list
CNCA0 PortName=COM4,ExclusiveMode=no
CNCB0 PortName=COM5
Has anybody an idea how I can solve this? Thanks in advance!
Regards,
Christoph Kling
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried that before and it did not work. com2tcp exited with another error message. Now after you posted, I tried it again and surprisingly, it works now! Perhaps, a reboot changed something.
But now there is another problem. com2tcp outputs the following, but then it does nothing:
Hi,
I created a pair of emulated serial ports, renamed them to COM4/5 and then tried to open a tcp client session to a remote server. Unfortunately, com2tcp could not find the device. Here is the error message:
C:\>com2tcp \\.\CNCB0 192.168.0.20 22222
OpenC0C(): CreateFile("\\.\CNCB0") ERROR No such file or directory (2)
According to the list command, the port should exist:
command> list
CNCA0 PortName=COM4,ExclusiveMode=no
CNCB0 PortName=COM5
Has anybody an idea how I can solve this? Thanks in advance!
Regards,
Christoph Kling
Does \\.\COM5 not work?
"\\.\COM5" should start with a double backslash, but it got butchered here for some reason.
Hi,
I tried that before and it did not work. com2tcp exited with another error message. Now after you posted, I tried it again and surprisingly, it works now! Perhaps, a reboot changed something.
But now there is another problem. com2tcp outputs the following, but then it does nothing:
C:\>com2tcp -baud 9600 \\.\COM4 192.168.0.20 22222
OpenC0C("\\.\COM4", baud=9600, data=8, parity=no, stop=1) - OK
After that, it just hangs. No network packets are being sent.
I can debug the code if someone tells me what I should look for.
Regards,
Christoph Kling
Open paired port (COM5) with HyperTerminal.
I made the mistake to try to open COM4. I haven't understand the concept of paired ports. Thanks vfrolov. Works great.
Regards,
Christoph Kling