How do I drop the DTR so that the modem drops the connection?

How do I drop the DTR so that the modem drops the connection?

Post by Michel Forg » Fri, 15 May 1992 19:07:45



Hi.

Does anyone know how to tell the computer to drop the DTR so that the
modem drops the connection?  This is a small feature of the new version
of my terminal program, but it is an important one.  Just about
everything else has been re-worked in it.  Anyway, any help on this would
be appreciated.

Thanks.

<<  ------------------------------------------  >>

<<  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  >>
<<               Michel Forget                  >>
<<   "A penny saved is a penny to squander!"    >>
<<  ------------------------------------------  >>

 
 
 

How do I drop the DTR so that the modem drops the connection?

Post by Steve Yelvingt » Fri, 15 May 1992 23:23:34




 > Does anyone know how to tell the computer to drop the DTR so that the
 > modem drops the connection?  This is a small feature of the new version
 > of my terminal program, but it is an important one.  Just about
 > everything else has been re-worked in it.  Anyway, any help on this would
 > be appreciated.

#include <osbind.h>

void dtr(on)
        int on;
        {
        if(on)
                Offgibit(0xEF);                 /* DTR on */
        else
                Ongibit(0x10);                  /* DTR off */
        }

To hang up, drop DTR for one second, then restore it and check for
carrier. (Try again if the modem is recalcitrant.) Please don't leave DTR
low; that can interfere with other programs that may want to use the aux
port later.

 ---
 Steve Yelvington              Marine on St. Croix, Minnesota, USA


 
 
 

How do I drop the DTR so that the modem drops the connection?

Post by Eric Smi » Sat, 16 May 1992 06:28:15



> [ a description of how to drop DTR on the ST's serial port ]

Thanks, Steve!

Can anyone tell me how to drop/assert DTR on the extra serial ports
of the TT and the Mega STe?

(I'm trying to add some Fcntl options for modem control to MiNT,
and it would be nice to support *all* of the serial ports).
--
Eric R. Smith                     email:

University of Western Ontario

 
 
 

How do I drop the DTR so that the modem drops the connection?

Post by Michel Forg » Sat, 16 May 1992 21:18:30



> #include <osbind.h>

> void dtr(on)
>    int on;
>    {
>    if(on)
>            Offgibit(0xEF);                 /* DTR on */
>    else
>            Ongibit(0x10);                  /* DTR off */
>    }

> To hang up, drop DTR for one second, then restore it and check for
> carrier. (Try again if the modem is recalcitrant.) Please don't leave DTR
> low; that can interfere with other programs that may want to use the aux
> port later.

>  ---
>  Steve Yelvington              Marine on St. Croix, Minnesota, USA


Thanks for the information.  I appreciate it.  The program is shaping up
nicely and should be done in a few weeks.  The worst thing to deal with
so far is GEM!  :)

Thanks again...

<<  ------------------------------------------  >>

<<  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  >>
<<               Michel Forget                  >>
<<   "A penny saved is a penny to squander!"    >>
<<  ------------------------------------------  >>

 
 
 

1. How do I drop the DTR so that the modem drops the connection?

Ahhhhh....... hmmmmm....... well, I see what's wrong.  The laser C
documentation is wrong!  In the book, it says that Ongibit and Offgibit
take the bit NUMBER as the parameter, not a value to and or or with the
register.  Too late for me, though... I prefer assembly anyway.

--  

UUCP: ...!uunet!myrddin!tct!psycho!100.0!Timothy.Miller
Note:psycho is a free gateway between Usenet & Fidonet. For info write to

2. Toshiba Card Manager for Portege 610ct

3. G3 Hand-Me-Down Upgrade?

4. How do I drop the DTR so t

5. Apple has Record Quarterly Sales and Reports a **PROFIT**

6. RS232ENC.PRG dropping the DTR

7. Nt and Optivity

8. How do I drop the DTR so t

9. Bill Kendrick Gem Drop Question

10. Business school drop-out's 2600 & 7800 auction!

11. Gem Drop's coming along well! :)

12. UMICH drops Atari?