# Seeed Studio LoRaWAN Gateway Kit with Raspberry Pi 3

**URL:** <https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797>\
**Category:** Product support\
**Tags:** raspberrypi3, lora\
**Created:** [October 20, 2021, 4:33pm UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797 "2021-10-20T16:33:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lapps](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lapps](https://forums.balena.io/u/lapps)\
**Post date:** [October 20, 2021, 4:33pm UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797/1 "2021-10-20T16:33:33Z")

</div>

Hello

I have one of theese kits and it has been disconnected for a while so I figured I’d reinstall and try out balena and connect it to ttn.  
Based on the SX1301.

Logs from console

```auto
<main> 2021-10-20 16:16:37.558 [any:INFO] ./tc.trust: 
<main> cert. version : 3
<main> serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
<main> issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
<main> subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
<main> issued on : 2000-09-30 21:12:19
<main> expires on : 2021-09-30 14:01:15
<main> signed using : RSA with SHA1
<main> RSA key size : 2048 bits
<main> basic constraints : CA=true
<main> key usage : Key Cert Sign, CRL Sign
<main> 2021-10-20 16:16:37.558 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
<main> 2021-10-20 16:16:37.655 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
<main> 2021-10-20 16:16:37.983 [TCE:INFO] Infos: b827:ebff:fe90:1ac7 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-B827EBFFFE901AC7
<main> 2021-10-20 16:16:37.983 [AIO:DEBU] [3] ws_close reason=1000
<main> 2021-10-20 16:16:37.983 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
<main> 2021-10-20 16:16:37.983 [AIO:DEBU] [3] WS connection shutdown...
<main> 2021-10-20 16:16:37.984 [any:INFO] ./tc.trust: 
<main> cert. version : 3
<main> serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
<main> issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
<main> subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
<main> issued on : 2000-09-30 21:12:19
<main> expires on : 2021-09-30 14:01:15
<main> signed using : RSA with SHA1
<main> RSA key size : 2048 bits
<main> basic constraints : CA=true
<main> key usage : Key Cert Sign, CRL Sign
<main> 2021-10-20 16:16:37.984 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
<main> 2021-10-20 16:16:38.041 [TCE:VERB] Connecting to MUXS...
<main> 2021-10-20 16:16:38.328 [TCE:VERB] Connected to MUXS.
<main> 2021-10-20 16:16:38.385 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
<main> 2021-10-20 16:16:38.386 [RAL:VERB] Connecting to device: /dev/spidev0.0
<main> 2021-10-20 16:16:38.386 [RAL:DEBU] SX130x txlut table (0 entries)
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=867.5MHz rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=868.5MHz rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 0: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 1: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 2: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 3: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 4: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 5: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 6: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 7: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 8: enable=1 rf_chain=1 freq=-200000 bandwidth=2 datarate=2 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX1301 ifchain 9: enable=1 rf_chain=1 freq=300000 bandwidth=3 datarate=50000 sync_word=0/0
<main> 2021-10-20 16:16:38.386 [RAL:VERB] SX130x LBT not enabled
<main> 2021-10-20 16:16:38.386 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
<main> 2021-10-20 16:16:38.387 [RAL:ERRO] Concentrator start failed: lgw_start
<main> 2021-10-20 16:16:38.387 [RAL:ERRO] ral_config failed with status 0x08
<main> 2021-10-20 16:16:38.387 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
<main> 2021-10-20 16:16:38.387 [AIO:DEBU] [3] ws_close reason=1000
<main> 2021-10-20 16:16:38.387 [AIO:DEBU] Echoing close - reason=1000
<main> 2021-10-20 16:16:38.442 [AIO:DEBU] [3|WS] Server sent close: reason=1000
<main> 2021-10-20 16:16:38.442 [AIO:DEBU] [3] WS connection shutdown...
<main> 2021-10-20 16:16:38.443 [TCE:VERB] Connection to MUXS closed in state -1
<main> 2021-10-20 16:16:38.443 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

```

Could it be related to reset pins, I remember having to use pin 7 before to get it up and running.  
The certificate that is expierd borthers me to but i doubt that the problem.

Variables settings (had to lower spi speed)

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

TTN says:

18:24:49  
Disconnect gateway

18:24:49  
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)"

18:24:49  
Connect gateway

18:24:38  
Disconnect gateway

regards  
Andreas

---

<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:** [October 21, 2021, 3:30pm UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797/3 "2021-10-21T15:30:38Z")

</div>

Hello Andreas, could you please confirm if your LoRa concentrator is SPI or USB? basicstation (at the moment) it’s only compatible with SPI LoRa concentrators. Thanks!

---

<div class="post-metadata">

**Author:** ![lapps](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lapps](https://forums.balena.io/u/lapps)\
**Post date:** [October 21, 2021, 3:59pm UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797/5 "2021-10-21T15:59:58Z")

</div>

Hello

SPI as far as I know, when running at default spi speed it complained about finding one firmware version but expecting another. That went away when lowering to 200000

Some info about the module.

> **[RisingHF LoRaWAN Gateway Module RHF0M301 EU868](https://market.thingpark.com/risinghf-lorawan-gateway-module-rhf0m301-eu868.html)**
>
> Price: EUR 130

---

<div class="post-metadata">

**Author:** ![lapps](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lapps](https://forums.balena.io/u/lapps)\
**Post date:** [October 21, 2021, 4:04pm UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797/6 "2021-10-21T16:04:00Z")

</div>

And it is not impossible that I have missed or been unable to figure something out in the configuration .

---

<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:** [October 25, 2021, 8:46am UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797/7 "2021-10-25T08:46:32Z")

</div>

@lapps could you please confirm that the `GW_RESET_GPIO` is `17` and the `GW_RESET_PIN` is `7`? I couldn’t find that on the documentation. Having said that what Raspberry Pi are you using?

Thanks!

---

<div class="post-metadata">

**Author:** ![lapps](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lapps](https://forums.balena.io/u/lapps)\
**Post date:** [November 9, 2021, 3:23pm UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797/10 "2021-11-09T15:23:33Z")

</div>

Hello, sorry for the late reply. 😕  
Totally missed this.

Using a raspbery pi 3 at the moment.  
A bit unsure about the reset pins and not quite sure how to verify it tho, lack of knowledge for starters…  
I have tested a bunch of combinations of the reset pins without success.

[https://wiki.seeedstudio.com/WM1302\_module/#difference-between-spi-version-and-usb-version](https://wiki.seeedstudio.com/WM1302_module/#difference-between-spi-version-and-usb-version)

Figures it could be 23 as well, but i think i have tested that.

---

<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:** [November 10, 2021, 10:39am UTC](https://forums.balena.io/t/seeed-studio-lorawan-gateway-kit-with-raspberry-pi-3/349797/12 "2021-11-10T10:39:00Z")

</div>

@lapps as far as i see on the link that you shared the pins may be:

```auto
# GPIO mapping has to be adapted with HW
#
 
SX1302_RESET_PIN=25 # SX1302 reset
SX1302_POWER_EN_PIN=18 # SX1302 power enable
SX1261_RESET_PIN=17 # SX1261 reset (LBT / Spectral Scan)
AD5338R_RESET_PIN=13 # AD5338R reset (full-duplex CN490 reference design)

```
