This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial I/O read
- To: Greg Marsden <GMarsden at WESCAM dot com>
- Subject: Re: [ECOS] Serial I/O read
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 25 Sep 2001 20:07:30 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <001201c1451d$ab008270$e301010a@gmlt.burlington.wescam.com>
Greg Marsden wrote:
>
> Is there a way that I can request a read of a block of
> characters from a serial port and have the read function
> return when it has between 1 and blockLen characters.
>
> Most Unix and Win32 api's support this mode, Ecos seems to wait
> until a full buffer is available or it returns immediately with
> no characters in non blocking mode.
The only way to get that type of behaviour with eCos at present is to use
the file I/O package and select() followed by a non-blocking read().
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine