Am using Q2686G.
The firmware version is :: R74_00gg.Q2686G
Application OS :: 06.21
Boot loader version :: V08b0e
When trying to connect to GPRS, getting the Cid Info is giving problem.
what am doing is,
waiting for WIND: 7 event
Then doing GPRS setup [with Cid as ‘1’]and handler subscribe, both are returning OK
In handler, am receving
i. Event::25[ ADL_GPRS_EVENT_SETUP_OK] with Cid::1. Then am doing adl_gprsAct(1).This also returning OK
ii. then, receiving Event::27[ADL_GPRS_EVENT_ME_ATTACH] with Cid::1, in shell am getting
In our forum, one of our friend told to wait for event “WIND : 4”[product is ready to process AT commands.]
I did that. But i cant get anything different. Problem remain the same.
“WIND :7” will come, when the n/w service is available for emergency call. I tried that. that time, i got some more lines in shell,
" +WIND: 15,1,“Airtel”,2,“Airtel”,3,"+22",4,“11/01/14,09:44:48+22”,6,“0” "
Is it wrong? Why the Cid value changed to 5. Its limit is[0-4] only.
Thank you for your replay. I waited for a long time. But after WIND: 7 , also some events related to SMS and calls are only coming. I checked in user guide. Can not find any API to check or to do registration . Kindly help me .
Thank you awneil. Now, I installed GPRS hadler after the unit is ready to process the AT commands. Then, after the GPRS handler received, the “ADL_GPRS_EVENT_ME_ATTACH”, am calling the GPRS setup function. Now, the Cid is not changing and am getting the DNS1,local ip .
But, when i call “wip_TCPClientCreate” with one IP and port number[In which am already running server], the create is returning OK . But when i try to transmit some data using GPRS using “wip_write” it is giving error as, " WIP_CEV_ERROR" and error number is “-989”. Saying Destination Host is Un-reachable. But that host is up and waiting in that socket.
Is there any way to confirm the GPRS functionality ?
thank you awneil. With out using GPRS event handler, now i tried.
I called “wip_netInit” at the beginning. Then waiting for event 15 to occur. [till the CPU receive NITZ info from network]. I get,
" +WIND: 15,1,“Airtel”,2,“Airtel”,3,"+22",4,“11/01/18,07:01:14+22”,6,“0” "
after that i called gprs bearer function which will do, wip_bearerOpen, wip_bearerSetOpts, and wip_bearerStart . but wip_bearerStart get failed with following error,
thank you awneil… now i am trying with new sim card. As you warned me,this is not returning NITZ. Thank you.
so, i am sending “AT+CREG=1” command using adl_atCmdCreate API. After this API’s success, i am calling gprs setup function.
Now am getting WIP_BERR_OK_INPROGRESS and after some time WIP_BEV_CONN_FAILED. Am getting WIP_BOPT_ERROR value as 4. " WIP_BOPT_ERROR::4 " .
But its not negative, and this error code is not listed in document.