The HM-10 abstracts and packs a Bluetooth Low Energy connection in a serial connection. The original out-of-the-box firmware of the module exposes a BLE peripheral with a proprietary connectivity service (Service UUID: 0000ffe0-0000-1000-8000-00805f9b34fb
) that enables bidirectional communication between the module and any other central device that connects to it. The service defines a single characteristic (Characteristic UUID: 0000ffe1-0000-1000-8000-00805f9b34fb
) that stores 20 bytes of unformatted data:
- When the central device wants to send data to the module, it WRITES the charactreristic with the desired content
- When the module wants to send data, it sends a NOTIFICATION to the central deviceThe HM-10 module implements a serial connection in pin 1 (
TXD
in breakout boards) and pin 2 (RXD
) that is linked logically to the BLE service and connection. Any data that is received through theRXD
pin is sent through notifications to the central device. Any data written by the central device is output through theTXD
pin. This mechanism wraps the BLE connection as a standard serial connection for the connected microcontroller (Arduino, Raspberry Pi). For example, in the case of Arduino, this connection is controlled as any other serial connection using theSerial
orSoftwareSerial
library.
There are no reviews yet.