Menu

com0com buffer size

Help
2009-02-20
2013-05-20
  • Michael Kunz

    Michael Kunz - 2009-02-20

    Hi,

    I want to write an application that can listen to the messages which are sent by a COM port. Therefore my application use com0com to connect to a virtual COM port. The other end of the port pair is connected to my listener software that gets the data from the application and sends it to the real COM port and vice versa.
    The problem is, that my application doesn't read the received data immediatelly from the virtual COM port, so I get a buffer overrun. Is there an option to increase somehow the buffer from the virtual COM port? It would be great if it is possible to increase the buffer size to 2-3KB.

    Thanks, Michael

     
    • Vyacheslav Frolov

      The application can increase the device's internal
      input buffer by the SetupComm function.

       
    • Michael Kunz

      Michael Kunz - 2009-02-23

      Thanks for the quick answer.

      Is the SetupComm function a source code function? I had a look at the code, but couldn't find anything.

       
    • Vyacheslav Frolov

       
    • Michael Kunz

      Michael Kunz - 2009-02-24

      Now I know why that function looked so familiar :)
      Thanks very much. You and the other developer created a very good piece of software.

       

Log in to post a comment.