Explorar el Código

Adds a script for resetting the lte gps.

master
Lukas Prause hace 2 años
padre
commit
91bae23ab1
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. +6
    -2
      reset_modem_gps.py

+ 6
- 2
reset_modem_gps.py Ver fichero

@@ -23,8 +23,12 @@ if __name__ == "__main__":
baudrate=115200,
)

while ser.is_open:
if ser.is_open:
ser.write(b'At!Reset')
sleep(0.5)
ser.write(b'AT!ENTERCND="A710"')
sleep(0.5)
for cmd in command_order:
ser.write(cmd)
sleep(0.5)
print("{}\t->\t{}".format(cmd, ser.read(ser.inWaiting()).decode("utf-8")))
print(cmd)

Cargando…
Cancelar
Guardar