<?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>AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59244/aws_fota-error-mqtt_connect--22</link><description>Hello, I&amp;#39;ve been having problems getting the AWS_FOTA sample working on a nrf9160 DK. 
 
 At first, the device got stuck as it was downloading the firmware update, at 2%. I was able to fix this by setting CONFIG_DFU_TARGET_MCUBOOT_SAVE_PROGRESS=n. After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 18:00:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59244/aws_fota-error-mqtt_connect--22" /><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/243750?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 18:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b859e384-8ed4-4386-9196-0d9028ef4810</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;This looks very promising. I&amp;#39;m a little baffled why it suddenly started to work, but nothing is better than this result.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Let&amp;#39;s close for now, and if it does occur again please let us know.&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: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/243748?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 17:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7f780f5-d468-4b2c-aa53-f5044212fff3</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;So, I tested it today and it spontaneously started working again. I didn&amp;#39;t even have to re-flash the device, the code that wasn&amp;#39;t working earlier started working again today. I don&amp;#39;t think I made any changes on AWS, either. I even tested a FOTA update and it worked.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the logs from when it worked&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.1.99-ncs1-4-gc025ef3dd566  ***
MQTT AWS Jobs FOTA Sample, version: v1
Initializing bsdlib
Initialized bsdlib
LTE Link Connecting ...
LTE Link Connected!
IPv4 Address 52.39.0.142
client_id: nrf9160dk
I: Subscribe: $aws/things/nrf9160dk/jobs/notify-next
I: Subscribe: $aws/things/nrf9160dk/jobs/$next/get/#
[mqtt_evt_handler:174] MQTT client connected!
I: subscribed to notify-next topic
I: Publish topic: $aws/things/nrf9160dk/jobs/$next/get
I: Publish payload {&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}
[mqtt_evt_handler:227] PUBACK packet id: 39715
[mqtt_evt_handler:237] SUBACK packet id: 2114
[mqtt_evt_handler:227] PUBACK packet id: 61524
I: Checking for an available job
I: Subscribe: $aws/things/nrf9160dk/jobs/fota3/update/#
I: Publish topic: $aws/things/nrf9160dk/jobs/fota3/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:227] PUBACK packet id: 11375
I: Start downloading firmware from nrf9160dktest.s3-us-west-2.amazonaws.com/app_update.bin
I: Attempting to connect over IPv4
I: Connected to nrf9160dktest.s3-us-west-2.amazonaws.com
I: Downloading: app_update.bin [0]
AWS_FOTA_EVT_START, job id = fota3
I: Downloaded 4096/183300 bytes (2%)
I: 2 Sectors of 4096 bytes
I: alloc wra: 0, ff0
I: data wra: 0, 0
I: Erasing sector at offset 0x00087000
I: Erasing sector at offset 0x00088000
E: Failed to send HTTP request, errno 128
W: Download socket error. 2 retries left...
I: Reconnecting..
I: Attempting to connect over IPv4
I: Connected to nrf9160dktest.s3-us-west-2.amazonaws.com
I: Downloaded 8192/183300 bytes (4%)
I: Erasing sector at offset 0x00089000
I: Downloaded 12288/183300 bytes (6%)
I: Erasing sector at offset 0x0008a000
I: Downloaded 16384/183300 bytes (8%)
I: Erasing sector at offset 0x0008b000
I: Downloaded 20480/183300 bytes (11%)
I: Erasing sector at offset 0x0008c000
I: Downloaded 24576/183300 bytes (13%)
I: Erasing sector at offset 0x0008d000
I: Downloaded 28672/183300 bytes (15%)
I: Erasing sector at offset 0x0008e000
I: Downloaded 32768/183300 bytes (17%)
I: Erasing sector at offset 0x0008f000
I: Downloaded 36864/183300 bytes (20%)
I: Erasing sector at offset 0x00090000
I: Downloaded 40960/183300 bytes (22%)
I: Erasing sector at offset 0x00091000
I: Downloaded 45056/183300 bytes (24%)
I: Erasing sector at offset 0x00092000
I: Downloaded 49152/183300 bytes (26%)
I: Erasing sector at offset 0x00093000
I: Downloaded 53248/183300 bytes (29%)
I: Erasing sector at offset 0x00094000
I: Downloaded 57344/183300 bytes (31%)
I: Erasing sector at offset 0x00095000
I: Downloaded 61440/183300 bytes (33%)
I: Erasing sector at offset 0x00096000
I: Downloaded 65536/183300 bytes (35%)
I: Erasing sector at offset 0x00097000
I: Downloaded 69632/183300 bytes (37%)
I: Erasing sector at offset 0x00098000
I: Downloaded 73728/183300 bytes (40%)
I: Erasing sector at offset 0x00099000
I: Downloaded 77824/183300 bytes (42%)
I: Erasing sector at offset 0x0009a000
I: Downloaded 81920/183300 bytes (44%)
I: Erasing sector at offset 0x0009b000
I: Downloaded 86016/183300 bytes (46%)
I: Erasing sector at offset 0x0009c000
I: Downloaded 90112/183300 bytes (49%)
I: Erasing sector at offset 0x0009d000
I: Downloaded 94208/183300 bytes (51%)
I: Erasing sector at offset 0x0009e000
I: Downloaded 98304/183300 bytes (53%)
I: Erasing sector at offset 0x0009f000
I: Downloaded 102400/183300 bytes (55%)
I: Erasing sector at offset 0x000a0000
I: Downloaded 106496/183300 bytes (58%)
I: Erasing sector at offset 0x000a1000
I: Downloaded 110592/183300 bytes (60%)
I: Erasing sector at offset 0x000a2000
I: Downloaded 114688/183300 bytes (62%)
I: Erasing sector at offset 0x000a3000
I: Downloaded 118784/183300 bytes (64%)
I: Erasing sector at offset 0x000a4000
I: Downloaded 122880/183300 bytes (67%)
I: Erasing sector at offset 0x000a5000
I: Downloaded 126976/183300 bytes (69%)
I: Erasing sector at offset 0x000a6000
I: Downloaded 131072/183300 bytes (71%)
I: Erasing sector at offset 0x000a7000
I: Downloaded 135168/183300 bytes (73%)
I: Erasing sector at offset 0x000a8000
I: Downloaded 139264/183300 bytes (75%)
I: Erasing sector at offset 0x000a9000
I: Downloaded 143360/183300 bytes (78%)
I: Erasing sector at offset 0x000aa000
I: Downloaded 147456/183300 bytes (80%)
I: Erasing sector at offset 0x000ab000
I: Downloaded 151552/183300 bytes (82%)
I: Erasing sector at offset 0x000ac000
I: Downloaded 155648/183300 bytes (84%)
I: Erasing sector at offset 0x000ad000
I: Downloaded 159744/183300 bytes (87%)
I: Erasing sector at offset 0x000ae000
I: Downloaded 163840/183300 bytes (89%)
I: Erasing sector at offset 0x000af000
I: Downloaded 167936/183300 bytes (91%)
I: Erasing sector at offset 0x000b0000
I: Downloaded 172032/183300 bytes (93%)
I: Erasing sector at offset 0x000b1000
I: Downloaded 176128/183300 bytes (96%)
I: Erasing sector at offset 0x000b2000
I: Downloaded 180224/183300 bytes (98%)
I: Erasing sector at offset 0x000b3000
I: Downloaded 183300/183300 bytes (100%)
I: Download complete
I: Erasing sector at offset 0x000fd000
I: MCUBoot image upgrade scheduled. Reset the device to apply
I: FOTA download completed evt received
AWS_FOTA_EVT_DL_PROGRESS, 100% downloaded
I: Publish topic: $aws/things/nrf9160dk/jobs/fota3/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;2&amp;quot;,&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}
[mqtt_evt_handler:227] PUBACK packet id: 23027
I: Firmware download completed
I: Publish topic: $aws/things/nrf9160dk/jobs/fota3/update
I: Publish payload {&amp;quot;status&amp;quot;:&amp;quot;SUCCEEDED&amp;quot;,&amp;quot;statusDetails&amp;quot;: null,&amp;quot;expectedVersion&amp;quot;: &amp;quot;3&amp;quot;,&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}
[mqtt_evt_handler:227] PUBACK packet id: 65327
AWS_FOTA_EVT_DONE, rebooting to apply update
I: Job document updated with SUCCEDED
I: Ready to reboot
[mqtt_evt_handler:185] MQTT client disconnected 0
*** Booting Zephyr OS build v2.1.99-ncs1-4-gc025ef3dd566  ***
[00:00:00.005,279] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader
[00:00:00.011,413] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x1
[00:00:00.021,453] &amp;lt;inf&amp;gt; mcuboot: Boot source: none
[00:00:00.026,885] &amp;lt;inf&amp;gt; mcuboot: Swap type: test
[00:00:18.782,348] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0x10000
[00:00:18.790,069] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot
*** Booting Zephyr OS build v2.1.99-ncs1-3-g7ddab664b04b  ***
Flash region		Domain		Permissions
00 0x00000 0x08000 	Secure		rwxl
01 0x08000 0x10000 	Secure		rwxl
02 0x10000 0x18000 	Secure		rwxl
03 0x18000 0x20000 	Non-Secure	rwxl
04 0x20000 0x28000 	Non-Secure	rwxl
05 0x28000 0x30000 	Non-Secure	rwxl
06 0x30000 0x38000 	Non-Secure	rwxl
07 0x38000 0x40000 	Non-Secure	rwxl
08 0x40000 0x48000 	Non-Secure	rwxl
09 0x48000 0x50000 	Non-Secure	rwxl
10 0x50000 0x58000 	Non-Secure	rwxl
11 0x58000 0x60000 	Non-Secure	rwxl
12 0x60000 0x68000 	Non-Secure	rwxl
13 0x68000 0x70000 	Non-Secure	rwxl
14 0x70000 0x78000 	Non-Secure	rwxl
15 0x78000 0x80000 	Non-Secure	rwxl
16 0x80000 0x88000 	Non-Secure	rwxl
17 0x88000 0x90000 	Non-Secure	rwxl
18 0x90000 0x98000 	Non-Secure	rwxl
19 0x98000 0xa0000 	Non-Secure	rwxl
20 0xa0000 0xa8000 	Non-Secure	rwxl
21 0xa8000 0xb0000 	Non-Secure	rwxl
22 0xb0000 0xb8000 	Non-Secure	rwxl
23 0xb8000 0xc0000 	Non-Secure	rwxl
24 0xc0000 0xc8000 	Non-Secure	rwxl
25 0xc8000 0xd0000 	Non-Secure	rwxl
26 0xd0000 0xd8000 	Non-Secure	rwxl
27 0xd8000 0xe0000 	Non-Secure	rwxl
28 0xe0000 0xe8000 	Non-Secure	rwxl
29 0xe8000 0xf0000 	Non-Secure	rwxl
30 0xf0000 0xf8000 	Non-Secure	rwxl
31 0xf8000 0x100000 	Non-Secure	rwxl
Non-secure callable region 0 placed in flash region 2 with size 32.


