Python: Inspecting ActiveGPS
1.1.2025
Python: Inspecting ActiveGPS
Python + PySerial: Inspecting AD-Teknik ActiveGPS
# show eeprom
import serial
ser = serial.Serial('COM6', 9600, timeout=4)
print("&A")
ser.write(b'&A\r\n')
b = ser.read(256)
print(b)
print("&B")
ser.write(b'&B\r\n')
b = ser.read(256)
print(b)
print("&J")
ser.write(b'&J\r\n')
b = ser.read(280)
print(b)
print("&D")
ser.write(b'&D\r\n')
b = ser.read(16)
print(b)
ser.close()
# show flash
import serial
ser = serial.Serial('COM6', 9600, timeout=4)
print("&A")
ser.write(b'&A\r\n')
b = ser.read(16)
print(b)
print("&B")
ser.write(b'&B\r\n')
b = ser.read(256)
print(b)
print("&F")
ser.write(b'&F\r\n')
b = ser.read(3072)
print(b)
ser.write(b'&F\r\n')
b = ser.read(3072)
print(b)
ser.write(b'&F\r\n')
b = ser.read(3072)
print(b)
ser.write(b'&F\r\n')
b = ser.read(3072)
print(b)
ser.write(b'&F\r\n')
b = ser.read(3072)
print(b)
print("&D")
ser.write(b'&D\r\n')
b = ser.read(8)
print(b)
ser.close()
Comments
Post a Comment