<?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>Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91314/can-not-use-nrf_so_rai_last-with-slm-nrf9160</link><description>SLM returns ERROR after AT#XSOCKETOPT=1,51 NRF_SO_RAI_LAST https://github.com/nrfconnect/sdk-nrfxlib/blob/main/nrf_modem/include/nrf_socket.h#L218 
 SLM returns OK for AT#XSOCKETOPT=1,50 or AT#XSOCKETOPT=1,52. 
 NCS 2.0.2 Serial LTE Modem nRF9160DK 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Oct 2022 11:19:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91314/can-not-use-nrf_so_rai_last-with-slm-nrf9160" /><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/391169?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 11:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07df6b5d-f2c0-4de4-9e22-a96b9232e3d4</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;They commented;&lt;/p&gt;
&lt;p&gt;Basically, afaik RAI_NO_DATA sends a dummy packet with an indication to the NW.&lt;br /&gt; The problem is that the UDP socket is not connected, so libmodem doesn&amp;#39;t know who to send the message to and -EDESTADDREQ is returned (as expected).&lt;br /&gt; The solution is to connect the UDP socket thus setting the default destination for the datagram.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/390432?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 11:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55fb4aa4-f9b9-4636-8500-3ca49690ad8d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I have notified the modem team.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/390102?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 19:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a3e555a-d7a4-4c34-8398-f062bc9fc433</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;With prj.conf&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_DEFAULT_LEVEL&lt;/span&gt;&lt;span&gt;=4&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I got:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:00:00.487,182] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace tread ready
00&amp;gt; [00:00:00.494,537] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace level override: 2
00&amp;gt; *** Booting Zephyr OS build v3.1.99-ncs1  ***
00&amp;gt; 
00&amp;gt; [00:00:00.499,114] &amp;lt;inf&amp;gt; slm: Serial LTE Modem
00&amp;gt; [00:00:00.599,792] &amp;lt;inf&amp;gt; slm_at_host: at_host init done
00&amp;gt; [00:00:07.324,645] &amp;lt;inf&amp;gt; slm: Exit idle
00&amp;gt; [00:00:12.081,817] &amp;lt;err&amp;gt; slm_sock: setsockopt(50) error: -121&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/390038?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 13:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:817a2ec8-69db-4c27-8edd-ef794d3da283</guid><dc:creator>Hakon</dc:creator><description>[quote user="michalm"]Did you (or modem team) tried to replicate issue?[/quote]
&lt;p&gt;At the moment there seems to be a lack of SIM cards supporting the RAI functionality in the office, so I haven&amp;#39;t been able to reproduce it. I will let you know if I can obtain one.&lt;/p&gt;
[quote user="michalm"]I will try to collect DBG, but there were another issue preventing that.[/quote]
&lt;p&gt;You can also run the code through a debugger if that&amp;#39;s a better option for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/390018?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 12:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fdc2076-160e-4dee-a504-b7694858ffc4</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Are you (or modem team) able to use&amp;nbsp;&lt;span&gt;AT#XSOCKETOPT=1,50 in any working scenario without ERROR?&lt;br /&gt;&lt;br /&gt;How do you test&amp;nbsp;AT#XSOCKETOPT=1,50 before SLM release?&lt;br /&gt;&lt;br /&gt;Did you (or modem team) tried to replicate issue?&lt;br /&gt;&lt;br /&gt;I will try to collect DBG, but there were another issue preventing that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/389986?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 11:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b4764f7-548a-4e98-b722-959c11333723</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;You will need to to turn on logging in the application and put the log level to DBG.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/389985?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 11:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c94dca37-52dc-4200-b961-ec63dea87fac</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;That&amp;#39;s fine. Are you gonna answer my question or not? I asked what function is returning the error, not what at cmd returns the error. Again, the modem team wants to know this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/389962?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 09:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ece45b4d-6130-41b8-b7b7-349d399f4ad9</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;it is clear from AT dialogue, as you can see it in ticket already:&lt;br /&gt;16.38 [TX] AT#XSOCKETOPT=1,50&lt;br /&gt; 16.38 [RX] ERROR&lt;/p&gt;
&lt;p&gt;Why do you struggle to see that?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SO_RAI_LAST and&amp;nbsp;SO_RAI_ONE_RESP works fine.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/389955?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 08:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f7a23f1-afa5-43f5-95a4-d9a4d15982ac</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;The modem team wants to know which function call is returning the error. Are you able to identify this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/389502?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 01:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd96ec51-dd31-44ca-b002-2214a700a787</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Sure, attached.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_10_2D00_06T01_2D00_40_2D00_20.128Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_10_2D00_06T01_2D00_40_2D00_20.128Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[PPK2] DUT Powered, Measurement started
   0.15 &amp;lt;RESET&amp;gt; Thu Oct  6 03:40:23 2022
   1.02 [PPK2] 100k/s AVG   4.27 mA    Max  34.0  mA
   1.25 &amp;lt;INDICATE transition&amp;gt; -&amp;gt; High
   2.02 [PPK2] 100k/s AVG   2.75 mA    Max  30.5  mA
   3.02 [PPK2] 100k/s AVG   0.002mA    Max   0.008mA
   4.03 [PPK2] 100k/s AVG   0.002mA    Max   0.008mA
   5.02 [PPK2] 100k/s AVG   0.002mA    Max   0.008mA
   5.05 &amp;lt;WAKEUP&amp;gt;
   6.03 [PPK2] 100k/s AVG   1.33 mA    Max  24.3  mA
   6.42     [RX] Ready
   6.42 [TX] AT
   6.44     [RX] OK
   6.44 [TX] AT%XMODEMTRACE=1,2
   6.45     [RX] OK
   6.45 [TX] AT%MDMEV=1
   6.46     [RX] OK
   6.46 [TX] AT%HWVERSION
   6.47     [RX] %HWVERSION: nRF9160 SICA BQA
   6.47     [RX] OK
   6.47 [TX] AT%SHORTSWVER
   6.48     [RX] %SHORTSWVER: nrf9160_1.3.2
   6.48     [RX] OK
   6.48 [TX] AT#XSLMVER
   6.49     [RX] #XSLMVER: &amp;quot;2.1.0&amp;quot;
   6.49     [RX] OK
   6.49 [TX] AT%XPOFWARN=1,30
   6.51     [RX] OK
   6.51 [TX] AT%XSYSTEMMODE=0,1,0,0
   6.51     [RX] OK
   6.51 [TX] AT%REL14FEAT=1,1,1,1,0
   6.52     [RX] OK
   6.52 [TX] AT+CNEC=24
   6.54     [RX] OK
   6.54 [TX] AT+CMEE=1
   6.54     [RX] OK
   6.54 [TX] AT+CEPPI=1
   6.56     [RX] OK
   6.56 [TX] AT%RAI=1
   6.57     [RX] OK
   6.57 [TX] AT%XDATAPRFL=0
   6.57     [RX] OK
   6.59 [TX] AT%XNETTIME=1
   6.59     [RX] OK
   6.59 [TX] AT%XSIM=1
   6.61     [RX] OK
   6.61 [TX] AT+CEREG=5
   6.61     [RX] OK
   6.61 [TX] AT+CGEREP=1
   6.62     [RX] OK
   6.62 [TX] AT+CSCON=1
   6.64     [RX] OK
   6.64 [TX] AT%XTIME=1
   6.64     [RX] OK
   6.64 [TX] AT%XMODEMSLEEP=1,0,10240
   6.66     [RX] OK
   6.66 [TX] AT+CPSMS=1,,,&amp;quot;00111000&amp;quot;,&amp;quot;00000000&amp;quot;
   6.66     [RX] %XMODEMSLEEP: 4
   6.67     [RX] OK
   6.67 [TX] AT#XSLEEP=2
   6.67     [RX] OK
   7.02 [PPK2] 100k/s AVG   4.32 mA    Max  30.5  mA
   8.02 [PPK2] 100k/s AVG   0.025mA    Max   4.53 mA
   9.01 [PPK2] 100k/s AVG   0.021mA    Max   0.032mA
  10.01 [PPK2] 100k/s AVG   0.021mA    Max   0.032mA
  10.81 [PPK2] ====== SUM: INIT   0.004uA/h ======
  11.59 &amp;lt;WAKEUP&amp;gt;
  11.59     [RX] Ready
  11.69 [TX] AT%XMODEMTRACE=1,2
  11.71     [RX] OK
  11.71 [TX] AT%XBANDLOCK=1,&amp;quot;0000000000000000000000000000000000000000000000000000000000001000000010000000100010011010&amp;quot;
  11.74     [RX] OK
  11.74 [TX] AT+COPS=1,2,&amp;quot;23003&amp;quot;
  11.76     [RX] OK
  11.76 [TX] AT+CGDCONT=1,&amp;quot;IP&amp;quot;,&amp;quot;hardwario.com&amp;quot;
  11.76     [RX] OK
  11.76 [TX] AT+CFUN=1
  11.81     [RX] OK
  11.81     [RX] %XMODEMSLEEP: 4,0
  12.01 [PPK2] 100k/s AVG   5.65 mA    Max  51.2  mA
  12.73     [RX] %XSIM: 1
  12.73 [TX] AT+CGSN
  12.73     [RX] 352656106109476
  12.73     [RX] OK
  12.73 [TX] AT+CIMI
  12.74     [RX] 901288000012723
  12.74     [RX] OK
  13.01 [PPK2] 100k/s AVG  33.3  mA    Max  42.3  mA
  14.01 [PPK2] 100k/s AVG  31.2  mA    Max 383mA
  14.65     [RX] +CEREG: 2,&amp;quot;AE38&amp;quot;,&amp;quot;000AC51F&amp;quot;,9
  14.99     [RX] +CSCON: 1
  15.01 [PPK2] 100k/s AVG  26.7  mA    Max 1021mA
  16.02 [PPK2] 100k/s AVG  37.2  mA    Max 256mA
  16.31     [RX] +CGEV: ME PDN ACT 0,0
  16.31     [RX] +CNEC_ESM: 50,0
  16.31     [RX] %MDMEV: SEARCH STATUS 2
  16.31     [RX] +CEREG: 5,&amp;quot;AE38&amp;quot;,&amp;quot;000AC51F&amp;quot;,9,,,&amp;quot;00000000&amp;quot;,&amp;quot;00111000&amp;quot;
  16.33 [TX] AT+COPS?
  16.33     [RX] +COPS: 1,2,&amp;quot;23003&amp;quot;,9
  16.33     [RX] OK
  16.33 [TX] AT%XCBAND
  16.33     [RX] %XCBAND: 20
  16.33     [RX] OK
  16.33 [TX] AT+CEINFO?
  16.35     [RX] +CEINFO: 0,1,C,8,1,-90,15
  16.35     [RX] OK
  16.35 [TX] AT+CGDCONT?
  16.36     [RX] %XTIME: ,&amp;quot;22016010048380&amp;quot;,&amp;quot;01&amp;quot;
  16.36     [RX] +CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;hardwario.com&amp;quot;,&amp;quot;10.0.0.157&amp;quot;,0,0
  16.36     [RX] +CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;hardwario.com&amp;quot;,&amp;quot;&amp;quot;,0,0
  16.36     [RX] OK
  16.36 [TX] AT#XDATACTRL=40
  16.36     [RX] OK
  16.36 [TX] AT#XSOCKET=1,2,0
  16.38     [RX] #XSOCKET: 0,2,17
  16.38     [RX] OK
  16.38 [TX] AT#XSOCKETOPT=1,50
  16.38     [RX] ERROR
  17.02 [PPK2] 100k/s AVG  36.5  mA    Max 218mA
  18.02 [PPK2] 100k/s AVG  36.8  mA    Max  50.6  mA
  19.02 [PPK2] 100k/s AVG  36.8  mA    Max  50.7  mA
  20.02 [PPK2] 100k/s AVG  36.0  mA    Max  50.7  mA&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/389165?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 10:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5ed7ba2-cd74-4358-a2ca-3a376b9dab3f</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;It&amp;#39;s possible that your network does not support it. Can you do a modem trace so it can be checked?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/389091?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 23:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3887bf7-5c2d-4094-8e42-f67b7fe44c22</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;it is sufficient to just open UDP socket and do&amp;nbsp;&lt;span&gt;AT#XSOCKETOPT for SO_RAI_LAST to reproduce the issue.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tested that with NCS 2.1.0,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;span style="font-weight:400;"&gt;SO_RAI_LAST is 50 there based on&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/include/zephyr/net/socket_ncs.h#L58"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/include/zephyr/net/socket_ncs.h#L58&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="font-weight:400;"&gt;Regards,&lt;br /&gt;Michal&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/387471?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 11:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a724f2b-ae0e-4d2c-b252-f25d9b1d0e89</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hey. I have been out of office for 2 weeks now, so I haven&amp;#39;t had much time to look at this. I will try to find some time to reproduce this in the near future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/386478?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 00:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb623f6f-e605-4771-b074-a4b6da2c72de</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Hello, is there any update on this issue please ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/384214?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 19:51:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7aa3774-df66-465d-bcdf-523a91d0daad</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;as you can see from AT dialogue above&amp;nbsp;&lt;span&gt;%SHORTSWVER: nrf9160_1.3.1, same behaviour with 1.3.2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SIM is Vodafone as can see from AT dialogue above&amp;nbsp;+COPS: 1,2,&amp;quot;23003&amp;quot;,9.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can probably find other useful info in attached AT dialogue also.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not use NRF_SO_RAI_LAST with SLM/nRF9160</title><link>https://devzone.nordicsemi.com/thread/383624?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 09:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df033f53-318d-4ad1-9085-575d023821a0</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;what modem firmware version and SIM are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>