<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=330370912-17092001>Yo can
see also libmisc/shell/shell.c. There I use the termios to make anything like
you want.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=330370912-17092001>
<P><FONT size=2>Fernando RUIZ
CASAS<BR>home:correo@fernando-ruiz.com<BR>work:fernando.ruiz@ctv.es<BR> </FONT>
</P></SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Mensaje original-----<BR><B>De:</B> vvv@vcube.oktet.ru
[mailto:vvv@vcube.oktet.ru]<B>En nombre de </B>Victor V.
Vengerov<BR><B>Enviado el:</B> lunes, 17 de septiembre de 2001
13:32<BR><B>Para:</B> peter.o.mueller@gmx.de<BR><B>CC:</B>
rtems-users@oarcorp.com<BR><B>Asunto:</B> Re:
termios<BR><BR></DIV></FONT>Hello,
<P>The simplest way is to obtain current termios settings, set raw mode
settings in <BR>termios structure using cfmakeraw call and set new setting,
e.g. <BR>
<P> struct termios tp; <BR> tcgetattr(fd,&tp); <BR>
cfmakeraw(&tp); <BR> tcsetattr(fd,TCSANOW,&tp);
<P>If you need some specific settings, you may do it after cfmakeraw.
<P>Regards, <BR>Victor
<P>peter.o.mueller@gmx.de wrote:
<BLOCKQUOTE TYPE="CITE">Hello,
<P>I want to use the ns16550 serial driver/termios for implementing a serial
<BR>protocol. Sending and receiving ascII data works without problems. Also
sending <BR>binary data seems to work. But when I try to receive binary data
with bit 8 <BR>set data bytes are ignored by termios (I have checked that
the 16550 driver <BR>receives that chars).
<P>I assume that my termios settings are not correct. Can anyone send me
<BR>termios settings for sending/receiving binary data that are known to
work? I have <BR>configured termios to return after one byte was recieved
without timeout.
<P>We use not the latest snapshot (may 2001). Are there changes in newer
<BR>snapshots relevant for the termios code?
<P>Thanks, <BR>Peter
<P>-- <BR>GMX - Die Kommunikationsplattform im Internet. <BR><A
href="http://www.gmx.net">http://www.gmx.net</A></P></BLOCKQUOTE><PRE>--
Victor V. Vengerov
OKTET Ltd.
Phone: +7 812 4284384, +7 812 9389372 Fax: +7 812 3272246
Ulianovskaya st., 1, St.-Petersburg 198504, Russia</PRE>
</BLOCKQUOTE></BODY></HTML>