<?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>MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73388/mqtt-return-error-after-24-hours</link><description>Hello! 
 I am sending MQTT commands over UART from an NRF52840 DK to the NRF9160 DK which has the ibasis sim card inside. I noticed 3 times so far that after 24 hours , 1 hour tolerance, I get only ERROR messages returned after sending the MQTT commands</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Jun 2021 15:07:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73388/mqtt-return-error-after-24-hours" /><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/315199?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 15:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:441a8dc6-f781-4c73-88fc-d78b60d65778</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi, Robert!&lt;br /&gt;&lt;br /&gt;Thank you for the update! It&amp;#39;s great to hear that things seemingly are running better and more reliable now. However, I don&amp;#39;t like the fact that it misbehaves to the degree we have seen here with bad reception. Hopefully a modem trace could give some information as well!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/315110?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 11:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ae29a8e-2d31-4b60-8be8-fe263f569a8f</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;An update:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- last week I got the new O2 sim card ( for IoT ) and took the set up I had on site and brought it on the bench ( nrf52840 dk communicating over uart to nrf9160 dk ) . Did not change anything on it except for the sim card.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- I am now into the 5th day of the system running continuously without issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A next step would be to get the same set up with O2 sim card on site and see how it behaves in that area or put the O2 sim card into another set up like this ( just different devices )&amp;nbsp; on the bench. I will do one of them this week and let you know again what happened.&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Robert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/312309?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 08:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad518494-8707-4d85-b205-cefeda8988f2</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;Understood. This means that the nRF9160 itself likely has crashed. If it happens to all modems it&amp;#39;s not a faulty device at least, and more likely a bug in the code/modem. We just released a new modem version (v1.3.0), so you could look into upgrading one of the devices to see if that makes a difference as well. Looking forward to new results with a different SIM!&lt;br /&gt;&lt;br /&gt;In order to monitor the on site device you must either save relevant information to the flash, so that it can be read out afterward or have it connected to a computer for UART logging. Given that the same issues arise from the device connected to your computer I think the best approach is to get the logs and trace from that device first.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve spoken with the engineer that have taken your other case and we&amp;#39;ve agreed that he will follow you up further, if that&amp;#39;s okay for you. However, I&amp;#39;ll leave this case open and I will monitor the other case so that I can assist when necessary.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/312179?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 15:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d49ecd-47cf-439c-98df-8b1f6a8275bb</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;Hello, Carl!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I know that the modem does not reply to AT commands once offline , the answer I got was &amp;quot; ERROR&amp;quot; to all commands sent once it went offline. The interesting part is that it happened to all modems that I used so far on site in Cambridge; only once I got a modem working for a couple&amp;nbsp; of days continuously on my bench and I am about 20 miles outside Cambridge. Taking this network coverage related path, sometime this week or early next week I should receive an O2 IoT sim card which I want to try out and see if the same behaviour happens.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Is it possible to monitor the dk that I have on site, since that will have valuable information? I am asking this because so far I had the monitored dk connected to my PC and the one on site is on battery.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have opened a couple of day back a topic related to modem re-connection. Should I close it and continue here? (&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75532/nrf9160-dk-fails-to-reconnect-to-network"&gt;devzone.nordicsemi.com/.../nrf9160-dk-fails-to-reconnect-to-network&lt;/a&gt; )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All the best,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Robert.&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: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/312173?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 15:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2673c35f-257f-45fe-8cde-06d560e17575</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello again, Robert!&lt;br /&gt;&lt;br /&gt;Apologies for the delayed answer and thanks for the elaborate description and testing. I may have focused to much on the application side of things, while it seems like your problems may be related to the modem. The best approach now will be to get a modem trace, so that we can get some insight into the modem behavior. Please follow &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/collect_modem_trace.html"&gt;this guide&lt;/a&gt;&amp;nbsp;when doing the trace.&lt;br /&gt;&lt;br /&gt;The device should be able to reconnect without a hard reset,&amp;nbsp;but it may be that the disconnection renders it in an erroneous state. Does the device still respond to AT commands when offline?&lt;br /&gt;&lt;br /&gt;Thank you for your patience.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/310274?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 23:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80377f0e-4cd7-4196-974f-6bda0a4324e7</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;After some while getting back with some updates on the nrf9160 behaviour and also some extra info which hopefully might help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;On site testing I placed 2 nrf9160 dk&amp;#39;s 100m apart from one another, communicating to the same broker, same data, same setup etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Test were not comprehensive and only been on them for like 2 days. I noticed that both modems disconnected in the same time. I saw this&amp;nbsp;on the database timestamp I put on the data.&amp;nbsp; This happened twice and also a third time I was in the virtual google cloud machine console looking at the mosquitto topic and got nothing from neither of them in the same time, so they offline in the same time.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;On the broker side, mosquitto hosted in google cloud machine, I do get a timeout after 60s . I think there is no ping for 60s so the broker closes the connection.&amp;nbsp; Mosquitto does&amp;nbsp;log same message&amp;nbsp; when I just turn off the modems, just wanted to see if i might get a different log error for when they are off and when they stop communicating, had to test out this also...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This does not explain why the modems do not reconnect and start sending data again, since they do have voltage and they do get the AT commands over uart , which are the right commands since I put an oscilloscope probe on the traces .&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Related to the missing &amp;quot;A&amp;quot; in the &amp;quot;AT&amp;quot; , yes,&amp;nbsp; more than certain there are sometimes, some packets sent incompletely or with strange characters but the modems do not disconnect because of that. I am saying this because I also saw live such a packet with erroneous characters and the modem staid connected afterwards.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; When the modem goes into an off the network state if I turn it&amp;nbsp;off and&amp;nbsp;on again everything works fine, therefore I can also exclude that the network coverage goes away completely.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is there a possibility for the modem to loose network signal at some point&amp;nbsp; for a short period and then just can&amp;#39;t connect again without the hard reset? I am asking this because I went on the Ibasis website and saw that there is limited coverage for UK and also I could not get hold of a Vodafone iot sim card so far to test them out also; Vodafone present as offering nbiot in uk.&lt;/p&gt;
