Adds a script for resetting the lte gps.

This commit is contained in:
Lukas Prause
2023-01-10 13:21:38 +01:00
parent 0b63242bbd
commit 91bae23ab1

View File

@@ -23,8 +23,12 @@ if __name__ == "__main__":
baudrate=115200, 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: for cmd in command_order:
ser.write(cmd) ser.write(cmd)
sleep(0.5) sleep(0.5)
print("{}\t->\t{}".format(cmd, ser.read(ser.inWaiting()).decode("utf-8"))) print(cmd)