Any way to change gpio allocation via config?

Hi All,

I’m trying to get concentratord running on a rock-5b, with a waveshare hat.

Spi works fine, but the gps serial port, i2c bus and gpio pins have different names. Is there a way to change them without recompiling concentratord?

These are the lines I want to change without recompile:

I realize that this is outside usual usage, so not holding my breath.

Thank you,
Errol

I believe this was just added in 4.3.3:

1 Like

Great. I have been looking everywhere for this.
But:

Which configfile template is that?
Not the example listed here: Configuration - ChirpStack open-source LoRaWAN® Network Server documentation

And if I run “chirpstack-concentratord-sx1302 configfile” to get a template then concenratord crashes with this:

errol@rock5b:~$ ./chirpstack-concentratord-sx1302 configfile
thread ‘main’ panicked at chirpstack-concentratord-sx1302/src/config/mod.rs:344:14:
unexpected gateway model: rak_2287_eu868
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

edit: this feature was added 3 days ago, in version 4.4.3.

Thank you. This did help.
I had to run “concentratord -c config.cfg configfile”

That showed me the possible config options.

For anyone else that might want to run the waveshare hat on a Rock5B, this is the config lines to add to [gateway]:

gnss_dev_path=“/dev/ttyS2”
com_dev_path=“/dev/spidev0.0”
i2c_dev_path=“/dev/i2c-7”
sx1302_reset_chip=“/dev/gpiochip3”
sx1302_reset_pin=4
sx1302_power_en_chip=“/dev/gpiochip3”
sx1302_power_en_pin=13

And enable the following overlays via rsetup:
“Enable spidev on SPI0-M2 over CS0”
“Enable UART2-M0”

Edit. I2C setup needs more work. So temp sensor doesn’t work.

1 Like