<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[lopy4 deep sleep]]></title><description><![CDATA[<p dir="auto">I want my lopy4 to wake up once a day at a pre-defined time and send the data to my LORAWAN network. the project needs to run on battery. what deep sleep modes can i use ? i want the lopy4 to only connect to LORAWAN over OTAA once and then just keep sending data once a day. Can i maintain the LORAWAN counters and session keys in sleep modes ? how to best achieve this kind of functionality.</p>
]]></description><link>https://forum.pycom.io/topic/4398/lopy4-deep-sleep</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 13:10:59 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/4398.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Feb 2019 19:08:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to lopy4 deep sleep on Sun, 17 Feb 2019 19:08:19 GMT]]></title><description><![CDATA[<p dir="auto">I want my lopy4 to wake up once a day at a pre-defined time and send the data to my LORAWAN network. the project needs to run on battery. what deep sleep modes can i use ? i want the lopy4 to only connect to LORAWAN over OTAA once and then just keep sending data once a day. Can i maintain the LORAWAN counters and session keys in sleep modes ? how to best achieve this kind of functionality.</p>
]]></description><link>https://forum.pycom.io/post/25963</link><guid isPermaLink="true">https://forum.pycom.io/post/25963</guid><dc:creator><![CDATA[abhishek2101]]></dc:creator><pubDate>Sun, 17 Feb 2019 19:08:19 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Mon, 18 Feb 2019 22:20:10 GMT]]></title><description><![CDATA[<p dir="auto">Have you tried <a href="https://docs.pycom.io/firmwareapi/pycom/machine/" target="_blank" rel="noopener noreferrer nofollow">machine.deepsleep([time_ms])</a> ?<br />
Just use 24 x 3600 x 1000 as sleep time. When awaking from deep sleep, is almost the same as rebooting (just &quot;machine.wake_reason()&quot; returns different values).</p>
<p dir="auto">The &quot;lora.join(...)&quot; can be avoided after the first time by using &quot;lora.nvram_restore()&quot; (after creating the &quot;lora&quot; object) and &quot;lora.nvram_save()&quot; after sending the LoRaWan packet.<br />
The LoRaWan counters are preserved.</p>
<p dir="auto">To specify the battery, you need to know how many days battery shoud last, the operation duty cycle (time awake / (time awake + time sleeping), the power consumption in each cycle.</p>
<p dir="auto">Are you going to use LoPy4 alone or with another board like Expansion Board v2/v3.0/v3.1, or PyTrack, or PySense, etc ? LoPy4 current in deep sleep is about 20 uA when alone, hundreds of uA with Expansion Board.</p>
<p dir="auto">If WiFi and Bluetooth are not needed, just disable them :</p>
<ul>
<li><a href="https://docs.pycom.io/firmwareapi/pycom/pycom.html" target="_blank" rel="noopener noreferrer nofollow">pycom.wifi_on_boot()</a>;</li>
<li><a href="https://docs.pycom.io/firmwareapi/pycom/network/bluetooth/" target="_blank" rel="noopener noreferrer nofollow">bluetooth.deinit()</a>.</li>
</ul>
<p dir="auto">Even the presence or not, and type of microSD card in Expansion Board/etc, changes the power consumption :<br />
<a href="https://forum.pycom.io/topic/3136/microsd-power-consumption-on-expansion-board-pytrack-pysense-etc">MicroSD power consumption on Expansion Board, PyTrack, PySense, etc</a>.</p>
<p dir="auto">Search for deep sleep in this forum to have more details.</p>
]]></description><link>https://forum.pycom.io/post/25989</link><guid isPermaLink="true">https://forum.pycom.io/post/25989</guid><dc:creator><![CDATA[rcolistete]]></dc:creator><pubDate>Mon, 18 Feb 2019 22:20:10 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Tue, 19 Feb 2019 15:36:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/234">@rcolistete</a> I am not using wifi, Bluetooth Sd card. Also no expansion boards.</p>
<p dir="auto">Battery should last for at least 2 years.</p>
]]></description><link>https://forum.pycom.io/post/26025</link><guid isPermaLink="true">https://forum.pycom.io/post/26025</guid><dc:creator><![CDATA[abhishek2101]]></dc:creator><pubDate>Tue, 19 Feb 2019 15:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Tue, 19 Feb 2019 16:14:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/579">@abhishek2101</a> Waking up once a day should be not problem to last for 2 years, but a few things can quickly derail your plan.</p>
<p dir="auto">Let's say your LoPy 4 stays awake for 10 seconds (that's a bit long already) and draws 200 mA average (that's quite a lot) during those 10 seconds, and 30 µA the rest of the time.</p>
<p dir="auto">Then you draw an average of <code>(10 * 200 + (86400-10)* 0.03) / 86400</code> = <strong>0.053 mA (53 µA)</strong>.</p>
<p dir="auto">With a 2500 mAh battery, than means over 5 years in ideal conditions.</p>
<p dir="auto">But remember to keep your active time as limited as possible. If you suddenly decide you want to wake up every hour instead of every day for instance, you suddenly jump to 585 µA average, over 10 times more, and your battery life drops to less than 6 months.</p>
<p dir="auto">Don't forget to actually measure how much power your device draws in real conditions (running on battery, with all the sensors, no USB...), how long you stay awake, etc. The difference between theory and reality can cause big surprises!</p>
]]></description><link>https://forum.pycom.io/post/26027</link><guid isPermaLink="true">https://forum.pycom.io/post/26027</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Tue, 19 Feb 2019 16:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Wed, 20 Feb 2019 07:17:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1538">@jcaron</a> thanks for all the info. Is there anyway I can contact you one-on-one for further help ?</p>
]]></description><link>https://forum.pycom.io/post/26043</link><guid isPermaLink="true">https://forum.pycom.io/post/26043</guid><dc:creator><![CDATA[abhishek2101]]></dc:creator><pubDate>Wed, 20 Feb 2019 07:17:51 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Wed, 20 Feb 2019 07:37:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/234">@rcolistete</a> thanks for all the info. Is there anyway I can contact you one-on-one for further help ?</p>
]]></description><link>https://forum.pycom.io/post/26046</link><guid isPermaLink="true">https://forum.pycom.io/post/26046</guid><dc:creator><![CDATA[abhishek2101]]></dc:creator><pubDate>Wed, 20 Feb 2019 07:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Wed, 20 Feb 2019 17:29:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/579">@abhishek2101</a> the whole point of forums such as this one is that any help for you will be available for others having the same questions or issues.</p>
<p dir="auto">If you have other questions, feel free to ask them in the forum. If you need dedicated help, I’m pretty sure there are people available to do that for a fee :-) (not me at this time).</p>
]]></description><link>https://forum.pycom.io/post/26064</link><guid isPermaLink="true">https://forum.pycom.io/post/26064</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Wed, 20 Feb 2019 17:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Wed, 20 Feb 2019 17:40:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/579">@abhishek2101</a> You can always use the chat for direct communication to specific board members for topics, which you do not want to ask in public.</p>
]]></description><link>https://forum.pycom.io/post/26065</link><guid isPermaLink="true">https://forum.pycom.io/post/26065</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Wed, 20 Feb 2019 17:40:19 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Thu, 21 Feb 2019 06:50:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/98">@robert-hh</a> that is what i was looking for, I tried to find how to initiate the chat, but could not see it. can you help ?</p>
]]></description><link>https://forum.pycom.io/post/26081</link><guid isPermaLink="true">https://forum.pycom.io/post/26081</guid><dc:creator><![CDATA[abhishek2101]]></dc:creator><pubDate>Thu, 21 Feb 2019 06:50:07 GMT</pubDate></item><item><title><![CDATA[Reply to lopy4 deep sleep on Thu, 21 Feb 2019 07:53:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/579">@abhishek2101</a> Go to the profile of the person you want to chat with, and in the middel right there is a circle with some dots. If you open that, teh first topic is: start a chat.</p>
]]></description><link>https://forum.pycom.io/post/26088</link><guid isPermaLink="true">https://forum.pycom.io/post/26088</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Thu, 21 Feb 2019 07:53:20 GMT</pubDate></item></channel></rss>