BG96 restart PPP connection

Hello,
I’ve been searching over the forum but looks like there is no clear answer for this issue.

On my ESP32-BG96, working over a PPP data communication, every random time it disconnects from the network. I suppose that could be the carrier who hang up the call.

For that reason, I want to implement a reconnection process without performing a module reset.

After BG96 gets an IP (receiving CONNET command), the process to disconnect call and connect again is implemented as follows:

[Check that there is an existing call]
AT+CLCC
+CLCC: 1,0,0,1,0,"*99#",129
OK

ATH
OK

[Call didn’t finish]
AT+CLCC
+CLCC: 1,0,0,1,0,"*99#",129
OK

AT+CHLD=1
ERROR

AT+CPIN?
+CPIN: READY
OK

AT+CGDCONT?
+CGDCONT: 1,“IP”,“m2m.orange.es”,“0.0.0.0”,0,0,0,0
OK

AT+QNWINFO
+QNWINFO: “EDGE”,“21403”,“GSM 900”,991
OK

AT+COPS?
+COPS: 0,0,“Orange Orange”,0
OK

AT+CREG?
+CREG: 0,1
OK

AT+CEREG?
+CEREG: 0,4
OK

[Indicate that there is a call in process]
AT+CIND?
+CIND: 0,5,1,1,0,0,1,0
OK

ATD*99#
NO CARRIER

As you can see, the call didn’t finish and ATD command fails.

Is this the correct process to implement a reconnection?

Thanks

  1. Based on your info , You register on one GSM network with one datacall

image

  1. To release the PPP pls disconnect PPP dialfirst on host PC first

3 ,and then check the PDP context status with steel

Hello Stephen,
How can I disconnect PPP from host PC (microcontroller)?

Have I got to use “+++” procedure or there is a concrete command? As you can see, I use AT+CLCC unsuccessfully.