I build a gsm application which needs to know if the user paid subscription. I am able to disable SIM card on the operator side and simulate expiring subscription. It is reported by CEREG:3, but only three times. At this point, I’m also able to retreive AT+QCFG=“emmcause” which returns emmcause=15. Later, the module returns ERROR to both requests, COPS and QCFG. I suspect that this is the modems internal logic not even trying to reach the Base Station. I need to find a way to check if the modem is out of subscription even if it returns an error. I paste the sample when it return CEREG: 3 and ERROR. Modem is quectels BG95.
First three attempts:
DEBUG base/common/gsm/at_fsm.c:109 >> AT+COPS=4,2,26201,9
DEBUG base/common/gsm/at_fsm.c:157 << OK
DEBUG base/common/gsm/at_engine.c:76 duration: 100020 ms
DEBUG base/common/gsm/at_fsm.c:200 URC received: +CEREG: 3,,,,,,,,
DEBUG base/common/gsm/at_fsm.c:207 URC calling handler
DEBUG base/common/gsm/at_fsm.c:109 >> AT+QCFG="emmcause"
DEBUG base/common/gsm/at_fsm.c:157 << +QCFG: "emmcause",15
DEBUG base/common/gsm/at_fsm.c:157 << OK
Later:
DEBUG base/common/gsm/at_fsm.c:109 >> AT+COPS=4,2,26201,9
DEBUG base/common/gsm/at_fsm.c:157 << ERROR
DEBUG base/common/gsm/at_engine.c:76 duration: 176984 ms
DEBUG base/common/gsm/at_fsm.c:200 URC received: +CEREG: 0,,,,,,,,
DEBUG base/common/gsm/at_fsm.c:207 URC calling handler
DEBUG base/common/gsm/at_fsm.c:200 URC received: +CEREG: 0,,,,,,,,
DEBUG base/common/gsm/at_fsm.c:207 URC calling handler
DEBUG base/common/gsm/at_fsm.c:109 >> AT+QCFG="emmcause"
DEBUG base/common/gsm/at_fsm.c:157 << ERROR
Is there any command with which I could force the module to try to register, or at least retreive the information that it got CEREG:3 in the past and it drops further connection attempts?