<?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>Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95347/disable-power-saving-and-still-get-gnss-periodically-weekly-in-asset-tracker-2</link><description>I&amp;#39;m using Asset Tracker V2 
 
 
 My device is permanently powered, and I would like a quick response time to commands sent from the cloud, so I have turned off the power saving features 
 
 CONFIG_MODEM_AUTO_REQUEST_POWER_SAVING_FEATURES =n 
 
 
 This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jan 2023 09:27:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95347/disable-power-saving-and-still-get-gnss-periodically-weekly-in-asset-tracker-2" /><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/405792?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 09:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ccf95a1-7d40-4358-91e4-8305590612b1</guid><dc:creator>helsing</dc:creator><description>[quote user="Marshall"]It worked but was a bit aggressive, as Asset Tracker 2 then requested all the data again when the modem came back online[/quote]
&lt;p&gt;How often do you search for a fix?&lt;/p&gt;
&lt;p&gt;Great if this solution works. Is there anything particular about it you would like to discuss?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/404665?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 02:08:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f0e3dca-3ddb-4fdd-9792-21d003bc9099</guid><dc:creator>Marshall</dc:creator><description>&lt;p&gt;Thanks Helsing,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had a look at that example, and gave it a go using,&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;err = lte_lc_func_mode_set(LTE_LC_FUNC_MODE_DEACTIVATE_LTE);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;It worked but was a bit aggressive, as Asset Tracker 2 then requested all the data again when the modem came back online, and I ended up getting in a loop of shutting down, to request the&amp;nbsp;location data, turning LTE back on, after getting the data, and then having to repeat.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;So in the end I&amp;nbsp;did the following:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;prj.conf&amp;#160;
CONFIG_MODEM_AUTO_REQUEST_POWER_SAVING_FEATURES=n


location_module.c -

search start() {

//check for time of day if not correct just send an event and return.
&amp;#160; &amp;#160; if (!allowed_to_search){
&amp;#160; &amp;#160; &amp;#160; &amp;#160;&amp;#160;SEND_EVENT(location, LOCATION_MODULE_EVT_DATA_NOT_READY);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; LOG_DBG(&amp;quot;NOT middle of the night so not checking location&amp;quot;);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; return;
&amp;#160; }

//add this line which asks for power savings, the location module sees the PSM event and gets location.&amp;#160;
&amp;#160; &amp;#160; &amp;#160;err = lte_lc_psm_req(1);

//rest of the search_start function.&amp;#160;
}




