Commtimeouts(Read 12633 times)
Commtimeouts on: December 19, 2007, 10:23:27 AM
I've just installed the demo version of V6.0 (built
It seems that the communication time outs are still ignored by the virtual drivers.

Concretely I'm using:
Code: javascript:void(0);
COMMTIMEOUTS commtimeouts = {
MAXDWORD, //ReadIntervalTimeout Maximum time between read chars
MAXDWORD, //ReadTotalTimeoutMultiplier Multiplier of characters
500, //ReadTotalTimeoutConstant Constant in milliseconds --> 0,5s
0, //WriteTotalTimeoutMultiplier Multiplier of characters
0}; //WriteTotalTimeoutConstant Constant in milliseconds

Instead of expireing the Read function if the specified amount of bytes are not read in 500ms the Read function waites forever.
Btw. I'm still using VC++ 6.0, but since only API functions are affected it should not make any difference.

There are still some serial protocolls where the timing is part of the protocoll. Using the timeouts is much simpler than using overlapped I/O.
For now it seems that I will continue to use a physical cable for debugging to get the real behaviour of a COM port.


Re: Commtimeouts Reply #1 on: December 20, 2007, 09:16:12 AM
We would be glad to help you. However the information you provided is not enough. Please, be more specific concerning a. what have been done; b. what was received.


Sitemap 1 2 3 4 5