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

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to