<?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>How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52937/how-to-use-aws_fota-program-in-nrf9160</link><description>I&amp;#39;m trying to use aws_fota, but it doesn&amp;#39;t work. Any help? 
 I was able to set a job on AWS IoT, but the download job doesn&amp;#39;t start. The job status is always &amp;quot;in progress&amp;quot;. I logged out and logged in and got the same result. 
 
 I use the same region</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 30 Nov 2019 09:29:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52937/how-to-use-aws_fota-program-in-nrf9160" /><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/222885?ContentTypeID=1</link><pubDate>Sat, 30 Nov 2019 09:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9e92687-e0f2-4f7b-9a1e-f61b2cce3c18</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;aws_fota works with v1.1.0 of modem fw and v1.1.0 of ntf tag&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/218580?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 13:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6ee5679-fb71-4b3f-b544-6edc06d04cbd</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;Changes for adding retry for dropped connections is in master now &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/commit/38625ba775adda3cdc7dbf516eeb3943c7403227"&gt;github.com/.../38625ba775adda3cdc7dbf516eeb3943c7403227&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214929?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 22:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b66a6948-dec3-4d97-9996-30aeeaaccd50</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;ok. I&amp;#39;ll be waiting for next version update.&amp;nbsp; Please let me know when it happens. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214919?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 16:10:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:207bc381-ce80-4b94-b5d9-d1a010f60e50</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;It&amp;#39;s a combination of both as the program doesn&amp;#39;t to handle a connection drop/network connection issues very gracefully in v1.0.0. This is being worked on and will hopefully be fixed in the next release &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214918?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 16:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39bd9a53-df5c-4476-af3b-d00f6f0dba6a</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;It succeeded once out of around 10 tries.&lt;/p&gt;
