RAK 831 + Rasp ERROR: [main] failed to start the concentrator

I found problem to start RAK831 gateway
Normally I use freq: 923-925 Mhz as a long time no problem heppen
but last 2 day ago Resin.io show status “02:09:10 ERROR: [main] failed to start the concentrator”

I try to change router server to another but error that still show
but If I change freg plan to 915 mhz Gateway start normally

How I can solve this problem?

Click to see the full logs

**ERROR when use freg 923-925mhz**
[TTN Gateway]: Resetting concentrator on pin 11
 main  02:09:09  *** Multi Protocol Packet Forwarder for Lora Gateway ***
 main  Version: 3.0.20
 main  02:09:09  *** Lora concentrator HAL library version info ***
 main  Version: 5.0.1; Options: native;
 main  ***
 main  02:09:09  INFO: Little endian host
 main  02:09:09  INFO: found global configuration file /opt/ttn-gateway//global_conf.json, parsing it
 main  02:09:09  INFO: /opt/ttn-gateway//global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
 main  02:09:09  INFO: lorawan_public 1, clksrc 1
 main  02:09:09  INFO: 8 LBT channels configured
 main  02:09:09  INFO: antenna_gain 0 dBi
 main  02:09:09  INFO: Configuring TX LUT with 16 indexes
 main  02:09:09  INFO: radio 0 enabled (type SX1257), center frequency 923000000, RSSI offset -166.000000, tx enabled 1
 main  02:09:09  INFO: radio 1 enabled (type SX1257), center frequency 922000000, RSSI offset -166.000000, tx enabled 0
 main  02:09:09  INFO: Lora multi-SF channel 0>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora multi-SF channel 1>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora multi-SF channel 2>  radio 1, IF 200000 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora multi-SF channel 3>  radio 1, IF 400000 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora multi-SF channel 4>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora multi-SF channel 5>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora multi-SF channel 6>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora multi-SF channel 7>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
 main  02:09:09  INFO: Lora std channel> radio 1, IF 100000 Hz, 250000 Hz bw, SF 7
 main  02:09:09  INFO: FSK channel> radio 1, IF -200000 Hz, 125000 Hz bw, 50000 bps datarate
 main  02:09:09  INFO: /opt/ttn-gateway//global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
 main  02:09:09  INFO: gateway MAC address is configured to B827EBFFFE847121
 main  02:09:09  INFO: Found 1 servers in array.
 main  02:09:09  INFO: Server 0 configured to "bridge.asia-se.thethings.network"
 main  02:09:09  INFO: filename for statistical performance is configured to "loragwstat.json"
 main  02:09:09  INFO: packets received with a valid CRC will be forwarded
 main  02:09:09  INFO: packets received with a CRC error will NOT be forwarded
 main  02:09:09  INFO: packets received with no CRC will NOT be forwarded
 main  02:09:09  INFO: Reference latitude is configured to 16.662141 deg
 main  02:09:09  INFO: Reference longitude is configured to 99.586428 deg
 main  02:09:09  INFO: Reference altitude is configured to 0 meters
 main  02:09:09  INFO: GPS is enabled
 main  02:09:09  INFO: Using fake GPS coordinates instead of real.
 main  02:09:09  INFO: Upstream data is enabled
 main  02:09:09  INFO: Downstream data is enabled
 main  02:09:09  INFO: Ghoststream data is disabled
 main  02:09:09  INFO: Radiostream data is enabled
 main  02:09:09  INFO: Statusstream data is enabled
 main  02:09:09  INFO: Beacon is disabled
 main  02:09:09  INFO: Packet logger is disabled
 main  02:09:09  INFO: Flush output after statistic is disabled
 main  02:09:09  INFO: Flush after each line of output is disabled
 main  02:09:09  INFO: Watchdog is disabled
 main  02:09:09  INFO: Contact email configured to ""
 main  02:09:09  INFO: Description configured to "RAK Pilot Gateway "
 main  02:09:09  INFO: [Transports] Initializing protocol for 1 servers
 main  02:09:10  INFO: [TTN] server "bridge.asia-se.thethings.network" connected
 main  02:09:10  INFO: [main] Starting the concentrator
 main  02:09:10  ERROR: [main] failed to start the concentrator


