tici: reduce AT commands on startup

pull/34178/head
Adeeb Shihadeh 6 months ago
parent 2e9540d2b1
commit ed222d04c9
  1. 17
      system/hardware/tici/hardware.py

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

Loading…
Cancel
Save