<?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>Several issues encountered with nrf9160 to AWS IOT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52157/several-issues-encountered-with-nrf9160-to-aws-iot</link><description>Hi, 
 We modified the lte_ble_gateway example and connected to our aws iot server. And have faced few issues so far and would like to get some hint from you. 
 We are using mfwnrf9160100 firmware and NCS V1.0.0. 
 1. MQTT: Seems the mqtt link becomes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Oct 2019 15:00:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52157/several-issues-encountered-with-nrf9160-to-aws-iot" /><item><title>RE: Several issues encountered with nrf9160 to AWS IOT</title><link>https://devzone.nordicsemi.com/thread/214210?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 15:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9138f348-0dba-468e-9c01-8681d2f6c1c4</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and again, sorry for the late reply. There has been a lot to do lately, but it looks like things have calmed down a bit.&lt;/p&gt;
&lt;p&gt;First, you should avoid writing certificates on every reboot. They get stored in non-volatile memory in the modem, so there is no reason to write them every single time. If you write them on every reboot, you wear out the flash, and if you take a modem trace, the certificates would be present in the trace.&lt;/p&gt;
&lt;p&gt;Second, if you disable PSM, do you still get the same connection stability issues?&lt;/p&gt;
&lt;p&gt;What are the PSM values the network grants you? They may not be what you requested. You can check the PSM values with the %XMONITOR AT command.&lt;/p&gt;
&lt;p&gt;Do you get any warnings when running CMake? If you are using SEGGER Embedded Studio, CMake warnings should pop up when loading the project in a window called &amp;quot;JavaScript Alert&amp;quot;.&lt;/p&gt;
&lt;p&gt;Are you still using NCS v1.0.0?&lt;/p&gt;
&lt;p&gt;A modem trace might be helpful to see if there is anything wrong happening on the modem side. If you do not know how to capture a modem trace, you can follow this guide: &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect&lt;/a&gt;&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: Several issues encountered with nrf9160 to AWS IOT</title><link>https://devzone.nordicsemi.com/thread/212865?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 16:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89138369-bed3-483d-9cb3-e4f73fb384e5</guid><dc:creator>Panda H</dc:creator><description>&lt;p&gt;As you can see from the log,&amp;nbsp; after mqtt link is established, there is no more debugging information send out from nrf_cloud_transport and net_mqtt. I have set &amp;quot;NRF_CLOUD_LOG_LEVEL 4&amp;quot; and &amp;quot;MQTT_SOCKET_LOG_LEVEL 4&amp;quot;. it seems like the main thread printk overrides the debug level log&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/debug-logging-issue.bmp" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several issues encountered with nrf9160 to AWS IOT</title><link>https://devzone.nordicsemi.com/thread/210849?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 08:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8fdedb-651a-4c8d-8b57-10856a616443</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi. Sorry for the long delay&lt;/p&gt;
&lt;p&gt;Regarding my earlier comments, when using the newest modem firmware, a reset after setting the modem in &amp;quot;power off&amp;quot; should not be necessary, as it no longer powers off the AT command interface.&lt;/p&gt;
&lt;p&gt;Regarding your point number 5, can you send me your log-related configurations, along with the log, and tell me what you were expecting to see?&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: Several issues encountered with nrf9160 to AWS IOT</title><link>https://devzone.nordicsemi.com/thread/210185?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 15:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c38d5174-075e-4ccf-b600-b95ed49ba58c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;The new modem firmware works with both NCS v1.0.0 and master.&lt;/p&gt;
&lt;p&gt;If the modem is set to power off, the only way to restart it is to do a reboot. Depending on your error handling, you might want to do that regardless of what error you receive, as they do in lte_ble_gateway.&lt;/p&gt;
&lt;p&gt;If you do not want to reboot, just disconnect from the network/disable LTE-M/NB-IoT/GPS functionality what you want is to set the modem in offline-mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several issues encountered with nrf9160 to AWS IOT</title><link>https://devzone.nordicsemi.com/thread/210178?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 14:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1a4dace-a6c6-4f45-a58a-36a47c22a55e</guid><dc:creator>Panda H</dc:creator><description>&lt;p&gt;Shall I use modem firmware V1.0.1 with NCS master branch, or with NCS 1.0.0 tag?&lt;/p&gt;
&lt;p&gt;Regarding to number 4, it is called when there is&amp;nbsp;ERROR_NRF_CLOUD, as shown in lte_ble_gateway sample. But you are right, I shall set it to offline at least before modem is power on again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several issues encountered with nrf9160 to AWS IOT</title><link>https://devzone.nordicsemi.com/thread/210166?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 14:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f2c2a15-7a4f-48ac-96c7-0f20ca072c82</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Can you try to update to the newest modem firmware version (v1.0.1) and see if that helps?&lt;/p&gt;
&lt;p&gt;Regarding your point number 4. Does the modem automatically enter power off when losing connection, or are you setting it in power off?&lt;/p&gt;
&lt;p&gt;When the modem enters power off, you have to reboot for it to turn on again. If you are setting it to power off, you probably want to set it to offline instead.&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></channel></rss>