<?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 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100846/nrf9160-aws-iot-no-connection-possible</link><description>Dear 
 We are bussy with oure first NRF IOT application, in the past we used AWS as cloud environment. 
 Now we want to write some data in the cloud based on the NRF9160-DK board. 
 After a clean and up to date, setup from the Nordic SDK and downloading</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Nov 2023 16:23:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100846/nrf9160-aws-iot-no-connection-possible" /><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/457222?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 16:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e39823d-083c-4744-922e-56d22e0d0eef</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Did you try to use nrf_setdnsaddr to provide a back-up DNS server?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/456772?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 17:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04f426c8-559b-4b1a-b994-d63fa1ee66d0</guid><dc:creator>emsys</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I try with the same SIM, URL and topic same certificates, with other hardware from a competitor (Not Nordic based) and i works, i van post MQTT message tot de AWS cloud.&lt;/p&gt;
&lt;p&gt;So there is some problem with the configuration of the Nordic modem i think?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/456451?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 14:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11fe4b45-ab38-4e13-ac8f-416ccc54aca5</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;The modem trace shows that the device tries to do a DNS lookup, but it doesn&amp;#39;t get any response from the DNS server.&lt;/p&gt;
&lt;p&gt;Are you able to run other samples, or connect to other servers?&lt;/p&gt;
&lt;p&gt;Are you sure the hostname is correct?&lt;/p&gt;
&lt;p&gt;You can also try to add a back-up DNS server with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#c.nrf_setdnsaddr"&gt;nrf_setdnsaddr&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/456272?ContentTypeID=1</link><pubDate>Sat, 18 Nov 2023 17:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc9d8cb2-85fd-4b9e-a209-0e206b23234f</guid><dc:creator>emsys</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Please find here the trace file.&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2023_2D00_11_2D00_18T17_2D00_48_2D00_41.328Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2023_2D00_11_2D00_18T17_2D00_48_2D00_41.328Z.mtrace&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/456116?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 10:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d2b0be-5f0a-4f14-b31b-8e34e51d6f73</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;That is log from the application, not the modem.&lt;/p&gt;
&lt;p&gt;Please see the link in my previous reply on how to take a modem trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/456041?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2023 19:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ab9bb5-a8ed-4ff8-ab98-5a9982e91f99</guid><dc:creator>emsys</dc:creator><description>&lt;p&gt;Modem Trace: &lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
I: The AWS IoT sample started, version: v1.0.0
I: Trace thread ready
I: Trace level override: 2
+CEREG: 2,&amp;quot;0C3F&amp;quot;,&amp;quot;02C93C01&amp;quot;,7
I: LTE cell changed: Cell ID: 46742529, Tracking area: 3135
+CSCON: 1
I: RRC mode: Connected
+CEREG: 1,&amp;quot;0C3F&amp;quot;,&amp;quot;02C93C01&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;00000110&amp;quot;
I: Network registration status: Connected - home network
I: PSM parameter update: TAU: 3600, Active time: -1
%XTIME: &amp;quot;40&amp;quot;,&amp;quot;32116191900540&amp;quot;,&amp;quot;00&amp;quot;
I: Date time obtained
I: Next connection retry in 30 seconds
I: AWS_IOT_EVT_CONNECTING
W: connection_poll_start failed, error: -119
E: aws_iot_connect, error: -119
I: Next connection retry in 30 seconds
W: getaddrinfo, error: -11
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/448296?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 09:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3851fa5c-5d07-4b39-aebd-9f353f88ab5e</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Could you enable debug logging in the aws_iot library to see if that gives us some more information?&lt;/p&gt;
&lt;p&gt;CONFIG_AWS_IOT_LOG_LEVEL_DBG=y&lt;/p&gt;
&lt;p&gt;Also, if you disable minimal logging, it will be easier to see where various log lines come from.&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_MODE_MINIMAL=n&lt;/p&gt;
&lt;p&gt;Also, if you can take a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_cellular_monitor/UG/cellular_monitor/intro.html"&gt;modem trace&lt;/a&gt;, that would be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/448207?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 18:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbc1796e-7c60-49fc-8b5a-95f4dc6582ee</guid><dc:creator>emsys</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Sorry for the delay, other project gets a bigger priority.&lt;/p&gt;
&lt;p&gt;The problem is still exist.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I update my certificate without any success.&lt;/p&gt;
&lt;p&gt;This the output from the debug trace&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connection poll in progress&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;W: connection_poll_start failed, error: -119&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;E: aws_iot_connect, error: -119&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I: Next connection retry in 5 second&lt;/strong&gt;&lt;strong&gt;s&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;E: getaddrinfo, error -11&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;E: client_broker_init, error: -10&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I changed this 3 lines&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_AWS_IOT_CLIENT_ID_STATIC=&amp;quot;AWS_Thing&amp;quot;&lt;/p&gt;
&lt;p&gt;CONFIG_AWS_IOT_BROKER_HOST_NAME=&amp;quot;avbdfegwrkr9hu-ats.iot.eu-west-1.amazonaws.com&amp;quot;&lt;/p&gt;
&lt;p&gt;CONFIG_AWS_IOT_SEC_TAG=16842750&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The tag was changed to this number by uploading the certificates. &lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/432225?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 08:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7c64c92-a156-4644-9428-5d5e981e100a</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="emsys"]I added the lines by myself and got this error: &amp;quot;warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol AWS_IOT_LOG_LEVE_DBG&amp;quot; i added this to prj.conf[/quote]
&lt;p&gt;I&amp;#39;m sorry, that was a typo on my end. It should be CONFIG_AWS_IOT_LOG_LEVE&lt;strong&gt;L&lt;/strong&gt;_DBG=y.&lt;/p&gt;
[quote user="emsys"]Maybe, HOST name is changed the other are stock values.[/quote]
&lt;p&gt;Which sec_tag did you write the credentials to? 201?&lt;/p&gt;
&lt;p&gt;And what did you name the device in AWS and the device certificate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/431849?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 19:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d773cde-bd8a-4e6b-9400-eb002224e5b9</guid><dc:creator>emsys</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I added the lines by myself and got this error: &amp;quot;warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol AWS_IOT_LOG_LEVE_DBG&amp;quot; i added this to prj.conf&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/100846/nrf9160-aws-iot-no-connection-possible/431803"]Which sec_tag did you write the credentials to, and have you changed CONFIG_AWS_IOT_CLIENT_ID_STATIC, CONFIG_AWS_IOT_BROKER_HOST_NAME and CONFIG_AWS_IOT_SEC_TAG to the correct values?[/quote]
&lt;p&gt;Maybe, HOST name is changed the other are stock values.&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_AWS_IOT_CLIENT_ID_STATIC&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;my-thing&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_AWS_IOT_BROKER_HOST_NAME&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;xxxxx.iot.xxxx.amazonaws.com&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_AWS_IOT_SEC_TAG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=201&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/431803?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 13:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c178d3-5edd-4dce-933b-ddab600bbe20</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="emsys"]For some reason i can&amp;#39;t find this lines in my config prj.conf?[/quote]
&lt;p&gt;You need to add them yourself.&lt;/p&gt;
&lt;p&gt;Which sec_tag did you write the credentials to, and have you changed CONFIG_AWS_IOT_CLIENT_ID_STATIC, CONFIG_AWS_IOT_BROKER_HOST_NAME and CONFIG_AWS_IOT_SEC_TAG to the correct values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/431365?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 17:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d80f07f-de67-47ca-a154-1cdcfe0ded09</guid><dc:creator>emsys</dc:creator><description>&lt;p&gt;Yes i added this lines to my code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For some reason i can&amp;#39;t find this lines in my config prj.conf?&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/100846/nrf9160-aws-iot-no-connection-possible/431341"]CONFIG_LOG_MODE_MINIMAL=n[/quote][quote userid="81181" url="~/f/nordic-q-a/100846/nrf9160-aws-iot-no-connection-possible/431341"]CONFIG_AWS_IOT_LOG_LEVE_DBG=y[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tutorial that i used: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/aws_iot.html#setup-aws-and-permissions"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/aws_iot.html#setup-aws-and-permissions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/431341?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 15:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26fcaad4-b773-46d8-b0ee-bb0a2ad73dba</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;E: AWS IoT library could be initialized, error: 0

