~aleteoryx/muditaos

ref: 950cf78aa9fe3f30d25d5048f0ec46bf5fe2eac0 muditaos/test/phone_gpio_test.py -rw-r--r-- 472 bytes
950cf78a — Lukasz Mastalerz [CP-1825] Update while on onboarding screen 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

from harness.uart import conn, log

# conn.gsm("AT+QSIMDET=?")
# conn.read(1)
# conn.sleep(3)
# conn.gsm("AT+QSIMSTAT=?")
# conn.read(1)
# conn.sleep(3)

# disable and check SIM
conn.gpio({"num": 1, "state": 1})
conn.sleep(1)
# right now qsim is on high trigger (...)
conn.gpio({"num": 1, "state": 0})
conn.sleep(1)