<?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>SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97767/so_rai_no_data-still-does-not-cause-rrc-release</link><description>Issue is related to 
 Just after AT#XSOCKETOPT=1,50 modem should negotiate RRC Release, but it is not the case. 
 NCS v2.3 nrf9160_1.3.4 Serial LTE Modem, prj.conf changes: CONFIG_SLM_START_SLEEP=y CONFIG_SLM_WAKEUP_PIN=6 CONFIG_SLM_INDICATE_PIN=2 CONFIG_SLM_DATAMODE_URC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Apr 2023 10:46:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97767/so_rai_no_data-still-does-not-cause-rrc-release" /><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420726?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 10:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90dd6a95-35e7-48d5-a03f-dd7e9df04aec</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; UDP is non-reliable protocol.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;UDP is the &lt;strong&gt;MOST&lt;/strong&gt; reliable base for an upper protocol running over cellular modems using NB-IoT! The most serious upper protocols based on UDP do a much better job with NB-IoT and are much more reliable than TCP when running over NB-IoT.&lt;/p&gt;
&lt;p&gt;TCP handles &amp;quot;congestion control&amp;quot; and &amp;quot;message drops&amp;quot; internally, but that depends a lot on additional messages and the timings. The generally assumed times are far away from the times of NB-IoT and that causes then a lot of retransmissions. So the only thing you get reliable using TCP over NB-IoT is a lot more data ;-)&lt;/p&gt;
&lt;p&gt;&amp;gt; Typically, the assumption could be made that single UL UDP has left the modem when modem switches to RRC_IDLE.&lt;/p&gt;
&lt;p&gt;For a useful congestion control of the radio layer, the event, that a message is sent by the radio layer helps a lot. Other modems offer that.&lt;/p&gt;
&lt;p&gt;Using the RRC Idle event doesn&amp;#39;t really help in that case. RRC IDLE is reached, if no more data is to be exchanged. That&amp;#39;s either indicated by RAI (therefore all this discussion) or when the network&amp;#39;s RRC Active Timer expires. It&amp;#39;s not usable for the mentioned bulk transfer.&lt;/p&gt;
&lt;p&gt;I guess, if you ask the modem developers, there is a number of messages, which are queued and send one after the other. But the exact implementation is not documented. And for many applications it&amp;#39;s better to have a feedback, how fast actually the messages are sent in order to do the queuing in a more specific way in the application. Maybe using POSIX poll with POLLOUT works, but AFAIK, that is missing in the documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420717?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 10:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534c5ea6-cb26-48b8-ba9d-245052465f05</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/97767/so_rai_no_data-still-does-not-cause-rrc-release/420706"]UDP is non-reliable protocol. Therefore, the information that UDP message left the modem would not guarantee anything or give any additional information. Typically, the assumption could be made that single UL UDP has left the modem when modem switches to RRC_IDLE.[/quote]
&lt;p&gt;Yes, UDP is non-reliable as any datagram, but available information for data transfer timings has to be passed to the application.&lt;br /&gt;Assumption can not be made on RRC_IDLE, because in such case link speed could not be utilized, i.e. such an approach wastes energy.&lt;/p&gt;
&lt;p&gt;For good energy management, it is essential to know whether packet dropping occurs/does not occur in the device, as this information is inherently available to the device.&lt;br /&gt;Another possibility is a statistical estimation, which needs to be based on the current line rate, which is known by the modem but not by the application, which needs to do the transmission timing, so the modem has to pass the information about the current line rate.&lt;/p&gt;
&lt;p&gt;How does the application know that the packet is not dropped in the modem?&lt;/p&gt;
&lt;p&gt;How does the application know what the current line rate is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420707?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 09:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a087b811-8312-4927-b29f-65fd9ec732f7</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="michalm"]Do I understand well, that ONE_RESP with R14 AS-RAI is not useful at all for power consumption optimization?[/quote]
&lt;p&gt;This is correct. This is the reason for the recommendation that NO_DATA should be used after receiving the response.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420706?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 09:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946b5f55-057b-45e9-8e0a-23db65f02d0d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;UDP is non-reliable protocol. Therefore, the information that UDP message left the modem would not guarantee anything or give any additional information. Typically, the assumption could be made that single UL UDP has left the modem when modem switches to RRC_IDLE.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420582?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 20:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c1aad66-2aa3-469c-b71f-0b79bb1838c7</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>[quote userid="5203" url="~/f/nordic-q-a/97767/so_rai_no_data-still-does-not-cause-rrc-release/420392"]I log a couple of modem events and measure some times. If the time from &amp;quot;RRC idle&amp;quot; to &amp;quot;enter sleep&amp;quot; is significant larger than the actual PSM RAT, then something prevents the modem from &amp;quot;enter sleep&amp;quot; in time. One of such &amp;quot;something&amp;quot; is a HPPLMN search.[/quote]
&lt;p&gt;Clever idea, I&amp;#39;ll use that, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420581?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 20:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9672e72-a7b1-4949-aa36-7669722a4855</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;I am interested in that also, because there is not ANY signaling to the application, that send buffers are free to obtain another datagram. In case of bulk transfer through UDP, the application has to estimate the actual link transfer rate only based on lost datagrams. That is an extremely unfriendly technique for power saving. The application should be aware, whether the next datagram to be sent will or will not be dropped inside the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420579?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 20:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a2fb54-b7f6-4d54-9a6f-3eacfbe1f622</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/97767/so_rai_no_data-still-does-not-cause-rrc-release/419798"]ONE_RESP + UDP does not deliver the expected result with R14 AS-RAI, since the R14 AS-RAI has no capability to signal such combination. With AS-RAI, the UE can only inform the network &amp;quot;more data expected&amp;quot;. It is in R16 when 3GPP defines AS-RAI to be at the same expression level as CP-RAI.[/quote]
&lt;p&gt;Do I understand well, that ONE_RESP with R14 AS-RAI is not useful at all for power consumption optimization?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420551?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 14:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a01aa9-9109-4b14-88b8-09c33b776f88</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;If you use SO_RAI_NO_DATA with SO_RAI_ONE_RESP, you would not need to know when UDP packet has been sent.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420392?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 07:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71ce2b04-eb25-49e0-b9a1-ae62b6d20956</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; I believe, HPPLMN search does not take place in case of modem lock, it is in the AT flow:&lt;br /&gt;&amp;gt; AT+COPS=1,2,&amp;quot;23003&amp;quot;&lt;br /&gt;&amp;gt; Do you have another experience?&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right! I overseen, that you lock the provider. With a locked PLMN I haven&amp;#39;t observed HPPLMN searches. To lock the PLMN is the from Nordic recommended way to prevent HPPLMN searches (there was also one statement with the opposite, but the last was, lock the PLMN to prevent HPPLMN searches, if that is possible for your use-case).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;gt; Can you explain&amp;nbsp;&lt;span&gt;&amp;quot;sleep event&amp;quot; is delayed (in my case about 60s) please?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;I log a couple of modem events and measure some times. If the time from &amp;quot;RRC idle&amp;quot; to &amp;quot;enter sleep&amp;quot; is significant larger than the actual PSM RAT, then something prevents the modem from &amp;quot;enter sleep&amp;quot; in time. One of such &amp;quot;something&amp;quot; is a HPPLMN search.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Anyway, your original ticket was about AS-RAI.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;If you read my comments and the answers from dejans, there is a lot implemented in the back, which should ensure the function, but seems for me to be not that easy to understand. I opened therefore an &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/98544/please-consolidate-nrf9160-documentation-about-cp-rai-and-as-rai"&gt;other ticket .&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Requesting AS-RAI, connecting the socket and using &amp;quot;SO_RAI_LAST&amp;quot; or both &amp;quot;SO_RAI_ONE_RESP&amp;quot; and &amp;quot;SO_RAI_NO_DATA&amp;quot; works in my networks with both, AS-RAI and CP-RAI fallback. But for cases, where&amp;nbsp; SO_RAI_ONE_RESP/SO_RAI_LAST doesn&amp;#39;t match the application&amp;#39;s expectation, it can&amp;#39;t work. I checked the function with the PPK II and the time, between the last data (sent or received) and &amp;quot;RRC idle&amp;quot;. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;(In my experience it&amp;#39;s again important to analyze the modem events. And, as I wrote in other tickets, it would help a lot, if the modem events would be more complete, e.g. a event which reports a HPPLMN search. Or in this case, extending the &amp;quot;PSM Update&amp;quot; with more details.)&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/420356?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 00:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fedb37c-60ac-466a-92e9-fcb1bc691e08</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>[quote userid="5203" url="~/f/nordic-q-a/97767/so_rai_no_data-still-does-not-cause-rrc-release/416497"]&lt;p&gt;&lt;span&gt;&amp;quot;COPS?&amp;quot; reports in your log PLMN 23003, and not 90123. I understand of course your writing and your interpretation, I share that. But, if you read carefully the link to the other discussion I provided, you will see, Nordic has a different interpretation! Since mfw 1.3.2 Nordic DOES a HPPLMN search for the &amp;quot;90123&amp;quot;, because &amp;quot;23003&amp;quot; is not the same. It depends now mainly on your search interval, how often that happen. And you select the bands, so the search may be faster. But again, Nordic decided with mfw 1.3.2 to search for the &amp;quot;90123&amp;quot;, if &amp;quot;23003&amp;quot; is reported as PLMN.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My IMSI starts with&amp;nbsp;90140 and my reported PLMN was 26201. With a search interval of 2h, I can see such a HPPLMN search every 2h. Unfortunately, you don&amp;#39;t get events for that, you only see the larger power consumption and the &amp;quot;sleep event&amp;quot; is delayed (in my case about 60s).&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Thank you for letting me know, I was not aware of the change in mfw 1.3.2.&lt;/p&gt;
&lt;p&gt;I believe, HPPLMN search does not take place in case of modem lock, it is in the AT flow:&lt;br /&gt;AT+COPS=1,2,&amp;quot;23003&amp;quot;&lt;br /&gt;Do you have another experience?&lt;/p&gt;
&lt;p&gt;BTW modem reports always 23003 by COPS?&lt;br /&gt;SIM&amp;nbsp;HPPLMN search interval is 10 hours.&lt;br /&gt;SIM&amp;nbsp;&lt;span style="font-weight:400;"&gt;EF OPLMNwAcT is a strange list of various Vodafone country networks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Can you explain&amp;nbsp;&lt;span&gt;&amp;quot;sleep event&amp;quot; is delayed (in my case about 60s) please?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/419861?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 07:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0689f9-5670-42d6-9b8f-a777de008f0c</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Using both,&amp;nbsp;SO_RAI_ONE_RESP and SO_RAI_NO_DATA , it works now with Rel 14 AS-RAI and the fallback to Rel 13 CP-RAI. Nice.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t use the SO_RAI_LAST, but there I miss a event as &amp;quot;message sent&amp;quot;, in order to use then the SO_RAI_NO_DATA.&lt;/p&gt;
&lt;p&gt;Is there a possibility to check, if a UDP message was actually sent?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/419803?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 17:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab442b7e-fc08-4e42-8bf3-f3c947be9085</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Hi Dejans,&lt;/p&gt;
&lt;p&gt;using both ONE_RESP and NO_DATA looks more like a work-around and in my opinion requires explicit documentation.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Achim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/419798?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 15:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ee2ca37-ff14-4629-84bf-083cb3c125fc</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AchimKraus"]In which case is a device able to use R14 AS-RAI with SO_RAI_ONE_RESP?[/quote]
&lt;p&gt;ONE_RESP + UDP does not deliver the expected result with R14 AS-RAI, since the R14 AS-RAI has no capability to signal such combination. With AS-RAI, the UE can only inform the network &amp;quot;more data expected&amp;quot;. It is in R16 when 3GPP defines AS-RAI to be at the same expression level as CP-RAI.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="AchimKraus"]If, in difference to your comment 4 days ago, R14 AS-RAI doesn&amp;#39;t support SO_RAI_ONE_RESP, how does the application know, that the device didn&amp;#39;t fallback and SO_RAI_ONE_RESP must not be used?[/quote]
&lt;p&gt;Application has no way of finding this out. A safe way to use R14 AS-RAI so that the same code works with M1 and NB is to always issue setsockopt() with NO_DATA after receiving the reply UE is waiting for.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="AchimKraus"]The device uses the same setup as for ONE-RESP, which is working. Is SO_RAI_NO_DATA working with CP-RAI? If not, how does the application know, that the modem fallback to CP-RAI and the application must not use SO_RAI_NO_DATA?[/quote]
&lt;p&gt;&lt;span&gt;CP-RAI is only available with NB-IOT.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;If the UE does setsockopt() with ONE_RESP, sends data and after receiving a response from the network does setsockopt() with NO_DATA, the UE may trigger AS-RAI related BSR=0 signaling to the network (depending on whether the UE has uplink grant to do this or not). In this case, either CP-RAI or AS-RAI triggers the immediate release although the UE does not know which one of the two caused the release to happen.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/418688?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 21:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ccc4ff5-e91c-4a6b-841a-0d94d6f90b40</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;all examples use the same application setup code.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see, how the application should know the extra info, which explains the result. But without that extra info it seems to be impossible to implement a working application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;26202, with AS-RAI&lt;/p&gt;
&lt;p&gt;4 days ago you wrote:&lt;/p&gt;
&lt;p&gt;&amp;gt; Modem supports AS RAI and that includes both SO_RAI_ONE_RESP and SO_RAI_NO_DATA.&lt;/p&gt;
&lt;p&gt;Now you write.&lt;/p&gt;
&lt;p&gt;&amp;gt; The issue here is that since R14 AS-RAI, SO_RAI_ONE_RESP + UDP transmission does not trigger signaling from UE to the network which could accelerate connection release. After receiving response, UE should use SO_RAI_NO_DATA socket option to the socket in order to tell the socket that there is no more data expected.&lt;/p&gt;
&lt;p&gt;In which case is a device able to use R14 AS-RAI with SO_RAI_ONE_RESP?&lt;/p&gt;
&lt;p&gt;If, in difference to your comment 4 days ago, R14 AS-RAI doesn&amp;#39;t support SO_RAI_ONE_RESP, how does the application know, that the device didn&amp;#39;t fallback and SO_RAI_ONE_RESP must not be used?&lt;/p&gt;
&lt;p&gt;26201, fallback to CP-RAI&lt;/p&gt;
&lt;p&gt;&amp;gt; UE is never asked from the network for the RAI support.&lt;/p&gt;
&lt;p&gt;The device uses the same setup as for ONE-RESP, which is working. Is SO_RAI_NO_DATA working with CP-RAI? If not, how does the application know, that the modem fallback to CP-RAI and the application must not use SO_RAI_NO_DATA?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/418674?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 17:16:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a874348-f720-4082-8e69-91aff4a2787f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AchimKraus"]Telekom 26201, NB-IoT, AS-RAI?, ONE-RESP =&amp;gt; working[/quote]
&lt;p&gt;In this case, R14 AS-RAI is not enabled but R13 CP-RAI is used.&lt;/p&gt;
[quote user="AchimKraus"]Telekom 26201, NB-IoT, AS-RAI?, NO-DATA =&amp;gt; not working[/quote]
&lt;p&gt;UE is never asked from the network for the RAI support. Therefore, UE never signals to the network whether it supports AS-RAI or not. As a result, R14 AS-RAI is not enabled from the network to the UE.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/418673?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 16:58:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c48c615-031c-454f-a368-237ff6bcb631</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AchimKraus"]&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;26202, LTE-M, AS-RAI, NO_DATA =&amp;gt; working&lt;/p&gt;[/quote]
&lt;p&gt;The trace show that R14 AS-RAI is supported.&lt;/p&gt;
[quote user="AchimKraus"]26202, LTE-M, AS-RAI, ONE_RESP =&amp;gt; not working[/quote]
&lt;p&gt;The issue here is that since R14 AS-RAI, SO_RAI_ONE_RESP + UDP transmission does not trigger signaling from UE to the network which could accelerate connection release. After receiving response, UE should use SO_RAI_NO_DATA socket option to the socket in order to tell the socket that there is no more data expected.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/418057?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 10:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a0e01ab-8403-415f-8f18-2a07d4f92750</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;I also prepared traces for Telekom 26201, NB-IoT, AS-RAI.&lt;/p&gt;
&lt;p&gt;According &lt;a href="https://www.gsma.com/iot/wp-content/uploads/2023/03/GSMA-Mobile-IoT-Roaming-Features_Final_08.09.2022-NB-IoT.xlsx"&gt;GSMA Mobile IoT Roaming Features Final 08.09.2022 NB-IoT&lt;/a&gt; 26201 supports AS-RAI. Let me know, if the traces show the opposite.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Telekom 26201, NB-IoT, AS-RAI?, ONE-RESP =&amp;gt; working&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2023_2D00_03_2D00_29_5F00_NB_2D00_IOT_2D00_ONE_2D00_RESP.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2023_2D00_03_2D00_29_5F00_NB_2D00_IOT_2D00_ONE_2D00_RESP.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Telekom 26201, NB-IoT, AS-RAI?, NO-DATA =&amp;gt; not working&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2023_2D00_03_2D00_29_2D00_NB_2D00_IoT_2D00_RAI_2D00_NO_2D00_DATA.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2023_2D00_03_2D00_29_2D00_NB_2D00_IoT_2D00_RAI_2D00_NO_2D00_DATA.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417941?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 15:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2069ff7-f468-493a-8849-1393a491e228</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;And that fallback to R13 RAI supports also the &amp;quot;setsockopt&amp;quot; but not the parameter SO_RAI_NO_DATA?&lt;/p&gt;
&lt;p&gt;And, if Vodafone 26202 LTE-M works with&amp;nbsp; SO_RAI_NO_DATA, why doesn&amp;#39;t it work with SO_RAI_ONE_RESP?&lt;/p&gt;
&lt;p&gt;Edited:&lt;/p&gt;
&lt;p&gt;To my very surprise, this morning Vodafone 26202 LTE-M works with SO_RAI_ONE_RESP as well.&lt;/p&gt;
&lt;p&gt;:-) More edited: :-)&lt;/p&gt;
&lt;p&gt;That &amp;quot;success&amp;quot; was only a short one. It was the result from some configuration &amp;quot;leftovers&amp;quot; (switching between XRAI and RAI). It didn&amp;#39;t work for a second request. And it doesn&amp;#39;t work with a clean setup.&lt;/p&gt;
&lt;p&gt;Therefore the captures:&lt;/p&gt;
&lt;p&gt;26202, LTE-M, AS-RAI, ONE_RESP =&amp;gt; not working&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2023_2D00_03_2D00_29_2D00_LTE_2D00_M_2D00_AS_2D00_RAI_2D00_ONE_5F00_RESP.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2023_2D00_03_2D00_29_2D00_LTE_2D00_M_2D00_AS_2D00_RAI_2D00_ONE_5F00_RESP.bin&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;26202, LTE-M, AS-RAI, NO_DATA =&amp;gt; working&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2023_2D00_03_2D00_29_2D00_LTE_2D00_M_2D00_AS_5F00_RAI_2D00_NO_5F00_DATA.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2023_2D00_03_2D00_29_2D00_LTE_2D00_M_2D00_AS_5F00_RAI_2D00_NO_5F00_DATA.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417925?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 14:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:544b18c7-075a-47ca-95cb-687f6e8afd44</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AchimKraus"]If e.g. Vodafone 26202 NB-IoT doesn&amp;#39;t support AS RAI, why does then SO_RAI_ONE_RESP work? Isn&amp;#39;t the point, that in some cases SO_RAI_ONE_RESP works, and in other SO_RAI_NO_DATA. But not both, SO_RAI_ONE_RESP and SO_RAI_NO_DATA, in the same case?[/quote]
&lt;p&gt;There are 2 mechanisms for RAI - R13 RAI which works on control plane (and it is practically supported everywhere) and AS-RAI which has both user and control plane data. In NB-IoT case, both RAI are in use, which means that in case R14-AS RAI is not found, R13 RAI is used. Cat-M1 only supports R14 AS-RAI, and this is the only option that can be used. Typically, when both R13 and R14 RAI are supported, R14 AS-RAI takes precedence.&lt;br /&gt;&lt;br /&gt;The trace from initial question has been taken from NB-IoT with no PDU for which control plane RAI could be applied. This leaves only R14 AS-RAI as a possible option. Since AS-RAI is not supported by the network, then no RAI is possible. It does not really matter whether SO_RAI_ONE_RESP or SO_RAI_NO_DATA is used because there is no way of reporting anything to the network.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417737?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 15:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ca9d00f-8314-4cee-93a5-1bc986bf4b57</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; Could you provide information how you tested AS RAI functionality?&lt;/p&gt;
&lt;p&gt;Well, the difference in the test is to either call setsockopt with SO_RAI_ONE_RESP before sending an request and receiving an response, or to call setsockopt with SO_RAI_NO_DATA after the response. What should someone make wrong in the setup, which makes the one working, but the other not?&lt;/p&gt;
&lt;p&gt;&amp;gt; Could you please confirm that networks mentioned in your table support RAI?&lt;/p&gt;
&lt;p&gt;If e.g. Vodafone 26202 NB-IoT doesn&amp;#39;t support AS RAI, why does then SO_RAI_ONE_RESP work? Isn&amp;#39;t the point, that in some cases SO_RAI_ONE_RESP works, and in other SO_RAI_NO_DATA. But not both, SO_RAI_ONE_RESP and SO_RAI_NO_DATA, in the same case?&lt;/p&gt;
&lt;p&gt;&amp;gt; Modem supports AS RAI and that includes both SO_RAI_ONE_RESP and SO_RAI_NO_DATA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s see, what other users report.&lt;/p&gt;
&lt;p&gt;All together:&lt;/p&gt;
&lt;p&gt;There is nothing a user could provide, which is not already provided.&lt;/p&gt;
&lt;p&gt;I guess, this mystery can only be enlightened by Nordic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417714?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 14:01:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31fbe43d-0694-485c-8867-350fca3687d4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AchimKraus"]&lt;p&gt;I&amp;#39;m located in Germany, using a nRF9160-DK v1.1.0, SICA B1A, mfw_nrf9160_1.3.4, ncs-2.3.0 my results are:&lt;/p&gt;
&lt;div style="max-width:100%;overflow:auto;max-height:none;"&gt;&lt;table height="150" width="503"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;SO_RAI_ONE_RESP&lt;/td&gt;
&lt;td&gt;SO_RAI_NO_DATA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Telekom 26201, NB-IoT&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Telekom 26201, CAT-M1&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vodafone 26202, NB-IoT&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vodafone 26202, CAT-M1&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, in my test, SO_RAI_ONE_RESP is working only with NB-IoT, and SO_RAI_NO_DATA with LTE-M.&lt;/p&gt;
&lt;p&gt;For me this requires a real clarification from Nordic, which combinations are intended to work or not. It may be &amp;quot;clear reading a couple of 100 pages of 3GPP&amp;quot;, but if that outcome is documented, that would help the most users much more.&lt;/p&gt;[/quote]
&lt;p&gt;Could you provide information how you tested AS RAI functionality? Could you please confirm that networks mentioned in your table support RAI?&lt;br /&gt;&lt;br /&gt;Modem supports AS RAI and that includes both SO_RAI_ONE_RESP and SO_RAI_NO_DATA.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417651?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 11:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e1fe004-0d35-4b01-954d-797dbba6c2c6</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; AS RAI cannot be used if network does not support it.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s again just simplified.&lt;/p&gt;
&lt;p&gt;The impression is: AS RAI is not AS RAI, there are flavors.&lt;/p&gt;
&lt;p&gt;If AS RAI with SO_RAI_ONE_RESP works, but in the same network SO_RAI_NO_DATA doesn&amp;#39;t work, there is more to say than that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417649?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 11:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fdbfbec-14ae-4903-9843-8826f8d5b447</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; Does SO_RAI_NO_DATA work in both CAT-M1 cases or only in one as shown in your table?&lt;/p&gt;
&lt;p&gt;Only in one, with 26202 it works, with 26201 it doesn&amp;#39;t. The setup is the same for both.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve prepared some captures of both.&lt;/p&gt;
&lt;p&gt;With 26201 there is an additional &amp;quot;MeasurementReport&amp;quot;. Both shows a &amp;quot;RRCConnectionReconfiguration&amp;quot;, but the &amp;quot;SO_RAI_NO_DATA&amp;quot; is always set after receiving the &amp;quot;Application Data&amp;quot; so a can&amp;#39;t see the relation to that.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/as_5F00_rai_5F00_no_5F00_data_5F00_26201.pcapng.gz"&gt;devzone.nordicsemi.com/.../as_5F00_rai_5F00_no_5F00_data_5F00_26201.pcapng.gz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/as_5F00_rai_5F00_no_5F00_data_5F00_26202.pcapng.gz"&gt;devzone.nordicsemi.com/.../as_5F00_rai_5F00_no_5F00_data_5F00_26202.pcapng.gz&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417647?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 11:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b05ac89-9eef-4b55-a232-4de780af782a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;AS RAI cannot be used if network does not support it.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SO_RAI_NO_DATA still does not cause RRC release</title><link>https://devzone.nordicsemi.com/thread/417646?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 11:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7d889ce-e4fe-479d-b376-9cd2ea5f0e54</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AchimKraus"]So, in my test, SO_RAI_ONE_RESP is working only with NB-IoT, and SO_RAI_NO_DATA with LTE-M.[/quote]
&lt;p&gt;Does SO_RAI_NO_DATA work in both CAT-M1 cases or only in one as shown in your table?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>