Deploy a LoRa Basics™ Station gateway with TTN and balena

thanks @Robert83

not sure if i remember well but related with this error

2025-05-14T11:00:22+02:00 <main> 2025-05-14 09:00:22.089 [TCE:INFO] Connecting to INFOS: wss://xiris.eu2.cloud.thethings.industries:8887
2025-05-14T11:00:22+02:00 <main> 2025-05-14 09:00:22.370 [TCE:INFO] Infos: b827:ebff:fe2a:93c2 muxs-::0 wss://xiris.eu2.cloud.thethings.industries:8887/traffic/eui-B827EBFFFE2A93C2
2025-05-14T11:00:22+02:00 <main> 2025-05-14 09:00:22.370 [AIO:DEBU] [3] ws_close reason=1000
2025-05-14T11:00:22+02:00 <main> 2025-05-14 09:00:22.370 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
2025-05-14T11:00:22+02:00 <main> 2025-05-14 09:00:22.370 [AIO:DEBU] [3] WS connection shutdown...

when you provision the gateway in TTI do you add the eui- part? is this needed?

Hi @mpous , good question. eui- part is neccessary. But in my case, one gateway is in Cloud and the other is is Sandbox. The only change to that one in Sandbox was upgrade of OS to the latest one. Gateway in created since Jul 19, 2021. So gw_id should be correct.

Both gateways have the same behaviour in TTN console:

At the moment, as a test could you please try the latest v6.5.24+rev1?

If it doesn’t work, i would say to move the gateway to any of the previous versions that worked. In the meantime I will explore what are the changes from versions.

Done already, but it is the same

Is it possible to get previous version - 6.5.21+rev2, for example? I would like to revert to older version for test.

@Robert83 thanks for testing!

actually it’s not possible to revert balenaOS versions, you need to flash a new sd card.

Marc, i have another gateway, running older version. 6.5.21+rev2. It is OK and online. It would be interesting to update it to the latest version but I’m afraid to lose third gateway. Do you have any idea how can we test without losing it?
Is there anything else I can do to make alive those two gateways?

Could you please confirm what application repo are you using and what lora concentrator? I will test this myself tomorrow!

Thanks

El dj., 15 de maig 2025, 13:23, Robert via balenaForums <notifications@balena.discoursemail.com> va escriure:

Did you mean this: robert_ambroz/tts_gw ?
I’m using:

  • RAK831 (two online and one not - xiris-gw-5000-01)
  • iMST iC880A (one online and one not - xiris-gw-5000-02)

Hi @mpous ,

I’ve upgraded both gateways to balenaOS 6.5.24+rev2, but still not starting. I’m afraid to upgrade others as I don’t want to kill them. Is there nay hope to find out why they don’t want to start?

Thank you!

Hi @mpous

this is old issue but still interesting - as I’ve found out, there is nothing wrong with hardware. If I install basic packet forwarder, all gateways works fine. Only in Balena I have this problem:

main 2025-08-23 11:53:53.019 [RAL:VERB] SX130x LBT not enabled
main 2025-08-23 11:53:53.019 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
main 2025-08-23 11:53:53.019 [RAL:ERRO] Concentrator start failed: lgw_start
main 2025-08-23 11:53:53.019 [RAL:ERRO] ral_config failed with status 0x08
main 2025-08-23 11:53:53.019 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
main 2025-08-23 11:53:53.020 [AIO:DEBU] [3] ws_close reason=1000
main 2025-08-23 11:53:53.020 [AIO:DEBU] Echoing close - reason=1000
main 2025-08-23 11:53:53.064 [AIO:DEBU] [3|WS] Server sent close: reason=1000
main 2025-08-23 11:53:53.065 [AIO:DEBU] [3] WS connection shutdown…
main 2025-08-23 11:53:53.065 [TCE:VERB] Connection to MUXS closed in state -1
main 2025-08-23 11:53:53.065 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

It seems there is something wrong with reset of SX1301:

main Resetting gateway concentrator on GPIO 25

main ./start_sx1301.sh: line 18: echo: write error: Invalid argument

main ./start_sx1301.sh: line 19: /sys/class/gpio/gpio25/direction: No such file or directory

main ./start_sx1301.sh: line 20: /sys/class/gpio/gpio25/value: No such file or directory

Service exited ‘main sha256:740f7f022a9d222d506fdafbcca98afca269718858a67561703fd4060b8e7f28’

Releasing update locks

main ./start_sx1301.sh: line 22: /sys/class/gpio/gpio25/value: No such file or directory

main ./start_sx1301.sh: line 24: /sys/class/gpio/gpio25/value: No such file or directory

main ./start_sx1301.sh: line 26: echo: write error: Invalid argument

Do you have any solution for this?