- The STM32WBA-Human-Interface-Device-Keyboard demonstrating Bluetooth® SIG Human Interface Device (HID) Over GATT Profile 1.0 example, based on STM32CubeWBA V1.3.1
- This example runs on STM32WBAxx devices.
- Connect the Nucleo Board to your PC with a USB cable type A to mini-B to ST-LINK connector (USB_STLINK).
-
Run this Bluetooth® Low Energy HID Keyboard project where the STM32WBA will advertise
-
Use the ANDROID/IOS/PC Bluetooth® Low Energy to connect with this Human Interface Device (HID) Over GATT Profile 1.0 (HID_XX where XX is the 2 last digit of the Bluetooth® Device Address)
Scan on ANDROID/IOS:
Pairing on ANDROID/IOS:
Connection on ANDROID/IOS:
On STM32WB55 Nucleo Board:
- each B1 button press send HID Input Report with the following key characters 0, 1, 2, ..., 9, a, b, c, ..., z, "enter", 0, 1 ...
- each B2 button press set/reset the Caps Lock key and send HID Input Report
- each B3 button press set/reset the Upper Case Key to select Upper key characters on B1 button press
Received HID Input Report are displayed on the ANDROID/IOS screen:
Scan on PC:
Pairing on PC: Connection on PC: On STM32WB55 Nucleo Board:- each B1 button press send HID Input Report with the following key characters 0, 1, 2, ..., 9, a, b, c, ..., z, "enter", 0, 1 ...
- each B2 button press set/reset the Caps Lock key and send HID Input Report
- each B3 button press set/reset the Upper Case Key to select Upper key characters on B1 button press
Received HID Input Report are displayed on the PC screen and PC keyboard LED status for Caps Lock, Scroll Lock and Num Lock:
On PC keyboard each press of Num Lock, Scroll Lock and Caps Lock keys send [HID Output Report](https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=245140) to STM32WB55 Nucleo Board BLE HID Keyboard applicationwith a display of the status on the Terminal:
-
Use terminal programs like Tera Term to see the logs of each board via the onboard ST-Link. (115200/8/1/n)
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-Human-Interface-Device-Keyboard 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.