Skip to content

Commit 4d0b7dc

Browse files
committed
Merge pull request #24 from andrimarjonsson/master
Removed broken librf24.
2 parents 1775154 + 725a466 commit 4d0b7dc

21 files changed

+47
-6603
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ GATEWAY_DEPS = ${GATEWAY:=.h}
4747
GATEWAY_SERIAL_DEPS = ${GATEWAY_SERIAL:=.h}
4848
DEPS = ${PROGRAMS:=.h}
4949

50-
RF24H = librf24-bcm/
50+
RF24H = /usr/local/include/RF24
5151
CINCLUDE=-I. -I${RF24H}
5252

5353

README

Lines changed: 0 additions & 48 deletions
This file was deleted.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#Wiring the NRF 24L01+ radio
2+
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|--|
13+
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
23+
24+
The standard configuration will build the Serial Gateway with a tty name of
25+
'/dev/ttyMySensorsGateway' and PTS group ownership of 'tty' the PTS will be group read
26+
and write. The default install location will be /usr/local/sbin. If you want to change
27+
that edit the variables in the head of the Makefile.
28+
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
34+
35+
For some controllers a more recognisable name needs to be used: e.g. /dev/ttyUSB020 (check if this is free).
36+
37+
`sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20`
38+
39+
To automatically create the link on startup, add `ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20` just before `exit0` in `/etc/rc.local`
40+
41+
#Uninstalling
42+
43+
* Change to Raspberry directory
44+
* Run `sudo make uninstall`
45+
46+
Support: http://forum.mysensors.org

librf24-bcm/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

librf24-bcm/Makefile

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)