1

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?

-2

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

Problem 2. You read the documentation for gpsd.

  • gpsd is not suitable to configure the device mentioned. – jitter Jan 17 '17 at 23:00
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.

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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