<?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>nrf9160 GPS hangs when starting after stopping</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57448/nrf9160-gps-hangs-when-starting-after-stopping</link><description>After successfully running the GPS and acquiring position the application goes into an infinite wait loop when attempting to start it again, but only if either or both of the following are true: 
 
 The GNSS is stopped using nrf_setsockopt with the NRF_SO_GNSS_STOP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Feb 2020 15:28:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57448/nrf9160-gps-hangs-when-starting-after-stopping" /><item><title>RE: nrf9160 GPS hangs when starting after stopping</title><link>https://devzone.nordicsemi.com/thread/233584?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 15:28:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3e4a730-3135-49f0-92c0-ec5bb05ef1fb</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I have looked at your code, and while I was not able to confirm the &amp;quot;but only if either or both of the following are true:&amp;quot; part, I got results similar to you.&lt;/p&gt;
&lt;p&gt;You only need to call gps_enable once, at the beginning of your program. In fact, none of the AT commands you send has any effect after the modem is turned on.&lt;/p&gt;
&lt;p&gt;That, along with moving the GPS handling out of the timer interrupt (either to a loop in main or a work queue), solved the problem for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 GPS hangs when starting after stopping</title><link>https://devzone.nordicsemi.com/thread/233371?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 19:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f51cc0c-e018-4166-a166-a43f9cb60f4a</guid><dc:creator>Chris Burns</dc:creator><description>&lt;p&gt;I started with the GPS example, which doesn&amp;#39;t use the GPS driver (at least in ncs v1.1.0). The GPS driver is also marked as experimental.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 GPS hangs when starting after stopping</title><link>https://devzone.nordicsemi.com/thread/233096?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 14:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1ea3929-9a79-4c20-82be-30f4e1efebcf</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I am looking into your case, but I will not be able to get back to you before tomorrow or early next week.&lt;/p&gt;
&lt;p&gt;In the meantime, may I ask if there is a reason why you are not using the GPS driver?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/v1.1.0/include/gps.h"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/v1.1.0/include/gps.h&lt;/a&gt; (note that the header has been moved into the &amp;quot;drivers&amp;quot; folder on the master branch)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>