SRAM region		Domain		Permissions
00 0x00000 0x02000	Secure		rwxl
01 0x02000 0x04000	Secure		rwxl
02 0x04000 0x06000	Secure		rwxl
03 0x06000 0x08000	Secure		rwxl
04 0x08000 0x0a000	Secure		rwxl
05 0x0a000 0x0c000	Secure		rwxl
06 0x0c000 0x0e000	Secure		rwxl
07 0x0e000 0x10000	Secure		rwxl
08 0x10000 0x12000	Non-Secure	rwxl
09 0x12000 0x14000	Non-Secure	rwxl
10 0x14000 0x16000	Non-Secure	rwxl
11 0x16000 0x18000	Non-Secure	rwxl
12 0x18000 0x1a000	Non-Secure	rwxl
13 0x1a000 0x1c000	Non-Secure	rwxl
14 0x1c000 0x1e000	Non-Secure	rwxl
15 0x1e000 0x20000	Non-Secure	rwxl
16 0x20000 0x22000	Non-Secure	rwxl
17 0x22000 0x24000	Non-Secure	rwxl
18 0x24000 0x26000	Non-Secure	rwxl
19 0x26000 0x28000	Non-Secure	rwxl
20 0x28000 0x2a000	Non-Secure	rwxl
21 0x2a000 0x2c000	Non-Secure	rwxl
22 0x2c000 0x2e000	Non-Secure	rwxl
23 0x2e000 0x30000	Non-Secure	rwxl
24 0x30000 0x32000	Non-Secure	rwxl
25 0x32000 0x34000	Non-Secure	rwxl
26 0x34000 0x36000	Non-Secure	rwxl
27 0x36000 0x38000	Non-Secure	rwxl
28 0x38000 0x3a000	Non-Secure	rwxl
29 0x3a000 0x3c000	Non-Secure	rwxl
30 0x3c000 0x3e000	Non-Secure	rwxl
31 0x3e000 0x40000	Non-Secure	rwxl

Peripheral		Domain		Status
00 NRF_P0               Non-Secure	OK
01 NRF_CLOCK            Non-Secure	OK
02 NRF_RTC0             Non-Secure	OK
03 NRF_RTC1             Non-Secure	OK
04 NRF_NVMC             Non-Secure	OK
05 NRF_UARTE1           Non-Secure	OK
06 NRF_UARTE2           Secure		SKIP
07 NRF_TWIM2            Non-Secure	OK
08 NRF_SPIM3            Non-Secure	OK
09 NRF_TIMER0           Non-Secure	OK
10 NRF_TIMER1           Non-Secure	OK
11 NRF_TIMER2           Non-Secure	OK
12 NRF_SAADC            Non-Secure	OK
13 NRF_PWM0             Non-Secure	OK
14 NRF_PWM1             Non-Secure	OK
15 NRF_PWM2             Non-Secure	OK
16 NRF_PWM3             Non-Secure	OK
17 NRF_WDT              Non-Secure	OK
18 NRF_IPC              Non-Secure	OK
19 NRF_VMC              Non-Secure	OK
20 NRF_FPU              Non-Secure	OK
21 NRF_EGU1             Non-Secure	OK
22 NRF_EGU2             Non-Secure	OK
23 NRF_DPPIC            Non-Secure	OK
24 NRF_GPIOTE1          Non-Secure	OK
25 NRF_REGULATORS       Non-Secure	OK

SPM: NS image at 0x1c200
SPM: NS MSP at 0x20028278
SPM: NS reset vector at 0x2040d
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.1.99-ncs1-3-g7ddab664b04b  ***
MQTT AWS Jobs FOTA Sample, version: v2
Initializing bsdlib
Initialized bsdlib
************************* WARNING *************************
provision_certificates called do not use this in production!
This will store the certificates in readable flash and leave
them exposed on modem_traces. Only use this once for
provisioning certificates for development to reduce flash tear.
************************* WARNING *************************
modem_key_mgmt_delete(5, 0) =&amp;gt; result=0
modem_key_mgmt_delete(5, 1) =&amp;gt; result=0
modem_key_mgmt_delete(5, 2) =&amp;gt; result=0
modem_key_mgmt_write =&amp;gt; result=0
modem_key_mgmt_write =&amp;gt; result=0
modem_key_mgmt_write =&amp;gt; result=0
LTE Link Connecting ...
LTE Link Connected!
IPv4 Address 52.39.0.142
client_id: nrf9160dk
I: Subscribe: $aws/things/nrf9160dk/jobs/notify-next
I: Subscribe: $aws/things/nrf9160dk/jobs/$next/get/#
[mqtt_evt_handler:172] MQTT client connected!
I: subscribed to notify-next topic
I: Publish topic: $aws/things/nrf9160dk/jobs/$next/get
I: Publish payload {&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}
[mqtt_evt_handler:225] PUBACK packet id: 6469
[mqtt_evt_handler:235] SUBACK packet id: 2114
[mqtt_evt_handler:225] PUBACK packet id: 24502
I: Checking for an available job
I: No queued jobs for this device&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the job file you asked about&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&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;: 181124,
  &amp;quot;location&amp;quot;: {
    &amp;quot;protocol&amp;quot;: &amp;quot;http:&amp;quot;,
    &amp;quot;host&amp;quot;: &amp;quot;nrf9160dktest.s3-us-west-2.amazonaws.com&amp;quot;,
    &amp;quot;path&amp;quot;: &amp;quot;app_update.bin&amp;quot;
  }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So I guess the problem is fixed now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/243735?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 15:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd93b8d-b065-403a-8a69-4ee976e93586</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="icampbell"]Did it hang a really long time on that line for you?[/quote]
