<?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_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116789/aws_iot-sample-app-for-nrf9161-is-not-working</link><description>After more than a week of trying different options, settings and changes my AWS_IoT app for nRF9161 is not working. All I get on Serial monitor is this: 
 *** Booting My Application v2.1.0-dev-4594a8693738 *** *** Using nRF Connect SDK v2.8.0-a2386bfc8401</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2024 13:16:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116789/aws_iot-sample-app-for-nrf9161-is-not-working" /><item><title>RE: AWS_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/thread/513627?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 13:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f318f02e-a711-4b33-a4c0-cac2da206b50</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="DonP"]&amp;quot;4. Select a security tag that is not yet in use.... &amp;quot;&lt;br /&gt;Q: How can I tell whether a tag is in use or not?[/quote]
&lt;p&gt;This might mean that you need to select sec_tag which is not in your current list. You can also use %CMNG command for credentials storage management if you want to write, read, delete and check for existence of keys and certificates. Information about&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_modem/doc/sockets/tls_dtls.html#security_tags"&gt;security tags&lt;/a&gt;&amp;nbsp;can be found on the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_modem/doc/sockets/tls_dtls.html"&gt;TLS/DTLS&lt;/a&gt;&amp;nbsp;webpage.&lt;/p&gt;
[quote user="DonP"]I think the first problem is that it is not connecting to the cellphone network.[/quote]
&lt;p&gt;AT+CEREG command can be useful if you suspect network registration issues. You can find example&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-2-cellular-fundamentals/topic/lesson-2-at-commands/"&gt;here&lt;/a&gt;. You can also use AT+CSCON for signaling connection status notification.&lt;/p&gt;
[quote user="DonP"]Where do I setup my APN. Are there other service provider cridentials I need to confirm?[/quote]
&lt;p&gt;For setting APN manually, you can use&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_PDN_DEFAULT_APN"&gt;CONFIG_PDN_DEFAULT_APN&lt;/a&gt;&amp;nbsp;option. The example is given in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/asset_tracker_v2/doc/asset_tracker_v2_description.html#optional_library_configurations"&gt;optional library configuration&lt;/a&gt;&amp;nbsp;of the asset_tracker_v2 sample. You can set the status and enable/disable APN using AT command&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/packet_domain/xapnstatus_set.html#ariaid-title1"&gt;%XAPNSTATUS&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: AWS_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/thread/513397?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 11:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b7549f-37b9-4f1e-960c-b0a2bb200464</guid><dc:creator>DonP</dc:creator><description>&lt;p&gt;Hi Dejans,&lt;/p&gt;
&lt;p&gt;Thank you for the pointers, I&amp;#39;ve follwed these steps (generated new certificates, created a new thing), but still no aws connection..&lt;/p&gt;
&lt;p&gt;&amp;quot;4. Select a security tag that is not yet in use.... &amp;quot;&lt;br /&gt;Q: How can I tell whether a tag is in use or not?&lt;/p&gt;
&lt;p&gt;PS C:\nordic\myApps\at_client&amp;gt; nrfcredstore COM46 list&lt;br /&gt;Secure tag&amp;nbsp; &amp;nbsp; &amp;nbsp;Key type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SHA&lt;br /&gt;24&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ROOT_CA_CERT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AE106824...........&lt;br /&gt;42&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ROOT_CA_CERT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;960D85D6...........&lt;br /&gt;16842753&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ROOT_CA_CERT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;67AA1646...........&lt;br /&gt;16842753&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CLIENT_CERT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D3EC5AB1...........&lt;br /&gt;16842753&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CLIENT_KEY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EB05280A...........&lt;br /&gt;4294967292&amp;nbsp; &amp;nbsp;NORDIC_PUB_KEY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 672E2F05...........&lt;br /&gt;4294967293&amp;nbsp; &amp;nbsp;NORDIC_ID_ROOT_CA&amp;nbsp; &amp;nbsp; &amp;nbsp; 2C43952E...........&lt;br /&gt;4294967294&amp;nbsp; &amp;nbsp;DEV_ID_PUB_KEY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;908D98D2...........&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Yes, I do have an AWS account and many other projects working with it.&lt;br /&gt;Yes, I&amp;#39;ve added these 4 CONFIG_* lines in proj.conf and it is now compiling.&lt;/p&gt;
&lt;p&gt;I think the first problem is that it is not connecting to the cellphone network.&lt;br /&gt;How can I check this (Cellular monitor is not working, because Trace is not enabled).&lt;br /&gt;Where do I setup my APN. Are there other service provider cridentials I need to confirm?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/thread/513138?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 09:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db0a083-5c35-48d8-a224-8b414df343d9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/aws_iot/README.html#setup"&gt;Setup&lt;/a&gt; section of the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/aws_iot/README.html"&gt;AWS IoT sample&lt;/a&gt; provides information on how to &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_iot.html#aws-setup-and-configuration"&gt;set up AWS and configure permissions&lt;/a&gt;. This is required if you want to use AWS IoT Core. You would also need to &lt;a href="https://docs.aws.amazon.com/iot/latest/developerguide/setting-up.html"&gt;set up AWS account&lt;/a&gt;. Have you performed all mentioned steps?&lt;/p&gt;
[quote user="DonP"]&lt;p&gt;The very first problem is that I can&amp;#39;t even compile aws-iot sample app out the box.&lt;br /&gt;I create a new application - Copy sample - Filter nRF9161 DK Non Secure - AWS IoT Sample -&amp;gt; c:\nordic\myApps\aws_iot&lt;br /&gt;Add Build Configuration - Board Target: nrf9161dk../ns&lt;br /&gt;Add Configuration File - prj.conf&lt;br /&gt;Build Configuration&lt;/p&gt;
&lt;p&gt;It compiles with error: &lt;br /&gt;pp.a(main.c.obj): in function `on_aws_iot_evt_connected&amp;#39;:&lt;br /&gt;C:/nordic/myApps/aws_iot/src/main.c:200: undefined reference to `boot_write_img_confirmed&amp;#39;&lt;/p&gt;
&lt;p&gt;A Solution that helped: &lt;a href="https://community.circuitdojo.com/d/617-trouble-linking-boot-write-img-confirmed/4"&gt;community.circuitdojo.com/.../4&lt;/a&gt;&lt;br /&gt;CONFIG_FLASH=y&lt;br /&gt;CONFIG_FLASH_MAP=y&lt;br /&gt;CONFIG_STREAM_FLASH=y&lt;br /&gt;CONFIG_IMG_MANAGER=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Are you able to successfully build your project by adding 4 mentioned Kconfig options to your project configurataion?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/thread/513059?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 18:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b8527e-65cb-4b0a-ba1d-3189f5de30a5</guid><dc:creator>DonP</dc:creator><description>&lt;p&gt;&lt;br /&gt;I followed the basic examples: I can successfully build and update a Blink app.&lt;br /&gt;Also programmed &amp;quot;Serial LTE Modem&amp;quot; app using Quick Start using nRF Connect for Desktop.&lt;/p&gt;
&lt;p&gt;I looked at some online info on nRF Connect SDK:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/nrf91/index.html"&gt;docs.nordicsemi.com/.../index.html&lt;/a&gt;&lt;br /&gt;Lessons 1 - 5: &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;academy.nordicsemi.com/.../&lt;/a&gt;&lt;br /&gt;&lt;a href="https://www.youtube.com/watch?v=cJOaZ4Z-EFA&amp;amp;list=PLx_tBuQ_KSqHc0SDVlb7yi2-SHCipjPDM&amp;amp;index=11"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The very first problem is that I can&amp;#39;t even compile aws-iot sample app out the box.&lt;br /&gt;I create a new application - Copy sample - Filter nRF9161 DK Non Secure - AWS IoT Sample -&amp;gt; c:\nordic\myApps\aws_iot&lt;br /&gt;Add Build Configuration - Board Target: nrf9161dk../ns&lt;br /&gt;Add Configuration File - prj.conf&lt;br /&gt;Build Configuration&lt;/p&gt;
&lt;p&gt;It compiles with error: &lt;br /&gt;pp.a(main.c.obj): in function `on_aws_iot_evt_connected&amp;#39;:&lt;br /&gt;C:/nordic/myApps/aws_iot/src/main.c:200: undefined reference to `boot_write_img_confirmed&amp;#39;&lt;/p&gt;
&lt;p&gt;A Solution that helped: &lt;a href="https://community.circuitdojo.com/d/617-trouble-linking-boot-write-img-confirmed/4"&gt;community.circuitdojo.com/.../4&lt;/a&gt;&lt;br /&gt;CONFIG_FLASH=y&lt;br /&gt;CONFIG_FLASH_MAP=y&lt;br /&gt;CONFIG_STREAM_FLASH=y&lt;br /&gt;CONFIG_IMG_MANAGER=y&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;ve added certificates to directory: C:\nordic\myApps\aws_iot\certs&lt;br /&gt;and updated prj.conf and main.c as per my previous email.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;ve tried to use Certificate Manager, but I&amp;#39;m not sure if that&amp;#39;s the right route.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also searched and found this info:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46764/connecting-an-nrf9160-to-aws"&gt;devzone.nordicsemi.com/.../connecting-an-nrf9160-to-aws&lt;/a&gt;&lt;br /&gt;&lt;a href="https://jimmywongiot.com/2019/05/09/quick-overview-to-run-sample-example-on-nrf9160-dk-board-with-nrf-cloud/"&gt;jimmywongiot.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/thread/513051?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 17:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45231552-0d01-450b-ade3-0e760bb3ffc9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Don, &lt;br /&gt;&lt;br /&gt;Can you provide information how you added the credential to your nrf9161-dk board? Which guide did you follow?&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: AWS_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/thread/512708?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 10:17:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5e8114e-5821-4ce8-9282-2f84a5d9012a</guid><dc:creator>DonP</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I use nRF9161 DK (PCA10153 1.0.0 - 2024.26)&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Don&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS_IoT sample app for nRF9161 is not working</title><link>https://devzone.nordicsemi.com/thread/512695?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 09:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2902202-b7c5-449f-aeee-ed8335153c02</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which board do you use?&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></channel></rss>