<?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>can&amp;#39;t get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110109/can-t-get-modem-trace-in-cellular-monitor-for-aws-sample-code</link><description>Hi, 
 I&amp;#39;m facing connectivity issues with my nRF9160DK board,SDK Version: 2.6.0,Modem Firmware Version: 1.3.6.while trying to connect to AWS IoT using the sample code provided. Despite following the instructions, I couldn&amp;#39;t establish network connectivity</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Apr 2024 09:17:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110109/can-t-get-modem-trace-in-cellular-monitor-for-aws-sample-code" /><item><title>RE: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/479374?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 09:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85aa4f01-e713-433e-a698-3eb0651ba4ba</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It could be useful to see which result you get using snippets. Please try to use snippets when building you application with west to check if you get the same result. Are you able to get modem trace this way or still seeing the same error?&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: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/479285?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 15:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a2b3f46-7d28-4998-848d-323290f2c01e</guid><dc:creator>purushothaman</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;span&gt;Regarding the modem trace configuration options, I followed the steps outlined in the blog post you provided and ensured that the two config options are added to my project configuration. However, upon flashing the code, I encountered the following error:&lt;/span&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;07:21:02.703	Error when creating trace: unable to locate db directory plugin path: C:\Users\pmariyappan\.nrfconnect-apps\node_modules\pc-nrfconnect-cellularmonitor\node_modules\@nordicsemiconductor\nrf-monitor-lib-js\Release\win32-x64\nrfml-insight-source.nrfml.
&lt;/pre&gt;&lt;span&gt;Could you please provide guidance on how to resolve this error and successfully create the modem trace?&lt;/span&gt;&lt;span&gt;. Any insights or suggestions you can offer would be greatly appreciated.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Additionally, in second ticket response, you mentioned providing additional input about modem trace with snippets using the west build. I will also give this approach a try concurrently to see if it resolves the issue.&lt;/p&gt;
&lt;p&gt;Furthermore, regarding the issue with AWS IoT connectivity, I understand that modem trace may provide valuable insights. Once the modem trace is successfully configured, I would appreciate any guidance or suggestions on why AWS IoT is not connecting.&lt;/p&gt;
&lt;p&gt;If there are any alternative or simpler code examples or way available for connecting to AWS IoT, I would find it immensely helpful if you could share them.&lt;/p&gt;
&lt;p&gt;Thank you once again for your assistance and support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/479190?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 11:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d1390e-56a0-481e-bda5-359dcfc6bd83</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for providing the output of mentioned AT commands (in your second ticket). We will look into it.&lt;br /&gt;&lt;br /&gt;Regarding modem trace, could you verify that 2 config options shown below are added to your project configuration?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_MODEM_LIB_TRACE=y
CONFIG_AT_HOST_LIBRARY=y
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;You can read through this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/introducing-the-cellular-monitor"&gt;blog post&lt;/a&gt;&amp;nbsp;and check that you have not skipped some steps.&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: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/478970?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 11:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef5c065d-88d9-49ba-9393-e43ef0c4a18b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try at_client sample and run some AT commands to check if your SIM card is working properly. AT commands are&amp;nbsp;&lt;span&gt;%XSYSTEMMODE, +CFUN, %XSIM, +CEREG, %MDMEV, +CIMI, %XICCID and +CNUM.&lt;/span&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: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/478747?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 11:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f232488-938b-46f8-bb69-056a6892b445</guid><dc:creator>purushothaman</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&amp;nbsp; &amp;nbsp;now if i try to use cellular modem trace now im getting error&amp;nbsp;&lt;/p&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell"&gt;AT command AT+CPINR=&amp;quot;SIM PIN&amp;quot; failed: +CME ERROR: 0&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;AT command AT+CPINR=&amp;quot;SIM PIN2&amp;quot; failed: +CME ERROR: 0&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;AT command AT+CPINR=&amp;quot;SIM PUK&amp;quot; failed: +CME ERROR: 0&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;AT command AT+CPINR=&amp;quot;SIM PUK2&amp;quot; failed: +CME ERROR:&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713180524407v1.png" alt=" " /&gt;&lt;br /&gt;&amp;nbsp;how to resolve this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/478477?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 08:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d93b2a8-d1b2-407d-9d7c-36888179a615</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for additional information and clarification.&lt;/p&gt;
[quote user="dejans"]Have you checked that you built the sample for _ns target as specified in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/net/aws_iot/README.html#requirements"&gt;AWS IoT sample requirements&lt;/a&gt;?[/quote]
&lt;p&gt;To have the ability to access the modem, the sample must be built for non-secure (_ns) build target. Can you check if you have done so?&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: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/478355?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 13:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3f00048-9091-46e6-b47a-fdf1eb712f5d</guid><dc:creator>purushothaman</dc:creator><description>&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;Hi dejans,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;Thank you for your prompt response. I understand your concern about the multiple tickets regarding similar issues. I apologize for any confusion caused by creating multiple tickets. To clarify, my main concern across these tickets is the inability to connect to AWS IoT despite following the specified steps, particularly in building the sample for _ns target as per the AWS IoT sample requirements.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;Regarding the other tickets, here&amp;#39;s a breakdown of my concerns:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;[Ticket 1]: Difficulty establishing AWS IoT connection. In this ticket, clarification is needed on why I am trying to obtain modem trace. I am unable to get modem trace in the cellular monitor for the AWS sample code. If I add some project configurations mentioned in the documentation, I encounter errors preventing me from obtaining the expected modem trace. I seek assistance in resolving this issue.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;[Ticket 2]: Clarification on error messages encountered during connection attempts. Despite following the AWS documentation, other sample codes like NRF multiservice establish network connections and connect to NRF cloud successfully. However, with the AWS IoT sample, I am unable to establish network connections and only receive two outputs, as shown in the attached screenshot. Insights into this discrepancy and potential solutions would be greatly appreciated.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;[Ticket 3]: Inquiry about potential compatibility issues with the _ns target. Here, I have encountered confusion regarding errors. I removed the if condition &lt;code&gt;(if (IS_ENABLED(CONFIG_BOARD_QEMU_X86) || IS_ENABLED(CONFIG_BOARD_NATIVE_SIM)))&lt;/code&gt; in the main .c file. I am uncertain about the subsequent steps required to avoid this error and successfully connect to AWS.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;I appreciate your efforts to streamline the support process and ensure efficient resolution. Please let me know if you require any additional information or clarification from my end.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't get modem trace in cellular monitor for AWS sample code.</title><link>https://devzone.nordicsemi.com/thread/478315?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e00ef6b2-4d1b-4969-aff5-19af180895ad</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Have you checked that you built the sample for _ns target as specified in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/net/aws_iot/README.html#requirements"&gt;AWS IoT sample requirements&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;It seems that there are 2 more tickets where similar/same issue has been discussed - this one, the &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109470/exploring-connectivity-options-for-aws-iot-do-we-need-iot-sim-cards"&gt;second&lt;/a&gt; and the &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110108/issue-with-aws-connection-on-nrf9160dk-board"&gt;third&lt;/a&gt;. Could you please provide information which problem you hope to get resolved in each of these tickets and what are the differences between them?&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>