BLE_SerialCom_Peripheral Application Description

How to demonstrate Point-to-Point communication using BLE component.

The Nucleo board flashed with BLE_SerialCom_Peripheral application acts as GAP peripheral.

Keywords

Connectivity, BLE, BLE protocol, BLE pairing

Directory contents

Hardware and Software environment

How to use it?

In order to make the program work, you must do the following:

For this application, two STM32WBA nucleo boards are used or one STM32WBA and a smartphone. One board is configured as central thanks to BLE_SerialCom_Central and the other as peripheral thanks to BLE_SerialCom_Peripheral. The central board supports the Data transfer by sending L2CAP data through a COC link.

No service is added.

After BLE link is established, a Connection Oriented Channel (COC) is established (full stack is necessary for COC) Data are exchanged through the COC link.

Open a VT100 terminal on Central and Peripheral side (ST Link Com Port, @115200 bauds).

At reset application initialization is done.

There are two different modes to send messages from an STM32WBA: “Send button” or “Real time”. After reset, “Real time” mode is selected. In terminal, when you type the message: - In “Send button” mode, data are sent when LF is sent. - In “Real time” mode, each character is immediately sent.

On server side when connected:

On server side when idle:

On client side when connected:

On client side when idle:

In case of the central is a smartphone, open ST BLE Toolbox, click on COC. Pairing is requested, click on “pair”.

Please refer to dedicated wiki page describing how to setup and use this application: Wiki: STM32WBA Bluetooth LE Serial Communication