开发者

Can someone please explain COMTIMEOUTS for me?

开发者 https://www.devze.com 2022-12-12 19:10 出处:网络
I have an application that has strict timing. Inter-character delay must be no more than is 0.15s The message开发者_StackOverflow中文版s themselves are quite small.10 - 50 chars

I have an application that has strict timing.

Inter-character delay must be no more than is 0.15s

The message开发者_StackOverflow中文版s themselves are quite small. 10 - 50 chars

I don't understand what ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant actually mean in practice.

The math in this example doesn't work? http://www.lookrs232.com/com_port_programming/api_commtimeouts.htm


ReadIntervalTimeout = max time between two bytes ReadTotalTimeoutConstant = max time for a multi-byte read to complete ReadTotalTimeoutMultiplier = extra time allowed for each byte in a multi-byte read

Since you specified a strict limit on the inter-character delay, you'll want to only set ReadIntervalTimeout. Odd btw, the usual limit is a time-out on a message.

0

精彩评论

暂无评论...
验证码 换一张
取 消