habe mir einen GPS Logger gekauft von Navilock.
Hierzu lese ich die Daten aus und speichere dies in eine Datei. Und dann als nächster Schritt binde ich die Daten in google ein.
Aber mir fehlt ein Format
Das GPVTG.
Hier erstmal mein kleiner Code
Code: Alles auswählen
se = serial.Serial(port=5,
baudrate=38400,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
timeout=4,
xonxoff=False,
rtscts=False,
writeTimeout=1,
dsrdtr=False,
interCharTimeout=None)
a = int(time.strftime("%d%m%Y%H%M%S"))
protocol=open("C:\GPS\%s GPS.txt" %a, "w")
while se.isOpen():
line = se.readline()
print line
protocol.write(line)
Code: Alles auswählen
$GPGGA,101816.000,....,N,......,E,1,06,1.7,493.6,M,47.6,M,,0000*50
$GPGLL,....,N,......,E,101816.000,A,A*58
$GPGSA,A,3,05,08,10,02,07,13,,,,,,,2.4,1.7,1.6*3E
$GPRMC,101816.000,A,......,N,....,E,0.00,,310511,,,A*76
$GPGGA,101817.000,.....,N,.....,E,1,06,1.7,493.6,M,47.6,M,,0000*51
$GPGLL,......9,N,......,E,101817.000,A,A*59
$GPGSA,A,3,05,08,10,02,07,13,,,,,,,2.4,1.7,1.6*3E
$GPRMC,101817.000,A,......,N,......,E,0.00,,310511,,,A*77
gruß und Danke