mrX_de
January 22, 2025, 2:25pm
1
I’m trying to use the L76 GPS chip on my Pi Hat.
I’ve enabled gpsd (and tested with gpsmon that it “works”)
i’m trying to configure concentratord to use gpsd
I’ve added gnss_dev_path to /etc/config/chirpstack-concentratord like so
‘’’
…
config sx1302
option model ‘waveshare_sx1302_lorawan_gateway_hat’
option region ‘EU868’
option channel_plan ‘eu868’
option antenna_gain ‘0’
option gnss_dev_path ‘gpsd://localhost:2947’
…
‘’’
A few questions:
is this this the correct location for gnss_dev_path
how can i change chirpstack-concentratord to log with DEBUG instead of INFO
And all of this on a “full pi image” …
Hi,
The gpsd path seems to be okay.
Log levels in concentratord config file are:
# Concentratord configuration.
[concentratord]
# Log level.
#
# Valid options are:
# * TRACE
# * DEBUG
# * INFO
# * WARN
# * ERROR
# * OFF
log_level="INFO"
# Log to syslog.
#
# When set to true, log messages are being written to syslog instead of stdout.
log_to_syslog=false
# Statistics interval.
stats_interval="30s"
mrX_de
January 23, 2025, 11:02am
3
Hej,
could you please enlighten me, how the templates + GUI settings are used to create the config files in the RPI Full image??
I can find there option in /etc/chirpstack-concentratord/sx1302/examples/concentratord.toml
i see the various config files in /etc/config - with a different “notation” - i also see my GUI options reflected there
i fail to understand how it works together
i fail to enable DEBUG logging for concentratord
i see no logging at all for chirpstack-udp-forwarder
As you might have guessed, i’m pretty new to chirpstack …
I assume you mean ChirpStack Gateway OS when you refer to “pi full image”.
I don’t use ChirpStack Gateway OS myself and have no experience with it. So I looked at the Chirpstack GitHub repository to see how things are going…
chirpstack-openwrt-feed/chirpstack/chirpstack-concentratord/files/chirpstack-concentratord.sh
cat > /var/etc/$config_name/concentratord.toml <<- EOF
[concentratord]
log_level="INFO"
log_to_syslog=true
stats_interval="30s"
disable_crc_filter=false
[concentratord.api]
event_bind="ipc:///tmp/concentratord_event"
command_bind="ipc:///tmp/concentratord_command"
[gateway]
lorawan_public=true
model="$model"
region="$region"
gateway_id="$gateway_id"
model_flags=[$model_flags]
antenna_gain=$antenna_gain
Please, check this /var/etc/$config_name/concentratord.toml
.
Maybe someone else can help you if this wasn’t the right solution?
mrX_de
January 23, 2025, 3:07pm
5
Hi,
yes currently using “Chirpstack Gatewax OS” …
and, you’re kind of right:
if the chirpstack-concentratord service is restarted (to re/read its config), /lib/functions/chirspstack-concentratord.sh is used to generate /var/etc/…/concentratord.toml - with some settings hardcoded like log_level …
At least now i see
Thu Jan 23 15:27:25 2025 user.debug chirpstack-concentratord-sx1302[20850]: Could not get GPS epoch, uplink_id: 2702520030, error: gps_ref_valid = false
Thu Jan 23 15:27:25 2025 user.debug chirpstack-concentratord-sx1302[20850]: Could not get GPS time, uplink_id: 2702520030, error: gps_ref_valid = false