E: Adding application specific topics succes, error: 0

E: Modem could be configured, error: 0

E: initializing modem info module, error: 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I assume this is logging you have added to the sample?&lt;/p&gt;
&lt;p&gt;Could you enable debug logging in the aws_iot library to see if that gives us some more information?&lt;/p&gt;
&lt;p&gt;CONFIG_AWS_IOT_LOG_LEVE_DBG=y&lt;/p&gt;
&lt;p&gt;Also, if you disable minimal logging, it will be easier to see where various log lines come from.&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_MODE_MINIMAL=n&lt;/p&gt;
&lt;p&gt;Also, if you can take a &lt;a href="https://infocenter.nordicsemi.com/index.jsp"&gt;modem trace&lt;/a&gt;, that would be helpful.&lt;/p&gt;
[quote user=""]described in the tutorial online[/quote]
&lt;p&gt;Just to make sure we talk about the same thing, could you share a link to the tutorial?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 AWS IOT no connection possible.</title><link>https://devzone.nordicsemi.com/thread/431168?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 08:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00829000-3049-4fec-a732-c3aa2175e1d7</guid><dc:creator>JyriLehtinen</dc:creator><description>&lt;p&gt;Error -119 is EINPROGRESS, which should mean that the device has an ongoing task to connect to the MQTT broker. You probably have multiple&amp;nbsp;concurrent calls to the aws_iot_connect() (or similar)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>