BLE low power mode STOP2
I'm looking for an AppNote or example showing how to enter STOP2 mode with BLE advertising enabled (low consumption, but BLE advertising). And how to : on any BLE connection, exit from STOP2.
I'm looking for an AppNote or example showing how to enter STOP2 mode with BLE advertising enabled (low consumption, but BLE advertising). And how to : on any BLE connection, exit from STOP2.
Hi,
glad to hear that.
ad.1. there are also two different modes of advertising. Fast and LowPower advertising. Adv_Request(APP_BLE_FAST_ADV)//Adv_Request(APP_BLE_LP_ADV) which can come in handy for different tasks or quick reconnections.
ad. 2. I never used anything else as the STM32Cube_FW_WB 1.3.0 and haven't had enough time to check the 1.4.0.
ad. 3. Yeah, they are both awake at that time because of that timer interrupt that was generated for connection or advertising. If there is no Task pending in the scheduler the M4 should be in STOP2 mode quite quickly again.
Yeah you can disable the entry to STOP2 Mode at all times. I did it in my DEBUG config to not lose the connection. You'll gonna waste some energy though... I do not know your application so I also do not know if that is necessary. In my application for example, the Core is only awake when there is work to do. Don't forget to disable the flag again.
I think you can flag this question as answered.
Best Regards.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.