<?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>LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75419/lte-m-release-assistance-indication-rai-how-to-indicate</link><description>Regarding the new modem command AT%RAI, the documentation here says: 
 In addition to using the %RAI command, the application must tell when the data connection is not needed anymore through the application domain data socket interface. With the interface</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jan 2022 10:32:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75419/lte-m-release-assistance-indication-rai-how-to-indicate" /><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/346414?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 10:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa075c1e-df4f-4cbe-828a-e0f88acbc975</guid><dc:creator>ced27</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your request. Let just open a new Ticket.&lt;/p&gt;
&lt;p&gt;sorry for the inconvience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Cedric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/346407?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 10:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6e9e513-e680-4020-ba8c-97563a04a28a</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/ced27"&gt;ced27&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;We generally appriciate it if you open a new ticket, rather than commenting on several old ones.&lt;/p&gt;
&lt;p&gt;RAI is quite hard to use correctly, and might not be supported by the network. But in order to tell if it is, I will need the raw trace, not just the pcap.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/346357?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 07:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80bdc7ee-8f3b-4f67-863c-7f682d1ce582</guid><dc:creator>ced27</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Do you please have any insight on how i can implement RAI to shorten the RRC-Connected?&lt;/p&gt;
&lt;p&gt;Here is how i create the socket&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;err = setsockopt(sock, SOL_SOCKET, SO_RAI_LAST, NULL, 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is what i get:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ppk_2D00_20220106T075606.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;here is my modem trace:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_01_2D00_06T07_2D00_51_2D00_05.901Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_01_2D00_06T07_2D00_51_2D00_05.901Z.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it realistic from your point of view?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Cedric&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/345814?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 08:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01676b6e-bec4-4026-9c47-405a1c4b41cd</guid><dc:creator>ced27</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/crasspm"&gt;crasspm&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;can you please tell how you implemented your usage of RAI?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Cedric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/314255?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 14:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6a32239-a70f-404a-ad4c-90f4248d0a99</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, &lt;a href="https://devzone.nordicsemi.com/members/visu"&gt;visu&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Yes, I recommend that you stick with just one socket API at a time.&lt;/p&gt;
&lt;p&gt;The two socket APIs might use different numbers for the same socket (Zephyr&amp;#39;s API uses the nrf_socket API internally on the nRF9160), as well as different numbers for the same socket options.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/313806?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 06:01:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09ad6b4d-cb2e-43eb-9232-5e8e3c67cec2</guid><dc:creator>visu</dc:creator><description>&lt;p&gt;Hi, I have the same behaviour when I want to use the socket options, but when i close the socket right after sending it gets into rrc idle immediately, but I guess this is not the right way to do it..&lt;/p&gt;
&lt;p&gt;Do I have to use nrf_socket.h respectively nrf_socket/nrf_connect/nrf_send when using nrf_setsockopt?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/313166?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 14:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d975aedb-5c90-4f9b-883a-510368f01c09</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry for the late response.&lt;/p&gt;
&lt;p&gt;It took a while before I was able to test this myself.&lt;/p&gt;
&lt;p&gt;I also don&amp;#39;t see any difference between when I am setting the RAI flag and not.&lt;/p&gt;
&lt;p&gt;But, this feature is also dependent on the network supporting it. I don&amp;#39;t yet know if that is the case for my local network or not, but I have asked our modem team to see fi they can find out.&lt;/p&gt;
&lt;p&gt;Could you take a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html"&gt;modem trace&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;That will probably let us know if your network supports AS RAI or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/312210?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 18:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd53f7b2-2d67-48b6-bb87-5d8b67d9c508</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt; bumping this, any insight?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/311278?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 23:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88be2090-ec17-4f56-95ff-38569295f3fb</guid><dc:creator>crasspm</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ve tried out using various permutations of the RAI socket options without luck.&amp;nbsp; To give some perspective, here&amp;#39;s a typical current profile wave form of an HTTPS send and receive:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/PSM_5F00_wave.png" /&gt;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s ~20 seconds of RRC connected mode that I&amp;#39;m trying to get rid of.&amp;nbsp;&amp;nbsp;My assumption is that RAI should eliminate this.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m enabling REL14FEAT and RAI with the following AT commands before LTE connection:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AT%REL14FEAT=0,1,0,0,0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AT%RAI=1&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I then:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;lte_lc_psm_req()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;lte_lc_init()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;lte_lc_connect()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I then create a socket and configure with options:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_setsockopt(https_socket_fd, NRF_SOL_SOCKET, NRF_SO_RAI_LAST, NULL, 0)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_setsockopt(https_socket_fd, NRF_SOL_SOCKET, NRF_SO_RAI_ONE_RESP, NULL, 0)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;// tls configuration...&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;// connect&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I then send a packet and block for response, and finally free memory and close the socket.&lt;/p&gt;
&lt;p&gt;Should I see the 20s RRC connected mode stuff disappear?&amp;nbsp; It&amp;#39;s still there.&amp;nbsp; I have also tried:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; nrf_setsockopt(https_socket_fd, NRF_SOL_SOCKET, NRF_SO_RAI_NO_DATA, NULL, 0)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Immediately after receiving response and before closing the socket, and there&amp;#39;s no change.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Am I doing this right?&amp;nbsp; Also, should I expect the 20s of RRC connected mode to be removed using RAI? At the moment, fully disconnecting and turning off the modem, and then turning it on again (avoiding the 20s impulses) has a lower average current by about 35%.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M Release assistance indication (RAI): How to indicate?</title><link>https://devzone.nordicsemi.com/thread/311092?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 14:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2ca811a-1675-457d-9ee8-ebbde731c6f8</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In nrf_modem v1.1.0 we introduced a set of socket options for this purpose.&lt;/p&gt;
&lt;p&gt;You can find the options and their documentation in &lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/master/nrf_modem/include/nrf_socket.h#L506"&gt;nrf_socket.h&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that they currently are only available on the master branch.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>