&lt;p&gt;Yes, it sounds stupid, but I&amp;#39;m expecting for the hard reset logic, network discovery and connection/reconnection wise, to be the same as when the modem losses network coverage and tries to reconnect again.&lt;/p&gt;
&lt;p&gt;Please advise of anything I might try, logs I might give back, to reach a stable state&amp;nbsp; with the modems.&lt;/p&gt;
&lt;p&gt;The area I am testing is Cambridge but did had the same behaviour also somewhere like 20 miles outside Cambridge.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;At the moment I have a timer which does a hard reset of the voltage every 3 hours and it does the trick.&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Robert.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/307031?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 12:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab811bde-d829-4350-91c2-abd0fc9a2f26</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again, Robert!&lt;br /&gt;&lt;br /&gt;Thanks, I can still see the same errors as earlier, with the the MQTTPUB command missing the &amp;quot;A&amp;quot; in AT. In addition, it seems like the extra logging wasn&amp;#39;t enabled properly. How are you configuring the project?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The certificates should not affect the behavior, other than affecting which cloud services that can be connected to. How is the hardware different in the second setup?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/306653?ContentTypeID=1</link><pubDate>Sun, 25 Apr 2021 14:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4501457-7a2f-473e-9519-e8e8e6c0f798</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;&amp;nbsp;The old set-up but with the new mqtt broker: &amp;quot;&amp;nbsp; AT#XMQTTCON=1,&amp;quot;nRF9160_apr_test_21&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;test.mosquitto.org&amp;quot;,1883 &amp;quot;&amp;nbsp; stoped again after 24 hours.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The new set-up but with old mqtt broker still works after 3 days and counting.&lt;/p&gt;
&lt;p&gt;Logs attached from the old set-up with the extra config added : &amp;quot;&amp;nbsp;&lt;strong&gt;CONFIG_AT_CMD_LOG_LEVEL_DBG=y&amp;nbsp;&lt;/strong&gt;&amp;quot;&amp;nbsp; .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The only thing different between them 2 set-ups are :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- hardware...which is obvious;&lt;/p&gt;
&lt;p&gt;- mqtt broker;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- and possibly, I&amp;#39;m not sure if or if it is relevant, the certificates that I added...the one that does not work I added standard the nrf cloud certificates but on the new one, which still works, I plaid around a couple of months back and I think it has the google cloud or aws certificates;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Other than the ones above I can&amp;#39;t think of any differences between the 2. The modem firmware is the same on both : &amp;quot;&amp;nbsp;&lt;b&gt;&amp;nbsp;mfw_nrf9160_1.2.3 &amp;quot; .&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;All the best,&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Robert.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs6.log"&gt;devzone.nordicsemi.com/.../logs6.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs_5F00_terminal6.log"&gt;devzone.nordicsemi.com/.../logs_5F00_terminal6.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/306422?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 18:18:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1078d23f-0e4c-4927-85d8-d7e924492b5e</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;&amp;nbsp;Did a second set-up, mirroring the first one, but with the mqtt broker from above and also added the setting in .proj file. I am live here :&amp;nbsp;&lt;span&gt;sudo mosquitto_sub -t nRF9160_apr_test_21 -h test.mosquitto.org -p 1883 , when the sensors transmit.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;When&amp;nbsp; the modem goes offline / off again will get back to you.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;They both run in parallel to see if they go down in the same time, etc.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will get back once they fail.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All the best,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Robert.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/306176?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 15:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e5a728-d0dd-449e-9da8-cecd0a5e30bf</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;&amp;nbsp;Will do that and get back to you.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/306082?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 11:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f491f880-a48f-47e6-b22c-da6e5643eb94</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;Based on the logs the nRF9160 still isn&amp;#39;t receiving the complete MQTT AT commands. I&amp;#39;m not sure what&amp;#39;s happening, but could you try to set&amp;nbsp;&lt;strong&gt;CONFIG_AT_CMD_LOG_LEVEL_DBG=y&lt;/strong&gt; for the next run as well. This will give us more verbose logs.&lt;br /&gt;&lt;br /&gt;In addition, could you try to connect to a more simple MQTT broker, for example:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT#XMQTTCON=1,&amp;quot;nRF9160_apr_test_21&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;test.mosquitto.org&amp;quot;,1883&lt;/pre&gt;&lt;br /&gt;So that we can rule out any issues with the particular broker connection.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/305644?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 17:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9243a9f0-51b1-49e5-8ea6-0195d05ae02b</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;&amp;nbsp;Hello again!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I attach the 2 log files, terminal and data, with the added&amp;nbsp;CONFIG_LOG_STRDUP_MAX_STRING=256 .&lt;/p&gt;
&lt;p&gt;This are the commands that I send out :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1 - &amp;gt; &amp;quot;AT\r\n&amp;quot;;&lt;br /&gt;2 - &amp;gt; &amp;quot;AT+CFUN=1\r\n&amp;quot;;&lt;br /&gt;3 - &amp;gt; &amp;quot;AT+CFUN?\r\n&amp;quot;;&lt;br /&gt;4 - &amp;gt;&amp;quot;AT#XMQTTCON=1,\&amp;quot;test\&amp;quot;,\&amp;quot;user\&amp;quot;,\&amp;quot;12345678\&amp;quot;,\&amp;quot;34.105.xxx.xxx\&amp;quot;,10803\r\n&amp;quot;;&lt;br /&gt;5 - &amp;gt; * here I add the information received from a sensor* - &amp;gt;&amp;nbsp; AT#XMQTTPUB=\&amp;quot;gw-event/received_data/\&amp;quot;,1,\&amp;quot;$P11,2128,211,1111,52.23445786825217,0.1434466448266854,Car,CR\&amp;quot;,1,0\r\n&amp;quot;;&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Robert.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs5.log"&gt;devzone.nordicsemi.com/.../logs5.log&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs55.log"&gt;devzone.nordicsemi.com/.../logs55.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/304227?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 10:56:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d0dd3f-a1aa-42f2-9b8d-0708b0639a3b</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again, Robert!&lt;br /&gt;&lt;br /&gt;Thanks for the logs. The MQTT AT-Commands seems to be malformed somehow, resulting in the nRF9160 returning an error. See below:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;10&amp;gt; T#XMQTTPUB=&amp;quot;gw-event/received_data/&amp;quot;,1,&amp;quot;$P1~
10&amp;gt; [05:20:21.881,256] &amp;lt;dbg&amp;gt; at_cmd.at_cmd_write: Awaiting response for T#XMQTTPUB=&amp;quot;gw-event/received_data/&amp;quot;,1,&amp;quot;$P1~&lt;/pre&gt;&lt;br /&gt;Here the &amp;quot;A&amp;quot; in &amp;quot;AT&amp;quot; is missing, and the message is cut short as well. Could check if the correct AT command is sent from the host device? This could also be related to buffer sizes, so if possible please share a full length AT command with me so I could check that.&lt;br /&gt;&lt;br /&gt;For later logs please add&amp;nbsp;&lt;strong&gt;CONFIG_LOG_STRDUP_MAX_STRING=256&lt;/strong&gt; in your prj.conf, since the messages currently are too long to be displayed.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/304147?ContentTypeID=1</link><pubDate>Sun, 11 Apr 2021 18:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ccdf940-d1c3-497b-b866-d1f0a7e385c4</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;Hello, Richard!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I attached 2 log files, data and terminal logging.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The NRF9160DK stoped again without any reply on the UART channel, while the NRF52840 was sending data every 20 seconds as it should. I pushed &amp;quot; RESET &amp;quot; on the NRF9160DK and started working again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The NRF9160 DK USB is connected to the PC and the NRF52840 DK is connected to an USB mains adapter. The time when it worked for 3 days they were both connected to the mains through an USB adapter. The PC is set to never go to sleep so I do have power all the time. Doesn&amp;#39;t make sense to mention this setup&amp;nbsp; but I though to add it in also...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I started LOGGING after I connected to the NRF9160DK. If the logs are not the proper ones please let me know.&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Robert.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;

