pull/35324/head
Trey Moen 3 months ago
parent 3574c275ee
commit bda83a4ba7
  1. 4
      system/hardware/esim.py

@ -1,6 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import argparse import argparse
import subprocess
import time import time
from openpilot.system.hardware import HARDWARE from openpilot.system.hardware import HARDWARE
@ -11,7 +12,8 @@ def reboot_modem_and_wait():
to ensure the modem is ready to receive commands to ensure the modem is ready to receive commands
""" """
HARDWARE.reboot_modem() HARDWARE.reboot_modem()
time.sleep(1) while subprocess.run(['mmcli', '-m', 'any', '--3gpp-set-initial-eps-bearer-settings="apn="']).returncode != 0:
time.sleep(.1)
if __name__ == '__main__': if __name__ == '__main__':
parser = argparse.ArgumentParser(prog='esim.py', description='manage eSIM profiles on your comma device', epilog='comma.ai') parser = argparse.ArgumentParser(prog='esim.py', description='manage eSIM profiles on your comma device', epilog='comma.ai')

Loading…
Cancel
Save