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: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Ali Rodgo <alirodgo at web dot de>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 23 Feb 2004 13:46:16 +0000
- Subject: Re: [ECOS] Non-blocking mode read from serial port
- References: <200402231026.i1NAQ2Q27739@mailgate5.cinetic.de>
Ali Rodgo wrote:
Hello,
I would like to read from the serial port in non-blocking mode, EB40A.
I am trying to read from the /dev/ser1 port with the following configuration:
newtio.c_cc[VMIN]=0
newtio.c_cc[VTIME]=1
I'm afraid VTIME != 0 isn't supported, sorry. Either the sources will need
to be enhanced (I know what to do, but don't have time to do it), or you
can look at using other APIs to do it, e.g. creating your own timer which
interrupts the thread doing the read.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
>>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco http://www.esconline.com/electronicaUSA/
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss