I just received a RAK7268 (non-LTE). It was not working out of the box; I tried to set it up as a lora basics station with ttnv3, but it just constantly connected and disconnected. I have now upgraded the firmware to 1.2.3_RAK rRAK-a6e14b0 and I get errors in the system log indicating that the concentrator cannot start:
Tue Nov 2 05:01:06 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:01:06 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:01:06 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:01:06 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:01:18 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:01:18 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:01:18 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:01:18 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:01:30 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:01:30 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:01:30 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:01:30 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:01:43 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:01:43 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:01:43 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:01:43 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:01:55 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:01:55 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:01:55 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:01:55 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:02:07 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:02:07 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:02:07 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:02:07 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:02:16 2021 kern.info quectel-CM[19389]: Cannot find qmichannel((null)) usbnet_adapter((null)) for Quectel modules
Tue Nov 2 05:02:18 2021 kern.info quectel-CM[24505]: WCDMA<E_QConnectManager_Linux&Android_V1.1.38
Tue Nov 2 05:02:18 2021 kern.info quectel-CM[24505]: /usr/sbin/quectel profile[1] = (null)/(null)/(null)/0, pincode = (null)
Tue Nov 2 05:02:18 2021 user.notice root: echo 1 > /sys/class/gpio/gpio0/value
Tue Nov 2 05:02:19 2021 user.notice root: echo 0 > /sys/class/gpio/gpio0/value
Tue Nov 2 05:02:19 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:02:19 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:02:19 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:02:19 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:02:32 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:02:32 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:02:32 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:02:32 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Tue Nov 2 05:02:44 2021 user.err basicstation[1761]: [RAL:ERRO] lgw_rxrf_setconf(1) failed
Tue Nov 2 05:02:44 2021 user.err basicstation[1761]: [RAL:ERRO] Concentrator start failed: lgw_rxrf_setconf
Tue Nov 2 05:02:44 2021 user.err basicstation[1761]: [RAL:ERRO] ral_config failed with status 0x08
Tue Nov 2 05:02:44 2021 user.err basicstation[1761]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
I just tried to reset the configuration again, and with the blank configuration the gateway does come up. However, once I enable the “Basics Station” mode (without changing any other settings, even leaving the password as the default), the same error in the logs come back. So it seems that the web interface is generating a broken configuration internally?
I am not sure of the best way to report this bug to RAK, but I’m guessing I need to send an email to them.
FWIW I also have several other gateways (RAK7258, RPi based, etc) that are working fine with AS923 and TTNv3.
Yes, network server mode also implicitly uses the legacy packet forwarder, pointed at the on-box bridge.
In terms of what’s in your logs, on the one hand an SX1302 chip seems like it’s being found and configured, but on the other, the packet forwarder process seems to be stopping and restarting a lot, which doesn’t look good.
It sort of looks like something’s sending SIGTERM (signal 15) to both loraserver and the packet forwarder - or was that you changing modes?
Another way of putting it would be that it might be useful to see if you can leave it running for 10-15 minutes and get some node uplink packets (or join requests) to show in the log, nevermind if they don’t trigger a response it would just be to make sure the radio was really stable.
Also if there are issues with the Internet connection that could be upsetting it.
If you have a look in the full gist log I linked, it shows a bunch of errors related to parsing the configuration file in the basics mode before going into the restart loop. So I’m almost certain that is the issue here.
Yes, the exit code was me changing modes.
Internet connection is not the issue, I have another lora basics station (RPi based) a few meters away on the same connection and it works fine.
Just to add to this, I have been running the gateway with the UDP packet forwarder for the last few hours (including with real traffic on AS923) and it has been working fine. So it definitely seems that there is something wrong with the basics station server or configuration.
if it could be useful, me too I am facing the same issue on my RAK 7258/7268 gateway fleet installed in the field.
The basic station configuration led to this log error:
Sun Nov 28 22:16:59 2021 user.debug basicstation[3046]: [RAL:VERB] Station device: /var/etc/station/spidev (PPS capture disabled)
Sun Nov 28 22:16:59 2021 user.err basicstation[3046]: [RAL:ERRO] Concentrator start failed: lgw_start
Sun Nov 28 22:16:59 2021 user.err basicstation[3046]: [RAL:ERRO] ral_config failed with status 0x08
Sun Nov 28 22:16:59 2021 user.err basicstation[3046]: [any:ERRO] Closing connection to muxs - error in s2e_onMsg
Sun Nov 28 22:16:59 2021 user.debug basicstation[3046]: [TCE:VERB] Connection to MUXS closed in state -1
If I unplug the gateway and then plug it again, the gateway in basic station mode starts working for a while, but then the error comes up and the gateway does not forward packets anymore.
The configuration in the screenshot above, actually works.
What I do not understand is the unpredictable error message
Concentrator start failed: lgw_start
ral_config failed with status 0x08
that make the gateway stop receiving and forwarding messaging.
Some gateways are still up and running, but several others gateways shows this error and rebooting the device is not enough to fix it. I have to unplug the power supply and the plug it again