-
Product: ZED-F9R on Sparkfun GPS-21305 I'd like to use the I started with the example from the README:
and made:
Where did I make the biggest blunder? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @Nilles3D I would STRONGLY recommend you take another look at the README and maybe some of the examples in the \examples folder, as your script is pretty wide of the mark. Some immediate observations...
At the most basic level, all you need is something like this - exactly as shown in the README: from serial import Serial
from pyubx2 import UBXReader
with Serial('/dev/serial0', 38400, timeout=3) as stream:
ubr = UBXReader(stream)
for raw_data, parsed_data in ubr:
print(parsed_data) This will parse all data output by the receiver. I suggest you start with this first, and then refer to the ZED-F9R Interface Manual for details on how to enable UBX messages via the UBX CFG-VALSET command. Or you could install the PyGPSClient GUI application, which has 'out of the box' facilities to help you do this. Hope this helps |
Beta Was this translation helpful? Give feedback.
-
FYI if you don't want to use a GUI, the pyubxutils and pygnssutils libraries offer a number of CLI tools which you might find useful. For example, the pyubxutils ubxsetrate tool can automatically enable a minimum cohort of UBX messages (NAV-PVT, NAV-SAT, NAV-DOP) e.g. python3 -m pip install --upgrade pyubxutils pygnssutils
ubxsetrate --port /dev/serial0 --baudrate 38400 --msgClass minubx --rate 1 Response:
|
Beta Was this translation helpful? Give feedback.
Hi @Nilles3D
I would STRONGLY recommend you take another look at the README and maybe some of the examples in the \examples folder, as your script is pretty wide of the mark. Some immediate observations...
timeout
of 1 second probably isn't going to cut it - try raising this to, say, 3 seconds.s…