<?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>AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93116/automatically-activate-gps-when-it-detects-movement</link><description>Hi, 
 I am working on the asset_tracker application example on a Thingy:91 device. As I understand it, to activate the GPS it is necessary to keep the button pressed for a long time. Once active, the GPS could be activated by detecting a movement (using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jul 2020 09:55:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93116/automatically-activate-gps-when-it-detects-movement" /><item><title>RE: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391896?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 09:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f37784d-a5a7-48a3-9b1b-be449d4f8952</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Raquel,&lt;/p&gt;
&lt;p&gt;I have discussed this with my team and here are a few things to start with.&lt;/p&gt;
[quote user=""]1) The device is in sleep mode until it detects a movement.[/quote]
&lt;p&gt;I heard that there is some code for ADXL362 for Thingy:52 that is worth checking out. I would also recommend to look into the details of the sensor as it has some nice features for waking up. Like programming the two interrupt pins according to the requirements of your application. The sensor has a FIFO that allows you to analyze and verify if the movement that triggered the interrupt is what you actually want to detect and not only some strong vibrations. Also, if you want to do some serious power saving you could design your hw to use the interrupt from the sensor to enable necessary power rails on your board. Solder a bridge on the board if you want to use Int2 from the sensor. &lt;/p&gt;
[quote user=""]2) When it detects a movement with the accelerometer it searches for LTE communication and activates the GPS automatically.[/quote]
&lt;p&gt;Will you be using eDRX or PSM? Here is a relevant thread on the topic &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63075/nrf9160-psm-and-edrx-modes"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/63075/nrf9160-psm-and-edrx-modes&lt;/a&gt;. More info on the two modes over at Link-Labs: &lt;a title="https://www.link-labs.com/blog/lte-e-drx-psm-explained-for-lte-m1" href="https://www.link-labs.com/blog/lte-e-drx-psm-explained-for-lte-m1"&gt;PSM or&amp;nbsp;eDRX&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Check out &lt;em&gt;set_gps_enable&lt;/em&gt; in &lt;em&gt;long_press_handler&lt;/em&gt; which starts and stops the gps link in asset_tracker. You could perhaps modify this and make it into something like a &amp;quot;wake on movement handler&amp;quot;? For example, if motion from the accelerometer then wake from PSM, connect to base station and activate GPS. Please also check out aGPS(which is using less current and has a faster TTFF(time to first fix)).&lt;/p&gt;
[quote user=""]4) The device must have the GPS active and send position until a command is received (e.g. press the button).[/quote]
&lt;p&gt;&amp;nbsp;nRF91 sleeps in PSM mode when GPS is active. You can then wake up from PSM to send over LTE. This should be the principle but I have not yet checked the details.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know what you think.&lt;/p&gt;
&lt;p&gt;Best 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: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391895?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2020 09:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ccd04c5-79a4-4025-ab76-c44d54acba9b</guid><dc:creator>rqLST</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently working with v1.3.0 .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391894?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 08:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a588bb6a-5554-43d7-810f-d0ac7dd1ebec</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Which ncs tag are you on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391893?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 12:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94af7522-c953-4932-bdcc-548a88374d3d</guid><dc:creator>rqLST</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the feedback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391892?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 12:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4e7342-5771-4966-a982-550d742adb52</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Raquel,&lt;/p&gt;
&lt;p&gt;Sorry for the long wait. We are still working on this.&lt;/p&gt;
&lt;p&gt;Best 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: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391891?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 09:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0def297-8441-46c8-a89e-9315e7314c83</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Raquel,&lt;/p&gt;
&lt;p&gt;Thanks. I will look into this as well.&lt;/p&gt;
&lt;p&gt;Best 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: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391890?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 12:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1fd8c6c-e033-4cb6-af0c-3d0a192673ac</guid><dc:creator>rqLST</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m running tests on my own while I&amp;#39;m waiting for your help. I also wanted to ask you the following to continue my tests:&lt;/p&gt;
&lt;p&gt;Working on the asset_tracker example in the main.c: when the following line appears &lt;br /&gt;&lt;strong&gt;#if IS_ENABLED(CONFIG_GPS_START_ON_MOTION)&lt;/strong&gt;&lt;br /&gt;It is disabled, so the condition of&amp;nbsp; #if is considered not to be satisfied.&lt;br /&gt;However, it should be configured because in the file &lt;strong&gt;prj_thingy91_nrf9160ns.conf&lt;/strong&gt; it is enabled.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1594210553813v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1594210597272v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1594210580647v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I would like to be able to activate the part of the code that runs with the condition :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; #if IS_ENABLED(CONFIG_GPS_START_ON_MOTION)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;because it might solve part of my problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AUTOMATICALLY ACTIVATE GPS WHEN IT DETECTS MOVEMENT</title><link>https://devzone.nordicsemi.com/thread/391889?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 19:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cb990ab-3c7b-4b8e-95c3-81755b65602f</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Raquel,&lt;/p&gt;
&lt;p&gt;I have started looking at this and I will get back to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best 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>