Michael Harig wrote:
>
> you have to use ioctl-calls to do this:
>
> int aMCR;
>
> if(ioctl(fd,TIOCMBIS,&aMCR)==-1) // Turn on RTS
> fprintf(stderr," (RTS=1 ERROR)");
>
> if(ioctl(fd,TIOCMBIC,&aMCR)==-1) // Turn off RTS
> fprintf(stderr," (RTS=0 ERROR)");
>
> hth,
>
> Michael
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-serial" in
> the body of a message to [EMAIL PROTECTED]
Thanks for this hint!
The following sourcecode is working (maybe others would be interesting
in, too):
---
ioctl(fd, TIOCMGET, &status);
status &= ~(TIOCM_RTS); /* RTS OFF */
or
status |= TIOCM_RTS; /* RTS ON */
ioctl(fd, TIOCMSET, &status);
---
Yes, it really works fine!!!
Greetings,
-Kai-
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]