=====added by me manually because I started loging after I turned ON the RTT Viewer===

=====START HERE====
LOG: J-Link RTT Viewer V6.98b: Logging started.
LOG: Terminal 0 added.
LOG: Terminal 10 added.
LOG: Connecting to J-Link via USB...
LOG: Device &amp;quot;NRF9160_XXAA&amp;quot; selected.
LOG: ConfigTargetSettings() start
LOG: ---Setting ROM table---
LOG: ConfigTargetSettings() end
LOG: Found SW-DP with ID 0x6BA02477
LOG: DPIDR: 0x6BA02477
LOG: Scanning AP map to find all available APs
LOG: AP[7]: Stopped AP scan as end of AP map has been reached
LOG: AP[0]: AHB-AP (IDR: 0x84770001)
LOG: AP[1]: AHB-AP (IDR: 0x24770011)
LOG: AP[2]: JTAG-AP (IDR: 0x12880000)
LOG: AP[3]: APB-AP (IDR: 0x54770002)
LOG: AP[4]: JTAG-AP (IDR: 0x12880000)
LOG: AP[5]: JTAG-AP (IDR: 0x12880000)
LOG: AP[6]: MEM-AP (IDR: 0x128800A1)
LOG: Iterating through AP map to find AHB-AP to use
LOG: AP[0]: Core found
LOG: AP[0]: AHB-AP ROM base: 0xE00FF000
LOG: CPUID register: 0x410FD212. Implementer code: 0x41 (ARM)
LOG: Found Cortex-M33 r0p2, Little endian.
LOG: FPUnit: 8 code (BP) slots and 0 literal slots
LOG: Security extension: implemented
LOG: Secure debug: enabled
LOG: CoreSight components:
LOG: ROMTbl[0] @ E00FF000
LOG: ROMTbl[0][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33
LOG: ROMTbl[0][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT
LOG: ROMTbl[0][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB
LOG: ROMTbl[0][3]: E0000000, CID: B105900D, PID: 000BBD21 ITM
LOG: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 002BBD21 ETM
LOG: ROMTbl[0][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI
LOG: RTT Viewer connected.
LOG: Terminal logging started.
LOG: Data logging started.
=====END HERE======

=====WHAT IS BELLLOW IS ALL THAT THE SYSTEM SAID AFTERWARDS====

# SEGGER J-Link RTT Viewer V6.98b Data Log File
# Compiled: 15:05:00 on Mar 12 2021
# Logging started @ 10 Apr 2021 22:18:33
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logsRTT3.log"&gt;devzone.nordicsemi.com/.../logsRTT3.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303901?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 07:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daac1087-4b27-4644-ab85-f63c9e177dcc</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Thanks for the update. The nRF9160 must have crashed somehow, which is unfortunate. Hopefully the logs will provide some insight!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303289?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 17:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7176f910-3c48-4570-87e7-01e7e1e546fa</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;An update + unknown:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- after 3 days of working the modem stoped again transmitting over MQTT; connected the oscilloscope probe to the UART and got nothing back this time, no &amp;quot;ERROR&amp;quot; message or anything else. The NRF52840 was transmitting data to the NRF9160 continuously though.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I pressed &amp;quot; RESET&amp;quot; on the NRF52840 DK and it had no effect on the NRF9160 DK, still no reply on UART ...like an &amp;quot; OK &amp;quot; back from the at commands or an &amp;quot; ERROR &amp;quot; ;&amp;nbsp;&lt;span&gt;I pressed &amp;quot; RESET&amp;quot;&amp;nbsp;&lt;/span&gt; on the NRF9160 DK and I got the &amp;quot; READY&amp;quot; reply message and it started working again as expected with all the reply messages on UART.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- I started the RTT Viewer V6.98b on Windows and will get back with the logs when the modem stops next time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; All the best,&lt;/p&gt;
&lt;p&gt;Robert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303234?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15177da1-4517-4e21-90e2-8fff41da0a60</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;Yes, I did confuse the 2 of them. Will get on it and get back to you. All the best!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303176?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 13:18:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e44ec36e-2a79-4d7d-9493-cd633e244f14</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;This sample writes the logs over the RTT protocol. So if you connect to the device with the JLink RTT Viewer (or using the built in terminal in SES), the logs should be printed there.&lt;br /&gt;&lt;br /&gt;Logs are not to be confused with a modem trace, which only can be read by us here. I don&amp;#39;t need a modem trace from you yet, as I don&amp;#39;t believe that this is a modem issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303115?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 11:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2ce9da-8031-40a8-b8a3-0f9e991173d4</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;&amp;nbsp;I was saying I do not know how to access the logs. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303112?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 11:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46f6fc5f-d3b7-49ee-9929-0468fba8a26f</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;You can post the logs here either by uploading the file directly or by pressing &amp;quot;Insert&amp;quot;-&amp;gt;&amp;quot;Code&amp;quot; and copying in the log contents. If the information is sensitive I can make this case private.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303098?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 10:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75d0a8be-3611-4424-8f23-980230ed7e8a</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;&amp;nbsp;I did enable logging&amp;nbsp;&lt;span&gt;&amp;quot;CONFIG_SLM_LOG_LEVEL_DBG=y&amp;quot;&amp;nbsp; ...a web-link with instructions on how to pass over the logs to you? ... in the sense that I&amp;#39;ve read that only development can read the logs...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303062?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 09:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:813d74b9-fcec-4b4a-b37e-56ab1f6c59d4</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;Understood. It seems like a part of your answer was lost, but I take it as the application works now? The solution is arguably not clean, as you have to send the full series of commands every time, so we could look further into this if you would like that. Again, any logs are appreciated!&lt;br /&gt;&lt;br /&gt;It seems like your device disconnects from the broker at some point, since it works when you do the connection procedure every time.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303042?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 09:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c275eef2-d2bd-4031-aa1c-0562dc7be93a</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;Hello, Richard!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In the first instance I was giving the series of commands&amp;nbsp; only once in the function &amp;quot;&amp;nbsp;void App_init(const app_global_functions_t * functions) &amp;quot; ...now I also Included those function with each callback when I have a message on UART, in the functions &amp;quot; lib_data-&amp;gt;setDataReceivedCb(uart_write);&lt;br /&gt; lib_data-&amp;gt;setBcastDataReceivedCb(uart_write); &amp;quot; .&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The called function &amp;quot;&lt;span&gt;uart_write &amp;quot; sends the series of commands &amp;quot;&amp;nbsp;&amp;nbsp;AT\r\n ;&amp;nbsp;AT+CFUN=1\r\n ;&amp;nbsp;AT+CFUN?\r\n ;&amp;nbsp;AT#XMQTTCON=1,&amp;quot;test&amp;quot;,&amp;quot;USER_HERE&amp;quot;,&amp;quot;PASSWORD_HERE&amp;quot;,&amp;quot;34.105.208.xxx&amp;quot;,10803\r\n ;&amp;nbsp;&amp;nbsp;AT#XMQTTPUB=&amp;quot;gw-event/received_data/&amp;quot;,1,&amp;quot;PAYLOAD_HERE&amp;quot;,1,0\r\n ; &amp;quot; each time&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;For the last 3 days the modem worked continuously.&amp;nbsp; I&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/303024?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 08:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32c853ba-746e-451b-b6dc-1169312d1b17</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;Have you had any progress?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT return ERROR after 24 hours</title><link>https://devzone.nordicsemi.com/thread/302726?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 12:17:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff8d04d-d9b7-4ea9-957b-908ac04e5124</guid><dc:creator>RobertT</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp;&lt;span&gt;Serial LTE Modem(SLM)&amp;nbsp; . When I hit &amp;quot; Reset &amp;quot; on the nrf52840 it sends the succesion of commands again and everything start working. Will try and separate the commands to see which one makes everything working again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>