# RAK831 +RPI3 Gateway

**URL:** <https://forums.balena.io/t/rak831-rpi3-gateway/303936>\
**Category:** balenaOS\
**Tags:** raspberrypi3\
**Created:** [April 26, 2021, 7:23pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936 "2021-04-26T19:23:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [April 26, 2021, 7:23pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/1 "2021-04-26T19:23:39Z")

</div>

Dear @mpous a few days ago I wrote to you about this problem with the RAK831.

I am trying to migrate and connect this gateway through balena to TTSV3, although at the beginning the connection occurs after a few seconds the connection is not refreshed and it is offline and does not reconnect until restarting the gateway locally.  
I wanted to share the information I have with you. I can share the log with you privately

 ![image](https://global.discourse-cdn.com/balena/original/2X/4/4910a50deeaf032db1779f21e2dad7cd5b6a48af.png)

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [April 27, 2021, 12:03pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/3 "2021-04-27T12:03:42Z")

</div>

Hello @johncaipa welcome to the forums!

I have some questions to help me to understand your issue ! What code are you using for this application? are you using the basicstation?

on the other hand, are you using the RAK831 SPI or USB? are you using any specific Pi hat?

Thanks

Thanks

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [April 27, 2021, 2:43pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/7 "2021-04-27T14:43:12Z")

</div>

Hi @mpous I followed this [guide](https://www.balena.io/blog/deploy-a-basics-station-lora-gateway-with-ttn-and-balena/) to use basicstation, deploy and install this image: balena-cloud-basicstation-raspberrypi3-2.72.0+rev1-v12.3.5.img  
I have the RAK831 SPI like this  
 ![image](https://global.discourse-cdn.com/balena/original/2X/2/2c38f5d0d7492eb842b5206eb1fde446066b5265.jpeg)

Thanks.

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [April 29, 2021, 1:39pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/8 "2021-04-29T13:39:53Z")

</div>

Sorry this is the configuration I made and the device I have, and it is with these that I have the problem, sorry if I do not express it well.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [April 29, 2021, 2:33pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/9 "2021-04-29T14:33:34Z")

</div>

Thank you @johncaipa actually this is a `SX1301`. I don’t have exactly the same one but it works with my SX1301! Do you think you can grant me support access to your device so i can check the error personally?

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [April 29, 2021, 8:11pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/10 "2021-04-29T20:11:52Z")

</div>

Hi, no problem, let me know how to do it and I give you access.

---

<div class="post-metadata">

**Author:** ![iamsolankiamit](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@iamsolankiamit](https://forums.balena.io/u/iamsolankiamit)\
**Post date:** [April 30, 2021, 5:33am UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/12 "2021-04-30T05:33:02Z")

</div>

Hi @johncaipa, To grant support access visit the applications page, in the sidebar you can see the actions item visit that and you will be able to see “Grant support access” . You can read [more in depth guide here.](https://www.balena.io/docs/learn/manage/support-access/#grant-support-access-for-an-application)

Regards,  
Amit

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [May 6, 2021, 6:52pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/15 "2021-05-06T18:52:12Z")

</div>

Sorry for responding so far @iamsolankiamit , I have already enabled this, I look forward to your confirmation

---

<div class="post-metadata">

**Author:** ![the-real-kenna](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/the-real-kenna/32/9598_2.png) [@the-real-kenna](https://forums.balena.io/u/the-real-kenna)\
**Post date:** [May 6, 2021, 8:08pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/17 "2021-05-06T20:08:51Z")

</div>

Hi John, can you also share the device’s UUID with us? That will allow us to connect. Thank you!

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [May 6, 2021, 8:52pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/19 "2021-05-06T20:52:49Z")

</div>

Hi @the-real-kenna  
 ![image](https://global.discourse-cdn.com/balena/original/2X/2/213f4e1f205587ce0c3c190e41e6390d4b1bbcae.png)

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [May 11, 2021, 11:46am UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/21 "2021-05-11T11:46:41Z")

</div>

Hello @johncaipa if you can connect your device and grant support access I would like to check the logs and try to reproduce the issue.

Let us know if that works for you.

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [May 11, 2021, 3:50pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/23 "2021-05-11T15:50:02Z")

</div>

yeah It’s already done, i stay tuned and thank you very much.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [May 11, 2021, 5:22pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/24 "2021-05-11T17:22:16Z")

</div>

could you please send me on DM your device ID (click copy) or your URL @johncaipa ?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [May 12, 2021, 8:17am UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/25 "2021-05-12T08:17:36Z")

</div>

@johncaipa the logs on balenaCloud seems ok. I only see a weird configuring region with `Configuring for region: AU915 -- 915.0MHz..928.0MHz` .

Let’s ask @barryjump or @ronyvargas if they can nicely help as they have experience on NAM regions.

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [May 12, 2021, 1:11pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/29 "2021-05-12T13:11:06Z")

</div>

Thanks @mpous, for Colombia we use AU915, the gateway continues to connect and disconnect from time to time, and these messages appear in the log.

 ![image](https://global.discourse-cdn.com/balena/original/2X/0/0e7c98615fdc5ed8a93ee3880830fd7b4317918d.png)

I stay tuned if you can help me validate what it may be

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [May 12, 2021, 8:07pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/30 "2021-05-12T20:07:36Z")

</div>

@johncaipa quick question! could you please confirm that the `RESET_PIN` is on pin 17 on your board? I think it is, as the concentrator starts properly… but the restarts are ugly.

About the drifts… I will check what’s happening.

Let’s see if anyone from the community have seen this as well!

---

<div class="post-metadata">

**Author:** ![johncaipa](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@johncaipa](https://forums.balena.io/u/johncaipa)\
**Post date:** [May 12, 2021, 10:40pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/31 "2021-05-12T22:40:40Z")

</div>

@mpous from the documentation that I could find online the GPIO connecting to RST is GPIO17

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [May 13, 2021, 11:39am UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/32 "2021-05-13T11:39:20Z")

</div>

Thanks @johncaipa currently i don’t have an SX1301 to test. Let’s see if anyone from the community can help to reproduce here

cc @xoseperez

---

<div class="post-metadata">

**Author:** ![ronyvargas](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@ronyvargas](https://forums.balena.io/u/ronyvargas)\
**Post date:** [May 13, 2021, 6:51pm UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/34 "2021-05-13T18:51:14Z")

</div>

Hi @johncaipa , in Panama we use US915 without issue, similar error I had before and it was related to the SPI\_SPEED variable not being properly parsed for some odd reason.  
I did removed the variable from that specific device config and it started the concentrator without issues and reported connected to TTN v3

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [May 20, 2021, 11:18am UTC](https://forums.balena.io/t/rak831-rpi3-gateway/303936/35 "2021-05-20T11:18:49Z")

</div>

Thanks @ronyvargas Do you think the concentrator from @johncaipa would start properly if he would have wrongly configured the `SPI_SPEED`?

John can you try with another Pi? I will try to introduce an issue on the github repository to keep researching on that.

[Next page](https://forums.balena.io/t/rak831-rpi3-gateway/303936.md?page=2)
