<?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[Infinite loop]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I implemented a node with Arduino pro mini 3.3v with a RFM95w module. I used Mysensors PASSIVE node exemple.</p>
<p dir="auto">My problem is i have an infinite loop/reboot in my serial log. Do you have an idea why i'm having this issue ?</p>
<pre><code>__  __       ____
|  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
| |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
| |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
|_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
        |___/                      2.3.2

16 MCO:BGN:INIT NODE,CP=RLNPA---,FQ=8,REL=255,VER=2.3.2
28 TSM:INIT
28 TSF:WUR:MS=0
30 RFM95:INIT
32 RFM95:INIT:PIN,CS=10,IQP=2,IQN=0
47 RFM95:PTX:LEVEL=13
49 TSM:INIT:TSP OK
51 TSM:INIT:TSP PSM
53 TSM:INIT:STATID=100
55 TSF:SID:OK,ID=100
57 TSM:FPAR
59 TSM:FPAR:STATP=255
61 TSM:ID
61 TSM:ID:OK
63 TSM:UPL:DISABLED
65 TSM:READY:ID=100,PAR=255,DIS=1
69 RFM95:SWR:SEND,TO=255,SEQ=0,RETRY=0

__  __       ____
|  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
| |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
| |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
|_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
        |___/                      2.3.2

16 MCO:BGN:INIT NODE,CP=RLNPA---,FQ=8,REL=255,VER=2.3.2
28 TSM:INIT
28 TSF:WUR:MS=0
30 RFM95:INIT
32 RFM95:INIT:PIN,CS=10,IQP=2,IQN=0
47 RFM95:PTX:LEVEL=13
49 TSM:INIT:TSP OK
51 TSM:INIT:TSP PSM
53 TSM:INIT:STATID=100
55 TSF:SID:OK,ID=100
57 TSM:FPAR
59 TSM:FPAR:STATP=255
61 TSM:ID
61 TSM:ID:OK
63 TSM:UPL:DISABLED
65 TSM:READY:ID=100,PAR=255,DIS=1
69 RFM95:SWR:SEND,TO=255,SEQ=0,RETRY=0

__  __       ____
|  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
| |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
| |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
|_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
        |___/                      2.3.2

16 MCO:BGN:INIT NODE,CP=RLNPA---,FQ=8,REL=255,VER=2.3.2
28 TSM:INIT
28 TSF:WUR:MS=0
30 RFM95:INIT
32 RFM95:INIT:PIN,CS=10,IQP=2,IQN=0
47 RFM95:PTX:LEVEL=13
49 TSM:INIT:TSP OK
51 TSM:INIT:TSP PSM
53 TSM:INIT:STATID=100
55 TSF:SID:OK,ID=100
57 TSM:FPAR
59 TSM:FPAR:STATP=255
61 TSM:ID
61 TSM:ID:OK
63 TSM:UPL:DISABLED
65 TSM:READY:ID=100,PAR=255,DIS=1
69 RFM95:SWR:SEND,TO=255,SEQ=0,RETRY=0
</code></pre>
<pre><code>/*
 * The MySensors Arduino library handles the wireless radio link and protocol
 * between your home built sensors/actuators and HA controller of choice.
 * The sensors forms a self healing radio network with optional repeaters. Each
 * repeater and gateway builds a routing tables in EEPROM which keeps track of the
 * network topology allowing messages to be routed to nodes.
 *
 * Created by Henrik Ekblad &lt;henrik.ekblad@mysensors.org&gt;
 * Copyright (C) 2013-2019 Sensnology AB
 * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
 *
 * Documentation: http://www.mysensors.org
 * Support Forum: http://forum.mysensors.org
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 *******************************
 *
 * REVISION HISTORY
 * Version 1.0 - tekka
 *
 * DESCRIPTION
 * Passive node example: This is a passive &amp; independent reporting node
 *
 */

// Enable debug prints
#define MY_DEBUG

// Enable passive mode
#define MY_PASSIVE_NODE

// Passive mode requires static node ID
#define MY_NODE_ID 100

// Enable and select radio type attached
//#define MY_RADIO_RF24
//#define MY_RADIO_NRF5_ESB
//#define MY_RADIO_RFM69
#define MY_RADIO_RFM95

#define   MY_DEBUG_VERBOSE_RFM95
#define MY_RFM95_FREQUENCY  (RFM95_868MHZ)

#include &lt;MySensors.h&gt;

#define CHILD_ID 0   // Id of the sensor child

// Initialize general message
MyMessage msg(CHILD_ID, V_TEMP);

void setup()
{
}

void presentation()
{
	// Send the sketch version information to the gateway and controller
	sendSketchInfo("Passive node", "1.0");

	// Register all sensors to gw (they will be created as child devices)
	present(CHILD_ID, S_TEMP);
}

