nrf24 raspi gateway & controller
-
Hi everyone,
I can't seem to find a straightforward tutorial or just lack some general knowledge on how to set up a network. There are many topics started and so much information that I'm overwhelmed.
I would like to use my Rasberry Pi 2 as a gateway and a controller with nrf24l01 radio connected on the GPIO. I followed the tutorial (https://www.mysensors.org/build/raspberry) and got no errors during the installation, but I can't seem to figure out how to test if the radio is listening for messages. Also, I'm not sure which gateway type should I choose (i guess serial or virtual serial)? I tested some sensors earlier and they communicated with each other successfully (pro minis with nrf24).
Config at the moment:
sudo ./configure --my-gateway=serial --my-rf24-irq-pin=15 --my-rf24-channel=111 --my-transport=rf24
No errors when starting mysgw:
pi@gw:~/MySensors $ sudo ./bin/mysgw Mar 20 02:30:52 INFO Starting gateway... Mar 20 02:30:52 INFO Protocol version - 2.3.1 Mar 20 02:30:52 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,REL=255,VER=2.3.1 Mar 20 02:30:52 DEBUG TSF:LRT:OK Mar 20 02:30:52 DEBUG TSM:INIT Mar 20 02:30:52 DEBUG TSF:WUR:MS=0 Mar 20 02:30:52 DEBUG TSM:INIT:TSP OK Mar 20 02:30:52 DEBUG TSM:INIT:GW MODE Mar 20 02:30:52 DEBUG TSM:READY:ID=0,PAR=0,DIS=0 Mar 20 02:30:52 DEBUG MCO:REG:NOT NEEDED 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.3.1 Mar 20 02:30:52 DEBUG MCO:BGN:STP Mar 20 02:30:52 DEBUG MCO:BGN:INIT OK,TSP=1
Is this the correct setup the system I'm trying to create? How can I test if the nrf24 is actually working? Probably going to use OpenHAB if that's relevant.
Cheers!
-
@fipster yes the setup looks good.
The easiest way to test is to build a MySensors node, for example https://www.mysensors.org/build/temp
If you don't have temperature sensors you can replace the temperature reading with random, just to get something to send. Remember to set the define for your radio channel in the sketch, before including MySensors.h:#define MY_RF24_CHANNEL (111)
-
Thank you @mfalkvidd!
I have been busy and had many issues to figure out for myself, but I still can't understand how binding with openHAB works.
How does the information from nRF24 get to openHAB? I have MySensors Binding add-on installed in openHAB.
I would be very grateful if someone could help with this last step. After this my first little sensor will be ready to go live.
Suggested Topics
-
💬 Capacitive Soil Moisture Sensor
OpenHardware.io • 14 Mar 2021, 23:14 • openhardware.io 14 Jan 2022, 15:42 -
[SOLVED] No communication between node and gateway - NRF24
Troubleshooting • 15 May 2016, 12:34 • davy39 16 May 2016, 12:07 -
💬 ESP8266 Gateway
OpenHardware.io • 18 Feb 2018, 21:52 • openhardware.io 21 Mar 2018, 06:31 -
Step-by-step procedure to connect the NRF24L01+ to the GPIO pins and use the Raspberry as a Serial Gateway (MySensors 1.x)
Hardware • 22 Nov 2015, 20:40 • mfalkvidd 10 Oct 2017, 19:43 -
💬 MySensors Gateway for Raspberry PI
OpenHardware.io • 30 Aug 2017, 09:38 • openhardware.io 27 Apr 2018, 21:49 -
connecting External Bluetooth Module with Raspberry PI and use mysensor library
General Discussion • 3 Jul 2018, 18:29 • raulp 3 Jul 2018, 18:44 -
Capacitive sensor w/ transceiver
Development • 30 Nov 2014, 17:50 • Conan 30 Nov 2014, 18:22 -
SmartClock
pimatic • 31 Oct 2015, 18:56 • Dheeraj 1 Nov 2015, 04:41