<?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[Can&#x27;t get nodeID from the controller]]></title><description><![CDATA[<p dir="auto">Howdy folks!<br />
I'm a new user of the MySensors library, however Im not new into AVRs and Arduinos ;) I've been trying to setup 2 UNOs with two radios and MySensors - 1 controller and one sensor ( in my case just for the example purpose - door sensor). Both radios connected as instructed. First UNO (controller) flashed with the SerialGateway example code, second - the sensor with example from the webpage. If i set nodeID manually on the sensor with gw.begin, everything seems to be ok. But when I try to get nodeID from the controller, it seems sensor is trying to send following message over and over again, thus not getting nodeID from the controller.</p>
<p dir="auto">Sensor serial data (DEBUG mode ON):</p>
<pre><code>req node id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
sensor started, id 255
req node id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
req node id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
req node id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
</code></pre>
<p dir="auto">Controller serial data (DEBUG mode ON)</p>
<pre><code>0;0;3;0;9;Inclusion started by button.
0;0;3;0;5;1
0;0;3;0;9;
read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
255;255;3;0;3;
0;0;3;0;9;
read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
255;255;3;0;3;
0;0;3;0;9;
read: 255-255-0 s=255,c=3,t=3,pt=0,l=0:
255;255;3;0;3;
</code></pre>
<p dir="auto">Sensor sketch:</p>
<pre><code>#include &lt;MySensor.h&gt;
#include &lt;SPI.h&gt;
#define ID 1
#define OPEN 1
#define CLOSE 0

MySensor gw;
MyMessage msg(ID, V_TRIPPED);

void setup() 
{ 
  gw.begin();
  gw.present(ID, S_DOOR); 
}

void loop()
{
 gw.send(msg.set(OPEN)); 
 delay(10000); // Wait 10 seconds
}
</code></pre>
]]></description><link>https://forum.mysensors.org/topic/441/can-t-get-nodeid-from-the-controller</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 11:13:45 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/441.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Sep 2014 18:46:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can&#x27;t get nodeID from the controller on Tue, 30 Sep 2014 09:07:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi, and welcome. If it helps you, i did the <a href="http://forum.mysensors.org/topic/350/problems-getting-sensorid" rel="nofollow ugc">same mistake</a>, but in my case the documentation was wrong at the time.</p>
]]></description><link>https://forum.mysensors.org/post/5120</link><guid isPermaLink="true">https://forum.mysensors.org/post/5120</guid><dc:creator><![CDATA[klim]]></dc:creator><pubDate>Tue, 30 Sep 2014 09:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t get nodeID from the controller on Tue, 30 Sep 2014 07:25:26 GMT]]></title><description><![CDATA[<p dir="auto">Damn, I should have read documentation more carefully :) For some reason I assumed Gateway will send out nodeIDs. So now I'm going to start digging into MySensors and OpenHAB documentation.</p>
<p dir="auto">Thanks HEK!</p>
]]></description><link>https://forum.mysensors.org/post/5117</link><guid isPermaLink="true">https://forum.mysensors.org/post/5117</guid><dc:creator><![CDATA[laschlo]]></dc:creator><pubDate>Tue, 30 Sep 2014 07:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t get nodeID from the controller on Mon, 29 Sep 2014 20:00:27 GMT]]></title><description><![CDATA[<p dir="auto">Arduino Uno is not a controller. It's running a Serial<strong>Gateway</strong>. A gateway which normally talks to the controller that hand out id:s.<br />
So without a controller you have to have static id:s.</p>
]]></description><link>https://forum.mysensors.org/post/5103</link><guid isPermaLink="true">https://forum.mysensors.org/post/5103</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Mon, 29 Sep 2014 20:00:27 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t get nodeID from the controller on Mon, 29 Sep 2014 19:07:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a><br />
Controller is an Arduino UNO, flashed with SerialGateway example.</p>
]]></description><link>https://forum.mysensors.org/post/5101</link><guid isPermaLink="true">https://forum.mysensors.org/post/5101</guid><dc:creator><![CDATA[laschlo]]></dc:creator><pubDate>Mon, 29 Sep 2014 19:07:54 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t get nodeID from the controller on Mon, 29 Sep 2014 18:58:54 GMT]]></title><description><![CDATA[<p dir="auto">What controller do you have?</p>
]]></description><link>https://forum.mysensors.org/post/5100</link><guid isPermaLink="true">https://forum.mysensors.org/post/5100</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Mon, 29 Sep 2014 18:58:54 GMT</pubDate></item></channel></rss>