Yan,
Thanks for the suggestion. I had tried using minicom earlier but gave
up. I tried again and was able to manually make a connection using
the commands from the connect script. I also spent some time trying
to get more output from the pppd connection and was able to get some
more verbose output (changed the CHAT switches to -s -S -v -f). So
using the below script I finally see my error (tts/4: 1 input overrun
(s)). Which appears to come from the last line (CONNECT "") the
output is:
--------------------------------------------------
send (ATZ^M)
expect (OK)
ATZ^M^M
OK
-- got it
send (AT+CGDCONT=1,\"ip\",\"isp.cingular\"^M)
expect (OK)
^M
AT+CGDCONT=1,"ip","isp.cingular"^M^M
OK
-- got it
send (ATD*99***1#^M)
expect (CONNECT)
^M
tts/4: 1 input overrun(s)
TD*99***1#^M^M
---------------------------------------------------
I changed CONNECT "" to CO "" and it seems to work...sort of. I seem
to establish a connection but then the negotiation seems to fail.
--------------------------------
send (ATZ^M)
expect (OK)
ATZ^M^M
OK
-- got it
send (AT+CGDCONT=1,\"ip\",\"isp.cingular\"^M)
expect (OK)
^M
AT+CGDCONT=1,"ip","isp.cingular"^M^M
OK
-- got it
send (ATD*99***1#^M)
expect (CO)
^M
TD*99***1#^M^M
CO
-- got it
send (^M)
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/tts/4
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x78d2a3f3>]
LCP: timeout sending Config-Requests
Connection terminated.
---------------------------------------------
Does this make sense to anyone?
Bill
--- In "Yan Seiner" <> wrote:
>
> --- In "BillBergeron" <billbergeron@>
wrote:
>
> > ppp connect script - /etc/ppp/peers/gprs-connect-chat:
> > '' AT
> > OK AT+CGDCONT=1,"IP","isp.cingular"
> > OK ATD*99***1#
> > CONNECT ''
> >
> > Question: is the username/password supposed to be in
the /etc/ppp/pap-
> > secrets file? if so in what format, I've tried but without lucka
nd
> > often with error messages.
> >
>
> It's been a while since I've run pppd - but I have email in my box
> asking me to put together a phone-based network so I have renewed
> interest.... :-)
>
> I usually start by trying to connect by hand from a terminal. Just
> open a terminal and fire up minicom (picocom or whatever you can get
> to compile) and connect to the modem.
>
> Then issue the dial up commands by hand, and see what the responses
are.
>
> Then code your chatscript with the login info in it. Only when
that's
> working try using the *secrets files.
>
> --Yan
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|