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