feat(F-038,F-039): bell and clock test fire commands
relay.test_bell — fire bell N using configured output + duration, non-blocking relay.test_batch — fire a list of bells simultaneously (single melody step) clock.test_c1 — fire C1 (ODD) clock output using pulse_duration clock.test_c2 — fire C2 (EVEN) clock output using pulse_duration All four bypass bellsEnabled guard intentionally — test commands always fire. ClockHandler now accepts an optional OutputManager* for the test commands. CommunicationRouter passes _outputManager to ClockHandler. Feature catalog updated: F-038 and F-039 added. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,8 @@ Every feature — user-facing or significant internal mechanism — is listed he
|
||||
| F-035 | System aggregate commands (`system.get_config`, `system.get_all`, `system.get_telemetry`) | v2.1.0 | Stable |
|
||||
| F-036 | Per-subsystem config getters (`log.get_config`, `mqtt.get_config`, `bells.get_config`) | v2.1.0 | Stable |
|
||||
| F-037 | Network status extended (SSID + MAC in `network.status`) | v2.1.0 | Stable |
|
||||
| F-038 | Bell test fire commands (`relay.test_bell` / `relay.test_batch`) | v2.1.0 | Stable |
|
||||
| F-039 | Clock output test fire commands (`clock.test_c1` / `clock.test_c2`) | v2.1.0 | Stable |
|
||||
|
||||
---
|
||||
|
||||
@@ -492,3 +494,35 @@ Subsystem: `src/Communication/Handlers/LoggingHandler/`, `src/Communication/Hand
|
||||
- `hostname`: device hostname from `NetworkConfig`
|
||||
|
||||
Subsystem: `src/Communication/Handlers/NetworkHandler/NetworkHandler.cpp`
|
||||
|
||||
---
|
||||
|
||||
### F-038 — Bell test fire commands (`relay.test_bell` / `relay.test_batch`)
|
||||
|
||||
Two non-blocking test commands for firing bells on demand, bypassing the `bellsEnabled` guard (manual tests always work regardless of the master switch):
|
||||
|
||||
| Command | Behaviour |
|
||||
|---|---|
|
||||
| `relay.test_bell` | Fire bell channel N using its configured output and duration. Non-blocking — OutputManager timer handles the shutoff. Can be sent in rapid succession like piano keys. |
|
||||
| `relay.test_batch` | Fire a list of bell channels simultaneously (like a single melody step). Each bell fires for its own configured duration. |
|
||||
|
||||
Both commands read output and duration from `ConfigManager` (same values as real playback). Returns the resolved output and duration so the caller can confirm what was fired.
|
||||
|
||||
Subsystem: `src/Communication/Handlers/RelayHandler/RelayHandler.cpp`
|
||||
|
||||
---
|
||||
|
||||
### F-039 — Clock output test fire commands (`clock.test_c1` / `clock.test_c2`)
|
||||
|
||||
Two test commands for verifying clock relay wiring without waiting for the next scheduled clock strike:
|
||||
|
||||
| Command | Behaviour |
|
||||
|---|---|
|
||||
| `clock.test_c1` | Fire the C1 (ODD) clock output immediately for `pulse_duration` ms |
|
||||
| `clock.test_c2` | Fire the C2 (EVEN) clock output immediately for `pulse_duration` ms |
|
||||
|
||||
Both use `OutputManager::fireClockOutput()` which resolves the physical pin from `ClockConfig`. Returns the output name and actual duration used.
|
||||
|
||||
`ClockHandler` constructor now accepts an optional `OutputManager*` (defaults to `nullptr`); the router passes `_outputManager` so the test commands are live when the output manager is registered.
|
||||
|
||||
Subsystem: `src/Communication/Handlers/ClockHandler/ClockHandler.cpp`
|
||||
|
||||
Reference in New Issue
Block a user