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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
The application can increase the device's internal
input buffer by the SetupComm function.
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.
http://msdn.microsoft.com/en-us/library/aa363439.aspx
Now I know why that function looked so familiar :)
Thanks very much. You and the other developer created a very good piece of software.