STM32WBA Bluetooth® LE – Peer 2 Peer Applications

Revision as of 17:49, 20 January 2023 by Registered User (→‎Peer to Peer Profile)

1. Peer to Peer Profile

The Peer to Peer Profile is a Generic Attribute Profile (GATT) based low-energy profile defined by STMicroelectronics with proprietary UUIDs
The Peer to Peer Profile, widely used for direct connection, defines the communication between a GATT-server of a Peer to Peer Server device, and a GATT-client Collector device, such as a smartphone, STM32WBA Peer to Peer Client or Peer to Peer Router devices.

  • The Peer to Peer Server:
    • Contains the P2P Service, which expose two characteristics (Notification & Write) in order to create a bi-direction data communication.
    • Is the GATT server.
  • The Collector:
    • Accesses the information exposed by Peer to Peer Server, controls it with the Write characteristics, receives Notification from it.
    • Is the GATT client.

This wiki page is the description of the Peer to Peer Server and Peer to Peer Client projects provided within the STM32CubeWBA MCU Package[1]

Follow this "link" for Peer to Peer Router project explanation.

Bluetooth® LE Peer to Peer Profile & STM32WBA
STM32WBA P2P Profile


The table below describes the structure of Peer to Peer service:

Bluetooth® LE Peer to Peer Service specification
Service Characteristic Mode UUID size
P2P Service 0000FE40-cc7a-482a-984a-7f2ed5b3e58f
LED Write without Response/Read 0000FE41-8e22-4541-9d4c-21edae82ed19 2
SWITCH Notify 0000FE42-8e22-4541-9d4c-21edae82ed19 2

Peer To Peer Server is exported as a Service

  • LED characteristic:
    • Used to control LED1 (Blue) on STM32WBA platform by remote device .
  • SWITCH Characteristic:
    • Used to switch LED or Lamp on Collector device.
Example of flow diagram between STM32WBA & ST BLE Toolbox
STM32WBA HR Flow Diagram


No categories assignedEdit