|
Home > Archive > Unix Programming > November 2007 > serial monitoring with RTS/CTS
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
serial monitoring with RTS/CTS
|
|
| marco.guai@gmail.com 2007-11-22, 7:33 am |
| Hi all.
I have the Linux kernel 2.6
I need to use and monitoring a serial using HW control pins RTS/CTS.
I have tried to use: ioctl(fd, TIOCMBIS, TIOCM_RTS);
for set high the RTS pin.
but I have this error: -1.
someone can help me?
thanks in advance.
Marco Guai
| |
| Sergei Organov 2007-11-22, 1:23 pm |
| marco.guai@gmail.com writes:
> Hi all.
> I have the Linux kernel 2.6
>
> I need to use and monitoring a serial using HW control pins RTS/CTS.
>
> I have tried to use: ioctl(fd, TIOCMBIS, TIOCM_RTS);
> for set high the RTS pin.
Try:
int flags = TIOCM_RTS;
ioctl(fd, TIOCMBIS, &flags);
--
Sergei.
|
|
|
|
|