# Wip\_berr\_gprs\_failed

**URL:** <https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544>\
**Category:** Open AT\
**Created:** [September 24, 2008, 11:09am UTC](https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544 "2008-09-24T11:09:58Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![mosama](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mosama](https://forum.sierrawireless.com/u/mosama)\
**Post date:** [November 2, 2009, 3:08am UTC](https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544/21 "2009-11-02T03:08:07Z")

</div>

I’ve tried to make automatic reconnection when bearer is disconnected by any reason.

I’ve added this in the evh\_bearer function:

```auto
else if(WIP_BEV_IP_DISCONNECTED == event)
                                                          result = wip_bearerStop(b);
  else if(WIP_BEV_STOPPED == event)
  {
	 result = wip_bearerClose(b);
	  wip_debug("[GPRS]: Bearer Disconnected, trying to reconnect\r\n");
	  poll_creg( 0); //try to reconnect
  }
```

this works well ,but the problem is when the GPRS fails when I’m trying to reconnect. the wip\_bearerStart() function returns -27 (which is WIP\_BERR\_OK\_INPROGRESS) then this progress fails without throwing any events in the evh\_bearer function!

how could I konw that the bearer failed to start?  
Is there any way to konw that? because the only way I have now is to reset the module manually.

Please help!

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [November 2, 2009, 7:19am UTC](https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544/22 "2009-11-02T07:19:42Z")

</div>

Duplicate: [viewtopic.php?f=16&t=4159&p=16387#p16387](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=16&t=4159&p=16387#p16387)

---

<div class="post-metadata">

**Author:** ![cosetec](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cosetec](https://forum.sierrawireless.com/u/cosetec)\
**Post date:** [November 2, 2009, 8:26am UTC](https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544/23 "2009-11-02T08:26:22Z")

</div>

There always will be situations in witch the modem get no error from the network… (GPRS)  
The best thing is to program a ack nack procedure with your server…  
If you don’t get ack’s from your server… in a time-out… restart connection…

---

<div class="post-metadata">

**Author:** ![mosama](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mosama](https://forum.sierrawireless.com/u/mosama)\
**Post date:** [November 2, 2009, 7:07pm UTC](https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544/24 "2009-11-02T19:07:22Z")

</div>

Is there any way to know if the bearer is up and runnibg without sending to the server?  
we need to minimize the amount of data sent via GPRS

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [November 2, 2009, 7:11pm UTC](https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544/25 "2009-11-02T19:11:11Z")

</div>

You have veered off the topic of this thread - better to go back to your original thread.

[Previous page](https://forum.sierrawireless.com/t/wip-berr-gprs-failed/2544.md?page=1)
