LoRa/LoRaWAN tutorial 28.1: Installing Semtech UDP Packet Forwarder for the RAK831 Pilot Gateway @Mobilefish
LoRa/LoRaWAN tutorial 28.1: Installing Semtech UDP Packet Forwarder for the RAK831 Pilot Gateway  @Mobilefish
Uploaded February 2019 | Updated September 2026, 2 weeks ago
If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
youtube.com/c/mobilefish/about

This is part 28.1 of the LoRa/LoRaWAN tutorial.

In this video series different topics will be explained which will help you to understand LoRa/LoRaWAN.
It is recommended to watch each video sequentially as I may refer to certain LoRa/LoRaWAN topics explained earlier.

In this tutorial I will show you how to install all the required software on a micro SD card.
The result is a bootable micro SD card which can be used in the RAK831 Pilot Gateway.

I have forked github.com/RAKWireless/RAK831-LoRaGateway-RPi and simplified the installation procedure.
The repository github.com/robertlie/RAK831-LoRaGateway-RPi contains just a few files.
The install.sh script:
- Creates the gateway EUI.
- Allows the user to set the gateway hostname.
- Allows the user to select the region the gateway will operate in.
Dependant on the selected region the correct global_conf.json is copied from the configuration_files folder.
- The local_conf.json is copied from the configuration_files folder and the gateway EUI is set in this file.
- Allows the user to set the gateway latitude and longitude coordinates and its altitude.
- Installs the Semtech LoRa library and the Semtech UDP Packet Forwarder and build both packages.
- Makes the packet_forwarder a service, which means when the Raspberry Pi boots the packet_forwarder is started.
- Disables the onboard Raspberry Pi bluetooth.

Before you start with the installation procedure, you must know which frequency plan to use in your country.
See the list of frequency plans by country list:
thethingsnetwork.org/docs/lorawan/frequencies-by-country.html

Installation procedure:
git clone github.com/robertlie/RAK831-LoRaGateway-RPi ~/rak831-loragateway
This repository is installed in: /home/pi/rak831-loragateway

Execute the install script:
cd ~/rak831-loragateway
sudo ./install.sh

The following is displayed. Press Enter to keep the default value or change it:
Host name [ttn-gateway]: Enter
Region AS1, AS2, AU, CN, EU, IN, KR, RU, US [EU]: EU
Latitude [0]: Enter
Longitude [0]: Enter
Altitude [0]: Enter

As mentioned earlier, the install.sh script installs the following git repositories and build these packages.
Semtech LoRa library (V5.0.1)
github.com/Lora-net/lora_gateway
/opt/ttn-gateway/lora_gateway
Semtech UDP Packet Forwarder (V4.0.1)
github.com/Lora-net/packet_forwarder
/opt/ttn-gateway/packet_forwarder

The RAK831 Pilot Gateway can be connected to any LoRa network servers.
In this tutorial the RAK831 Pilot Gateway will be connected to The Things Network server.
The Semtech Packet Forwarder is configured via a file called global_conf.json and if provided an additional file called local_conf.json.
The global_conf.json is the main configuration file and contains for example the LoRa network server address, which uplink and downlink ports to use, which frequencies to use and the TX power LookUp Table (LUT).
The local_conf.json file contains more gateway specific parameters.
The local_conf.json will override the settings in the global_conf.json.

The ~/rak831-loragateway/install.sh script creates the global_conf.json and local_conf.json files in this folder:
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd
Several other global_conf.json file examples can be found in this folder:
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/cfg
but these files are not used.
The github.com/robertlie/RAK831-LoRaGateway-RPi/blob/master/configuration_files/README.md file explains where the global configuration files originates from and what modifications were made to these files.

In Tutorial 28 is explained which parameters to set in the local_conf.json file to enable GPS and for beaconing.
In the local_conf.json these parameters are commented out.
Uncomment these parameters if needed.

The gateway is now running without errors.
Next steps:
Register the gateway to The Things Network, watch:
youtu.be/bea7g5isD0w?t=1779
Optionally enable WiFi, watch:
youtu.be/bea7g5isD0w?t=1844

More information about the RAK831 Pilot Gateway:
aliexpress.com/store/product/IoT-in-a-Box-Powered-Pilot-Gate-way-with-Semtech-SX1301/2805180_32951841630.html

Interested in the RAK831 components:
aliexpress.com/store/product/RAK831-LoRa-LoRaWAN-Gateway-Module-base-on-SX1301-433-868-915MHz-range-of-up-to-49200ft/2805180_32821411294.html

Check out all my other LoRa/LoRaWAN tutorial videos:
youtube.com/playlist?list=PLmL13yqb6OxdeOi97EvI8QeO8o-PqeQ0g

Subscribe to my YouTube channel:
youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?sub_confirmation=1

The presentation used in this video tutorial can be found at:
mobilefish.com/developer/lorawan/lorawan_quickguide_tutorial.html

#mobilefish #lora #lorawan
LoRa/LoRaWAN tutorial 28.1: Installing Semtech UDP Packet Forwarder for the RAK831 Pilot GatewayIOTA tutorial 28: How to send sensor data to the tangle using Masked Authenticated MessagingIOTA tutorial 33: Restore IOTA Seed From Ledger Nano S Recovery PhraseBlockchain tutorial 23: LedgerIOTA tutorial 11: Attach Address To TangleRTL-SDR Dongle and GQRX on Mac OS XLoRa/LoRaWAN tutorial 44: Quarter Wave Ground Plane AntennaLoRa/LoRaWAN tutorial 28: LoRaWAN GatewayChinese radicals in English 9/22LoRa/LoRaWAN tutorial 27: Retrieve and Store Sensor Data From The Things NetworkLoRa/LoRaWAN tutorial 33: VSWR or SWR and Reflection Coefficient or S11LoRa/LoRaWAN tutorial 38: NEC Antenna Modelling Software, 4NEC2
Mobilefish.com |

LoRa/LoRaWAN tutorial 28.1: Installing Semtech UDP Packet Forwarder for the RAK831 Pilot Gateway

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER