Hi,
I’m Using Fastrack M1306B , firmware 6.57.
In my application I am testing GPRS connection and Tcp Client whit WIP library.
In particular I am testing the case in which the GPRS connection must be Deactive.
These are my steps:
- I active GPRS connection whit
wip_bearerOpen(…);
wip_bearerSetOpts(…);
wip_bearerStart(b); where b is the bearer handle
2)When I receive WIP_BEV_IP_CONNECTED I start the TCP client with:
client = wip_TCPClientCreate(…); where client is the created chanel
3)when I receive WIP_CEV_WRITE I start sending data to the server
4)After the data sending I close socket with
wip_shutdown(client,TRUE,TRUE);my server receives the closing of
socket - when I receive WIP_CEV_PEER_CLOSE:
I close the created chanel whit wip_close(client);
I stop the bearer whit wip_bearerStop(b); - when I receive WIP_BEV_STOPPED:
I close the bearer whit wip_bearerClose(b);
On TMT I read these trace :
From the trace it is observed that the gprs is closed.
But if after wip_bearerClose(b) I attend a minute and after I execute
adl_atCmdCreate(“AT+CGATT?”,TRUE,CGATT_0,“*”,NULL )
the answer is +CGATT: 1.
My question is:
Is wip_bearerStop(b) + wip_bearerClose(b) equal to AT+CGATT = 0??