Deploying a LoRaWAN gateway running the Basics™ Station Semtech Packet Forward protocol as a balena.io application.

Hello,

I am new to balena and I’m trying to deploy a LoRaWAN gateway running the Basics™ Station Semtech Packet Forward protocol as a balena.io application.
I have followed this guide for setting up: GitHub - xoseperez/basicstation-docker: Basics™ Station Packet Forward protocol using Docker and I have SX1308 Picocell gateway connected to a cm4.

On the balena dashboard, I am getting this error:

and on the things stack, the gateway connects and disconnects almost immediately:

I have tried to troubleshoot but I haven’t been successful. Could anyone please help me?

Hello @Emily thanks for your message!

It looks like the basicstation service is in a restarting loop. Could you please confirm the hardware that you are using? Could you also please share the Device Variables that you have defined?

Maybe @xoseperez can also help here!

Thanks

Thanks @mpous for responding.

I am using SX1308P868GW picocell gateway that I am connecting to a Rpi Compute module 4.
In terms of device variables:

Hello @Emily
Can you share the full log of the service between reboots? It’s hard to see what’s wrong without more info…

Hi @xoseperez
Sure,

Here’s the log file.
pet-tracking_floral-fin-2024-05-02t14_19_45+02_00.txt (100.4 KB)

Well, the log does not provide much info…

I very much doubt the device is at /dev/ttyAMA0. How do you connect the module to the CM4? What carrier board are you using You can try set the DEVICE variable to AUTO and let the service try to find the device, it will probably be in /dev/ttyUSBx.

1 Like

Hi @xoseperez , I have connected the module to the CM4 board through a USB port.
If I set the device variable to AUTO, I get this:

Hi @Emily
Are you sure you are using the latest version of the basicstation app? Autodiscover is available since 2.8.0

I’m using release 2.7.0

And in the settings, I have:

Hi @xoseperez ,

I updated the release to 2.8.3.

These are my devices and connected via USB port:


I set the model to SX1308, Interface to USB, and Device to auto, but I am getting this error:

Please advise on the way forward.

Thanks.

Ah, probably it’s because the USB2 interface is disabled by default on the CM4. You must add dtoverlay=dwc2,dr_mode=host to the config.txt file.
See Balena CM4 IO Board image: usb support - #6 by nmx
Can also be done from the dashboard under the device configuration option.

Overwriting this or defining new configs?

1 Like

Yes @Emily

Feel free to read more here Advanced boot settings - Balena Documentation

Hi @xoseperez and @mpous ,

Thanks for the support thus far.

I have updated the above through the device configuration option:

But then we are back to the initial problem. I still have the gateway re-starting and getting the error killing process ## as shown in the log files:
pet-tracking_floral-fin-2024-05-09t16_43_24+02_00.txt (102.2 KB)

Please let me know what else to check.
Thanks.

Hi @xoseperez , @mpous,

Any advice on the above?