Repository navigation
Repeater auto reboot - #3742
Open
peter-aandahl wants to merge 3 commits into
Open
Repeater auto reboot#3742peter-aandahl wants to merge 3 commits into
peter-aandahl wants to merge 3 commits into
Conversation
…eset, and ESP32 hardware watchdog
|
please also for NRF boards |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves long-term stability for unattended ESP32 repeaters by adding an optional periodic auto-reboot setting, a hardware watchdog timer, and a clean 5-second peripheral/radio power-down before
esp_restart().Changes
auto_rebootCLI setting (src/helpers/CommonCLI.h,src/helpers/CommonCLI.cpp,examples/simple_repeater/main.cpp):set auto_reboot <hours>(0–8760) andget auto_rebootcommands toCommonCLI, persisted inNodePrefs.0(off), preserving existing behavior unless explicitly enabled.examples/simple_repeater/main.cppusing 64-bit millisecond accumulation (immune to the 49.7-daymillis()rollover).ESP32Board::reboot()(src/helpers/ESP32Board.h,src/helpers/ESP32Board.cpp,variants/heltec_v4/HeltecV4Board.cpp):P_LORA_RESETlow, disablesPIN_VEXT_EN(and powers down the Heltec V4 GC1109 FEM PA / peripheral rails viaperiph_power), and waits 5 seconds (feeding the WDT) before callingesp_restart()so the SX1262 and external peripherals cold-reset cleanly.src/helpers/ESP32Board.h):esp_task_wdtinESP32Board::begin()and feeds it inESP32Board::loop()to recover automatically if the main loop ever hangs.merge-bin.pyfixes (merge-bin.py):projenvwhen running-t nobuild -t upload.esptool.py merge_binso workspace paths containing spaces do not fail.