<?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>A-GPS API Documentation incomplete</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94274/a-gps-api-documentation-incomplete</link><description>Hello, 
 I&amp;#39;ve some questions regarding missing or incomplete information in the documentation ( https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#gnss-api ): 
 
 struct nrf_modem_gnss_datetime: 
 
 Does the date</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Dec 2022 14:19:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94274/a-gps-api-documentation-incomplete" /><item><title>RE: A-GPS API Documentation incomplete</title><link>https://devzone.nordicsemi.com/thread/400652?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 14:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ebcb2f7-3370-4351-91ee-da89f778bf0d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I can confirm that this is indeed a bug from our side.&lt;/p&gt;
&lt;p&gt;Thank you so much for making us aware of it! We will fix this in the next version of the supl library.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS API Documentation incomplete</title><link>https://devzone.nordicsemi.com/thread/398820?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 16:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cb15d33-d585-40b2-9cdf-d5ea54182892</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Thank you for the detailed description! I will make an internal bug on this matter and ask the R&amp;amp;D team to look into this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS API Documentation incomplete</title><link>https://devzone.nordicsemi.com/thread/398591?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 14:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45616096-4882-4652-b177-246cd3f031ad</guid><dc:creator>HFE</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/94274/a-gps-api-documentation-incomplete/398554"]Could this be an endian-issue&amp;nbsp;in the representation in wireshark? If you shift 48 (dec) down 5 LBS, 0x30 &amp;gt;&amp;gt; 5 = 1?[/quote]
&lt;p&gt;The IOD value is encoded as &amp;quot;iod BIT STRING (SIZE(11))&amp;quot; according to the ASN specification. To get the value 48 you have to decode the bit string correctly. The value 48 is also the IODC value noted in the RINEX files for this SV. Therefore, I believe that the SUPL Client Library may not decode the bitstring correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS API Documentation incomplete</title><link>https://devzone.nordicsemi.com/thread/398554?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 13:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41eec354-f133-4621-8369-dd602a784176</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="S9HFE"]But what is then on bit0, nothing? And where is SV#32?[/quote]
&lt;p&gt;My apologies, you are correct. Bit 0 = PRN1, bit 1 = PRN2 etc.&lt;/p&gt;
&lt;p&gt;This is the representation as expected&amp;nbsp;received from a&amp;nbsp;supl server, there&amp;#39;s some discussions on this on this forum:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://groups.google.com/g/android-porting/c/GPpMPB53XXU/m/u5DAB9UZ4bYJ"&gt;https://groups.google.com/g/android-porting/c/GPpMPB53XXU/m/u5DAB9UZ4bYJ&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="S9HFE"][bit length 11, 5 LSB pad bits, 0000 0110 000. .... decimal value 48][/quote]
&lt;p&gt;Could this be an endian-issue&amp;nbsp;in the representation in wireshark? If you shift 48 (dec) down 5 LBS, 0x30 &amp;gt;&amp;gt; 5 = 1?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS API Documentation incomplete</title><link>https://devzone.nordicsemi.com/thread/398214?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 00:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8be29d40-1956-4082-b532-7176c450b736</guid><dc:creator>HFE</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/94274/a-gps-api-documentation-incomplete/398015"]SV#1 is bit 1.[/quote]
&lt;p&gt;But what is then on bit0, nothing? And where is SV#32?&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/94274/a-gps-api-documentation-incomplete/398015"]&lt;p&gt;Could you point to where&amp;nbsp;this happen?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;ve used the SUPL Client Library and monitored the results from the callback. The IODC value which comes from the SUPL Client Library is shifted by 3 bits compared to the IOD value which directly comes from the SUPL Server. For example: SUPL Client Library returned the value 6 for SV#1; but according to Wireshark[1] the value should be 48&lt;/p&gt;
&lt;p&gt;[1]: iod: 0600 [bit length 11, 5 LSB pad bits, 0000 0110 000. .... decimal value 48]&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;br /&gt;HFE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS API Documentation incomplete</title><link>https://devzone.nordicsemi.com/thread/398015?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 08:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff32cfaa-3f3a-4784-a462-4faab31f807c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Does the date-time provided by the GPS contain leap seconds? How is the relation to UTC, do I have to subtract the leap seconds in order to get UTC?[/quote]
&lt;p&gt;No, you will get UTC:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/gnss/src/main.c#L605"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/gnss/src/main.c#L605&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;nrf_modem_gnss_agps_data_frame:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;mask-fields:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Is SV#1 masked in bit0 or bit1?&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;SV#1 is bit 1.&lt;/p&gt;
[quote user=""]&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;nrf_modem_gnss_agps_data_ephemeris:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;IODC: Why is the data provided by the SUPL Server shifted by 3 bits by the SUPL Client library? Shouldn&amp;#39;t IODC correspond directly to the value from the SUPL Server (or&amp;nbsp; RINEX file)?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;health: Bit mapping?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;Could you point to where&amp;nbsp;this happen?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]tlm: From the documentation: &amp;quot;First two bits (MSB) ...&amp;quot; =&amp;gt; The &amp;quot;first two bits&amp;quot; are in this case Bit15 (=reserved bit) and Bit14 (=integrity status), right?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote user=""]Is there a specific order required when feeding the A-GPS data into the receiver?[/quote]
&lt;p&gt;Not that we are aware of.&lt;/p&gt;
[quote user=""]For a fast TTFF, is it important to have almanachs or are the ephermis enough?[/quote]
&lt;p&gt;Both is preferred.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>