2023-11-28 02:27 AM
I’m using a STM32WB5MMGHx module on a battery powered device. I need to put the module in Stop mode 2 in order to have a better battery life. After reset when the module enters the stop mode for the first time it stops advertising as it should. After waking up when the module returns to stop mode again the advertisement keeps being active. I need the module to stop advertising every time it enters Stop Mode 2.
I’m using HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI) to enter stop mode 2.
Solved! Go to Solution.
2023-11-29 08:47 AM
aci_gap_set_non_discoverable command will stop the advertising, so yes the power consumption of the RF is reduced.
2023-11-28 11:04 AM
Hello @MLuis.1,
Actually, using STM32WB, the deepest low-power mode supported when RF is active is STOP2;
but you can always stop advertising when needed
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-11-29 01:07 AM
Hi @Sarra.S ,
I want to deactivate the RF but when the system wakes up it comes from where it entered the low-power mode.
I cant use any mode where the module resets on wake up
2023-11-29 07:04 AM
Hello,
If you start the advertising and allows stop 2 low power mode, the device will go in stop2 between each advertising event, it's the case in BLE_HeartRate example. If you want to stop the advertising, you can use the aci_gap_set_non_discoverable command.
Best Regards
2023-11-29 07:50 AM
Does aci_gap_set_non_discoverable reduce the power consumption of the RF?
2023-11-29 08:47 AM
aci_gap_set_non_discoverable command will stop the advertising, so yes the power consumption of the RF is reduced.