void loop()
{
	// generate some random data
	send(msg.set(25.0+random(0,30)/10.0,2));
	sleep(2000);
}
</code></pre>
]]></description><link>https://forum.mysensors.org/topic/11449/infinite-loop</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 17:39:47 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/11449.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 Nov 2020 13:27:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Infinite loop on Mon, 30 Nov 2020 15:15:22 GMT]]></title><description><![CDATA[<p dir="auto">thank you for this additional information.</p>
<p dir="auto">Tristan</p>
]]></description><link>https://forum.mysensors.org/post/108250</link><guid isPermaLink="true">https://forum.mysensors.org/post/108250</guid><dc:creator><![CDATA[Fumée Bleue]]></dc:creator><pubDate>Mon, 30 Nov 2020 15:15:22 GMT</pubDate></item><item><title><![CDATA[Reply to Infinite loop on Sun, 29 Nov 2020 16:14:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fum%C3%A9e-bleue" aria-label="Profile: Fumée-Bleue">@<bdi>Fumée-Bleue</bdi></a> likely the brown-out detector from the atmega detects a low voltage. This mechanism protects the atmega from undefined behavior by resetting it.</p>
]]></description><link>https://forum.mysensors.org/post/108239</link><guid isPermaLink="true">https://forum.mysensors.org/post/108239</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Sun, 29 Nov 2020 16:14:27 GMT</pubDate></item><item><title><![CDATA[Reply to Infinite loop on Sun, 29 Nov 2020 15:08:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fum%C3%A9e-bleue" aria-label="Profile: Fumée-Bleue">@<bdi>Fumée-Bleue</bdi></a> there is no watchdag. Giving the components power outside the specifications will result in undefined behavior for that component. Underined can in some cases mean restart. In some cases we've seen continuous radio brodcast (blocking all other nodes). Undefined means anything can happen.</p>
]]></description><link>https://forum.mysensors.org/post/108237</link><guid isPermaLink="true">https://forum.mysensors.org/post/108237</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Sun, 29 Nov 2020 15:08:29 GMT</pubDate></item><item><title><![CDATA[Reply to Infinite loop on Sun, 29 Nov 2020 14:05:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: Yveaux">@<bdi>Yveaux</bdi></a>, I tried with an laboratoy power supply with the RMF95w and NRF24L01, and the same code.</p>
<p dir="auto">Test with RMF95w :</p>
<ul>
<li>laboratery power supply : OK</li>
<li>130mW power supply : KO</li>
</ul>
<p dir="auto">Test with NRF24L01+ :</p>
<ul>
<li>laboratery power supply : OK</li>
<li>130mW power supply : OK</li>
</ul>
<p dir="auto">The consumption is the same in the two tests : 38mA max, 10mA mean, 4mA min.<br />
In fact I would like to understand why the arduino restarts, is there a watchdog in the Mysensors library to monitor the supply voltage?</p>
<p dir="auto">PS : I also tried with a larger capacitor without success.</p>
]]></description><link>https://forum.mysensors.org/post/108236</link><guid isPermaLink="true">https://forum.mysensors.org/post/108236</guid><dc:creator><![CDATA[Fumée Bleue]]></dc:creator><pubDate>Sun, 29 Nov 2020 14:05:46 GMT</pubDate></item><item><title><![CDATA[Reply to Infinite loop on Sun, 15 Nov 2020 11:02:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fum%C3%A9e-bleue" aria-label="Profile: Fumée-Bleue">@<bdi>Fumée-Bleue</bdi></a> I would start by running your exact same software powered by a different power supply, preferably a lab supply supplying suffient current (look up the power requirements of RFM95 in Tx mode). That way you can rule out software.<br />
Next, just adding a large capacitor to your current supply might suffice, when you only incidentally send using the RFM95. A super cap can also work, but requires more components/is more expensive. Either do the calculation (always better), or experiment with some caps.</p>
]]></description><link>https://forum.mysensors.org/post/108147</link><guid isPermaLink="true">https://forum.mysensors.org/post/108147</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Sun, 15 Nov 2020 11:02:29 GMT</pubDate></item><item><title><![CDATA[Reply to Infinite loop on Sun, 15 Nov 2020 08:50:06 GMT]]></title><description><![CDATA[<p dir="auto">@Yveaux. good idea, yes the power supply is a bit special. It's une AC power 6v limited at 130mW. I used a Graetz rectifier and LDO 3,3v regulator. In fact, i have a similar project with NRF24L01 without issue. I think rfm95w consumes more energy than nrf241L01.<br />
<img src="/assets/uploads/files/1605429657681-2.png" alt="2.png" class=" img-fluid img-markdown" /><br />
For you,  what is the best way to solve my problem ? Perhaps a super capacitor ?</p>
]]></description><link>https://forum.mysensors.org/post/108144</link><guid isPermaLink="true">https://forum.mysensors.org/post/108144</guid><dc:creator><![CDATA[Fumée Bleue]]></dc:creator><pubDate>Sun, 15 Nov 2020 08:50:06 GMT</pubDate></item><item><title><![CDATA[Reply to Infinite loop on Sat, 14 Nov 2020 17:53:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fum%C3%A9e-bleue" aria-label="Profile: Fumée-Bleue">@<bdi>Fumée-Bleue</bdi></a> could very well be a power issue, because as soon as you try to send the node seems to restart. How do you power everything?</p>
]]></description><link>https://forum.mysensors.org/post/108139</link><guid isPermaLink="true">https://forum.mysensors.org/post/108139</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Sat, 14 Nov 2020 17:53:39 GMT</pubDate></item></channel></rss>