&lt;p&gt;I feel the program or network is unstable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214910?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 15:17:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b9261d-b431-461d-99a3-34d6a99aaee9</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51395/nrf9160-aws-fota-fails-to-load-binary/206167#206167"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51395/nrf9160-aws-fota-fails-to-load-binary/206167#206167&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;this may be related to my issue.&lt;/p&gt;
&lt;p&gt;I checked a remaining credit of data and I have enough credit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214895?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 14:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb81190-dbb9-4235-9b57-f7dfb4dab7be</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;Is the error consistent? The error seems to originate in download_client looking up the errno code &lt;a href="https://github.com/NordicPlayground/nrfxlib/blob/4d3fa41a8ded0808242a3cb3edca3bc29c04e5e3/bsdlib/include/nrf_errno.h#L41"&gt;https://github.com/NordicPlayground/nrfxlib/blob/4d3fa41a8ded0808242a3cb3edca3bc29c04e5e3/bsdlib/include/nrf_errno.h#L41&lt;/a&gt;&amp;nbsp;says&amp;nbsp;&lt;span&gt;&lt;strong&gt;Network is unreachable, &lt;/strong&gt;so my assumption has to be that at some point the connection was lost. Also, I would be careful about doing this too many times as it &lt;strong&gt;burns&lt;/strong&gt;&amp;nbsp;a lot of data.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214890?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 14:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f804923-c68c-4779-aa06-abc7451c977b</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;&amp;gt;&lt;span&gt;You have to select&amp;nbsp;&lt;/span&gt;&lt;strong&gt;CONFIG_USE_CLOUD_CLIENT_ID=y in prj.conf&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This solved the issue. Thank you.&lt;br /&gt;Nordic may explain this on github or originally enable it.&lt;br /&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/nrf9160/aws_fota"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/nrf9160/aws_fota&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&lt;span&gt;you should probably set&amp;nbsp;&lt;/span&gt;&lt;strong&gt;CONFIG_CLOUD_CLIENT_ID=&amp;quot;device01&amp;quot;&amp;nbsp;&lt;/strong&gt;&lt;span&gt;in prj.conf&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I agree with you. Client ID is configured in Kconfig in the original aws_fota. I didn&amp;#39;t want to&amp;nbsp;change the original code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, I got&amp;nbsp; a next error. Could you give me any advice?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs2 *****
The MQTT AWS Jobs FOTA Sample
LTE Link Connecting ...
LTE Link Connected!
IPv4 Address 0xb790bf36
CONFIG_CLOUD_CLIENT_ID: device01
client_id: device01
[mqtt_evt_handler:131] MQTT client connected!
[mqtt_evt_handler:196] SUBACK packet id: 2112
[mqtt_evt_handler:186] PUBACK packet id: 51235
[mqtt_evt_handler:201] default: 8
[mqtt_evt_handler:186] PUBACK packet id: 55531
[00:00:41.850,646] &amp;lt;inf&amp;gt; aws_fota: Start downloading firmware from *******.s3-us-west-2.amazonaws.com20190929_test_update.bin
[00:00:42.500,915] &amp;lt;inf&amp;gt; download_client: Attempting to connect over IPv4
[00:00:43.096,771] &amp;lt;inf&amp;gt; download_client: Connected
[00:00:43.096,771] &amp;lt;inf&amp;gt; download_client: Downloading: 20190929_test_update.bin [0]
[00:00:43.782,196] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 0/65804
[00:00:44.183,471] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 1024/65804
[00:00:45.003,082] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 1584/65804
[00:00:45.003,753] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 3632/65804
[00:00:45.004,913] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 4096/65804
[00:00:45.004,943] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x0
[00:00:45.691,192] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 4096/65804
[00:00:45.749,053] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 4804/65804
[00:00:45.883,728] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 5828/65804
[00:00:45.921,936] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 6540/65804
[00:00:45.922,302] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 7564/65804
[00:00:45.923,370] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 7636/65804
[00:00:46.321,868] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 8192/65804
[00:00:46.321,868] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x1000
[00:00:47.121,093] &#x1B;[1m&#x1B;[33m&amp;lt;wrn&amp;gt; download_client: Copying 600 payload bytes&#x1B;[0m
[00:00:47.121,124] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 8792/65804
[00:00:47.629,760] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 9504/65804
[00:00:47.630,065] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 10528/65804
[00:00:47.630,340] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 11552/65804
[00:00:47.631,561] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 11732/65804
[00:00:47.695,861] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 12288/65804
[00:00:47.695,861] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x2000
[00:00:48.639,923] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 12288/65804
[00:00:48.674,987] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 13312/65804
[00:00:48.704,010] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 14336/65804
[00:00:49.894,805] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 15048/65804
[00:00:49.896,148] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 15828/65804
[00:00:49.936,492] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 16384/65804
[00:00:49.936,492] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x3000
[00:00:50.907,958] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 16384/65804
[00:00:50.961,059] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 17408/65804
[00:00:51.013,153] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 18432/65804
[00:00:51.770,874] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 19144/65804
[00:00:51.772,216] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 19924/65804
[00:00:51.830,993] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 20480/65804
[00:00:51.830,993] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x4000
[00:00:52.891,052] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 20480/65804
[00:00:52.927,124] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 21504/65804
[00:00:53.750,976] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 22528/65804
AWS_FOTA_EVT_ERROR
[00:01:16.228,393] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 23552/65804
[00:01:16.228,454] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 24576/65804
[00:01:16.228,485] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x5000
[00:01:16.369,415] &#x1B;[1m&#x1B;[31m&amp;lt;err&amp;gt; download_client: Failed to send HTTP request, errno 57&#x1B;[0m
[00:01:16.369,476] &#x1B;[1m&#x1B;[31m&amp;lt;err&amp;gt; fota_download: Download client error&#x1B;[0m
[00:01:16.369,476] &#x1B;[1m&#x1B;[31m&amp;lt;err&amp;gt; aws_fota: FOTA download failed, report back&#x1B;[0m
[mqtt_evt_handler:186] PUBACK packet id: 36218
[00:01:17.691,528] &amp;lt;inf&amp;gt; aws_fota: Start downloading firmware from *******.s3-us-west-2.amazonaws.com20190929_test_update.bin
[00:01:18.055,786] &amp;lt;inf&amp;gt; download_client: Attempting to connect over IPv4
[00:01:18.617,645] &amp;lt;inf&amp;gt; download_client: Connected
[00:01:18.617,645] &amp;lt;inf&amp;gt; download_client: Downloading: 20190929_test_update.bin [0]
[00:01:19.589,080] &#x1B;[1m&#x1B;[33m&amp;lt;wrn&amp;gt; download_client: Copying 604 payload bytes&#x1B;[0m
[00:01:19.589,111] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 604/65804
[00:01:19.671,264] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 1628/65804
[00:01:19.748,352] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 2652/65804
[00:01:20.272,949] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 3212/65804
[00:01:20.274,475] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 4096/65804
[00:01:20.274,505] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x0
[00:01:20.935,089] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 4096/65804
[00:01:21.001,159] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 4804/65804
[00:01:21.254,241] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 5828/65804
[00:01:21.331,604] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 6852/65804
[00:01:21.489,715] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 8192/65804
[00:01:21.489,715] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x1000
[00:01:22.378,753] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 8192/65804
[00:01:22.413,940] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 9216/65804
[00:01:22.885,711] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 9776/65804
[00:01:22.885,925] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 10800/65804
[00:01:22.886,230] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 11824/65804
[00:01:22.887,451] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 12288/65804
[00:01:22.887,451] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x2000
[00:01:23.840,789] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 12288/65804
[00:01:23.931,915] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 13312/65804
[00:01:24.403,900] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 13872/65804
[00:01:24.403,991] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 14896/65804
[00:01:24.404,266] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 15920/65804
[00:01:24.405,487] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 16384/65804
[00:01:24.405,517] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x3000
[00:01:25.134,796] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 16384/65804
[00:01:25.180,358] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 17408/65804
[00:01:25.207,702] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 18432/65804
[00:01:25.242,858] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 19144/65804
[00:01:25.244,232] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 19924/65804
[00:01:25.696,838] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 20480/65804
[00:01:25.696,838] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x4000
[00:01:26.420,837] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 20480/65804
[00:01:26.465,911] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 21504/65804
[00:01:26.512,878] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 22528/65804
[00:01:26.981,750] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 23240/65804
[00:01:26.983,093] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 24020/65804
[00:01:27.028,900] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 24576/65804
[00:01:27.028,900] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x5000
[00:01:28.234,893] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 24576/65804
[00:01:28.270,965] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 25284/65804
[00:01:28.384,887] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 25992/65804
[00:01:28.428,009] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 27016/65804
[00:01:28.902,954] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 27728/65804
[00:01:28.904,052] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 28116/65804
[00:01:28.953,887] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 28672/65804
[00:01:28.953,918] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x6000
[00:01:29.842,987] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 28672/65804
[00:01:29.897,125] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 29380/65804
[00:01:30.061,859] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 30404/65804
[00:01:30.106,994] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 31428/65804
[00:01:30.492,980] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 31988/65804
[00:01:30.494,140] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 32768/65804
[00:01:30.494,140] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x7000
[00:01:31.165,954] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 32768/65804
[00:01:31.221,130] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 33476/65804
[00:01:31.418,029] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 34500/65804
[00:01:31.694,091] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 35060/65804
[00:01:31.694,183] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 36084/65804
[00:01:31.695,495] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 36864/65804
[00:01:31.695,495] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x8000
[00:01:32.404,083] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 36864/65804
[00:01:32.457,183] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 37572/65804
[00:01:32.493,988] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 38280/65804
[00:01:32.587,921] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 39304/65804
[00:01:32.626,098] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 40016/65804
[00:01:32.627,319] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 40404/65804
[00:01:33.042,999] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 40960/65804
[00:01:33.043,029] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0x9000
[00:01:33.706,054] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 40960/65804
[00:01:33.741,912] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 41668/65804
[00:01:33.795,928] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 42692/65804
[00:01:33.833,129] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 43404/65804
[00:01:33.834,320] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 43792/65804
[00:01:34.341,979] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 44816/65804
AWS_FOTA_EVT_ERROR
[00:01:57.326,202] &amp;lt;inf&amp;gt; download_client: Downloaded bytes: 45056/65804
[00:01:57.326,232] &amp;lt;inf&amp;gt; fota_flash_block: Erasing sector at offset 0xa000
[00:01:57.466,918] &#x1B;[1m&#x1B;[31m&amp;lt;err&amp;gt; download_client: Failed to send HTTP request, errno 57&#x1B;[0m
[00:01:57.468,475] &#x1B;[1m&#x1B;[31m&amp;lt;err&amp;gt; fota_download: Download client error&#x1B;[0m
[00:01:57.468,475] &#x1B;[1m&#x1B;[31m&amp;lt;err&amp;gt; aws_fota: FOTA download failed, report back&#x1B;[0m
[mqtt_evt_handler:186] PUBACK packet id: 58419
AWS_FOTA_EVT_ERROR
aws_fota_mqtt_evt_handler: Failed! -14
Disconnecting MQTT client...
[mqtt_evt_handler:151] MQTT PUBLISH result=0 len=254
mqtt_read_publish_payload: Failed! -36
Disconnecting MQTT client...
Could not disconnect: -57
Received: 
[00:01:58.661,682] &#x1B;[1m&#x1B;[31m&amp;lt;err&amp;gt; aws_fota: Job document update was rejected&#x1B;[0m
[mqtt_evt_handler:144] MQTT client disconnected 0
POLLNVAL
Disconnecting MQTT client...
Could not disconnect MQTT client. Error: -57&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214861?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 13:25:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:773d36cc-135b-42f7-8f71-d630de64c4fc</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;You have to select&amp;nbsp;&lt;strong&gt;CONFIG_USE_CLOUD_CLIENT_ID=y in prj.conf&amp;nbsp;&lt;/strong&gt;if not it will default to a combination of&amp;nbsp;&lt;strong&gt;nrf-&lt;/strong&gt; and your&amp;nbsp;&lt;strong&gt;modem IMEI&lt;/strong&gt; as you can see by the&amp;nbsp;&lt;strong&gt;&lt;em&gt;client_id: nrf-352656100218455&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; &lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;output in the log. Also, you should probably set &lt;strong&gt;CONFIG_CLOUD_CLIENT_ID=&amp;quot;device01&amp;quot;&amp;nbsp;&lt;/strong&gt;in prj.conf instead of editing the default in Kconfig.&lt;br /&gt;&lt;br /&gt;So your device is using the&amp;nbsp;&lt;strong&gt;nrf-352656100218455&amp;nbsp;&lt;/strong&gt;as client ID which explains why it won&amp;#39;t connect. The reason it worked before is the&amp;nbsp;&lt;strong&gt;permissive&amp;nbsp;policy&amp;nbsp;&lt;/strong&gt;allows anyone with a valid certificate to &lt;strong&gt;connect&lt;/strong&gt; and &lt;strong&gt;subscribe&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214857?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 13:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbd145cb-9c04-4606-a14e-62623178b492</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;I use the same name as thing name.&lt;/p&gt;
&lt;p&gt;&amp;lt;Kconfig&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config USE_CLOUD_CLIENT_ID
	bool &amp;quot;Custom MQTT Client Id&amp;quot;

