<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87467/nrf9160-dk-aws-iot-cloud-connection-issue</link><description>I used Modem firmware version 1.3.1 
 In order to connect the nrf9160 DK to the AWS cloud, I am encountering errors such as AWS_ IOT_ EVT _CONNECTING, when it should be AWS_ IOT_EVT_CONNECTED, as well as error -111 when executing the code. I attempted</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 May 2022 14:17:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87467/nrf9160-dk-aws-iot-cloud-connection-issue" /><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/366755?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 14:17:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b9e4b53-8cc0-4984-a0a2-fc9ff6a10be9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You should not post your private key on the Internet.&amp;nbsp;&lt;br /&gt;You should generate a new one.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/366593?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 06:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c664b8-b7b7-49c0-a1f8-ce400acc473e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There are several indented lines. You could try removing the indentation in the two lines below the line which contains #define,&amp;nbsp; as well as in the last line.&amp;nbsp;&lt;br /&gt;Please check the documentation related to the certificates in the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/modem_key_mgmt.html"&gt;modem key management&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/366552?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 20:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a80408ba-6012-45ba-86df-27291d77f85c</guid><dc:creator>Sobaha Azam</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added every other line \n&amp;quot; \ but still it is not working.&amp;nbsp; Now, what should I do to make it work?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Sobaha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/366464?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 12:36:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55a61f4c-c4a0-4dd9-bfb7-01f27dfd6b2a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try as suggested. Afterwards, you can get back with the result.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/366328?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 21:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93dc0d1-3533-4151-8334-f56214079372</guid><dc:creator>Sobaha Azam</dc:creator><description>&lt;p&gt;So I simply need to include those symbols, and it won&amp;#39;t throw any errors at me, correct?&lt;br /&gt;or do I need to do something extra to ensure that I don&amp;#39;t get any errors and that I get the output like everything is connected?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Sobaha Azam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/366295?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 14:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:937c225b-1551-4136-b740-42d80b1522e1</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You would need to change how you write the certificate.&lt;br /&gt;&lt;br /&gt;Required changes include adding &amp;#39;\n&amp;#39; and &amp;#39;\&amp;#39; symbols into their proper places, as shown below.&lt;br /&gt;&lt;br /&gt;First two lines should be&lt;br /&gt;#define ...&amp;nbsp; \&lt;br /&gt;&amp;quot;--- BEGIN CERTIFICATE---\n&amp;quot; \&lt;br /&gt;&lt;br /&gt;Other lines should also have &amp;#39;\n&amp;#39;, and &amp;#39;\&amp;#39; at the end.&lt;br /&gt;&lt;br /&gt;Last line should have &amp;#39;\n&amp;#39; as well.&lt;br /&gt;&amp;quot;---END CERTIFICATE---\n&amp;quot;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/366070?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 20:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a622052a-506d-4381-b0b5-eb2c3aa213cd</guid><dc:creator>Sobaha Azam</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_05_2D00_03T19_2D00_34_2D00_54.167Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_05_2D00_03T19_2D00_34_2D00_54.167Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/certificate.1.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;AWS_IOT_CLIENT_PRIVATE_KEY&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;\&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;-----BEGIN RSA PRIVATE KEY-----&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;---------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;-----END RSA PRIVATE KEY-----&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;AWS_IOT_CLIENT_PUBLIC_CERTIFICATE&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;-----BEGIN CERTIFICATE-----&amp;quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;-------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;-----END CERTIFICATE-----&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;AWS_IOT_CA_CERTIFICATE&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;-----BEGIN CERTIFICATE-----&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;----------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;-----END CERTIFICATE-----&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is how I wrote in the VSCode, and I simply copied and pasted it into the modem as it was like&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;------BEGIN CERTIFICATE-----&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;--------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;--------END CERTIFICATE------&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;ve also provided&amp;nbsp;the RAW trace file. Now can you please help me to resolve this issue?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Sobaha&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365924?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 09:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5cd7ef-723c-425a-b34b-ca19dbd0e5b6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;In order to get more information from the trace, could you send RAW trace file as well?&lt;br /&gt;&lt;br /&gt;In addition, could you precisely describe how you write the certificates to the modem?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365837?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 17:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c178fcf-f0a2-4f45-8407-b9d5d5aab3c4</guid><dc:creator>Sobaha Azam</dc:creator><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;I am able to capture data using trace collector v2, but I&amp;#39;m not sure what I need to do next to resolve my problem. How do I get AWS IOT EVT CONNECTED instead of AWS IOT EVT CONNECTING? How do I resolve Error -111? The deadline is approaching, and I need to do this as quickly as possible. The fact is that I&amp;#39;ve been fighting this problem for about a month. You can help me out by providing a detailed step-by-step lesson this time so that I can figure out what&amp;#39;s wrong. I&amp;#39;ve also provided a copy of my log file also capturing trace file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/new2022_2D00_05_2D00_02T17_5F00_07_5F00_34.444Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../new2022_2D00_05_2D00_02T17_5F00_07_5F00_34.444Z_2D00_log.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_05_2D00_02T19_2D00_04_2D00_28.483Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_05_2D00_02T19_2D00_04_2D00_28.483Z.pcapng&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sobaha&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365833?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 15:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d0d60e-76f5-4ad7-a3ca-4be2459c6e38</guid><dc:creator>danielboe</dc:creator><description>&lt;p&gt;Ah I may got you wrong. I used the nrf trace (not v2, its not capturing any data)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365826?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 15:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f8aabee-6ea8-4006-b6fc-c260b4ec25c1</guid><dc:creator>danielboe</dc:creator><description>&lt;p&gt;you need to set&amp;nbsp;CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y and you need to map the uart1 as the debug serial port to your debug device ( so map it to the right pins) in your .overlay file. if you use dev-board I think you dont need to change the .overlay file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365823?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 14:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc7bf030-c219-4aeb-8701-e232c4a41b51</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you specify how you have got the trace .bin file?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365818?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 14:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9840d51-7c0f-44ae-acb2-b97da4c15a78</guid><dc:creator>danielboe</dc:creator><description>&lt;p&gt;Attached is a log of my issue with connection to aws with trace data. also a log of the RTT of the situation&lt;/p&gt;
&lt;p&gt;Edit: the trace v2 is not capturing any data with the same setup.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_05_2D00_02T14_2D00_14_2D00_04.176Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_05_2D00_02T14_2D00_14_2D00_04.176Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/modem_5F00_debug_5F00_noconnect.txt"&gt;devzone.nordicsemi.com/.../modem_5F00_debug_5F00_noconnect.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365766?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 12:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a3a278-cd24-43ad-81eb-2a77b8f0b971</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Setting the option CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y in prj.conf would be correct. However, you should not put the same option inside the Link Monitor, as this is what caused the error.&lt;br /&gt;After you set this option in prj.conf, you should be able to use Trace Collector v2 to provide pcap log of the connection.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK AWS IoT cloud connection issue</title><link>https://devzone.nordicsemi.com/thread/365697?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 08:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a8e0bce-9ed8-45b3-8da0-a7b40b172103</guid><dc:creator>danielboe</dc:creator><description>&lt;p&gt;I want to join here. I have the same error. We develop a device based on nrf91 and since 28.04.2022 most devices connect not anymore. We use 1nce provider and we are in contact. 1nce can see the connection but also can see that there are 0 Bytes of data transmission. they claim there is no issue on their site. I will add more info and log data later. The issue is very urgent for us&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and best regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>