[ECOS] Non-blocking mode read from serial port

Jonathan Larmour jifl@eCosCentric.com
Mon Feb 23 13:46:00 GMT 2004


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



More information about the Ecos-discuss mailing list