changing RTS and DTR

Is there any way to change RTS and DTR bits of serial port with stty
utility? (similiar to stty +RTS in QNX 4.25)

Thanks, Pavol Kycina

“Operating System Tech Support” <os@qnx.com> wrote in message
news:9ss6ho$p64$1@nntp.qnx.com

“Pavol Kycina” <> kycina@microstep-hdo.sk> > wrote in message
news:3bf11c32$> 1@asrpx.mshdo> …
Is there any way to change RTS and DTR bits of serial port with stty
utility? (similiar to stty +RTS in QNX 4.25)

The stty util doesn’t currently have that feature, but you can do it
programaticly:

[snip]

Would you mind adding this feature to a “wish list”?

Thanks, Pavol

“Pavol Kycina” <kycina@microstep-hdo.sk> wrote in message
news:3bf11c32$1@asrpx.mshdo

Is there any way to change RTS and DTR bits of serial port with stty
utility? (similiar to stty +RTS in QNX 4.25)

The stty util doesn’t currently have that feature, but you can do it
programaticly:


int bitset;

ioctl(fd, TIOCMGET, &bitset);



will get you the bits set for that serial port (assuming you opened it
first). Check out sys/ioctl.h for a list of the bits (TIOCM_DTR is the DTR
bit). You can also use TIOCMSET to set the modem bits.

-Adam