Template:SX1302 LoRaWAN Gateway HAT Guide
The examples here are based on the TTS (https://eu1.cloud.thethings.network/oauth/login The THINGS STACK) and the [https://github.com/Lora-net/sx1302_hal Semtech SX1203 libraries).
If you want to create the cloud server yourself, please refer to LoRaWan-Stack.
Attach the LoRA HAT on the Raspberry Pi and set the GPS antenna in an open area where the sky is visible.
Open the terminal of the Raspberry Pi and install libraries with the following commands:
sudo apt update sudo apt install git cd ~/Documents/ git clone https://github.com/Lora-net/sx1302_hal.git cd sx1302_hal make clean all make install cp tools/reset_lgw.sh util_chip_id/ cp tools/reset_lgw.sh packet_forwarder/
- Sign up for a TTS account and login
- Get the gateway EUI and add the gateway device to TTS, please choose the correct frequency according to the local area.
# get sx1302 EUI cd ~/Documents/sx1302_hal/util_chip_id/ ./chid_id
- Go to the device Overview page and download the configuration file, then modify the test_conf file of sx1302_hal libraries according to the configuration file as figures
cd ~/Documents/sx1302_hal/packet_forwarder/ cp global_conf.json.sx1250.EU868 test_conf
- Run the packet_forwarder
- after running the codes, the gateway will keep connecting to the TTS
cd ~/Documents/sx1302_hal/packet_forwarder/ ./lora_pkt_fwd -c test_conf