feat(esim): hotswap (#36096)

feat(esim): device hw reboot modem
honda-testing^2
Trey Moen 4 days ago committed by GitHub
parent 67fd6c80dd
commit 355499a8de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      system/hardware/tici/hardware.py

@ -498,6 +498,14 @@ class Tici(HardwareBase):
os.system(f"sudo cp {tf.name} {dest}")
os.system(f"sudo nmcli con load {dest}")
def reboot_modem(self):
modem = self.get_modem()
for state in (0, 1):
try:
modem.Command(f'AT+CFUN={state}', math.ceil(TIMEOUT), dbus_interface=MM_MODEM, timeout=TIMEOUT)
except Exception:
pass
def get_networks(self):
r = {}

Loading…
Cancel
Save