add test data

This commit is contained in:
Peter Buchegger 2021-03-07 23:09:00 +01:00
parent 5d0e923311
commit c63180d26c
2 changed files with 10290 additions and 0 deletions

10269
test/cumberland_01.nmea Normal file

File diff suppressed because it is too large Load diff

21
test/send_nmea.py Executable file
View file

@ -0,0 +1,21 @@
#!/bin/python
import time
import sys
import serial
f = open(sys.argv[1], "r")
ser = serial.Serial(sys.argv[2], 115200, timeout=0)
sleep_count = 0
for x in f:
s = ser.read(100)
if s:
print(s.decode(), end='')
sleep_count = sleep_count + 1
ser.write(x.encode())
if sleep_count > 2:
time.sleep(1)
sleep_count = 0
ser.close()
f.close()