Hi folks,
Recently acquired some gateway hardware and trying to get ChirpStack running, on one of the kits I am having a bit of trouble getting concentratord to talk to the radio:
Setup: Raspberry Pi 4 with:
- Radio module: GL5712 (SX1301 and 2 x SX1257) - https://m2mmarket.com.tr/Data/EditorFiles/GL5712%20LoRa%20Concentrator_Datasheet_V1.0.pdf
- Carrier / HAT: https://github.com/NebraLtd/nebra-lora-hardware/blob/master/Helium-Hotspot-HAT-V1/HARDWARE/RAK833BACKPLANE.pdf
- chirpstack-concentratord-sx1301 4.2.3
Using pi_supply_lora_gateway_hat
as the model
in the config file, as the reset pin and the RAK module specified seems to be close enough to the carrier+module I have here, this is what I see when I run concentratord:
$ ./chirpstack-concentratord-sx1301 -c gl5712.toml
2023-09-08T13:11:06.806Z INFO [libconcentratord::reset] Configuring reset pin, dev: /dev/gpiochip0, pin: 22
2023-09-08T13:11:06.807Z INFO [chirpstack_concentratord_sx1301::cmd::root] Starting Concentratord SX1301 (version: 4.2.3, docs: https://www.chirpstack.io/docs/chirpstack-concentratord/)
2023-09-08T13:11:06.807Z INFO [libconcentratord::reset] Triggering sx1302 reset
2023-09-08T13:11:07.007Z INFO [chirpstack_concentratord_sx1301::concentrator] Setting spi device path, spidev_path: /dev/spidev0.0
2023-09-08T13:11:07.008Z INFO [chirpstack_concentratord_sx1301::concentrator] Setting board configuration, lorawan_public: true, clock_source: 1
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: -6, pa_gain: 0, mix_gain: 10, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: -3, pa_gain: 0, mix_gain: 14, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 0, pa_gain: 1, mix_gain: 8, dac_gain: 3, dig_gain: 3
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 3, pa_gain: 2, mix_gain: 9, dac_gain: 3, dig_gain: 3
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 6, pa_gain: 1, mix_gain: 9, dac_gain: 3, dig_gain: 1
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 10, pa_gain: 2, mix_gain: 9, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 11, pa_gain: 2, mix_gain: 10, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 12, pa_gain: 2, mix_gain: 11, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 13, pa_gain: 2, mix_gain: 12, dac_gain: 3, dig_gain: 1
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 14, pa_gain: 2, mix_gain: 12, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 16, pa_gain: 3, mix_gain: 8, dac_gain: 3, dig_gain: 1
2023-09-08T13:11:07.008Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 20, pa_gain: 3, mix_gain: 10, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.009Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 23, pa_gain: 3, mix_gain: 12, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.009Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 25, pa_gain: 3, mix_gain: 14, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.009Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 26, pa_gain: 3, mix_gain: 14, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.009Z DEBUG [chirpstack_concentratord_sx1301::concentrator] Configuring TX gain, rf_power: 27, pa_gain: 3, mix_gain: 14, dac_gain: 3, dig_gain: 0
2023-09-08T13:11:07.009Z INFO [chirpstack_concentratord_sx1301::concentrator] Setting up concentrator radios
2023-09-08T13:11:07.009Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1257
2023-09-08T13:11:07.009Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1257
2023-09-08T13:11:07.009Z INFO [chirpstack_concentratord_sx1301::concentrator] Setting up concentrator channels
2023-09-08T13:11:07.009Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
2023-09-08T13:11:07.010Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-09-08T13:11:07.010Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
2023-09-08T13:11:07.010Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
2023-09-08T13:11:07.010Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
2023-09-08T13:11:07.010Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
2023-09-08T13:11:07.011Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
2023-09-08T13:11:07.011Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
2023-09-08T13:11:07.011Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-09-08T13:11:07.011Z INFO [chirpstack_concentratord_sx1301::concentrator] Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
2023-09-08T13:11:07.011Z INFO [chirpstack_concentratord_sx1301::concentrator] Starting the concentrator
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: lgw_start failed', chirpstack-concentratord-sx1301/src/main.rs:111:80
stack backtrace:
0: 0x240b14 - <unknown>
1: 0x2791bc - <unknown>
2: 0x23d7e0 - <unknown>
3: 0x2408f8 - <unknown>
4: 0x2421f4 - <unknown>
5: 0x241ec8 - <unknown>
6: 0x2428a8 - <unknown>
7: 0x2425f8 - <unknown>
8: 0x241000 - <unknown>
9: 0x2423b8 - <unknown>
10: 0x1d564 - <unknown>
11: 0x1d98c - <unknown>
12: 0x2eacc - <unknown>
13: 0x8fd70 - <unknown>
14: 0x64628 - <unknown>
15: 0x238104 - <unknown>
16: 0x2f754 - <unknown>
I am not suspecting the Pi setup (SPI comms and/or the carrier itself) as I am able to swap out the radio module to a different one and it all works:
$ ./chirpstack-concentratord-sx1302 -c nebra-lora-mpcie.toml
...
2023-09-08T13:23:38.255Z INFO [chirpstack_concentratord_sx1302::concentrator] Starting the concentrator
Opening SPI communication interface
Note: chip version is 0x12 (v1.2)
INFO: Configuring SX1250_0 in single input mode
INFO: using legacy timestamp
INFO: LoRa Service modem: configuring preamble size to 8 symbols
ARB: dual demodulation disabled for all SF
INFO: no temperature sensor found on port 0x3B
2023-09-08T13:23:40.622Z DEBUG [chirpstack_concentratord_sx1302::concentrator] Getting gateway EUI
2023-09-08T13:23:40.622Z INFO [chirpstack_concentratord_sx1302::cmd::root] Gateway ID retrieved, gateway_id: "0016c0....."
...
Any tips/pointers?
Thanks.