parent
4f1be4fe1b
commit
becbb56002
|
|
@ -5,6 +5,7 @@ import sys
|
|||
import time
|
||||
import os
|
||||
import configparser
|
||||
import gpiod
|
||||
config_dump = __import__("modem-config-dump")
|
||||
|
||||
SERIAL_DEV = '/dev/ttyACM0'
|
||||
|
|
@ -122,6 +123,10 @@ def apn_setup(ser):
|
|||
execute_and_check(ser, b'AT+CFUN=1\r')
|
||||
|
||||
def main():
|
||||
line = gpiod.find_line('GSM_SUP_EN')
|
||||
line.request(consumer='ublox-config', type=gpiod.LINE_REQ_DIR_OUT)
|
||||
line.set_value(1)
|
||||
|
||||
rst = False
|
||||
# Wait on device
|
||||
while not os.path.exists(SERIAL_DEV):
|
||||
|
|
|
|||
Loading…
Reference in New Issue