> Hi,
> Are you using this for an RS-485 application, for example using the
> RTS signal to control the transmit function of the transceiver?
> Jerry
> 
        -----Original Message-----
        From:   Kai Seidel [SMTP:[EMAIL PROTECTED]]
        Sent:   Wednesday, May 10, 2000 8:34 AM
        To:     [EMAIL PROTECTED]; [EMAIL PROTECTED]
        Subject:        Re: Switching RTS-Signal on/off

>  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]

-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]

Reply via email to