* [ECOS] blocking read of serial device driver
@ 2002-03-27 8:15 Roland Caßebohm
2002-04-03 21:10 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Roland Caßebohm @ 2002-03-27 8:15 UTC (permalink / raw)
To: ecos-discuss
Hi,
I like to have a blocking read with termios for th serial device driver. I
think when I set c_cc[ VMIN ]=1 it should block, but it doesn't. I have
looked at the code of termios_read(). The function can only block in
canonical mode. But when I set c_cc[ VMIN ]=1 the function have to block
since at least 1 character is received.
My complete configuration:
newtio.c_cflag = B38400 | CS8 | CLOCAL | CREAD;
newtio.c_iflag = IGNPAR;
newtio.c_oflag = 0;
newtio.c_lflag = 0;
newtio.c_cc[VTIME] = 0; // inter character timer unused
newtio.c_cc[VMIN] = 1; // blocking read until 1 chars received
Roland
--
___________________________________________________
VS Vision Systems GmbH, Industrial Image Processing
Roland CaÃebohm
Aspelohe 27A, D-22848 Norderstedt, Germany
Mail: roland.cassebohm@visionsystems.de
http://www.visionsystems.de
___________________________________________________
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] blocking read of serial device driver
2002-03-27 8:15 [ECOS] blocking read of serial device driver Roland Caßebohm
@ 2002-04-03 21:10 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2002-04-03 21:10 UTC (permalink / raw)
To: Roland Caßebohm; +Cc: ecos-discuss
Roland CaÃebohm wrote:
>
> Hi,
>
> I like to have a blocking read with termios for th serial device driver. I
> think when I set c_cc[ VMIN ]=1 it should block, but it doesn't. I have
> looked at the code of termios_read(). The function can only block in
> canonical mode. But when I set c_cc[ VMIN ]=1 the function have to block
> since at least 1 character is received.
As per
http://sources.redhat.com/ecos/docs-latest/ecos-elix/ecos-elix.2.html#pgfId=2626807
we only support MIN=0,TIME=0 at present.
Look at http://people.freebsd.org/~luoqi/ecos/vtime.diff for some
improvements, but we never got a copyright assignment :-|.
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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-04 5:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-27 8:15 [ECOS] blocking read of serial device driver Roland Caßebohm
2002-04-03 21:10 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).