<?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>How to send &amp;quot; (0x22) over UDP through AT#XUDPSEND in SLM &amp;gt; v1.7</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86595/how-to-send-0x22-over-udp-through-at-xudpsend-in-slm-v1-7</link><description>Hi! 
 In previous versions of the SLM it was possible to provide a hex datatype to the XUDPSEND command to send blobs of data over UDP, without having to worry about a stray &amp;quot; value in your data. In the newer versions of the SLM this seems to be removed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Apr 2022 12:49:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86595/how-to-send-0x22-over-udp-through-at-xudpsend-in-slm-v1-7" /><item><title>RE: How to send " (0x22) over UDP through AT#XUDPSEND in SLM &gt; v1.7</title><link>https://devzone.nordicsemi.com/thread/362088?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 12:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c099838-aee2-4b48-8450-afadc44d5f62</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;Hi Didrik!&lt;/p&gt;
&lt;p&gt;When upgrading from SLM 1.8.99 to SLM v1.9.1&amp;nbsp;the first issue disappeared. The second issue with it not exiting data-mode also was resolved when exclusively sending +++ without any CR LF.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the silence period, there still seems to be a small pause required around the &amp;quot;+++&amp;quot; send but sleeping for 1ms does the trick for us so this is more than acceptable in our use case.&lt;/p&gt;
&lt;p&gt;Thank you for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send " (0x22) over UDP through AT#XUDPSEND in SLM &gt; v1.7</title><link>https://devzone.nordicsemi.com/thread/361898?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 14:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfeec32c-32dc-4c33-bbde-6b5f46b92b69</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="Ivan Herrera"]It seems that data-mode isn&amp;#39;t even entered?[/quote]
&lt;p&gt;Without having checked the code to see if my assumption is correct, it sounds like the SLM isn&amp;#39;t splitting on the \r\n, and takes the whole string as a command.&lt;/p&gt;
[quote user="Ivan Herrera"]We also note that the&amp;nbsp;exit sequence (+++) is being transmitted, and the device does not exit data-mode[/quote]
&lt;p&gt;The exit sequence must be sent without any line endings. I.e. there is a difference between &amp;quot;+++&amp;quot; and &amp;quot;+++\r\n&amp;quot;. The first should get you out of data mode, the second one will not.&lt;/p&gt;
[quote user="Ivan Herrera"]Additional question: in NCS 1.6, the&amp;nbsp;CONFIG_SLM_DATAMODE_SILENCE parameter is defined in the SLM app documentation, but it has disappeared on the documentation in NCS 1.9. Is this configuration option still valid?[/quote]
&lt;p&gt;No, that option no longer exist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send " (0x22) over UDP through AT#XUDPSEND in SLM &gt; v1.7</title><link>https://devzone.nordicsemi.com/thread/361774?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 09:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0ab12e5-3026-4948-890f-d5b2b0bc435c</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;Additional question: in NCS 1.6, the&amp;nbsp;CONFIG_SLM_DATAMODE_SILENCE parameter is defined in the SLM app documentation, but it has disappeared on the documentation in NCS 1.9. Is this configuration option still valid?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send " (0x22) over UDP through AT#XUDPSEND in SLM &gt; v1.7</title><link>https://devzone.nordicsemi.com/thread/361756?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 08:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6530e5a6-079e-4f57-94b5-1bbd83dc2e8f</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;Hi Didrik! We haven&amp;#39;t yet come to setting the log-level to debug but we have looked at the RTT output of the nRF91 module and these are our findings:&lt;/p&gt;
&lt;p&gt;If we just send &amp;quot;&lt;span&gt;AT#XUDPSEND&lt;/span&gt;&lt;span&gt;\r\n&amp;quot; the RTT output is the following:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; *** Booting Zephyr OS build v2.7.0-ncs1-4-gf295fb7c67ca  ***
00&amp;gt; 
00&amp;gt; [00:00:00.202,026] &amp;lt;inf&amp;gt; slm: Serial LTE Modem
00&amp;gt; [00:00:00.231,811] &amp;lt;inf&amp;gt; slm_at_host: at_host init done
00&amp;gt; [00:00:25.491,973] &amp;lt;inf&amp;gt; slm_at_host: Enter datamode&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Though... if we&amp;nbsp;immediately send some data with that e.g.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;span&gt;AT#XUDPSEND&lt;/span&gt;&lt;span&gt;\r\nThis is a test+++\r\n&amp;quot; we get the following output:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; *** Booting Zephyr OS build v2.7.0-ncs1-4-gf295fb7c67ca  ***
00&amp;gt; 
00&amp;gt; [00:00:00.202,056] &amp;lt;inf&amp;gt; slm: Serial LTE Modem
00&amp;gt; [00:00:00.231,842] &amp;lt;inf&amp;gt; slm_at_host: at_host init done
00&amp;gt; [00:00:26.281,402] &amp;lt;err&amp;gt; slm_at_host: AT command invalid&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seems that data-mode isn&amp;#39;t even entered? Now, when we add a delay of about 5ms (we chose this&amp;nbsp;arbitrarily) between the &amp;quot;&lt;/span&gt;&lt;span&gt;AT#XUDPSEND&lt;/span&gt;&lt;span&gt;\r\n&amp;quot; command and the actual data, we get the following output.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; *** Booting Zephyr OS build v2.7.0-ncs1-4-gf295fb7c67ca  ***
00&amp;gt; 
00&amp;gt; [00:00:00.202,026] &amp;lt;inf&amp;gt; slm: Serial LTE Modem
00&amp;gt; [00:00:00.231,811] &amp;lt;inf&amp;gt; slm_at_host: at_host init done
00&amp;gt; [00:00:28.102,691] &amp;lt;inf&amp;gt; slm_at_host: Enter datamode
00&amp;gt; [00:00:28.596,252] &amp;lt;inf&amp;gt; slm_at_host: Raw send 22
00&amp;gt; [00:00:28.596,649] &amp;lt;inf&amp;gt; slm_udp: datamode send: 22&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We also note that the&amp;nbsp;exit sequence (+++) is being transmitted, and the device does not exit data-mode. After reviewing the documentation we suspect this is due to the&amp;nbsp;CONFIG_SLM_DATAMODE_SILENCE parameter? Still, this doesn&amp;#39;t explain the 5ms delay which seems to be required after the data-mode command. Do you have clue as to why it is behaving this way?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send " (0x22) over UDP through AT#XUDPSEND in SLM &gt; v1.7</title><link>https://devzone.nordicsemi.com/thread/361606?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 15:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366f2831-3f85-4713-aec4-0a2873e976fe</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Do you have any logs?&lt;/p&gt;
&lt;p&gt;Preferably also the debug log which is sent over RTT. Logging is enabled by default, but it would be nice if you also set CONFIG_SLM_LOG_LEVEL_DBG=y to increase the level of logging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send " (0x22) over UDP through AT#XUDPSEND in SLM &gt; v1.7</title><link>https://devzone.nordicsemi.com/thread/361590?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 14:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:604d902d-5a59-4e36-8f61-aa02675b768e</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;Hi Didrik!&lt;/p&gt;
&lt;p&gt;Thank you for that ticket. We&amp;#39;ve already had a look at that ticket but we&amp;#39;re having trouble implementing the data-mode that is mentioned by you over there. We seem to be able to enter data mode, but whenever we send anything over, it exits data-mode with an ERROR response. Do you have any clue as to why? Does flow-control need to be enabled when using data-mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send " (0x22) over UDP through AT#XUDPSEND in SLM &gt; v1.7</title><link>https://devzone.nordicsemi.com/thread/361584?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 14:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a3a615f-cc6e-4fff-85b3-e19f688c50b8</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please take a look at this ticket: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/86231/send-hex-data-over-udp-connection"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/86231/send-hex-data-over-udp-connection&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I believe your questions will be answered there.&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>