cancel
Showing results for 
Search instead for 
Did you mean: 

Example code for STM32WB + BLE in low power mode

GMacw.1
Associate II

Hi,

For my application, I have BLE connection between STM32WB55 (role = peripheral ) and mobile connection.

I want to use BLE in low power mode such a way that,

1) If device is not paired MCU(M4) should wakeup and pair if device is available then sleep again.

2) If already paired then collected the data at some interval.

What is the best example/ best way to implement this scenario?

Any suggestions would be helpful as I am beginner.

2 REPLIES 2
Remi QUINTIN
ST Employee

You can start from the heart rate project in the WB package.

This example is by default configured to support low power mode. 

Pairing is also supported. 

This application can be connected from a BLE application on a mobile (here you should use the ST BLE Sensor application) and then emulates a medical sensor sending the heart rate regularly.

I would recommend you also to read AN5289 - Building a Wireless application.

GMacw.1
Associate II

Thanks for the recommendation.

Although I have one more confusion regarding BLE connection.

For the case in low power mode,

If device is already paired and connection is established, do we need to continuously advertise packets at regular intervals for connection to keep intact and to provide BLE service? The purpose of this question is to know if I can completely put the device into sleep for few minutes (let's say 15 mins) without sending advertising packets ?