From fc7643f0c2d46bb2d26e0fd7b14cdc895182cf02 Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Tue, 20 May 2025 21:05:23 -0700 Subject: [PATCH] reconfigure conn --- system/hardware/tici/esim.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/hardware/tici/esim.py b/system/hardware/tici/esim.py index b517e9bf89..6ff5fc1420 100755 --- a/system/hardware/tici/esim.py +++ b/system/hardware/tici/esim.py @@ -7,6 +7,7 @@ import shutil import subprocess import time from dataclasses import dataclass +from openpilot.system.hardware.tici.hardware import Tici @dataclass class Profile: @@ -159,8 +160,12 @@ if __name__ == "__main__": print(f'- {p.iccid} (nickname: {p.nickname or "no nickname"}) (provider: {p.provider}) - {"enabled" if p.enabled else "disabled"}') if args.reboot: + print('restarting modem') subprocess.check_call("sudo systemctl stop ModemManager", shell=True) subprocess.check_call("/usr/comma/lte/lte.sh stop_blocking", shell=True) subprocess.check_call("/usr/comma/lte/lte.sh start", shell=True) while not os.path.exists('/dev/ttyUSB2'): time.sleep(1) + print('reconfiguring connection') + tici = Tici() + tici.configure_modem()