This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Non-blocking mode read from serial port
- From: "Ali Rodgo" <alirodgo at web dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 23 Feb 2004 11:26:02 +0100
- Subject: [ECOS] Non-blocking mode read from serial port
- Organization: http://freemail.web.de/
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
CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING=enable
but my programm hangs up in the read() function and should return after the time has expired.
Does eCos support the options O_NONBLOCK,O_NODELAY in the open() function? The signal SIGIO is not supported, is it?
Any ideas?
Thanks a lot
______________________________________________________________________________
Nachrichten, Musik und Spiele schnell und einfach per Quickstart im
WEB.DE Screensaver - Gratis downloaden: http://screensaver.web.de/?mc=021110
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss