<?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 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114083/nrf9160-cellular-modem-connection-issue-fixed-by-power-cycle-but-not-a-reset</link><description>I have a custom nRF9160 design with Zephyr based firmware having sporadic modem connection issues (ie. waiting to connect forever). When the modem hasn&amp;#39;t connected for a while I have a watchdog reset to reset the entire platform. This fixes it most of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Oct 2024 17:15:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114083/nrf9160-cellular-modem-connection-issue-fixed-by-power-cycle-but-not-a-reset" /><item><title>RE: nRF9160 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/thread/508420?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 17:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8329739b-2f65-4731-8f4b-7dbc53792387</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Thank you for the update. Crossing fingers that this is the case&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/thread/508045?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 04:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b32ec5-7614-4cc5-b1f4-2889c67f061a</guid><dc:creator>jstuewe</dc:creator><description>&lt;p&gt;It&amp;#39;s been a while and I haven&amp;#39;t seen this issue since I powered the modem off before rebooting. I think that fixed it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/thread/500443?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 13:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1439ba09-f9dc-470a-b545-e1c938ced81d</guid><dc:creator>jstuewe</dc:creator><description>&lt;p&gt;No. I don&amp;#39;t know how that got checked.&lt;br /&gt;It&amp;#39;s not an error that I see every day or even every week so I won&amp;#39;t know if this fixes it for quite a while.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/thread/500062?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 17:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eeed56d-7cfa-487f-8aeb-df0430044a9d</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Did you mean to mark the answer as suggested?&lt;/p&gt;
&lt;p&gt;Please let me know if you can still reproduce the error then.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/thread/499645?ContentTypeID=1</link><pubDate>Sun, 25 Aug 2024 05:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff1fe73e-5eda-4009-a2f1-e4172e61c96e</guid><dc:creator>jstuewe</dc:creator><description>&lt;p&gt;I think it&amp;#39;s the application core. I&amp;#39;m setting up a 2 minute WDT using Zepher commands:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;wdt_config.flags = WDT_FLAG_RESET_SOC&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;wdt_config.window.max =&amp;nbsp;120000u&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;wdt_install_timeout(wdt_dev, &amp;amp;wdt_config);&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;wdt_setup(wdt_dev, WDT_OPT_PAUSE_HALTED_BY_DBG);&lt;/p&gt;
&lt;p&gt;I&amp;#39;m calling lte_lc_power_off() from&amp;nbsp;deps/nrf/lib/lte_link_control/lte_lc.c which calls:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;lte_lc_func_mode_set(LTE_LC_FUNC_MODE_POWER_OFF) ? -EFAULT : 0;&lt;/p&gt;
&lt;p&gt;I went through my code and there were several places I re-booted without calling this. I added them this and will see if I can still re-produce the error.&lt;/p&gt;
&lt;p&gt;* Golioth SDK: 0.13.1&lt;br /&gt; * nRF Connect SDK: v2.5.2&lt;br /&gt; * Zephyr version: 3.5.1&lt;br /&gt; &lt;span&gt;* Cellular Modem firmware version: mfw_nrf9160_1.3.6&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/thread/499434?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 18:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2decfa12-51ff-41bf-93c6-1fc567b0a4c1</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Is your WDT reset done on the application core?&lt;/p&gt;
&lt;p&gt;You may try to play around with &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/lte_lc.html#c.lte_lc_func_mode"&gt;lte_lc_func_mode()&lt;/a&gt; function and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrfxlib/nrf_modem/doc/api.html#c.nrf_modem_shutdown"&gt;nrf_modem_shutdown()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As for the modem not working after several WDT resets you may want to look into &lt;a href="https://docs.nordicsemi.com/bundle/nwp_042/page/WP/nwp_042/intro.html"&gt;Modem Reset Loop Restriction&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By the way, what is your Modem FW version? What about NCS?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 cellular modem connection issue fixed by power cycle, but not a reset.</title><link>https://devzone.nordicsemi.com/thread/499278?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 21:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3af7f64d-0417-4fd8-bc35-eeb2ad04b2c2</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will look more into it and get back to you before the end of the week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>