From 13b2c551c9669a01f49e678797e6ab3ae5486bec Mon Sep 17 00:00:00 2001 From: Comma Device Date: Wed, 25 May 2022 16:37:56 -0700 Subject: [PATCH] update modem restart script --- selfdrive/hardware/tici/restart_modem.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/selfdrive/hardware/tici/restart_modem.sh b/selfdrive/hardware/tici/restart_modem.sh index 2fa5e60619..26c04e4fba 100755 --- a/selfdrive/hardware/tici/restart_modem.sh +++ b/selfdrive/hardware/tici/restart_modem.sh @@ -1,18 +1,18 @@ #!/usr/bin/bash -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 +#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 +sudo nmcli connection reload sudo systemctl stop ModemManager - -# 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 +nmcli con down magenta-prime + +# power cycle modem +/usr/comma/lte/lte.sh stop_blocking +/usr/comma/lte/lte.sh start +sudo systemctl restart NetworkManager #sudo systemctl restart ModemManager sudo ModemManager --debug