Two github pages hosting the web app are available:
No installation is required to use it this way.
This is a web interface created with React 18 and Bootstrap 5.
This web interface using Web Bluetooth® APIs can be used to establish a Bluetooth® LE connection and exchange data with a STM32WB board
STM32WB firmware applications that could be downloaded to interact with Web Bluetooth® application:
Example of the interface when a connection is established with Firmware Update Over The Air application and HeartRate application
The following wiki page will help you to put in place the hardware setup.
To use the web interface, one of the following STM32WB boards is necessary .
A PC or a smartphone is required to open the web interface in a browser.
Flash stm32wb5x_BLE_Stack_full_fw.bin or stm32wb5x_BLE_Stack_light_fw.bin binary on the Wireless Coprocessor.
If it is not the case, STM32CubeProgrammer is needed to load the appropriate binary.
All available coprocessor wireless binaries are located here.
All available application binaries are available here.
Refer to UM2237 to learn how to install and use STM32CubeProgrammer.
For more information about Bluetooth® LE please refer to the STMicroelectronics Bluetooth® LE Wiki.
The P2P Server application demonstrates a bidirectional Bluetooth® LE communication between a client and a server. The P2P Server interface proposes a set of buttons to interact with the connected device. A reboot panel is available only if a P2P Server service with the reboot OTA characteristic is detected on the device (see the Firmware Update Over The Air section to have more information related to OTA).
Example with the P-NUCLEO-WB55 board.
One of the following binary has to be flashed on the wireless coprocessor.
And this application binary file has to be flashed on the application coprocessor.
If you don't know how to update the coprocessors firmware, click here.
Step 1. Power on the STM32WB board with the Ota application flashed in and activate the Bluetooth® on your machine.
Step 2. Open this web page in your browser.
Step 3. Click on the connect button then select P2PSRV1 in the device list and click pair.
Step 4. Click on P2P Server to show the interface and don't hesitate to read the tooltips.
Your are now connected.
You can now interact with the connected device.
The Firmware Update Over The Air (OTA) application allows a remote device to update the current application on the application coprocessor or to update the Wireless stack on the wireless coprocessor. Furthermore, the services which implements the reboot OTA characteristic are able to jump/reboot on the OTA application, thus allowing to update the application at your will.
Example with the P-NUCLEO-WB55 board.
One of the following binary has to be flashed on the wireless coprocessor.
And this application binary file has to be flashed on the application coprocessor.
If you don't know how to update the coprocessors firmware, click here.
Step 1. Power on the STM32WB board with the Ota application flashed in and activate the Bluetooth® on your machine.
Step 2. Open this web page in your browser.
Step 3. Click on the connect button then select STM_OTA in the device list and click pair.
You are now connected
Step 4. Select the correct STM32WB device by clicking on the radio button.
Step 5. Choose between Application Coprocessor Binary to update the Application and Wireless Coprocessor Binary to update the Wireless stack.
Step 6. Select the binary to be downloaded. You can either fetch a binary file from the STMicroelectronics github repository STM32CubeWB or upload a binary file stored on your machine.
Step 7. (Not mandatory) Choose the first sector address from which the file will be write.
Step 8. Click on the upload button and wait for the disconnection.
Congratulations, the new Application/Wireless stack is running and can be connected
If you have updated the old application with a new application implementing the characteristic reboot OTA, like BLE_p2pServer_ota_reference.bin or BLE_HeartRate_ota_reference.bin a panel permitting to restart on the OTA application is available. From this panel you can jump on the Firmware Update Over The Air application, then reboot on another application.
The section 4 of the panel (4. Range of sectors to delete) is not mandatory, the values are updated automaticaly.
The HeartRate application measures heart rate data and other information like the body sensor location and the energy expended. The HeartRate interface proposes a set of buttons and text input to interact with the connected device and a chart displaying the heart rate data received. A reboot panel is available only if a HeartRate service with the reboot OTA characteristic is detected on the device (see the Firmware Update Over The Air section to have more information related to OTA).
Example with the P-NUCLEO-WB55 board.
One of the following binary has to be flashed on the wireless coprocessor.
And this application binary file has to be flashed on the application coprocessor.
If you don't know how to update the coprocessors firmware, click here.
Step 1. Power on the STM32WB board with the HeartRate application flashed in and activate the Bluetooth® on your machine.
Step 2. Open this web page in your browser.
Step 3. Click on the connect button then select HRSTM in the device list and click pair.
You are now connected
Step 4. Click on HeartRate to show the interface and don't hesitate to read the tooltips.
You can now interact with the connected device.
The Data Throughput application measures the upload (data transfer from web interface to the connected device) and download (data transfer from the connected device to the web interface) throughput between the web app and the connected device. The Data Throughput interface proposes two panels, one to display the uploaded data and the other the downloaded data. Each panel has a chart of the data throughput and a button to reset the chart, the upload panel has also a button to start or stop the uploading of data.
Example with the P-NUCLEO-WB55 board.
One of the following binary has to be flashed on the wireless coprocessor.
And this application binary file has to be flashed on the application coprocessor.
If you don't know how to update the coprocessors firmware, click here.
Step 1. Power on the STM32WB board with the Data Throughput application flashed in and activate the Bluetooth® on your machine.
Step 2. Open this web page in your browser.
Step 3. Click on the connect button then select DT_SERVER in the device list and click pair.
You are now connected
Step 4. Click on Data Throughput to show the interface and don't hesitate to read the tooltips.
You can now interact with the connected device.
Caution : Issues and the pull-requests are not supported to submit problems or suggestions related to the software delivered in this repository. This example is being delivered as-is, and not necessarily supported by ST.
For any other question related to the product, the hardware performance or characteristics, the tools, the environment, you can submit it to the ST Community on the STM32 MCUs related page.