OP-BTS/OP-BT Bluetooth Service and Characteristic Reference


OP-BTS/OP-BT Bluetooth Service and Characteristic Reference

Overview

OP-BTS/OP-BT devices communicate using Bluetooth Low Energy (BLE) technology, providing services and characteristics through the GATT protocol. This document describes the BLE services and characteristics offered by the device to help developers understand and use these features.

Devices may expose different service UUIDs depending on model and firmware version; available services and characteristics may vary. This document covers common service and characteristic configurations.

BLE Service and Characteristic List

Primary Service

Service UUID: 18F0

This is the OPBT device command service, used to send commands and receive responses—especially for operations such as reading battery voltage:

Characteristic UUID Properties Description
2AF0 Read/Notify Notification characteristic for receiving data returned by the device
2AF1 Write Write characteristic for sending commands to the device

Sample Code (Flutter/Dart — 2AF0 Characteristic)

// Enable notifications on the data transmission characteristic
BluetoothCharacteristic dataCharacteristic = ...; // 2AF0 characteristic
BluetoothDescriptor cccd = await dataCharacteristic.descriptors.firstWhere(
  (d) => d.uuid.toString() == '00002902-0000-1000-8000-00805f9b34fb'
);

// Enable notifications
await cccd.write([0x01, 0x00]);

// Set notification callback
dataCharacteristic.value.listen((value) {
  // Handle received data
  print('Received data: ${String.fromCharCodes(value)}');
});

// Disable notifications when no longer needed
await cccd.write([0x00, 0x00]);