Setting up mysensor and mysensor gateway
-
Hello,
I have 2 arduino mini pro boards, both are hooked with an nrf24l01 and level shifter in between.
when i startup the gateway board.
i get this output on the serial port.0;0;3;0;9;gateway started, id=0, parent=0, distance=0
0;0;3;0;14;Gateway startup complete.next i powerup the sensor board, a simpel push button sketch is loaded i get the following data on the gateway.
0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=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,sg=0:
255;255;3;0;3;sometimes when i connect digital pin 3 to gnd it send's something and somtimes not.
but there is no differens in the sended data, so it looks to mee that there is somthing wrong, but i don't know what.below are some lines that where sended after connecting and disconecting pin 3 to ground.
0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=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,sg=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,sg=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,sg=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,sg=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,sg=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,sg=0:
255;255;3;0;3;
-
Your node requests an id.. hook gateway to a controller or set static id on the node.
-
extending this question:
I have this setup:
node1 => gateway with mqtt Client => mosquitto as mqtt broker => openhab
The result in the gateway is:
0;0;3;0;9;MQTT connected 0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: 0;0;3;0;9;Sending message on topic: gateway1-out/255/255/3/0/3 0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: 0;0;3;0;9;Sending message on topic: gateway1-out/255/255/3/0/3 0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: 0;0;3;0;9;Sending message on topic: gateway1-out/255/255/3/0/3
does this mean, that autoassigning a node ID fails?
-
Yep,
Either you create a rule in openhab to answer these requests or set a static id in your node.
(someone else have to answer how to create rules in OH)