Menu

com2tcp OpenC0C() error

Help
2009-09-17
2013-05-20
  • Christoph Kling

    Christoph Kling - 2009-09-17

    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

     
  • Terry Johnson

    Terry Johnson - 2009-09-17

    Does \\.\COM5 not work?

     
  • Terry Johnson

    Terry Johnson - 2009-09-17

    "\\.\COM5" should start with a double backslash, but it got butchered here for some reason.

     
  • Christoph Kling

    Christoph Kling - 2009-09-17

    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

     
  • Vyacheslav Frolov

    Open paired port (COM5) with HyperTerminal.

     
  • Christoph Kling

    Christoph Kling - 2009-09-18

    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

     

Log in to post a comment.