ESP-BLE Solution Introduction

[中文]

Note

This document is automatically translated using AI. Please excuse any detailed errors. The official English version is still in progress.

BLE HID

Description

The BLE HID solution refers to the Human Interface Device (HID) devices implemented through BLE, such as keyboards, mice, game controllers, etc. At the same time, with the USB Device function of ESP32-S3/H4, dual-mode HID is realized.

Features

  • USB mode supports a maximum report rate of 1000 HZ.

  • BLE mode supports a maximum report rate of 127 HZ.

  • Supports low power mode, standby average current 5 mA.

  • Supports switching between multiple BLE devices.

  • Supports VIA keyboard protocol, key positions can be modified through the USB webpage.

BLE ADV

Description

BLE ADV is used to carry simple data payloads, implementing control and data transmission functions. Typical application scenarios include remote controls, wireless switches, etc. It provides an ADV example based on the BTHOME V2.0 protocol, which can be easily integrated into Home Assistant. It can be powered by a button battery, and due to power consumption reasons, the current recommendation is to use the ESP32-H2 module/chip.

Hardware

  • Development Board: ESP32-H2-DevKit, ESP32-H2-Knob

Related Links

Features

  • Supports power supply with button battery.

  • No power consumption when not working.

  • Supports BTHOME protocol.

  • Supports AES encryption.

  • Applicable types: Single transmission devices, such as buttons, switches, door and window sensors, temperature and humidity sensors, etc.

  • Used with Home Assistant or BLE gateway.

ESP-BLE-MESH

Description

Bluetooth Mesh network implements “many-to-many” communication of wireless devices, which can be used to establish networks containing a large number of devices. It is used in smart homes, industrial control and other scenarios. It supports low power consumption, and for applications such as switches and sensors, it supports power supply with button batteries.

Hardware

  • Development Board: ESP32-S3-DevKit, ESP32-C3-DevKit

Related Links

Features

  • Supports 100+ device connections and networking

  • Supports Mesh 1.1

  • Supports low-power devices.

  • The IDF Master version is compatible with BLE 5.0 and can use multiple adv instances in BLE 5.0 for broadcasting.

BLE UART

Description

The BLE UART solution constructs a bidirectional transparent transmission channel similar to a serial port through Bluetooth LE GATT, using the general BLE UART service agreement of RX write-in and TX Notify, enabling low-power, short-range, wireless serial communication between the device and PC, mobile phone or other BLE Central devices. This solution does not bind to the upper layer protocol, and can carry JSON, AT commands, custom binary protocols, log streams, or device control commands.

Hardware

  • This solution is applicable to ESP chips like ESP32-H2 / ESP32-H21 / ESP32-H4, which do not support Wi-Fi (other ESP chips that support BLE theoretically also support this solution, although they are slightly inferior in terms of application scenarios).

Related Links

Features

  • Supports transparent transmission, does not limit the upper layer protocol format, suitable for log collection, parameter configuration, device debugging, command interaction, and inter-device communication.

  • Provides PC-side toolchain, including ESP-BLE-UART Bridge, Console, and Daemon, which can be used for scanning, connecting, sending and receiving data, and integrating into local applications.

  • Typical measured throughput reference: ESP32-S3 + iPhone 14 Pro, with MTU 247, TX Notify is about 25 KB/s, RX Write is about 20 KB/s.