mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-03 20:57:19 -04:00
* added GSM AT commands on 'Commands' channel * refactor (for better console/script) handling * docs update * GSM request asynch send back on uart to requester
20 lines
360 B
Python
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'))
|