Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to set RTS/DTR States?

0 views
Skip to first unread message

Mitko Rürup

unread,
May 27, 1999, 3:00:00 AM5/27/99
to
Hi,

I have the following Problem: i have to set the States of RTS/DTR from
MARK(negative Voltage) to SPACE(positive Voltage) independent from each
other.

But on the net I only found a Documentation how to switch the Hardware
Flow Control through the TERMIO structure.

Does ne1 knows how to set the states of RTS and DTR?

MfG,

Mitko Rürup.

Andrew Gabriel

unread,
May 27, 1999, 3:00:00 AM5/27/99
to
In article <374C9CBE...@atlantis.wh2.tu-dresden.de>,

Something like...

int Lines;

Lines = TIOCM_RTS /* or TIOCM_DTR */;
if (ioctl(fd, TIOCMBIC, &Lines) < 0) perror("TIOCMBIC TIOCM_RTS");
/* or TIOCMBIS */

man termio, looking at parts relating to TIOCMBIC and TIOCMBIS.

--
Andrew Gabriel
Consultant Software Engineer


0 new messages