Skip to main content

Module protocol

Module protocol 

Source
Expand description

GATT UUIDs and constants for the Mendi headband BLE protocol (V4).

The Mendi headband exposes a custom GATT service with six characteristics, each carrying protobuf-encoded messages as defined in device_v4.proto.

§UUID namespaces

Mendi uses a vendor-specific UUID base: fc3eXXXX-c6c4-49e6-922a-6e551c455af5. The short codes ABB0ABB6 are embedded into this base, not the standard Bluetooth Base UUID (0000XXXX-0000-1000-8000-00805f9b34fb).

Standard BLE characteristics (firmware/hardware revision) still use the Bluetooth Base UUID.

Constants§

ADC_CHARACTERISTIC
ADC / Battery characteristic: fc3eabb4-c6c4-49e6-922a-6e551c455af5.
CALIBRATION_CHARACTERISTIC
Calibration characteristic: fc3eabb6-c6c4-49e6-922a-6e551c455af5.
DIAGNOSTICS_CHARACTERISTIC
Diagnostics characteristic: fc3eabb5-c6c4-49e6-922a-6e551c455af5.
FIRMWARE_REVISION
Standard BLE Firmware Revision String characteristic (0x2A26).
FRAME_CHARACTERISTIC
Frame characteristic: fc3eabb1-c6c4-49e6-922a-6e551c455af5.
HARDWARE_REVISION
Standard BLE Hardware Revision String characteristic (0x2A27).
IMU_CHARACTERISTIC
IMU register access characteristic: fc3eabb3-c6c4-49e6-922a-6e551c455af5.
MENDI_NAME_PREFIX
Default BLE advertised name prefix for Mendi headbands.
MENDI_SERVICE_UUID
Primary GATT service UUID: fc3eabb0-c6c4-49e6-922a-6e551c455af5.
OPTICAL_CHANNEL_NAMES
Human-readable names for the three optical channels.
SENSOR_CHARACTERISTIC
Sensor register access characteristic: fc3eabb2-c6c4-49e6-922a-6e551c455af5.

Functions§

mendi_uuid
Build a full 128-bit UUID from a 16-bit short code using the Mendi vendor base UUID: fc3eXXXX-c6c4-49e6-922a-6e551c455af5.