Subject: Re: cellphone modem troubles
To: Ignatios Souvatzis <is@netbsd.org>
From: Matthias Ferdinand <mf+tech-net@mfedv.net>
List: tech-net
Date: 01/16/2007 15:03:19
--On Dienstag, Januar 16, 2007 11:45:53 +0100 Ignatios Souvatzis 
<is@netbsd.org> wrote:
> What you did NOT try is:
>
> not to use "modem", but to use
>
> local
>
> (which ignores the carrier detect line).
>
> Please do.
>
> Regards.
> 	-is

Very good! "local" alone did not work (no comm with modem at all), but
"local" together with "crtscts" did. I thought I had tried "local" before,
but obviously not in exactly this combination.
It does not detect when the modem hangs up, but then an LCP timeout will
catch that a little later.
After a hangup, the next pppd call cannot communicate with the modem,
until I do a modem reset from minicom.

Some other oddity in pppd: no matter how many "debug" options I give it,
it does not show negotiations in the log, I only see kernel packet dumps
from "kdebug 7".

My config: (except for "remotename" and "user")
-------------------------------------------------------------------
#nocrtscts
kdebug 7
debug
debug
debug
debug
crtscts
#cdtrcts
#nocdtrcts
asyncmap 0
#auth
lock
hide-password
#passive
#modem
local
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
#tty00 57600
tty00 19200
connect '/usr/sbin/chat -v \
        ABORT BUSY ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "NO ANSWER" 
\
        ABORT ERROR ABORT DELAYED "" \
        "at S7=45 S0=0 M1 L3 V1 X4 &c1 E1 Q0" "OK" \
        "atdt068166810" "CONNECT"'

#remotename <remote>
#name <user>
#user <user>
#disconnect '/usr/sbin/chat -v -- "" "\\d+++\\d\\c" "OK" "ath0" "OK"'
#noccp
#mtu 296
#mru 296
mtu 552
mru 552
noipdefault
defaultroute
noauth
-------------------------------------------------------------------


Thank you very much for your help!

Best regards
Matthias