add test data
This commit is contained in:
parent
5d0e923311
commit
c63180d26c
2 changed files with 10290 additions and 0 deletions
10269
test/cumberland_01.nmea
Normal file
10269
test/cumberland_01.nmea
Normal file
File diff suppressed because it is too large
Load diff
21
test/send_nmea.py
Executable file
21
test/send_nmea.py
Executable 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()
|
Loading…
Reference in a new issue