termios

Victor V. Vengerov vvv at oktet.ru
Mon Sep 17 11:32:05 UTC 2001


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/d3f2dc12/attachment-0001.html>


More information about the users mailing list