<?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 data mode exit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95206/nrf9160-slm-data-mode-exit</link><description>Hi, 
 I&amp;#39;m using nRF9160 to send real-time data over MQTT. I&amp;#39;m doing 1 MQTT publish per second. It works most of the time, however, I noticed that the modem couldn&amp;#39;t exit the data mode occasionally. I append &amp;quot;+++&amp;quot; at the end of the data, but the modem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Jan 2023 09:06:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95206/nrf9160-slm-data-mode-exit" /><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/404491?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 09:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3309047-7f66-4739-a12f-6a8b1336a8cc</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;are you able to share more information on the MQTT payload? I would like to reproduce the issue on my side, but will need more information on your setup on both modem side and host side please.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&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><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/403986?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 08:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c00f817-3100-49f6-8eed-3488c15d8f41</guid><dc:creator>yesheng</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I think 2.0.2 doesn&amp;#39;t send this. Instead, it sends &amp;quot;OK&amp;quot; when the modem sent the message successfully.&lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m still a bit confused about how to utilize #XDATAMODE:0. Do I keep sending &amp;quot;+++&amp;quot; every now and then until the modem returns &lt;span&gt;&amp;nbsp;&amp;quot;#XDATAMODE: 0&amp;quot;&lt;/span&gt;? This approach seems a bit ineffective.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/403979?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 08:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261d98a6-a45a-4c22-b146-5d63f003d5c3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Do you receive &amp;quot;#XDATAMODE: 0&amp;quot;? According to our developers you must wait for this, and refer to the latest version of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/applications/serial_lte_modem/doc/slm_data_mode.html#exiting-data-mode"&gt;SLM documentation on Exiting data mode&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/403299?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 07:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db69ac50-ec1a-47a5-8334-2c0f22efd922</guid><dc:creator>yesheng</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m using&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;AT#XMQTTPUB&lt;/strong&gt; to enter data mode, the payload comes after this. The payload ends with &amp;quot;+++&amp;quot;, which tells the modem to leave the data mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Once the modem is stuck in the data mode, the next AT#XMQTTPUB will be treated as part of the payload. Hence, I can see the &amp;quot;+++AT#XMQTTPUB&amp;quot; in the MQTT broker.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My hypothesis is the modem&amp;nbsp;for some reason stuck in&amp;nbsp;&amp;quot;datamode off pending&amp;quot; state for a little longer. Hence, the modem still sends everything it receives until it actually leaves the datamode.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/403294?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 07:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb5a2936-3066-48b3-a8ec-88937534faf2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thanks for clarifying. Sorry for the late answer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you provide the commands that you send from the host MCU to the SLM device? What signal does your state machine receive from the SLM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/402726?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2023 14:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32d729db-8e87-4b28-bee7-3d507c08b6a0</guid><dc:creator>yesheng</dc:creator><description>&lt;p&gt;Sorry I wasn&amp;#39;t clear. I was referring to the state machine&amp;nbsp;in the host MCU. The state machine thinks the 9160 exits the data mode and starts sending some AT commands. However, those AT commands were sent to the MQTT broker.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the out-of-the-box SLM FW.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/402636?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 09:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17cf6dc6-0ccb-49dc-a128-1c57761ad5d0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="yesheng"]This confuses my state machine, so part of the command was treated as data and being sent.[/quote]
&lt;p&gt;Have you added this state machine to the Serial LTE Modem application? If so, can you share what this does and where it does?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/402495?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 08:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d5bb0ac-70ab-4e77-aad2-e46c4a4d3f17</guid><dc:creator>yesheng</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the suggestion. Under normal conditions, the modem should do the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Enters data mode --&amp;gt; sends ABC bytes --&amp;gt; sends XYZ bytes --&amp;gt; exits data mode (by appending &amp;quot;+++&amp;quot; at the end of sending XYZ bytes).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The RTT viewer for normal conditions looks like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672295628965v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, the &amp;quot;+++&amp;quot; doesn&amp;#39;t always work immediately. The abnormal conditions look like this:&lt;/p&gt;
&lt;p&gt;Enter data mode --&amp;gt; sends ABC bytes --&amp;gt; sends XYZ bytes (with &amp;quot;+++&amp;quot; appended in the end) --&amp;gt; sends QRS bytes --&amp;gt; exits data mode. Although the modem receives the &amp;quot;+++&amp;quot; at the end of XYZ bytes, it doesn&amp;#39;t actually exit the data mode until QRS was sent.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672295973111v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;From this capture, the modem receives &amp;quot;+++&amp;quot; symbol at time&amp;nbsp;00:14:57.111,145, but didn&amp;#39;t exit data mode until the next blob was sent&amp;nbsp;00:14:58.559,844.&lt;/p&gt;
&lt;p&gt;This confuses my state machine, so part of the command was treated as data and being sent.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/402428?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 11:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92e91646-f620-4c0c-bfe2-725e05f62e76</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, are you getting any errors in RTT or log output?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SLM data mode exit</title><link>https://devzone.nordicsemi.com/thread/402371?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 08:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fccf9ad7-c0fc-4661-bd59-99b0435836bd</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Due to Christmas Holidays our team is lower staffed than normal and some delays in our answers must be expected. We apologize for the inconvenience.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I will have a look at your ticket and get back to&amp;nbsp;within today or tomorrow.&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>