<?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 MQTT connection failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50735/nrf9160-mqtt-connection-failure</link><description>Hi, 
 
 We are using nRF9160 ncs version 1.0.0. 
 I have two queries. 
 
 We are making connection with AWS server. In the backend we have telenor server. 
 We make MQTT connection, publish data and disconnect from server. 
 Connection interval is 5 minutes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Sep 2019 06:28:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50735/nrf9160-mqtt-connection-failure" /><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/208577?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 06:28:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f43191-8a26-4857-b4be-367f7d2f1203</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;That&amp;#39;s great! Glad we were able to solve this problem!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/208570?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 03:18:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80902e7a-bb79-47c0-8559-611ccfef37c0</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;New modem firmware(v1.0.1) solved the issue.&lt;/p&gt;
&lt;p&gt;Now it doesn&amp;#39;t get stuck in MQTT connection.&lt;/p&gt;
&lt;p&gt;Thanks !!!!!!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/208461?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 11:52:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0623d25a-e95f-4b9c-87b4-98efdc209d12</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for informing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have kept my set up in test with v1.0.1 modem firmware.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will tell you status tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/208097?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 06:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c136f7cf-dc1b-4dfd-a390-5456d1646a4d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Smitesh&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve just released a new modem firmware update (v1.0.1) that solves a lot of bugs, including more robust TLS connections, which is what we think is the issue in your application. Please try downloading and upgrading to this new modem and see if you&amp;#39;re still having this issue.&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs"&gt;The new modem firmware update can be downloaded here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205901?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 12:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24eaca14-67a6-4410-b0a2-b34875f806ee</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Smitesh&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve looked at your modem trace, and can&amp;#39;t seem to find anything out of the ordinary. It seems the modem trace ends while the system is still connected, and it does not seem stuck in any way. However, our experts are looking into it, and hopefully, they&amp;#39;ll be able to provide an answer over the weekend. I&amp;#39;ll update you as soon as I know something!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205756?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 07:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb5abbb-d34b-40ae-8633-fb83edb0627e</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is 40 minutes trace only. As i changed the frequency of connection with server to 1 minutes for test to generate&lt;/p&gt;
&lt;p&gt;the issue faster. Issue was generated around 40 minutes as you mentioned.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You won&amp;#39;t find disconnection event as the system got stuck in &amp;quot;mqtt_connect&amp;quot; function in attempt of making connection.&lt;/p&gt;
&lt;p&gt;After that there won&amp;#39;t be any further traces.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you find anything at the end of this traces which can help&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205744?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 06:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee599c2-521b-4f12-ba03-919940356541</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I got word from the developers, and when decrypted, the trace you uploaded only lasts for 40 minutes. It seems like the modem trace collector has been stopped somehow. So we haven&amp;#39;t been able to see the disconnection event this time either. You have to make sure the full modem trace is being taken. We&amp;#39;ve been able to collect traces of this length on with our asset tracker example code, so there shouldn&amp;#39;t be an issue with a timeout on the trace collector side. Are you using a development kit to do the tests?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205548?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 11:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801cd58f-9377-4576-93c9-8ef76e6a4ac4</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please find the traces attached with connection issue generated.&lt;/p&gt;
&lt;p&gt;Please check it and revert to me as soon as possible.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2019_2D00_08_2D00_22T10_2D00_14_2D00_27.570Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2019_2D00_08_2D00_22T10_2D00_14_2D00_27.570Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205329?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 13:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f561e8a-94ad-45be-abd3-434a0cb2774f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Smitesh&lt;/p&gt;
&lt;p&gt;That file was valid, so you&amp;#39;re good to start your test!&lt;/p&gt;
&lt;p&gt;Best of luck and regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205291?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 11:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:385f22db-0e34-4919-90e2-27e9a02b3b38</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please check the attached traces&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it can be decoded then i will start my test.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2019_2D00_08_2D00_21T11_2D00_38_2D00_30.273Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2019_2D00_08_2D00_21T11_2D00_38_2D00_30.273Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205280?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 11:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e0d2518-0346-48fc-85c3-1267059f6f62</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;The modem trace log has to be parsed and processed by us for it to be readable.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205263?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 10:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb37f5bb-035d-4e20-bde0-89058422d839</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it possible to see the traces on PC terminal ?&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t send &amp;quot;&lt;span&gt;AT%XMODEMTRACE=1,2&amp;quot; command yesterday.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have added it now but if i see the traces on PC terminal then it shows unreadable data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have kept 115200 buad rate.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205183?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 07:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f5732c7-1e6d-44ae-a533-1a4fba872281</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry, but it seems your modem trace is invalid, as we&amp;#39;re not able to read anything useful from it. I understand that this may be frustrating to hear, seeing as it takes you so long to reproduce the issue, but we&amp;#39;ll need a readable one in order to help you find out what&amp;#39;s going on. What you can do, is sending a test trace that doesn&amp;#39;t require 8 hours of waiting first, so that we can check if the modem trace is correct before you send the 8-hour version&lt;/p&gt;
&lt;p&gt;The most common mistakes are that&amp;nbsp;&lt;em&gt;&lt;span&gt;CONFIG_BSD_LIBRARY_TRACE_ENABLED=y&lt;/span&gt;&lt;/em&gt;&lt;span&gt;&amp;nbsp;in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;prj.conf&amp;nbsp;&lt;/strong&gt;isn&amp;#39;t set in step 1, and that AT%XMODEMTRACE=1,2 isn&amp;#39;t sent in step 4.&lt;/p&gt;
&lt;p&gt;Best regards and sorry for the inconvenience,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/205158?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 03:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0e3ccca-18a2-4f38-a8af-0679efa08cbc</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have captured the traces of Modem of the issue where nRF9160 gets stuck in&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;connect&amp;quot; function after 8-9 hours of successful connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have attached the traces here.&lt;/p&gt;
&lt;p&gt;Log with problem should be at the end of this file as after the issue no connection happened.&lt;/p&gt;
&lt;p&gt;Please check it and try to answer me as soon as possible.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2019_2D00_08_2D00_20T10_2D00_13_2D00_59.137Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2019_2D00_08_2D00_20T10_2D00_13_2D00_59.137Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/204889?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 03:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f70a2cfd-2a1f-45f2-8d16-b969e153bb8b</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I followed the commands you have mentioned in your thread but there is no difference in ncs folder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;bsdlib is same after fetching the v1.0.0 with what i am using.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try to give you traces of modem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/204753?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 12:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a31daec6-8acd-42c6-bea4-7e914601d1ba</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;So you can confirm that bsdlib and ncs matches? These commands in the CLI should do the trick, sorry for not posting these earlier:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd ncs/nrf
git checkout master
git pull
git checkout v1.0.0
west update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please confirm you&amp;#39;ve done this, and that bsdlib matches ncs. If the problem persists, please get a modem trace with this behavior and upload it here, so our developers can have a look at what exactly is going on. You can follow &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;this guide to get the modem trace using the Trace Collector app&lt;/a&gt; in nRFConnect for desktop.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/204615?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 04:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e307eb-d7f2-4fc2-93f9-9cf4a5d3568e</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I checked after checkout and update west again and also reset modem firmware but we are getting same issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We did another test yesterday.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are powering off and on the nRF9160 supply every 2 hours.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After doing this we are not getting issue of nRF9160 getting stuck in &amp;quot;connect&amp;quot; function and data is being sent&amp;nbsp;&lt;/p&gt;
&lt;p&gt;to server every 5 minutes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So it definitely seems firmware related issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/204050?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 11:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e2c73e-873d-4889-a222-08c399422c98</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yeah, the timing seems to check out.&amp;nbsp;Please confirm whether or not running a checkout, updating west, and reinstalling the modem firmware worked.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/204019?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 09:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17fe4752-ad40-4a8a-a7bb-fcec773f6198</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got &amp;quot;+CEREG: 5,1,&amp;quot;7A45&amp;quot;,&amp;quot;011DA405&amp;quot;,7,,,&amp;quot;00000001&amp;quot;,&amp;quot;10111110&amp;quot;&amp;lt;CR&amp;gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;So settings received from network is&lt;/p&gt;
&lt;p&gt;CONFIG_LTE_PSM_REQ_RPTAU=&amp;quot;&lt;span&gt;10111110&lt;/span&gt;&amp;quot; and&amp;nbsp;CONFIG_LTE_PSM_REQ_RAT =&amp;nbsp;&lt;span&gt;00000001&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Our setting is below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_LTE_PSM_REQ_RPTAU=&amp;quot;00000011&amp;quot;&lt;/p&gt;
&lt;p&gt;CONFIG_LTE_PSM_REQ_RAT=&amp;quot;00000000&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So TAU value as per my calculation is 30 minutes in both &amp;quot;&lt;span&gt;10111110&amp;quot; and &amp;quot;00000011&amp;quot; settings.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I don&amp;#39;t think it should make difference in terms of timing is concerned.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/203842?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 13:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20fa0ae2-9ffb-4180-8ac9-cedb9f35fa03</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve asked my colleagues about your matter, and they suggest this might be a mismatch somewhere. Could you try running a checkout in the repo, and a west update, as well as reinstalling the newest modem firmware onto the nRF9160.&lt;/p&gt;
&lt;p&gt;Also, it seems I misunderstood the AT+CPSMS? command, this will give you the requested values, and not the actual set values from the network. If you call AT+CEREG=5 followed by AT+CEREG? you should get the actual PSM-interval from the network.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/203783?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 10:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b1cc4b-c712-4e5e-91c5-dc83fbf648e0</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I got following reply from &amp;quot;&lt;strong&gt;AT+CPSMS?&amp;quot; at command.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;CPSMS = +CPSMS: 1,,,&amp;quot;00000011&amp;quot;,&amp;quot;00000001&amp;quot;&amp;lt;CR&amp;gt;&lt;/p&gt;
&lt;p&gt;So the values are same as we requested.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Some more information about our set up and observations&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have also made a PC client to behave in the same manor and this runs without any problems.&lt;/p&gt;
&lt;p&gt;We have also moved from one production environment ( At Telenor ) to another and problem still exists.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As I have mentioned in my very first thread , there are two issues&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. MQTT connection Failure after many successful connections&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. nRF9160 takes longer time in first connection if PSM mode is enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I work for norwegian company&amp;nbsp;and access the nRF9160 hardware using remote pc set up from&amp;nbsp;&lt;/p&gt;
&lt;p&gt;India.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/203497?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 08:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:055c0373-fe9e-4561-bd3c-a071369fe101</guid><dc:creator>khodidas</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/50735/nrf9160-mqtt-connection-failure/203493"]Can you confirm that you&amp;#39;re situated in India while connected to a Norwegian (Telenor) network?[/quote]
&lt;p&gt;Yes, you are right.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will check PSM supported by network using &amp;quot;&lt;strong&gt;AT+CPSMS?&amp;quot;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/203493?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 07:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7805b1d-ac2b-49b7-87b2-19528034553e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you confirm that you&amp;#39;re situated in India while connected to a Norwegian (Telenor) network?&lt;/p&gt;
&lt;p&gt;Keep in mind that the PSM mode intervals are requested by the nRF9160 to the network, it&amp;#39;s not a certainty that the nRF9160 gets those intervals from the network.&amp;nbsp;&lt;span&gt;You can check if there is a difference in the PSM modes of your different providers by using the AT command&amp;nbsp;&lt;/span&gt;&lt;strong&gt;AT+CPSMS?&lt;/strong&gt;&lt;span&gt;after activating PSM. (as stated in the AT Command documentation). It will return the parameters used.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/203430?ContentTypeID=1</link><pubDate>Sat, 10 Aug 2019 11:37:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da520258-3d26-448d-9834-b95e76036fd4</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/50735/nrf9160-mqtt-connection-failure/203290"]What network are you connected to?[/quote]
&lt;p&gt;Telenor (Norway)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/50735/nrf9160-mqtt-connection-failure/203290"]How often do you set the device in PSM mode?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Below are my PSM settings&amp;nbsp;&lt;/p&gt;
&lt;p&gt;# Requested Periodic TAU&lt;br /&gt;CONFIG_LTE_PSM_REQ_RPTAU=&amp;quot;00000011&amp;quot;&lt;br /&gt;# Requested Active Time&lt;br /&gt;#CONFIG_LTE_PSM_REQ_RAT=&amp;quot;00001010&amp;quot;&lt;br /&gt;CONFIG_LTE_PSM_REQ_RAT=&amp;quot;00000001&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/50735/nrf9160-mqtt-connection-failure/203290"]Are you using the latest modem firmware as well (mfw version 1.0.0)?[/quote]
&lt;p&gt;Yes&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 MQTT connection failure</title><link>https://devzone.nordicsemi.com/thread/203290?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 11:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50c33483-68e4-4b51-9982-b6a3aae7ba90</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Smitesh&lt;/p&gt;
&lt;p&gt;I have a few questions to your setup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What network are you connected to?&lt;/li&gt;
&lt;li&gt;How often do you set the device in PSM mode?&lt;/li&gt;
&lt;li&gt;Are you using the latest modem firmware as well (mfw version 1.0.0)?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The behavior of your device indicates that the coverage might be bad in your location, and that&amp;#39;s why it drops out. Error -111 usually indicates that something is wrong with the credentials/certification, and error -60 indicates a timeout.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>