I’m trying to do a GPRS + TCP/IP shutdown on a CGREG event, then restart.
What I’m finding is that the wip_bearerStop never completes, I get no WIP_BEV_STOPPED event and repeat calls to wip_bearerStop give WIP_BERR_OK_INPROGRESS.
If I call the shutdown process myself from a good network, it all ripples through the event chain OK
WIP_BEV_IP_DISCONNECTED (where I call wip_bearerStop )
WIP_BEV_STOPPED (where I call wip_bearerClose )
but it seems to get stuck from a network failure.
If I go ahead with a restart the wip_bearerOpen, returns all ready open, but the connection is not good.
Any clues? I’m tempted to just reset the whole thing, but its not very elegant.