config DOWNLOAD_CLIENT_LOG_LEVEL_DBG
	bool &amp;quot;degbug level&amp;quot;

config DOWNLOAD_CLIENT_LOG_HEADER
	bool &amp;quot;log header&amp;quot;

if USE_CLOUD_CLIENT_ID

config CLOUD_CLIENT_ID
	string &amp;quot;Client ID&amp;quot;
	default &amp;quot;device01&amp;quot;
endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-2019_2D00_10_2D00_14-22.16.18.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;What do you mean with stops processing on the way? What happens?&lt;/p&gt;
&lt;p&gt;I expected &amp;quot;MQTT client connected!&amp;quot; message will show up after &amp;quot;client_id: nrf-352656100218455&amp;quot; message, but &amp;quot;&lt;span&gt;MQTT client connected!&amp;quot; does not show up and process stops.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214852?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 13:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c880e4e-d0f8-4c4b-9e3e-3886863eb030</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;This is usually caused by&amp;nbsp;client_id: nrf-352656100218455 not being the same as the clientId attached to your certificates. Have you set nrf-352656100218455 as the thing name in&amp;nbsp;&lt;strong&gt;AWS?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What do you mean with stops processing on the way? What happens?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214833?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 12:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b296bdc8-6aa8-4bac-a1ad-3896967a2ac9</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;&amp;gt;&lt;span&gt;Did you&amp;nbsp;attach&amp;nbsp;the policy I suggested to the&amp;nbsp;certificates of the thing in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;AWS IoT Core?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I did it and the device doesn&amp;#39;t subscribe and stops processing on the way.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs2 *****
The MQTT AWS Jobs FOTA Sample
LTE Link Connecting ...
LTE Link Connected!
IPv4 Address 0x27e71934
client_id: nrf-352656100218455
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214822?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 12:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2262dd2-7184-40cc-a679-52393b61c785</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;Did you&amp;nbsp;attach&amp;nbsp;the policy I suggested to the&amp;nbsp;certificates of the thing in&amp;nbsp;&lt;strong&gt;AWS IoT Core?&lt;/strong&gt; Does your job ever go from&amp;nbsp;&lt;strong&gt;Queued&lt;/strong&gt; to&amp;nbsp;&lt;strong&gt;In progress&lt;/strong&gt; if you click on it and see the &lt;strong&gt;status fields&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2019_2D00_10_2D00_14-at-13.58.30.png" /&gt;&lt;/p&gt;
&lt;p&gt;It should progress from&amp;nbsp;&lt;strong&gt;Queued&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;In progress&lt;/strong&gt; then to either&amp;nbsp;&lt;strong&gt;Failed&amp;nbsp;&lt;/strong&gt;or&amp;nbsp;&lt;strong&gt;Successful&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;For&amp;nbsp;&lt;strong&gt;&lt;span&gt;v1.0.0&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;your device has to be connected and subscribed&amp;nbsp;&lt;br /&gt;[mqtt_evt_handler:196] SUBACK packet id: 2112&lt;br /&gt;before you create the job. Also, ensure that all your old jobs are canceled and deleted as a device can only have 1 active job at the time. So if there is a&amp;nbsp;&lt;strong&gt;job&lt;/strong&gt; already for the &lt;strong&gt;device&lt;/strong&gt;&amp;nbsp;it will&amp;nbsp;&lt;strong&gt;block any new jobs created&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214814?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 11:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d16696-a82c-485c-af1c-15a0241ee71c</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Yea, you&amp;#39;re right. My version is v1.0.0. Modem fw is v1.0.1.&lt;/p&gt;
&lt;p&gt;&amp;gt;In addition, now I can&amp;#39;t update&amp;nbsp;&lt;strong&gt;bucket&lt;/strong&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;strong&gt;permissions&lt;/strong&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;strong&gt;bucket policy.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I solved this issue. You must&amp;nbsp;configure bucket access controls both in account level and bucket level.&lt;/p&gt;
&lt;p&gt;However, downloading does not start yet.... The same result so far, even if I created a job after MQTT connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214812?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 11:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c1431ce-7d61-480b-adda-70c4bdb081d9</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;As far as I know, the only tagged version is&amp;nbsp;v1.0.0 for NCS could you do &amp;quot;git show --no-patch&amp;quot; in the nrf repository/folder and post the commit SHA. It&amp;#39;s easier to check where you are at in the git history.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214799?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 11:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7532a0e-3b21-4000-9dd8-f560f8db04c5</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;My ncs version is v1.0.1, is this tagged version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214798?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 11:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6980897-0add-4906-983e-a706418197bf</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;Yes,/no is my answer. If you are on the &lt;strong&gt;tagged&lt;/strong&gt; version,&amp;nbsp;&lt;strong&gt;A Job must be created after the MQTT connection. &lt;/strong&gt;If you are on&amp;nbsp;the &lt;strong&gt;master branch,&lt;/strong&gt; this should no longer be the case as the&amp;nbsp;&lt;strong&gt;device should fetch any queued jobs&amp;nbsp;&lt;/strong&gt;for the device and will take the&amp;nbsp;&lt;strong&gt;first&lt;/strong&gt; job queued for the device.&lt;br /&gt;&lt;br /&gt;It could be that&amp;nbsp;&lt;strong&gt;AWS&lt;/strong&gt; has changed their &lt;strong&gt;policy configurations&lt;/strong&gt; from when the documentation was written and the&amp;nbsp;&lt;strong&gt;current&lt;/strong&gt; thing&amp;nbsp;&lt;strong&gt;policy&lt;/strong&gt; is not seen as &lt;strong&gt;valid.&amp;nbsp;&lt;/strong&gt; Could you try to attach the following&amp;nbsp;&lt;strong&gt;&lt;a href="https://raw.githubusercontent.com/nRFCloud/device-simulator-v2/saga/data/policy.json"&gt;policy&lt;/a&gt; &lt;/strong&gt;to the&amp;nbsp;&lt;strong&gt;certificates&lt;/strong&gt; your device uses? See if it is then able to accept &lt;strong&gt;jobs&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214789?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 10:44:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b3efad8-32b5-4d99-b0c4-d0ae0ee021cf</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Let me confirm one thing.&lt;/p&gt;
&lt;p&gt;A Job must be created after MQTT connection, right? If it is created BEFORE connection, isn&amp;#39;t it be downloaded?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214779?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 09:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5998d63f-f7f9-4438-bad7-7f2848102e63</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;Is this the full LTE &lt;strong&gt;Link Monitor outpu&lt;/strong&gt;t? If so, it seems that your device did not receive a job from AWS. I recommend to &lt;strong&gt;cancel&lt;/strong&gt; and &lt;strong&gt;delete&lt;/strong&gt; any &lt;strong&gt;old jobs&lt;/strong&gt; which may be in &lt;strong&gt;AWS&lt;/strong&gt;. Before you try to&amp;nbsp;&lt;strong&gt;create a new job&lt;/strong&gt;, also maybe wait until the device is connected before you create it.&lt;br /&gt;&lt;br /&gt;With regards to the &lt;strong&gt;S3 Bucket,&amp;nbsp;&lt;/strong&gt;I see that the Oregon configuration is a bit different and the one I used. This is how you should have configured it.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/bucket-config.png" /&gt;&lt;/p&gt;
&lt;p&gt;Then you should be able to update the&amp;nbsp;&lt;strong&gt;bucket policy with&lt;/strong&gt;&amp;nbsp;the policy I posted as it will allow you to set public access to the file through a policy.&lt;/p&gt;
&lt;p&gt;Also, I forgot to tell you to set&amp;nbsp;&lt;strong&gt;CONFIG_DOWNLOAD_CLIENT_LOG_HEADER=y&lt;/strong&gt; which will log out the &lt;strong&gt;HTTP headers&lt;/strong&gt; so that you can ensure that you don&amp;#39;t get a&amp;nbsp;&lt;strong&gt;403&amp;nbsp;&lt;/strong&gt;or&amp;nbsp;&lt;strong&gt;301&lt;/strong&gt; response in the &lt;strong&gt;HTTP header.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214691?ContentTypeID=1</link><pubDate>Sun, 13 Oct 2019 10:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58f823e0-7d37-4902-9cfc-43dad368613b</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;sigvartmh&lt;/p&gt;
&lt;p&gt;Thank you for your advice. Unfortunately, I can&amp;#39;t solve the issue yet.&lt;/p&gt;
&lt;p&gt;I got the same result. I added to these two lines to prj.conf and check the log on LTE Link Monitor.&lt;/p&gt;
&lt;p&gt;When I added&amp;nbsp;&lt;strong&gt;CONFIG_&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;DOWNLOAD_CLIENT_LOG_LEVEL_DBG=y&lt;/strong&gt;&amp;nbsp;to prj.conf, an error was caused so I fixed Kconfig.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;prj.conf&amp;gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_DOWNLOAD_CLIENT_LOG_LEVEL_DBG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Kconfig&amp;gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;config DOWNLOAD_CLIENT_LOG_LEVEL_DBG
	bool &amp;quot;debug level&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;LTE Link monitor&amp;gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs2 *****
