Hey team,
We bought some GPS RTK Kits(https://www.sparkfun.com/products/18292) last July and they work very well. However we recently purchased another one RTK board(https://www.sparkfun.com/products/16481) and it seems not providing GPS location data.
Here is how I tested it, basically I have a Raspberry PI 4 Model B connects to the ZED-F9P board then connects to an antenna.
If using the ZED-F9P we purchased last year, it works fine, gives me the location data, however if using the recently purchased one, the location data is empty.
Below is the code snippet:
import sys
sys.path.insert(0, ‘./lib’)
import time
import serial
import pynmea2
ser = serial.Serial(
port=‘/dev/ttyACM0’,
baudrate=9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout=1)
while 1:
x=ser.readline()
print(‘start’)
print(x)
print(‘end’)
time.sleep(5)
Below is the working RTK output:
carlton@raspberrypi:~/gps $ python test.py
start
b’$GNRMC,015427.00,A,3343.15216,S,15057.70243,E,0.051,190723,A,V*04\r\n’
end
start
b’$GNVTG,T,M,0.051,N,0.094,K,A*34\r\n’
end
start
b’$GNGGA,015427.00,3343.15216,S,15057.70243,E,1,12,0.72,95.3,M,19.7,M,*6E\r\n’
end
start
b’$GNGSA,A,3,05,14,27,04,20,09,30,1.17,0.72,0.92,1*01\r\n’
end
start
b’$GNGSA,A,3,1.17,0.72,0.92,2*0B\r\n’
end
start
b’$GNGSA,A,3,05,30,03,02,08,1.17,0.72,0.92,3*05\r\n’
end
start
b’$GNGSA,A,3,24,21,09,33,16,14,1.17,0.72,0.92,4*03\r\n’
end
start
b’$GPGSV,2,1,07,04,16,035,15,05,13,237,21,09,46,025,21,14,51,295,29,1*68\r\n’
end
start
b’$GPGSV,2,2,07,20,16,267,28,27,11,141,13,30,59,209,27,1*5D\r\n’
end
start
b’$GPGSV,1,1,01,04,16,035,14,5*51\r\n’
end
start
b’$GPGSV,1,1,04,05,13,237,17,14,51,295,18,27,11,141,16,30,59,209,19,6*6C\r\n’
end
start
b’$GPGSV,2,1,06,02,01,066,07,61,140,08,37,116,13,07,222,0*6B\r\n’
end
start
b’$GPGSV,2,2,06,13,07,222,17,05,351,0*60\r\n’
end
start
b’$GLGSV,3,1,11,65,15,005,66,60,323,67,43,226,68,00,203,0*72\r\n’
end
start
b’$GLGSV,3,2,11,68,00,203,75,03,122,76,46,162,77,47,240,0*74\r\n’
end
start
b’$GLGSV,3,3,11,77,47,240,78,04,282,85,14,133,0*46\r\n’
end
Then here is the non-working output:
carlton@raspberrypi:~/gps $ python test.py
start
b’$GNRMC,V,N,V*37\r\n’
end
start
b’$GNVTG,N*2E\r\n’
end
start
b’$GNGGA,0,00,99.99,*56\r\n’
end
start
b’$GNGSA,A,1,99.99,99.99,99.99,1*33\r\n’
end
start
b’$GNGSA,A,1,99.99,99.99,99.99,2*30\r\n’
end
start
b’$GNGSA,A,1,99.99,99.99,99.99,3*31\r\n’
end
start
b’$GNGSA,A,1,99.99,99.99,99.99,4*36\r\n’
end
start
b’$GPGSV,1,1,00,0*65\r\n’
end
start
b’$GLGSV,1,1,00,0*79\r\n’
end
start
b’$GAGSV,1,1,00,0*74\r\n’
end
start
b’$GBGSV,1,1,00,0*77\r\n’
end
start
b’$GNGLL,V,N*7A\r\n’
end
start
b’$GNRMC,V,N,V*37\r\n’
end
start
b’$GNVTG,N*2E\r\n’
end
start
b’$GNGGA,0,00,99.99,*56\r\n’
end
start
b’$GNGSA,A,1,99.99,99.99,99.99,1*33\r\n’
end
You can check the attachments for reference, thanks for the help.
Success: https://carlton-public.s3.ap-southeast- … ccess.jpeg
Failure:https://carlton-public.s3.ap-southeast- … ilure.jpeg