Get interrupt when time for Bluetooth event

3 posts / 0 new
Last post
Joacimwe
Offline
Last seen:1 year 3 months ago
Guru
Joined:2014-01-14 06:45
Get interrupt when time for Bluetooth event

Hi. I have some heavy calculations to do while having an established ble connection. I notice that the link tears down because the cpu is busy doing my work instead of handling connection events. Instead of (recursively) call rwip_schedule every now and then to hopefully serve the events on time, I wonder if it's possible to activate some interrupt instead to take care of the the ble events.

Device:
MT_dialog
Offline
Last seen:1 week 5 hours ago
Staff
Joined:2015-06-08 11:34
Hi Joacimwe,

Hi Joacimwe,

Sorry there is no way of calling rwip_schedule based on interrupts. A possible solution would be, if you are a peripheral, to increase the supervision timeout in order for you to ingore the connection events by the central. In that way maybe theres enough time to execute the heavy calculations you are talking about.

Thanks MT_dialog.

Joacimwe
Offline
Last seen:1 year 3 months ago
Guru
Joined:2014-01-14 06:45
Ok thanks for the response

Ok thanks for the response anyway.

Topic locked