inactive_send(){
//on time out or success this function is called.&amp;#160;
//turn off power savings so we are back online all the time.
&amp;#160; &amp;#160; &amp;#160;err = lte_lc_psm_req(0);
}
&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Marshall&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/404652?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 20:07:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3583bc8d-394f-4712-8819-af1bb26fc586</guid><dc:creator>helsing</dc:creator><description>[quote user="Marshall"]no power savings during business hours so that we can obtain &amp;lt;10sec response time[/quote]
&lt;p&gt;&lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(36, 36, 36, 1);float:none;font-family:-apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, &amp;#39;Segoe UI Web&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0;text-transform:none;white-space:normal;"&gt;The multi or single cell location service could be an option depending on your application.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Marshall"]2:00am location update - update speed is not an issue,&amp;nbsp;[/quote]
&lt;p&gt;As you know, you will have ave to shutdown the LTE connection in order to use GNSS service. See the sample&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a style="background-color:rgba(255, 255, 255, 1);border-top-style:none;border-right-style:none;border-left-style:none;color:rgba(79, 82, 178, 1);cursor:pointer;display:inline;font-family:-apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, &amp;#39;Segoe UI Web&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;margin:0;overflow:inherit;padding:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;white-space:normal;" title="https://academy.nordicsemi.com/topic/lesson-8-nrf91-simple-tracker-solution/" href="https://academy.nordicsemi.com/topic/lesson-8-nrf91-simple-tracker-solution/"&gt;nRF91 simple tracker solution – Nordic Developer Academy&lt;/a&gt; to learn how this works.&lt;/p&gt;
[quote user="Marshall"]the rest of the time it can do the default Asset tracker stuff.[/quote]
&lt;p&gt;Check out the &lt;a style="background-color:rgba(255, 255, 255, 1);border-top-style:none;border-right-style:none;border-left-style:none;cursor:pointer;display:inline;font-family:-apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, &amp;#39;Segoe UI Web&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;margin:0;overflow:inherit;padding:0;text-align:left;text-decoration:underline;text-indent:0;text-transform:none;white-space:normal;" title="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/others/date_time.html#date-time" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/others/date_time.html#date-time" rel="noopener noreferrer" target="_blank"&gt;Date-Time&lt;/a&gt; library that can be used to trigger GNSS searching task.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/404162?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 15:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d677a31-01d6-4ce4-8884-cb6f929ead0b</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Sorry for the delay. Yes, this should be possible. I will get back to you with more details. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/403702?ContentTypeID=1</link><pubDate>Sun, 08 Jan 2023 22:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:584c9c6a-9938-481f-9689-322910a27109</guid><dc:creator>Marshall</dc:creator><description>&lt;p&gt;Thanks for the response. and apologies for not providing enough information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like a quick response time - during business hours.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The user will be operating/testing the device from the cloud on occasion. during these operations I would like a quick response say &amp;lt;10sec.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The unit is largely static and might move once a week. so I was thinking that a daily location update would be fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the ideal would be.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;no power savings during business hours so that we can obtain &amp;lt;10sec response time&lt;/li&gt;
&lt;li&gt;2:00am location update - update speed is not an issue,&amp;nbsp;&lt;/li&gt;
&lt;li&gt;the rest of the time it can do the default Asset tracker stuff.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Marshall&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/403660?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 21:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4562de60-a6a0-4a81-a77a-74c76fe5e360</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Thank you for rephrasing.&lt;/p&gt;
[quote user=""]I would like a quick response time[/quote]
&lt;p&gt;How quick does the response time need to be?&lt;/p&gt;
&lt;p&gt;If your modem has a fresh fix it could produce more fixes in RRC Idle for a limited time. However, you would need to accept longer response times every now and then to get a fix from scratch. RRC Idle is usually not enough without either eDRX or PSM in use in order to prolong the sleep interval of the LTE stack. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If your application requires the device only to be &lt;em&gt;mostly on&lt;/em&gt;, then eDRX could be part of the solution. You could experiment with different values to find a suiting compromise between latency for LTE and how long time it takes to get a fix.&lt;/p&gt;
&lt;p&gt;In any case, consider A-GPS as it is much faster and because it will make it less&amp;nbsp; difficult to get a fix. &lt;/p&gt;
&lt;p&gt;An alternative is to use an external GNSS module, and then use nRF9160 for LTE only. However, it might still be challenging to get a fix, considering the potential RF-interference from LTE. Please let me know if this is something you consider, and I could try to get some of my other team members who have more expertise in this area to comment on the topic. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/403489?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 21:22:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cbff251-8069-472a-9af5-14c1728aba44</guid><dc:creator>Marshall</dc:creator><description>&lt;p&gt;Thanks, let me rephrase the question.&lt;/p&gt;
&lt;p&gt;If the device never enters PSM then the GNSS will never work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the suggested method to get a GNSS fix when no power saving mode is implemented.?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Marshall&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/403457?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 15:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7506b3-799d-4093-b89b-8ba7f55388b7</guid><dc:creator>helsing</dc:creator><description>[quote user=""]&lt;div&gt;&lt;span&gt;However I would like to update the GNSS location every now and then to see if the unit has moved.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;How would I best achieve this?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Check out the section on &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/doc/app_behavior.html#real-time-configurations"&gt;Real-time configurations&lt;/a&gt;. You may alter the Location timeout in order to retrieve the location more often. The default value is 300 seconds. &lt;/p&gt;
&lt;p&gt;Do you keep your device in Active mode or Passive mode? If the device is in Passive mode, then the Passive Movement timeout is also relevant. If the no movement is detected, there will be an update after 3600 seconds, by default.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable power saving and still get GNSS periodically (weekly) in Asset Tracker 2</title><link>https://devzone.nordicsemi.com/thread/403342?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 09:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e48f6a1-1e04-4054-87af-d089ffef4e43</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Marshall,&lt;/p&gt;
&lt;p&gt;Just letting you know I have started looking into this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>