Raspberry Pi with openHAB and nRF24L01
-
Hello Forum,
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:
| / |_ / | ___ _ __ ___ ___ _ __ ___
| |/| | | | _ \ / _ \_ \/ __|/ _ \|
_/ __|
| | | | || || | / | | _ \ _ | | _
|| ||_, |/ ___|| ||/_/|| |/
|__/ 2.2.016 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0
26 TSM:INIT
28 TSF:WUR:MS=0
34 TSM:INIT:TSP OK
36 TSM:FPAR
40 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
249 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
256 TSF:MSG:FPAR OK,ID=0,D=1
2048 TSM:FPAR:OK
2048 TSM:ID
2050 TSM:ID:REQ
2054 TSF:MSG:SEND,255-255-0-0,s=2,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
4061 TSM:ID
4061 TSM:ID:REQ
4065 TSF:MSG:SEND,255-255-0-0,s=221,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
6072 TSM:ID
6072 TSM:ID:REQ
6076 TSF:MSG:SEND,255-255-0-0,s=184,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
8083 TSM:ID
8083 TSM:ID:REQ
8087 TSF:MSG:SEND,255-255-0-0,s=147,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
10094 !TSM:ID:FAIL
10096 TSM:FAIL:CNT=1
10098 TSM:FAIL:DIS
10100 TSF:TDI:TSLThis 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.First question:
How can I see on th RPi, that there is a connection between the Arduino node and the RPi?Second question:
How can I bring this into openHAB?I would love to read meaningful answers.
Thank you
z
-
you forgot to add node id to the node
-
Hi Gohan,
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
Z
-
You have to use MY_NODE_ID, child ID is for the sensors. Gateway is always 0, no need to specify it.
-
@gohan said in Raspberry Pi with openHAB and nRF24L01:
MY_NODE_ID
with
#define MY_NODE_ID 1
it works now!!!
Thank you so much gohan.
Which FAQ or HowTo I have missed to know this?
-
-
@gohan THANX!!!