Hi,
Here the peudo code:
//--------------
// First connexion (success)
//--------------
wip_netInit()
wip_bearerOpen( GPRS )
wip_bearerSetOps( APN, Login, Pass)
wip_bearerStart() (returns WIP_BERR_OK_INPROGRESS)
[GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate
// Just close
wip_bearerClose()
wip_netExit()
//--------------
// Second connexion (failed)
//--------------
wip_netInit()
wip_bearerOpen( GPRS )
wip_bearerSetOps( APN, Login, Pass)
wip_bearerStart() (returns WIP_BERR_PARAM)
[GPRS]: start: GPRS setup failed: -3
// Just close
wip_bearerClose()
wip_netExit()
If I just start and close the bearer: the second (and the others) connexion failed unless I perform a AT+CGATT=0. Why ?
What does “[GPRS]: start: GPRS setup failed: -3” mean ?
But if I create a TCP socket and manage it correctly, between the bearerStart and the bearerClose, all the connexions works…
Any idea ?
THanks !