errolt
October 10, 2024, 10:48am
1
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:
i2c_path: Some(conf.gateway.get_i2c_dev_path("/dev/i2c-1")),
i2c_temp_sensor_addr: Some(0x39),
sx1302_reset_pin: conf.gateway.get_sx1302_reset_pin("/dev/gpiochip0", 23),
sx1302_power_en_pin: conf.gateway.get_sx1302_power_en_pin("/dev/gpiochip0", 18),
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:
v4.4.3
Features
Override pin / device-path config
It is now possible to override all (reset)pin configuration and SPI / GNSS / I2C device-paths of all concentrator modules. A configuration example is added to the configfile template.
GPSd support
This adds support for using Concentratord together with GPSd . If GPSd has been configured (e.g. gnss_dev_path="gpsd://localhost:2947"), the Concentratord will automatically enable the NAV-TIMEGPS binary message of the U-blox module on start. By using …
1 Like
errolt
October 10, 2024, 4:00pm
3
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.
errolt
October 11, 2024, 10:05pm
4
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