From bf4a04d6f4fd5d52321a6a53e7b3579d0c3d15bf Mon Sep 17 00:00:00 2001 From: bonamin Date: Tue, 29 Sep 2026 23:54:12 +0300 Subject: [PATCH] feat(variants): disable RF remote on Vesper Standard builds (F-069) No fielded Vesper Standard unit has an RF receiver, but vesper-std.hpp set HAS_RF 1, so every build ran the RF task on GPIO 22 and exposed rf.* commands that could never do anything. Set HAS_RF 0 (RF_RX_PIN kept for a future RF revision). rf.* now return "Unknown command" on this build; agnus keeps RF. Docs updated to say rf.* is agnus-only. Co-Authored-By: Claude Opus 5.5 --- docs/features/feature-catalog.md | 18 ++++++++++++++++++ docs/reference/api-reference.md | 6 +++--- variants/vesper-std.hpp | 4 ++-- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/docs/features/feature-catalog.md b/docs/features/feature-catalog.md index c974e6e..f37a8a5 100644 --- a/docs/features/feature-catalog.md +++ b/docs/features/feature-catalog.md @@ -81,6 +81,7 @@ Check `git log -- src/Version.hpp` for the real bump history before tagging a ne | F-066 | Fix: stale retained `status/playback` — republished with the Player's real state on every MQTT (re)connect | v2.3.0 | Stable | | F-067 | Specific `playback.play` / `playback.stop` ACK messages (busy, invalid params, not found, load failed, bells disabled, overload…) instead of a generic "Playback command failed"; `url` no longer sticky | v2.3.0 | Stable | | F-068 | `loading` playback state while a melody downloads (MQTT `status/playback`), cancellable by `playback.stop`; `playback_failed` event on `control/reports` when an ACKed play never starts | v2.3.0 | Stable | +| F-069 | RF remote disabled on Vesper Standard builds (`HAS_RF=0`) — no fielded unit has a receiver; `rf.*` now only on agnus | v2.3.0 | Stable | --- @@ -1340,3 +1341,20 @@ one download can be pending. Verified: `pio run -e vesper-std-v1`, `-e agnus-v1` and `-e bespoke-rs485-v1` build clean. Subsystem: `src/Player/Player.hpp`, `src/Player/Player.cpp`, `src/Communication/CommunicationRouter/CommunicationRouter.hpp`, `src/Communication/CommunicationRouter/CommunicationRouter.cpp`, `src/Communication/Handlers/SystemHandler/SystemHandler.cpp`, `src/Communication/CommandBus/LegacyResponseAdapter.cpp` + +--- + +### F-069 — RF remote disabled on Vesper Standard + +`variants/vesper-std.hpp` had `HAS_RF 1`, so every Vesper Standard build started the RF task on +GPIO 22 and registered `rf.set_slot` / `rf.clear_slot` / `rf.get_slots` / `rf.enable` — but no Vesper +Standard unit in the field has an RF receiver fitted (confirmed with the owner, 2026-09-29). Nothing +could ever trigger, so the code only cost an idle task and flash. + +Now `HAS_RF 0` for `vesper-std-v1` (same as `bespoke-rs485-v1`); `RF_RX_PIN` is left defined for a future +RF-equipped revision. Effect: no RF task, and `rf.*` commands return `Unknown command: rf.…` on this +build. Agnus keeps RF. `status/playback` `source: "rf"` can therefore only appear on agnus. + +Verified: `pio run -e vesper-std-v1` builds clean. + +Subsystem: `variants/vesper-std.hpp` diff --git a/docs/reference/api-reference.md b/docs/reference/api-reference.md index 2a9a2e5..43e0346 100644 --- a/docs/reference/api-reference.md +++ b/docs/reference/api-reference.md @@ -65,7 +65,7 @@ Handlers are only registered when their dependencies exist on the build: |---|---|---| | `SystemHandler` (`ping`, `identify`, `system.*`) | RTC-less builds (`HAS_RTC=0`: agnus, agnus-mini) | `Unknown command` (HTTP `GET /api/ping` still works) | | `ClockHandler` (`clock.*`) | RTC-less builds | `Unknown command` | -| `RFRemoteHandler` (`rf.*`) | builds without RF (`HAS_RF=0`: bespoke-rs485) | `Unknown command` | +| `RFRemoteHandler` (`rf.*`) | builds without RF (`HAS_RF=0`: vesper-std, bespoke-rs485 — only agnus has it) | `Unknown command` | | `FileHandler` (`files.*`) | builds with no FileManager | `Unknown command` | --- @@ -731,7 +731,7 @@ Returns `data: { "deleted": 4 }`. Error: `SD card not available on this device`. --- -## RF Remote Namespace — `RFRemoteHandler` (HAS_RF builds only) +## RF Remote Namespace — `RFRemoteHandler` (HAS_RF builds only — agnus) Up to 16 slots, each binding one 433 MHz code to a playback action. Slots are blank by default. Stored in NVS namespace `rf`. @@ -957,4 +957,4 @@ When `v` is `1` (or omitted on MQTT/WebSocket/UART), `LegacyAdapter` rewrites `c | `mqtt` | `enable`, `disable`, `get_config`, `get_topics`, `set_topics` | | `telemetry` | `get_strikes`, `reset_strikes`, `get_loads`, `set_max_loads`, `set_guard_enabled`, `get_metrics`, `reset_metrics`, `get_boot_history`, `get_diagnostics`, `reset_boot_data` | | `bells` | `enable`, `disable`, `get_config` | -| `rf` | `set_slot`, `clear_slot`, `get_slots`, `enable` *(HAS_RF builds only)* | +| `rf` | `set_slot`, `clear_slot`, `get_slots`, `enable` *(HAS_RF builds only — agnus)* | diff --git a/variants/vesper-std.hpp b/variants/vesper-std.hpp index 010ebf5..ad2f5e8 100644 --- a/variants/vesper-std.hpp +++ b/variants/vesper-std.hpp @@ -26,8 +26,8 @@ // ── Connectivity ───────────────────────────────────────────────────────────── #define HAS_ETHERNET 0 // Ethernet removed in fw v138 -#define HAS_RF 1 // RF remote receiver present (GPIO RF_RX_PIN) -#define RF_RX_PIN 22 // GPIO pin for RF receiver DATA line +#define HAS_RF 0 // No RF receiver on any fielded Vesper Standard unit +#define RF_RX_PIN 22 // Unused while HAS_RF=0 — pin the receiver would use if one is ever fitted #define HAS_LCD 0 // No onboard LCD // ── Output hardware ──────────────────────────────────────────────────────────