Files
MuditaOS/test/phone_unlock.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

20 lines
360 B
Python

#!/bin/python3
# unlock Desktop
from harness.common import Serial
import logging
logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG)
log = logging.getLogger(__name__)
conn = Serial()
# write pin
conn.key(ord('\n'))
conn.key(ord('#'))
conn.key(3)
conn.key(3)
conn.key(3)
conn.key(3)
conn.key(ord('\n'))
# enter menu
conn.key(ord('\n'))