BLE_SerialCom_Central Application Description

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

The Nucleo board flashed with BLE_SerialCom_Central application acts as GAP central.

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:

Two STM32WBA nucleo boards are used. 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). This application has to be used in front of BLE_SerialCom_Peripheral.

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: