Add persistent LoRa OTA speed control and harden timing

Add get/set ota.speed and OTA CLI aliases for factors from 0.05 to 3,
defaulting to the existing pace. Persist the setting independently of the
OTA workspace and apply it to OTA packet pacing, relays, discovery and
adverts while retaining the configured airtime budget.

Preserve physical proof/retry allowances, account for both participating
radio profiles, keep optional deadlines armed across millis rollover, and
exclude intentional pacing from observer stale-packet age. Keep local
verification at its normal rate and retain a valid saved speed if backup
recovery cannot finish. Add documentation and CI regression coverage.

Validation: 1,491 native tests and 26 CLI/integration tests passed. Built
ESP32 full repeater, ESP32 full Companion, nRF52 full Companion and STM32
USB Companion successfully, including their memory/size checks.
This commit is contained in:
mikecarper committed 2026-09-15 06:16:29 -07:00
1 parent a07f39c6dd
commit b2f2b5bf02
22 files changed
+1032 -36

No files matched your search

+7
View File
@@ -457,6 +457,13 @@ Monitor the transfer:
ota status
```
To adjust LoRa OTA pacing, use `get ota.speed` and `set ota.speed <0.05..3>` on
the source, destination, and OTA relays. `1` preserves the existing timing;
lower values slow OTA down, and higher values shorten adjustable delays.
This saved setting covers both profiles and OTA adverts as well as the transfer.
It does not change radio modulation or the configured airtime budget. See
[LoRa OTA speed](ota_user_guide.md#adjust-lora-ota-speed) for details.
For a powered bench update where restart-resume is not needed, `ota config checkpoint 0` on the destination
removes periodic progress writes. It is a smaller optimization than selecting the correct hop count and it
trades away persisted mid-download resume; restore the previous checkpoint cadence afterward.