From 5ac22d80de5c37e059768ad210bee91cc73e025c Mon Sep 17 00:00:00 2001 From: Comma Device Date: Mon, 9 May 2022 14:06:39 -0700 Subject: [PATCH] faster modem restart --- selfdrive/hardware/tici/restart_modem.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/selfdrive/hardware/tici/restart_modem.sh b/selfdrive/hardware/tici/restart_modem.sh index 14cace6ad0..2fa5e60619 100755 --- a/selfdrive/hardware/tici/restart_modem.sh +++ b/selfdrive/hardware/tici/restart_modem.sh @@ -1,13 +1,18 @@ #!/usr/bin/bash -nmcli connection modify --temporary lte gsm.auto-config yes nmcli connection modify --temporary lte gsm.home-only yes +nmcli connection modify --temporary lte gsm.auto-config yes nmcli connection modify --temporary lte connection.autoconnect-retries 20 -# restart modem sudo systemctl stop ModemManager -/usr/comma/lte/lte.sh stop_blocking -sudo systemctl restart lte + +# full restart +#/usr/comma/lte/lte.sh stop_blocking +#sudo systemctl restart lte + +# quick shutdown +/usr/comma/lte/lte.sh stop +nmcli con down lte #sudo systemctl restart ModemManager sudo ModemManager --debug