On Apr 3, 2014, at 3:40, trifle menot <trifleme...@gmail.com> wrote:

> On 4/2/14, Mihai Popescu <mih...@gmail.com> wrote:
> 
>> Dude, what the hell are you trying to do? Just explain in plain words here.
>> I am interested in working with rs232
>> and i wasted my time reading and wainting for your damn problem.
> 
[...]
> 
> Now suppose VTIME was an overall timer, not an interbyte timer. In 0.1
> seconds at 115200, you can transfer about 1100 bytes. At that speed,
> VMIN will kick in before the timer expires, and read() will return
> with approx. 250 bytes. If you get a block < 250 bytes, you will never
> wait more than 0.1 seconds for it, even in the worst case, a steady 11
> cps.
> 
> The POSIX writers erred by making VTIME an interbyte timer.
> 

The meaning of VMIN, VTIME change depending on if they are non-zero or not. 
VTIME is not always an inter-character timer, but they way you are using it, it 
is.

There is a nice overview here: 
http://unixwiz.net/techtips/termios-vmin-vtime.html

-- jdv

Reply via email to