Hello, I want to get GPS location information with nRF52840, I use UART protocol at 9600 baud rate, but I cannot read the data regularly, how should I do?
Hello, I want to get GPS location information with nRF52840, I use UART protocol at 9600 baud rate, but I cannot read the data regularly, how should I do?
Hi there,
Which GPS device are you using and are you able to get some data at all?
How are you currently trying to read out the data?
regards
Jared
Hi, I am using ublox NEO-6M-0-001. data is meaningless, comes in different characters, does not come in $GPGGA standard
Yes i am using nrf52840 kit. For example
How do I split data read as $GPGGA, 123519, 4807,038, N, 01131,000, E, 1.08, 0.9, 545.4, M, 46.9, M,, *47
Hi,
The GPGGA has a specific format, where you can expect that each filed in the format is separated by a ","
The format is:
You can use strcmp() to compare two strings, it will return a 0 if the two strings are alike. You can use this to filter the incoming data since you know the format of it.
regards
Jared
For example, can I get the latitude or longitude information with the strcmp command?
Hi,
You can use it to filter out data, you can use it to compare each field in the GPGGA format to your UART RX buffer.
regards
Jared
Thank you very much
Thank you very much