Concentratord, Waveshare sx1302 Gateway HAT US915

Hi all :slight_smile: I put a lot of hours trying to make Concentratord work Waveshare sx1302 Gateway HAT US915 (us915_1)

After fresh install from Openwrt image for raberry pi. In my case Raspberry pi4 B.

Any Idea?

chirpstack-gateway-os-4.2.0-base-bcm27xx-bcm2709-rpi-2-squashfs-factory.img.gz
I start concentratord manually, but it refuses to start at all… here are the infos:

START CONCENTRATOR:

root@chirpstack-3f454f:~# /usr/bin/chirpstack-concentratord-sx1302 -c /var/etc/chirpstack-concentratord/concentratord.toml -c /var/etc/chirpstack-concentratord/region.toml -c var/etc/chirpstack-concentratord/channels.toml

OUTPUT

thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: Region is not supported: US915’, chirpstack-concentratord-sx1302/src/config/mod.rs:221:73
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

BASIC CONFIG

root@chirpstack-3f454f:~# uci show chirpstack-concentratord

chirpstack-concentratord.@global[0]=global
chirpstack-concentratord.@global[0].chipset=‘sx1302’
chirpstack-concentratord.@sx1301[0]=sx1301
chirpstack-concentratord.@sx1301[0].model=‘imst_ic880a’
chirpstack-concentratord.@sx1301[0].region=‘EU868’
chirpstack-concentratord.@sx1301[0].channel_plan=‘eu868’
chirpstack-concentratord.@sx1301[0].gateway_id=‘d83addfffe3f454f’
chirpstack-concentratord.@sx1302[0]=sx1302
chirpstack-concentratord.@sx1302[0].model=‘waveshare_sx1302_lorawan_gateway_hat’
chirpstack-concentratord.@sx1302[0].region=‘US915’
chirpstack-concentratord.@sx1302[0].channel_plan=‘us915_1’
chirpstack-concentratord.@sx1302[0].gnss=‘1’
chirpstack-concentratord.@sx1302[0].gateway_id=‘0016c001f160f3c3’
chirpstack-concentratord.@2g4[0]=2g4
chirpstack-concentratord.@2g4[0].model=‘semtech_sx1280z3dsfgw1’
chirpstack-concentratord.@2g4[0].region=‘ISM2400’
chirpstack-concentratord.@2g4[0].channel_plan=‘ism2400’

TOML CONFIG FILES CONTENTS:

root@chirpstack-3f454f:~# cat /var/etc/chirpstack-concentratord/concentratord.toml

# Concentratord configuration.
[concentratord]

# Log level.
#
# Valid options are:
# * TRACE
# * DEBUG
# * INFO
# * WARN
# * ERROR
# * OFF
log_level=“TRACE”

# Log to syslog.
#
# When set to true, log messages are being written to syslog instead of stdout.
log_to_syslog=true

# Statistics interval.
stats_interval=“30s”

\ # Configuration for the (ZeroMQ based) API.
[concentratord.api]

# Event PUB socket bind.
event_bind=“ipc:///tmp/concentratord_event”

\ # Command REP socket bind.
command_bind=“ipc:///tmp/concentratord_command”

# LoRa gateway configuration.
[gateway]

# Antenna gain (dB).
antenna_gain=0

# Public LoRaWAN network.
lorawan_public=true

# Region.
#
# The region of the gateway. Options:
# EU868, US915, CN779, EU433, AU915, CN470, AS923, AS923_2, AS923_3, AS923_4,
# KR923, IN865, RU864
#
# Not not all the gateway models implement all regions.
region=“US915”

# Gateway vendor / model.
#
# This configures various vendor and model specific settings like the min / max
# frequency, TX gain table.
model=“waveshare_sx1302_lorawan_gateway_hat”

# Gateway vendor / model flags.
model_flags=[“GNSS”,]

root@chirpstack-3f454f:~# cat /var/etc/chirpstack-concentratord/region.toml

# Beacon configuration.
#
# This requires a gateway with GPS / GNSS.
[gateway.beacon]

# Compulsory RFU size.
compulsory_rfu_size=5

# Beacon frequency / frequencies (Hz).
frequencies=[
923300000,
923900000,
924500000,
925100000,
925700000,
926300000,
926900000,
927500000,
]

# Bandwidth (Hz).
bandwidth=500000

# Spreading factor.
spreading_factor=12

# TX power.
tx_power=14

root@chirpstack-3f454f:~# cat /var/etc/chirpstack-concentratord/channels.toml

# LoRa concentrator configuration.
[gateway.concentrator]

# Multi spreading-factor channels (LoRa).
multi_sf_channels=[
903900000,
904100000,
904300000,
904500000,
904700000,
904900000,
905100000,
905300000,
]

# LoRa std channel (single spreading-factor).
[gateway.concentrator.lora_std]
frequency=904600000
bandwidth=500000
spreading_factor=8
root@chirpstack-3f454f:~#

Support for the US915 region will be added in the next ChirpStack Gateway OS release (planned for next week) :slight_smile:

1 Like

Fantastic! Thank you very much.