<?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>How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74896/how-do-i-properly-launch-and-retrieve-gps-data-in-another-thread</link><description>Because the GPS will continue to output data after starting, in order not to block the main thread, I placed it in another thread, but I found that when my main thread did not communicate with the external device(My screen automatically shuts down after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 09:24:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74896/how-do-i-properly-launch-and-retrieve-gps-data-in-another-thread" /><item><title>RE: How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/thread/313856?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 09:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ed00c4c-c249-4ddf-8fd5-0e70128e3ff0</guid><dc:creator>duxinglang</dc:creator><description>&lt;p&gt;OK，i will send you the whole application&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/uart_5F00_ble_5F00_20210607.rar"&gt;devzone.nordicsemi.com/.../uart_5F00_ble_5F00_20210607.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/thread/313651?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 12:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb69815d-27e2-4d8f-a087-2158dcfd937c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Ah, I see. Could you zip your whole application and send it over so I can take a look?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/thread/313543?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 06:39:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c990acfb-adc7-4fb0-acd8-212bf09a3164</guid><dc:creator>duxinglang</dc:creator><description>&lt;p&gt;&lt;span&gt;I mean, unless my UE&amp;nbsp;lights up the screen and refreshes the display, the MCU won&amp;#39;t be able to receive the&amp;nbsp;gps_handler event message, which is the biggest problem. &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/thread/313527?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 02:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d689190-2a88-4099-8ab3-2c203b48c56d</guid><dc:creator>duxinglang</dc:creator><description>&lt;p&gt;&lt;span class="transSent"&gt;&lt;span&gt;I&amp;#39;m sorry I didn&amp;#39;t make it clear. The screen I said refers to the screen of the terminal device. When the screen is off, the 9160 will not write data to SPI.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent highlight"&gt;&lt;span&gt; When the screen lights up and the 9160 displays data on the screen through the SPI interface, the 9160 receives GPS events &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/thread/312114?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 13:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c00a2d24-07ee-4ce5-bd11-7f16a141b0ff</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;I don&amp;#39;t think I&amp;#39;m understanding. Are we talking about your computer screen? Can you just extend the time it takes for the screen to sleep?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/thread/310900?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 05:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:486e52b8-d6b1-465b-8190-3009db97f7bb</guid><dc:creator>duxinglang</dc:creator><description>&lt;p&gt;&lt;span class="transSent"&gt;&lt;span&gt;Thanks for your reply!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent"&gt;&lt;span&gt; The current situation is that when GPS is activated in another thread, the system main thread must have a call to the external device in order to receive the GPS data. Once the screen goes off and the main thread does not send any data to the screen, the GPS data will no longer be received. In fact, the main program can still output other LOG information. &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="transSent"&gt;&lt;span&gt;When I press the button, I can receive the data output of the GPS for a short time. It feels like the main program stops for a while before the GPS thread can continue to run, otherwise it will be suspended &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I properly launch and retrieve GPS data in another thread</title><link>https://devzone.nordicsemi.com/thread/309725?ContentTypeID=1</link><pubDate>Fri, 14 May 2021 09:05:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66bc9378-b498-456c-836b-251a9500e240</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When your screen shuts down, you don&amp;#39;t see the GPS data in the log output? Or does it disappear from the application, as in the information being read from the socket disappears?&lt;/p&gt;
&lt;p&gt;The logging can stop when the screen shuts down, so that isn&amp;#39;t that strange, but if it&amp;#39;s disappearing from the application that&amp;#39;s a bigger problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>