This LCP negotiation has me stumpted. Just when I thought I had
finally figured this all out. After doing some research on LCP, I
realize that these are send packets to the ISP (Cingular) and am not
getting any packets back from them. So they are either being blocked
(very doubtful since it comes from their cell towers), they don't
understand the LCP packets I'm sending, or they are just not sending
them. I changed, removed, and added every PPP option I could (auth,
noauth, require-pap, require-chap, ascnymap, nomagic, lock, local,
passive) and other than changing the data in the packet it doesn't
seem to make a difference. I am going to look into the PPP related AT
commands to see if I have to do anything to put the modem into the
correct mode before the LCP packets are sent but other than that I am
stuck.
If anyone has a suggestion I would be happy to hear it.
------------- sample of the "negotiation" -------------
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.
----------------------------------------------------
Bill
--- In Larry <> wrote:
>
> You are well on your way!
> Look at LCP - this is the negotiation between each end on what
> protocols each support and they have to settle on a common one.
> If that fails it would suggest you're protocol suite doesn't
support a
> common one with the other end.
> Also - check that you're LCP failure and retry times aren't too
short.
> I noticed in the ppp.options they were set to 0? Check that first.
>
> Larry
>
> BillBergeron wrote:
>
> > 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 <ts-7000%
40yahoogroups.com>,
> > "Yan Seiner" <yan@> wrote:
> > >
> > > --- In <ts-7000%
40yahoogroups.com>,
> > "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 --------------------~-->
Something is new at Yahoo! Groups. Check out the enhanced email design.
http://us.click.yahoo.com/kOt0.A/gOaOAA/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/
|