On Tue, Jun 21, 2016 at 12:46:18AM -0700, Simon Ratner wrote:
> In the meantime, I tried increasing hci buffers from 4 to 8 and it has
> helped somewhat. I am not seeing -1 returns any more, and incoming
> connections are less flaky, but I still see that 14. To clarify a point I
> missed in my original email - and your question has surfaced - that isn't a
> direct return from ble_gap_conn_initiate, but the status code in
> BLE_GAP_EVENT_CONNECT (ctxt->connect.status) following said call. That is
> why I wasn't sure if it is actually a BLE_HS_ETIMEOUT from the host, or
> coming from another part of the stack entirely.

By the way, I have implemented a fix for the buffer exhaustion issue.
This should ensure that you never get the -1 return code anymore.  This
fix does not address the issue of the controller being unable to
allocate an event buffer to send to the host, however.

One reason for the buffer shortage could be that your application is
doing something slow each time the controller sends an event your way.
For example, if your application prints details about an advertisement
report each time it receives one, this could be problematic if you are
being flooded with advertisements.

Chris

Reply via email to