Rak831 LoRa Gateway



I have a Lora Server that I was trying to build like in quick-install guide and successful. I would like to use rak831 send data to LoRa server. 

How can I install and configure the rak831 for gateway?

Thanks in advance,


You just have to configure the address and down/up ports in the config file on the embedded packet forwarder on rak831


Thank you for your prompt reply.
I would like to know what components must be installed.
If you have the document to setup the rak831. It’s very good for me.

Thank you.


Are you using your Rak831 with a Raspberry Pi 3 or something similar? In that case, here’s a simple tutorial: https://www.hackster.io/naresh-krish/getting-started-with-the-rak-831-lora-gateway-and-rpi3-e3351d. If I remember correctly, I think there was a typo on the reset pin on that one, but maybe it’s already been modified. Just have that in mind if the concentrator isn’t starting. Also, it shows how to set it up for TTN, but just changing the server for the packet forwarder allows you setup it up for whatever you need.

If your setup is different, just check how to properly connect your Rak831 through spi.

In any case, your basic setup consists only on the packet forwarder pointing to wherever your lora-gateway-bridge resides at, but as the image shows, you may also install the lora-gateway-bridge in the Pi (or whatever micro you are using) directly, point the packet forwarder to the internal bridge and that one to your loraserver. Installing lora-gateway-bridge should be pretty straightforward in any Debian based system such as Raspbian, and is covered in the docs: https://www.loraserver.io/lora-gateway-bridge/install/debian/


Did you install successfully? how to buil loraserver like


I use RAK831 as well. It works fine for me. Here is how it worked.

  1. Make sure SPI is enabled on your host device, RPi. Connect RAK831 to RPi via SPI.
  2. Connect a GPIO to RAK 831, Reset Pin.
  3. Install TTN- Packet forwarder.
    $ git clone -b spi https://github.com/ttn-zh/ic880a-gateway.git ~/temp
    $ cd ~/temp
    $ sudo ./install.sh spi
    Keep note of gateway EUI.
  4. Disable TTN Packet forwarder.
    sudo systemctl disable ttn-gateway.service
  5. Edit global_conf.json in Basic Packet forwarder.
    cd /opt/ttn-gateway/packet_forwarder/basic_pkt_fwd/
    Refer here for global_config.json for different channel plans.
    Don’t copy and paste the file as it is. Change the SX1301 part only and edit gateway EUI
    Change Server address to point at your Gateway Bridge. If Gateway bridge is running on your gateway change as follows.
    "server_address": "",
  6. Reset the gateway. Try the following script from Naresh
    echo "17" > /sys/class/gpio/export
    echo "out" > /sys/class/gpio/gpio17/direction
    echo "1" > /sys/class/gpio/gpio17/value
    sleep 5
    echo "0" > /sys/class/gpio/gpio17/value
    sleep 1
    echo "0" > /sys/class/gpio/gpio17/value
    Run the script as root It’s a sysfs implementation hence SU privileges.
  7. Start the packet forwarder.
    sudo ./basic_pkt_fwd
  8. You should see packets being forwarded.
  9. Try sudo tail -f /var/log/syslog to check for errors, if any.


how to install gateway bridge on my gateway. I use RAK831+Raspi3.


Install 32bit arm deb. Instructions can be found here.


thank u. let me try :grinning:


Hi Akshai_M,
I followed your advice. It works perfectly now.

Thank you for your advice.