Fix LR2021 TempRadio with incompatible extra-SF detectors

Temporarily disable incompatible cached side detectors while applying a temporary primary tuple, preserving their saved configuration for normal restoration. Use primary-only CAD while those detectors are suspended. Keep compatible temporary detectors and real hardware errors intact.

Report pending TempRadio starts instead of off, preserve live-tuple status during replacements and future schedules, and include the two-second delay in the accepted reply. Share primary validation to retain STM32 Mini flash capacity without dropping features.

Validated production CLI status, scheduler and persistence cases; LR2021 detector suspension, restoration, CAD and hardware-error paths; reply handoff, room/sensor recovery, Morse and OTA automation regressions. W12 repeater, room-server and sensor builds pass. Canonical STM32 Mini Repeater passes flash and runtime RAM admission with 436 bytes of flash remaining. Physical W12 RF testing remains unverified.
This commit is contained in:
mikecarper committed 2026-10-26 00:58:57 -07:00
1 parent 6ad3e349ac
commit a87b2a33a3
12 files changed
+244 -12

No files matched your search

+13 -3
View File
@@ -1928,6 +1928,8 @@ settings use a safe effective power without replacing the saved preference.
#### Change the radio parameters for a set duration
**Usage:**
- `tempradio <freq>,<bw>,<sf>,<cr>,<timeout_mins>`
- `set tempradio <freq>,<bw>,<sf>,<cr>,<timeout_mins>` (alias)
- `get tempradio`
- `normalradio`
**Parameters:**
@@ -1939,6 +1941,14 @@ settings use a safe effective power without replacing the saved preference.
**Notes:**
- `tempradio` is not saved to preferences and clears on reboot.
- Application starts after two seconds and waits for the radio/reply handoff.
`get tempradio` shows the live temporary RF tuple when active, `pending` while
waiting to start, and `off` when neither applies. A pending replacement keeps
showing the old live tuple until the switch. `get tempradioat all` lists
primary scheduled entries.
- On LR2021 boards such as W12, extra-SF receive detectors that conflict with
the temporary SF/bandwidth pause for that session. Their saved settings return
with the normal radio tuple. Compatible detectors keep working.
- On repeaters, remote `tempradio` and `normalradio` wait for their exact reply
copies to finish, with at least one transmitted. This also covers the `set`
alias, case-insensitive verbs, and client correlation prefixes. Failed replies
@@ -1950,9 +1960,9 @@ settings use a safe effective power without replacing the saved preference.
minutes) and the watchdog policy for that session. For example:
```text
OK - temp params for 1440 mins (1d0h0m); rx.watchdog=12hours
OK - temp params for 3075 mins (2d3h15m); rx.watchdog=12hours
OK - temp params for 180 mins (0d3h0m); rx.watchdog=off (temp<12hours)
OK - temp params for 1440 mins (1d0h0m); applying in 2s; rx.watchdog=12hours
OK - temp params for 3075 mins (2d3h15m); applying in 2s; rx.watchdog=12hours
OK - temp params for 180 mins (0d3h0m); applying in 2s; rx.watchdog=off (temp<12hours)
```
Repeater timing overrides apply only while a temporary window is running:
+8
View File
@@ -187,6 +187,14 @@ Temporary periods and schedules live in RAM and disappear on reboot. Waiting
for a reply does not extend a temporary lease. Timer expiry also uses monotonic
time, so setting the clock backwards cannot extend a temporary session.
On infrastructure roles, `get tempradio` shows the live temporary RF tuple,
or `pending` when a session is waiting to start and none is running. A queued
replacement or future schedule does not hide the current live tuple. The
accepted command includes the initial two-second application delay.
On LR2021 boards such as W12, saved extra-SF detectors pause when incompatible
with the temporary tuple and return when normal radio settings are restored.
Compatible extra-SF detectors remain active.
## Repeater, room-server, and sensor replies
These roles default to **`tx.reply both`** for CLI replies to authenticated