<?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>GNSS Restart After Single Shot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83717/gnss-restart-after-single-shot</link><description>I am using the GNSS Sample in SDK 1.8.99 to test sleep/wake cycles. 
 The GNSS example is correctly operating in single shot mode by setting the interval to 0. After getting a single fix, execution ceases and current draw drops. 
 I created a kernel timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jan 2022 12:47:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83717/gnss-restart-after-single-shot" /><item><title>RE: GNSS Restart After Single Shot</title><link>https://devzone.nordicsemi.com/thread/348037?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 12:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70f2a92-6350-4f68-a905-7fb0f91b51fa</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello David,&lt;/p&gt;
[quote user=""]What other steps are required to restart the gnss?&amp;nbsp; Would I have a different result if I put the system to sleep directly with __WFI() vs using the built in sleep from the GNSS lib?[/quote]
&lt;p lang="en-GB"&gt;I’m honestly not quite sure why you are not able to restart the GNSS, but I wonder if this could have something to do with stopping/starting the GNSS in a kernel timer expiry function.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Does it make any difference if you offload the calls of the GNSS functions to a system workqueue handler instead, as illustrated &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/kernel/timing/timers.html#using-a-timer-expiry-function"&gt;here&lt;/a&gt;?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Another alternative might be to just add the restart of the GNSS in the polling event for &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.8.0/samples/nrf9160/gnss/src/main.c#L448"&gt;new available PVT data&lt;/a&gt;.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>