Ultimate GPS
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- RickyBobby
- Posts: 2
- Joined: Fri May 27, 2022 10:35 am
Ultimate GPS
I am not a customer so sorry if this is the wrong customer service option but my question is technical so I wasn't sure what to do. I'm looking at buying the ultimate GPS and for my application I need $GPRMC and $GPGGA messages and 115200 with 10hz updates. I have wore google out trying to find how to do this. Before I order I would like to see if someone could lead me on the direction for doing this. I will be using it with a pi4. Thanks for any help
- mikeysklar
- Posts: 14182
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Ultimate GPS
Is your question if it is possible to get both message types $GPRMC and $GPGG while parsing at a 10 Hz frequency?
There will be some overhead with the parsing and baudrate so in the end it will be less than 10 Hz, but you should be able to get updates @ 10 Hz. I'd use the USB-C module with a Pi for hookup.
https://www.adafruit.com/product/4279
; 10 Hz update rate
; force 115200 baudrate with a message like this:
There will be some overhead with the parsing and baudrate so in the end it will be less than 10 Hz, but you should be able to get updates @ 10 Hz. I'd use the USB-C module with a Pi for hookup.
https://www.adafruit.com/product/4279
; 10 Hz update rate
Code: Select all
gps.send_command(b"PMTK220,10000")
Code: Select all
gps.send_command(b"PMTK251,115200")
- RickyBobby
- Posts: 2
- Joined: Fri May 27, 2022 10:35 am
Re: Ultimate GPS
Thank you!. Yes I was looking at the USB c module to use. How do I go about changing to $GPRMC and $GPGGA messages? This is all for my car so I can get speed on my dash. I have a Arduino based ECU that runs my engine. And my dash is a digital dash using a pi. The program that runs all of my readouts can use GPS for speed but requires those messages.
- mikeysklar
- Posts: 14182
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Ultimate GPS
To configure the GPS for specific data like RMC and GGA sentences use this example code:
https://docs.circuitpython.org/projects ... tails.html
Code: Select all
# Ask for specific data to be sent.
# A B C D E F G H I
gps.send_command(b'PMTK314,1,1,5,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0')
# A - send GLL sentences
# B - send RMC sentences
# C - send VTG sentences
# D - send GGA sentences
# E - send GSA sentences
# F - send GSV sentences
# G - send GRS sentences
# H - send GST sentences
# I - send ZDA sentences
# The number is how often to send the sentence compared to the update frequency.
# If the update frequency is 500ms and the number is 5, it will send that message
# every 2.5 seconds.
Please be positive and constructive with your questions and comments.