Lora Gateway

Supposing we use The Things Network, look at the map at https://www.thethingsnetwork.org/.
If there is an available gateway close to you, you can pass this step.
If note, you can try another network or make your own Gateway as described above.


Architecture

I used the Seeed LoRaWAN Gateway - 868MHz Kit with Raspberry Pi 3 which comes with the Gateway module RHF0M301 – 868.
Another solutions are possible, whith RPI or not ; it’s difficult to find something less than 300€.

lora_gateway.svg


Getting Started

1- Get a Raspbian Image and put it on the microSD ; don’t forget to create an empty file named “ssh” in the /boot partition to make ssh available on startup.
2- In raspi-config –> enable SPI.
3-

$ git clone https://github.com/ttn-zh/ic880a-gateway.git
$ cd ~/ic880a-gateway
$ sudo ./install.sh spi

4- Fill in the form with host name ; GPS coordinates are not mandatory.

6- Note the Gateway EUI ( 16 digits hex value )

5-

$ nano /opt/ttn-gateway/bin/start.sh

Change SX1301_RESET_BCM_PIN = 25 to SX1301_RESET_BCM_PIN = 7

6-

$ sudo systemctl restart ttn-gateway.service

At last, if your gateway is behind a proxy, you’ll have to open the 1700 UDP port.