forked from mysensors/Raspberry
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
48 lines (34 loc) · 1.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Wiring the NRF24
GND 25
VCC 17
CE 22
CSN 24
SCK 23
MOSI 19
MISO 21
IRQ --
Building Serial Gateway
The standard configuration will build the Serial Gateway with a tty name of
'/dev/ttyMySensorsGateway' and PTS group ownership of 'tty' the PTS will be group read
and write. The default install location will be /usr/local/sbin. If you want to change
that edit the variables in the head of the Makefile.
First build the librf24-bcm library
- Change to librf24-bcm
- make all
- sudo make install
Build the Gateway
- change back to Raspberry Dir
- make all
- sudo make install
- (if you want to start daemon at boot) sudo make enable-gwserial
For some controllers a more recognisable name needs to be used: e.g. /dev/ttyUSB020 (check if this is free).
sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20
To automatically create the link on startup, add
ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20
just before
exit0
in /etc/rc.local
Uninstalling
- change to Raspberry Dir
- sudo make uninstall
Support: http://forum.mysensors.org