I don’t know why, but sometimes, my BG95-M3 cannot activate the PDP context.
Infos:
My SIM card supports only EGPRS.
The steps I’m making trying to activate it are the following:
- I’m setting the AT+QCFG=“nwcanmode” to 1, i.e.: GSM only.
- I’m ensuring that CREG gives the Reg Status 5 or 1.
- I’ve checked that we are attached to PS, via AT+CGATT=1
- Then, I configure the PDP Context using AT+QIGSGP=1,1"myapn.com","myuser,“mypasswd”. The command returns ok. And I can see the context when I query AT+QICSGP=1.
- I check ATQIACT? And it returs nothing (expected, right? Since I’ve not tried to activate it yet)
- When I issue the command AT+QIACT=1, I got ERROR.
I’ve tried to restart the module and issuing AT+QIDEACT=1 before trying to activate the context, but none of these have worked.
The (strange) thing I’ve done that sometimes seems to work is:
- I set the AT+QCFG=“nwscanmode” to 3 (LTE only).
- BG95 stays on a “No Service” status when I query the network info via AT+QNWINFO.
- I force a software restart on the module by sending AT+CFUN=1,1.
- The module starts and the MT rejects the registration, since my sim card does not support this technology.
- I switch back to AT+QCFG=“nwscanmod”, 1 (GSM only).
- The module automatically changes to a valid GSM network, with AT+CREG equal to 1.
- I’m finally able to connect the PDP context by AT+QIACT=1.
But I’m not sure if this is a realiable procedure, if it will work always or not.
I would like an expert opinion on this. Is it possible that this issue is SIM Card or Operator-related?
What is the safest and guaranteed way to properly activate a PDP context?