tici: enable SIM hot swap (#31680)

* tici: enable SIM hot swap

* only tizi

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a38a5e8bb4
This commit is contained in:
Adeeb Shihadeh 2024-03-01 17:24:22 -08:00 committed by GitHub
parent e179c61a4b
commit c6159f99cd
1 changed files with 6 additions and 0 deletions

View File

@ -478,6 +478,12 @@ class Tici(HardwareBase):
'AT+QNVFW="/nv/item_files/ims/IMS_enable",00',
'AT+QNVFW="/nv/item_files/modem/mmode/ue_usage_setting",01',
]
if self.get_device_type() == "tizi":
cmds += [
# SIM hot swap
'AT+QSIMDET=1,0',
'AT+QSIMSTAT=1',
]
# clear out old blue prime initial APN
os.system('mmcli -m any --3gpp-set-initial-eps-bearer-settings="apn="')