Forum - Info Center - Eltima Software

Eltima Help Center => Virtual Serial Port Driver & Virtual Serial Port ActiveX => Topic started by: Chilli on December 19, 2007, 10:23:27 AM

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

Concretely I'm using:
Code: [Select]
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.

Regards
Chilli
Title: Re: Commtimeouts
Post by: janna 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.