**Work Normally when use freq 915 mhz**
*** Resin Machine Info:
 main  *** Type: None
 main  *** Arch: None
 main  *******************
 main  *** Configuration:
 main  *******************
 main  GW_EUI: *****
 main  Enabling TTN gateway connector
 main  *******************
 main  *** Fetching config from TTN account server
 main  *******************
 main  Gateway ID:     *****
 main  Gateway Key:     ******
 main  Frequency plan:          AU_915_928
 main  Frequency plan url:      https://account.thethingsnetwork.org/api/v2/frequency-plans/AU_915_928
 main  Gateway description:     RAK Pilot Gateway 
 main  Gateway placement:       indoor
 main  Router:                  bridge.asia-se.thethings.network
 main  
 main  Fallback routers:
 main   mqtts://bridge.eu.thethings.network:8882
 main   mqtts://bridge.us-west.thethings.network
 main   mqtts://bridge.brazil.thethings.network
 main  Latitude:                16.66214098
 main  Longitude:               99.58642836
 main  Altitude:                0
 main  Gateway EUI:     B827EBFFFE847121
 main  Has hardware GPS:        False
 main  Hardware GPS port:       /dev/ttyAMA0
 main  Using fake GPS
 main  [TTN Gateway]: Resetting concentrator on pin 11
 main  02:14:24  *** Multi Protocol Packet Forwarder for Lora Gateway ***
 main  Version: 3.0.20
 main  02:14:24  *** Lora concentrator HAL library version info ***
 main  Version: 5.0.1; Options: native;
 main  ***
 main  02:14:24  INFO: Little endian host
 main  02:14:24  INFO: found global configuration file /opt/ttn-gateway//global_conf.json, parsing it
 main  02:14:24  INFO: /opt/ttn-gateway//global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
 main  02:14:24  INFO: lorawan_public 1, clksrc 1
 main  02:14:24  INFO: no configuration for LBT
 main  02:14:24  INFO: antenna_gain 0 dBi
 main  02:14:24  INFO: Configuring TX LUT with 16 indexes
 main  02:14:24  INFO: radio 0 enabled (type SX1257), center frequency 917200000, RSSI offset -166.000000, tx enabled 1
 main  02:14:24  INFO: radio 1 enabled (type SX1257), center frequency 917900000, RSSI offset -166.000000, tx enabled 0
 main  02:14:24  INFO: Lora multi-SF channel 0>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora multi-SF channel 1>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora multi-SF channel 2>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora multi-SF channel 3>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora multi-SF channel 4>  radio 1, IF -300000 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora multi-SF channel 5>  radio 1, IF -100000 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora multi-SF channel 6>  radio 1, IF 100000 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora multi-SF channel 7>  radio 1, IF 300000 Hz, 125 kHz bw, SF 7 to 12
 main  02:14:24  INFO: Lora std channel> radio 0, IF 300000 Hz, 500000 Hz bw, SF 8
 main  02:14:24  INFO: FSK channel 8 disabled
 main  02:14:24  INFO: /opt/ttn-gateway//global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
 main  02:14:24  INFO: gateway MAC address is configured to B827EBFFFE847121
 main  02:14:24  INFO: Found 1 servers in array.
 main  02:14:24  INFO: Server 0 configured to "bridge.asia-se.thethings.network"
 main  02:14:24  INFO: filename for statistical performance is configured to "loragwstat.json"
 main  02:14:24  INFO: packets received with a valid CRC will be forwarded
 main  02:14:24  INFO: packets received with a CRC error will NOT be forwarded
 main  02:14:24  INFO: packets received with no CRC will NOT be forwarded
 main  02:14:24  INFO: Reference latitude is configured to 16.662141 deg
 main  02:14:24  INFO: Reference longitude is configured to 99.586428 deg
 main  02:14:24  INFO: Reference altitude is configured to 0 meters
 main  02:14:24  INFO: GPS is enabled
 main  02:14:24  INFO: Using fake GPS coordinates instead of real.
 main  02:14:24  INFO: Upstream data is enabled
 main  02:14:24  INFO: Downstream data is enabled
 main  02:14:24  INFO: Ghoststream data is disabled
 main  02:14:24  INFO: Radiostream data is enabled
 main  02:14:24  INFO: Statusstream data is enabled
 main  02:14:24  INFO: Beacon is disabled
 main  02:14:24  INFO: Packet logger is disabled
 main  02:14:24  INFO: Flush output after statistic is disabled
 main  02:14:24  INFO: Flush after each line of output is disabled
 main  02:14:24  INFO: Watchdog is disabled
 main  02:14:24  INFO: Contact email configured to ""
 main  02:14:24  INFO: Description configured to "RAK Pilot Gateway "
 main  02:14:24  INFO: [Transports] Initializing protocol for 1 servers
 main  02:14:24  INFO: [TTN] server "bridge.asia-se.thethings.network" connected
 main  02:14:24  INFO: [main] Starting the concentrator
 main  02:14:27  INFO: [main] concentrator started, radio packets can now be received.
 main  02:14:27  INFO: [up] Thread activated for all servers.
 main  02:14:27  INFO: Disabling GPS mode for concentrator's counter...
 main  02:14:27  INFO: host/sx1301 time offset=(1564280065s:370111µs) - drift=1436559359µs
 main  02:14:27  INFO: Enabling GPS mode for concentrator's counter.
 main  
 main  02:14:27  INFO: JIT thread activated.
 main  
 main  ##### 2019-07-28 02:14:57 GMT #####
 main  ### [UPSTREAM] ###
 main  # RF packets received by concentrator: 0
 main  # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
 main  # RF packets forwarded: 0 (0 bytes)
 main  # PUSH_DATA datagrams sent: 0 (0 bytes)
 main  # PUSH_DATA acknowledged: 0.00%
 main  ### [DOWNSTREAM] ###
 main  # PULL_DATA sent: 0 (0.00% acknowledged)
 main  # PULL_RESP(onse) datagrams received: 0 (0 bytes)
 main  # RF packets sent to concentrator: 0 (0 bytes)
 main  # TX errors: 0
 main  ### BEACON IS DISABLED! 
 main  ### [JIT] ###
 main  # INFO: JIT queue contains 0 packets.
 main  # INFO: JIT queue contains 0 beacons.
 main  ### [GPS] ###
 main  # No time keeping possible due to fake gps.
 main  # Manual GPS coordinates: latitude 16.66214, longitude 99.58643, altitude 0 m
 main  ### [PERFORMANCE] ###
 main  # Upstream radio packet quality: 0.00%.
 main  ### [ CONNECTIONS ] ###
 main  # bridge.asia-se.thethings.network: Connected
 main  # Semtech status report send. 
 main  ##### END #####
 main  02:14:57  INFO: [TTN] bridge.asia-se.thethings.network RTT 43
 main  02:14:57  INFO: [TTN] send status success for bridge.asia-se.thethings.network
 main  02:15:27  INFO: Disabling GPS mode for concentrator's counter...
 main  02:15:27  INFO: host/sx1301 time offset=(1564280065s:370203µs) - drift=92µs
 main  02:15:27  INFO: Enabling GPS mode for concentrator's counter.
 main  
 main  
 main  ##### 2019-07-28 02:15:27 GMT #####
 main  ### [UPSTREAM] ###
 main  # RF packets received by concentrator: 0
 main  # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
 main  # RF packets forwarded: 0 (0 bytes)
 main  # PUSH_DATA datagrams sent: 0 (0 bytes)
 main  # PUSH_DATA acknowledged: 0.00%
 main  ### [DOWNSTREAM] ###
 main  # PULL_DATA sent: 0 (0.00% acknowledged)
 main  # PULL_RESP(onse) datagrams received: 0 (0 bytes)
 main  # RF packets sent to concentrator: 0 (0 bytes)
 main  # TX errors: 0
 main  ### BEACON IS DISABLED! 
 main  ### [JIT] ###
 main  # INFO: JIT queue contains 0 packets.
 main  # INFO: JIT queue contains 0 beacons.
 main  ### [GPS] ###
 main  # No time keeping possible due to fake gps.
 main  # Manual GPS coordinates: latitude 16.66214, longitude 99.58643, altitude 0 m
 main  ### [PERFORMANCE] ###
 main  # Upstream radio packet quality: 0.00%.
 main  ### [ CONNECTIONS ] ###
 main  # bridge.asia-se.thethings.network: Connected
 main  # Semtech status report send. 
 main  ##### END #####
 main  02:15:27  INFO: [TTN] bridge.asia-se.thethings.network RTT 43
 main  02:15:27  INFO: [TTN] send status success for bridge.asia-se.thethings.network
 main  
 main  ##### 2019-07-28 02:15:57 GMT #####
 main  ### [UPSTREAM] ###
 main  # RF packets received by concentrator: 1
 main  # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
 main  # RF packets forwarded: 0 (0 bytes)
 main  # PUSH_DATA datagrams sent: 0 (0 bytes)
 main  # PUSH_DATA acknowledged: 0.00%
 main  ### [DOWNSTREAM] ###
 main  # PULL_DATA sent: 0 (0.00% acknowledged)
 main  # PULL_RESP(onse) datagrams received: 0 (0 bytes)
 main  # RF packets sent to concentrator: 0 (0 bytes)
 main  # TX errors: 0
 main  ### BEACON IS DISABLED! 
 main  ### [JIT] ###
 main  # INFO: JIT queue contains 0 packets.
 main  # INFO: JIT queue contains 0 beacons.
 main  ### [GPS] ###
 main  # No time keeping possible due to fake gps.
 main  # Manual GPS coordinates: latitude 16.66214, longitude 99.58643, altitude 0 m
 main  ### [PERFORMANCE] ###
 main  # Upstream radio packet quality: 0.00%.
 main  ### [ CONNECTIONS ] ###
 main  # bridge.asia-se.thethings.network: Connected
 main  # Semtech status report send. 
 main  ##### END #####
 main  02:15:57  INFO: [TTN] bridge.asia-se.thethings.network RTT 46
 main  02:15:57  INFO: [TTN] send status success for bridge.asia-se.thethings.network

