<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Difference between GPS_EVT_PVT_FIX and GPS_EVT_NMEA_FIX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67965/difference-between-gps_evt_pvt_fix-and-gps_evt_nmea_fix</link><description>I am looking at the nrf 1.3.2 asset tracker example and I see that the GPS callback has two different events for PVT and NMEA fixes. As I understand it PVT and NMEA are two different ways of expressing the fix data? Why are there two different events</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2020 09:48:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67965/difference-between-gps_evt_pvt_fix-and-gps_evt_nmea_fix" /><item><title>RE: Difference between GPS_EVT_PVT_FIX and GPS_EVT_NMEA_FIX</title><link>https://devzone.nordicsemi.com/thread/278392?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 09:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc4cf163-b3df-4ae1-b139-cfba4df99d79</guid><dc:creator>XavierN</dc:creator><description>&lt;p&gt;Thank you for the quick answer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between GPS_EVT_PVT_FIX and GPS_EVT_NMEA_FIX</title><link>https://devzone.nordicsemi.com/thread/278389?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 09:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996f8416-aeea-4f7e-b66b-ed3f74d57d7c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]As I understand it PVT and NMEA are two different ways of expressing the fix data?[/quote]
&lt;p&gt;PVT stands for position, velocity, and time. NMEA is a defined ascii representation of the gps data. If you search for &amp;quot;nmea explained&amp;quot; you should see more detailed information related to this format.&lt;/p&gt;
&lt;p&gt;In nrf_socket.h, the pvt struct is a binary representation of the information found in the nmea strings:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.4.0/bsdlib/include/nrf_socket.h#L777-L792"&gt;https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.4.0/bsdlib/include/nrf_socket.h#L777-L792&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Why are there two different events for those and under what conditions are they triggered?[/quote]
&lt;p&gt;For NMEA, you can select the frames you&amp;#39;re interested in, as shown here (where all are enabled):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/samples/nrf9160/gps/src/main.c#L140-L144"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/samples/nrf9160/gps/src/main.c#L140-L144&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For pvt, its given as a struct.&lt;/p&gt;
&lt;p&gt;The reasons they&amp;#39;re split in the driver is because they&amp;#39;re also split in the API from the modem (bsdlib) side:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/samples/nrf9160/gps/src/main.c#L305"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/samples/nrf9160/gps/src/main.c#L305&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/samples/nrf9160/gps/src/main.c#L321"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.4.0/samples/nrf9160/gps/src/main.c#L321&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>