From 1966c6d908bcf6ab1830defcd8ce1f51442f620d Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 23 Jun 2021 12:40:21 +0200 Subject: [PATCH] tici: toggle wwan when stuck registered old-commit-hash: 38380612d5372b8e4949a50d3c7db9da840eea32 --- selfdrive/thermald/thermald.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 87379e564d..0a23958203 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -245,6 +245,10 @@ def thermald_thread(): if registered_count > 10: cloudlog.warning(f"Modem stuck in registered state {network_info}") + os.system("nmcli radio wwan off") + os.system("nmcli radio wwan on") + registered_count = 0 + except Exception: cloudlog.exception("Error getting network status")