Currently, I generally ask the BLE module to update its advertising status every X seconds (usually 5 seconds). This is via the ble.updateAdvertising() method.
In watching the RevE do other tasks (like blink the LEDs during SD recording), I see the LEDs slow down once every 5 seconds. When I turn off the updating for the advertising. The LEDs blinks smoothly.
When it does the update, it (1) checks whether it is connected and (2) whether it is already advertising. If both tests fail, it (3) starts advertising. This ends up being one to three interactions with the BT module via the slow 9600 bps serial connection.
I would not have expected the update routine to cause the Tympan to cough. We should improve this process to make it not cough.
@ijenkins-creare, it'd be great if you had thoughts.
Currently, I generally ask the BLE module to update its advertising status every X seconds (usually 5 seconds). This is via the ble.updateAdvertising() method.
In watching the RevE do other tasks (like blink the LEDs during SD recording), I see the LEDs slow down once every 5 seconds. When I turn off the updating for the advertising. The LEDs blinks smoothly.
When it does the update, it (1) checks whether it is connected and (2) whether it is already advertising. If both tests fail, it (3) starts advertising. This ends up being one to three interactions with the BT module via the slow 9600 bps serial connection.
I would not have expected the update routine to cause the Tympan to cough. We should improve this process to make it not cough.
@ijenkins-creare, it'd be great if you had thoughts.