<?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>[Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117056/bug-report-datamode-termination-string-does-not-exit-data-mode</link><description>I believe I have discovered a bug in the SLM firmware. I am using SDK v2.6.1. 
 When running the nRF9160 in MQTT datamode, we are encountering an issue where the slm_quit_string has been appearing in the payload. The slm_quit_string appears in the data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Dec 2024 11:43:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117056/bug-report-datamode-termination-string-does-not-exit-data-mode" /><item><title>RE: [Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/thread/515454?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 11:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48ca2f77-171a-41ad-b67b-15f057efdd42</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There is now this&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/19572"&gt;pull request&lt;/a&gt;&amp;nbsp;which should fix this issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/thread/515089?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 12:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0a3f82-940e-4963-8fde-7ff4193d8688</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We are looking into the best way to implement the fix for resolving this issue. I will get back to you with the status update by the end of this week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/thread/514873?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 10:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22eb8c80-6240-485b-9756-f9922714296e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you again for reporting this issue, providing comprehensive report and potential fix. We will further look into this. I will get back to you by the end of next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/thread/514750?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 13:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b882212-ba5b-4db1-9e8c-1fbc9c282125</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We will look into this internally. I expect to get back to you by the end of next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/thread/514353?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 17:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:627e19cc-1684-446b-ad25-11a8ab798003</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for additional information. &lt;br /&gt;&lt;br /&gt;Can you test if the same problem exists in NCS v2.8.0?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/thread/514126?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 20:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93421a08-a2c9-45eb-a3fe-f25e6fdeef2f</guid><dc:creator>ben</dc:creator><description>&lt;p&gt;Data mode is exited in one of two ways. I can simply just wait until the data mode timeout is trigger. In this case we receive the payload and the first character(s) of the termination string.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alternatively datamode may be exited by sending the termination string again, which is what I did in the procedure listed.&lt;/p&gt;
&lt;p&gt;The same behavior can be described when &amp;quot;12345hel&amp;quot; is sent as well, to exit data mode in this case I either wait for the datamode timeout or send an additional termination string.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am currently moving forward with my proposed solution, so I unfortunately do not have a full log of the AT commands and their responses. I suspect following my listed procedure would be reproduce the same behavior.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug Report] Datamode termination string does not exit data mode</title><link>https://devzone.nordicsemi.com/thread/513868?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 14:52:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:626053a6-10d3-44f7-ae2d-0159139f1265</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Ben,&lt;br /&gt;&lt;br /&gt;Thank you for reporting this potential bug and providing possible solution.&lt;/p&gt;
[quote user=""] if the last character of the payload is the first character of the termination string, the device will not exit data mode.[/quote]
&lt;p&gt;How do you exit data mode in this case?&lt;br /&gt;Were you not able to exit data mode also in the other described situation when you sent &amp;quot;12345hel&amp;quot;?&lt;/p&gt;
[quote user=""]&lt;p&gt;I performed the following steps to recreate this (Note: this assumes the termination string is &lt;code&gt;hello)&lt;/code&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Connect the device to a serial terminal&lt;/li&gt;
&lt;li&gt;Turn on device modem with &lt;code&gt;AT+CFUN=1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Connect to MQTT broker using &lt;code&gt;AT#XMQTTCONN=&amp;lt;MQTT credentials&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Set datamode timeout to 20 seconds using&lt;code&gt; AT#XDATACTRL=20000&lt;/code&gt; (this is just so I have time to send my messages)&lt;/li&gt;
&lt;li&gt;Enter data mode using &lt;code&gt;AT#XMQTTPUB=&amp;lt;MQTT pub message&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Send &lt;code&gt;12345h&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Send &lt;code&gt;hello\r\n&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;In this case data mode does not exit, so I must send &lt;code&gt;hello\r\n&lt;/code&gt; again.&lt;/li&gt;
&lt;li&gt;I check the what is sent over MQTT, and see that it is &lt;code&gt;12345hhello&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;[/quote]
&lt;p&gt;Can you provide full log containing all used AT commands and their responses?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>