Reference setup for LoRaWAN Gateway based on a Raspberry Pi host and the Link Labs Gateway Board.
Description | RPi pin | BCM GPIO | WiringPi | Mode |
---|---|---|---|---|
SX1301 Reset | 29 | GPIO5 | 21 | output |
GPS Reset | 31 | GPIO6 | 22 | output |
GPS PPS | 7 | GPIO4 | 7 | input |
SPI CLK | 23 | |||
SPI MISO | 21 | |||
SPI MOSI | 19 | |||
SPI NSS | 24 | |||
LED 1 | 13 | GPIO27 | 2 | output |
LED 2 | 22 | GPIO25 | 6 | output |
Now you're ready to start the software setup.
-
Download Raspbian Jessie Lite
-
Follow the installation instruction to create the SD card
-
Connect an Ethernet cable to the RPi
-
Plug the power supply of the RPi which will also power the concentrator board (WARNING: never power up without the antenna!)
-
From a computer in the same LAN,
ssh
into the RPi using the default hostname:$ ssh [email protected]
-
Use
raspi-config
utility to: 1) disable graphical boot mode and 2) to enable SPI (Advanced options -> SPI
):$ sudo raspi-config
-
Reboot
-
Clone the installer and start the installation
$ sudo apt-get install git -y $ git clone https://github.com/mirakonta/Raspberry-PI-Link-Labs-LoRaWAN-Gateway.git ~/linklabs $ cd ~/linklabs $ sudo ./install.sh
These scripts are largely based on the awesome work by Ruud Vlaming on the Lorank8 installer.