<?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>serial_lte_modem stops responding when you send an empty line</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64080/serial_lte_modem-stops-responding-when-you-send-an-empty-line</link><description>The serial_lte_modem sample is heavily broken. Unlike the AT client sample which simply works with PuTTY out of the box, for the serial_lte_modem you need to configure PuTTY, Terminal, Keyboard to CR LF. Then it will accept commands until you send an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jul 2020 15:46:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64080/serial_lte_modem-stops-responding-when-you-send-an-empty-line" /><item><title>RE: serial_lte_modem stops responding when you send an empty line</title><link>https://devzone.nordicsemi.com/thread/261640?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 15:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:404c6109-41da-4596-a6f4-d10c9196d731</guid><dc:creator>Georgi Valkov</dc:creator><description>&lt;p&gt;Thank you very much, Didrik!&lt;/p&gt;
&lt;p&gt;The ping works now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: serial_lte_modem stops responding when you send an empty line</title><link>https://devzone.nordicsemi.com/thread/261520?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 08:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d65aa8c7-fd92-4a59-8326-2aaded03a0a2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry for your bad experience with the serial_lte_modem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Unlike the AT client sample which simply works with PuTTY out of the box, for the&amp;nbsp;serial_lte_modem you need to configure PuTTY, Terminal, Keyboard to CR LF.[/quote]
&lt;p&gt;&amp;nbsp;Yes, as explained in the documentation: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/applications/serial_lte_modem/README.html#terminal-connection"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/applications/serial_lte_modem/README.html#terminal-connection&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can, however, change the terminating character by setting either of the following options to &amp;quot;y&amp;quot; in the prj.conf file:&lt;/p&gt;
&lt;p&gt;- CONFIG_SLM_NULL_TERMINATION&lt;/p&gt;
&lt;p&gt;- CONFIG_SLM_CR_TERMINATION&lt;/p&gt;
&lt;p&gt;- CONFIG_SLM_LF_TERMINATION&lt;/p&gt;
&lt;p&gt;- CONFIG_SLM_CR_LF_TERMINATION (default)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]hen it will accept commands until you send an empty line. Once you do that, it will not replay to any further commands until you power cycle&amp;nbsp;the board.[/quote]
&lt;p&gt;&amp;nbsp;This is, unfortunately, a known issue we are working on resolving. For now, don&amp;#39;t send empty lines, or commands terminated by an interleaving sequence of carriage-returns and linefeeds. I.e. an &amp;quot;\r\r\r\r\n\n\n\n&amp;quot; ending is ok because the carriage-returns and linefeeds are not &amp;quot;mixed&amp;quot;, while &amp;quot;\r\n\r&amp;quot; is not ok.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]On top of that I cannot send PING or connect to anything, even though my Thingy:91 is&amp;nbsp;registered to an NB-IoT network, and has a valid and enabled IP address context. What is the proper syntax of those proprietary AT commands? There is no description on the Infocenter for AT commands, so I used whatever scarce resources there are on the&amp;nbsp;&lt;span&gt;serial_lte_modem page.&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;As the example adds more AT commands that are handled by the application, and not the modem, the AT command documentation in the infocenter is not the right place to look. That documentation only describes the commands supported by the modem. Instead, the added AT commands are documented in the sample documentation. We are aware that the sample documentation is a bit lacking, and are working on improving that.&lt;/p&gt;
&lt;p&gt;As for why your commands are not working, it looks to me like you have done everything correctly, except for missing double-quotes around the strings. I.e. the #XPING command should be&lt;/p&gt;
&lt;p&gt;AT#XPING=&amp;quot;httpstorm.com&amp;quot;,32,1000,4,1000&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>