lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] PPPoS: Question regarding reconnect after connection lo


From: Sylvain Rochet
Subject: Re: [lwip-users] PPPoS: Question regarding reconnect after connection lost
Date: Thu, 6 Apr 2017 15:18:37 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

Hi Axel,

On Thu, Apr 06, 2017 at 08:58:10PM +0800, Axel Lin wrote:
> 
> Below is what I do to start PPP:
> 
> Send "AT+CGDCONT=<cid>,<PDP type>,<APN>"
> Send "AT+CGAUTH=<cid>[, <auth_prot>[, <userId>, <password>]]"
> Send "AT+CFUN=1"
> Send "ATD*99***<cid>#"
> 
> ppp_set_usepeerdns(ppp, 1);
> ppp_set_auth(ppp, PPPAUTHTYPE_ANY, userId, password);
> ppp_connect(ppp, 0);
> 
> My understanding is after ATD*99***1#, I cannot send AT commands.
> So it's not clear to me if I need to re-send above AT commands after got
> PPPERR_CONNECT. Currently I just call ppp_connect(ppp, 30); to reconnect.

You have to resend AT commands to reconnect. You need to switch back 
your modem to command mode before, either by using DTR signal or by 
using a predefined escape sequence that could never happen in the PPP 
flow (which I do not recommend unless you are very careful with the 
chosen asyncmap).

Sylvain

Attachment: signature.asc
Description: Digital signature


reply via email to

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