Node inclusion problem.
-
@pw44 said in Node inclusion problem.:
How to get the gateway's log?
For me, the easiest way is usually to connect the gateway to a computer and use a serial console (the one built into the Arduino IDE or just the
screencommand on Linux), but what is easiest for you depends on your level of experience and what tools you are comfortable using. -
-
@pw44 enter them into the search box at the top right at https://www.mysensors.org/apidocs/index.html to get the documentation. If things still are unclear, ask any wuestions you might have here.
@mfalkvidd ok, i did, and did not understand how it works, that's why i asked.
-
@mfalkvidd ok, i did, and did not understand how it works, that's why i asked.
-
@pw44 the public documentation is the best way we know to describe them. If we knew a better way, we would update the public documentation.
Could you help us by describing what parts you understand and what parts you don't understand?
@mfalkvidd well, neither my build gateway or the two working nodes have MY_NODE_ID and MY_PARENT_NODE_ID.
in one of the posts, one user claimed not being able to include a node, but was able to do it by defining those https://forum.mysensors.org/post/36819.
so, the question is if those are necessary by having the gateway and nodes, and how to use it?
shall i define MY_NODE_ID 0 to the gateway and AUTO do the nodes, by MY_PARENT_NODE_ID, or MY_PARENT_NODE_ID 0 to the nodes?
yes, maybe stupid questions, but i didn't realize, as i have one gateway and two nodes working and a third one not being registered, even with some nrf24l01 replaced.
-
@mfalkvidd well, neither my build gateway or the two working nodes have MY_NODE_ID and MY_PARENT_NODE_ID.
in one of the posts, one user claimed not being able to include a node, but was able to do it by defining those https://forum.mysensors.org/post/36819.
so, the question is if those are necessary by having the gateway and nodes, and how to use it?
shall i define MY_NODE_ID 0 to the gateway and AUTO do the nodes, by MY_PARENT_NODE_ID, or MY_PARENT_NODE_ID 0 to the nodes?
yes, maybe stupid questions, but i didn't realize, as i have one gateway and two nodes working and a third one not being registered, even with some nrf24l01 replaced.
-
@pw44 as described in the documentation, Node id defaults to AUTO (tries to fetch id from controller).
So if you don’t specify MY_NODE_ID, the node will try to fetch an id from the controller.
@mfalkvidd ok, but does it have any influence by node being recognized by gateway?
-
@mfalkvidd ok, but does it have any influence by node being recognized by gateway?
-
@mfalkvidd ok, but does it have any influence by node being recognized by gateway?
-
This is what i have from GW:
⸮⸮⸮⸮⸮hlD⸮x⸮hT⸮76 MCO:BGN:INIT GW,CP=RNNGE---,FQ=80,REL=255,VER=2.3.2 134 TSF:LRT:OK 149 TSM:INIT 163 TSF:WUR:MS=0 186 TSM:INIT:TSP OK 207 TSM:INIT:GW MODE 229 TSM:READY:ID=0,PAR=0,DIS=0 262 MCO:REG:NOT NEEDED scandone 1367 GWT:TIN:CONNECTING... 2396 GWT:TIN:CONNECTING... scandone state: 0 -> 2 (b0) 4175 GWT:TIN:CONNECTING... state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 5 cnt connected with Hirschberg, channel 1 dhcp client start... ip:192.168.80.9,mask:255.255.255.0,gw:192.168.80.1 4393 GWT:TIN:IP: 192.168.80.9 4424 MCO:BGN:STP 4442 MCO:BGN:INIT OK,TSP=1 4471 TSM:READY:NWD REQ 4498 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 12252 GWT:TSA:C=0,CONNECTED pm open,type:2 0 22390 GWT:RFC:C=0,MSG=0;255;3;0;2; 32460 GWT:RFC:C=0,MSG=0;255;3;0;2; 42660 GWT:RFC:C=0,MSG=0;255;3;0;2; 52698 GWT:RFC:C=0,MSG=0;255;3;0;2; 62829 GWT:RFC:C=0,MSG=0;255;3;0;2; 72967 GWT:RFC:C=0,MSG=0;255;3;0;2; 83002 GWT:RFC:C=0,MSG=0;255;3;0;2; 93141 GWT:RFC:C=0,MSG=0;255;3;0;2; 103175 GWT:RFC:C=0,MSG=0;255;3;0;2;no node being recognized
and these are the arduino mini pro gpios being used
#define BUTTON_PIN1 3 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN2 4 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN3 5 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN4 6 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN5 7 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN6 8 // Arduino Digital I/O pin for button/reed switch -
This is what i have from GW:
⸮⸮⸮⸮⸮hlD⸮x⸮hT⸮76 MCO:BGN:INIT GW,CP=RNNGE---,FQ=80,REL=255,VER=2.3.2 134 TSF:LRT:OK 149 TSM:INIT 163 TSF:WUR:MS=0 186 TSM:INIT:TSP OK 207 TSM:INIT:GW MODE 229 TSM:READY:ID=0,PAR=0,DIS=0 262 MCO:REG:NOT NEEDED scandone 1367 GWT:TIN:CONNECTING... 2396 GWT:TIN:CONNECTING... scandone state: 0 -> 2 (b0) 4175 GWT:TIN:CONNECTING... state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 5 cnt connected with Hirschberg, channel 1 dhcp client start... ip:192.168.80.9,mask:255.255.255.0,gw:192.168.80.1 4393 GWT:TIN:IP: 192.168.80.9 4424 MCO:BGN:STP 4442 MCO:BGN:INIT OK,TSP=1 4471 TSM:READY:NWD REQ 4498 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 12252 GWT:TSA:C=0,CONNECTED pm open,type:2 0 22390 GWT:RFC:C=0,MSG=0;255;3;0;2; 32460 GWT:RFC:C=0,MSG=0;255;3;0;2; 42660 GWT:RFC:C=0,MSG=0;255;3;0;2; 52698 GWT:RFC:C=0,MSG=0;255;3;0;2; 62829 GWT:RFC:C=0,MSG=0;255;3;0;2; 72967 GWT:RFC:C=0,MSG=0;255;3;0;2; 83002 GWT:RFC:C=0,MSG=0;255;3;0;2; 93141 GWT:RFC:C=0,MSG=0;255;3;0;2; 103175 GWT:RFC:C=0,MSG=0;255;3;0;2;no node being recognized
and these are the arduino mini pro gpios being used
#define BUTTON_PIN1 3 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN2 4 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN3 5 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN4 6 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN5 7 // Arduino Digital I/O pin for button/reed switch #define BUTTON_PIN6 8 // Arduino Digital I/O pin for button/reed switch@mfalkvidd may this problem be related with eeprom stored vars?
i will clear the eeproms and flash gatewayand nodes again.