Unable to get Waveshare Gateway HAT working

UPDATE: Apologies. I see now in the system log within the web-interface that the correct pin is being set, however the footer of the web-interface still states “could not read gateway_id”. If anyone could help me troubleshoot I’d be very thankful.

Hello!

I’ve been trying to get up and running with the Raspberry PI Waveshare SX1302 Gateway HAT, but I cannot seem to get connection to the gateway at all after configuring through the web interface in Chirpstack Gateway OS.

My hunch is that it may be due to the reset pin being incorrectly configured, but I haven’t been able to figure out how to overwrite this, even though the changelog mentions that this feature was added.

My Gateway HAT Model: https://www.waveshare.com/wiki/SX1302_LoRaWAN_Gateway_HAT

In the documentation I linked to above it states that pin 23 is the reset pin, however when I run the chirpstack-concentratord-sx1302 binary on the raspberry pi (Gateway OS), I get the following output:

root@ChirpStack:~# chirpstack-concentratord-sx1302
2023-07-19T05:28:36.790Z INFO  [libconcentratord::reset] Configuring reset pin, dev: /dev/gpiochip0, pin: 17
2023-07-19T05:28:36.791Z INFO  [chirpstack_concentratord_sx1302::cmd::root] Starting Concentratord SX1302 (version: 4.2.0-test.2, docs: https://www.chirpstack.io/concentratord/)
2023-07-19T05:28:36.791Z INFO  [libconcentratord::reset] Triggering sx1302 reset
2023-07-19T05:28:36.991Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting i2c device path, path: /dev/i2c-1
2023-07-19T05:28:36.991Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting board configuration, lorawan_public: true, clock_source: 0
2023-07-19T05:28:36.991Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up fine timestamp, enable: false
2023-07-19T05:28:36.991Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up concentrator channels
2023-07-19T05:28:36.991Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1250
2023-07-19T05:28:36.991Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1250
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up concentrator channels
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
2023-07-19T05:28:36.992Z INFO  [chirpstack_concentratord_sx1302::concentrator] Starting the concentrator
Opening SPI communication interface
Note: chip version is 0x00 (v0.0)
qERROR: Failed to set SX1250_0 in STANDBY_RC mode
ERROR: failed to setup radio 0
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: lgw_start failed', chirpstack-concentratord-sx1302/src/main.rs:114:80
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Note the first line where it says “Configuring reset pin, dev: /dev/gpiochip0, pin: 17”.

I’m not sure whether this relates to the problem, but any help would be greatly appreciated. This is what the config looks like in /etc/config/chirpstack-concentratord.

config sx1301
	option model 'imst_ic880a'
	option region 'EU868'
	option channel_plan 'eu868'
	option gateway_id '0101010101010101'

config sx1302
	option model 'waveshare_sx1302_lorawan_gateway_hat'
	option region 'EU868'
	option channel_plan 'eu868'
	option gnss '1'

config 2g4
	option model 'semtech_sx1280z3dsfgw1'
	option region 'ISM2400'
	option channel_plan 'ism2400'

I will look into this today :slight_smile:

On the ChirpStack Gateway OS you must start the Concentratord using /etc/init.d/chirpstack-concentratord.

This will automatically transform the OpenWrt UCI configuration into the Concentratord .toml file format. As well it will start the chirpstack-concentratord-sx1302 binary with the correct configuration file paths. In your case, the reset pin that you see in the logs do not match the Waveshare profile configuration:

For log output, please see: Log files - ChirpStack open-source LoRaWAN® Network Server documentation.


For me the Waveshare shield works fine using the following steps:

  • Flash clean image
  • Log in into web-interface
  • Open ChirpStack > Concentratord
  • Select SX1302/SX1303
  • SX1302 tab select Waveshare shield
  • Click Save & Apply button

Shortly after (you might need to refresh the page one or twice) I can see the Gateway ID in the footer.

These are my logs:

Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring reset pin, dev: /dev/gpiochip0, pin: 23
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring sx1302 power enable pin, dev: /dev/gpiochip0, pin: 18
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Starting Concentratord SX1302 (version: 4.2.0, docs: https://www.chirpstack.io/concentratord/)
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Enabling concentrator power
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Triggering sx1302 reset
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Setting i2c device path, path: /dev/i2c-1
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Setting i2c temperature sensor address, address: 57
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Setting board configuration, lorawan_public: true, clock_source: 0
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Setting up fine timestamp, enable: false
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Setting up concentrator channels
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1250
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1250
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Setting up concentrator channels
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
Wed Jul 19 08:17:22 2023 user.info chirpstack-concentratord-sx1302[4494]: Starting the concentrator
Wed Jul 19 08:17:22 2023 user.err chirpstack-mqtt-forwarder[3580]: Connecting to MQTT broker error, error: [-1] TCP/TLS connect failure
Wed Jul 19 08:17:23 2023 user.err chirpstack-mqtt-forwarder[3580]: Connecting to MQTT broker error, error: [-1] TCP/TLS connect failure
Wed Jul 19 08:17:24 2023 user.info chirpstack-concentratord-sx1302[4494]: Gateway ID retrieved, gateway_id: "0016c001f10aba0a"
Wed Jul 19 08:17:24 2023 user.info chirpstack-concentratord-sx1302[4494]: Initializing JIT queue, capacity: 32
Wed Jul 19 08:17:24 2023 user.info chirpstack-concentratord-sx1302[4494]: Creating socket for publishing events, bind: ipc:///tmp/concentratord_event
Wed Jul 19 08:17:24 2023 user.info chirpstack-concentratord-sx1302[4494]: Creating socket for receiving commands, bind: ipc:///tmp/concentratord_command

Hey brocaar!

Thank you so much for the speedy reply and the reference output. When looking at the system log in the web-interface I could see that it was configuring the reset pin correctly, but for some reason I’m not getting the last 6 lines of log output as you, it simply just stops logging at Starting the concentrator and Gateway ID retrieved is never output.

Perhaps concentratord just silently fails here and the process dies. I have been able to retrieve the ID before when I used.

What type of Raspberry pi are you running? I’m running a Raspberry Pi 3 Model B Rev 1.2.

Below you’ll find an image of my Gateway, in case it helps.

Update:

I ran logread -f and I can see that it repeatedly outputs the following, as if it was stuck in a retry loop:


Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring reset pin, dev: /dev/gpiochip0, pin: 23
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring sx1302 power enable pin, dev: /dev/gpiochip0, pin: 18
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Starting Concentratord SX1302 (version: 4.2.0-test.2, docs: https://www.chirpstack.io/concentratord/)
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Enabling concentrator power
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Triggering sx1302 reset
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Setting i2c device path, path: /dev/i2c-1
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Setting i2c temperature sensor address, address: 57
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Setting board configuration, lorawan_public: true, clock_source: 0
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Setting up fine timestamp, enable: false
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Setting up concentrator channels
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1250
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1250
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Setting up concentrator channels
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
Wed Jul 19 11:14:41 2023 user.info chirpstack-concentratord-sx1302[15671]: Starting the concentrator

I tried to groq some of the chirpstack-concentratord code and it seems that an unknown error coming from the HAL might not be caught / handled, causing the endless loop. I’ve added some comments to the code below that outline my concerns.

I might be wrong and this might be completely irrelevant, but I’m not sure how I can surface the actual problems for more information.

 loop {
       // Unwrapping the return value of run(), but hal::start() returns an "empty" result.
       // See: https://github.com/chirpstack/chirpstack-concentratord/blob/master/chirpstack-concentratord-sx1302/src/concentrator/mod.rs
       // An empty result means we never match a Signal and so any unknown errors just get swallowed and never reported.
        match cmd::root::run(&config, stop_send.clone(), stop_receive.clone()).unwrap() {
            Signal::Stop => process::exit(0),
            Signal::Configuration(new_config) => {
                handler::config::update_configuration(&mut config, &new_config)
                    .expect("update configuration failed")
            }
        }
    }

I’m not sure if that is correct.

A Result<()> means that in case of success, there is an empty return value. However, if it fails then there is an error value and using unwrap() the process will blow up.

Thus any error within the run() function, and the functions called by run will propagate and will cause the process to panic before matching the different Signal::... enums.

1 Like

You’re absolutely right. However my theory was that run() was returning an empty Result, causing an endless loop. But with a fresh head I can see that that would of course not be possible either.

I just can’t wrap my head around why it just stops when starting the concentrator and then seems to restart the whole command (looping back around). My understanding is that it would at least try to get the EUI and then output an error in case that doesn’t work.

Gah, I see now that it’s an entirely new concentratord process each time. So I suppose there’s some kind of daemon above this that keeps rerunning the process.

I might let this go and just cut my losses on this gateway and get a new one. But if you have any theories or suggestions on how to debug this I’d really appreciate it.

Could you try the following:

  • Restart the Raspberry Pi to make sure the concentrator module is power cycled
  • SSH into the Pi
  • Run the following commands
# Stop Concentratord
/etc/init.d/chirpstack-concentratord stop

# Edit config
# Change log_to_syslog=true to log_to_syslog=false
vi /var/etc/chirpstack-concentratord/concentratord.toml

# Start the Concentratord by hand
chirpstack-concentratord-sx1302 -c /var/etc/chirpstack-concentratord/concentratord.toml -c /var/etc/chirpstack-concentratord/region.toml -c /
var/etc/chirpstack-concentratord/channels.toml 
  • And share the log output

As a reference, this is what I get:

root@chirpstack-82a786:~# chirpstack-concentratord-sx1302 -c /var/etc/chirpstack-concentratord/concentratord.toml -c /var/etc/chirpstack-concentratord/region.toml -c /
var/etc/chirpstack-concentratord/channels.toml 
2023-07-20T14:05:52.509Z INFO  [libconcentratord::reset] Configuring reset pin, dev: /dev/gpiochip0, pin: 23
2023-07-20T14:05:52.509Z INFO  [libconcentratord::reset] Configuring sx1302 power enable pin, dev: /dev/gpiochip0, pin: 18
2023-07-20T14:05:52.509Z INFO  [chirpstack_concentratord_sx1302::cmd::root] Starting Concentratord SX1302 (version: 4.2.0, docs: https://www.chirpstack.io/concentratord/)
2023-07-20T14:05:52.509Z INFO  [libconcentratord::reset] Enabling concentrator power
2023-07-20T14:05:52.610Z INFO  [libconcentratord::reset] Triggering sx1302 reset
2023-07-20T14:05:52.810Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting i2c device path, path: /dev/i2c-1
2023-07-20T14:05:52.810Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting i2c temperature sensor address, address: 57
2023-07-20T14:05:52.810Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting board configuration, lorawan_public: true, clock_source: 0
2023-07-20T14:05:52.810Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up fine timestamp, enable: false
2023-07-20T14:05:52.810Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up concentrator channels
2023-07-20T14:05:52.810Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1250
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1250
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up concentrator channels
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
2023-07-20T14:05:52.811Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
2023-07-20T14:05:52.812Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-07-20T14:05:52.812Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
2023-07-20T14:05:52.812Z INFO  [chirpstack_concentratord_sx1302::concentrator] Starting the concentrator
Opening SPI communication interface
Note: chip version is 0x10 (v1.0)
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
2023-07-20T14:05:55.252Z INFO  [chirpstack_concentratord_sx1302::cmd::root] Gateway ID retrieved, gateway_id: "0016c001f10aba0a"
2023-07-20T14:05:55.252Z INFO  [libconcentratord::jitqueue] Initializing JIT queue, capacity: 32
2023-07-20T14:05:55.252Z INFO  [libconcentratord::events] Creating socket for publishing events, bind: ipc:///tmp/concentratord_event
2023-07-20T14:05:55.253Z INFO  [libconcentratord::commands] Creating socket for receiving commands, bind: ipc:///tmp/concentratord_command
^C2023-07-20T14:06:07.259Z WARN  [chirpstack_concentratord_sx1302] Received stop signal, stopping Concentratord
2023-07-20T14:06:07.296Z INFO  [chirpstack_concentratord_sx1302::concentrator] Stopping the concentrator
Closing SPI communication interface

(the stop signal was intentional)

Note that a /etc/init.d/chirpstack-concentratord [start|restart] (or reboot) will re-generate the /var/etc/chirpstack-concentratord/... config.

Thank you so much for taking the time to help me out here brocaar!

The output I got now made much more sense :smile: (with the panic output):

2023-07-20T19:23:34.964Z INFO  [libconcentratord::reset] Configuring reset pin, dev: /dev/gpiochip0, pin: 23
2023-07-20T19:23:34.964Z INFO  [libconcentratord::reset] Configuring sx1302 power enable pin, dev: /dev/gpiochip0, pin: 18
2023-07-20T19:23:34.964Z INFO  [chirpstack_concentratord_sx1302::cmd::root] Starting Concentratord SX1302 (version: 4.2.0-test.2, docs: https://www.chirpstack.io/concentratord/)
2023-07-20T19:23:34.964Z INFO  [libconcentratord::reset] Enabling concentrator power
2023-07-20T19:23:35.065Z INFO  [libconcentratord::reset] Triggering sx1302 reset
2023-07-20T19:23:35.265Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting i2c device path, path: /dev/i2c-1
2023-07-20T19:23:35.265Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting i2c temperature sensor address, address: 57
2023-07-20T19:23:35.265Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting board configuration, lorawan_public: true, clock_source: 0
2023-07-20T19:23:35.265Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up fine timestamp, enable: false
2023-07-20T19:23:35.265Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up concentrator channels
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring radio, radio: 0, enabled: true, center_freq: 867500000, type: SX1250
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring radio, radio: 1, enabled: true, center_freq: 868500000, type: SX1250
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Setting up concentrator channels
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 0, enabled: true, freq: 868100000, rf_chain: 1, if_freq: -400000
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 1, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 2, enabled: true, freq: 868500000, rf_chain: 1, if_freq: 0
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 3, enabled: true, freq: 867100000, rf_chain: 0, if_freq: -400000
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 4, enabled: true, freq: 867300000, rf_chain: 0, if_freq: -200000
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 5, enabled: true, freq: 867500000, rf_chain: 0, if_freq: 0
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 6, enabled: true, freq: 867700000, rf_chain: 0, if_freq: 200000
2023-07-20T19:23:35.266Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring multi-SF LoRa channel, channel: 7, enabled: true, freq: 867900000, rf_chain: 0, if_freq: 400000
2023-07-20T19:23:35.267Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring Std LoRa channel, enabled: true, freq: 868300000, rf_chain: 1, if_freq: -200000
2023-07-20T19:23:35.267Z INFO  [chirpstack_concentratord_sx1302::concentrator] Configuring FSK channel, enabled: true, freq: 868800000, rf_chain: 1, if_freq: 300000
2023-07-20T19:23:35.267Z INFO  [chirpstack_concentratord_sx1302::concentrator] Starting the concentrator
Opening SPI communication interface
Note: chip version is 0x00 (v0.0)
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
ERROR: failed to setup radio 0
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: lgw_start failed', chirpstack-concentratord-sx1302/src/main.rs:114:80
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

SOLVED:

After banging my head against this for hours (learning a lot). I ended up pressing the PCI concentrator module hard into the Gateway HAT and finally I got a response! Thank you so much for all the help!

I’m happy you solved the issue / we have an explanation what caused is :slight_smile:

This topic was automatically closed after 90 days. New replies are no longer allowed.