<?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>RAI and Sockets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84986/rai-and-sockets</link><description>I&amp;#39;m testing a simple application based on the UDP example. It samples some peripherals and ADC channels, these values are then packed into a CoAP message. This CoAP message is sent trough the socket api, and the application waits for a response: 
 
 Create</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2022 12:15:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84986/rai-and-sockets" /><item><title>RE: RAI and Sockets</title><link>https://devzone.nordicsemi.com/thread/355806?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 12:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23b8bf97-75c7-43d0-a48e-00ea2d3d931d</guid><dc:creator>Hakon</dc:creator><description>[quote user="allard.p"]I got RAI working using the first option, but I wonder if I can also use the setsockopt version, because this will allow me to bind the RAI to specific sockets.[/quote]
&lt;p&gt;If you want to use the %RAI command, then you need to combine it with the socket option. You can test that, but I&amp;#39;m not 100% sure if this will work on rel 13.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAI and Sockets</title><link>https://devzone.nordicsemi.com/thread/354505?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 09:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f817f11c-3372-4f92-8202-6491ef6c93f0</guid><dc:creator>allard.p</dc:creator><description>&lt;p&gt;I got RAI working using the first option, but I wonder if I can also use the setsockopt version, because this will allow me to bind the RAI to specific sockets. Using lte_lc_rai_req(true); and lte_lc_rai_req(false); around socket send() is possible, bur prone to error because you can&amp;#39;t control when a packet is sent trough the modem.&amp;nbsp; I tried adding the setsockopt but it does nothing, does this only work with rel 14/NB-IOT2 RAI?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAI and Sockets</title><link>https://devzone.nordicsemi.com/thread/354221?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 20:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c469b32-c2d0-42b4-b02a-be2e0fb99b27</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;I use&lt;/p&gt;
&lt;p&gt;prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_UDP_RAI_ENABLE=y&lt;br /&gt;CONFIG_LTE_RAI_REQ_VALUE=&amp;quot;3&amp;quot;&lt;/p&gt;
&lt;p&gt;and in the code&lt;/p&gt;
&lt;p&gt;lte_lc_rai_req(true) or lte_lc_rai_req(false)&lt;/p&gt;
&lt;p&gt;For me that works quite well.&lt;/p&gt;
&lt;p&gt;There is also an other question about &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/83415/release-assistance-indication-rai/346844#346844"&gt;RAI&lt;/a&gt; with a more elaborated answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>