<?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>Number of satellites to 0 after datatransfer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106821/number-of-satellites-to-0-after-datatransfer</link><description>I made an application that is will setup an LTE connection first, after connects to AWS and then will try to get an GNSS fix. 
 Now I can see that the number of satellites that is found is going up but every minute CSCON goes to 1 and an AWS_IOT_EVT_PINGRESP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Dec 2023 15:24:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106821/number-of-satellites-to-0-after-datatransfer" /><item><title>RE: Number of satellites to 0 after datatransfer</title><link>https://devzone.nordicsemi.com/thread/461611?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 15:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b89ba49f-d819-4f93-9a1f-6ccf518efb03</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="ralphvn"]When the&amp;nbsp;nrf_modem_gnss_fix_retry_set() is set to 0 it will search infinite.&amp;nbsp;What is the downside of this, has it something to do with the datatransfer or is it only out of power perspective hat you would put a max time instead of infinite on it? If I use a continues power supply and I want a location every hour is&amp;nbsp;nrf_modem_gnss_fix_interval_set(&lt;strong&gt;3600&lt;/strong&gt;) and&amp;nbsp;nrf_modem_gnss_fix_retry_set(&lt;strong&gt;0&lt;/strong&gt;) a good practice?[/quote]
&lt;p&gt;Sorry, I misunderstood the question.&lt;/p&gt;
&lt;p&gt;Yes, it is primarily for power saving reasons that you might want to stop the GPS after a certain time if it hasn&amp;#39;t produced a fix yet.&lt;/p&gt;
&lt;p&gt;The LTE stack has priority, so the GPS stack should not interfere with any data transfers.&lt;/p&gt;
&lt;p&gt;If power consumption is of no concern, but GPS performance is, you can also use continuous mode, so that the GPS can keep tracking satellites between the fixes you are interested in. That way, when it becomes time to get a new fix, the GPS already has most, if not all, the information it needs, and can give you a fix much quicker.&lt;/p&gt;
&lt;p&gt;When you use periodic mode, the GPS will turn off after it has produced a fix. The infinite search time is only relevant in the cases when it is not able to produce a fix. This means that when the GPS is turned back on, it will need more time to re-synchronize the clock, and it might need to download new data from the satellites.&lt;/p&gt;
&lt;p&gt;P.S. Due to Christmas vacations, we will have reduced staffing next week, so responses might be delayed. We apologize for the inconvenience, and wish you a merry Christmas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Number of satellites to 0 after datatransfer</title><link>https://devzone.nordicsemi.com/thread/461529?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 08:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:285fcaf0-5bbc-428f-bc6f-a968b6394b75</guid><dc:creator>ralphvn</dc:creator><description>&lt;p&gt;If it is&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;span&gt;downloading ephemerides or almanacs from the broadcast with an interval of 13/14 minutes that would be a good explanation, I will try to find out further.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I understand the quick search and the more intensive search now, thanks for that, but I do not think it is an answer to my question:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;When the&amp;nbsp;nrf_modem_gnss_fix_retry_set() is set to 0 it will search infinite.&amp;nbsp;What is the downside of this, has it something to do with the datatransfer or is it only out of power perspective hat you would put a max time instead of infinite on it? If I use a continues power supply and I want a location every hour is&amp;nbsp;nrf_modem_gnss_fix_interval_set(&lt;strong&gt;3600&lt;/strong&gt;) and&amp;nbsp;nrf_modem_gnss_fix_retry_set(&lt;strong&gt;0&lt;/strong&gt;) a good practice?&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Number of satellites to 0 after datatransfer</title><link>https://devzone.nordicsemi.com/thread/461498?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 19:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b83163e-7b61-4afc-9cd5-32912105fd3e</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="ralphvn"]My last question is still open, if I put it on infinite search and the device is for example inside and will never get a fix, does this unlimited searching have any downsides except power consumption what is not really an issue for our use case?[/quote]
&lt;p&gt;It &lt;em&gt;&lt;/em&gt;might slow down getting a fix when the device moves back out. When the GPS is first started, it will first do a quick search, before it does a more thorough search. If the device is indoors while the quick search happens, it will move on to the thorough search, which will spend more time on each frequency before moving to the next. This means that if the search has &amp;quot;gone past&amp;quot; one or more satellites when the device moves outside, it will take longer before the GPS searches those frequencies again. If, on the other hand, the GPS is started outside, it might be able to find all the satellites it needs with just the quick search.&lt;/p&gt;
[quote user="ralphvn"]What are these unexpected GNSS interactions in between my&amp;nbsp;&lt;span&gt;nrf_modem_gnss_fix_interval_set(&lt;/span&gt;&lt;strong&gt;3600&lt;/strong&gt;&lt;span&gt;) setting? It is next to the configured hour cycle some other cycle that shows up every 13/14 minutes? It is not a big deal I think but I just don&amp;#39;t get it, it also looks like it finds a quick faster then it does at my hourly fix interval?&lt;/span&gt;[/quote]
&lt;p&gt;It might be that the GPS is downloading some data from the satellites, but gets interrupted by the LTE stack, so it has to try again.&lt;/p&gt;
&lt;p&gt;See the note here for more information:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#c.nrf_modem_gnss_fix_interval_set"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#c.nrf_modem_gnss_fix_interval_set&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;
&lt;p&gt;P.S. Because of Christmas vacations, responses might be delayed for the rest of the year.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Number of satellites to 0 after datatransfer</title><link>https://devzone.nordicsemi.com/thread/461412?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 10:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d80e951-c5cb-49d0-9023-59dbbc988e77</guid><dc:creator>ralphvn</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/serial_2D00_terminal_2D00_2023_2D00_12_2D00_21.txt"&gt;devzone.nordicsemi.com/.../serial_2D00_terminal_2D00_2023_2D00_12_2D00_21.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I attached a logfile with debug output with some expected and unexpected behaviour. It logs every minute the modem temperature to AWS and every hour the location to the AWS shadow.&lt;/p&gt;
&lt;p&gt;The start of the file shows the GNSS looking for a fix, this started at 17:00:00 and is expected behaviour, after 3:33 it has fix and send this to the shadow. After that it starts sending the temperature every minute, also as expected.&lt;/p&gt;
&lt;p&gt;At 18:00:00 I expect a new event to find a fix but at 17:10:10 suddenly GNSS events are showing up. After that it prints out 6 times different fixes of the &lt;strong&gt;NRF_MODEM_GNSS_EVT_FIX&lt;/strong&gt; event, why is this? Why is that? I do not see a&amp;nbsp;&lt;strong&gt;NRF_MODEM_GNSS_EVT_PERIODIC_WAKEUP&lt;/strong&gt; or a&amp;nbsp;&lt;strong&gt;NRF_MODEM_GNSS_EVT_SLEEP_AFTER_FIX&lt;/strong&gt; event. Like in the first situation, the &lt;strong&gt;SLEEP_AFTER_FIX&lt;/strong&gt; is my event to make the device log to prevent it logging the 6 fixes to AWS.&lt;/p&gt;
&lt;p&gt;Then it goes back to for expected behaviour of sending the temperature till this unexpected fix happens again at 17:23:41, 17:37:10, 17:50:10 and then the expected fix of 18:00:03, an unexpected one at 18:03:34 and one again at 18:18:10.&lt;/p&gt;
&lt;p&gt;What are these unexpected GNSS interactions in between my&amp;nbsp;&lt;span&gt;nrf_modem_gnss_fix_interval_set(&lt;/span&gt;&lt;strong&gt;3600&lt;/strong&gt;&lt;span&gt;) setting? It is next to the configured hour cycle some other cycle that shows up every 13/14 minutes? It is not a big deal I think but I just don&amp;#39;t get it, it also looks like it finds a quick faster then it does at my hourly fix interval?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Number of satellites to 0 after datatransfer</title><link>https://devzone.nordicsemi.com/thread/461382?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 08:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e242c2-2b74-4b5a-8c06-a358d2e1bc28</guid><dc:creator>ralphvn</dc:creator><description>&lt;p&gt;&lt;span&gt;I found out &lt;strong&gt;AWS_IOT_EVT_PINGRESP&lt;/strong&gt; interrupts the GNSS, from&amp;nbsp;&lt;strong&gt;+CSCON: 1&lt;/strong&gt; there is an&amp;nbsp;&lt;strong&gt;NRF_MODEM_GNSS_EVT_BLOCKED&lt;/strong&gt; event and the number of satellites goes to 0, after&amp;nbsp;&lt;strong&gt;+CSCON: 0&lt;/strong&gt; and the connection is idle there is an&amp;nbsp;&lt;strong&gt;NRF_MODEM_GNSS_EVT_UNBLOCKED&lt;/strong&gt; event and the number of satellites goes kind of back to the old amount of satellites and it continues trying to get a fix.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My last question is still open, if I put it on infinite search and the device is for example inside and will never get a fix, does this unlimited searching have any downsides except power consumption what is not really an issue for our use case?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>