&lt;p&gt;&amp;nbsp;No, the log shows that it failed immediately.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What does your job file look like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/242723?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 13:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4cedebd-0497-413e-9223-57f9f43d33a6</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;Yes, building it on master is expected (I changed the code when I built it on v1.2.0). &lt;/p&gt;
&lt;p&gt;The project working is strange, considering my device still doesn&amp;#39;t work. Any idea what might be causing this?&lt;/p&gt;
&lt;p&gt;Also, I remember when my device got to 2%, it just hung on that line (&amp;quot;Downloaded 4096/183300 bytes (2%)&amp;quot;), not printed out an error after. Did it hang a really long time on that line for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/242589?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 07:09:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa36277d-d109-4c1e-98e1-24138c812808</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I was able to build on master, not on tag v1.2.0. And the project worked as intended. Below is the output from LTE Link Monitor. (Missed the first part of startup)&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;2020-03-31T07:05:42.719Z DEBUG modem &amp;lt;&amp;lt; LTE Link Connected!\x0D\x0A
2020-03-31T07:05:42.879Z DEBUG modem &amp;lt;&amp;lt; IPv4 Address 52.27.234.97\x0D\x0A
2020-03-31T07:05:42.890Z DEBUG modem &amp;lt;&amp;lt; client_id: nrf9160dk\x0D\x0A
2020-03-31T07:05:47.980Z DEBUG modem &amp;lt;&amp;lt; I: Subscribe: $aws/things/nrf9160dk/jobs/notify-next\x0D\x0A
2020-03-31T07:05:47.990Z DEBUG modem &amp;lt;&amp;lt; I: Subscribe: $aws/things/nrf9160dk/jobs/$next/get/#\x0D
2020-03-31T07:05:47.995Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:174] MQTT client connected!\x0D\x0A
2020-03-31T07:05:48.243Z DEBUG modem &amp;lt;&amp;lt; I: subscribed to notify-next topic\x0D\x0A
2020-03-31T07:05:48.248Z DEBUG modem &amp;lt;&amp;lt; I: Publish topic: $aws/things/nrf9160dk/jobs/$next/get\x0D\x0A
2020-03-31T07:05:48.252Z DEBUG modem &amp;lt;&amp;lt; I: Publish payload {&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}\x0D\x0A
2020-03-31T07:05:48.628Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:227] PUBACK packet id: 10768\x0D\x0A
2020-03-31T07:05:48.633Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:237] SUBACK packet id: 2114\x0D\x0A
2020-03-31T07:05:48.923Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:227] PUBACK packet id: 19180\x0D\x0A
2020-03-31T07:05:49.003Z DEBUG modem &amp;lt;&amp;lt; I: Checking for an available job\x0D\x0A
2020-03-31T07:05:49.010Z DEBUG modem &amp;lt;&amp;lt; I: Subscribe: $aws/things/nrf9160dk/jobs/fotatest_v2/update/#\x0D\x0A
2020-03-31T07:05:49.262Z DEBUG modem &amp;lt;&amp;lt; I: Publish topic: $aws/things/nrf9160dk/jobs/fotatest_v2/update\x0D\x0A
2020-03-31T07:05:49.274Z DEBUG modem &amp;lt;&amp;lt; 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;}\x0D
2020-03-31T07:05:49.914Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:227] PUBACK packet id: 52671\x0D
2020-03-31T07:05:49.922Z DEBUG modem &amp;lt;&amp;lt; I: Start downloading firmware from nrf9160dktest.s3-us-west-2.amazonaws.com/app_update.bin\x0D
2020-03-31T07:05:49.983Z DEBUG modem &amp;lt;&amp;lt; I: Attempting to connect over IPv4\x0D\x0A
2020-03-31T07:05:50.520Z DEBUG modem &amp;lt;&amp;lt; I: Connected to nrf9160dktest.s3-us-west-2.amazonaws.com\x0D\x0A
2020-03-31T07:05:50.524Z DEBUG modem &amp;lt;&amp;lt; I: Downloading: app_update.bin [0]\x0D\x0A
2020-03-31T07:05:50.533Z DEBUG modem &amp;lt;&amp;lt; AWS_FOTA_EVT_START, job id = fotatest_v2\x0D\x0A
2020-03-31T07:05:52.119Z DEBUG modem &amp;lt;&amp;lt; I: Downloaded 4096/183300 bytes (2%)\x0D\x0A
2020-03-31T07:05:52.126Z DEBUG modem &amp;lt;&amp;lt; I: 2 Sectors of 4096 bytes\x0D\x0A
2020-03-31T07:05:52.128Z DEBUG modem &amp;lt;&amp;lt; I: alloc wra: 0, fb0\x0D\x0A
2020-03-31T07:05:52.130Z DEBUG modem &amp;lt;&amp;lt; I: data wra: 0, c7c\x0D\x0A
2020-03-31T07:05:52.136Z DEBUG modem &amp;lt;&amp;lt; I: Refuse fragment, restart with offset\x0D\x0A
2020-03-31T07:05:52.141Z DEBUG modem &amp;lt;&amp;lt; I: Fragment refused, download stopped.\x0D\x0A
2020-03-31T07:05:53.134Z DEBUG modem &amp;lt;&amp;lt; I: Downloading: app_update.bin [2508627009]\x0D\x0A
2020-03-31T07:05:53.149Z DEBUG modem &amp;lt;&amp;lt; I: Downloading from offset: 0x95869c41\x0D\x0A
2020-03-31T07:05:53.779Z DEBUG modem &amp;lt;&amp;lt; E: Server did not send &amp;quot;Content-Range&amp;quot; in response\x0D\x0A
2020-03-31T07:05:53.785Z DEBUG modem &amp;lt;&amp;lt; E: Download client error\x0D\x0A
2020-03-31T07:05:53.789Z DEBUG modem &amp;lt;&amp;lt; I: MCUBoot image upgrade aborted.\x0D
2020-03-31T07:05:53.793Z DEBUG modem &amp;lt;&amp;lt; E: FOTA download failed, report back\x0D\x0A
2020-03-31T07:05:53.801Z DEBUG modem &amp;lt;&amp;lt; I: Publish topic: $aws/things/nrf9160dk/jobs/fotatest_v2/update\x0D
2020-03-31T07:05:53.815Z DEBUG modem &amp;lt;&amp;lt; I: Publish payload {&amp;quot;status&amp;quot;:&amp;quot;FAILED&amp;quot;,&amp;quot;statusDetails&amp;quot;: null,&amp;quot;expectedVersion&amp;quot;: &amp;quot;2&amp;quot;,&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}\x0D\x0A
2020-03-31T07:05:53.823Z DEBUG modem &amp;lt;&amp;lt; AWS_FOTA_EVT_ERROR\x0D\x0A
2020-03-31T07:05:54.394Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:227] PUBACK packet id: 4808\x0D
2020-03-31T07:05:55.364Z DEBUG modem &amp;lt;&amp;lt; I: Checking for an available job\x0D
2020-03-31T07:05:55.368Z DEBUG modem &amp;lt;&amp;lt; I: No queued jobs for this device\x0D\x0A
2020-03-31T07:06:17.446Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.1.99-ncs1-15-g9e7299a38e12  ***\x0D
2020-03-31T07:06:17.452Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.006,683] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Starting bootloader\x1B[0m\x0D\x0A
2020-03-31T07:06:17.463Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.014,923] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Primary image: magic=bad, swap_type=0x1, copy_done=0x2, image_ok=0x2\x1B[0m\x0D\x0A
2020-03-31T07:06:17.468Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.027,984] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Boot source: none\x1B[0m\x0D\x0A
2020-03-31T07:06:17.473Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.035,217] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Swap type: none\x1B[0m\x0D\x0A
2020-03-31T07:06:17.757Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.387,512] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0x10000\x1B[0m\x0D\x0A
2020-03-31T07:06:17.767Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.395,202] \x1B[0m&amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot\x1B[0m\x0D\x0A
2020-03-31T07:06:17.769Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.1.99-ncs1-15-g9e7299a38e12  ***\x0D\x0A
2020-03-31T07:06:17.770Z DEBUG modem &amp;lt;&amp;lt; Flash regions\x09\x09Domain\x09\x09Permissions\x0D\x0A
2020-03-31T07:06:17.772Z DEBUG modem &amp;lt;&amp;lt; 00 02 0x00000 0x18000 \x09Secure\x09\x09rwxl\x0D
2020-03-31T07:06:17.776Z DEBUG modem &amp;lt;&amp;lt; 03 31 0x18000 0x100000 \x09Non-Secure\x09rwxl\x0D\x0A\x0D
2020-03-31T07:06:17.788Z DEBUG modem &amp;lt;&amp;lt; Non-secure callable region 0 placed in flash region 2 with size 32.\x0D\x0A\x0D\x0A
2020-03-31T07:06:17.952Z DEBUG modem &amp;lt;&amp;lt; SRAM region\x09\x09Domain\x09\x09Permissions\x0D
2020-03-31T07:06:17.957Z DEBUG modem &amp;lt;&amp;lt; 00 07 0x00000 0x10000 \x09Secure\x09\x09rwxl\x0D\x0A
2020-03-31T07:06:17.960Z DEBUG modem &amp;lt;&amp;lt; 08 31 0x10000 0x40000 \x09Non-Secure\x09rwxl\x0D\x0A\x0D\x0A
2020-03-31T07:06:17.963Z DEBUG modem &amp;lt;&amp;lt; Peripheral\x09\x09Domain\x09\x09Status\x0D\x0A
2020-03-31T07:06:17.968Z DEBUG modem &amp;lt;&amp;lt; 00 NRF_P0               Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:17.969Z DEBUG modem &amp;lt;&amp;lt; 01 NRF_CLOCK            Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:17.973Z DEBUG modem &amp;lt;&amp;lt; 02 NRF_RTC0             Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:17.976Z DEBUG modem &amp;lt;&amp;lt; 03 NRF_RTC1             Non-Secure\x09OK\x0D
2020-03-31T07:06:17.979Z DEBUG modem &amp;lt;&amp;lt; 04 NRF_NVMC             Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:17.987Z DEBUG modem &amp;lt;&amp;lt; 05 NRF_UARTE1           Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:17.988Z DEBUG modem &amp;lt;&amp;lt; 06 NRF_UARTE2           Secure\x09\x09SKIP\x0D\x0A
2020-03-31T07:06:17.990Z DEBUG modem &amp;lt;&amp;lt; 07 NRF_TWIM2            Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:17.992Z DEBUG modem &amp;lt;&amp;lt; 08 NRF_SPIM3            Non-Secure\x09OK\x0D
2020-03-31T07:06:18.000Z DEBUG modem &amp;lt;&amp;lt; 09 NRF_TIMER0           Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.001Z DEBUG modem &amp;lt;&amp;lt; 10 NRF_TIMER1           Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.003Z DEBUG modem &amp;lt;&amp;lt; 11 NRF_TIMER2           Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.006Z DEBUG modem &amp;lt;&amp;lt; 12 NRF_SAADC            Non-Secure\x09OK\x0D
2020-03-31T07:06:18.010Z DEBUG modem &amp;lt;&amp;lt; 13 NRF_PWM0             Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.017Z DEBUG modem &amp;lt;&amp;lt; 14 NRF_PWM1             Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.018Z DEBUG modem &amp;lt;&amp;lt; 15 NRF_PWM2             Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.020Z DEBUG modem &amp;lt;&amp;lt; 16 NRF_PWM3             Non-Secure\x09OK\x0D
2020-03-31T07:06:18.023Z DEBUG modem &amp;lt;&amp;lt; 17 NRF_WDT              Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.027Z DEBUG modem &amp;lt;&amp;lt; 18 NRF_IPC              Non-Secure\x09OK\x0D
2020-03-31T07:06:18.033Z DEBUG modem &amp;lt;&amp;lt; 19 NRF_VMC              Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.035Z DEBUG modem &amp;lt;&amp;lt; 20 NRF_FPU              Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.037Z DEBUG modem &amp;lt;&amp;lt; 21 NRF_EGU1             Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.040Z DEBUG modem &amp;lt;&amp;lt; 22 NRF_EGU2             Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.044Z DEBUG modem &amp;lt;&amp;lt; 23 NRF_DPPIC            Non-Secure\x09OK\x0D
2020-03-31T07:06:18.050Z DEBUG modem &amp;lt;&amp;lt; 24 NRF_GPIOTE1          Non-Secure\x09OK\x0D\x0A
2020-03-31T07:06:18.052Z DEBUG modem &amp;lt;&amp;lt; 25 NRF_REGULATORS       Non-Secure\x09OK\x0D\x0A\x0D\x0A
2020-03-31T07:06:18.054Z DEBUG modem &amp;lt;&amp;lt; SPM: NS image at 0x1c200\x0D\x0A
2020-03-31T07:06:18.056Z DEBUG modem &amp;lt;&amp;lt; SPM: NS MSP at 0x200282c8\x0D\x0A
2020-03-31T07:06:18.058Z DEBUG modem &amp;lt;&amp;lt; SPM: NS reset vector at 0x20469\x0D
2020-03-31T07:06:18.062Z DEBUG modem &amp;lt;&amp;lt; SPM: prepare to jump to Non-Secure image.\x0D\x0A
2020-03-31T07:06:18.072Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.1.99-ncs1-15-g9e7299a38e12  ***\x0D\x0A
2020-03-31T07:06:18.075Z DEBUG modem &amp;lt;&amp;lt; MQTT AWS Jobs FOTA Sample, version: v1\x0D\x0A
2020-03-31T07:06:18.077Z DEBUG modem &amp;lt;&amp;lt; Initializing bsdlib\x0D
2020-03-31T07:06:18.296Z DEBUG modem &amp;lt;&amp;lt; Initialized bsdlib\x0D
2020-03-31T07:06:18.309Z DEBUG modem &amp;lt;&amp;lt; ************************* WARNING *************************\x0D\x0A
2020-03-31T07:06:18.317Z DEBUG modem &amp;lt;&amp;lt; provision_certificates called do not use this in production!\x0D\x0A
2020-03-31T07:06:18.320Z DEBUG modem &amp;lt;&amp;lt; This will store the certificates in readable flash and leave\x0D\x0A
2020-03-31T07:06:18.325Z DEBUG modem &amp;lt;&amp;lt; them exposed on modem_traces. Only use this once for\x0D\x0A
2020-03-31T07:06:18.333Z DEBUG modem &amp;lt;&amp;lt; provisioning certificates for development to reduce flash tear.\x0D\x0A
2020-03-31T07:06:18.336Z DEBUG modem &amp;lt;&amp;lt; ************************* WARNING *************************\x0D\x0A
2020-03-31T07:06:18.468Z DEBUG modem &amp;lt;&amp;lt; modem_key_mgmt_delete(1337, 0) =&amp;gt; result=0\x0D\x0A
2020-03-31T07:06:18.501Z DEBUG modem &amp;lt;&amp;lt; modem_key_mgmt_delete(1337, 1) =&amp;gt; result=0\x0D\x0A
2020-03-31T07:06:18.604Z DEBUG modem &amp;lt;&amp;lt; modem_key_mgmt_delete(1337, 2) =&amp;gt; result=0\x0D\x0A
2020-03-31T07:06:18.716Z DEBUG modem &amp;lt;&amp;lt; modem_key_mgmt_write =&amp;gt; result=0\x0D\x0A
2020-03-31T07:06:18.851Z DEBUG modem &amp;lt;&amp;lt; modem_key_mgmt_write =&amp;gt; result=0\x0D
2020-03-31T07:06:18.918Z DEBUG modem &amp;lt;&amp;lt; modem_key_mgmt_write =&amp;gt; result=0\x0D\x0A
2020-03-31T07:06:18.922Z DEBUG modem &amp;lt;&amp;lt; LTE Link Connecting ...\x0D\x0A
2020-03-31T07:06:21.202Z DEBUG modem &amp;lt;&amp;lt; LTE Link Connected!\x0D\x0A
2020-03-31T07:06:21.367Z DEBUG modem &amp;lt;&amp;lt; IPv4 Address 52.27.234.97\x0D\x0A
2020-03-31T07:06:21.372Z DEBUG modem &amp;lt;&amp;lt; client_id: nrf9160dk\x0D\x0A
2020-03-31T07:06:26.969Z DEBUG modem &amp;lt;&amp;lt; I: Subscribe: $aws/things/nrf9160dk/jobs/notify-next\x0D
2020-03-31T07:06:26.985Z DEBUG modem &amp;lt;&amp;lt; I: Subscribe: $aws/things/nrf9160dk/jobs/$next/get/#\x0D\x0A
2020-03-31T07:06:26.986Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:174] MQTT client connected!\x0D\x0A
2020-03-31T07:06:27.276Z DEBUG modem &amp;lt;&amp;lt; I: subscribed to notify-next topic\x0D\x0A
2020-03-31T07:06:27.282Z DEBUG modem &amp;lt;&amp;lt; I: Publish topic: $aws/things/nrf9160dk/jobs/$next/get\x0D
2020-03-31T07:06:27.285Z DEBUG modem &amp;lt;&amp;lt; I: Publish payload {&amp;quot;clientToken&amp;quot;: &amp;quot;&amp;quot;}\x0D
2020-03-31T07:06:27.617Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:227] PUBACK packet id: 30113\x0D\x0A
2020-03-31T07:06:27.621Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:237] SUBACK packet id: 2114\x0D\x0A
2020-03-31T07:06:27.878Z DEBUG modem &amp;lt;&amp;lt; [mqtt_evt_handler:227] PUBACK packet id: 39954\x0D\x0A
2020-03-31T07:06:27.912Z DEBUG modem &amp;lt;&amp;lt; I: Checking for an available job\x0D
2020-03-31T07:06:27.917Z DEBUG modem &amp;lt;&amp;lt; I: No queued jobs for this device\x0D\x0A
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I see I&amp;#39;m getting the same issue as you did at first, stopping at 2%.&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;2020-03-31T07:05:52.119Z DEBUG modem &amp;lt;&amp;lt; I: Downloaded 4096/183300 bytes (2%)\x0D\x0A
2020-03-31T07:05:52.126Z DEBUG modem &amp;lt;&amp;lt; I: 2 Sectors of 4096 bytes\x0D\x0A
2020-03-31T07:05:52.128Z DEBUG modem &amp;lt;&amp;lt; I: alloc wra: 0, fb0\x0D\x0A
2020-03-31T07:05:52.130Z DEBUG modem &amp;lt;&amp;lt; I: data wra: 0, c7c\x0D\x0A
2020-03-31T07:05:52.136Z DEBUG modem &amp;lt;&amp;lt; I: Refuse fragment, restart with offset\x0D\x0A
2020-03-31T07:05:52.141Z DEBUG modem &amp;lt;&amp;lt; I: Fragment refused, download stopped.\x0D\x0A
2020-03-31T07:05:53.134Z DEBUG modem &amp;lt;&amp;lt; I: Downloading: app_update.bin [2508627009]\x0D\x0A
2020-03-31T07:05:53.149Z DEBUG modem &amp;lt;&amp;lt; I: Downloading from offset: 0x95869c41\x0D\x0A
2020-03-31T07:05:53.779Z DEBUG modem &amp;lt;&amp;lt; E: Server did not send &amp;quot;Content-Range&amp;quot; in response\x0D\x0A
2020-03-31T07:05:53.785Z DEBUG modem &amp;lt;&amp;lt; E: Download client error\x0D\x0A&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;em&gt; Server did not send &amp;quot;Content-Range&amp;quot; in response&lt;/em&gt;&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/242430?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 13:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda0abb6-e7b4-45b8-bd4b-7e8f2936c334</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;I removed the extra spaces, but unfortunately it still says &amp;quot;ERROR: mqtt_connect -22&amp;quot;. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The project should build. I&amp;#39;m on the &amp;quot;master&amp;quot; branch of the sdk, if that helps (I have also tried v1.2.0, rebased off of the v1.2.0 aws_fota sample, but it had the same problem).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/242355?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 10:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2592be2-ea56-4612-8067-fb9fb208e26f</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was not able to build your project, but am working on a solution. However, I found that your&amp;nbsp;CLOUD_CLIENT_PRIVATE_KEY in certificates.h had an extra space after&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;\n&amp;quot;.&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;This can cause issues with certificates.&amp;nbsp;&lt;br /&gt;Please remove and let me know how it goes!&lt;/p&gt;
&lt;p&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: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/242123?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 14:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c64caf-90ab-40f6-b02b-40fac08b0ae3</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I updated the modem firmware to 1.1.1, but I still have the same problem.&lt;/p&gt;
&lt;p&gt;I sent you a PM with a link to my project. To use it you would have to uncomment CONFIG_PROVISION_CERTIFICATES=y.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/242011?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 08:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee94dc80-3afc-4862-bcd5-1a0df5fddf98</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry, so far I&amp;#39;ve got nothing from the modem trace or log. Can you please&amp;nbsp;try updating the modem FW to mfw 1.1.1? If this does not fix the issue, can you please provide your project?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/241931?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 15:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fdb4e6a-f9ed-4d23-9577-2fbf3af1d926</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thank you! I will look into the modem trace and the log output to see if there is anything causing this issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Will get back to you asap.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/241908?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 15:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51a41f6f-19d5-45bf-b3cc-ee21e87a3f47</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2020_2D00_03_2D00_26T14_2D00_58_2D00_36.611Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2020_2D00_03_2D00_26T14_2D00_58_2D00_36.611Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here you go. I rebooted the device just after I started the trace, and ended the trace just after it printed &amp;quot;mqtt_connect -22&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/241894?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 14:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:249b0e65-8105-466b-b0bc-9f7d26f6d9ed</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I think we need to have a look at the modem connection. Can you please &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;provide a modem trace&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/241883?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 14:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b0451d-2e3b-4a05-8f2e-8a4cf83030c4</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;Here&amp;#39;s the log from AT client:&lt;pre class="ui-code" data-mode="text"&gt;2020-03-26T14:07:31.789Z INFO Application data folder: /home/icampbell/.config/nrfconnect/pc-nrfconnect-linkmonitor
2020-03-26T14:07:31.861Z DEBUG App pc-nrfconnect-linkmonitor v1.1.1 official
2020-03-26T14:07:31.861Z DEBUG App path: /home/icampbell/.nrfconnect-apps/node_modules/pc-nrfconnect-linkmonitor
2020-03-26T14:07:31.862Z DEBUG nRFConnect 3.3.0 is supported by the app (^3.2.0)
2020-03-26T14:07:31.862Z DEBUG nRFConnect path: /tmp/.mount_nrfconDssE2Z/resources/app.asar
2020-03-26T14:07:31.862Z DEBUG HomeDir: /home/icampbell
2020-03-26T14:07:31.862Z DEBUG TmpDir: /tmp
2020-03-26T14:07:31.924Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS0
2020-03-26T14:07:31.924Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS1
2020-03-26T14:07:31.924Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS10
2020-03-26T14:07:31.924Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS11
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS12
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS13
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS14
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS15
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS16
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS17
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS18
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS19
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS2
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS20
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS21
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS22
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS23
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS24
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS25
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS26
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS27
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS28
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS29
2020-03-26T14:07:31.925Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS3
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS30
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS31
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS4
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS5
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS6
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS7
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS8
2020-03-26T14:07:31.926Z VERBOSE Could not fetch serial number for serial port at /dev/ttyS9
2020-03-26T14:07:33.791Z INFO Modem port is opened
2020-03-26T14:07:33.797Z DEBUG modem &amp;lt;&amp;lt;  Zephyr OS build v2.1.99-ncs1-4-gc025ef3dd566  ***\x0D\x0A
2020-03-26T14:07:33.800Z DEBUG modem &amp;lt;&amp;lt; Flash region\x09\x09Domain\x09\x09Permissions\x0D\x0A
2020-03-26T14:07:33.834Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN?\x0D\x0A
2020-03-26T14:07:33.846Z DEBUG modem &amp;lt;&amp;lt; 00 0x00000 0x08000 \x09Secure\x09\x09rw+CFUN: 0\x0D\x0A
2020-03-26T14:07:33.848Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:41.826Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.1.99-ncs1-4-gc025ef3dd566  ***\x0D\x0A
2020-03-26T14:07:41.828Z DEBUG modem &amp;lt;&amp;lt; Flash region\x09\x09Domain\x09\x09Permissions\x0D\x0A
2020-03-26T14:07:41.833Z DEBUG modem &amp;lt;&amp;lt; 00 0x00000 0x08000 \x09Secure\x09\x09rwxl\x0D\x0A
2020-03-26T14:07:41.835Z DEBUG modem &amp;lt;&amp;lt; 01 0x08000 0x10000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.838Z DEBUG modem &amp;lt;&amp;lt; 02 0x10000 0x18000 \x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:41.841Z DEBUG modem &amp;lt;&amp;lt; 03 0x18000 0x20000 \x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:41.844Z DEBUG modem &amp;lt;&amp;lt; 04 0x20000 0x28000 \x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:41.847Z DEBUG modem &amp;lt;&amp;lt; 05 0x28000 0x30000 \x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:41.853Z DEBUG modem &amp;lt;&amp;lt; 06 0x30000 0x38000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.856Z DEBUG modem &amp;lt;&amp;lt; 07 0x38000 0x40000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.859Z DEBUG modem &amp;lt;&amp;lt; 08 0x40000 0x48000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.862Z DEBUG modem &amp;lt;&amp;lt; 09 0x48000 0x50000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.866Z DEBUG modem &amp;lt;&amp;lt; 10 0x50000 0x58000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.870Z DEBUG modem &amp;lt;&amp;lt; 11 0x58000 0x60000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.873Z DEBUG modem &amp;lt;&amp;lt; 12 0x60000 0x68000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.882Z DEBUG modem &amp;lt;&amp;lt; 13 0x68000 0x70000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.883Z DEBUG modem &amp;lt;&amp;lt; 14 0x70000 0x78000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.885Z DEBUG modem &amp;lt;&amp;lt; 15 0x78000 0x80000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.886Z DEBUG modem &amp;lt;&amp;lt; 16 0x80000 0x88000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.888Z DEBUG modem &amp;lt;&amp;lt; 17 0x88000 0x90000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.891Z DEBUG modem &amp;lt;&amp;lt; 18 0x90000 0x98000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.896Z DEBUG modem &amp;lt;&amp;lt; 19 0x98000 0xa0000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.897Z DEBUG modem &amp;lt;&amp;lt; 20 0xa0000 0xa8000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.903Z DEBUG modem &amp;lt;&amp;lt; 21 0xa8000 0xb0000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.904Z DEBUG modem &amp;lt;&amp;lt; 22 0xb0000 0xb8000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.906Z DEBUG modem &amp;lt;&amp;lt; 23 0xb8000 0xc0000 \x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:41.912Z DEBUG modem &amp;lt;&amp;lt; 24 0xc0000 0xc8000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.913Z DEBUG modem &amp;lt;&amp;lt; 25 0xc8000 0xd0000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.916Z DEBUG modem &amp;lt;&amp;lt; 26 0xd0000 0xd8000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.922Z DEBUG modem &amp;lt;&amp;lt; 27 0xd8000 0xe0000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.924Z DEBUG modem &amp;lt;&amp;lt; 28 0xe0000 0xe8000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.927Z DEBUG modem &amp;lt;&amp;lt; 29 0xe8000 0xf0000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.929Z DEBUG modem &amp;lt;&amp;lt; 30 0xf0000 0xf8000 \x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:41.936Z DEBUG modem &amp;lt;&amp;lt; 31 0xf8000 0x100000 \x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:41.941Z DEBUG modem &amp;lt;&amp;lt; Non-secure callable region 0 placed in flash region 0 with size 32.\x0D\x0A\x0D\x0A
2020-03-26T14:07:42.111Z DEBUG modem &amp;lt;&amp;lt; SRAM region\x09\x09Domain\x09\x09Permissions\x0D
2020-03-26T14:07:42.114Z DEBUG modem &amp;lt;&amp;lt; 00 0x00000 0x02000\x09Secure\x09\x09rwxl\x0D
2020-03-26T14:07:42.117Z DEBUG modem &amp;lt;&amp;lt; 01 0x02000 0x04000\x09Secure\x09\x09rwxl\x0D\x0A
2020-03-26T14:07:42.120Z DEBUG modem &amp;lt;&amp;lt; 02 0x04000 0x06000\x09Secure\x09\x09rwxl\x0D
2020-03-26T14:07:42.122Z DEBUG modem &amp;lt;&amp;lt; 03 0x06000 0x08000\x09Secure\x09\x09rwxl\x0D
2020-03-26T14:07:42.131Z DEBUG modem &amp;lt;&amp;lt; 04 0x08000 0x0a000\x09Secure\x09\x09rwxl\x0D\x0A
2020-03-26T14:07:42.133Z DEBUG modem &amp;lt;&amp;lt; 05 0x0a000 0x0c000\x09Secure\x09\x09rwxl\x0D\x0A
2020-03-26T14:07:42.136Z DEBUG modem &amp;lt;&amp;lt; 06 0x0c000 0x0e000\x09Secure\x09\x09rwxl\x0D\x0A
2020-03-26T14:07:42.138Z DEBUG modem &amp;lt;&amp;lt; 07 0x0e000 0x10000\x09Secure\x09\x09rwxl\x0D\x0A
2020-03-26T14:07:42.141Z DEBUG modem &amp;lt;&amp;lt; 08 0x10000 0x12000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.147Z DEBUG modem &amp;lt;&amp;lt; 09 0x12000 0x14000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.149Z DEBUG modem &amp;lt;&amp;lt; 10 0x14000 0x16000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.151Z DEBUG modem &amp;lt;&amp;lt; 11 0x16000 0x18000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.153Z DEBUG modem &amp;lt;&amp;lt; 12 0x18000 0x1a000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.155Z DEBUG modem &amp;lt;&amp;lt; 13 0x1a000 0x1c000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.157Z DEBUG modem &amp;lt;&amp;lt; 14 0x1c000 0x1e000\x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:42.164Z DEBUG modem &amp;lt;&amp;lt; 15 0x1e000 0x20000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.166Z DEBUG modem &amp;lt;&amp;lt; 16 0x20000 0x22000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.168Z DEBUG modem &amp;lt;&amp;lt; 17 0x22000 0x24000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.170Z DEBUG modem &amp;lt;&amp;lt; 18 0x24000 0x26000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.172Z DEBUG modem &amp;lt;&amp;lt; 19 0x26000 0x28000\x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:42.179Z DEBUG modem &amp;lt;&amp;lt; 20 0x28000 0x2a000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.181Z DEBUG modem &amp;lt;&amp;lt; 21 0x2a000 0x2c000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.182Z DEBUG modem &amp;lt;&amp;lt; 22 0x2c000 0x2e000\x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:42.185Z DEBUG modem &amp;lt;&amp;lt; 23 0x2e000 0x30000\x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:42.188Z DEBUG modem &amp;lt;&amp;lt; 24 0x30000 0x32000\x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:42.195Z DEBUG modem &amp;lt;&amp;lt; 25 0x32000 0x34000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.197Z DEBUG modem &amp;lt;&amp;lt; 26 0x34000 0x36000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.199Z DEBUG modem &amp;lt;&amp;lt; 27 0x36000 0x38000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.201Z DEBUG modem &amp;lt;&amp;lt; 28 0x38000 0x3a000\x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:42.204Z DEBUG modem &amp;lt;&amp;lt; 29 0x3a000 0x3c000\x09Non-Secure\x09rwxl\x0D
2020-03-26T14:07:42.212Z DEBUG modem &amp;lt;&amp;lt; 30 0x3c000 0x3e000\x09Non-Secure\x09rwxl\x0D\x0A
2020-03-26T14:07:42.213Z DEBUG modem &amp;lt;&amp;lt; 31 0x3e000 0x40000\x09Non-Secure\x09rwxl\x0D\x0A\x0D\x0A
2020-03-26T14:07:42.215Z DEBUG modem &amp;lt;&amp;lt; Peripheral\x09\x09Domain\x09\x09Status\x0D\x0A
2020-03-26T14:07:42.217Z DEBUG modem &amp;lt;&amp;lt; 00 NRF_P0               Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.220Z DEBUG modem &amp;lt;&amp;lt; 01 NRF_CLOCK            Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.224Z DEBUG modem &amp;lt;&amp;lt; 02 NRF_RTC0             Non-Secure\x09OK\x0D
2020-03-26T14:07:42.230Z DEBUG modem &amp;lt;&amp;lt; 03 NRF_RTC1             Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.232Z DEBUG modem &amp;lt;&amp;lt; 04 NRF_NVMC             Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.234Z DEBUG modem &amp;lt;&amp;lt; 05 NRF_UARTE1           Non-Secure\x09OK\x0D
2020-03-26T14:07:42.237Z DEBUG modem &amp;lt;&amp;lt; 06 NRF_UARTE2           Secure\x09\x09SKIP\x0D
2020-03-26T14:07:42.246Z DEBUG modem &amp;lt;&amp;lt; 07 NRF_TWIM2            Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.247Z DEBUG modem &amp;lt;&amp;lt; 08 NRF_SPIM3            Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.249Z DEBUG modem &amp;lt;&amp;lt; 09 NRF_TIMER0           Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.251Z DEBUG modem &amp;lt;&amp;lt; 10 NRF_TIMER1           Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.254Z DEBUG modem &amp;lt;&amp;lt; 11 NRF_TIMER2           Non-Secure\x09OK\x0D
2020-03-26T14:07:42.262Z DEBUG modem &amp;lt;&amp;lt; 12 NRF_SAADC            Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.263Z DEBUG modem &amp;lt;&amp;lt; 13 NRF_PWM0             Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.265Z DEBUG modem &amp;lt;&amp;lt; 14 NRF_PWM1             Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.268Z DEBUG modem &amp;lt;&amp;lt; 15 NRF_PWM2             Non-Secure\x09OK\x0D
2020-03-26T14:07:42.272Z DEBUG modem &amp;lt;&amp;lt; 16 NRF_PWM3             Non-Secure\x09OK\x0D
2020-03-26T14:07:42.279Z DEBUG modem &amp;lt;&amp;lt; 17 NRF_WDT              Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.281Z DEBUG modem &amp;lt;&amp;lt; 18 NRF_IPC              Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.283Z DEBUG modem &amp;lt;&amp;lt; 19 NRF_VMC              Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.285Z DEBUG modem &amp;lt;&amp;lt; 20 NRF_FPU              Non-Secure\x09OK\x0D
2020-03-26T14:07:42.297Z DEBUG modem &amp;lt;&amp;lt; 21 NRF_EGU1             Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.298Z DEBUG modem &amp;lt;&amp;lt; 22 NRF_EGU2             Non-Secure\x09OK\x0D
2020-03-26T14:07:42.300Z DEBUG modem &amp;lt;&amp;lt; 23 NRF_DPPIC            Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.302Z DEBUG modem &amp;lt;&amp;lt; 24 NRF_GPIOTE1          Non-Secure\x09OK\x0D\x0A
2020-03-26T14:07:42.303Z DEBUG modem &amp;lt;&amp;lt; 25 NRF_REGULATORS       Non-Secure\x09OK\x0D\x0A\x0D\x0A
2020-03-26T14:07:42.305Z DEBUG modem &amp;lt;&amp;lt; SPM: NS image at 0xc000\x0D
2020-03-26T14:07:42.313Z DEBUG modem &amp;lt;&amp;lt; SPM: NS MSP at 0x20026fb8\x0D\x0A
2020-03-26T14:07:42.315Z DEBUG modem &amp;lt;&amp;lt; SPM: NS reset vector at 0xd1d9\x0D\x0A
2020-03-26T14:07:42.317Z DEBUG modem &amp;lt;&amp;lt; SPM: prepare to jump to Non-Secure image.\x0D\x0A
2020-03-26T14:07:42.510Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.1.99-ncs1-4-gc025ef3dd566  ***\x0D
2020-03-26T14:07:42.513Z DEBUG modem &amp;lt;&amp;lt; The AT host sample started\x0D\x0A
2020-03-26T14:07:45.516Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN=1\x0D\x0A
2020-03-26T14:07:45.559Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.058Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN?\x0D\x0A
2020-03-26T14:07:48.062Z DEBUG modem &amp;lt;&amp;lt; +CFUN: 1\x0D
2020-03-26T14:07:48.068Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.069Z DEBUG modem &amp;gt;&amp;gt; AT+CGSN=1\x0D\x0A
2020-03-26T14:07:48.076Z DEBUG modem &amp;lt;&amp;lt; +CGSN: &amp;quot;352656100382004&amp;quot;\x0D\x0A
2020-03-26T14:07:48.077Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.081Z DEBUG modem &amp;gt;&amp;gt; AT+CGMI\x0D\x0A
2020-03-26T14:07:48.091Z DEBUG modem &amp;lt;&amp;lt; Nordic Semiconductor ASA\x0D\x0A
2020-03-26T14:07:48.093Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.097Z DEBUG modem &amp;gt;&amp;gt; AT+CGMM\x0D\x0A
2020-03-26T14:07:48.102Z DEBUG modem &amp;lt;&amp;lt; nRF9160-SICA\x0D\x0A
2020-03-26T14:07:48.108Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.111Z DEBUG modem &amp;gt;&amp;gt; AT+CGMR\x0D\x0A
2020-03-26T14:07:48.115Z DEBUG modem &amp;lt;&amp;lt; mfw_nrf9160_1.1.0\x0D
2020-03-26T14:07:48.117Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.120Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.122Z INFO Nordic Semiconductor ASA nRF9160-SICA [mfw_nrf9160_1.1.0] SerNr: 352656100382004
2020-03-26T14:07:48.127Z DEBUG modem &amp;gt;&amp;gt; AT+CEMODE?\x0D\x0A
2020-03-26T14:07:48.132Z DEBUG modem &amp;lt;&amp;lt; +CEMODE: 2\x0D
2020-03-26T14:07:48.134Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.136Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.147Z DEBUG modem &amp;gt;&amp;gt; AT%XCBAND=?\x0D\x0A
2020-03-26T14:07:48.158Z DEBUG modem &amp;lt;&amp;lt; %XCBAND: (1,2,3,4,5,8,12,13,14,17,18,19,20,25,26,28,66)\x0D\x0A
2020-03-26T14:07:48.160Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.167Z DEBUG modem &amp;gt;&amp;gt; AT+CMEE?\x0D\x0A
2020-03-26T14:07:48.176Z DEBUG modem &amp;lt;&amp;lt; +CMEE: 0\x0D\x0A
2020-03-26T14:07:48.177Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.179Z DEBUG modem &amp;gt;&amp;gt; AT+CMEE=1\x0D\x0A
2020-03-26T14:07:48.185Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.192Z DEBUG modem &amp;gt;&amp;gt; AT+CNEC?\x0D\x0A
2020-03-26T14:07:48.197Z DEBUG modem &amp;lt;&amp;lt; +CNEC: 0\x0D\x0A
2020-03-26T14:07:48.199Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.201Z DEBUG modem &amp;gt;&amp;gt; AT+CNEC=24\x0D\x0A
2020-03-26T14:07:48.209Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.211Z DEBUG modem &amp;gt;&amp;gt; AT+CGEREP?\x0D\x0A
2020-03-26T14:07:48.216Z DEBUG modem &amp;lt;&amp;lt; +CGEREP: 0,0\x0D
2020-03-26T14:07:48.217Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.218Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.225Z DEBUG modem &amp;gt;&amp;gt; AT+CGDCONT?\x0D\x0A
2020-03-26T14:07:48.231Z DEBUG modem &amp;lt;&amp;lt; +CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,0,0\x0D
2020-03-26T14:07:48.232Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.233Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.245Z DEBUG modem &amp;gt;&amp;gt; AT+CGACT?\x0D\x0A
2020-03-26T14:07:48.247Z DEBUG modem &amp;lt;&amp;lt; +CNEC_ESM: 50,0\x0D\x0A
2020-03-26T14:07:48.252Z DEBUG modem &amp;lt;&amp;lt; +CGACT: 0,1\x0D\x0A
2020-03-26T14:07:48.253Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.269Z DEBUG modem &amp;gt;&amp;gt; AT+CGEREP=1\x0D\x0A
2020-03-26T14:07:48.272Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.276Z DEBUG modem &amp;gt;&amp;gt; AT+CIND=1,1,1\x0D\x0A
2020-03-26T14:07:48.281Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.283Z DEBUG modem &amp;gt;&amp;gt; AT+CEREG=2\x0D\x0A
2020-03-26T14:07:48.292Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.295Z DEBUG modem &amp;gt;&amp;gt; AT+CEREG?\x0D\x0A
2020-03-26T14:07:48.302Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 2,5,&amp;quot;4E0C&amp;quot;,&amp;quot;02F1EE08&amp;quot;,7\x0D
2020-03-26T14:07:48.308Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.310Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.319Z DEBUG modem &amp;gt;&amp;gt; AT+COPS=3,2\x0D\x0A
2020-03-26T14:07:48.327Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.331Z DEBUG modem &amp;gt;&amp;gt; AT+COPS?\x0D\x0A
2020-03-26T14:07:48.341Z DEBUG modem &amp;lt;&amp;lt; +COPS: 0,2,&amp;quot;310410&amp;quot;,7\x0D
2020-03-26T14:07:48.344Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.347Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.359Z DEBUG modem &amp;gt;&amp;gt; AT%XCBAND\x0D\x0A
2020-03-26T14:07:48.364Z DEBUG modem &amp;lt;&amp;lt; %XCBAND: 2\x0D
2020-03-26T14:07:48.365Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.367Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.379Z DEBUG modem &amp;gt;&amp;gt; AT+CGDCONT?\x0D\x0A
2020-03-26T14:07:48.392Z DEBUG modem &amp;lt;&amp;lt; +CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;data641003&amp;quot;,&amp;quot;10.49.40.232&amp;quot;,0,0\x0D\x0A
2020-03-26T14:07:48.393Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.400Z DEBUG modem &amp;gt;&amp;gt; AT+CGACT?\x0D\x0A
2020-03-26T14:07:48.410Z DEBUG modem &amp;lt;&amp;lt; +CGACT: 0,1\x0D\x0A
2020-03-26T14:07:48.411Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.417Z DEBUG modem &amp;gt;&amp;gt; AT%CESQ=1\x0D\x0A
2020-03-26T14:07:48.425Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.428Z DEBUG modem &amp;gt;&amp;gt; AT+CESQ\x0D\x0A
2020-03-26T14:07:48.435Z DEBUG modem &amp;lt;&amp;lt; +CESQ: 99,99,255,255,17,33\x0D
2020-03-26T14:07:48.443Z DEBUG modem &amp;lt;&amp;lt; \x0A
2020-03-26T14:07:48.444Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.459Z DEBUG modem &amp;gt;&amp;gt; AT%XSIM=1\x0D\x0A
2020-03-26T14:07:48.463Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.466Z DEBUG modem &amp;gt;&amp;gt; AT%XSIM?\x0D\x0A
2020-03-26T14:07:48.475Z DEBUG modem &amp;lt;&amp;lt; %XSIM: 1\x0D\x0A
2020-03-26T14:07:48.477Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.484Z DEBUG modem &amp;gt;&amp;gt; AT+CPIN?\x0D\x0A
2020-03-26T14:07:48.492Z DEBUG modem &amp;lt;&amp;lt; +CPIN: READY\x0D\x0A
2020-03-26T14:07:48.494Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A
2020-03-26T14:07:48.502Z DEBUG modem &amp;gt;&amp;gt; AT+CPINR=&amp;quot;SIM PIN&amp;quot;\x0D\x0A
2020-03-26T14:07:50.273Z DEBUG modem &amp;lt;&amp;lt; +CPINR: &amp;quot;SIM PIN&amp;quot;,3\x0D\x0A
2020-03-26T14:07:50.300Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A&lt;/pre&gt;&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/59244/aws_fota-error-mqtt_connect--22/241755"]there seems to be a mismatch between your prj.conf and the AWS MQTT settings[/quote]
&lt;p&gt;No, the output there is from when I ran it with CONFIG_USE_NRF_CLOUD=y, which changes the client id, so it&amp;#39;s expected behavior. Running with the config I posted earlier to connect to my AWS account, it still produces the same output as in my original post, where the client-id outputs as &amp;quot;nrf9160dk&amp;quot; as expected. I am using west build / west flash, but changes made to prj.conf are definitely taking effect. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/241755?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 09:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42bd3cb7-41b0-45f8-9776-fd44ef5f5fe6</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="icampbell"]I am using iBasis, and I seem to have enough data[/quote]
&lt;p&gt;&amp;nbsp;Yes, should be enough.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="icampbell"]About the default configuration - I wasn&amp;#39;t aware that this example even worked with nrf cloud until just now[/quote]
&lt;p&gt;&amp;nbsp;No, this should not work with nRF Cloud from what I am told. It is designed to work nRF Cloud in the beginning, but some changes were introduced to nRF Cloud which made it not work with nRF Cloud. nRF Cloud is based on AWS, and will, therefore, have a similar address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="icampbell"]Here is the output of the AT Client.[/quote]
&lt;p&gt;&amp;nbsp;Can you please click on Open Log File, then save and send a full log file?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-aeb00ea6f08c413baf6648a33ba906bc/pastedimage1585216007639v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;From the information you give, there seems to be a mismatch between your prj.conf and the AWS MQTT settings. Are you using SES when building and programming? What I am fearing, is that the settings you add in prj.conf are overwritten by kconfig. E.g. your client-id does not match in the latest output:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-aeb00ea6f08c413baf6648a33ba906bc/pastedimage1585216428189v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/241456?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 18:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a547b1e-dd3a-410c-8fa7-156514f2f229</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;I am using iBasis, and I seem to have enough data. I also tried a test application that sends and receives on a UDP socket, which also works.&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-from-2020_2D00_03_2D00_24-10_2D00_52_2D00_05.png" /&gt;&lt;/p&gt;
&lt;p&gt;I tried the more restrictive policy, but that didn&amp;#39;t fix the problem, still an error with mqtt_connect -22.&lt;/p&gt;
&lt;p&gt;About the default configuration - I wasn&amp;#39;t aware that this example even worked with nrf cloud until just now.&amp;nbsp; Reverting the repository doesn&amp;#39;t work (the broker is set to your_aws_mqtt_broker_hostname.amazonaws.com by default, which causes &amp;quot;getaddrinfo failed -11&amp;quot;), and when I set CONFIG_USE_NRF_CLOUD=y, I get the same problem as before (mqtt_connect -22)&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-from-2020_2D00_03_2D00_24-11_2D00_10_2D00_16.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is the output of the AT Client. &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-from-2020_2D00_03_2D00_24-10_2D00_49_2D00_29.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/241278?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 07:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c9cc6c-9fda-451f-8fa9-0c9df5a3d580</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;My apologies for the late reply.&lt;/p&gt;
[quote user="icampbell"]I&amp;#39;m pretty sure I&amp;#39;m using LTE-M.[/quote]
&lt;p&gt;Are you using iBasis, or another SIM card? If you are using iBasis, please verify that you have enough data.&amp;nbsp;&lt;/p&gt;
[quote user="icampbell"]Even if I were to revert it to the original version from the repo, I would need to make the same changes to connect to my account (broker url, certificates, id, etc.)[/quote]
&lt;p&gt;&amp;nbsp;Yes, that is expected. We need to verify if the issue is on your side or ours. Also, please verify that all steps are followed/done correctly in AWS console. You could try to add a more restrictive policy:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&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;Action&amp;quot;: &amp;quot;iot:Connect&amp;quot;,
      &amp;quot;Resource&amp;quot;: &amp;quot;arn:aws:iot:*:*:client/${iot:ClientId}&amp;quot;
      }
    },
    {
      &amp;quot;Effect&amp;quot;: &amp;quot;Allow&amp;quot;,
      &amp;quot;Action&amp;quot;: &amp;quot;iot:Receive&amp;quot;,
      &amp;quot;Resource&amp;quot;: &amp;quot;*&amp;quot;
    },
    {
      &amp;quot;Effect&amp;quot;: &amp;quot;Allow&amp;quot;,
      &amp;quot;Action&amp;quot;: &amp;quot;iot:Subscribe&amp;quot;,
      &amp;quot;Resource&amp;quot;: &amp;quot;*&amp;quot;
    },
    {
      &amp;quot;Effect&amp;quot;: &amp;quot;Allow&amp;quot;,
      &amp;quot;Action&amp;quot;: &amp;quot;iot:Publish&amp;quot;,
      &amp;quot;Resource&amp;quot;: &amp;quot;*&amp;quot;
    }
  ]
 }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="icampbell"]OK, here&amp;#39;s the output[/quote]
