<?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>receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69774/receive-udp-on-nrf9160-dk-slm-application</link><description>Hi, 
 I want to receive UPD message on my nRF9160-DK. I can send UDP messages from my Nordic device to a server and from that messages I get the public IP address of my module. But when I try to receive messages, I don&amp;#39;t receive anything. I use the serial</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Mar 2021 14:05:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69774/receive-udp-on-nrf9160-dk-slm-application" /><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/297840?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 14:05:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6e77e25-56b1-4c88-9b16-bda69cfe283f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="AndMar8"]If I send the AT command AT#XRECVFROM to my module, is there a AT command that allows to exit from RX mode without press the button reset?[/quote]
&lt;p&gt;&amp;nbsp;No.&lt;/p&gt;
&lt;p&gt;But, you can use the proxy service: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66288/sending-udp-using-the-serial-lte-modem-application---at-sequence/272293#272293"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/66288/sending-udp-using-the-serial-lte-modem-application---at-sequence/272293#272293&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That will keep the SLM from locking up.&lt;/p&gt;
&lt;p&gt;See scanrio 3 here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/slm_testing.html#udp-client"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/slm_testing.html#udp-client&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/TCPIP_AT_commands.html#udp-dtls-client-xudpcli"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/TCPIP_AT_commands.html#udp-dtls-client-xudpcli&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/297679?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 08:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa4340d-5b07-454a-9d41-9343c8ebfaca</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; Firstly I used a random port to send the reply from my Node-Red.&lt;/p&gt;
&lt;p&gt;That would have worked, if no NATs would be on the route. But with NATs, such traffic is blocked. The mapping contains the port as well and so from the view of the NAT there is no route back to the modem.&lt;/p&gt;
&lt;p&gt;&amp;gt; Or the only way is to change the timer in the code to stop the receive mode?&lt;/p&gt;
&lt;p&gt;That&amp;#39;s at least what I do, and what is done in common. Therefore the setsockopt/SO_RCVTIMEO is for. Though I patched the SLM for that, I&amp;#39;m not sure, how to do that with AT#XSOCKETOPT/SO_RCVTIMEO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/297675?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 07:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df0a1ce-c6ab-4a46-9bfd-de688575d7c7</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi Didrik!&lt;br /&gt;&lt;br /&gt;It works with my application (Node-Red). It was my trivial error.&lt;br /&gt;From your pcap file I understand that I have to bind the communication to the port used by the application to receive, in order to send a reply to nRF9160-dk. I thought that (with the udp protocol) it didn&amp;#39;t matter to specify the port from which the message came out but only the destination one.&lt;br /&gt;&lt;br /&gt;My mistake was the following:&lt;br /&gt;nRF9160-dk sends from random port, for example 59222, to my Node-Red port 20080 a message.&lt;br /&gt;Reply&lt;br /&gt;Node-Red has to send a reply from the &lt;strong&gt;same&lt;/strong&gt; port 20080 to the port (in this case) 59222.&lt;/p&gt;
&lt;p&gt;Firstly I used a random port to send the reply from my Node-Red.&lt;br /&gt;&lt;br /&gt;Thank you so much for your time and your suggestion.&lt;br /&gt;&lt;br /&gt;I have one last question.&lt;br /&gt;&lt;br /&gt;If I send the AT command AT#XRECVFROM to my module, is there a AT command that allows to exit from RX mode without press the button reset? Or the only way is to change the timer in the code to stop the receive mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/297129?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 10:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a55005-f90f-432a-8ed7-1442e5ef5765</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="AndMar8"]What kind of application do you use to send udp messages to nRF9160-dk?[/quote]
&lt;p&gt;&amp;nbsp;It&amp;#39;s a Rust application I have written myself, although at this point it is still mostly just one of the examples from the documentation. Below is a simplified version (fostly just fancy logging that is removed):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;fn single_udp_echo() -&amp;gt; std::io::Result&amp;lt;()&amp;gt; {
    let socket = std::net::UdpSocket::bind(&amp;quot;0.0.0.0:56227&amp;quot;)?;

    println!(&amp;quot;Listening on socket 56227&amp;quot;);

    let mut buf = [0; 1024];
    
    let (amt, src) = socket.recv_from(&amp;amp;mut buf)?;
    println!(&amp;quot;Received message from {:?}&amp;quot;, src);
    
    let buf = &amp;amp;buf[..amt];
    debug!(&amp;quot;{}&amp;quot;, std::str::from_utf8(&amp;amp;buf).unwrap());
    
    socket.send_to(buf, &amp;amp;src)?;

    Ok(())
}

