Files
MuditaOS/test/phone_sim_detection_on.py
pholat 2b275d7951 [EGD-2571] added GSM command sending & small refactor
* added GSM AT commands on 'Commands' channel
* refactor (for better console/script) handling
* docs update
* GSM request asynch send back on uart to requester
2020-02-11 08:41:26 +00:00

11 lines
271 B
Python

from harness.uart import conn, log
# it would be much better to wait for ok in script, but resend doesn't work now...
# due to Service Cellular arch
conn.gsm("at+qsimdet=1,0\r")
conn.sleep(10)
conn.gsm("AT+QSIMSTAT=1\r")
conn.sleep(10)
conn.gsm("at&w\r")
conn.sleep(10)