Subject: Re: ppp-down does not disconnect modem
To: Bill Studenmund <wrstuden@loki.stanford.edu>
From: Paul Goyette <paul@whooppee.com>
List: port-mac68k
Date: 10/13/1997 17:59:06
You could always put some code in your disconnect procedure to run chat
with a script similar to
TIMEOUT 5
"" +++
OK-+++-OK-AT-OK ATH0
Here's my disconnect procedure:
#!/bin/sh
#
# usage: ppp-disconnect
#
/bin/stty -clocal
umask 077
#
/usr/sbin/chat -f /etc/ppp/ppp-hangup
On Mon, 13 Oct 1997, Bill Studenmund wrote:
> > I was able to open a ppp connection using the ppp setup
> > by Bill Stundenmund, also this worked very well.
> >
> > Only one problem: ppp-down killed the demon but did not disconnected my
> > external Smart One 14.4 modem.
>
> Does your modem have a light which indicates the status of DTR? Does DTR
> drop for one second after pppd dies?
>
> There are three possable problems. 1) The DTR-dropping code in the kernel
> can get confused in certain circumstances, and think the modem's down
> when it's not. It's a rare occurance for me.
>
> 2) Your modem cable might not connect HSKo to DTR (as the current
> setup assumes). Can MacOS make the modem hang up? Do you know how it
> does it?
>
> 3) your modem might be configured to ignore the DTR pin. You'll need
> to dig into your modem manual for this one. Note: the sample modem
> init string might well NOT work with your modem!
>
> Take care,
>
> Bill
>
-----------------------------------------------------------------------------
| Paul Goyette | PGP Public Key fingerprint: | E-mail addresses: |
| Network Consultant | 0E 40 D2 FC 2A 13 74 A0 | paul@whooppee.com |
| and kernel hacker | E4 69 D5 BE 65 E4 56 C6 | paul_goyette@ins.com |
-----------------------------------------------------------------------------