Files
swiftcontrol/lib/utils/support
Jonas Acker b443a005df feat(stages): Stages SB20 shift buttons as a controller (beta)
A Stages smart bike ("Stages Bike XXXX") was classified as a plain
trainer and its shift buttons were ignored. It is now classified by name
as StagesSmartBike, ahead of the power-meter and trainer rules, and runs
on the shared smart-bike host: its buttons act as a remappable
controller while its FTMS/CPS/CSC services are listed a second time as a
trainer over the same BLE connection.

Buttons: the button characteristic (0c46be60) streams
<type> 00 <bitmask u16 LE> frames: 0x01 while held, 0x03 once mid-press
(ignored), 0x04/0x08 on release; one bit per button (left/right up,
down, third). A press is reported once per change of the held set, so
the held stream never re-fires; long press is left to the shared button
handling. Unknown types and short frames are ignored.

Defaults: up = shift up, down = shift down on both sides, the third
buttons navigate left/right. The bike API service (0c46beaf) is never
subscribed to or written to, and neither vendor service is mirrored by
the trainer role.

Also: button service in servicesToScan (web needs it to access the
service), "Stages" support-intake option, emulation profile, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:06:45 +02:00
..