瀏覽代碼

Adds a script for resetting the lte gps.

master
Lukas Prause 2 年之前
父節點
當前提交
91bae23ab1
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      reset_modem_gps.py

+ 6
- 2
reset_modem_gps.py 查看文件

@@ -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)

Loading…
取消
儲存