Skip to content

Various fixes and improvements - #3

Open
JuliDi wants to merge 16 commits into
mainfrom
julian/various-fixes
Open

JuliDi wants to merge 16 commits into
mainfrom
julian/various-fixes

Conversation

@JuliDi

@JuliDi JuliDi commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Cleanup and fixes across protocol, firmware and PC app.

Protocol

  • Every frame starts with a protocol version header. Frames from another version are reported, not decoded.
  • Golden-bytes tests pin the wire format.
  • Removed legacy protocol v1 (PcToRx, RxToPc) and the unused DeviceEvent::HomeComplete.
    This shifts DeviceEvent discriminants without a version bump, so reflash all boards.

Firmware

  • Updated to current esp-rs crates.
  • TX acks every command.
  • RX, TX and turntable detect a lost bridge within one beacon interval (about 16 s instead of up to 25 s).
  • OTA: activate the slot that was actually written. Works from empty or corrupt otadata.
  • cargo run uses our partition table. The IDF default wrote the app over otadata.
  • Removed the unused SERVO42C backend.

PC app

  • Sidebar lists boards with another protocol version.
  • Renamed rx-sim to bridge-sim.
  • Edition 2024, clippy fixes.

Tooling and docs

  • CI for protocol, firmware and PC app.
  • README and docs/architecture-v2.md updated.

Testing

  • Protocol and PC tests pass (cargo test --all-features). Firmware clippy passes for all roles and backends.
  • Frontend lint, check and build pass.
  • Hardware: sweeps work after reflashing all boards.
  • Not yet tested on hardware: the OTA fix and the faster bridge-loss detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant