cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB eddystone and sleep

PPrei
Associate II

I would like to use STM32WB (NUCLEO-WB55) with eddystone and sleep periodically.

I find examples about beacon and about power low mode but it's not easy merge them.

I'm looking for an example.

Thank you

Paolo Preioni

12 REPLIES 12
STTwo-32
ST Employee

Hello @PPrei 

This example may help you on your project. Also, referring to this Wiki will be a good idea to understand how it works.

Best Regards.

STTwo-32

 

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.

The cited example shows continuous packet transmission. What would be needed is a function to stop transmission and a deinit before activating sleep. Upon waking, the system will then proceed with a new init and new transmission. How should the stop function be implemented? Thanks.

FilipKremen
ST Employee

Hello,

please check this topic as it may be helpful for you.

STM32WB55 BLE and LPM - STMicroelectronics Community

For using low power mode, you just have to enable it in app_conf.h file #define CFG_LPM_SUPPORTED 1.

The sequencer will automatically enter low power mode if there are no pending tasks.

Regarding the stop function, you could use a timer server which would periodically start advertising.

Best regards,

ST support

 

@FilipKremen and thanks for your answer.

I read the suggested post (and also replied to it) and set CFG_LPM_SUPPORTED to 1.
However, it still doesn't work.
If I set "BT SIG Beacon" = disabled in the STM32CubeMX (because I only want to transmit data using the advertiser's manufacture-specific data), I have no problem putting the microcontroller to sleep and stopping the transmission of BLE packets, then waking it up and starting the cycle again.
On the other hand, when I set "BT SIG Beacon" = EDDYSTONE_TLM_BEACON, I have problems.
When the microcontroller goes to sleep, the sniffer continuously detects packet transmission. Furthermore, I can't wake the microcontroller from sleep.

Best regards

FilipKremen
ST Employee

Hello,

can you please send me your project?

Thank you.

Best regards,

Filip Kremen

Hello.

Sorry, but I cannot disclose the project due to confidentiality.

FilipKremen
ST Employee

Do you use sequencer with low power manager, or do you have your own solution?

What is your current consumption requirement? Do you have any power consumption waveform to share?

Best regards,

Filip Kremen

 

What exactly do you mean by "sequencer with low power manager"?
The current requirement is, of course, as low as possible. I don't have waveforms; our customer performed all these measurements directly.

If you mean the "sequencer" entry in stm32cubeMX, this is enabled.