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
- From: "Ali Rodgo" <alirodgo at web dot de>
- To: "JonathanLarmour" <jifl at eCosCentric dot com>, "NickGarnett" <nickg at eCosCentric dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 24 Feb 2004 10:06:47 +0100
- Subject: Re: [ECOS] Non-blocking mode read from serial port
- Organization: http://freemail.web.de/
Thanks a lot,
but all of that means that i should use VTIME=0 and VMIN=0 to work propertly or should i change something (the bug explained below) in the termiostty.c in order to use VMIN >0?If that doesn't work how could i read only one byte to one byte from the serial port?
Ciao
Nick Garnett <nickg@ecoscentric.com> schrieb am 23.02.04 19:20:08:
>
> 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
>
______________________________________________________________________________
... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail
ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss