<?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>Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57094/thingy-91---gps-got-stuck-after-several-attempts-to-get-a-fix</link><description>Hi, 
 I am currently working on the development of a customized Tracker application. I was testing one use case where the Tracker definitely not being able to achieve a GPS fix. While I was conducting this test several times the Tracker got stuck. I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Feb 2020 13:11:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57094/thingy-91---gps-got-stuck-after-several-attempts-to-get-a-fix" /><item><title>RE: Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/thread/232572?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 13:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54bd5201-06de-4866-a5ac-1bd917b65711</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;
&lt;p&gt;Do you get any log or similar that can hint towards what goes wrong?&lt;/p&gt;
&lt;p&gt;You could try to update the bsdlib, as there has been a fix to a corner case in v0.5.1 (&lt;a href="https://github.com/NordicPlayground/nrfxlib/blob/master/bsdlib/doc/CHANGELOG.rst#bsdlib-051"&gt;link&lt;/a&gt;), but it is hard to say if this is the problem you&amp;#39;re seeing without getting some logs atleast.&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: Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/thread/232422?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 18:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:285b5a3b-4532-484b-af43-36da37b7ef65</guid><dc:creator>Hucky</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I am using v1.1.0. I did several long-term tests with the current implementation and the result shows different results. Occasionally I still see the system crashing. Sometimes I see that GPS tracks a high number of satellites but shows not using them. In this case it takes ages until a fix will be achieved. Most of the time it is running smoothly and working properly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Holger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/thread/232294?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 11:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e6df3ff-dd52-4f77-9141-5fa8fd0545cd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Holger,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Hucky"]regarding enabling PSM and GPS I was using exactly the code used in the asset tracker example. Not sure if there it is ensured that enabling PSM is really successfull before GPS is started. But do you expect the GPS to get stuck in case one is trying to enable it while PSM is disabled?[/quote]
&lt;p&gt;&amp;nbsp;the asset_tracker does not verify what interval is set, or if you are in active mode while trying to enable the GPS, unfortunately. If you get a PSM setting with a high active time, the gps socket will not properly open, but should not crash. Which revision of &amp;quot;nrf&amp;quot; are you currently using?&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: Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/thread/232038?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 09:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:267df515-7b54-46b5-bd97-3c52ba296e9e</guid><dc:creator>Hucky</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;regarding enabling PSM and GPS I was using exactly the code used in the asset tracker example. Not sure if there it is ensured that enabling PSM is really successfull before GPS is started. But do you expect the GPS to get stuck in case one is trying to enable it while PSM is disabled?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Holger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/thread/231937?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 14:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f1d72b8-38b2-4755-8378-62e69e39b106</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Are you certain that you have successfully gotten PSM from the network when enabling the GPS?&lt;/p&gt;
&lt;p&gt;You can ask for a specific PSM interval, but ultimately; its the network that sets the rules. It can be that you get a active time that is just about to expire (and enter PSM) when you call gps_start.&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: Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/thread/231762?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 21:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0614ceb1-d5a1-40ab-adf1-26d8622f9093</guid><dc:creator>Hucky</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for your feedback. In the meantime I can more or less easily reproduce this issue. I was already increasing the stack size but did not solve anything. I do not see any error messages on the UART but while I was debugging the issue I found that as soon the gps_event_handler activates the GPS again it got stuck. Exactly&amp;nbsp;the API call gps_start after enabling PSM does not return at all in that moment. It is not always happening right away, sometimes it is the second, third or fourth activation where it got stuck.&lt;/p&gt;
&lt;p&gt;I can provide the UART logs if you wish or even my image.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Holger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 91 - GPS got stuck after several attempts to get a fix.</title><link>https://devzone.nordicsemi.com/thread/231686?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 14:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a536f8f-00cd-4bcf-851d-c07a74e77938</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;
&lt;p&gt;I cannot think of any issues that matches this. Do you get any error output or similar from the UART?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have changed the application, it might be that it uses more memory in a specific thread or the main stack size needs to be increased, but that it is just speculating at this point. If you provide logs, it would be easier to comment on.&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>