2020-11-10 01:49 AM - last edited on 2023-07-21 01:57 AM by Amel NASRI
Hello I have another question
I am currently working on a microcontroller project I am building a GPS tachometer which transfers the NMEA data of the GNSS 4 Click Module from Mikroe via UART to my STM32L052K6T6 and outputs it to a display
How can I use a specific sentence from a set of NMEA data sets to output to a display? in my application I need the GPVTG data set, can I simply compare the strings or how can I best solve.
My existing code you can find below
2020-11-10 04:45 AM
Depends on your application.
In the simplest case, just put any valid $GPVTG sentence through to the display.
GPS receive usually spit sentences out at the update rate specified (or the default startup value).
GPVTG might not be appropriate for all the data a tachometer application needs.
2020-11-10 12:43 PM
Yeah, looks a bit familiar.
Normally you can decompose the sentence into fields, either manually, or with strtok()
Should be aware that current generation GNSS devices report with $GN Talker ID, not just $GP for GPS
As Ozone indicates, you might want faster updates, most current uBlox offerings can do 5 Hz. the M8Q should be able to hit 10 Hz
To acheive this you'd likely want higher baud rates, and the cull the worthless NMEA messages like GSV, etc from clogging up the buffers.