|
1 |
| -Wiring the NRF24 |
| 1 | +#Wiring the NRF 24L01+ radio |
2 | 2 |
|
3 |
| -GND 25 |
4 |
| -VCC 17 |
5 |
| -CE 22 |
6 |
| -CSN 24 |
7 |
| -SCK 23 |
8 |
| -MOSI 19 |
9 |
| -MISO 21 |
10 |
| -IRQ -- |
| 3 | +|NRF24l01+|Rpi Header Pin| |
| 4 | +|---|---| |
| 5 | +|GND|25| |
| 6 | +|VCC|17| |
| 7 | +|CE|22| |
| 8 | +|CSN|24| |
| 9 | +|SCK|23| |
| 10 | +|MOSI|19| |
| 11 | +|MISO|21| |
| 12 | +|IRQ|--| |
11 | 13 |
|
12 |
| -Building Serial Gateway |
| 14 | +#Building & Installing |
| 15 | + |
| 16 | +##RF24 library |
| 17 | +* Download the library from https://github.com/TMRh20/RF24 |
| 18 | + * Either an official release(tested with 1.1.3) or clone the master branch. |
| 19 | +* Decompress(if needed) and change to the library directory |
| 20 | +* Run `make all` followed by `sudo make install` |
| 21 | + |
| 22 | +##Serial Gateway |
13 | 23 |
|
14 | 24 | The standard configuration will build the Serial Gateway with a tty name of
|
15 |
| -'/dev/ttyMySensorsGateway' and PTS group ownership of 'tty' the PTS will be group read |
| 25 | +'/dev/ttyMySensorsGateway' and PTS group ownership of 'tty' the PTS will be group read |
16 | 26 | and write. The default install location will be /usr/local/sbin. If you want to change
|
17 | 27 | that edit the variables in the head of the Makefile.
|
18 | 28 |
|
19 |
| -First build the librf24-bcm library |
20 |
| - |
21 |
| -- Change to librf24-bcm |
22 |
| -- make all |
23 |
| -- sudo make install |
24 |
| - |
25 |
| -Build the Gateway |
26 |
| - |
27 |
| -- change back to Raspberry Dir |
28 |
| -- make all |
29 |
| -- sudo make install |
30 |
| -- (if you want to start daemon at boot) sudo make enable-gwserial |
| 29 | +###Build the Gateway |
| 30 | +* Clone this repository |
| 31 | +* Change to the Raspberry directory |
| 32 | +* Run `make all` followed by `sudo make install` |
| 33 | +* (if you want to start daemon at boot) sudo make enable-gwserial |
31 | 34 |
|
32 | 35 | For some controllers a more recognisable name needs to be used: e.g. /dev/ttyUSB020 (check if this is free).
|
33 | 36 |
|
34 |
| -sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20 |
35 |
| - |
36 |
| -To automatically create the link on startup, add |
37 |
| -ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20 |
38 |
| -just before |
39 |
| -exit0 |
40 |
| -in /etc/rc.local |
| 37 | +`sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20` |
41 | 38 |
|
| 39 | +To automatically create the link on startup, add `ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20` just before `exit0` in `/etc/rc.local` |
42 | 40 |
|
43 |
| -Uninstalling |
| 41 | +#Uninstalling |
44 | 42 |
|
45 |
| -- change to Raspberry Dir |
46 |
| -- sudo make uninstall |
| 43 | +* Change to Raspberry directory |
| 44 | +* Run `sudo make uninstall` |
47 | 45 |
|
48 | 46 | Support: http://forum.mysensors.org
|
0 commit comments