<?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[Node wake up from sleep too early]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm on my 16th node with mysensors (2.2.0) library and first time with this kind of issue. I have a sensor on Arduino Nano and in order to save battery, as usual, I use the sleep function:</p>
<pre><code>sleep(sleep_seconds_between_measures);
</code></pre>
<p dir="auto">the variable value is 900000. The problem is, the node wake ups too early, the debug is:</p>
<pre><code>Sleep for seconds: 900000
1116278 MCO:SLP:MS=900000,SMS=0,I1=255,M1=255,I2=255,M2=255
1116288 TSF:TDI:TSL
1116399 MCO:SLP:WUP=-1
1116401 TSF:TRI:TSB
</code></pre>
<p dir="auto">so according to the log parser, values are correct and the node wakes up by the timer interrupt (1116399 MCO:SLP:WUP=-1), but it happens straight away after the sleep command.</p>
<p dir="auto">Any clue? Can be any flag that should be reset used by the timer?</p>
<p dir="auto">Thank you for your help.</p>
]]></description><link>https://forum.mysensors.org/topic/11095/node-wake-up-from-sleep-too-early</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 16:22:17 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/11095.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Apr 2020 08:44:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Node wake up from sleep too early on Thu, 16 Apr 2020 17:03:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mortommy" aria-label="Profile: mortommy">@<bdi>mortommy</bdi></a></p>
<ol>
<li>What type of unit is "sleep_seconds_between_measures"?</li>
<li>Post the full code!</li>
<li>Did you select the right type and clock speed when flashing the nano?</li>
<li>2.2.0 is an older version, current is 2.3.2, I suggest upgrade of all nodes and gateways to this latest standard.</li>
</ol>
]]></description><link>https://forum.mysensors.org/post/104977</link><guid isPermaLink="true">https://forum.mysensors.org/post/104977</guid><dc:creator><![CDATA[skywatch]]></dc:creator><pubDate>Thu, 16 Apr 2020 17:03:11 GMT</pubDate></item></channel></rss>