<?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[No ID assigned by gateway.]]></title><description><![CDATA[<p dir="auto">Hi Folks,</p>
<p dir="auto">I am building a dimmer, I am unable to understand some of the abbreviations used in the 2.0Lib. The serial output is as below.</p>
<pre><code>TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
Starting sensor (RNNNA-, 2.0.0)
TSM:INIT
TSM:RADIO:OK
TSP:ASSIGNID:OK (ID=2)
TSM:FPAR
TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:FAIL
!TSM:FAILURE
</code></pre>
<p dir="auto">Could somebody please help me understand the terms used like TSP, TSM, FPAR.</p>
<p dir="auto">My code is as below, I am unable to register the node in Domoticz. Could somebody be kind enough to help me and point out if anything is wrong here.</p>
<pre><code>// Enable debug prints
#define MY_DEBUG

// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69

#include &lt;SPI.h&gt;
#include &lt;MySensors.h&gt;  
#include &lt;Dimmer.h&gt;

#define CHILD_ID_FAN 1
#define FAN_CONTROL_PIN 7 //pin to control the fan/light
#define EPROM_LIGHT_STATE 1
#define EPROM_DIMMER_LEVEL 2

#define LIGHT_OFF 0
#define LIGHT_ON 1

Dimmer dimmer(FAN_CONTROL_PIN, DIMMER_RAMP,2,50);

#define SN "Fan Speed Controller"
#define SV "1.0"

int LastLightState=LIGHT_OFF;
int LastDimValue=100;

MyMessage lightMsg(CHILD_ID_FAN, V_STATUS);
MyMessage dimmerMsg(CHILD_ID_FAN, V_PERCENTAGE);

void setup()  
{ 
  //Retreive our last light state from the eprom
  int LightState=loadState(EPROM_LIGHT_STATE); 
  if (LightState&lt;=1) {
    LastLightState=LightState;
    int DimValue=loadState(EPROM_DIMMER_LEVEL); 
    if ((DimValue&gt;0)&amp;&amp;(DimValue&lt;=100)) {
      //There should be no Dim value of 0, this would mean LIGHT_OFF
      LastDimValue=DimValue;
    }
  }

  dimmer.begin();
  
  //Here you actualy switch on/off the light with the last known dim level
  SetCurrentState2Hardware();
  
  Serial.println( "Node ready to receive messages..." );  
}

void presentation() {
  // Send the Sketch Version Information to the Gateway
  sendSketchInfo(SN, SV);

  present(CHILD_ID_FAN, S_DIMMER );
}

void loop()      
{
}

void receive(const MyMessage &amp;message)
{
  if (message.type == V_STATUS) {
    Serial.println( "V_LIGHT command received..." );
    
    int lstate= atoi( message.data );
    if ((lstate&lt;0)||(lstate&gt;1)) {
      Serial.println( "V_LIGHT data invalid (should be 0/1)" );
      return;
    }
    LastLightState=lstate;
    saveState(EPROM_LIGHT_STATE, LastLightState);
    
    if ((LastLightState==LIGHT_ON)&amp;&amp;(LastDimValue==0)) {
       //In the case that the Light State = On, but the dimmer value is zero,
       //then something (probably the controller) did something wrong,
       //for the Dim value to 100%
      LastDimValue=100;
      saveState(EPROM_DIMMER_LEVEL, LastDimValue);
    }
    
    //When receiving a V_LIGHT command we switch the light between OFF and the last received dimmer value
    //This means if you previously set the lights dimmer value to 50%, and turn the light ON
    //it will do so at 50%
  }
  else if (message.type == V_PERCENTAGE) {
    Serial.println( "V_DIMMER command received..." );  
    int dimvalue= atoi( message.data );
    if ((dimvalue&lt;0)||(dimvalue&gt;100)) {
      Serial.println( "V_DIMMER data invalid (should be 0..100)" );
      return;
    }
    if (dimvalue==0) {
      LastLightState=LIGHT_OFF;
    }
    else {
      LastLightState=LIGHT_ON;
      LastDimValue=dimvalue;
      saveState(EPROM_DIMMER_LEVEL, LastDimValue);
    }
  }
  else {
    Serial.println( "Invalid command received..." );  
    return;
  }

  //Here you set the actual light state/level
  SetCurrentState2Hardware();
}

void SetCurrentState2Hardware()
{
  if (LastLightState==LIGHT_OFF) {
     Serial.println( "Light state: OFF" );
     dimmer.off();
  }
  else {
     Serial.print( "Light state: ON, Level: " );
     Serial.println( LastDimValue );
     dimmer.set(LastDimValue);
  }

  //Send current state to the controller
  SendCurrentState2Controller();
}

void SendCurrentState2Controller()
{
  if ((LastLightState==LIGHT_OFF)||(LastDimValue==0)) {
    send(dimmerMsg.set(0));
  }
  else {
    send(dimmerMsg.set(LastDimValue));
  }
}
</code></pre>
]]></description><link>https://forum.mysensors.org/topic/5319/no-id-assigned-by-gateway</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 16:44:07 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/5319.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Nov 2016 11:02:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to No ID assigned by gateway. on Mon, 21 Nov 2016 04:27:03 GMT]]></title><description><![CDATA[<p dir="auto">After filding around a lot with the MySensor2.0 lib and spending my whole weekend, when I could not get things going I finally switched back to MySensors1.5.4. After that I made quick progress and my node was on network. Here is the link below of a working Dimmer node.</p>
<p dir="auto"><a href="https://www.youtube.com/embed/N_Zx1xARwtM" rel="nofollow ugc">https://www.youtube.com/embed/N_Zx1xARwtM</a></p>
]]></description><link>https://forum.mysensors.org/post/52976</link><guid isPermaLink="true">https://forum.mysensors.org/post/52976</guid><dc:creator><![CDATA[Suresh Mali]]></dc:creator><pubDate>Mon, 21 Nov 2016 04:27:03 GMT</pubDate></item><item><title><![CDATA[Reply to No ID assigned by gateway. on Mon, 21 Nov 2016 02:59:31 GMT]]></title><description><![CDATA[<p dir="auto">I tried debugging with MYSController. It seems the node and gateway are not communicating. The Gateway receives the messages but does not assigns ID to node. I tried assigning static ID to both Node and Gateway, but its fails.<br />
What started as Dimmer module not working has turned to no communication between nodes on 2.0lib.<br />
I'll probably wait until the MySensors 2.0 lib is stable and there is proper documentation. For now rolling back to 1.5lib seems the best choice I have got.</p>
<p dir="auto">The forum is there to help but it has mix of 1.5 and 2.0 lib its like hunting in a haystack for documentation and support. Please find a way to separate the 2.0 and below 2.0 lib. Thanks</p>
]]></description><link>https://forum.mysensors.org/post/52974</link><guid isPermaLink="true">https://forum.mysensors.org/post/52974</guid><dc:creator><![CDATA[Suresh Mali]]></dc:creator><pubDate>Mon, 21 Nov 2016 02:59:31 GMT</pubDate></item><item><title><![CDATA[Reply to No ID assigned by gateway. on Wed, 16 Nov 2016 09:54:46 GMT]]></title><description><![CDATA[<p dir="auto">I am still unable to figure out why the node is not getting registered on gateway.<br />
The Serial output of Gateway</p>
<pre><code>0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
0;255;3;0;9;TSM:INIT
0;255;3;0;9;TSM:RADIO:OK
0;255;3;0;9;TSM:GW MODE
0;255;3;0;9;TSM:READY
0;255;3;0;14;Gateway startup complete.
0;255;0;0;18;2.0.0
0;255;3;0;9;No registration required
0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
0;255;3;0;9;TSP:MSG:READ 0-0-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
0;255;3;0;9;TSP:MSG:BC
0;255;3;0;9;TSP:MSG:READ 0-0-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
0;255;3;0;9;TSP:MSG:BC
0;255;3;0;9;TSP:MSG:READ 0-0-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
0;255;3;0;9;TSP:MSG:BC
</code></pre>
<p dir="auto">The serial Output of Node:</p>
<pre><code>Starting sensor (RNNNA-, 2.0.0)
TSM:INIT
TSM:RADIO:OK
!TSP:ASSIGNID:FAIL (ID=0)
!TSM:FAILURE
TSM:PDT
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:FAIL
!TSM:FAILURE
TSM:PDT
</code></pre>
<p dir="auto">What could be the failure here. Itried clearing the EEPROM on both Gateway and Node, changed power supply on Node, but nothing is working.<br />
I know Gateway is fine because I had another node and it sends data and it shows up on Gateway.<br />
Somebody please help. Thanks</p>
]]></description><link>https://forum.mysensors.org/post/52581</link><guid isPermaLink="true">https://forum.mysensors.org/post/52581</guid><dc:creator><![CDATA[Suresh Mali]]></dc:creator><pubDate>Wed, 16 Nov 2016 09:54:46 GMT</pubDate></item><item><title><![CDATA[Reply to No ID assigned by gateway. on Tue, 15 Nov 2016 13:50:09 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> said:</p>
<blockquote>
<p dir="auto">No, I haven't found a good way of integrating it into the main site yet (with the same look and feel). There is a few links to the doc on the main site though.</p>
</blockquote>
<p dir="auto">Looks like we have <a href="https://www.stack.nl/~dimitri/doxygen/manual/customize.html" rel="nofollow ugc">customize option on doxygen</a></p>
]]></description><link>https://forum.mysensors.org/post/52524</link><guid isPermaLink="true">https://forum.mysensors.org/post/52524</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Tue, 15 Nov 2016 13:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to No ID assigned by gateway. on Tue, 15 Nov 2016 13:44:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> said:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> do we host this doc somewhere on <a href="http://mysensors.org" rel="nofollow ugc">mysensors.org</a> website?</p>
</blockquote>
<p dir="auto">No,  I haven't found a good way of integrating it into the main site yet (with the same look and feel). There is a few links to the doc on the main site though.</p>
]]></description><link>https://forum.mysensors.org/post/52523</link><guid isPermaLink="true">https://forum.mysensors.org/post/52523</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Tue, 15 Nov 2016 13:44:45 GMT</pubDate></item><item><title><![CDATA[Reply to No ID assigned by gateway. on Tue, 15 Nov 2016 13:12:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/suresh-mali" aria-label="Profile: Suresh-Mali">@<bdi>Suresh-Mali</bdi></a> said:</p>
<blockquote>
<p dir="auto">I am building a dimmer, I am unable to understand some of the abbreviations used in the 2.0Lib. The serial output is as below.<br />
Could somebody please help me understand the terms used like TSP, TSM, FPAR.</p>
</blockquote>
<p dir="auto">For this you can refer, on <a href="https://github.com/mysensors/MySensors/blob/development/core/MyTransport.h" rel="nofollow ugc">source code</a> or <a href="https://ci.mysensors.org/job/Verifiers/job/MySensorsArduinoLibPR/Doxygen_HTML/group__MyTransportgrp.html" rel="nofollow ugc">on doc page on jenkins</a></p>
<p dir="auto">I do not know about Domoticz. I never worked on this controller.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> do we host <a href="https://ci.mysensors.org/job/Verifiers/job/MySensorsArduinoLibPR/Doxygen_HTML/group__MyTransportgrp.html" rel="nofollow ugc">this doc</a> somewhere on <a href="http://mysensors.org" rel="nofollow ugc">mysensors.org</a> website?</p>
]]></description><link>https://forum.mysensors.org/post/52519</link><guid isPermaLink="true">https://forum.mysensors.org/post/52519</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Tue, 15 Nov 2016 13:12:07 GMT</pubDate></item></channel></rss>