# \[Solved\] RAK831 setup working somewhere?

**URL:** <https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054>\
**Category:** RAK Gateways\
**Created:** [July 13, 2019, 5:04pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054 "2019-07-13T17:04:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 13, 2019, 5:04pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/1 "2019-07-13T17:04:50Z")

</div>

Hi

As I can at least post in that forum, I’d like to know if someone has succeeded to install recently a RAK831 system with Pi3B+ as TTN gateway ? I followed the pretty outdated tuto on TTN blog and also that one listed in forum [https://www.thethingsnetwork.org/labs/story/rak831-lora-gateway-from-package-to-online](https://www.thethingsnetwork.org/labs/story/rak831-lora-gateway-from-package-to-online) but both fails miserably ☹  
Is there an up-to-date tuto somewhere I can be pointed too ? as I’m losing patience trying all tutos I can find till one hopefully works !

Thanks for advices,

Vincèn

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [July 13, 2019, 5:10pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/2 "2019-07-13T17:10:25Z")

</div>

If you have a problem with RAK products please ask at their support forum

- [https://forum.rakwireless.com/](https://forum.rakwireless.com/)

---

<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 13, 2019, 5:41pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/3 "2019-07-13T17:41:06Z")

</div>

Have you used [the instructions on the TTN documentation site](https://www.thethingsnetwork.org/docs/gateways/rak831/)? Just substitute [resin.io](http://resin.io) with [balena.io](http://balena.io) as they renamed their service some time ago.

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 13, 2019, 5:54pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/4 "2019-07-13T17:54:16Z")

</div>

> [@BoRRoZ](#):
>
> If you have a problem with RAK products please ask at their support forum
> 
> - [https://forum.rakwireless.com/](https://forum.rakwireless.com/)

My problem is not with RAK products but how to setup TTN on it 😉

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 13, 2019, 5:55pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/5 "2019-07-13T17:55:52Z")

</div>

> [@kersing](#):
>
> Have you used [the instructions on the TTN documentation site](https://www.thethingsnetwork.org/docs/gateways/rak831/)? Just substitute [resin.io](http://resin.io) with [balena.io](http://balena.io) as they renamed their service some time ago.

Yep first tuto I have tried but failed, it never succeeded to connect at TTN network due to some SSL problems unless the PI has well a full internet connectivity ! I have tried too to setup variables indicated in tuto in both variables categories that exist in Balena as none has same name as in the tuto but not more success ☹

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [July 13, 2019, 5:58pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/6 "2019-07-13T17:58:49Z")

</div>

> [@The hard RAK831 cafe part 3](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-3/21100):
>
> [hardRAK831cafe3] previous parts of this topic : [The hard RAK831 cafe part 1](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-1/8464)[The hard RAK831 cafe part 2](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576%5D) [hardRAK831cafe3-2] HARDWARE where to buy ( choose the right [frequency](https://www.thethingsnetwork.org/docs/lorawan/frequencies-by-country.html) for your country !) : [RAK831 Pilot Gateway SX1301+Raspberry Pi3+GPS with complete enclosure](https://www.aliexpress.com/store/product/RAK831-Pilot-Gateway-SX1301-Raspberry-Pi3-GPS-with-complete-enclosure-for-professional-demonstration-set-up/2805180_32883987457.html)[RAK831 LoRa/LoRaWAN Gateway Module, 433/868/915MHz](https://www.aliexpress.com/store/product/RAK831-LoRa-LoRaWAN-Gateway-Module-433-868-915MHz-base-on-SX1301-Wireless-Spread-Spectrum-Transmission-range/2805180_32832894046.html)[RAK831 LoRa Gateway Developer Kit](https://www.aliexpress.com/store/product/LoRa-Gateway-Developer-Kit-RAK831-LoRa-LoRaWan-Module-with-Raspberry-base-on-SX1301-433-868-915MHz/2805180_32830271395.html) converter PCB’s - the boards between gateway board and Raspberry Pi: [https://www.tindie.com/products/kilobyte/rak831-raspberry-pi-break…](https://www.tindie.com/products/kilobyte/rak831-raspberry-pi-breakoutbackplane/)

---

<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 13, 2019, 6:24pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/7 "2019-07-13T18:24:34Z")

</div>

If you want help with the setup it helps if you provide more details like log information. Just saying your car doesn’t drive won’t help a mechanic solve the issue, the same applies for us as we’re unable to see what happens. (Or you need to share that particular application in the balena console with me so I can take a look and try to help you out.)

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [July 13, 2019, 7:28pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/8 "2019-07-13T19:28:11Z")

</div>

> [@vincen](#):
>
> it never succeeded to connect at TTN network due to some SSL problems

Are you using the legacy packet forwarder UDP connection? I wouldn’t expect SSL to be involved unless you are using some more recent sort of connection.

> [@](#):
>
> unless the PI has well a full internet connectivity

How would you expect it to work without Internet connectivity?

---

<div class="post-metadata">

**Author:** ![LoRaTracker](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/loratracker/32/48502_2.png) [@LoRaTracker](https://www.thethingsnetwork.org/forum/u/LoRaTracker)\
**Post date:** [July 13, 2019, 7:50pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/9 "2019-07-13T19:50:20Z")

</div>

> [@vincen](#):
>
> My problem is not with RAK products but how to setup TTN on it

Its difficult for TTN, which is a free to use service, to provide free support for all 3rd party products

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 13, 2019, 8:42pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/10 "2019-07-13T20:42:32Z")

</div>

> [@kersing](#):
>
> If you want help with the setup it helps if you provide more details like log information. Just saying your car doesn’t drive won’t help a mechanic solve the issue, the same applies for us as we’re unable to see what happens. (Or you need to share that particular application in the balena console with me so I can take a look and try to help you out.)

Yep for sure for logs, I fully agree for you but as I had tried an other setup in meantime, I have no more these ! I’ll redo the setup this way tomorrow and share my results here about failure if it fails again, or will let you know too if it works fine this time (perhaps missed a step or made an error somewhere !) !

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 13, 2019, 8:44pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/11 "2019-07-13T20:44:03Z")

</div>

> [@cslorabox](#):
>
> > it never succeeded to connect at TTN network due to some SSL problems  
> > Are you using the legacy packet forwarder UDP connection? I wouldn’t expect SSL to be involved unless you are using some more recent sort of connection.

If I remember well it was indicated in setup not to tick that option but as indicated will attempt that setup again tomorrow and share results here 😉  
thanks @cslorabox and @kersing for offer of help 😉

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 14, 2019, 10:57am UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/12 "2019-07-14T10:57:35Z")

</div>

Here is updated information about attempt to setup my gateway with RAK831 et Pi3B+. I get same results as yesterday unhappy. Everything goes fine till I fill the details of my gw setup in TTN console in Balena dashboard. The app in PI3B+ restarts well to apply values filled and then get errors as below. I have just obfuscated the GW EUI as not sure it should be publicly shared !

Thanks for help and if you need more infos let me know 😉

Vincèn

> 14.07.19 12:52:42 (+0200) Killing service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:52:42 (+0200) Killed service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:52:43 (+0200) Installing service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:52:43 (+0200) Installed service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:52:44 (+0200) Starting service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:52:45 (+0200) Started service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:52:45 (+0200) \*\*\* Resin Machine Info:  
> 14.07.19 12:52:45 (+0200) \*\*\* Type: None  
> 14.07.19 12:52:45 (+0200) \*\*\* Arch: None  
> 14.07.19 12:52:45 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:52:45 (+0200) \*\*\* Configuration:  
> 14.07.19 12:52:45 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:52:45 (+0200) GW\_EUI: XXXXXXXX  
> 14.07.19 12:52:45 (+0200) Enabling TTN gateway connector  
> 14.07.19 12:52:45 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:52:45 (+0200) \*\*\* Fetching config from TTN account server  
> 14.07.19 12:52:45 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:52:45 (+0200) \<urlopen error [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed (\_ssl.c:727)\>  
> 14.07.19 12:52:45 (+0200) Unable to fetch configuration from TTN. Is the TTN API reachable from gateway? Are your GW\_ID and GW\_KEY correct? Retry in 30s  
> 14.07.19 12:52:57 (+0200) Killing service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:53:09 (+0200) Service exited ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:53:09 (+0200) Killed service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:53:10 (+0200) Installing service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:53:11 (+0200) Installed service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:53:11 (+0200) Starting service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:53:13 (+0200) Started service ‘main sha256:eb26dd8474625f9c84d833520709d6af99a85b77f3e18a73de33e1fd93f2c49a’  
> 14.07.19 12:53:13 (+0200) \*\*\* Resin Machine Info:  
> 14.07.19 12:53:13 (+0200) \*\*\* Type: None  
> 14.07.19 12:53:13 (+0200) \*\*\* Arch: None  
> 14.07.19 12:53:13 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:53:13 (+0200) \*\*\* Configuration:  
> 14.07.19 12:53:13 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:53:13 (+0200) GW\_EUI: XXXXXXXX  
> 14.07.19 12:53:13 (+0200) Enabling TTN gateway connector  
> 14.07.19 12:53:13 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:53:13 (+0200) \*\*\* Fetching config from TTN account server  
> 14.07.19 12:53:13 (+0200) \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 14.07.19 12:53:13 (+0200) \<urlopen error [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed (\_ssl.c:727)\>  
> 14.07.19 12:53:13 (+0200) Unable to fetch configuration from TTN. Is the TTN API reachable from gateway? Are your GW\_ID and GW\_KEY correct? Retry in 30s

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 14, 2019, 3:54pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/13 "2019-07-14T15:54:40Z")

</div>

Hum while looking for a solution at my problem I found a lot easier way to setup the gateway ! RAKWireless offers a ready to use image for Pi 3B+ and in few minutes and very easily I had my gateway active and running !  
For people wanting to use RAKWireless hardwares, don’t bother with outdated tutos available on TTN websit, just go on RAKWireless website to download the image for your hardware and follow their very simple and easy document to setup the image and in 5 minutes you are running 😉  
So one more TTN gateway is now active (in an area where nearest Lora network is 100km away !) !

---

<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 14, 2019, 4:31pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/14 "2019-07-14T16:31:17Z")

</div>

> [@vincen](#):
>
> don’t bother with outdated tutos available on TTN websit

Outdated because of a change that happened to the balena images a couple of days ago where I’m am working on fixing it. May-be you shouldn’t be so harsh in your judgment?

[Edit] The TTN account server does not provide the intermediate certificate to clients connecting and as a result the client can’t validate the server certificate. Now the question is why this happens…  
@htdvisser have there been changes that could result in TTN no longer providing the immediate certificate? For instance while fixing the security issue last week?

> [@vincen](#):
>
> So one more TTN gateway is now active

Welcome to the club of gateway owners. 🙂

---

<div class="post-metadata">

**Author:** ![htdvisser](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htdvisser/32/45312_2.png) [@htdvisser](https://www.thethingsnetwork.org/forum/u/htdvisser)\
**Post date:** [July 15, 2019, 7:41am UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/15 "2019-07-15T07:41:53Z")

</div>

There have been no changes to TLS. Also, when I connect to the account server, I see the full chain:

```auto
% openssl s_client -connect account.thethingsnetwork.org:443 [1]
CONNECTED(00000003)
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify return:1
depth=0 CN = account.thethingsnetwork.org
verify return:1
---
Certificate chain
 0 s:/CN=account.thethingsnetwork.org
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
 1 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
   i:/O=Digital Signature Trust Co./CN=DST Root CA X3
---

```

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 15, 2019, 8:51am UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/16 "2019-07-15T08:51:25Z")

</div>

> [@kersing](#):
>
> Outdated because of a change that happened to the balena images a couple of days ago where I’m am working on fixing it. May-be you shouldn’t be so harsh in your judgment?

not only Balena stuffs 😉 To help you update the tuto, here are things that needs to be updated in it that I noticed while using it:

- as you told, update all resin stuffs to become balena ones
- perhaps indicate when you “add” device that you can select also the option of Wifi if your raspberry is getting internet access through Wifi no ?
- extract content of zip downloaded from Balena is useless as Etcher is taking care of that automatically
- Your part about Etcher for Windows and Mac is also good for Linux (no need to go with DD and all these command line stuffs)
- Update the part about Environment variables to reflect the updated web interface of Balena

I’ll publish too a story about how I have succeeded to setup it with RAK tools as it can be interesting too (different way to reach same result 😉

> [@kersing](#):
>
> Welcome to the club of gateway owners. 🙂

Thanks 🙂 now next step succeed to get some Lora devices to connect to it and transmit datas !

---

<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:58am UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/17 "2021-07-27T09:58:27Z")

</div>

Hi Vincen, since I had the same problem as you and I’m not able to fix it could you pass the link of the tutorial/guide you used to put your gateway with raspberry pi3b in motion.

---

<div class="post-metadata">

**Author:** ![vincen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vincen/32/45838_2.png) [@vincen](https://www.thethingsnetwork.org/forum/u/vincen)\
**Post date:** [July 27, 2021, 10:51am UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/18 "2021-07-27T10:51:18Z")

</div>

Hi

Unhappy looks like the tuto is no more there ☹ It was on Rakwireless website: [RAKwireless Downloads](https://downloads.rakwireless.com/LoRa/RAK831-LoRa-Gateway/) but perhaps asking support you can get a copy of it. Don’t forget that if your gw is not already registered in TTN V2 it’s completely useless now as you can no more register gw in TTN V2 since 1st June/July ☹

---

<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, 10:54am UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/19 "2021-07-27T10:54:38Z")

</div>

OK, anyway, thank you very much.

---

<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, 1:30pm UTC](https://www.thethingsnetwork.org/forum/t/solved-rak831-setup-working-somewhere/28054/20 "2021-07-27T13:30:38Z")

</div>

> [@vincen](#):
>
> Don’t forget that if your gw is not already registered in TTN V2 it’s completely useless now

Wrong - just register under V3! And if previously registered in V2 some details can still be amended even if system read only so may be poss to get it online as a correction… depends on what root cause of issue is. Personally would just get latest build instructions and go straight to V3…do not pass go do not collect £200/$200/€200 or whatever on local Monopoly Money…
