From 7d12c9261abb9a59dd82c2e8bae85a3de56c3c45 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 8 May 2022 19:18:03 -0700 Subject: [PATCH] tici modem restart script old-commit-hash: ce0cc1f228edc85e8a9153784dfb5475b8376fb3 --- selfdrive/hardware/tici/restart_modem.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 selfdrive/hardware/tici/restart_modem.sh diff --git a/selfdrive/hardware/tici/restart_modem.sh b/selfdrive/hardware/tici/restart_modem.sh new file mode 100755 index 0000000000..14cace6ad0 --- /dev/null +++ b/selfdrive/hardware/tici/restart_modem.sh @@ -0,0 +1,13 @@ +#!/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 connection.autoconnect-retries 20 + +# restart modem +sudo systemctl stop ModemManager +/usr/comma/lte/lte.sh stop_blocking +sudo systemctl restart lte + +#sudo systemctl restart ModemManager +sudo ModemManager --debug