tici: reduce AT commands on startup

This commit is contained in:
Adeeb Shihadeh
2024-12-07 15:10:16 -08:00
parent 2e9540d2b1
commit ed222d04c9

View File

@@ -487,14 +487,16 @@ class Tici(HardwareBase):
'AT$QCNETDEVCTL=3,1',
]
else:
cmds += [
# SIM sleep disable
'AT$QCSIMSLEEP=0',
'AT$QCSIMCFG=SimPowerSave,0',
# this modem gets upset with too many AT commands
if sim_id is None or len(sim_id) == 0:
cmds += [
# SIM sleep disable
'AT$QCSIMSLEEP=0',
'AT$QCSIMCFG=SimPowerSave,0',
# ethernet config
'AT$QCPCFG=usbNet,1',
]
# ethernet config
'AT$QCPCFG=usbNet,1',
]
for cmd in cmds:
try:
@@ -593,3 +595,4 @@ if __name__ == "__main__":
t.configure_modem()
t.initialize_hardware()
t.set_power_save(False)
print(t.get_sim_info())