# Event = 8 from bearer handler... what is this?

**URL:** <https://forum.sierrawireless.com/t/event-8-from-bearer-handler-what-is-this/6828>\
**Category:** Open AT\
**Created:** [October 30, 2013, 7:18pm UTC](https://forum.sierrawireless.com/t/event-8-from-bearer-handler-what-is-this/6828 "2013-10-30T19:18:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikejamesleslie](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mikejamesleslie](https://forum.sierrawireless.com/u/mikejamesleslie)\
**Post date:** [October 30, 2013, 7:18pm UTC](https://forum.sierrawireless.com/t/event-8-from-bearer-handler-what-is-this/6828/1 "2013-10-30T19:18:57Z")

</div>

After issuing the wip\_bearerStop() command and getting the WIP\_BERR\_OK\_INPROGRESS response, I get a mysterious event on the bearer handler with a value of 8… it arrives immediately before the WIP\_BEV\_STOPPED event.

The bearer is disconnecting fine, but I can’t find any SW reference to the bearer handler event with value 8

The only events I see in the documentation are:  
WIP\_BEV\_CONN\_FAILED  
WIP\_BEV\_IP\_CONNECTED  
WIP\_BEV\_IP\_DISCONNECTED  
WIP\_BEV\_STOPPED  
WIP\_BEV\_LINK\_STATUS  
WIP\_BEV\_DRIVER

which are valued as 1-6

Any thoughts ❓

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.sierrawireless.com/u/davidc)\
**Post date:** [October 31, 2013, 12:12am UTC](https://forum.sierrawireless.com/t/event-8-from-bearer-handler-what-is-this/6828/2 "2013-10-31T00:12:45Z")

</div>

Hiya,

If you look in the wip\_bearer.h header file, you’ll see that there are actually 8 defines:

```auto
/* Bearer related events */
#define WIP_BEV_CONN_FAILED 1 // connection failed
#define WIP_BEV_IP_CONNECTED 2 // IP connected
#define WIP_BEV_IP_DISCONNECTED 3 // IP disconnected
#define WIP_BEV_STOPPED 4 // Stopped
#define WIP_BEV_LINK_STATUS 5 // Link status
#define WIP_BEV_DRIVER 6 // Driver
#define WIP_BEV_ME_UNREG 7 // ME unregister
#define WIP_BEV_CTX_DEACT 8 // Context deactivate
```

However, without the full bearer state diagram from SiWi, we have no idea when the last two (undocumented) events are emitted.

Often, the doco from SiWi runs somewhat behind the codebase (sigh!). But at least you can look into the header files for yourself and see what is hidden away.

ciao, Dave

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [October 31, 2013, 9:55am UTC](https://forum.sierrawireless.com/t/event-8-from-bearer-handler-what-is-this/6828/3 "2013-10-31T09:55:08Z")

</div>

It is only in newer versions of wip\_bearer.h that 8 is defined as CTX\_DEACT.

In particular I’ve seen that happen when the module itself believes the voltage is too low, which can happen if antenna is placed above the module itself with no other shielding than that of the module itself.  
It can also happen if you shut down GPRS prematurely.  
There may be other cases when that event code happens too.