The MQTT AWS Jobs FOTA Sample
LTE Link Connecting ...
LTE Link Connected!
IPv4 Address 0x1f39d522
client_id: nrf-352656100218455
[mqtt_evt_handler:131] MQTT client connected!
[mqtt_evt_handler:196] SUBACK packet id: 2112
[mqtt_evt_handler:186] PUBACK packet id: 24675&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;AWS S3 access setting&amp;gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-2019_2D00_10_2D00_13-19.01.57.png" /&gt;&lt;/p&gt;
&lt;p&gt;In addition, now I can&amp;#39;t update&amp;nbsp;&lt;strong&gt;bucket&lt;/strong&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;strong&gt;permissions&lt;/strong&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;strong&gt;bucket policy.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Any help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214662?ContentTypeID=1</link><pubDate>Sat, 12 Oct 2019 10:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf79e578-c523-4ac5-9a65-76c5496c0622</guid><dc:creator>sigvartmh</dc:creator><description>&lt;p&gt;Hi, it&amp;#39;s possible to use the &lt;strong&gt;AWS&amp;nbsp;FOTA&lt;/strong&gt; and&amp;nbsp;&lt;strong&gt;HTTP&lt;/strong&gt; application update sample with any server that can respond with the&amp;nbsp;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range" rel="noopener noreferrer" target="_blank"&gt;content-range header&lt;/a&gt;. To be more precise, it needs to support this formatting of the content-range.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Content-Range: &amp;lt;unit&amp;gt; &amp;lt;range-start&amp;gt;-&amp;lt;range-end&amp;gt;/&amp;lt;size&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It is the&lt;strong&gt; Download Client library&lt;/strong&gt;&amp;nbsp;that sets this limitation.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;AWS S3 buckets do respond with this, but the file has to be accessible for the device. To find out if it is, I recommend turning on &lt;strong&gt;CONFIG_LOG=y&lt;/strong&gt; and &lt;strong&gt;CONFIG_&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;DOWNLOAD_CLIENT_LOG_LEVEL_DBG=y&lt;/strong&gt; to see what the header response is. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess that you get either a &lt;strong&gt;403 forbidden&lt;/strong&gt;&amp;nbsp;or &lt;strong&gt;301 permanent redirects&amp;nbsp;&lt;/strong&gt;response in the header.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to &lt;strong&gt;test&lt;/strong&gt; downloading from an &lt;strong&gt;S3&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;bucket&lt;/strong&gt;, it is easiest to make the files in the bucket public. &lt;/span&gt;&lt;span&gt;This can be done by going to&amp;nbsp;the&amp;nbsp;&lt;strong&gt;S3 Console,&lt;/strong&gt; then go&amp;nbsp;&lt;strong&gt;bucket&lt;/strong&gt;&amp;gt;&lt;strong&gt;permissions&lt;/strong&gt;&amp;gt;&lt;strong&gt;block public access&lt;/strong&gt; and deselect the two options which regard&amp;nbsp;&lt;strong&gt;blocking&lt;/strong&gt;&lt;strong&gt;&amp;nbsp;public access through policy.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;Then you can attach the following&amp;nbsp;&lt;strong&gt;policy&lt;/strong&gt; to your bucket by going to&amp;nbsp;&lt;strong&gt;bucket&lt;/strong&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;strong&gt;permissions&lt;/strong&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;strong&gt;bucket policy&lt;pre class="ui-code" data-mode="json"&gt;{    &amp;quot;Version&amp;quot;: &amp;quot;2012-10-17&amp;quot;,
    &amp;quot;Statement&amp;quot;: [
        {
            &amp;quot;Effect&amp;quot;: &amp;quot;Allow&amp;quot;,
            &amp;quot;Principal&amp;quot;: &amp;quot;*&amp;quot;,
            &amp;quot;Action&amp;quot;: &amp;quot;s3:GetObject&amp;quot;,
            &amp;quot;Resource&amp;quot;: &amp;quot;arn:aws:s3:::&amp;lt;bucket name&amp;gt;/*&amp;quot;
        }
    ]
}&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Then press &lt;strong&gt;save&lt;/strong&gt;. &lt;em&gt;It should be noted that this makes you file publicly available to anyone who has the link.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;After you have done this the format of your job file should be&amp;nbsp;&lt;pre class="ui-code" data-mode="json"&gt;{
  &amp;quot;operation&amp;quot;: &amp;quot;app_fw_update&amp;quot;,
  &amp;quot;fwversion&amp;quot;: &amp;quot;v1.0.2&amp;quot;,
  &amp;quot;size&amp;quot;: 64300,
  &amp;quot;location&amp;quot;: {
    &amp;quot;protocol&amp;quot;: &amp;quot;http:&amp;quot;,
    &amp;quot;host&amp;quot;: &amp;quot;******.s3-us-west-2.amazonaws.com&amp;quot;,
    &amp;quot;path&amp;quot;: &amp;quot;20190929_test_update.bin&amp;quot;
   }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The Download client library now appends the / between host and path. &lt;em&gt;It should also be noted that this will use &lt;strong&gt;HTTP&lt;/strong&gt; to download the file(this is possible with the&amp;nbsp;&lt;strong&gt;S3&lt;/strong&gt; bucket) in a standard configuration, so no change is needed.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214102?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 10:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e6b8e6-7080-43f8-b857-9e409be46a8a</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Alright. I&amp;#39;ll be waiting for your reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/214077?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 08:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd637154-c67d-454f-ab00-d27ab214f3b0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;To clear the confusion I have forwarded this question to our NCS team. I will get back to you as soon as possible.&amp;nbsp;&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: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/213895?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 11:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c4004c-3b4c-4e23-be7f-196fa19ca55a</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Thank you for reporting. I&amp;#39;m confused.&lt;/p&gt;
&lt;p&gt;Do both of aws_fota and&amp;nbsp;&lt;span&gt;http_application_update require you to use nRF Could?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;And I hope Nordic engineers will make a sample fota program using AWS without nRF Cloud.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use aws_fota program in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/213884?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 11:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2b1764f-eaeb-470e-9620-fa35e2d6688d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry,&amp;nbsp;the AWS_FOTA is intended to be used against nRF Cloud. The documentation is lacking this information but has been reported. Have a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/http_application_update/README.html#hosting-your-image-on-nrf-cloud"&gt;HTML Application Update sample&lt;/a&gt;&amp;nbsp;documentation, which also uses the Download Client to download the image.&lt;br /&gt;&lt;br /&gt;As stated in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/net/aws_fota.html#limitations"&gt;Limitations section&lt;/a&gt; of the AWS_FOTA library&lt;br /&gt;&amp;quot;&lt;em&gt;Currently, the library only uses HTTP for downloading the firmware. It is, however, possible to have it work with HTTPS - see&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/net/download_client.html#lib-download-client"&gt;&lt;span&gt;Download client&lt;/span&gt;&lt;/a&gt;. These changes need to be applied to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/net/fota_download.html#lib-fota-download"&gt;&lt;span&gt;FOTA Download&lt;/span&gt;&lt;/a&gt;&lt;/em&gt;&lt;span&gt;&lt;em&gt;&amp;nbsp;to enable downloading firmware through HTTPS.&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>