2

My teacher gave me an u-blox M8N GPS that he bought from Banggood, and he wants me to do 2/3 things:

  1. Change baud rate to 115200

  2. Change measure rate to 10 kHz

  3. Integrate GPS with gpsd

My doubt here is: I know how to change baud rate and measure rate in u-center (u-blox software) but only exists for Windows. From here what I need to know is:

I can change GPS configuration by sending hexadecimal data to GPS, like this:

Message structure from m8n documentation

I have the GPS module connected to UART pins in the Raspberry Pi.

  1. First problem

How can I do this in python? How can I "build" hexadecimal messages in Python and how can I send them to GPS module?

  1. Second Problem

How do I properly set up gpsd on a Raspberry Pi?

Aurora0001
  • 6,198
  • 3
  • 21
  • 37
dacarvalho
  • 23
  • 1
  • 4
  • I have used the u-blox software on a PC and it works. But for the Pi I found a better way. https://raspberrypi.stackexchange.com/questions/68816/how-can-i-set-up-my-g-mouse-usb-gps-for-use-with-raspbian – SDsolar Jun 22 '17 at 21:01

3 Answers3

0

while using windows might not an option for you u-center is the easy way to get done.

what i do recommend in general is to have a quick search on github first and see if something comes up.

searching for 'ublox' the result includes pyUblox which lacks a README file but the code should help to get you started.

in case you'd like to have a more generic introduction to working with hexadecimal values in python i do recommend consulting the stackexchange.com cosmos, i.e. stackoverflow as your question is not specific to raspberry pi.

jitter
  • 248
  • 1
  • 7
0

https://emlid.com/navio-ublox-ucenter/ there is a python script on that page that allows you to connect to u-center over ip with a UART connected gps if you you modify the script to catch the data you might be able to do what you want

-1

Problem 1. You work through a Python tutorial and use the Python serial module.

Problem 2. You read the documentation for gpsd.

joan
  • 67,803
  • 5
  • 67
  • 102