How are you managing the concentartors’s reset?

For the configuration that works, can you repeatedly kill it and restart it reliably?

I try to restart from belena.io but it not work properly

Click to see the full logs

Killing service 'main sha256:4b4f0a80197cea1f6a1b0d95a4c73d6d16156c73bd17488ae8243e8f3b1b8df0'
Killed service 'main sha256:4b4f0a80197cea1f6a1b0d95a4c73d6d16156c73bd17488ae8243e8f3b1b8df0'
Rebooting
Service exited 'main sha256:4b4f0a80197cea1f6a1b0d95a4c73d6d16156c73bd17488ae8243e8f3b1b8df0'
Service is already running 'main sha256:4b4f0a80197cea1f6a1b0d95a4c73d6d16156c73bd17488ae8243e8f3b1b8df0'
 main  [TTN Gateway]: Resetting concentrator on pin 11
 main  03:45:14  *** Multi Protocol Packet Forwarder for Lora Gateway ***
 main  Version: 3.0.20
 main  03:45:14  *** Lora concentrator HAL library version info ***
 main  Version: 5.0.1; Options: native;
 main  ***
 main  03:45:14  INFO: Little endian host
 main  03:45:14  INFO: found global configuration file /opt/ttn-gateway//global_conf.json, parsing it
 main  03:45:14  INFO: /opt/ttn-gateway//global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
 main  03:45:14  INFO: lorawan_public 1, clksrc 1
 main  03:45:14  INFO: 8 LBT channels configured
 main  03:45:14  INFO: antenna_gain 0 dBi
 main  03:45:14  INFO: Configuring TX LUT with 16 indexes
 main  03:45:14  INFO: radio 0 enabled (type SX1257), center frequency 923600000, RSSI offset -166.000000, tx enabled 1
 main  03:45:14  INFO: radio 1 enabled (type SX1257), center frequency 924600000, RSSI offset -166.000000, tx enabled 0
 main  03:45:14  INFO: Lora multi-SF channel 0>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora multi-SF channel 1>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora multi-SF channel 2>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora multi-SF channel 3>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora multi-SF channel 4>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora multi-SF channel 5>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora multi-SF channel 6>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora multi-SF channel 7>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
 main  03:45:14  INFO: Lora std channel> radio 1, IF -100000 Hz, 250000 Hz bw, SF 7
 main  03:45:14  INFO: FSK channel> radio 1, IF 200000 Hz, 125000 Hz bw, 50000 bps datarate
 main  03:45:14  INFO: /opt/ttn-gateway//global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
 main  03:45:14  INFO: gateway MAC address is configured to B827EBFFFE847121
 main  03:45:14  INFO: Found 1 servers in array.
 main  03:45:14  INFO: Server 0 configured to "router.thethingsnetwork.jp"
 main  03:45:14  INFO: filename for statistical performance is configured to "loragwstat.json"
 main  03:45:14  INFO: packets received with a valid CRC will be forwarded
 main  03:45:14  INFO: packets received with a CRC error will NOT be forwarded
 main  03:45:14  INFO: packets received with no CRC will NOT be forwarded
 main  03:45:14  INFO: Reference latitude is configured to 16.662141 deg
 main  03:45:14  INFO: Reference longitude is configured to 99.586428 deg
 main  03:45:14  INFO: Reference altitude is configured to 0 meters
 main  03:45:14  INFO: GPS is enabled
 main  03:45:14  INFO: Using fake GPS coordinates instead of real.
 main  03:45:14  INFO: Upstream data is enabled
 main  03:45:14  INFO: Downstream data is enabled
 main  03:45:14  INFO: Ghoststream data is disabled
 main  03:45:14  INFO: Radiostream data is enabled
 main  03:45:14  INFO: Statusstream data is enabled
 main  03:45:14  INFO: Beacon is disabled
 main  03:45:14  INFO: Packet logger is disabled
 main  03:45:14  INFO: Flush output after statistic is disabled
 main  03:45:14  INFO: Flush after each line of output is disabled
 main  03:45:14  INFO: Watchdog is disabled
 main  03:45:14  INFO: Contact email configured to ""
 main  03:45:14  INFO: Description configured to "RAK Pilot Gateway "
 main  03:45:14  INFO: [Transports] Initializing protocol for 1 servers
 main  03:45:14  INFO: [TTN] server "router.thethingsnetwork.jp" connected
 main  03:45:14  INFO: [main] Starting the concentrator
 main  03:45:15  ERROR: [main] failed to start the concentrator
 main  [TTN Gateway]: Resetting concentrator on pin 11

That’s not meaningful, because the configuration you attempted to restart is the non-working one.

The question was if you could repeatedly kill and restart the working configuration many times in a row without failure?

I use this gateway from May 2019 to last 2 day ago.
I Received Messages : 35431

Transmitted Messages : 608

but now it not work.

I try test send with frq au915 gateway it work
but when i change to as923 gateway still [ERROR: [main] failed to start the concentrator]

Summary

2019-07-29_093559

Again, can you start and stop it over and over and over again many times with no failures? You need to do that to rule out coincidence of an unreliable startup procedure.

If the working configuration always works in many trials, then do a line by line comparison of the config files. Start removing the differences one by one until you find what makes the difference.

thank you indeed.
I try more …

Are you sure your hardware supports Listen Before Talk? If I recall correctly that is a difference between AU915 and AS923.

It surely… because 3 mouth ago. I received about 30000 payload by freq as 923 and now I switch to receive data form au915… Gateway work normally in 915mhz …

Mmmmh…
Afaik the RAK831 does not support LBT…
You might have it running on a frequency plan which had LBT disabled at that time…

2 Likes