Demonstrate STM32WBA acting as BLE central and GATT client with BLE_App_Connection_Subrating_Client and GAP peripheral and GATT server with BLE_App_Connection_Subrating_Server.
BLE_App_Connection_Subrating_Client application scans and connects to BLE_App_Connection_Subrating_Server device.
Both devices support Connection Subrating feature with the use of BLE and Link Layer full stacks.
For more information regarding BLE Connection Subrating feature, please visit BLE Connection Subrating Wiki documentation (https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WBA_Connection_Subrating).
These applications are running on two NUCLEO-WBA55CGA boards. Applications are derived from BLE_DataThroughput_Client (BLE_App_Connection_Subrating_Client) and BLE_DataThroughput_Server (BLE_App_Connection_Subrating_Server) applications. Open a VT100 terminal on Central and Peripheral side (ST Link Com Port, @115200 bauds).
At startup, devices are initialized.
- The peripheral device starts advertising.
- B1 on central device starts scanning. Scan is stopped if a BLE_Connection_Subrating_Server is detected.
These applications are based on BLE_DataThroughput_Client and BLE_DataThroughput_Server from STM32CubeWBA package v1.5.0.
Two STM32WBA nucleo boards are used, one central/client (flashed with BLE_App_Connection_Subrating_Client) and one peripheral/server (flashed with BLE_App_Connection_Subrating_Server).
The GATT server board supports a Data transfer service with a transmission characteristic that supports notification.
The GATT client board supports a Data transfer by writing without response to the GATT server board Reception characteristic.
The board flashed with BLE_App_Connection_Subrating_Server is defined as GAP peripheral.
Open a VT100 terminal on Central and Peripheral side (ST Link Com Port, @115200 bauds).
At reset application initialization is done.
- The peripheral device starts advertising.
- Push B1 on central: the central device scans and automatically connects to the peripheral (use of FW_ID_CS_SERVER).
- After connection:
- the client starts to search the data transfer service and characteristic.
- the client enables the notification of the transmission characteristic.
On server side when connected:
- B1 starts (blue LED is ON)/stops (blue LED is OFF) notification.
- B2 sends L2CAP connection update - toggle 26.25 ms/11.25 ms
- B3 PHY toggle
On client side when connected:
- B1 starts (blue LED is ON)/stops (blue LED is OFF) write without response.
On client terminal receiving the current notification, the number of bytes per second is displayed.
On server terminal receiving the current write without response, the number of bytes per second is displayed.
Caution : Issues and the pull-requests are not supported to submit problems or suggestions related to the software delivered in this repository. The STM32WBA-BLE-Connection-Subrating 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.