cancel
Showing results for 
Search instead for 
Did you mean: 

Connect two STM32WB MCUs via BLE

MohammedBou45
Associate

Hello everyone,
I’m working on a BLE project using two STM32WB55 boards.
My goal is to create a connection between them without using the ST BLE Toolbox App.
One board is configured as a Custom Server (Peripheral), and the other as a P2P Client (Central).

I want to ensure that I am properly connected to my server and receiving notifications.
But I am not sure about how using:

Start scanning

Identify the correct server

Connect

Discover services

Enable notifications

Receive data

 

 

Please without saying follow the P2p example, because I didn't catch it

3 REPLIES 3
FilipKremen
ST Employee

Hello,

have you read this Wiki page?

It provides more information regarding P2P application. It's meant for WBA series, however the structure is similar to WB series.

STM32WBA Bluetooth® LE – Peer 2 Peer Applications - stm32mcu

I also recommend reading this document below.

Guidelines for Bluetooth® LE stack programming on STM32WB/STM32WBA MCUs - Programming manual

If you have any other question, please don't hesitate to ask.

 

Best regards,

Filip Kremen

My objective is to send some sensor data from an MCU to other one, so what is the best solution for me, and I didn't catch the BLE_p2pClient example, so if there is any other clear tutorial or reference to follow ? (I reached to send the data to ST Toolbox App) 

FilipKremen
ST Employee

Hello,

I recommend reading a readme file in the BLE_p2pClient example for overview.

Also, if you have a look at p2p_client_app.c file you can find there Button_Trigger_Received() function which writes to a characteristic on server side, and you can toggle LED based on this value. You can also add your own characteristic to the server for your own data. 

Section 7 in the document also provides additional information for building BLE application.

How to build wireless applications with STM32WB MCUs - Application note

Best regards,

Filip Kremen