Raspbery PI + nrf24 (gpio) not work Domoticz Temp+humanidy PLS HELP
-
Probably your nodes which were compiled with version 1.5 of the library, and the fact that the version of the library upon which the PiGatewaySerial is compiled is still version 1.4
On your Raspberry, in the Raspberry directory you should find a "Version.h" file.
Try changing the content to this:
/***- This file defines the Sensor library version number
- Normally, contributors should not modify this directly
- as it is manaaged by the MySensors Bot.
*/
#ifndef Version_h
#define Version_h
#define LIBRARY_VERSION "1.5"
#endif
The do another sudo make etc...
I hope this helps you.
-
GertSanders,
All of my nodes are using 1.4 library. Oddly at around 2:30 am my one sensor I moved to same channel as my domoticz gateway got picked up. Pretty interesting! I had changed it to the domiticz channel at 11pm. Progress is good. Now going to see about why the temp is being reported as ~140 F when that sensor reported ~70 F (correct) when attached to my other controller. -
Install the gateway:
git clone https://github.com/mysensors/Raspberry.git cd Raspberry/librf24-bcm make all && sudo make install cd .. make all && sudo make install sudo make enable-gwserial sudo /etc/init.d/PiGatewaySerial startVerify that the gateway started properly:
cat /dev/ttyMySensorsGateway 0;0;3;0;14;Gateway startup complete.Domoticz is unable to read from /dev/ttyMySensorsGateway so create a link to a name that Domoticz understands:
sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20To automatically create the link on startup, add
ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20just before
exit0in /etc/rc.local
I then added the gateway as per the image in my last post.
EDIT: Changed instructions to use librf24-bcm instead of tmrh20. tmrh20 tricked my Gateway into forwarding everything to a strange (non-existing) parent node.
@mfalkvidd said:
Install the gateway:
git clone https://github.com/mysensors/Raspberry.git cd Raspberry/librf24-bcm make all && sudo make install cd .. make all && sudo make install sudo make enable-gwserial sudo /etc/init.d/PiGatewaySerial startVerify that the gateway started properly:
cat /dev/ttyMySensorsGateway 0;0;3;0;14;Gateway startup complete.Domoticz is unable to read from /dev/ttyMySensorsGateway so create a link to a name that Domoticz understands:
sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20To automatically create the link on startup, add
ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20just before
exit0in /etc/rc.local
I then added the gateway as per the image in my last post.
EDIT: Changed instructions to use librf24-bcm instead of tmrh20. tmrh20 tricked my Gateway into forwarding everything to a strange (non-existing) parent node.
I tried this for SPI through raspberry
Can someone provide me the correct way to install those ?
First attempt was like mentioned above. But i don't have the folder librf24-bcm
then i placed nrf2401 zip file into the folder from http://tmrh20.github.io/
Now i got this error
pi@testdom ~/Raspberry $ make all
g++ -c -o MyGateway.o MyGateway.cpp -Wall -Ofast -mfpu=vfp -lpthread -g -D__Raspberry_Pi -mfloat-abi=hard -mtune=arm1176jzf-s -D_TTY_NAME="/dev/ttyMySensorsGateway" -D_TTY_GROUPNAME="tty" -march=armv6zk -D__PI_BPLUS -I. -I/usr/local/include/RF24
In file included from RF24.h:18:0,
from MySensor.h:37,
from MyGateway.h:16,
from MyGateway.cpp:13:
RF24_config.h:38:32: fatal error: utility/includes.h: No such file or directory
#include "utility/includes.h"
^
compilation terminated.
Makefile:57: recipe for target 'MyGateway.o' failed
make: *** [MyGateway.o] Error 1I have lateste update and upgrade and i'm using Jessie. Hopely can someone help me.
Thanks in advance.
-
@mfalkvidd said:
Install the gateway:
git clone https://github.com/mysensors/Raspberry.git cd Raspberry/librf24-bcm make all && sudo make install cd .. make all && sudo make install sudo make enable-gwserial sudo /etc/init.d/PiGatewaySerial startVerify that the gateway started properly:
cat /dev/ttyMySensorsGateway 0;0;3;0;14;Gateway startup complete.Domoticz is unable to read from /dev/ttyMySensorsGateway so create a link to a name that Domoticz understands:
sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20To automatically create the link on startup, add
ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20just before
exit0in /etc/rc.local
I then added the gateway as per the image in my last post.
EDIT: Changed instructions to use librf24-bcm instead of tmrh20. tmrh20 tricked my Gateway into forwarding everything to a strange (non-existing) parent node.
I tried this for SPI through raspberry
Can someone provide me the correct way to install those ?
First attempt was like mentioned above. But i don't have the folder librf24-bcm
then i placed nrf2401 zip file into the folder from http://tmrh20.github.io/
Now i got this error
pi@testdom ~/Raspberry $ make all
g++ -c -o MyGateway.o MyGateway.cpp -Wall -Ofast -mfpu=vfp -lpthread -g -D__Raspberry_Pi -mfloat-abi=hard -mtune=arm1176jzf-s -D_TTY_NAME="/dev/ttyMySensorsGateway" -D_TTY_GROUPNAME="tty" -march=armv6zk -D__PI_BPLUS -I. -I/usr/local/include/RF24
In file included from RF24.h:18:0,
from MySensor.h:37,
from MyGateway.h:16,
from MyGateway.cpp:13:
RF24_config.h:38:32: fatal error: utility/includes.h: No such file or directory
#include "utility/includes.h"
^
compilation terminated.
Makefile:57: recipe for target 'MyGateway.o' failed
make: *** [MyGateway.o] Error 1I have lateste update and upgrade and i'm using Jessie. Hopely can someone help me.
Thanks in advance.