&lt;p&gt;&amp;nbsp;From this screenshot, I can see you have a weak signal. Can you please try to program your device with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/at_client/README.html#nrf9160-at-client"&gt;AT Client&lt;/a&gt; and provide the output from LTE Link Monitor.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&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: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/240898?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 13:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c06cc9f-55fa-49bb-b6c0-a219a0af6733</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;I did not make any changes between when it was able to connect and when it wasn&amp;#39;t. I even tried reverting the CONFIG_DFU_TARGET_MCUBOOT_SAVE_PROGRESS change, even though it was able to connect after that change until it stopped working, but it didn&amp;#39;t work even with CONFIG_DFU_TARGET_MCUBOOT_SAVE_PROGRESS=y. Even if I were to revert it to the original version from the repo, I would need to make the same changes to connect to my account (broker url, certificates, id, etc.)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m pretty sure I&amp;#39;m using LTE-M.&lt;/p&gt;
&lt;p&gt;Here are the changes to the project; I&amp;#39;ve been able to connect with this configuration before:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;diff --git a/samples/nrf9160/aws_fota/prj.conf b/samples/nrf9160/aws_fota/prj.conf
index 33b27ca..0d2a6a6 100644
--- a/samples/nrf9160/aws_fota/prj.conf
+++ b/samples/nrf9160/aws_fota/prj.conf
@@ -67,3 +67,13 @@ CONFIG_BOOTLOADER_MCUBOOT=y
 CONFIG_IMG_MANAGER=y
 CONFIG_FLASH=y
 CONFIG_IMG_ERASE_PROGRESSIVELY=y
