ERROR failed to start the concentrator

I have a problem running Semtech packet_forwarder on Rpi3.
Here is log:

*> ** Beacon Packet Forwarder for Lora Gateway ***

Version: 4.0.1
*** Lora concentrator HAL library version info ***
Version: 5.0.1;

INFO: Little endian host
INFO: found global configuration file global_conf.json, parsing i
INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
INFO: lorawan_public 1, clksrc 1
INFO: LBT is disabled
INFO: antenna_gain 0 dBi
INFO: Configuring TX LUT with 16 indexes
INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 129000
INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to AA755A0048050131
INFO: server hostname or IP address is configured to “0.0.0.0”
INFO: upstream port is configured to “1700”
INFO: downstream port is configured to “1700”
INFO: downstream keep-alive interval is configured to 10 seconds
INFO: statistics display interval is configured to 30 seconds
INFO: upstream PUSH_DATA time-out is configured to 100 ms
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: found local configuration file local_conf.json, parsing it
INFO: redefined parameters will overwrite global parameters
INFO: local_conf.json does not contain a JSON object named SX1301_conf
INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to AA755A0048050131
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
ERROR: [main] failed to start the concentrator

Sometimes its working:

INFO: [main] concentrator started, packet can now be received

INFO: Disabling GPS mode for concentrator’s counter…
INFO: host/sx1301 time offset=(1524224462s:519218µs) - drift=698710962µs
INFO: Enabling GPS mode for concentrator’s counter.

INFO: [down] PULL_ACK received in 1143 ms

Before start packet_forwarder wrote a small script to reset gateway:

sleep 10
gpio mode 5 out
gpio write 5 1
sleep 2
gpio write 5 0
sleep 1
cd packet_forwarder/lora_pkt_fwd/
./lora_pkt_fwd
exit 0

With Rpi2 I have no problems, packet_forwarder always starts without problems.

Also i saw this topic RPi3 + IC880A-SPI + MP Packet Forwarder = Failed to start concentrator? - Raspberry Pi Gateways - The Things Network but set core_freq=250 seems didnt work for me

1 Like

Did you ever get this figured out?

I found a way out of this situation - openchirp lora_gateway_pf.
It works for me, this error appears here too but the program itself reboots untill everything starts without errors.
I have no other solutions for this problem, the problem comes from rpi 3, for me rpi 2 works without any errors

Out of curiosity, which concentrator shield are you using?

rhf0m301 (sx1301) + rpi3/rpi2
Rpi2 works well
Rpi3 ERROR: [main] failed to start the concentrator
I think with ic880a or RAK it will have same errors

130604a107s4ve7meemmg4

Most likely ARM/Linux did not reset the SX130x correctly For more details, please refer to “How to compile and test the driver code of the SX1302/3”.