<?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 - what am I doing wrong</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94240/nrf9160-aws-iot---what-am-i-doing-wrong</link><description>Hi 
 
 I am going through the AWS IoT example using an nRF9160 DK, but having some problems with it. 
 
 My setup 
 nRF9160 DK + LTE-M SIM card 
 I used this same board and SIM card yesterday with the Asset Tracker applciatin, and successfully connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Nov 2022 08:36:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94240/nrf9160-aws-iot---what-am-i-doing-wrong" /><item><title>RE: nRF9160: AWS IoT - what am I doing wrong</title><link>https://devzone.nordicsemi.com/thread/397557?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 08:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9276ca8-4581-43ec-899b-beff73d78891</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]Shouldn’t I be getting some kind of feedback from the LEDs? Even if I run the app with the SIM card removed?[/quote]
&lt;p&gt;This sample does not use any LEDs. All communication is visbile in e.g. LTE Link Monitor. Here is my output when running the AWS_IOT sample following the AWS IOT documentation&lt;br /&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;2022-11-25T08:31:07.621Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v3.1.99-ncs1-1  ***
2022-11-25T08:31:07.638Z DEBUG modem &amp;lt;&amp;lt; I: Starting bootloader
2022-11-25T08:31:07.640Z DEBUG modem &amp;lt;&amp;lt; I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
2022-11-25T08:31:07.641Z DEBUG modem &amp;lt;&amp;lt; I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
2022-11-25T08:31:07.643Z DEBUG modem &amp;lt;&amp;lt; I: Boot source: none
2022-11-25T08:31:07.644Z DEBUG modem &amp;lt;&amp;lt; I: Swap type: none
2022-11-25T08:31:07.705Z DEBUG modem &amp;lt;&amp;lt; I: Bootloader chainload address offset: 0x10000
2022-11-25T08:31:07.708Z DEBUG modem &amp;lt;&amp;lt; I: Jumping to the first image slot
2022-11-25T08:31:08.426Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v3.1.99-ncs1-1  ***
2022-11-25T08:31:08.443Z DEBUG modem &amp;lt;&amp;lt; The AWS IoT sample started, version: v1.0.0
2022-11-25T08:31:09.521Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 2,&amp;quot;7AA9&amp;quot;,&amp;quot;01172803&amp;quot;,7
2022-11-25T08:31:09.551Z DEBUG modem &amp;lt;&amp;lt; LTE cell changed: Cell ID: 18294787, Tracking area: 31401
2022-11-25T08:31:09.569Z DEBUG modem &amp;lt;&amp;lt; +CSCON: 1
2022-11-25T08:31:09.571Z DEBUG modem &amp;lt;&amp;lt; RRC mode: Connected
2022-11-25T08:31:10.413Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 1,&amp;quot;7AA9&amp;quot;,&amp;quot;01172803&amp;quot;,7,,,&amp;quot;00001010&amp;quot;,&amp;quot;11000001&amp;quot;
2022-11-25T08:31:10.433Z DEBUG modem &amp;gt;&amp;gt; AT+COPS=3,2
2022-11-25T08:31:10.449Z DEBUG modem &amp;lt;&amp;lt; Network registration status: Connected - home network
2022-11-25T08:31:10.467Z DEBUG modem &amp;lt;&amp;lt; PSM parameter update: TAU: 1152000, Active time: 20
2022-11-25T08:31:10.470Z DEBUG modem &amp;lt;&amp;lt; %XTIME: &amp;quot;40&amp;quot;,&amp;quot;22115280130140&amp;quot;,&amp;quot;00&amp;quot;
2022-11-25T08:31:10.472Z DEBUG modem &amp;lt;&amp;lt; Date time obtained
2022-11-25T08:31:10.473Z DEBUG modem &amp;lt;&amp;lt; Next connection retry in 30 seconds
2022-11-25T08:31:10.474Z DEBUG modem &amp;lt;&amp;lt; AWS_IOT_EVT_CONNECTING
2022-11-25T08:31:10.475Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:10.478Z DEBUG modem &amp;gt;&amp;gt; AT+COPS?
2022-11-25T08:31:10.496Z DEBUG modem &amp;lt;&amp;lt; +COPS: 0,2,&amp;quot;24201&amp;quot;,7
2022-11-25T08:31:10.499Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:10.519Z DEBUG modem &amp;gt;&amp;gt; AT%XCBAND
2022-11-25T08:31:10.536Z DEBUG modem &amp;lt;&amp;lt; %XCBAND: 20
2022-11-25T08:31:10.538Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:10.544Z DEBUG modem &amp;gt;&amp;gt; AT+CGDCONT?
2022-11-25T08:31:10.563Z DEBUG modem &amp;lt;&amp;lt; +CGDCONT: 0,&amp;quot;IPV4V6&amp;quot;,&amp;quot;telenor.iot&amp;quot;,&amp;quot;10.112.143.189 2A02:2121:0080:3660:0000:006B:1DCE:4201&amp;quot;,0,0
2022-11-25T08:31:10.565Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:10.584Z DEBUG modem &amp;gt;&amp;gt; AT+CGACT?
2022-11-25T08:31:10.683Z DEBUG modem &amp;lt;&amp;lt; +CGACT: 0,1
2022-11-25T08:31:10.728Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:13.318Z DEBUG modem &amp;lt;&amp;lt; AWS_IOT_EVT_CONNECTED
2022-11-25T08:31:13.335Z DEBUG modem &amp;lt;&amp;lt; Publishing: {
2022-11-25T08:31:13.337Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;state&amp;quot;:{
2022-11-25T08:31:13.338Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;reported&amp;quot;:{
2022-11-25T08:31:13.339Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;app_version&amp;quot;:&amp;quot;v1.0.0&amp;quot;,
2022-11-25T08:31:13.341Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;batv&amp;quot;:5074,
2022-11-25T08:31:13.342Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;ts&amp;quot;:1669365072799
2022-11-25T08:31:13.343Z DEBUG modem &amp;lt;&amp;lt; }
2022-11-25T08:31:13.344Z DEBUG modem &amp;lt;&amp;lt; }
2022-11-25T08:31:13.345Z DEBUG modem &amp;lt;&amp;lt; } to AWS IoT broker
2022-11-25T08:31:13.456Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 1,&amp;quot;7AA9&amp;quot;,&amp;quot;01172803&amp;quot;,7,,,&amp;quot;00100001&amp;quot;,&amp;quot;00000011&amp;quot;
2022-11-25T08:31:13.475Z DEBUG modem &amp;gt;&amp;gt; AT+COPS=3,2
2022-11-25T08:31:13.492Z DEBUG modem &amp;lt;&amp;lt; PSM parameter update: TAU: 1800, Active time: 60
2022-11-25T08:31:13.509Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:13.512Z DEBUG modem &amp;lt;&amp;lt; AWS_IOT_EVT_READY
2022-11-25T08:31:13.513Z DEBUG modem &amp;gt;&amp;gt; AT+COPS?
2022-11-25T08:31:13.532Z DEBUG modem &amp;lt;&amp;lt; +COPS: 0,2,&amp;quot;24201&amp;quot;,7
2022-11-25T08:31:13.534Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:13.554Z DEBUG modem &amp;gt;&amp;gt; AT%XCBAND
2022-11-25T08:31:13.570Z DEBUG modem &amp;lt;&amp;lt; AWS_IOT_EVT_PUBACK, message ID: 48867
2022-11-25T08:31:13.587Z DEBUG modem &amp;lt;&amp;lt; %XCBAND: 20
2022-11-25T08:31:13.589Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:13.593Z DEBUG modem &amp;gt;&amp;gt; AT+CGDCONT?
2022-11-25T08:31:13.616Z DEBUG modem &amp;lt;&amp;lt; +CGDCONT: 0,&amp;quot;IPV4V6&amp;quot;,&amp;quot;telenor.iot&amp;quot;,&amp;quot;10.112.143.189 2A02:2121:0080:3660:0000:006B:1DCE:4201&amp;quot;,0,0
2022-11-25T08:31:13.618Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:13.635Z DEBUG modem &amp;gt;&amp;gt; AT+CGACT?
2022-11-25T08:31:13.653Z DEBUG modem &amp;lt;&amp;lt; +CGACT: 0,1
2022-11-25T08:31:13.655Z DEBUG modem &amp;lt;&amp;lt; OK
2022-11-25T08:31:13.737Z DEBUG modem &amp;lt;&amp;lt; AWS_IOT_EVT_DATA_RECEIVED
2022-11-25T08:31:13.787Z DEBUG modem &amp;lt;&amp;lt; Data received from AWS IoT console:
2022-11-25T08:31:13.790Z DEBUG modem &amp;lt;&amp;lt; Topic: $aws/things/thing_299079/shadow/get/accepted
2022-11-25T08:31:13.792Z DEBUG modem &amp;lt;&amp;lt; Message: {
2022-11-25T08:31:13.793Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;state&amp;quot;:{
2022-11-25T08:31:13.794Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;reported&amp;quot;:{
2022-11-25T08:31:13.796Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;app_version&amp;quot;:&amp;quot;v1.0.0&amp;quot;,
2022-11-25T08:31:13.796Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;batv&amp;quot;:5074,
2022-11-25T08:31:13.797Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;ts&amp;quot;:1669365072799
2022-11-25T08:31:13.798Z DEBUG modem &amp;lt;&amp;lt; }
2022-11-25T08:31:13.798Z DEBUG modem &amp;lt;&amp;lt; },
2022-11-25T08:31:13.799Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;metadata&amp;quot;:{
2022-11-25T08:31:13.802Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;reported&amp;quot;:{
2022-11-25T08:31:13.803Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;app_version&amp;quot;:{
2022-11-25T08:31:13.805Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;timestamp&amp;quot;:1669365073
2022-11-25T08:31:13.806Z DEBUG modem &amp;lt;&amp;lt; },
2022-11-25T08:31:13.807Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;batv&amp;quot;:{
2022-11-25T08:31:13.808Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;timestamp&amp;quot;:1669365073
2022-11-25T08:31:13.809Z DEBUG modem &amp;lt;&amp;lt; },
2022-11-25T08:31:13.810Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;ts&amp;quot;:{
2022-11-25T08:31:13.811Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;timestamp&amp;quot;:1669365073
2022-11-25T08:31:13.811Z DEBUG modem &amp;lt;&amp;lt; }
2022-11-25T08:31:13.812Z DEBUG modem &amp;lt;&amp;lt; }
2022-11-25T08:31:13.813Z DEBUG modem &amp;lt;&amp;lt; },
2022-11-25T08:31:13.813Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;version&amp;quot;:1,
2022-11-25T08:31:13.814Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;timestamp&amp;quot;:1669365073
2022-11-25T08:31:13.815Z DEBUG modem &amp;lt;&amp;lt; }
2022-11-25T08:31:23.920Z DEBUG modem &amp;lt;&amp;lt; +CSCON: 0
2022-11-25T08:31:23.938Z DEBUG modem &amp;lt;&amp;lt; RRC mode: Idle&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What IDE are you using? Have you ensured that the sample built correctly?&lt;/p&gt;
[quote user=""]When flashing the modem firmware, I have tried with and without MCU Enabled[/quote]
&lt;p&gt;What do you mean with this?&lt;/p&gt;
[quote user=""]Shouldn’t I be getting some kind of feedback from the LEDs? Even if I run the app with the SIM card removed?[/quote]
&lt;p&gt;If you remove the SIM card and restart the device you should get the following output:&lt;br /&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;2022-11-25T08:36:39.187Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v3.1.99-ncs1-1  ***
2022-11-25T08:36:39.189Z DEBUG modem &amp;lt;&amp;lt; I: Starting bootloader
2022-11-25T08:36:39.209Z DEBUG modem &amp;lt;&amp;lt; I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
2022-11-25T08:36:39.211Z DEBUG modem &amp;lt;&amp;lt; I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
2022-11-25T08:36:39.212Z DEBUG modem &amp;lt;&amp;lt; I: Boot source: none
2022-11-25T08:36:39.213Z DEBUG modem &amp;lt;&amp;lt; I: Swap type: none
2022-11-25T08:36:39.271Z DEBUG modem &amp;lt;&amp;lt; I: Bootloader chainload address offset: 0x10000
2022-11-25T08:36:39.274Z DEBUG modem &amp;lt;&amp;lt; I: Jumping to the first image slot
2022-11-25T08:36:39.992Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v3.1.99-ncs1-1  ***
2022-11-25T08:36:40.009Z DEBUG modem &amp;lt;&amp;lt; The AWS IoT sample started, version: v1.0.0
2022-11-25T08:36:40.290Z DEBUG modem &amp;lt;&amp;lt; +CEREG: 90
2022-11-25T08:36:40.317Z DEBUG modem &amp;lt;&amp;lt; LTE cell changed: Cell ID: -1, Tracking area: -1&lt;/pre&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: nRF9160: AWS IoT - what am I doing wrong</title><link>https://devzone.nordicsemi.com/thread/397516?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 00:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a75803-8a28-4f61-b5e4-95a4c7d04d4e</guid><dc:creator>garrettb</dc:creator><description>&lt;p&gt;OK, I have more info on this &amp;ndash; it llooks like the app just isn&amp;rsquo;t running:&lt;/p&gt;
&lt;p&gt;The start of the code in main() is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void main(void)
{
int err;
printk(&amp;quot;The AWS IoT sample started, version: %s\n&amp;quot;, CONFIG_APP_VERSION);
cJSON_Init();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I look at the COM port output, I do NOT get this printk()) message &amp;ndash; I just get this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.1.99-ncs1 ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0x10000
I: Jumping to the first image slot&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>