racing-manager

Agent brief: Ragin-LundF/racing-manager integration

This is the handoff to the person or agent integrating the hardware into the existing application. It adds hardware support without replacing the working participant and race-management features.

Scope and limits

Implement the central Raspberry Pi hardware integration in the existing project. First inspect the repository’s architecture, framework, authentication, real-time channel, and data model. Reuse existing patterns; do not create a second web server or parallel state store.

The repository was not locally available when this document was created, so filenames and framework details are intentionally not prescribed. The binding device contract is PROTOCOL.md.

Functional scope

Order of work

  1. Identify existing domain models for races, lanes, results, and live events.
  2. Create a bounded hardware port; transport handlers must not contain race rules.
  3. Implement state transitions and persistence transactionally.
  4. Let API/UI consume central hardware state only.
  5. Add a simulator/fake ESP for local tests.

Security and quality rules

Acceptance

Automated tests cover registration, missing heartbeats, ACK/deduplication, invalid event order, one- and two-lane races, and reconnection. Document the actual integration entry point and configuration in the project documentation.


Navigation: ← ESP agent brief · Back to start · Deutsch

All topics: Project overview · Materials · Architecture · Wiring · Firmware · Protocol · Setup · Testing · ESP agent brief · Racing Manager integration