When to activate
- Implementing BLE GATT services and characteristics
- Designing BLE advertising and scanning strategies
- Implementing BLE pairing and bonding
- Building BLE Mesh networks for IoT
- Debugging BLE connection issues and throughput
When NOT to use
- For WiFi-only IoT devices
- For classical Bluetooth audio (A2DP)
- For NFC or RFID systems
Instructions
- Define GATT profile. Services (group related data), Characteristics (individual values), Descriptors (metadata). Use standard SIG profiles where possible.
- Advertising. Include service UUIDs. Use scan response for extra data. Interval trade-off: fast = discoverable, slow = power efficient.
- Connection parameters. Interval (7.5ms-4s), latency (skip intervals), timeout. Negotiate for use case: low latency vs power.
- Pairing. Just Works (no MITM protection), Passkey (MITM protection), OOB (out-of-band key). Choose based on security needs.
- Throughput. DLE (Data Length Extension) for larger packets. MTU negotiation. Notifications > Indications (no ack needed).
- BLE Mesh. Provisioning, relay nodes, publish/subscribe model. For many-to-many communication (lighting, sensors).
- Debugging. BLE sniffer (nRF Sniffer). Connection event logging. RSSI monitoring for range issues.
Example
BLE GATT Profile: Environmental Sensor
Service: Environmental Sensing (0x181A)
Characteristic: Temperature (0x2A6E) — sint16, 0.01°C resolution, notify
Characteristic: Humidity (0x2A6F) — uint16, 0.01% resolution, notify
Characteristic: Pressure (0x2A6D) — uint32, 0.1 Pa resolution, read
Service: Device Information (0x180A)
Characteristic: Manufacturer (0x2A29) — string, read
Characteristic: Firmware Rev (0x2A26) — string, read
Advertising: 100ms interval, include Environmental Sensing UUID
Connection: 30ms interval, 0 latency, 4s timeout
1---2name: ble-connectivity3description: Implement BLE connectivity — GATT services, pairing, advertising, and BLE Mesh networking4allowed-tools: [Read, Write, Grep]5effort: medium6metadata:7 source: https://skillmd.com/skills/uitbreidenos/ble-connectivity8---910## When to activate1112- Implementing BLE GATT services and characteristics13- Designing BLE advertising and scanning strategies14- Implementing BLE pairing and bonding15- Building BLE Mesh networks for IoT16- Debugging BLE connection issues and throughput1718## When NOT to use1920- For WiFi-only IoT devices21- For classical Bluetooth audio (A2DP)22- For NFC or RFID systems2324## Instructions25261. **Define GATT profile.** Services (group related data), Characteristics (individual values), Descriptors (metadata). Use standard SIG profiles where possible.272. **Advertising.** Include service UUIDs. Use scan response for extra data. Interval trade-off: fast = discoverable, slow = power efficient.283. **Connection parameters.** Interval (7.5ms-4s), latency (skip intervals), timeout. Negotiate for use case: low latency vs power.294. **Pairing.** Just Works (no MITM protection), Passkey (MITM protection), OOB (out-of-band key). Choose based on security needs.305. **Throughput.** DLE (Data Length Extension) for larger packets. MTU negotiation. Notifications > Indications (no ack needed).316. **BLE Mesh.** Provisioning, relay nodes, publish/subscribe model. For many-to-many communication (lighting, sensors).327. **Debugging.** BLE sniffer (nRF Sniffer). Connection event logging. RSSI monitoring for range issues.3334## Example3536```37BLE GATT Profile: Environmental Sensor3839Service: Environmental Sensing (0x181A)40 Characteristic: Temperature (0x2A6E) — sint16, 0.01°C resolution, notify41 Characteristic: Humidity (0x2A6F) — uint16, 0.01% resolution, notify42 Characteristic: Pressure (0x2A6D) — uint32, 0.1 Pa resolution, read4344Service: Device Information (0x180A)45 Characteristic: Manufacturer (0x2A29) — string, read46 Characteristic: Firmware Rev (0x2A26) — string, read4748Advertising: 100ms interval, include Environmental Sensing UUID49Connection: 30ms interval, 0 latency, 4s timeout50```