This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Non-blocking mode read from serial port


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]