This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Non-blocking mode read from serial port
Jonathan Larmour <jifl@eCosCentric.com> writes:
> Ali Rodgo wrote:
> > Ok thanks again
> > I have changed the VTIME to "0" and VMIN to "1" to read only one
> > character from the /dev/ser1 but i can only read 128 or 0, something
> > wrong?The option O_NONBLOCKING is on eCos not supported?
>
> VMIN > 0 doesn't work wonderfully either:
> http://bugs.ecos.sourceware.org/show_bug.cgi?id=91710
But the straightforward O_NONBLOCK flag works fine. It's just the
wierd termio VMIN/VTIME stuff that is not quite all there. And for
blocking with a timeout, try using select().
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss