# Added RAK833 RPi HAT GW to V3 - remains in disconnected status

**URL:** <https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844>\
**Category:** Raspberry Pi Gateways\
**Tags:** gateways\
**Created:** [July 16, 2021, 5:07pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844 "2021-07-16T17:07:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeddaIoT](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/heddaiot/32/44857_2.png) [@HeddaIoT](https://www.thethingsnetwork.org/forum/u/HeddaIoT)\
**Post date:** [July 16, 2021, 5:07pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/1 "2021-07-16T17:07:01Z")

</div>

Hi, I´m trying to add a RAK833 RPi HAT gateway to V3 (fresh setup, no V2 migration). I have tried to follow your tutorials & troubleshooting but still get “disconnected” status in the console.

- the GW is connected to internet via ethernet cable
- as a test, I managed to register the gw on Balena - worked fine on first attempt.
- after that I have rebooted the gw from scratch and followed the guidelines on [https://www.thethingsnetwork.org/docs/gateways/pisupply-hat/](https://www.thethingsnetwork.org/docs/gateways/pisupply-hat/) (however this seems to be made for V2 rather than V3).
- Semtech / legacy forwarder mode
- Gw ID: as provided on the gateway´s IoT Lora GW Management page (doublechecked that it´s identical in console and GW)
- Gw EUI: My RPI Mac address adding “FF FE” in the middle
- server address: eu1.cloud.thethings.network
- “gateway secret key” (“This is the Gateway Key from the TTN Console”) but this doesn´t seem to exist for V3? I have tried to generate an API key, but this is 98 byte long and the packer forwarder config requires a key with 101 byte length
- region plan: Europe 868 (I’m in Sweden)

Note that I have not done anything with the global\_conf.json file and have not set any ports as I don´t know what / how / where)

Any support is appreciated.

regards,  
Ulf Jonsson  
Sweden

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 16, 2021, 5:51pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/2 "2021-07-16T17:51:06Z")

</div>

> [@HeddaIoT](#):
>
> Gw ID: as provided on the gateway´s IoT Lora GW Management page (doublechecked that it´s identical in console and GW)

The Gateway ID is just your reference - double checking won’t help

> [@HeddaIoT](#):
>
> - Gw EUI: My RPI Mac address adding “FF FE” in the middle

OK

> [@HeddaIoT](#):
>
> - server address: eu1.cloud.thethings.network

Correct

> [@HeddaIoT](#):
>
> “gateway secret key” (“This is the Gateway Key from the TTN Console”) but this doesn´t seem to exist for V3? I have tried to generate an API key, but this is 98 byte long and the packer forwarder config requires a key with 101 byte length

This is no longer a thing - the instructions & setup are indeed for v2

> [@HeddaIoT](#):
>
> - region plan: Europe 868 (I’m in Sweden)

Correct.

It would be worth checking in on the Pi-Supply website to see if they have updated for v3.

I moved my Pi-Supply HAT over early February by recompiling the [Kersing Packet Forwarder](https://github.com/kersing/packet_forwarder) on the Pi and using the global\_conf.json that you can download from the gateway configuration page

---

<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:** [July 16, 2021, 8:19pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/3 "2021-07-16T20:19:00Z")

</div>

Are you using Balena? In that case go to [Basics Station Protokoll in Docker-Compose for balena.cloud Gateways V2 / V3 - #3 by biermi](https://www.thethingsnetwork.org/forum/t/basics-station-protokoll-in-docker-compose-for-balena-cloud-gateways-v2-v3/48763/3) for two option, BasicStation or MP forwarder. For both there is a link to GitHub where you can find the setup instructions.

---

<div class="post-metadata">

**Author:** ![HeddaIoT](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/heddaiot/32/44857_2.png) [@HeddaIoT](https://www.thethingsnetwork.org/forum/u/HeddaIoT)\
**Post date:** [July 16, 2021, 8:59pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/4 "2021-07-16T20:59:21Z")

</div>

Hi guys, thanks for your incredibly fast responses (do you work around the clock?)

Anyway, obviously I am not the only one with this issue, according to this thread in GitHub: [not compatibile with the TTN v3 · Issue #77 · PiSupply/iot-lora-image · GitHub](https://github.com/PiSupply/iot-lora-image/issues/77)  
I tried the key min length workaround, but didn´t work for me (haven´t done any real investigation though).

As said, the GW connected immediately when I tried to register to Balena some weeks ago. So I will test Jac´s Balena route tomorrow. I´ll let you know the outcome.

regards, Ulf

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 16, 2021, 9:24pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/5 "2021-07-16T21:24:53Z")

</div>

> [@HeddaIoT](#):
>
> do you work around the clock?

Not me, I rock around the clock, usually in my blue suede shoes.

---

<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:** [July 16, 2021, 9:29pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/6 "2021-07-16T21:29:56Z")

</div>

The older code relies on V2 to get part of the configuration and requires valid V2 credentials for that. My updated version (the second GitHub link in that topic) has been modified to get rid of the V2 dependencies.

---

<div class="post-metadata">

**Author:** ![Roberto69](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/roberto69/32/44922_2.png) [@Roberto69](https://www.thethingsnetwork.org/forum/u/Roberto69)\
**Post date:** [July 20, 2021, 3:40pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/7 "2021-07-20T15:40:30Z")

</div>

Hello.

I hope my problem fits into this topis. It is regarding migration from v2 to v3 and from packet forwarder to basic station. I’m using RPi (3 and 0), iC880A and RAK 831, all in Balena. (I’ve migrated Lorix before without any problem). First migration of RPi&iC880A was easy. Even more: problematic iC880a, which I had to start packet forwarder on it even more than 4-5 times, now starts without any problems.  
Next was RPi&RAK831, as it is described here: [GitHub - balenalabs-incubator/basicstation: LoRa Basics™ Station - The LoRaWAN Gateway Software](https://github.com/balenalabs-incubator/basicstation). Again, succesful. But that’s it.  
Another two RPi&RAK831 couldn’t connect despite the equal settings, with the same error. No way …  
Does someone have any idea where to start “witch hunt”?

**TTN console says:**

- flash\_on  
17:14:11 Disconnect gateway

- network\_check  
17:14:10 Receive gateway status Versions firmware"1.0.0"package"1.0.0"platform"rpi - Firmware 1.0.0 - Protocol 2"station"2.0.5(rpi/std)"

- flash\_on  
17:14:10 Connect gateway

**Balena’s log says:**  
main 2021-07-20 15:18:51.856 [RAL:VERB] SX1301 ifchain 9: enable=1 rf\_chain=1 freq=300000 bandwidth=3 datarate=50000 sync\_word=0/0  
main 2021-07-20 15:18:51.856 [RAL:VERB] SX130x LBT not enabled  
main 2021-07-20 15:18:51.856 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)  
main 2021-07-20 15:18:51.857 [RAL:ERRO] Concentrator start failed: lgw\_start  
main 2021-07-20 15:18:51.857 [RAL:ERRO] ral\_config failed with status 0x08  
main 2021-07-20 15:18:51.857 [any:ERRO] Closing connection to muxs - error in s2e\_onMsg  
main 2021-07-20 15:18:51.857 [AIO:DEBU] [3] ws\_close reason=1000  
main 2021-07-20 15:18:51.857 [AIO:DEBU] Echoing close - reason=1000  
main 2021-07-20 15:18:51.904 [AIO:DEBU] [3|WS] Server sent close: reason=1000  
main 2021-07-20 15:18:51.904 [AIO:DEBU] [3] WS connection shutdown…  
main 2021-07-20 15:18:51.905 [TCE:VERB] Connection to MUXS closed in state -1  
main 2021-07-20 15:18:51.905 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

Thank You for any hint!

---

<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:** [July 20, 2021, 4:07pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/8 "2021-07-20T16:07:23Z")

</div>

> [@Roberto69](#):
>
> Concentrator start failed: lgw\_start

That line seems to be the issue. Is the reset pin defined correctly for the hardware?

---

<div class="post-metadata">

**Author:** ![Roberto69](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/roberto69/32/44922_2.png) [@Roberto69](https://www.thethingsnetwork.org/forum/u/Roberto69)\
**Post date:** [July 20, 2021, 4:37pm UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/9 "2021-07-20T16:37:21Z")

</div>

Agree. For whole application in Balena I have the same settings (except for iC880A, which has overriden GW\_RESET\_GPIO with 25):  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/c/2/c283c24ffd4d8fd9bc77981ea2e0c9a53216ae49.png)

One open question is, should this be checked and/or fulfilled:

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/6/f635012afe020bd694328fa03945347597c7e1c8.png)

---

<div class="post-metadata">

**Author:** ![Sodupe](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sodupe/32/35697_2.png) [@Sodupe](https://www.thethingsnetwork.org/forum/u/Sodupe)\
**Post date:** [July 26, 2021, 7:25am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/10 "2021-07-26T07:25:12Z")

</div>

Hi, followed by the “[Basicstation](https://www.balena.io/blog/deploy-a-basics-station-lora-gateway-with-ttn-and-balena/#create-app)” repository guide with a board “IC880A” and a RAPSBERRY PI3 and in the TTN V3 console comes out as disconnected. Apart from what appears in the guide would have to do something else?

> flash\_off  
> 08:11:32  
> Disconnect gateway  
> network\_check  
> 08:11:32  
> Receive gateway status
> 
> Versions  
> firmware"1.0.0"package"1.0.0"platform"rpi - Firmware 1.0.0 - Protocol 2"station"2.0.5(rpi/std)"
> 
> flash\_on  
> 08:11:32  
> Connect gateway

This is what live data responds to and the following one is the balena logs.

```
2021-07-26 06:26:45.533 [RAL:VERB] SX130x LBT not enabled
main 2021-07-26 06:26:45.533 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
main 2021-07-26 06:26:45.534 [RAL:ERRO] Concentrator start failed: lgw_start
main 2021-07-26 06:26:45.534 [RAL:ERRO] ral_config failed with status 0x08
main 2021-07-26 06:26:45.534 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
main 2021-07-26 06:26:45.534 [AIO:DEBU] [3] ws_close reason=1000
main 2021-07-26 06:26:45.534 [AIO:DEBU] Echoing close - reason=1000
main 2021-07-26 06:26:45.570 [AIO:DEBU] [3|WS] Server sent close: reason=1000
main 2021-07-26 06:26:45.570 [AIO:DEBU] [3] WS connection shutdown...
main 2021-07-26 06:26:45.570 [TCE:VERB] Connection to MUXS closed in state -1
main 2021-07-26 06:26:45.570 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
main 2021-07-26 06:26:55.572 [any:INFO] ./tc.trust:

```

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 26, 2021, 9:09am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/11 "2021-07-26T09:09:54Z")

</div>

Hi, for Pi there is a some software created by @kersing that should do the job - he created gateway software way back in time - the forum search should track it down, it was in the last week or so if I recall.

---

<div class="post-metadata">

**Author:** ![Sodupe](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sodupe/32/35697_2.png) [@Sodupe](https://www.thethingsnetwork.org/forum/u/Sodupe)\
**Post date:** [July 26, 2021, 9:23am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/12 "2021-07-26T09:23:59Z")

</div>

OK, thank you very much, the question is that i dont know where to start looking. For the moment i will search @kersing to see if there’s luck. If I manage to fix it or find the software, I’ll leave the link attached to this mensage.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 26, 2021, 9:39am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/13 "2021-07-26T09:39:06Z")

</div>

> [@Sodupe](#):
>
> the question is that i dont know where to start looking

Scroll up?? When I get on a desktop computer I’ll be better placed to find & copy & paste a link.

---

<div class="post-metadata">

**Author:** ![Sodupe](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sodupe/32/35697_2.png) [@Sodupe](https://www.thethingsnetwork.org/forum/u/Sodupe)\
**Post date:** [July 26, 2021, 9:45am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/14 "2021-07-26T09:45:36Z")

</div>

This link?

> **[GitHub - kersing/ttn-resin-gateway-rpi-1: Balena code for TTN V3](https://github.com/kersing/ttn-resin-gateway-rpi-1)**
>
> Balena code for TTN V3. Contribute to kersing/ttn-resin-gateway-rpi-1 development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 26, 2021, 9:48am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/15 "2021-07-26T09:48:28Z")

</div>

Ta Dah!

---

<div class="post-metadata">

**Author:** ![Sodupe](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sodupe/32/35697_2.png) [@Sodupe](https://www.thethingsnetwork.org/forum/u/Sodupe)\
**Post date:** [July 26, 2021, 9:53am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/16 "2021-07-26T09:53:59Z")

</div>

Thank you very much. Amazing flawless assistance. 😁

---

<div class="post-metadata">

**Author:** ![Sodupe](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sodupe/32/35697_2.png) [@Sodupe](https://www.thethingsnetwork.org/forum/u/Sodupe)\
**Post date:** [July 27, 2021, 9:25am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/17 "2021-07-27T09:25:41Z")

</div>

Hi, I follow Kersing’s tutorial as you told me but now it gives me another mistake, apparently I have the gw\_key and gw\_id badly but I put them according to the documentation. What could the problem be?

Anyway, on the gw\_key I put “API KEY secret key” and on the gw\_id “gateway ID.”

BalenaCloud log error  
HTTP Error 404: Not Found  
main Unable to fetch configuration from TTN. Is the TTN API reachable from gateway? Are your GW\_ID and GW\_KEY correct? Retry in 30s

i did try to ping the gateway server address but it does not comunicate with any on of the devices in my network.

---

<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:** [July 27, 2021, 9:37am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/18 "2021-07-27T09:37:11Z")

</div>

> [@Sodupe](#):
>
> did try to ping the gateway server address

Do you mean ping the Gateway (on your network) or ping the _Network_ Server the Gateway is pointed to (in the TTN Backend?

If latter then do not expect a ping response. The TTI/TTN infrastructure is behind load balancers and will not respond to pings…

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [July 27, 2021, 9:41am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/19 "2021-07-27T09:41:43Z")

</div>

> [@Sodupe](#):
>
> HTTP Error 404: Not Found

This means it reached a server and was told the file wasn’t to be found, so it’s not even got to trying to use the keys yet.

Maybe review the URL that you are using?

---

<div class="post-metadata">

**Author:** ![Sodupe](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sodupe/32/35697_2.png) [@Sodupe](https://www.thethingsnetwork.org/forum/u/Sodupe)\
**Post date:** [July 27, 2021, 9:46am UTC](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844/20 "2021-07-27T09:46:45Z")

</div>

> [@Sodupe](#):
>
> BalenaCloud log error  
> HTTP Error 404: Not Found

ok so it will not respond. Thank you for the information

[Next page](https://www.thethingsnetwork.org/forum/t/added-rak833-rpi-hat-gw-to-v3-remains-in-disconnected-status/49844.md?page=2)
