Good morning,
after 1 day and 2 hours the AirPrime Q2698 lost the connection to the Operator.
The Sim Card remains in: ADL_SIM_EVENT_FULL_INIT.
The CREG Status is: SIM not registered, ME is not currently searching for a new Operator.
After loosing the Operator the GPRS_Handler (wip_bearerHandler_f) reported: wip_Gprs_Handler() : Connection failure, WIP_BOPT_ERROR says: GPRS setup failure.
The GPRS_Handler did then stop the bearer (wip_bearerStop) and reported: Context is deactivated either from network or ME.
It then starts the bearer again but is not able to Register the sim.
Am i supposed to do something here? How can i assure that the modem stays or keeps trying to reconnect to the Operator ?
Do i have to quit and init the bearer again? How do i get the sim to reconnect again?
the code works as follows:
Modulestart:
adl_simSubscribe(sim_Handler, _setup.PinCode);
on ADL_SIM_EVENT_FULL_INIT
wip_bearerOpen(&wipGprsHandle, "GPRS", ipgprs_Bearer_Handler, 0);
then the module is ready for IP communicaton.
The ipgprs_Bearer_Handler
on Error:
wip_bearerStop(wipGprsHandle);
on WIP_BEV_STOPPED:
wip_bearerStart(wipGprsHandle);
I hoped this would suffice to Keep the modem try reconnecting to the Operator. From my understanding it is not neccessary to quit the bearer.
Here is the Trace of the Events:
2013/10/23;19:45:32:483;001;ADL;10;TCP Client: Data Send: 112 Bytes
2013/10/23;19:45:32:492;001;ADL;4;SIM not registered, ME currently searching for a new operator
2013/10/23;19:45:32:500;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 1 : Context 0
2013/10/23;19:45:32:506;001;ADL;6;wip_Gprs_Handler() : Connection failure
2013/10/23;19:45:32:510;001;ADL;6;GPRS setup failure
2013/10/23;19:45:32:514;001;ADL;6;ipgprs_Stop()
2013/10/23;19:45:32:520;001;ADL;16;[ADL port] IsAvailable(80) : 1
2013/10/23;19:45:32:532;001;ADL;2;wip_bearerStop(GPRS) : -27
2013/10/23;19:45:32:701;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 7 : Context 0
2013/10/23;19:45:32:708;001;ADL;6;wip_Gprs_Handler() : ME is not registered
2013/10/23;19:45:32:712;001;ADL;6;ipgprs_Stop()
2013/10/23;19:45:32:716;001;ADL;2;wip_bearerStop(GPRS) : -27
2013/10/23;19:45:32:721;001;ADL;10;Error 1 on socket.
2013/10/23;19:45:32:730;001;ADL;9;Unset GPIO_DCD_OUT_RDY
2013/10/23;19:45:32:734;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 8 : Context 0
2013/10/23;19:45:32:741;001;ADL;6;Context is deactivated either from network or ME
2013/10/23;19:45:32:752;001;ADL;6;ipgprs_Stop()
2013/10/23;19:45:32:920;001;ADL;2;wip_bearerStop(GPRS) : -27
2013/10/23;19:45:32:924;001;ADL;27;Call unsubs 10716553 : 0
2013/10/23;19:45:32:930;001;ADL;31;[ADL] GPRS unsubs 107122F3 : 0
2013/10/23;19:45:32:938;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 4 : Context 0
2013/10/23;19:45:32:948;001;ADL;6;wip_Gprs_Handler() : Disconnection completed after wip_bearerStop was called
2013/10/23;19:45:32:951;001;ADL;6;ipgprs_Start()
2013/10/23;19:45:32:956;001;ADL;27;Call subs 10716553 : 0
2013/10/23;19:45:32:961;001;ADL;31;[ADL] Gprs subs 107122F3 : 0
2013/10/23;19:45:32:967;001;ADL;16;[ADL port] IsAvailable(80) : 1
2013/10/23;19:45:33:159;001;ADL;31;[ADL] Gprs setup 1 : 0
2013/10/23;19:45:33:164;001;ADL;2;wip_bearerStart(GPRS) : -27
2013/10/23;19:45:33:168;001;ADL;6;Connecting GPRS
2013/10/23;19:45:33:174;001;ADL;16;[ADL port] IsAvailable(80) : 1
2013/10/23;19:45:33:185;001;ADL;27;Call unsubs 10716553 : 0
2013/10/23;19:45:33:190;001;ADL;31;[ADL] GPRS unsubs 107122F3 : 0
2013/10/23;19:45:33:203;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 1 : Context 0
2013/10/23;19:45:33:368;001;ADL;6;wip_Gprs_Handler() : Connection failure
2013/10/23;19:45:33:372;001;ADL;6;GPRS setup failure
2013/10/23;19:45:33:376;001;ADL;6;ipgprs_Stop()
2013/10/23;19:45:33:384;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 4 : Context 0
2013/10/23;19:45:33:394;001;ADL;6;wip_Gprs_Handler() : Disconnection completed after wip_bearerStop was called
2013/10/23;19:45:33:398;001;ADL;6;ipgprs_Start()
2013/10/23;19:45:33:402;001;ADL;27;Call subs 10716553 : 0
2013/10/23;19:45:33:413;001;ADL;31;[ADL] Gprs subs 107122F3 : 0
2013/10/23;19:45:33:413;002;ADL;16;[ADL port] IsAvailable(80) : 1
2013/10/23;19:45:33:423;001;ADL;31;[ADL] Gprs setup 1 : 0
2013/10/23;19:45:33:587;001;ADL;2;wip_bearerStart(GPRS) : -27
2013/10/23;19:45:33:591;001;ADL;6;Connecting GPRS
2013/10/23;19:45:33:596;001;ADL;2;wip_bearerStop(GPRS) : 0
2013/10/23;19:45:33:602;001;ADL;16;[ADL port] IsAvailable(80) : 1
2013/10/23;19:45:33:613;001;ADL;27;Call unsubs 10716553 : 0
2013/10/23;19:45:33:619;001;ADL;31;[ADL] GPRS unsubs 107122F3 : 0
2013/10/23;19:45:33:627;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 1 : Context 0
2013/10/23;19:45:33:633;001;ADL;6;wip_Gprs_Handler() : Connection failure
2013/10/23;19:45:33:819;001;ADL;6;GPRS setup failure
2013/10/23;19:45:33:823;001;ADL;6;ipgprs_Stop()
2013/10/23;19:45:33:831;001;ADL;6;ipgprs_Bearer_Handler() : Bearer 10f0a198 : Event 4 : Context 0
2013/10/23;19:45:33:841;001;ADL;6;wip_Gprs_Handler() : Disconnection completed after wip_bearerStop was called
"Developer Studio\0" "2.3.1.201305211544-R11859\0"
"Open AT Application Framework package\0" "2.52.0.A1.201307221109\0"
"Open AT OS Package\0" "6.52.0.A1.201306271522\0"
"Firmware Package\0" "7.52.0.A1.201307191706\0"
"Internet Library Package\0" "5.56.0.A1.201307011505\0"
"Location Library Package\0" "1.4.6.201305151408\0"
"\0";