<?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>FOTA Hangs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60639/fota-hangs</link><description>I’m using the latest version of the modem 1.2.0 and sdk v1.2.0 
 For the most part AWS FOTA seems to be functioning. 
 However it will start the FOTA job and hang and fail to proceed until the device is rebooted, after which the originally initiated FOTA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 May 2020 22:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60639/fota-hangs" /><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/251575?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 22:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c3a696c-5c63-450d-bdb9-3be3e1e28f5c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I tried to repeat the process, and I did not see the behavior. I might have misunderstood what you meant. I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Modified the aws_fota example as described in my last answer, with&amp;nbsp;&lt;span&gt;CONFIG_MQTT_KEEPALIVE&lt;/span&gt;&lt;span&gt;=930&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Uploaded the sample to a bucket and programmed the same aws_fota example onto the nrf9160&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Then I uploaded a job which contained the job file pointing to the uploaded aws_fota example&lt;/li&gt;
&lt;li&gt;Saw that the aws_fota sample recognized the job and started downloading the image. After the DFU was finished it would reset the chip automatically and run the newly updated aws_fota sample&lt;/li&gt;
&lt;li&gt;repeat step 1-3&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I ended 1,2,3 step-loop above after about 5-6 iterations and did not see the behavior you explained. Have I misunderstood? Should I repeat the process more? Could you provide a detailed step-by-step method of reproducing it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You said, &amp;quot;&lt;span&gt;without powering off the target board please&lt;/span&gt;&amp;quot;.&amp;nbsp;Did that include not resetting it? However, it will do that automatically when the download is completed.&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: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/251567?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 20:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:654b4947-1c50-42b6-8e19-71393d99d233</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Thank you Simon.&lt;/p&gt;
&lt;p&gt;Now try and repeat the process a few times, without powering off the target board please.&lt;/p&gt;
&lt;p&gt;I would expect you to eventually see what I am seeing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/251441?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 10:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aca4a99-5a0f-4dd1-bec0-9273296aca79</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am not able to reproduce your behavior&amp;nbsp;with&amp;nbsp;the aws_fota example in the master branch (commit 8f44fbc625f1ad).&lt;/p&gt;
&lt;p&gt;I set&amp;nbsp;&lt;span&gt;CONFIG_USE_CLOUD_CLIENT_ID&lt;/span&gt;&lt;span&gt;=y in addition to&amp;nbsp;&lt;/span&gt;CONFIG_CLOUD_CLIENT_ID,&amp;nbsp;CONFIG_CLOUD_CERT_SEC_TAG and&amp;nbsp;CONFIG_MQTT_BROKER_HOSTNAME to appropriate values.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I added a job and the sample successfully started a download immediately after:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: No queued jobs for this device
I: Checking for an available job
I: Subscribe: $aws/things/simon_client_id/jobs/fun_and_cool_job/update/#
I: Subscribed to FOTA update topic $aws/things/simon_client_id/jobs/fun_and_cool_job/update/#
I: Publish topic: $aws/things/simon_client_id/jobs/fun_and_cool_job/update
I: Publish payload {&amp;quot;status&amp;quot;:&amp;quot;IN_PROGRESS&amp;quot;,&amp;quot;statusDetails&amp;quot;: null,&amp;quot;expectedVersion&amp;quot;: &amp;quot;1&amp;quot;,&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}
[mqtt_evt_handler:228] PUBACK packet id: 9062
I: Start downloading firmware from simon-simon123.s3-us-west-2.amazonaws.com/app_update.bin
I: Attempting to connect over IPv4
I: Connected to simon-simon123.s3-us-west-2.amazonaws.com
I: Downloading: app_update.bin [0]
AWS_FOTA_EVT_START, job id = fun_and_cool_job
I: Downloaded 4096/179380 bytes (2%)
I: 2 Sectors of 4096 bytes
I: alloc wra: 0, d18
I: data wra: 0, 180
I: Erasing sector at offset 0x00087000
I: Erasing sector at offset 0x00088000
I: Downloaded 8192/179380 bytes (4%)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also tried to set&amp;nbsp;&lt;span&gt;CONFIG_MQTT_KEEPALIVE&lt;/span&gt;&lt;span&gt;=930, but the download was still successful. I&amp;#39;m not able to&amp;nbsp;see the behavior you&amp;#39;re explaining.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you provide me the exact step to reproduce your behavior?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/251435?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 09:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dc373d4-d58a-41a8-a1bb-a80bae0a3618</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I will test it out, I have to set&amp;nbsp;&lt;span&gt;CONFIG_MQTT_KEEPALIVE=930 in addition I assume?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/251412?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 08:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce1cd05a-7db2-4028-adf9-758b5bd85343</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Yes I probably agree.&lt;/p&gt;
&lt;p&gt;However, may I ask if you run the version of fota that exists in Master branch if you have the same experience that I&amp;#39;m having?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m expecting that you will.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/251410?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 08:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:635891b0-0beb-4c0f-bd97-07ff225686af</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I talked to one of the developers and got some tips.&lt;/p&gt;
&lt;p&gt;First, could you change the way you are logging in order to get more information (it seems like you&amp;#39;re using minimal)? If you use deferred logging with larger buffers you may get some more information.&lt;/p&gt;
&lt;p&gt;In addition, MQTT_KEEPALIVE is determined by the server as well, so you might want to look at that side if the session is shut down when it exceeds 60 seconds.&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: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/250538?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 19:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51f6e94d-5239-4d18-96df-afff9e5cc298</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I notice that your device doesn&amp;#39;t receive the publish event &amp;quot;Job Id update accepted topic&amp;quot;, and I am not sure why this is. I will ask internally about this and get back to you.&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: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/250112?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 08:31:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f6b4ec4-41b8-41f0-898d-12f53e9bee7b</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Thank you very much Simon, very much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/250095?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 08:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0ce7f5-9836-46f7-a845-58509b07f525</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello, I am sorry for the delay in this ticket, I&amp;#39;ve been quite busy lately. I will prioritize it today and the upcoming working days.&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: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/249307?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 20:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaf1fc65-6a2a-40da-9ea2-6dc515b6298f</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Sure, but it in no way helps fix the problem.&lt;/p&gt;
&lt;p&gt;I may be missing something but in order to implement that as a solution we would have to utilise persistent storage to notice that we needed to perform a reboot, after a reboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/249155?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 10:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da8a963a-f59e-45ec-a6a5-320aeb972115</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Any progress on this?&lt;/p&gt;
&lt;p&gt;Another way of resuming the FOTA update, besides resetting the DK, is to run&amp;nbsp;lte_lc_offline() followed by reconnecting again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/248349?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 07:53:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:257c2936-3b10-433e-b6f3-ca4761e50f5a</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi Simon, no stress, but very keen for a hand with this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/248345?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 07:23:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea31f1cc-0cb0-4889-989f-c2721e53ab12</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I can now confirm that if I program a DK with the latest Asset Tracker (&lt;span&gt;Built from nRF Connect SDK master branch commit bc7ade8b)&amp;nbsp;&lt;/span&gt;and link it to NRF Cloud and do a FOTA update.&lt;/p&gt;
&lt;p&gt;The same thing occurs whereby the device will &amp;quot;notice&amp;quot; that there is an update and begin to perform the update and then hang.&lt;/p&gt;
&lt;p&gt;If I preset reset on the DK it will reboot and perform the update correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/247495?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 10:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb5723b6-77b7-4595-9290-406daa86a82b</guid><dc:creator>Tiago Costa</dc:creator><description>&lt;p&gt;I have changed&amp;nbsp;&lt;span&gt;CONFIG_MQTT_KEEPALIVE=60 and now the FOTA download request is received earlier when the system is searching for satellites. The FOTA still hangs here, ------STRIKETHROUGH-----&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;but it does not show &amp;quot;Enabling PSM&amp;quot; as before. Can&amp;#39;t tell what&amp;#39;s going on here, this hang seems to be different than before.------STRIKETHROUGH-----&amp;nbsp;&lt;/span&gt; &amp;nbsp;After receiving the FOTA download request, there was a long pause that seemed like an hang, but then the console printed (and then it really hang):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:06:17.860,290] &amp;lt;dbg&amp;gt; nrf9160_gps.stop: Stopping GPS&lt;br /&gt;[00:06:17.866,363] &amp;lt;inf&amp;gt; gps_control: GPS operation was stopped&lt;br /&gt;[00:06:17.872,833] &amp;lt;inf&amp;gt; gps_control: The device will try to get fix again in 30 seconds&lt;br /&gt;[00:06:47.881,530] &amp;lt;inf&amp;gt; gps_control: Enabling PSM&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Before changing the keepalive, I have experimented with enabling the Watchdog in prj.conf as it was not enabled by default. After &amp;quot;Enabling PSM&amp;quot;, the WD rebooted the system so it is definitely hanging when trying to enable PSM after GPS runs for a while and a FOTA update request is received as soon as the GPS searching stops.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also wonder if the position of switch 2 of the DK has any influence over this as it messes with EDRX.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;EDIT: Never mind my previous sentence, as I have&amp;nbsp;CONFIG_POWER_OPTIMIZATION_ENABLE=n which disables switch 2.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/247484?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 09:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2debce3-4a8c-433e-845c-3fbe37818cdc</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Would you mind checking something for me please?&lt;/p&gt;
&lt;p&gt;Change&amp;nbsp;&lt;span&gt;CONFIG_MQTT_KEEPALIVE=60&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Perhaps through prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;GPS won&amp;#39;t work probably, but I&amp;#39;m very interested to see if you notice that FOTA works.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/247481?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 08:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fa4ac6b-e66f-4c41-8fcf-0e430fdf96ba</guid><dc:creator>Tiago Costa</dc:creator><description>&lt;p&gt;Yes, that makes perfect sense and matches what I&amp;#39;m also observing here. The FOTA download only works simultaneously with GPS searching mode if the download started before the device begins to search for satellites.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s just weird that, occasionally, when the device stops searching for satellites and receives the update request from the socket. that it hangs before starting to download the file and while &amp;quot;Enabling PSM&amp;quot;. Can&amp;#39;t tell if its a problem with the asset_tracker example, an SDK library or modem firmware / carrier issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/247462?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 07:42:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6965e0e-c412-4b02-bbe5-b391fcd997ed</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I&amp;#39;m confident about one aspect.&lt;/p&gt;
&lt;p&gt;When the GPS is searching, the mode is in PSM, the device has no ability to notice socket communication until either forced communication over cellular which will reset the PSM cycle or until RX is turned on at the end of the TAU period specified when PSM was initiated.&lt;/p&gt;
&lt;p&gt;So this is why you wouldn&amp;#39;t notice any FOTA update initiation immdeiately, during the GPS cycle.&lt;/p&gt;
&lt;p&gt;I think...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/247423?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 21:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a1cc8ed-47d2-4e33-aafe-77a6b018a74f</guid><dc:creator>Tiago Costa</dc:creator><description>&lt;p&gt;Hi guys,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t know if my issue is related to this, as my&amp;nbsp;&lt;span&gt;CONFIG_MQTT_KEEPALIVE=1200 by default and I haven&amp;#39;t changed it. But I&amp;#39;m also on SDK 1.2.0 and have seen the example asset_tracker hang when GPS is active or after GPS has been active (with modem firmware v1.1.1 and now also with v1.2.0). I&amp;#39;m connected to a NB-IOT network.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve noticed that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;While the modem is searching for satellites for about 360s, no firmware update requests are received (shouldn&amp;#39;t LTE have priority here)?&lt;/li&gt;
&lt;li&gt;Sometimes, upgrade requests are received and handled correctly, but only after the modem stops searching for sats&lt;/li&gt;
&lt;li&gt;Other times, the app simply hangs after searching for sats, right after displaying &amp;quot;Enabling PSM&amp;quot; and never recovers. Shouldn&amp;#39;t the watchdog reboot the app after some time? A manual reboot using the reset button does cause the app to receive and handle the firmware update later as requested.&lt;/li&gt;
&lt;li&gt;Also, when the app does not hang, I can only upgrade the app image and not mcuboot even though I also have the immutable bootloader. The MCUBOOT images (s0 or s1) are downloaded by the app and the system reboots, then MCUBOOT tests the image, but upon a manual reset the MCUBOOT image is reverted and the MCUBOOT is not upgraded. (don&amp;#39;t know if this is related to the app or MCUBOOT)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/247187?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 02:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a95c22b5-7f17-4671-bff8-b9cbfc879241</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I will be gone until monday (4th of may) and I&amp;#39;m not able to look at &lt;br /&gt;your issue until then&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/246756?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 10:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8044a4c7-97cc-4f83-baf5-6bd20834dd04</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;ll take a look at your issue tomorrow (5/27)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA Hangs</title><link>https://devzone.nordicsemi.com/thread/246686?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 07:39:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91859083-7d8c-40e0-8b44-234e7027c2cd</guid><dc:creator>John</dc:creator><description>&lt;p&gt;After spending several days on this now, I&amp;rsquo;m a lot closer to understanding what may be happening with FOTA,&amp;nbsp;the CONFIG_MQTT_KEEPALIVE default value is 60 seconds.&lt;/p&gt;
&lt;p&gt;In order for us to use PSM effectively we must be able to extend this value for as long as possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;During the testing of our GPS software I set it to 930 seconds (prj.conf) , anything longer than that seemed to cause socket reliability to deteriorate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However when I have implemented FOTA and left CONFIG_MQTT_KEEPALIVE=930 I experience the issue whereby FOTA will start after waking from PSM if there is a job available and then hang, I can tell by looking at the current draw that PSM is still functioning, but nothing more is seen on the log output.&lt;/p&gt;
&lt;p&gt;A subsequent reboot will allow FOTA to complete.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I reprogram the device and allow either the default for CONFIG_MQTT_KEEPALIVE to be set or manually set CONFIG_MQTT_KEEPALIVE=60 in prj.conf&amp;nbsp;&lt;/p&gt;
&lt;p&gt;FOTA seems to function properly.&lt;/p&gt;
&lt;p&gt;I would be very grateful for any advice you may be able to offer please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>