<?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>A-GPS + RAI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89756/a-gps-rai</link><description>Hi! 
 In my application, I am receiving A-GPS data from nRF Cloud. After the data is received there is a considerable amount of time where the GNSS module is blocked because of the RRC Connected-to-idle timer. I am looking at implementing RAI to close</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jul 2022 07:36:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89756/a-gps-rai" /><item><title>RE: A-GPS + RAI</title><link>https://devzone.nordicsemi.com/thread/376121?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 07:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8ebbc7f-41f5-4f34-a8cf-746577063e6f</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="Torje"]And thank you for replying. I will thread carefully around implementing RAI.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;My pleasure, Torje :-)&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Torje"]Do you know if Nordic R&amp;amp;D has given thoughts to solving the RRC Idle Timer challenges when using nRF Cloud, and if handling the issues you mention can be solved by the modem in a future update? It seems to me that its potentially a quite impactful power saving feature. And Nordic would know the sequence of its most used Cloud requests, like collecting Cell or A/P-GPS data etc. If I could configure it to go to RCC Idle after A-GPS data is received, I would every time. And my guess is that this applies to many.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;Frankly, I don’t know. And I’m not sure if we in Nordic can do that much here neither. As already mentioned, the timer is configured by the carrier and not negotiable from the UEs side. &lt;/span&gt;&lt;span&gt;You should probably talk to the carrier itself and feedback them with this issue.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS + RAI</title><link>https://devzone.nordicsemi.com/thread/375963?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 09:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8b3eb0d-d749-40e5-b118-f813ee8be659</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;And thank you for replying. I will thread carefully around implementing RAI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you know if Nordic R&amp;amp;D has given thoughts to solving the RRC Idle Timer challenges when using nRF Cloud, and if handling the issues you mention can be solved by the modem in a future update? It seems to me that its potentially a quite impactful power saving feature. And Nordic would know the sequence of its most used Cloud requests, like collecting Cell or A/P-GPS data etc. If I could configure it to go to RCC Idle after A-GPS data is received, I would every time. And my guess is that this applies to many.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you again!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Torje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS + RAI</title><link>https://devzone.nordicsemi.com/thread/375957?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 08:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed9893b-13bc-4009-b848-faa080772dbb</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Torje,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]Do you have any tips as how to implement this power saving feature? Are there any good examples of it being done?[/quote]
&lt;p&gt;&lt;span&gt;The basics of the RAI feature functionality can be found in the documentation of the &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/rai.html"&gt;%RAI&lt;/a&gt; AT command.&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/rai.html"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;Additionally, the LTE Link Controller has a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/libraries/modem/lte_lc.html#c.lte_lc_rai_req"&gt;function&lt;/a&gt; that will request to enable its usage.&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/libraries/modem/lte_lc.html#c.lte_lc_rai_req"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It can also be configured as &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrfxlib/nrf_modem/doc/api.html#c.NRF_SO_RAI_NO_DATA"&gt;modem socket&lt;/a&gt; options.&lt;/span&gt;&lt;span&gt; The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf9160/modem_shell/README.html#socket-tool"&gt;nRF9160: Modem Shell&lt;/a&gt; sample supports RAI and that might give you an idea of how it can be implemented. Now, the functionality is spread to different files, but&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/modem_shell/src/link/link.c#L674"&gt;link.c&lt;/a&gt; and&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/modem_shell/src/sock/sock.c#L1180"&gt;sock.c&lt;/a&gt; should be a good starting point.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf9160/modem_shell/README.html#socket-tool"&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That being said, please be advised that I &lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;strong&gt;strongly not recommend&lt;/strong&gt;&lt;/span&gt; the usage of RAI with TCP. You are basically asking for trouble by doing so. Referring to a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75654/mqtt-service-cannot-work-when-rai-is-set/312620"&gt;post&lt;/a&gt; of my colleague Didrik Rokhaug, explaining some details in another customer case.&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What this means is that the application has to indicate to the modem via a flag that RAI shall be used. But the application cannot control the transmission sequences done by the modem, neither can the modem at any time since it depends a lot on the network and its signal quality/coverage. This can lead to a lot of switching between&amp;nbsp;RRC connected &amp;amp; RRC idle destroying the original intention, namely releasing earlier and thus saving power or releasing resources for other operations like in your case, GNSS.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I probably would do the following:&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Check if &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrfxlib/nrf_modem/doc/gnss_interface.html#enabling-gnss-priority-mode"&gt;GNSS priority mode&lt;/a&gt; could solve the issue you are facing instead.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Talk to the network provider regarding RRC connected to idle time.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;I hope this will help you.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>