<?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>&amp;quot;\r\n&amp;quot; will crash the modem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60148/r-n-will-crash-the-modem</link><description>Hi 
 We found the modem will crash when host issuing below commands to it: 
 &amp;quot;\r\n&amp;quot;, &amp;quot;\r\r\n&amp;quot;, &amp;quot;\n\r\n&amp;quot; 
 how to avoid this?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2020 10:22:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60148/r-n-will-crash-the-modem" /><item><title>RE: "\r\n" will crash the modem</title><link>https://devzone.nordicsemi.com/thread/244927?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 10:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d4a2a4-e663-42ac-ae39-372c31a4c9c2</guid><dc:creator>Siyou</dc:creator><description>&lt;p&gt;Understand, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "\r\n" will crash the modem</title><link>https://devzone.nordicsemi.com/thread/244494?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 14:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79db3286-58cd-48b5-8830-c288e79a782c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;After some testing, it seems like the problem is on the application side.&lt;/p&gt;
&lt;p&gt;The logic that forwards the AT commands to the modem seems to be confused when \r and \n are mixed. It should handle a long string of \r followed by a long string of \n.&lt;/p&gt;
&lt;p&gt;But, when it receives its &amp;quot;termination mode character&amp;quot; it will send what it has to the modem. The rest of the command will be interpreted as a separate command and sent to the modem by itself.&lt;/p&gt;
&lt;p&gt;The application then gets stuck waiting for a response from the modem.&lt;/p&gt;
&lt;p&gt;I have reported this internally.&lt;/p&gt;
&lt;p&gt;For now, I would recommend that you don&amp;#39;t mix \n and \r and don&amp;#39;t send more than one &amp;quot;termination character&amp;quot; per command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "\r\n" will crash the modem</title><link>https://devzone.nordicsemi.com/thread/244388?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 10:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2ec5ad3-9567-41f0-ac9d-2d4d523a6b39</guid><dc:creator>Siyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we tested it base on serial_lte_modem sample.&lt;/p&gt;
&lt;p&gt;when we issuing AT cmd like &amp;quot;AT+CFUN?\r\n\r\r\n&amp;quot; or &amp;quot;AT+CFUN?\r\n\n\r\n&amp;quot; or &amp;quot;AT+CFUN?\r\n\r\n\r\n&amp;quot; (that is &amp;quot;\r\r\n&amp;quot;, &amp;quot;\n\r\n&amp;quot; or &amp;quot;\r\n\r\n&amp;quot;), the modtem will not accept any command after these commands finished.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "\r\n" will crash the modem</title><link>https://devzone.nordicsemi.com/thread/244385?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 10:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f27b5ded-db9b-4089-b7ae-bbc2f20b55d7</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;How do you know that the modem crashed?&lt;/p&gt;
&lt;p&gt;What application was running on the application core?&lt;/p&gt;
&lt;p&gt;Are you able to capture a modem trace?&lt;/p&gt;
&lt;p&gt;How are the &amp;quot;commands&amp;quot; sent to the modem? Over UART via the at_client sample or at_host library? From the application using the at_cmd library? From the application using sockets directly?&lt;/p&gt;
&lt;p&gt;Does it only happen when you end the &amp;quot;commands&amp;quot; with &amp;#39;\n&amp;#39;, or does it also happen when you end them with &amp;#39;\r&amp;#39;?&lt;/p&gt;
&lt;p&gt;If you do not know how to take a modem trace, you can follow this guide: &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;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect&lt;/a&gt; &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>