Modem and Raising/Dropping DTR

Modem and Raising/Dropping DTR

Post by Adam Meyerowi » Sat, 18 Dec 1999 04:00:00



Hello,

How does one go about raising and dropping DTR for a modem.  This is a
customary way to hang up a modem as is +++ath, although the DTR method
is more reliable.  Is there an ioctl that will allow me to do this or
do I have to have the io permissions and just write to the appropriate
registers myself.

Please respond directly to my email as well as the newsgroup.

Thanks
Adam

 
 
 

Modem and Raising/Dropping DTR

Post by Doug DeJul » Sat, 18 Dec 1999 04:00:00




>How does one go about raising and dropping DTR for a modem.  This is a
>customary way to hang up a modem as is +++ath, although the DTR method
>is more reliable.  Is there an ioctl that will allow me to do this or
>do I have to have the io permissions and just write to the appropriate
>registers myself.

Believe it or not, setting the baud rate to "0" and then back to the
correct value is the right way to do this using POSIX serial functions.
--

HKS, Incorporated | http://www.hks.net/

 
 
 

Modem and Raising/Dropping DTR

Post by M. Dekmezia » Sat, 18 Dec 1999 04:00:00


I would recommend that you do a complete reinstall.  There are so many major
changes between 3.5 and 7 (i.e. libc -> glibc), that reinstalling would be
the best option.

Mhair Dekmezian


Quote:> Hello,

> How does one go about raising and dropping DTR for a modem.  This is a
> customary way to hang up a modem as is +++ath, although the DTR method
> is more reliable.  Is there an ioctl that will allow me to do this or
> do I have to have the io permissions and just write to the appropriate
> registers myself.

> Please respond directly to my email as well as the newsgroup.

> Thanks
> Adam

 
 
 

Modem and Raising/Dropping DTR

Post by Marc SCHAEFE » Tue, 21 Dec 1999 04:00:00


: Believe it or not, setting the baud rate to "0" and then back to the
: correct value is the right way to do this using POSIX serial functions.

But you also have bits in termios (which I think come from SVR4). You
could look at how mgetty uses those.

 
 
 

1. DCD Drops, then DTR Drops, Want to Increase Delay (SLIP)

I'm having an occasional problem on my SLIP connection that causes DCD
(incoming) to drop out momentarily.

When this happens, Linux drops DTR in response, and the connection
gets broken.  Generally it happens only once in several hours, though
sometimes it will happen several times in a row over a space of an
hour before it will settle down.

What I would like to do is increase the delay between the time Linux
detects lost DCD and the time it drops DTR ... would like to increase
it to around a second or so.

If someone could direct me to the portion of the code that monitors
DCD and drops DTR, I can take care of the rest.  But I've looked all
through /usr/src/linux/ ..... (I forget the rest of the path to
serial.c), grepped on things like DCD and DTR in as much of the rest
of the source as I can find, and don't see where it's happening.

Linux version is 0.99.15, Slackware 1.1.2, using agetty in inittab to
open up the serial ports (for some reason I was not able to get getty
or getty_ps to do what I needed, probably just a config or RTFM
problem, but in any case agetty works fine).

Any assistance or pointers gratefully accepted.

 . . . . . ep

2. No Imake.tmpl file, xconsole doesn't work

3. Dropping Modem DTR without killing the shell

4. Reintsalling LIlo

5. modems under delay not dropping DTR on 3003

6. keymap problem

7. I want to drop DTR and talk to my modem

8. Eject CDROM

9. How do you reset an internal modem by dropping DTR?

10. Opening tty port without raising dtr/dsr

11. Raising DTR...

12. SLIP not raising DTR after hangup

13. Manually drop DTR ?