Raspberry Pi with openHAB and nRF24L01
I am using the latest openHAB ( 2.2.0-1) and Arduino IDE 1.8.5!
I installed the openHABian on the RPi and attached the NRF24 (with this description: https://www.mysensors.org/build/raspberry). I also installed the MySensors ans described in the link.
I also installed a programm to the arduino (https://www.mysensors.org/build/binary). The Arduino has also a NRF24 attached.
I have started the serial monitor in the Arduino IDE to see, what's happening in the Arduino:
| / |_ / | ___ _ __ ___ ___ _ __ ___
| |/| | | | _ \ / _ \
_ \/ __|/ _ \|/ |
| | | | || || | / | | _ \ _ | | _
|| ||_, |/ _|| ||/_/|| |/
16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0
34 TSM:INIT:TSP OK
256 TSF:MSG:FPAR OK,ID=0,D=1
This looks for me OK, but I am not pretty sure.
Now I would like to anyhow see on the RPi, that there is a connection. But since I am total newbie, I would like to ask the forum for help.
How can I see on th RPi, that there is a connection between the Arduino node and the RPi?
How can I bring this into openHAB?
I would love to read meaningful answers.
you forgot to add node id to the node
Thank you for the fast reply.
I thought, I gave an ID:
#define CHILD_ID 3
BY the way, Do the Gateway also needs an ID?
And where to Define?
Kind regs from germany
You have to use MY_NODE_ID, child ID is for the sensors. Gateway is always 0, no need to specify it.
#define MY_NODE_ID 1
it works now!!!
Thank you so much gohan.
Which FAQ or HowTo I have missed to know this?