BLE CSC wheel sensor client and wheel-circumference calibration #18

Open
opened 2026-08-31 17:14:40 +02:00 by robert · 0 comments
robert commented 2026-08-31 17:14:40 +02:00 (Migrated from git.butzei.de)

Goal

Optional wheel sensor for instant, tunnel-proof speed.

Acceptance criteria

  • Scan for and connect to the standard BLE Cycling Speed and Cadence service 0x1816
  • CSC Measurement characteristic 0x2A5B parsed: cumulative wheel revolutions and last wheel event time
  • 16-bit event-time and 32-bit revolution wraparound handled correctly
  • Wheel circumference configurable, with common presets
  • Auto-reconnect when the sensor wakes
  • Sensor battery level read where the peripheral exposes it

Files

  • companion/.../sensors/CscClient.kt
## Goal Optional wheel sensor for instant, tunnel-proof speed. ## Acceptance criteria - [ ] Scan for and connect to the standard BLE Cycling Speed and Cadence service `0x1816` - [ ] `CSC Measurement` characteristic `0x2A5B` parsed: cumulative wheel revolutions and last wheel event time - [ ] 16-bit event-time and 32-bit revolution wraparound handled correctly - [ ] Wheel circumference configurable, with common presets - [ ] Auto-reconnect when the sensor wakes - [ ] Sensor battery level read where the peripheral exposes it ## Files - `companion/.../sensors/CscClient.kt`
Sign in to join this conversation.
No description provided.