# How to setup RPi Zero + RAK831 gateway for V3?

**URL:** <https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690>\
**Category:** RAK Gateways\
**Created:** [December 7, 2021, 8:46am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690 "2021-12-07T08:46:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![s54mtb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/s54mtb/32/37436_2.png) [@s54mtb](https://www.thethingsnetwork.org/forum/u/s54mtb)\
**Post date:** [December 7, 2021, 8:46am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/1 "2021-12-07T08:46:36Z")

</div>

I hope this “movement” to V3 was not only to force home builders to buy commercial gateways 🙂

Is there step-by-step guide for placing the gateway based on [RAK831 gateway module](http://www.rakwireless.com/en/WisKeyOSH/RAK831) and [Raspberry Pi Zero W](https://www.raspberrypi.org/products/raspberry-pi-zero-w/)?  
They are connected via [RAK-Raspberry Pi shield by ch2i](https://github.com/hallard/RAK831-Zero). The r.pi is connected via USB-Ethernet adapter and powered by PoE injector.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [December 7, 2021, 9:31am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/2 "2021-12-07T09:31:08Z")

</div>

> [@s54mtb](#):
>
> I hope this “movement” to V3 was not only to force home builders to buy commercial gateways

Certainly not. And you should know better…  
My homebuild gateways migrated to V3 without any issues.

> [@s54mtb](#):
>
> Is there step-by-step guide for placing the gateway based on [RAK831 gateway module](http://www.rakwireless.com/en/WisKeyOSH/RAK831) and [Raspberry Pi Zero W](https://www.raspberrypi.org/products/raspberry-pi-zero-w/)?

Any steps depend largely on the software being used, what software are you using?

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [December 7, 2021, 9:47am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/3 "2021-12-07T09:47:55Z")

</div>

> [@kersing](#):
>
> what software are you using?

Probably:

> **[GitHub - ch2i/LoraGW-Setup: SX1301 Lora Concentrator Raspberry PI based...](https://github.com/ch2i/LoraGW-Setup)**
>
> SX1301 Lora Concentrator Raspberry PI based gateway setup - GitHub - ch2i/LoraGW-Setup: SX1301 Lora Concentrator Raspberry PI based gateway setup

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [December 7, 2021, 9:51am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/4 "2021-12-07T09:51:00Z")

</div>

> [@s54mtb](#):
>
> Is there step-by-step guide for placing the gateway based on [RAK831 gateway module](http://www.rakwireless.com/en/WisKeyOSH/RAK831) and [Raspberry Pi Zero W](https://www.raspberrypi.org/products/raspberry-pi-zero-w/)?

What exactly do you mean here?

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [December 7, 2021, 11:08am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/5 "2021-12-07T11:08:33Z")

</div>

@s54mtb I have lots of these built using Charle’s interface card and following his sw repository instructions. Mine mostly use @kersing Jac’s MPPF (use instructions in repository to change the start.sh last line etc.). (I also use same set up for many RAK Pilots and equivalent custom housing builds etc. with the interface card swapped to RAK’s 831 interposer board). Migration is ‘simple’.:

1. Set up new V3 GW instance and generate an API key allowing GW fn - keep it safe.
2. Log into the GW Rpi0W, navigate up the directory tree and head to and edit the global\_conf.json file (likely directory if you follow standard build is /opt/loragw (or your equivalent)
3. Scroll down to the “gateway\_conf” section of the file and tidy up/edit to reflect your version of this set up:

```auto
"gateway_conf": {
        "gateway_ID": "B827EBFFFEXXXXXX",
        "ref_altitude": 55.0,
        "description": "Genesis-S3_TestGW016_Rak-no3, RPi0W+Rak831+CH2i i/f boa$
        "servers": [
            {
                "server_address": "eu1.cloud.thethings.network:1881",
                "serv_gw_id": "g-s3-testgw016-pi0w-831no3-hp10",
                "serv_type": "ttn",
                "serv_gw_key": "NNSXS.NDQMVP....<the API key you saved earlier!>
                "serv_enabled": true
            },
            {
                "serv_port_up": 1688,
                "serv_type": "gwtraf",
                "serv_enabled": false,
                "server_address": "127.0.0.1",
                "serv_port_down": 1689
            },

```

_Note add the 1881 port to server address if using the MPPF (Thanks to Jac for hand-holding & pointing out the gotchas when I missed that during my 1st set up of such a config)_

If there are other servers called out (e.g. 127.0.0.1 simply check to see if set as false, also as you will see the version above tidies up and removes some listed ‘back-up’ servers which no longer apply.

In addition lower down the file if not already populated you might want to update the latitude and longitude details if using fixed GPS data in console etc.

Save your edits (over write existing), reboot the GW (shutdown -r now) and with a following wind after approx 5 mins you should see an active GW in V3 - having local node Txing helps speed up traffic capture and recognition by NS/Backend…

Any problems come back here and _detail_ (please dont make us guess!) what you have done of what has gone wrong/problems seen…

_Good Luck!_

---

<div class="post-metadata">

**Author:** ![s54mtb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/s54mtb/32/37436_2.png) [@s54mtb](https://www.thethingsnetwork.org/forum/u/s54mtb)\
**Post date:** [December 7, 2021, 1:48pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/6 "2021-12-07T13:48:11Z")

</div>

Excellent. That’s all I needed. Thank you.

---

<div class="post-metadata">

**Author:** ![s54mtb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/s54mtb/32/37436_2.png) [@s54mtb](https://www.thethingsnetwork.org/forum/u/s54mtb)\
**Post date:** [December 17, 2021, 6:40am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/7 "2021-12-17T06:40:33Z")

</div>

> [@Jeff-UK](#):
>
> global\_conf.json

there is no file global\_conf.json on the balena gateway:

 ![slika](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/e/4/e4cdacd0bbab3b29e98c3e392af21a3d4ad869e3.png)

There are two folders under /opt:

root@ea0d4f3:/# ls /opt  
gwexporter ttn-gateway

Where exactly is global\_conf.json file ?

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [December 17, 2021, 11:54am UTC](https://www.thethingsnetwork.org/forum/t/how-to-setup-rpi-zero-rak831-gateway-for-v3/53690/8 "2021-12-17T11:54:40Z")

</div>

You didnt say you were doing a Balena install! My suggestions and experience was based on Charles/ch2i (see link posted by Bluejedi) build and board you called out and modifying for V3… if Balena you will need to look elsewhere and get help from others - I believe Jac @kersing uses this and has done own builds using his MPPF & Balena…He did ask 10 days ago what Sw you were using!..
