Bluetooth Low Energy
Understanding BLE
BLE operates in two primary modes: advertising (broadcast, connectionless) and connected (bidirectional, acknowledged). Advertising uses channels 37, 38, 39 for discovery and data broadcast. Connections use channels 0-36 with adaptive frequency hopping (AFH) to avoid interference. The connection interval (7.5 ms to 4 s) determines how often the radio wakes for data exchange.
GATT organizes data into services containing characteristics. Each characteristic has properties (read, write, notify) and a UUID. Standard profiles (Heart Rate, Blood Pressure, HID) ensure interoperability. Custom services use 128-bit UUIDs.
Example (1 s CI, 3 ms event):
(10 mA × 3 ms + 2 μA × 997 ms) / 1000 ms
= 32 μA average
CR2032 (230 mAh): ~7,200 hrs = 300 days
BLE vs Competing IoT Protocols
| Protocol | Range | Data Rate | Topology | Phone Native |
|---|---|---|---|---|
| BLE | 10-400 m | 1-2 Mbps | Star/Mesh | Yes |
| Zigbee | 10-100 m | 250 kbps | Mesh | No |
| Thread | 10-30 m | 250 kbps | Mesh (IPv6) | No |
| Wi-Fi HaLow | 1 km | 150 kbps-78 Mbps | Star | No |
Frequently Asked Questions
How low power?
Duty cycling: 3 ms active, 997 ms sleep = 32 μA avg. Beacons: years on coin cell. Aggressive sleep is the key.
Protocol stack?
PHY→Link Layer→L2CAP→ATT→GATT→Application. Services/characteristics define data. GAP defines roles.
BLE vs Zigbee?
BLE: phone-native, star/mesh, higher data rate. Zigbee: mesh, 250 kbps, needs gateway. BLE has the biggest ecosystem.