+
+# CONFIG_PROVISION_CERTIFICATES=y
+CONFIG_CLOUD_CERT_SEC_TAG=5
+CONFIG_APP_VERSION=&amp;quot;v1&amp;quot;
+CONFIG_MQTT_BROKER_HOSTNAME=&amp;quot;ahykgwaormc93-ats.iot.us-west-2.amazonaws.com&amp;quot;
+CONFIG_USE_CLOUD_CLIENT_ID=y
+CONFIG_CLOUD_CLIENT_ID=&amp;quot;nrf9160dk&amp;quot;
+CONFIG_USE_NRF_CLOUD=n
+# CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y
+# CONFIG_AWS_FOTA_LOG_LEVEL_DBG=y
diff --git a/samples/nrf9160/aws_fota/src/certificates.h b/samples/nrf9160/aws_fota/src/certificates.h
index e0f316b..fdf9ba4 100644
--- a/samples/nrf9160/aws_fota/src/certificates.h
+++ b/samples/nrf9160/aws_fota/src/certificates.h
&amp;lt;my certificates&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/240818?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 10:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e432949-8360-4a6e-91a1-182984f9a16c</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="icampbell"]The device was able to connect to AWS MQTT before, and I haven&amp;#39;t changed anything, so the client ID, hostname, and certificates should work[/quote]
&lt;p&gt;&amp;nbsp;It the device was able to connect before, then you must revert any changes done before losing connection.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]At first, the device got stuck as it was downloading the firmware update, at 2%. I was able to fix this by setting CONFIG_DFU_TARGET_MCUBOOT_SAVE_PROGRESS=n. After that, the download got stuck at around 11%, though that number changed a bit each time I ran it. While I was trying to fix that, the device stopped being able to connect to AWS at all, even though I didn&amp;#39;t change anything.[/quote]
&lt;p&gt;&amp;nbsp;I suggest reverting the sample to the original git hash and provide information on what happens when the download gets stuck.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Are you using NB-IoT or LTE-M?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;KInd regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/240660?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 13:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06471624-d50f-4fe4-bc2a-654302559189</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;&amp;quot;git diff&amp;quot; only shows the changes to prj.conf that I showed above and certificates.h, which are necessary to get it to work. &lt;/p&gt;
&lt;p&gt;I am using an S3 bucket for the update and the job file but mqtt_connect is before it gets to that point.&lt;/p&gt;
&lt;p&gt;1. Yes, the client ID on AWS is also &amp;quot;nrf9160dk&amp;quot;&lt;/p&gt;
&lt;p&gt;2. Yes, I am using the sample policies from &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#nrf9160-aws-fota"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#nrf9160-aws-fota&lt;/a&gt; for both the thing and the S3 bucket&lt;/p&gt;
&lt;p&gt;3. Yes, the endpoint at AWS IoT -&amp;gt; Test -&amp;gt; View Endpoint is also &amp;quot;ahykgwaormc93-ats.iot.us-west-2.amazonaws.com&amp;quot;.&lt;/p&gt;
&lt;p&gt;The device was able to connect to AWS MQTT before, and I haven&amp;#39;t changed anything, so the client ID, hostname, and certificates should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/240655?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 13:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c03007-8a43-41b9-8538-ccf930ffdc77</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Ok, that did not give much more information on how to solve this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you try to revert back to the original project? Were you trying to download from S3 bucket?&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Is the client ID the same as the client ID of the AWS thing?&lt;/li&gt;
&lt;li&gt;Have you registered correct policy?&lt;/li&gt;
&lt;li&gt;Is the hostname correct?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please confirm all settings in AWS &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#nrf9160-aws-fota"&gt;given in the documentation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/240636?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 12:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceda2fc4-f361-4e02-8e4b-2b3352fc3eb6</guid><dc:creator>icampbell</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-from-2020_2D00_03_2D00_19-08_2D00_54_2D00_27.png" /&gt;&lt;/p&gt;
&lt;p&gt;OK, here&amp;#39;s the output&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_FOTA: ERROR: mqtt_connect -22</title><link>https://devzone.nordicsemi.com/thread/240548?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 06:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d035d9-9c8c-4159-add8-3e56873eb261</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;From&amp;nbsp;&lt;em&gt;nrfxlib\bsdlib\include\nrf_errno.h&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_EINVAL          22  /**&amp;lt; Invalid argument */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve had no issues with the AWS FOTA sample (tested yesterday). Can you please provide the output from i.e. LTE Link Monitor?&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></channel></rss>