<?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>it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue</link><description>Hi, 
 
 I&amp;#39;m using nRF9160 SLM application SDK 1.9.1 
 We are using the GPS in 4 operation modes and in between we sent nRF to sleep, it seems when we sent it to sleep all the GPS data is lost and every time we want to get a fix we get it by cold start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Nov 2022 13:11:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue" /><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/394428?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 13:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9347a69e-671b-4e9e-83f4-cb3035ba48db</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;To how often the AGPS data is needed:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;GNSS requests new A-GPS data when it&amp;#39;s needed. There&amp;#39;s different assistance data with different validity times. Ephemerides have the shortest validity time, they are only valid for 2 hours on average. So, to always have fresh assistance data available, GNSS should request new data roughly every two hours.&lt;br /&gt;&lt;br /&gt;You don&amp;#39;t have to always download everything, but GNSS tells which data is needed. Usually it&amp;#39;s only the ephemerides. For example almanacs are valid for weeks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[quote user="Ofir_A"]Is there a way to give GPS priority with the SLM application?[/quote]
&lt;p&gt;No, the modem will prioritise LTE over GPS&lt;/p&gt;
Regards,&lt;br /&gt;Jonathan&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/394314?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 07:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79584238-58a6-4ed7-b5f3-52369663ef85</guid><dc:creator>Ofir_A</dc:creator><description>&lt;p&gt;Hi Jonathan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/392166"]Is the 60 seconds to go idle is the minimum or we can ask for less?[/quote]
&lt;p&gt;Any update regarding GPS priority over LTE?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/392166?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 12:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:936088ea-cabe-4909-b5c9-4fb60453773a</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Ok, thanks for the extra details.&lt;br /&gt;&lt;br /&gt;So in the scenarios where the 9160 is used with the 4 different modes, GPS fix every 1, 5, 15 and 30 minutes there might need to be some adjustments for the individual modes. At least for the mode with a GPS fix every minute. With such a fast interval of position fix then it might actually be better to leave the GPS on. Would have to navigate the LTE stack in a way that would not interfere with the GPS fix interval.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;However a 1 minute fix interval is not very battery friendly, so here i guess there might have to be some trade off, GPS is more important then battery or not.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So the two questions remining now is:&lt;br /&gt;&lt;em&gt;Is the 60 seconds to go idle is the minimum or we can ask for less?&lt;/em&gt;&lt;br /&gt;and&lt;br /&gt;&lt;em&gt;Regarding the AGPS, we&amp;#39;ve been told to ask for AGPS every 4 hours, if we receive fixes with GPS every 30 minutes, do we still need to ask every 4 hours from the last AGPS fix or every 4 hours from a regular fix?&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Will get back to you on the two, might be more&amp;nbsp;conditions to consider for both questions.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/391985?ContentTypeID=1</link><pubDate>Sun, 23 Oct 2022 08:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45fa717b-284e-4a64-90e5-510b8e0e010d</guid><dc:creator>Ofir_A</dc:creator><description>&lt;p&gt;H Jonathan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/391880"]Every time the modem is turned off it will loos its timing, so then it will use more time to get a GPS fix. &lt;br /&gt;&lt;br /&gt;RAM retention will not be solution here as it is not the RAM in the modem that would be retained.[/quote]
&lt;p&gt;I understand, thanks for that&lt;br /&gt;So we will see how we can reduce the times we do resets and handle errors differently.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You gave us&amp;nbsp;answers for 2/3 Thanks :)&lt;br /&gt;We remain with only one thing and its the time to get idle&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/391880"]Can you share what you are trying to do and how you plan to use the nrf9160 and its features?[/quote]
&lt;p&gt;We are using the nrf9160 for transmitting data and getting GPS position, the nrf is a slave and we control it with at commands.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/391880"]How often do you plan to get a GPS fix?[/quote]
&lt;p&gt;It depends, we have 4 operation modes, tracking every 1/5/15/30 minutes intervals&lt;br /&gt;* We connect with WIFI as well and when we use WIFI we don&amp;#39;t use nrf at all, when there is no WIFI we want to know GPS and to transmit data with cellular&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/391880"]How important is power consumption?[/quote]
&lt;p&gt;Very important.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/391880"]This can depend on the network, so idling will happen when PSM\eDRX is granted, and that is up to the network to decide.[/quote]
&lt;p&gt;We don&amp;#39;t use PSM/eDRX, Is there a way to give GPS priority with the SLM application?&lt;br /&gt;Is the 60 seconds to go idle is the minimum or we can ask for less?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*Regarding the AGPS, we&amp;#39;ve been told to ask for AGPS every 4 hours, if we receive fixes with GPS every 30 minutes, do we still need to ask every 4 hours from the last AGPS fix or every 4 hours from a regular fix?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/391880?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 12:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62a0f37-83a8-4a82-9542-c54a4de6a14d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Every time the modem is turned off it will loos its timing, so then it will use more time to get a GPS fix. &lt;br /&gt;&lt;br /&gt;RAM retention will not be solution here as it is not the RAM in the modem that would be retained. &lt;br /&gt;&lt;br /&gt;Modem trace: &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html?cp=10_3_3"&gt;https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html?cp=10_3_3&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;If you could share what you do well as the modem trace then we might be able to better address the challenges you are seeing. &lt;br /&gt;&lt;br /&gt;Can you share what you are trying to do and how you plan to use the nrf9160 and its features?&lt;br /&gt;&lt;br /&gt;How often do you plan to get a GPS fix? &lt;br /&gt;&lt;br /&gt;How important is power consumption? &lt;/p&gt;
[quote user="Ofir_A"]After I receive the AGPS data from the cloud how can I send modem to idle? (he goes to idle after 60 seconds and I want it to be less)[/quote]
&lt;p&gt;This can depend on the network, so idling will happen when PSM\eDRX is granted, and that is up to the network to decide. &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/391694?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 13:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:917e684e-dda4-4dcc-bb61-4e132b6e7fc5</guid><dc:creator>Ofir_A</dc:creator><description>[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/391473"]What modem firmware are you using?[/quote]
&lt;p&gt;Modem FW 1.3.2 SDK 1.9.1 SLM app&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/391473"]And can you take a modem trace and share it?[/quote]
&lt;p&gt;I&amp;#39;m not sure, I will try and post if I succeed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/92811/it-seems-that-gps-data-is-getting-deleted-when-sending-nrf-to-sleep-with-at-xsleep-1-command-agps-issue/390909"]using XSLEEP=1 does disable both UART, SLM service and the modem. Setting it two 2 instead only disables UART[/quote]
&lt;p&gt;We did try with CFUN=0 and then SLEEP=2 and it seems to work good with hot start after a first fix so we have another issue we need to solve.&lt;/p&gt;
&lt;p&gt;After I receive the AGPS data from the cloud how can I send modem to idle? (he goes to idle after 60 seconds and I want it to be less)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;* We come across another thing regarding hot start of GPS: after we do reset to nRF (pin reset) we loose some of the GPS data (after reset it take 30 seconds to get a fix), I guess it relates to the retained RAM&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666272242647v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="reset_behaviour__reuse_fn_RAM"&gt;&lt;/a&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;span&gt;&amp;nbsp;RAM can be configured to be retained using registers in&amp;nbsp;&lt;/span&gt;&lt;a class="xref" title="The volatile memory controller (VMC) provides power control of RAM blocks." href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/vmc.html#frontpage_vmc"&gt;VMC &amp;mdash; Volatile memory controller&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How can I program the code to retain the memory at the reset? (I think it should solve what we need)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/391473?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 14:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a173a4-2b73-462c-8ce4-f67c76aba2e7</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;What modem firmware are you using?&lt;br /&gt;&lt;br /&gt;And can you take a modem trace and share it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/391170?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 11:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fba1d50-86c0-4e60-88bb-ddcd65914b39</guid><dc:creator>Ofir_A</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply&lt;/p&gt;
&lt;p&gt;using XSLEEP=2 isn&amp;#39;t good for us because we want all the system to go to sleep and not only part of it (to reduce the consumption to minimum).&lt;/p&gt;
&lt;p&gt;Why the GPS data doesn&amp;#39;t saved to NVM or internal flash of the modem before going to sleep and then on wakeup to retrieve this data? is there a way to modify the SLM code in order to do so?&lt;/p&gt;
&lt;p&gt;Using EDRX and PSM isn&amp;#39;t an option at the moment and we using XSLEEP=1 so we need a way to save data and use hot fix after we wake up&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There are 2 more issues in this ticket:&lt;/p&gt;
&lt;p&gt;1. is there a way to reduce the time we need to wait for the modem to go idle after receiving the AGPS data from the cloud? (at the moment this is 1 minute of waiting before the GNSS look for a fix).&lt;/p&gt;
&lt;p&gt;2. sometime there are errors from the cloud and it seems the modem didn&amp;#39;t get the data, is there a way to overcome this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/390909?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 07:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a682b78-a70c-4b56-bdbd-ba990e6f13ef</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Update:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pleas see the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/Generic_AT_commands.html#power-saving-xsleep"&gt;documentation of the XSLEEP&lt;/a&gt;, using XSLEEP=1 does disable both UART, SLM service and the modem. Setting it two 2 instead only disables UART, and when the app-core/modem is not doing anything then it idles. &lt;br /&gt;&lt;br /&gt;So test with =2 and see if that solves the issue you have.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue</title><link>https://devzone.nordicsemi.com/thread/390850?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 19:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b94207ce-a219-4a2e-bea0-5268d4f5fb02</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Ofir,&lt;br /&gt;&lt;br /&gt;Looking in to this and will update you,&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>