termios
Fernando RUIZ CASAS (E-mail)
fernando.ruiz at ctv.es
Mon Sep 17 12:11:14 UTC 2001
Yo can see also libmisc/shell/shell.c. There I use the termios to make
anything like you want.
Fernando RUIZ CASAS
home:correo at fernando-ruiz.com
work:fernando.ruiz at ctv.es
-----Mensaje original-----
De: vvv at vcube.oktet.ru [mailto:vvv at vcube.oktet.ru]En nombre de Victor V.
Vengerov
Enviado el: lunes, 17 de septiembre de 2001 13:32
Para: peter.o.mueller at gmx.de
CC: rtems-users at oarcorp.com
Asunto: Re: termios
Hello,
The simplest way is to obtain current termios settings, set raw mode
settings in
termios structure using cfmakeraw call and set new setting, e.g.
struct termios tp;
tcgetattr(fd,&tp);
cfmakeraw(&tp);
tcsetattr(fd,TCSANOW,&tp);
If you need some specific settings, you may do it after cfmakeraw.
Regards,
Victor
peter.o.mueller at gmx.de wrote:
Hello,
I want to use the ns16550 serial driver/termios for implementing a
serial
protocol. Sending and receiving ascII data works without problems. Also
sending
binary data seems to work. But when I try to receive binary data with
bit 8
set data bytes are ignored by termios (I have checked that the 16550
driver
receives that chars).
I assume that my termios settings are not correct. Can anyone send me
termios settings for sending/receiving binary data that are known to
work? I have
configured termios to return after one byte was recieved without
timeout.
We use not the latest snapshot (may 2001). Are there changes in newer
snapshots relevant for the termios code?
Thanks,
Peter
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
--
Victor V. Vengerov
OKTET Ltd.
Phone: +7 812 4284384, +7 812 9389372 Fax: +7 812 3272246
Ulianovskaya st., 1, St.-Petersburg 198504, Russia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20010917/f4d06e0d/attachment-0001.html>
More information about the users
mailing list