andrew
Hello Photonicat team and community!
I've recently been investigating an issue where the WWAN (LTE/5G) interface and associated tunnels (OpenVPN/WireGuard) drop unexpectedly. I've found the root cause in the pcat-manager daemon and submitted a Pull Request with a fix.
The Problem:
-
Transient WAN Flaps: OpenWRT's
eth-powersavescript (or a standard DHCP renewal) causes a momentary flap on the wiredwaninterface. Themwanthread reacts instantly and tears down the WWAN interface without any hysteresis. - Stale Configuration: Disabling "Auto Stop WWAN if Wired" in the Web UI doesn't apply at runtime because the daemon caches the old value until a restart.
The Solution:
I have submitted a PR here: github
The fix introduces two key changes:
-
Debounce Logic (
src/main.c): Added a 3-strike debounce mechanism (approx. 9 seconds). The daemon now requires the WAN interface to remain in a changed state for multiple polling cycles before transitioning the WWAN state. This successfully filters out transient hardware/network flaps. -
Runtime Sync (
src/controller.c): Added the missingpcat_main_network_modem_iface_auto_stop_set()call so the daemon immediately respects the Web UI configuration.
⚠️ Important Note on Public Repository Sync
While compiling and testing this fix locally, I noticed a significant issue with the public repository: The public master branch is severely outdated compared to the production firmware.
When running the daemon compiled from the latest public commit (June 8, 2026) alongside the current Web UI, the UI breaks and throws several errors:
-
Not supported by this MCU firmware (Requires MCU firmware RA2E1260715004 or newer)in the Battery section. - Missing battery center-tap sensing data.
- Errors regarding missing endpoints like
soc-log-getand modem logs.
The hardware (MCU) is up-to-date, but the public C-backend is missing all the recent features that the new Web UI expects. It seems the backend code was updated for the latest OTA releases but never pushed to the Open Source repository.
Could the maintainers please sync the public pcat-manager repository with the internal production branch?
This would allow the community to properly compile, test, and contribute patches (like the WWAN debounce fix) without breaking the Web UI diagnostics.
Thanks for your hard work on this great device! Looking forward to your feedback on the PR.