[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Help with PPP connection - modem disconnects for no obv

From: Patrick Klos
Subject: Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...
Date: Wed, 20 Mar 2019 13:20:02 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3

On 3/20/2019 12:06 PM, Freddie Chopin wrote:
        :       :       :
-- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 --

This last "pppos_input[1]: got 14 bytes" is just the "NO CARRIER" from
the modem after it disconnects. This all happens almost instantly -
after switching to data mode all the following commands take less than
a second.

Seeing the first request from the modem (request for CHAP MD5
authorisation), I've also tried to enable "ANY" authorisation mode (or
just CHAP) and using "" both for user and password, but the behaviour
is mostly similar - the modem starts sending CHAP challenges, lwip
doesn't answer anything (I assume this is because the user and password
are empty, right?), and after some time the modem disconnects
("pppos_input[1]: got 14 bytes" == "NO CARRIER"). Here's the log:

-- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 --

Wrote: AT
Read: OK

Wrote: ATI
Read: Manufacturer: Huawei Technologies Co., Ltd.
Read: Model: ME906E
Read: Revision: 12.430.19.08.00
Read: IMEI: ...
Read: +GCAP: +CGSM
Read: OK

Wrote: AT+COPS=1,0,"PLAY",2
Read: OK

Wrote: AT+COPS?
Read: +COPS: 1,0,"PLAY",2
Read: OK

Wrote: AT+CREG=2
Read: OK

Wrote: AT+CREG?
Read: +CREG: 2,1,"D6","1857B3",2
Read: OK

Wrote: AT+CGREG=1
Read: OK

Wrote: AT+CGREG?
Read: +CGREG: 1,1
Read: OK

Wrote: AT+CGATT=1
Read: OK

Wrote: AT+CGATT?
Read: +CGATT: 1
Read: OK

Wrote: AT+CGACT=1,1
Read: OK

Wrote: AT+CGACT?
Read: +CGACT: 1,1
Read: +CGACT: 2,0
Read: +CGACT: 16,0
Read: OK

Read: +CGDCONT: 1,"IP","Internet","",0,0
Read: +CGDCONT: 2,"IP","internet","",1,1
Read: +CGDCONT: 16,"IP","www.plusgsm.pl","",0,0
Read: OK

Wrote: ATD*99#
Read: CONNECT 43200000
ppp phase changed[1]: phase=0
ppp_connect[1]: holdoff=0
ppp phase changed[1]: phase=3
pppos_connect: unit 1: connecting
ppp phase changed[1]: phase=6
pppos_send_config[1]: out_accm=FF FF FF FF
pppos_recv_config[1]: in_accm=FF FF FF FF
ppp: auth protocols: PAP=1 CHAP=1 CHAP_MD5=1 CHAP_MS=1 CHAP_MS2=1 EAP=1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x8d98cb61> <pcomp> <accomp>]
pppos_write[1]: len=24
ppp_start[1]: finished
pppos_input[1]: got 53 bytes
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x4fe7b5a6> <pcomp> 
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x4fe7b5a6> <pcomp> 
pppos_write[1]: len=29
pppos_input[1]: got 45 bytes
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x8d98cb61> <pcomp> <accomp>]
netif_set_mtu[1]: mtu=1500
pppos_send_config[1]: out_accm=0 0 0 0
pppos_recv_config[1]: in_accm=0 0 0 0
ppp phase changed[1]: phase=7
pppos_input[1]: got 22 bytes
rcvd [LCP DiscReq id=0x1 magic=0x4fe7b5a6]
pppos_input[1]: got 42 bytes
rcvd [CHAP Challenge id=0x1 <7eea571d3e05e4766c661474fc7750e7>, name = 

For whatever reason, you're not responding to the CHAP challenges.

Are you dialing into an ISP (which would require authentication) or into another system configured to be a "server"?  Either way, the peer is expecting you to have a username and password of some kind, but you're not responding to their challenges.

Also, what version of LwIP are you using?  I can't find some of these debug strings (like "CHAP Challenge") in my (2.1.2) sources. And are you sure all your modules were compiled with PPP_DEBUG defined as non-zero?

Patrick Klos
Klos Technologies, Inc.

pppos_input[1]: got 41 bytes
rcvd [CHAP Challenge id=0x2 <08b8f55348400529024cbf177c231710>, name = 
pppos_input[1]: got 41 bytes
rcvd [CHAP Challenge id=0x3 <24aa1a5f425298cf88d54019aae082ef>, name = 
pppos_input[1]: got 41 bytes
rcvd [CHAP Challenge id=0x4 <be336c79383db9ae2681620386e70c38>, name = 
pppos_input[1]: got 41 bytes
rcvd [CHAP Challenge id=0x5 <282b34d778bdfda15e64a21976646bf4>, name = 
pppos_input[1]: got 41 bytes
rcvd [CHAP Challenge id=0x6 <56fc90b6bccfa6e8f8b6901ff863dc55>, name = 
pppos_input[1]: got 14 bytes

-- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 --

Any ideas what am I doing wrong? There are just too many variables for
me to go further, as I'm not sure about anything here. Whether the AT
commands that I issue and their arguments are correct, I'm not sure
whether I should stick to "NONE" authentication or just keep using
"ANY" with empty user/password, maybe my lwipopts.h are wrong, and so
on and so on... So any help will be greatly appreciated!

Thanks in advance!


lwip-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]