<?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>nRF9160 SLM with SLM Shell communication issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122013/nrf9160-slm-with-slm-shell-communication-issues</link><description>Hello everyone, 
 
 I previously posted about issues with SLM and the SLM shell, but I have made further progress. However, I now have a new problem. 
 I am still using the nRF9160DK and have tried with both the supported nRF53DK and added my files for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Jun 2025 08:11:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122013/nrf9160-slm-with-slm-shell-communication-issues" /><item><title>RE: nRF9160 SLM with SLM Shell communication issues</title><link>https://devzone.nordicsemi.com/thread/539148?ContentTypeID=1</link><pubDate>Fri, 13 Jun 2025 08:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55642645-993b-47e3-b1cf-0f11d113ee2e</guid><dc:creator>JackT</dc:creator><description>&lt;p&gt;Ok thanks that is clear&lt;/p&gt;
&lt;p&gt;In the SLM: Shell sample version latest:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_06_2D00_13-10_2D00_08_2D00_45.png" /&gt;&lt;/p&gt;
&lt;p&gt;In the SLM: Shell sample version 3.0.1 and earlier:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_06_2D00_13-10_2D00_08_2D00_56.png" /&gt;&lt;/p&gt;
&lt;p&gt;the SLM itself has always stated for flow control to be enabled. so this was mismatched before. But it also works without.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM with SLM Shell communication issues</title><link>https://devzone.nordicsemi.com/thread/539146?ContentTypeID=1</link><pubDate>Fri, 13 Jun 2025 08:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef8b626-5be3-420f-88b6-0bf1622d661d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="JackT"]Yes, that was it! Many thanks! [/quote]
&lt;p&gt;I&amp;#39;m glad we were able to find the culprit! Happy to help! &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;p&gt;&lt;/p&gt;
[quote user="JackT"]Is this because of the terminal?&amp;nbsp;[/quote]
&lt;p&gt;No, this is part of the Shell, have a &lt;a href="https://www.reddit.com/r/linux4noobs/comments/tj8r95/can_someone_explain_why_we_use_escape_sequences/"&gt;look at this&amp;nbsp;Reddit thread&lt;/a&gt;&lt;/p&gt;
[quote user="JackT"]Or, if I send commands directly from code, do I need to add these backslashes as well?[/quote]
&lt;p&gt;Yes, have a &lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrfxlib/nrf_modem/doc/at_interface.html#sending-at-commands"&gt;look at Sending AT Commands&lt;/a&gt;&amp;nbsp;in our NCS documentation.&amp;nbsp;&lt;/p&gt;
[quote user="JackT"]Also extra question, since in the newer V3.1.0 SLM and SLM Shell both mention with flow control, is this now recommended and maybe in the future required? my setup has no flow control, but does still work.[/quote]
&lt;p&gt;Could you please point me to where this is stated? The &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf9160_dk/page/UG/nrf91_DK/operating_modes/mcu_virtual_com_port.html"&gt;nRF9160DK has&amp;nbsp;&lt;/a&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf9160_dk/page/UG/nrf91_DK/operating_modes/mcu_virtual_com_port.html"&gt;virtual serial ports&lt;/a&gt;&amp;nbsp;that uses&amp;nbsp;Request to Send (RTS)/Clear to Send (CTS)-style Hardware Flow Control (HWFC). This may be the reason it states this, and most likely actually include HWFC in your applications.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM with SLM Shell communication issues</title><link>https://devzone.nordicsemi.com/thread/538414?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 12:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0921db-a8ed-47b0-856c-caefdf283488</guid><dc:creator>JackT</dc:creator><description>&lt;p&gt;Yes, that was it! Many thanks! In the screenshot, you can see the first original message and after with the added \. I had a feeling it was something to do with a character, but I couldn&amp;#39;t figure out which one. Debugging would have helped me here&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749212361670v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Is this because of the terminal?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or, if I send commands directly from code, do I need to add these backslashes as well?&lt;/p&gt;
&lt;p&gt;And are there any other escape characters I should be wary of?&lt;/p&gt;
&lt;p&gt;Also extra question, since in the newer V3.1.0 SLM and SLM Shell both mention with flow control, is this now recommended and maybe in the future required? my setup has no flow control, but does still work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM with SLM Shell communication issues</title><link>https://devzone.nordicsemi.com/thread/538373?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 08:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1476782f-cecc-4435-b01f-d14692d10a37</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, and thanks for sharing. I&amp;#39;ve had some more time to review the issue and this looks like an issue with the escape characters that are needed when sending these commands over UART. This is typical for the misc shell programs i.e.&amp;nbsp;AT#XPING=\&amp;quot;5.189.130.26\&amp;quot;,45,5000,5,1000&lt;br /&gt;&lt;br /&gt;Could you also include&amp;nbsp;&lt;span&gt;CONFIG_SLM_LOG_LEVEL_DBG=y in your SLM application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM with SLM Shell communication issues</title><link>https://devzone.nordicsemi.com/thread/538037?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 11:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e0bf8e-0180-439b-8c75-a0033acb4078</guid><dc:creator>JackT</dc:creator><description>&lt;p&gt;I just copied the SLM and SLM shell from the NCSV3.0.1 examples. In the SLM SHell zip is also the nrf54l15 board files that i tried and the nrf53dk should be these orginal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And yes PC works everytime. Sending from DK results in some commands working (ie. AT+CFUN=1) but others not (i.e.&amp;nbsp;AT+CPSMS=1,,,&amp;quot;00000001&amp;quot;,&amp;quot;00000011&amp;quot; or AT#XPING)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/serial_5F00_lte_5F00_modem_5F00_1.zip"&gt;devzone.nordicsemi.com/.../serial_5F00_lte_5F00_modem_5F00_1.zip&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/slm_5F00_shell.zip"&gt;devzone.nordicsemi.com/.../slm_5F00_shell.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM with SLM Shell communication issues</title><link>https://devzone.nordicsemi.com/thread/538018?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 10:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62fdc632-f99a-4d22-a975-e2f881b49f05</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Jack,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you share your SLM and SLM shell project for me to reproduce? This is only when sending commands over UART from e.g. nRF5340DK, but not when sending directly to nRF9160DK from PC?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>