RAK7268 not working out of box

Hi,

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

The full log is available here: RAK7268 startup error log · GitHub

I have reset the configuration to factory settings, and then set the frequency plan to AS923. Finally, I registered the gateway on TTN according to this guide: RAK7268 Supported LoRa Network Servers | RAKwireless Documentation Center

The gateway does show up on TTN and then disconnects quickly after:

Overview_-j-west-end-2-_The_Things_Stack

Could you please help me understand what I am doing wrong?

Hi,

I just started mine yesterday without issue. The only difference is that I’m in Europe so I have an EU868 version (non-LTE too).

Can you post your LoRa config (don’t forget to hide your token :wink: )

My device doesn’t allow me to select EU868, but I tried US902 and it gives the same error.

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.

If you’re saying it works in a classic packet forwarder mode (vs basicstation) a log of that would be interesting.

No, when the device starts up it is in network server mode, not packet forwarding mode. Here is the log when I switch it back to network server mode:

Tue Nov  2 21:58:29 2021 user.notice lora_pkt_fwd[22025]: INFO: Parse SX1302 configuration successful. SX1302 counter: 1
Tue Nov  2 21:58:29 2021 user.notice lora_pkt_fwd[22025]: INFO: Parse SX1276 configuration successful. SX1276 counter: 0
Tue Nov  2 21:58:30 2021 daemon.info loraSrv[22077]: Initializing signal handlers
Tue Nov  2 21:58:30 2021 daemon.info evloop[22077]: evloopInit Done.
Tue Nov  2 21:58:30 2021 daemon.info md[22077]: mdInit Done.
Tue Nov  2 21:58:30 2021 user.notice breathing_light: set breathing light to NORMAL
Tue Nov  2 21:58:30 2021 daemon.info mqttEv[22077]: mqttEvInit Done.
Tue Nov  2 21:58:30 2021 daemon.info unknown[22077]: gwManagerInit: Init gateway Manager
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: gwBridgeConfigInit: New Gateway ac1f09fffe057a5a
Tue Nov  2 21:58:31 2021 daemon.info gwManager[22077]: gwBridgeCreateGateway: Create Gateway ac1f09fffe057a5a
Tue Nov  2 21:58:31 2021 daemon.info bufrd[22077]: bufrdInit Done.
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: MQTT Init Start
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: Mqtt - version 3.1
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: Mqtt - Client ID gwbackend-ac1f09fffe057a5a
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: Mqtt - Retain 0
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: Mqtt - Clean Session 1
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: Mqtt - Qos 1
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: Mqtt - keepalive 10
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: mqttEvRegister : Register mosquitto event [gwBridgeS Mqtt Client]
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: MQTT Init Done
Tue Nov  2 21:58:31 2021 daemon.err db[22077]: MoteChannelStorage size 112
Tue Nov  2 21:58:31 2021 daemon.info db[22077]: Valid db File /mnt/mmcblk0p1/lorasrv/mote_db
Tue Nov  2 21:58:31 2021 daemon.info nwkSrv[22077]: Disable Frame-counter Validate : false
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 8 - 903900000; ChannelsMask[0] = 0100
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 9 - 904100000; ChannelsMask[0] = 0300
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 10 - 904300000; ChannelsMask[0] = 0700
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 11 - 904500000; ChannelsMask[0] = 0F00
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 12 - 904700000; ChannelsMask[0] = 1F00
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 13 - 904900000; ChannelsMask[0] = 3F00
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 14 - 905100000; ChannelsMask[0] = 7F00
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 15 - 905300000; ChannelsMask[0] = FF00
Tue Nov  2 21:58:31 2021 daemon.err unknown[22077]: us915_band_add_channel : Enable Channel 65 - 904600000; ChannelsMask[4] = 0002
Tue Nov  2 21:58:31 2021 daemon.info lorawan[22077]: LoRaMAC Params - RECEIVE_DELAY1 1000000 us
Tue Nov  2 21:58:31 2021 daemon.info lorawan[22077]: LoRaMAC Params - RX1DrOffset 0
Tue Nov  2 21:58:31 2021 daemon.info lorawan[22077]: LoRaMAC Params - RX2 Window Channel 923300000 DR 8
Tue Nov  2 21:58:31 2021 daemon.info lorawan[22077]: LoRaMac Params - UplinkDwellTime 0
Tue Nov  2 21:58:31 2021 daemon.info lorawan[22077]: LoRaMac Params - DownlinkDwellTime 0
Tue Nov  2 21:58:31 2021 daemon.info lorawan[22077]: LoRaMac Params - Max EIRP 0
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: mqttEvRegister : Register mosquitto event [AppSrv Local Mqtt Client]
Tue Nov  2 21:58:31 2021 daemon.info appSrv[22077]: appLocalMosqInit: local mosq init done
Tue Nov  2 21:58:31 2021 daemon.info evloop[22077]: ENTER evloopRun
Tue Nov  2 21:58:31 2021 daemon.info appSrv[22077]: appLocalMqttConnectCB: [AppSrv Local Mqtt Client] Connect Success ...
Tue Nov  2 21:58:31 2021 daemon.info appSrv[22077]: appMqttConnectCB: [AppSrv Mqtt Client] Connect Success ...
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: [AppSrv Mqtt Client] subscribe application/+/device/+/tx - QOS 1
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: [AppSrv Mqtt Client] subscribe mcast_group/+/tx - QOS 1
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: [AppSrv Mqtt Client] subscribe api/request - QOS 1
Tue Nov  2 21:58:31 2021 daemon.info gwBridge[22077]: mosqConnectCB: Mqtt Connect Success ...
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: [gwBridgeS Mqtt Client] subscribe gateway/+/rx - QOS 1
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: [gwBridgeS Mqtt Client] subscribe gateway/+/stats - QOS 1
Tue Nov  2 21:58:31 2021 daemon.info mqttEv[22077]: [gwBridgeS Mqtt Client] subscribe gateway/+/ack - QOS 1
Tue Nov  2 21:58:31 2021 daemon.info appSrv[22077]: [AppSrv Mqtt Client]:subscribe success - mid [1] - qos_count [1] - granted_qos [1]
Tue Nov  2 21:58:31 2021 daemon.info appSrv[22077]: [AppSrv Mqtt Client]:subscribe success - mid [2] - qos_count [1] - granted_qos [1]
Tue Nov  2 21:58:31 2021 daemon.info appSrv[22077]: [AppSrv Mqtt Client]:subscribe success - mid [3] - qos_count [1] - granted_qos [1]
Tue Nov  2 21:58:32 2021 user.notice lora_pkt_fwd[22025]: INFO: [main] SX1301/SX1302 concentrator started, packet can now be received
Tue Nov  2 21:58:57 2021 kern.info quectel-CM[19001]: Cannot find qmichannel((null)) usbnet_adapter((null)) for Quectel modules
Tue Nov  2 21:58:59 2021 kern.info quectel-CM[23887]: WCDMA<E_QConnectManager_Linux&Android_V1.1.38
Tue Nov  2 21:58:59 2021 kern.info quectel-CM[23887]: /usr/sbin/quectel profile[1] = (null)/(null)/(null)/0, pincode = (null)
Tue Nov  2 21:58:59 2021 user.notice root: echo 1 > /sys/class/gpio/gpio0/value
Tue Nov  2 21:59:00 2021 user.notice root: echo 0 > /sys/class/gpio/gpio0/value
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: 
##### 2021-11-02 21:59:12 UTC #####
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: ### [UPSTREAM] ###
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # RF packets received by concentrator: 0
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # CRC_OK: 0.00, CRC_FAIL: 0.00, NO_CRC: 0.00
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # RF packets forwarded: 0 (0 bytes)
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # PUSH_DATA datagrams sent: 0 (0 bytes)
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # PUSH_DATA acknowledged: 0.00
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: ### [DOWNSTREAM] ###
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # PULL_DATA sent: 6 (100.00 acknowledged)
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # RF packets sent to concentrator: 0 (0 bytes)
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # SX1301/SX1302 time (PPS): 0, offset us 0
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: ### [GPS] ###
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: # GPS sync is disabled
Tue Nov  2 21:59:12 2021 user.notice lora_pkt_fwd[22025]: ##### END #####
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: 
##### 2021-11-02 21:59:42 UTC #####
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: ### [UPSTREAM] ###
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # RF packets received by concentrator: 0
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # CRC_OK: 0.00, CRC_FAIL: 0.00, NO_CRC: 0.00
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # RF packets forwarded: 0 (0 bytes)
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # PUSH_DATA datagrams sent: 1 (133 bytes)
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # PUSH_DATA acknowledged: 100.00
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: ### [DOWNSTREAM] ###
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # PULL_DATA sent: 6 (100.00 acknowledged)
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # RF packets sent to concentrator: 0 (0 bytes)
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # SX1301/SX1302 time (PPS): 0, offset us 0
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: ### [GPS] ###
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: # GPS sync is disabled
Tue Nov  2 21:59:42 2021 user.notice lora_pkt_fwd[22025]: ##### END #####

I just checked however, and the legacy packet forwarder does work:

Tue Nov  2 22:00:55 2021 user.notice lora_pkt_fwd[22025]: INFO: concentrator stopped successfully
Tue Nov  2 22:00:55 2021 user.notice lora_pkt_fwd[22025]: INFO: Exiting packet forwarder program
Tue Nov  2 22:00:56 2021 user.notice breathing_light: set breathing light to ABNORMAL
Tue Nov  2 22:00:56 2021 user.notice lora_pkt_fwd[31042]: INFO: Parse SX1302 configuration successful. SX1302 counter: 1
Tue Nov  2 22:00:56 2021 user.notice lora_pkt_fwd[31042]: INFO: Parse SX1276 configuration successful. SX1276 counter: 0
Tue Nov  2 22:00:56 2021 daemon.info loraSrv[22077]: Handler for termination caught signal 15
Tue Nov  2 22:00:56 2021 daemon.info loraSrv[22077]: Exiting...
Tue Nov  2 22:00:56 2021 daemon.info evloop[22077]: LEAVE evloopRun
Tue Nov  2 22:00:58 2021 user.notice breathing_light: set breathing light to NORMAL
Tue Nov  2 22:00:59 2021 user.notice lora_pkt_fwd[31042]: INFO: [main] SX1301/SX1302 concentrator started, packet can now be received
Tue Nov  2 22:01:07 2021 daemon.info loraSrv[30863]: Handler for termination caught signal 15
Tue Nov  2 22:01:07 2021 daemon.info loraSrv[30863]: Exiting...
Tue Nov  2 22:01:07 2021 daemon.info evloop[30863]: LEAVE evloopRun
Tue Nov  2 22:01:08 2021 user.notice lora_pkt_fwd[31042]: INFO: concentrator stopped successfully
Tue Nov  2 22:01:08 2021 user.notice lora_pkt_fwd[31042]: INFO: Exiting packet forwarder program
Tue Nov  2 22:01:09 2021 user.notice lora_pkt_fwd[31998]: INFO: Parse SX1302 configuration successful. SX1302 counter: 1
Tue Nov  2 22:01:09 2021 user.notice lora_pkt_fwd[31998]: INFO: Parse SX1276 configuration successful. SX1276 counter: 0
Tue Nov  2 22:01:12 2021 user.notice lora_pkt_fwd[31998]: INFO: [main] SX1301/SX1302 concentrator started, packet can now be received
Tue Nov  2 22:01:15 2021 user.notice aws: startsvc
Tue Nov  2 22:01:30 2021 kern.info quectel-CM[28462]: Cannot find qmichannel((null)) usbnet_adapter((null)) for Quectel modules
Tue Nov  2 22:01:32 2021 kern.info quectel-CM[845]: WCDMA<E_QConnectManager_Linux&Android_V1.1.38
Tue Nov  2 22:01:32 2021 kern.info quectel-CM[845]: /usr/sbin/quectel profile[1] = (null)/(null)/(null)/0, pincode = (null)
Tue Nov  2 22:01:32 2021 user.notice root: echo 1 > /sys/class/gpio/gpio0/value
Tue Nov  2 22:01:33 2021 user.notice root: echo 0 > /sys/class/gpio/gpio0/value
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: 
##### 2021-11-02 22:01:52 UTC #####
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: ### [UPSTREAM] ###
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # RF packets received by concentrator: 0
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # CRC_OK: 0.00, CRC_FAIL: 0.00, NO_CRC: 0.00
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # RF packets forwarded: 0 (0 bytes)
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # PUSH_DATA datagrams sent: 0 (0 bytes)
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # PUSH_DATA acknowledged: 0.00
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: ### [DOWNSTREAM] ###
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # PULL_DATA sent: 6 (100.00 acknowledged)
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # RF packets sent to concentrator: 0 (0 bytes)
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # TX errors: 0
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # BEACON queued: 0
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # BEACON sent so far: 0
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # BEACON rejected: 0
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: ### [JIT] ###
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # SX1301/SX1302 time (PPS): 0, offset us 0
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: ### [GPS] ###
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: # GPS sync is disabled
Tue Nov  2 22:01:52 2021 user.notice lora_pkt_fwd[31998]: ##### END #####

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.

1 Like

Just to be just sure (I made this mistake with my gateway) : for the token field, do you put a space between “Authorization:” and the token ?

Authorization:XXXXXXX => fails
Authorization: XXXXXXX => Works

Yes, I did have a space.

Hi,

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.

Firmware verions 1.2.2 or 1.2.3

Any hints?

Thank you

Hi, like jeremy, can you send a screenshot of your configuration ?

RAK7258 model (7268 gateway are identically configured):

The gateway are attached to WisDM.

Take a look at the URI : it’s wss:// not https://
And select LNS and port 8887

the URI is wss:// and port 8887 in basic station LNS mode.

But if you want to use all features of basic station with CUPS server mode, the uri should be https 443.
Ref: Configuration and Update Server (CUPS) | The Things Stack for LoRaWAN

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

Hello @hostmaster,

Can you DM send me full log of the gateway, as I cannot reproduce this issue.