1. The BLE Tasks cannot be turned off.
2. Which application did you start from in your test?
Thanks for your quick response.
My application was based on an I2C application, on the I2C temperature sensor, I think.
1. Is it possible to turn off the BLE receiver, so that it does not get any input over wireless?
2. Is it normal for the timer callbacks (fine and 1 second) to be inconsistently called during startup? I am seeing this behavior every time I startup, but sometimes it improves and sometimes it does not.
I am still interested in an answer to my question #1 above, but as for question #2:
The timer callbacks seem to be coming much more consistently now that I turned off sleep by the recommended method as:
// Setup sleep control callback
devlpm_registerForLowPowerQueries(preventSleep); // Where preventSleep() is a callback that returns 0
I am now getting consistent callbacks! This is critical for my application, and I can live with the greater draw on the battery.
1 of 1 people found this helpful
If you keep your fine timeout above 12.5ms, you will maintain much more consistency in addition to the ability to enter sleep. You were likely experiencing issues as a result of contention between sleep and the timer. A possible second option is to utilize the patch called bt_clock_based_timer.h which allows for a much lower smaller interval than 12.5ms. Please see the patch for details of its use.