Commit Graph

7 Commits

Author SHA1 Message Date
Jonas Bark
653dfbf461 feat(click-v2): hold discovered controllers for unlock-mode onboarding 2026-08-03 09:21:02 +02:00
Jonas Bark
1fed2971e5 fix: subscribe to all WHEELTOP notify slots; log reply slot + length
The +15 field log showed the probe auto-arming and the pod RESPONDING to
each candidate — but the response logged as empty. Cause: we subscribed
to 6e400002 only, so a reply on the second Nordic-UART slot (6e400003)
was never delivered, and the empty frames were artifacts on the write
slot. Subscribe to every notify/indicate characteristic (pressed-set
dedup absorbs any duplicated button event), and log each unexpected frame
with its slot and byte length so an empty artifact is distinguishable
from a real reply. Next field log will show which slot the pod answers on
and the actual bytes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:26:49 +02:00
Jonas Bark
4a7a301043 feat: WHEELTOP keepalive-reply prober (opt-in beta experiment)
TX pods drop the link after three unanswered 1 Hz status frames; the
derailleur's reply is unknown and undocumented anywhere public. When the
user opts in (device page > Preferences), each reconnect cycle writes
the next reply candidate (type-echo, ack, 3-byte XOR shapes, bare ACK —
on 6e400003 first, then other writable NUS slots) once after subscribe
and again per status frame, and logs the connection lifetime per
candidate. A lifetime past 5 s marks the likely answer; unexpected
frames are logged loudly as potential pod responses. Worst case per
attempt is the disconnect that already happens.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 09:38:50 +02:00
Jonas Bark
d9ee333648 test: fake-platform connect failures + Wheeltop EDS fixture
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 16:39:27 +02:00
Jonas Bark
20ea804198 Reapply "refactor(emulation): promote fake BLE harness from test/ to lib/bluetooth/emulation"
This reverts commit 0346594c2e.
2026-07-02 09:14:48 +02:00
Jonas Bark
0346594c2e Revert "refactor(emulation): promote fake BLE harness from test/ to lib/bluetooth/emulation"
This reverts commit 45e987ef97.
2026-07-02 09:06:53 +02:00
Jonas Bark
45e987ef97 refactor(emulation): promote fake BLE harness from test/ to lib/bluetooth/emulation 2026-07-02 09:05:06 +02:00