fn main() {
    println!(&amp;quot;Starting UDP echo&amp;quot;);
    
    loop {
        let udp_result = udp::single_udp_echo();
        println!(&amp;quot;udp result: {:?}&amp;quot;, udp_result);
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It is simply listening for a UDP message, printing it, and sending it back to the sender.&lt;/p&gt;
&lt;p&gt;Log from the server (including my own test to check that the server was up and running), timestamps are in UTC:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[2021-03-01T13:31:10.504010113][INFO][server] Starting UDP echo
[2021-03-01T13:31:10.504231159][INFO][server::udp] Listening on socket 56227
[2021-03-01T13:32:10.600723109][DEBUG][server::udp] Received message from 62.93.143.64:44856
[2021-03-01T13:32:10.601072018][DEBUG][server::udp] didrik port test
[2021-03-01T13:32:10.601381792][WARN][server] udp result: Ok(())
[2021-03-01T13:32:10.601632681][INFO][server::udp] Listening on socket 56227
[2021-03-01T16:34:44.897245414][DEBUG][server::udp] Received message from 151.99.1.113:59409
[2021-03-01T16:34:44.897544864][DEBUG][server::udp] Hi, I&amp;#39;m AndMar8
[2021-03-01T16:34:44.897827920][WARN][server] udp result: Ok(())&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And .pcap:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/udp.pcap"&gt;devzone.nordicsemi.com/.../udp.pcap&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is also worth noting that the log and .pcap shows NATing both in my and iBasis&amp;#39; networks.&lt;/p&gt;
&lt;p&gt;The IP address the server logs is not the same address as reported by my nRF9160, and the server&amp;#39;s address in the .pcap is also a local address and not the one used by the devices.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AndMar8"]It doesn&amp;#39;t block the code as I thought but it&amp;#39;s still worked.[/quote]
&lt;p&gt;&amp;nbsp;Correct. That error is reported by the Link Monitor, which has a rather short timeout for AT command responses. The error message can be useful for most AT commands, as they reply immediately. However, for commands which might take some time (such as waiting for a reply from a server), the timeout can be ignored.&lt;/p&gt;
&lt;p&gt;In conclusion, it seems the problem is with the NODE-RED server (or the server hits a limitation in the network). How fast does it reply to the UDP packets?&lt;/p&gt;
&lt;p&gt;We have often seen NAT timeouts of ~ 1 minute, but we have also seen networks where they are significantly shorter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/296975?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 16:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07b89fee-01e3-4545-9169-93a0ba77b529</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have just tried and it works. I receive my same message.&lt;br /&gt;&lt;br /&gt;The output file is&amp;nbsp;shared.&lt;br /&gt;&lt;br /&gt;So the AT command works but I don&amp;#39;t know why my NODE-RED for udp doesn&amp;#39;t work. Could you see the IP address that is used by your server to reply to my message?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/udp.txt"&gt;devzone.nordicsemi.com/.../udp.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/296874?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 14:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efd6ad4c-1121-4f0f-8723-e92cbd83c4cd</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unluckily I had already tried with the IP that I got with AT+CGDCONT? and I have the same results.&lt;br /&gt;&lt;br /&gt;Just to let you know, I had done other test with different types of protocol of communication:&lt;br /&gt;&lt;br /&gt;MQTT works fine: I connect the nRF9160 to a topic of a block of NODE-RED and i can receive and send messages.&lt;br /&gt;&lt;br /&gt;TCP works fine only if I use the nRF9160 as client which has to connect to NODE-RED (as server). In this case I can send and receive message.&lt;br /&gt;But if I use NODE-RED as client which has to connect to nRF9160 (as server), when I use the commands AT#XLISTEN and AT#XACCEPT, nothing happens.&lt;br /&gt;I try both with the IP address of the screenshot (151.x.x.x) and with the IP address that I get with the command AT+CGDCONT? (10.x.x.x).&lt;/p&gt;
&lt;p&gt;I think it could be for the same reason of UDP RECVFROM.&lt;/p&gt;
&lt;p&gt;However I think that the correct IP address is 151.x.x.x and not 10.x.x.x.&lt;br /&gt;&lt;br /&gt;I found out also that in the LTE Link monitor if I got in the&amp;nbsp;&lt;span&gt;Log window:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Error: &amp;#39;at#xrecvfrom&amp;#39; timed out&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It doesn&amp;#39;t block the code as I thought but it&amp;#39;s still worked. I got the same error with TCP protocol and AT#XRECV but I can receive messages, too. So fine :).&lt;br /&gt;&lt;br /&gt;What kind of application do you use to send udp messages to nRF9160-dk? So I&amp;#39;ll try with it, instead of NODE-RED. Probably has problem with UDP protocol.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now I try the commands you send me! Thank you very much!&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/296865?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 13:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43cac439-d2ef-466b-bf05-93315c8121df</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/andmar8"&gt;AndMar8&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Could you try the following sequence of commands (with the same server and port)?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CEREG=5
AT+CSCON=1
AT+CFUN=1
// Wait for the nRF9160 to be connected (CEREG 1 or 5)
AT#XSOCKET=1,2,0
AT#XSENDTO=&amp;quot;84.215.43.232&amp;quot;,56227,1,&amp;quot;&amp;lt;some text here&amp;gt;&amp;quot;
AT#XRECVFROM&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should then end up with a log similar to this (if you have enabled debug logging):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/slm_5F00_udp_5F00_working.txt"&gt;devzone.nordicsemi.com/.../slm_5F00_udp_5F00_working.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see from the log, I have verified that this server works, and I am able to communicate with it with my nRF9160DK and iBasis SIM card.&lt;/p&gt;
&lt;p&gt;I also have some logging running on the server, so it I can confirm that it receives the packet and sends a response.&lt;/p&gt;
&lt;p&gt;And, as always, if you could share the log and modem trace afterwards, that would be great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/296308?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 14:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab618d58-77ab-432d-81a1-e74f714983ee</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="AndMar8"]I didn&amp;#39;t find&amp;nbsp;&lt;span&gt;CONFIG_SLM_LOG_LEVEL=y so I&amp;nbsp;guess you mean&amp;nbsp;CONFIG_SLM_LOG_LEVEL_DBG=y (I hope it&amp;#39;s correct).&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Yes, sorry. That was a typo on my part.&lt;/p&gt;
&lt;p&gt;I also forgot to mention that you have to comment out the CONFIG_SLM_LOG_LEVEL_INF=y line (or replace it with *_DBG=y).&lt;/p&gt;
&lt;p&gt;I have also done some more tests myself, and it doesn&amp;#39;t seem like the recvfrom call actually gets registered in the modem trace unless it returns some data.&lt;/p&gt;
&lt;p&gt;So the 2nd point in my last comment doesn&amp;#39;t seem to be an actual problem, just another indication that the device never receives the response.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AndMar8"]is there an at command to get the IP address of my nRF9160?[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/packet_domain/cgdcont_read.html"&gt;&amp;nbsp;AT+CGDCONT?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But, it is worth noting what &lt;a href="https://devzone.nordicsemi.com/members/achim-kraus"&gt;Achim Kraus&lt;/a&gt; says about NAT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/295405?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2021 16:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb19684-b7ad-413c-9870-4ab614a71a0d</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Usually, neither the local ip-address your nRF9160 nor the local port you use will be visible at the server. The mobile provider mostly use a NAT, which exchanges that address and port. And because of that NAT, you must respond &amp;quot;in time&amp;quot;. I would try to start with less than 30s.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/295404?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2021 16:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8338aa5f-080c-4597-9f9c-ab0e162e99dd</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;1. I believe that the messages are sent by my device because when I send messages from nRF9160 they appear on the node-red debug messages window (as in the screeshot). However to be sure is there an at command to get the IP address of my nRF9160?&lt;/p&gt;
&lt;p&gt;2. Debug:&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t find&amp;nbsp;&lt;span&gt;CONFIG_SLM_LOG_LEVEL=y so I&amp;nbsp;guess you mean&amp;nbsp;CONFIG_SLM_LOG_LEVEL_DBG=y (I hope it&amp;#39;s correct).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For the debugging I also set in the prj.config file:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;CONFIG_USE_SEGGER_RTT=n&lt;br /&gt;CONFIG_RTT_CONSOLE=n&lt;br /&gt;CONFIG_UART_CONSOLE=y&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=n&lt;br /&gt;CONFIG_LOG_BACKEND_UART=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I attached the zip with modem trace bin, terminal of Termite, logfile of LTE Link Monitor and the prj.config file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF9160-log.rar"&gt;devzone.nordicsemi.com/.../nRF9160-log.rar&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/295347?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2021 13:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9451582b-dd7b-4467-9907-43257d39839e</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve had a quick look at your traces so far, and I have noticed two things:&lt;/p&gt;
&lt;p&gt;1. Neither the IP address or the source port (from the device) matches your screenshot from the server. Are you sure the screenshot is from the nRF9160?&lt;/p&gt;
&lt;p&gt;2. The modem never receives an recvfrom RPC call from the application core.&lt;/p&gt;
&lt;p&gt;To debug 2 further, could you enable debug logging in the SLM (by setting CONFIG_SLM_LOG_LEVEL=y), and capture the debug log which will be sent over RTT (as well as the UART log and a modem trace)?&lt;span style="color:rgba(212, 212, 212, 1);"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But, the device never receives the reply from the server, so even if the recvfrom call had been there, you still wouldn&amp;#39;t have seen any response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/295054?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 11:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:081db85e-bfd1-43b4-bfed-798a06081d01</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi, Sorry for the delay. I were able to collected the modem Trace.&amp;nbsp;&lt;br /&gt;Please find attached the zip file containing two modem traces.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have also tested the receive mode using a different terminal. I use Termite as both putty and were not able to communicate with the SIP:&lt;/p&gt;
&lt;p&gt;Just for knowledge I have tested the sim card with a different modem from Quectel and I was able to receive the data coming from the node-red UDP node.&lt;/p&gt;
&lt;p&gt;I have also tested the UDP functionality with a desktop packet receiver and it works as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here a screen shot from node-red showing the message I am receiving from the SIP. OFC I use the same address and port to send data back to the SIP.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1613646534951v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I am starting being clueless about why I am not able to receive the UDP packet using the nrf9160 SIP.&lt;/p&gt;
&lt;p&gt;I do not know if it can be useful but, can you please share your firmware HEX files just to test it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your kind help.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF9160_5F00_recvfrom_5F00_trace.zip"&gt;devzone.nordicsemi.com/.../nRF9160_5F00_recvfrom_5F00_trace.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/289875?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 20:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6444b29-1439-4972-860e-403a2917d03b</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; I can send UDP messages from my Nordic device to a server and from that messages I get the public IP address of my module. But when I try to receive messages, I don&amp;#39;t receive anything.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How long does it take until you send the message back?&lt;/p&gt;
&lt;p&gt;If you get the public IP address from the message, do you also get the source port from them? And do you use that port to send a message back?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/289874?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 20:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b40114dd-f011-4d66-907c-a8e5154dcb75</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; The SLM implementation of #RECVFROM is blocking, so this is not surprising.&lt;/p&gt;
&lt;p&gt;Sorry to write that, surprising is indeed not the behavior, it&amp;#39;s more, that it is implemented in that way. Doesn&amp;#39;t this block the modem for new AT-commands until it receives something? If the sent data is lost, you will not be able to even resend it. For me this implementation is very close to &amp;quot;useless&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/289394?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 11:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dc759a9-22f3-4815-ba01-0f368a2630bc</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="AndMar8"]&lt;br /&gt;Which&amp;#39;s your modem version? What about the firmware? Are you using the slm application?[/quote]
&lt;p&gt;&amp;nbsp;mfw v1.2.2, SLM from NCS v1.4.0.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AndMar8"]&lt;br /&gt;09:47:24.974&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Error: &amp;#39;at#xrecvfrom&amp;#39; timed out[/quote]
&lt;p&gt;&amp;nbsp;I assume you are using the LTE link monitor?&lt;/p&gt;
&lt;p&gt;It is note really meant for this kind of use case, but to communicate with the modem &amp;quot;directly&amp;quot;. As such, almost all the AT commands it is &amp;quot;meant&amp;quot; to send returns a reply immediately. It therefore has a fairly short timeout. However, it should not be a problem that a command times out, as long as there is a response eventually.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AndMar8"]From here all AT commands (also a simple AT) returns me this same error (Error: &amp;#39;at&amp;#39; timed out).[/quote]
&lt;p&gt;&amp;nbsp;The SLM implementation of #RECVFROM is blocking, so this is not surprising.&lt;/p&gt;
&lt;p&gt;Can you take a &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;modem trace&lt;/a&gt;, so we can analyze the IP traffic?&lt;/p&gt;
&lt;p&gt;Also, if you could capture an IP trace from your server, that could also help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/289261?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 14:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82d60ac0-b9ee-4df5-9717-b651db87bcc4</guid><dc:creator>OlivierG34</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Correct me if im wrong but are you sure the IP given by the LTE network is a PUBLIC IP ? Except specifically asked when you order the simcard, the IP are &amp;quot;private IP&amp;quot; on the operator&amp;#39;s network...&lt;br /&gt;OlivierG&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/289249?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 14:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22fb19b8-f48a-4331-b1fe-9bc896987e50</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Basically, I use the &amp;quot;serial_lte_modem&amp;quot; successfully , but I patched the &amp;quot;xrecvfrom&amp;quot;.&lt;/p&gt;
&lt;p&gt;That command is based on &amp;quot;recvfrom&amp;quot;, which according &lt;a href="https://linux.die.net/man/2/recvfrom"&gt;https://linux.die.net/man/2/recvfrom&lt;/a&gt; uses the &amp;quot;src_addr&amp;quot; as **OUT** not **IN** parameter. The original implementation seems to assume, that this is an **IN** parameter. So, my patch applies a recv_timeout via setsockopt and then calls the recvfrom using the OUT parameter src_addr to fill the received source information also into my adapted at-response.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure, if this is just a mistake by the developer to assume, the src_addr is **IN**, or if this is really the intention.&lt;/p&gt;
&lt;p&gt;(As additional hint related to the last question about the PUBLIC IP:&lt;/p&gt;
&lt;p&gt;My server returns the response just to the source-address, the server receives the package from (as usual for UDP).)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/289154?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 11:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22df654d-f1d6-42af-8bbf-576b6829dcec</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for the answer.&lt;/p&gt;
&lt;p&gt;Yes I tested it with a device outside our local network and the udp packet is correctly received.&lt;br /&gt;&lt;br /&gt;I have tried to replcate your steps but at#xrecvfrom command is not recognized and after that the modem stops answer me and i have to reboot the board.&lt;br /&gt;&lt;br /&gt;To be clear as much as possible, these are the steps that I do:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;at+cfun=1&lt;/li&gt;
&lt;li&gt;at+cfun?&lt;/li&gt;
&lt;li&gt;after that command start automatic command due to the &amp;quot;automatic requests&amp;quot;&lt;/li&gt;
&lt;li&gt;after this command:&lt;br /&gt;at+cgact?&lt;br /&gt;+cgact: 0,1&lt;br /&gt;ok&lt;br /&gt;I send the AT commands that you use&lt;/li&gt;
&lt;li&gt;at#xsocket=1,2,0&lt;br /&gt;#XSOCKET: 1, 2, 0, 17&lt;br /&gt;OK&lt;/li&gt;
&lt;li&gt;at#xsendto=&amp;quot;x.x.x.x&amp;quot;,20080,1,&amp;quot;test&amp;quot;&lt;br /&gt;#XSENDTO: 4&lt;br /&gt;OK&lt;/li&gt;
&lt;li&gt;at#xrecvfrom&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here the code stops working and under the terminal in the Log window immediately appears:&lt;br /&gt;&lt;br /&gt;09:47:24.974&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Error: &amp;#39;at#xrecvfrom&amp;#39; timed out&lt;br /&gt;&lt;br /&gt;From here all AT commands (also a simple AT) returns me this same error (Error: &amp;#39;at&amp;#39; timed out).&lt;br /&gt;&lt;br /&gt;Which&amp;#39;s your modem version? What about the firmware? Are you using the slm application?&lt;br /&gt;&lt;br /&gt;Thank you very much for the help.&lt;br /&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/288998?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 16:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:405eafa6-b58f-479c-93d7-9948bb6cc3da</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="AndMar8"]I&amp;#39;m sending data using NODE-RED udp-out block. I tested it with different devices and it works.[/quote]
&lt;p&gt;&amp;nbsp;Were do you host it? Did you test with devices outside the local (to the server) network?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AndMar8"]AT#XRECVFROM=[4][/quote]
&lt;p&gt;&amp;nbsp;The &amp;quot;[ ]&amp;quot; in the syntax means that it is an optional parameter. You should either use AT#XRECVFROM, or AT#XRECVFROM=&amp;lt;size&amp;gt;, where &amp;lt;size&amp;gt; is the number of bytes you expect to receive. You should not use &amp;quot;[ ]&amp;quot; in the command.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AndMar8"]Are these&amp;nbsp;steps right? [/quote]
&lt;p&gt;&amp;nbsp;Yes. Assuming the device is already connected to the network.&lt;/p&gt;
&lt;p&gt;These commands worked for me:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;at#xsocket=1,2,0
#XSOCKET: 1, 2, 0, 17
OK
at#xsendto=&amp;quot;x.x.x.x&amp;quot;,7,1,&amp;quot;test&amp;quot;
#XSENDTO: 4
OK
at#xrecvfrom
test
#XRECVFROM: 1, 4
OK&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/288573?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 09:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14eb67d8-e939-4905-ba80-c1c11a8d2249</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;span class="tx"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sending data using NODE-RED udp-out block. I tested it with different devices and it works.&lt;br /&gt;Regarding the modem trace I&amp;#39;m working on it.&lt;/p&gt;
&lt;p&gt;I tried this AT command but I get an error:&lt;/p&gt;
&lt;p&gt;first try:&lt;/p&gt;
&lt;p&gt;AT#XRECVFROM=[4]&lt;br /&gt;ERROR&lt;br /&gt;[00:02:19.316,406] ESC [1;31M&amp;lt;err&amp;gt; tcpip: F&lt;br /&gt;&lt;br /&gt;[1;31m&amp;lt;err&amp;gt; tcpip: Failed to parse AT command -11&lt;br /&gt;&lt;br /&gt;[0m&lt;/p&gt;
&lt;p&gt;second try:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#XRECVFROM&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here the code stops and it returns me an error in the window of log output under the terminal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering what is the correct procedure to send and receive data using UDP.&lt;/p&gt;
&lt;p&gt;Are these&amp;nbsp;steps right? &lt;br /&gt;1)Opening a Socket&lt;br /&gt;2) Sending data &lt;br /&gt;3)Waiting for a response&lt;/p&gt;
&lt;p&gt;Is the UDP data sent from the server buffered somehow or do I need to put the modem into receveing mode before sending the UDP data?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/288016?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 15:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:423846f9-1063-4d20-8e64-37f9fe1ab613</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="AndMar8"]AT#UDPRECVFROM=&amp;quot;x.x.x.x&amp;quot;,20080[/quote]
&lt;p&gt;&amp;nbsp;This command does not exist anymore, so that not working is expected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AndMar8"]AT#XRECVFROM=&amp;quot;x.x.x.x&amp;quot;,20080[/quote]
&lt;p&gt;&amp;nbsp;Based on the discussion in the PR to fix the documentation, it seems I was wrong in my guess for what form of the command was right. So with that knowledge, this is also expected not to work.&lt;/p&gt;
&lt;p&gt;Instead, the correct syntax for the command is the one in the documentation, and which you were originally using:&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;#XRECVFROM[=&amp;lt;size&amp;gt;]&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;What server do you send data to, and expect data in return from?&lt;/p&gt;
&lt;p&gt;Are you certain that it does send a reply?&lt;/p&gt;
&lt;p&gt;Can you take a &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;modem trace&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;That will let us see if the modem receives the response, and it is the application that is the problem, or if the response never arrives at the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/287457?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 10:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72bcacc9-c5cf-4bb6-98a8-7c95752f69df</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the answer and Good New Year!&lt;/p&gt;
&lt;p&gt;I redownload the code from &amp;quot;Open nRF Connect SDK Project...&amp;quot; cleaning build directory.&lt;br /&gt;&lt;br /&gt;I have just tried and the outputs are:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-First try:&lt;/p&gt;
&lt;p&gt;AT#XRECV&lt;/p&gt;
&lt;p&gt;ERROR&lt;/p&gt;
&lt;p&gt;[00:05:20.988,220] ESC &amp;nbsp;[1;31m&amp;lt;err&amp;gt; tcpip: Not connected yet&amp;nbsp;&lt;span&gt;ESC&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;[0m&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(I think) It is used for a TCP message (so it needs a&amp;nbsp;TCP &amp;quot;connection&amp;quot;) instead of a UDP message.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Second try:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#XRECVFROM=&amp;quot;x.x.x.x&amp;quot;,20080&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It returns me an error but it doesn&amp;#39;t block the code as before tries (it seems a good thing).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Third&amp;nbsp;try:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#UDPRECVFROM=&amp;quot;x.x.x.x&amp;quot;,20080&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;+CME: 0&lt;/p&gt;
&lt;p&gt;In this case the code stops&amp;nbsp;working and I have to press the button RESET to restart. I see this command (&lt;span&gt;AT#UDPRECVFROM&lt;/span&gt;) in the link you shared.&lt;/p&gt;
&lt;p&gt;Do I have to add something more or something different in command&amp;nbsp;&amp;quot;&lt;span&gt;AT#XRECVFROM=&amp;quot;x.x.x.x&amp;quot;,20080&amp;quot; that seems the best result for UDP message?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/287309?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2021 15:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb1684b-5fc3-4660-82b8-0687e576a0c0</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;It looks like the documentation for the #XRECVFROM command has not been updated together with the code.&lt;/p&gt;
&lt;p&gt;Could you try &amp;quot;AT#XRECV&amp;quot; (this should let you receive data from any source) or &amp;quot;AT#XRECVFROM=&amp;lt;url&amp;gt;,&amp;lt;port&amp;gt;&amp;quot; instead?&lt;/p&gt;
&lt;p&gt;We are also working on fixing the documentation to avoid more confusion in the future.&lt;/p&gt;
&lt;p&gt;You can track the progress here: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/3596"&gt;https://github.com/nrfconnect/sdk-nrf/pull/3596&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/286373?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 16:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b98c6de7-282e-411c-b7dc-20b526a25cc7</guid><dc:creator>AndMar8</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Thanks for the answer. &lt;br /&gt;I tried without closing the socket but the recvfrom returns always this error: &amp;quot;&lt;span&gt;Error: &amp;#39;AT#XRECVFROM &amp;#39; timed out&amp;quot; and always from here I can&amp;#39;t send AT command through the LTE Link Monitor.&lt;br /&gt;In the following I put the command used:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First try:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#XSOCKET=1,2,1&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#XSOCKET: 1, 2, 1, 17&lt;br /&gt;&lt;/span&gt;&lt;span&gt;OK&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#XBIND=3442&lt;br /&gt;OK&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#XSENDTO=&amp;quot;x.x.x.x&amp;quot;,20080,1,&amp;quot;Test UDP&amp;quot;&lt;br /&gt;#XSENDTO: 8&lt;br /&gt;OK&lt;br /&gt;&lt;br /&gt;AT#XRECVFROM (here stops)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-----------------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Second try:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#XSOCKET=1,2,0&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#XSOCKET: 1, 2, 0, 17&lt;br /&gt;&lt;/span&gt;&lt;span&gt;OK&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT#XSENDTO=&amp;quot;x.x.x.x&amp;quot;,20080,1,&amp;quot;Test UDP&amp;quot;&lt;br /&gt;#XSENDTO: 8&lt;br /&gt;OK&lt;br /&gt;&lt;br /&gt;AT#XRECVFROM (here stops)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have to change something in the project file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I closed socket in previous tries because I thought that I have to set the socket in client mode (AT#XSOCKET=1,2,0) to send messages and in server mode (AT#XSOCKET=1,2,1) to receive messages.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&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: receive UDP on nRF9160-dk SLM application</title><link>https://devzone.nordicsemi.com/thread/286334?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 14:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf56a34-e230-4906-a1c1-527f6ff63e50</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should not close the socket after sending data, for so to open a new socket that you listen on.&lt;/p&gt;
&lt;p&gt;Instead, you should listen on the same socket that you sent data from.&lt;/p&gt;
&lt;p&gt;Also, be aware that due to Christmas vacations, response times might be slower than normal.&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>