[BG96] - registered, no internet

Hi, I’ve encountered problem with BG96 module. I’m trying to connect to nbiot network and then open TCP socket to server. I have around 60 devices reporting their status once per day.The solution I’ve had worked nearly three quarters of the year, but suddenly I’ve started noticing errors when trying to open TCP socket. There was no change on the FW of BG96 nor the application driving it. I’m encountering this error in about half of the connection attempts.

Here is the log after BG96 powerup:

[LTE] I : sendCmd - —> :AT+CFUN=4
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+GSN
[LTE] I : parseResponse - Parsed msg:
866770054173639

OK

[LTE] I : sendCmd - —> :AT+QGMR
[LTE] I : parseResponse - Parsed msg:
BG96MAR02A07M1G_01.018.01.018

OK

[LTE] I : sendCmd - —> :AT+CMEE=2
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+QSIMSTAT?
[LTE] I : parseResponse - Parsed msg:
+QSIMSTAT: 0,1

OK

[LTE] I : initSIM - Sim card present
[LTE] I : sendCmd - —> :AT+CPIN?
[LTE] I : parseResponse - Parsed msg:
+CPIN: READY

OK

[LTE] I : initSIM - Sim card status - READY
[LTE] I : sendCmd - —> :AT+QCCID
[LTE] I : parseResponse - Parsed msg:
+QCCID: [correct SIM_CCID]

OK

[LTE] I : sendCmd - —> :AT+QCSCON?
[LTE] I : parseResponse - Parsed msg:
+QCSCON:0,0

OK

[LTE] I : sendCmd - —> :AT+QCFG=“nwscanseq”,03,1
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+QCFG=“nwscanmode”,3,1
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+QCFG=“iotopmode”,1,1
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+QICSGP=1,1,“nbiot.telekom.sk”,"","",1
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+CGDCONT=1,“IP”,""
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+QCSCON?
[LTE] I : parseResponse - Parsed msg:
+QCSCON:0,0

OK

[LTE] I : sendCmd - —> :AT+CFUN=1
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+COPS=1,2,“23102”,9
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+QCSCON?
[LTE] I : parseResponse - Parsed msg:
+QCSCON:0,1

OK

[LTE] I : sendCmd - —> :AT+CEREG?
[LTE] I : parseResponse - Parsed msg:
+CEREG: 0,5

OK

[LTE] I : sendCmd - —> :AT+CGPADDR
[LTE] I : parseResponse - Parsed msg:
+CGPADDR: 1,10.234.72.165

OK

[LTE] I : sendCmd - —> :AT+QCSCON?
[LTE] I : parseResponse - Parsed msg:
+QCSCON:0,1

OK

[LTE] I : sendCmd - —> :AT+QIACT=1
[LTE] I : parseResponse - Parsed msg:
OK

[LTE] I : sendCmd - —> :AT+QCSCON?
[LTE] I : parseResponse - Parsed msg:
+QCSCON:0,1

OK

[LTE] I : sendCmd - —> :AT+QIOPEN=1,0,“TCP”,"[SERVER_IP]",[SERVER_PORT],0,2

Then after a long time (about 150seconds as stated in DS) I receive ERROR 566 - Socket connect failed.
On the server side I cannot see even TCP SYN.

Only solution to get things working is to repeat whole process.
I’ve tryied AT+QPING, but this resulted also in error.

SIM card is 100% working as I have used it before. Server is also working flawlessly.

Does anyone have an idea how to correct things or at least debug it to lower level ? Thanks in advance.

Hi,
Does all devices using same operator SIM card?
As you said, mutli devices happened same error, the probability of this happening at the same time is low if caused by module, Could it be that the sim card is in arrears? if not pls collect more logs with this tool that we can do a more analysis.
https://forums.quectel.com/uploads/short-url/sQil7Xt7IOc3VeTpAbJxV17f28o.zip