<?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>Long-running connections fail due to low-battery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119808/long-running-connections-fail-due-to-low-battery</link><description>Our application is designed to remain connected to the network - sending data every 10 minutes or so. We&amp;#39;ve customised the asset tracker v2 application, as this provides the overall architecture we need including LTE and MQTT connection recovery. For</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 16 Mar 2025 21:09:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119808/long-running-connections-fail-due-to-low-battery" /><item><title>RE: Long-running connections fail due to low-battery</title><link>https://devzone.nordicsemi.com/thread/527482?ContentTypeID=1</link><pubDate>Sun, 16 Mar 2025 21:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f55f6623-5ed4-480a-816c-354710daeffd</guid><dc:creator>dan_opito</dc:creator><description>&lt;p&gt;Yes, I should be clear - I am using `lte_lc_normal()` to run `AT+CFUN=1` to re-enable the modem. If that call fails for some reason, my firmware will reboot. I have watched this code run, in the logs, and seen that the connection comes back and my application continues running.&lt;/p&gt;
&lt;p&gt;I wouldn&amp;#39;t say it&amp;#39;s a fix as much as a work-around!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long-running connections fail due to low-battery</title><link>https://devzone.nordicsemi.com/thread/527459?ContentTypeID=1</link><pubDate>Sat, 15 Mar 2025 07:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c03bd9-36d9-49b8-b81e-aff2d50a18e0</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; I catch the low battery event, read the battery voltage with `AT%VBAT` for my logs, and then call `AT+CFUN=1` to reenable the modem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, if you have verified, that it is simply a glitch of the power rail and not the &amp;quot;new zephyr&amp;quot; codebase,&amp;nbsp;`AT+CFUN=1` helps well.&lt;/p&gt;
&lt;p&gt;Just to mention:&lt;/p&gt;
&lt;p&gt;Using `AT+CFUN=1` will require to reenable some events or modem configs. That is usually done with &amp;quot;lte_lc_normal()&amp;quot; and the standard callbacks added by the nrf-library. For some custom stuff, a &amp;quot;LTE_LC_ON_CFUN&amp;quot; handler helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long-running connections fail due to low-battery</title><link>https://devzone.nordicsemi.com/thread/527455?ContentTypeID=1</link><pubDate>Sat, 15 Mar 2025 01:49:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7adad73b-8b65-45ba-b815-51e35b2ae59f</guid><dc:creator>dan_opito</dc:creator><description>&lt;p&gt;Hi Achim. Thanks for your insights. I have been working with a Nordic engineer on this issue - and he, like yourself, suspected power supply issues. Our design, unfortunately, has a flaw that means the VDD rail of the modem can drop - and this is due to a ferrite bead we have in series. I haven&amp;#39;t been able to capture it on an oscilloscope, but by raising the `AT%XPOFWARN` to a higher voltage, I can more readily produce the same fault.&lt;/p&gt;
&lt;p&gt;My fix is necessarily in software. The asset tracker is designed to catch the PDN context going down (I&amp;#39;ll be honest, I&amp;#39;m not familiar with what a PDN context is) - however in this fault the modem doesn&amp;#39;t include any further notifications. I catch the low battery event, read the battery voltage with `AT%VBAT` for my logs, and then call `AT+CFUN=1` to reenable the modem. The specific low-voltage event is only caused by large current draw (such as low signal strength like you said) - so we can be confident that event has passed.&lt;/p&gt;
&lt;p&gt;The correct fix is updating our circuit by adding a capacitor on the VDD pin (instead of through a ferrite bead) - but we also need to make what we have work and I think this fix will do so.&lt;/p&gt;
&lt;p&gt;One other change I made was the reconnection logic. Rather than using exponential back off, I just try every minute for an hour before deciding it&amp;#39;s never going to work and reboot the device. For our application - where devices are supposed to be online all the time - this logic will work fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long-running connections fail due to low-battery</title><link>https://devzone.nordicsemi.com/thread/527303?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 06:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:addf6b85-d9f2-495b-a444-4cde837f0915</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;I&amp;#39;m not that sure, that the &amp;quot;battery low&amp;quot; event should be ignored.&lt;/p&gt;
&lt;p&gt;Even if your 7.4V battery will hardly go down to the 3V, I guess, that 7.4V are not connected directly to the nRF9151 VDD, or? So there is a component in the power rail, which may cause that drop. You may check the voltage at VDD using an AT cmd &amp;quot;AT%XVBAT&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;gt; However, we notice all our devices running our &amp;quot;new zephyr&amp;quot; codebase are less stable&lt;/p&gt;
&lt;p&gt;There are many factors that pays in to this topic, e.g. varying radio signal strength, other MNO and so on. So I would not expect, that the &amp;quot;zephyr codebase&amp;quot; (running on the app mcu) has a that large effect on the power consumption of the modem on the SoC. What may have changed is the handling of the &amp;quot;battery low&amp;quot; events and how the &amp;quot;battery OK&amp;quot; is detected afterwards. But I&amp;#39;m not common to the asset tracker, so that&amp;#39;s out of my knowledge.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>