Commit 11ac7fe
Add Freebeat Fit bike support via USB serial (issue #4822)
- New FreebeatUSB QThread: opens /dev/ttyS4 at 9600 baud 8N1 (internal UART),
handles binary protocol decoded from APK reverse engineering:
- 5-byte commands [startCode, action, data, checksum, 0xA0]
- 13-byte telemetry packets with speed, RPM and resistance
- LED heartbeat to keep bike awake
- New freebeatbike device class extending bike, with virtual bike support
- New QZSettings::freebeat_serialport setting
- QML accordion "Freebeat Bike Options" with serial port field
- Wired into bluetooth.cpp instantiation, destructor and device getter
- Added to qdomyos-zwift.pri and settings-catalog.json
Fixes #4822
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 48946cf commit 11ac7fe
11 files changed
Lines changed: 1037 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| 626 | + | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
949 | 951 | | |
950 | 952 | | |
951 | 953 | | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
952 | 967 | | |
953 | 968 | | |
954 | 969 | | |
| |||
4196 | 4211 | | |
4197 | 4212 | | |
4198 | 4213 | | |
| 4214 | + | |
| 4215 | + | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
4199 | 4219 | | |
4200 | 4220 | | |
4201 | 4221 | | |
| |||
4563 | 4583 | | |
4564 | 4584 | | |
4565 | 4585 | | |
| 4586 | + | |
| 4587 | + | |
4566 | 4588 | | |
4567 | 4589 | | |
4568 | 4590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
0 commit comments