Ultimate GPS

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
RickyBobby
 
Posts: 2
Joined: Fri May 27, 2022 10:35 am

Ultimate GPS

Post by RickyBobby »

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

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Ultimate GPS

Post by mikeysklar »

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

Code: Select all

gps.send_command(b"PMTK220,10000")
; force 115200 baudrate with a message like this:

Code: Select all

gps.send_command(b"PMTK251,115200")

User avatar
RickyBobby
 
Posts: 2
Joined: Fri May 27, 2022 10:35 am

Re: Ultimate GPS

Post by RickyBobby »

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.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Ultimate GPS

Post by mikeysklar »

To configure the GPS for specific data like RMC and GGA sentences use this example code:

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.
https://docs.circuitpython.org/projects ... tails.html

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”