3

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?

1

3 Answers 3

0

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

Problem 2. You read the documentation for gpsd.

1
  • gpsd is not suitable to configure the device mentioned.
    – jitter
    Commented Jan 17, 2017 at 23:00
1

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.

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

4
  • actually GPS connected over spi Commented Jan 19, 2017 at 11:46
  • its a c program Commented Jan 19, 2017 at 23:46
  • Why do you correct your answer by adding comments? Why not actually edit your answer? Comments may be deleted without warning Commented Jan 21, 2017 at 4:42
  • nice find @ethanJohnston but it does require windows.
    – jitter
    Commented Jan 23, 2017 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.