Gateway Not Showing Online in ChirpStack Web Interface

I have configured ChirpStack Gateway Bridge and ChirpStack, and I’m able to see MQTT messages indicating that the gateway is connected and publishing stats

Steps Taken

  1. Verified the PostgreSQL database contains the necessary tables and the gateway_id is stored correctly.
  2. Checked that Redis and PostgreSQL services are running without errors.
  3. Confirmed that MQTT messages are being received correctly and contain the expected data.

chirpstack.toml

[logging]
level="info"
json=false

[postgresql]
dsn="postgresql://chirpstack:chirpstack@localhost/chirpstack?sslmode=disable"
max_open_connections=10
ca_cert=""

[redis]
servers=["redis://localhost:6379"]
cluster=false
key_prefix=""
max_open_connections=100
min_idle_connections=0

[api]
bind="0.0.0.0:8080"
secret="your-secret-key"

[gateway]
ca_cert=""
ca_key=""
client_cert_lifetime="11months 30days 3h 50m 24s"
allow_unknown_gateways=false

[network]
net_id="000000"
secondary_net_ids=[]
dev_addr_prefixes=[]
enabled_regions=["au915_0","au915_1","au915_2","au915_3","au915_4","au915_5","au915_6","au915_7"]
deduplication_delay="200ms"
get_downlink_data_delay="100ms"
mac_commands_disabled=false
adr_plugins=[]

[network.scheduler]
interval="1s"
class_a_lock_duration="5s"
class_c_lock_duration="5s"
multicast_class_c_margin="5s"
multicast_class_b_margin="5s"

[monitoring]
bind=""
backend_interfaces_log_max_history=10
meta_log_max_history=10
gateway_frame_log_max_history=10
device_frame_log_max_history=10
device_event_log_max_history=10
per_gateway_frame_log_max_history=10
per_gateway_frame_log_ttl="1month 13h 26m 24s"
per_device_frame_log_max_history=10
per_device_frame_log_ttl="1month 13h 26m 24s"
per_device_event_log_max_history=10
per_device_event_log_ttl="1month 13h 26m 24s"

[integration]
enabled=[]

[integration.mqtt]
event_topic="application/{{application_id}}/device/{{dev_eui}}/event/{{event}}"
command_topic="application/{{application_id}}/device/{{dev_eui}}/command/{{command}}"
json=true
server="tcp://127.0.0.1:1883/"
username=""
password=""
qos=0
clean_session=false
client_id=""
keep_alive_interval="30s"
ca_cert=""
tls_cert=""
tls_key=""

chirpstack-gateway-bridge.toml

[general]
log_level=4
log_to_syslog=false

[filters]
net_ids=[]
join_euis=[]

[backend]
type="semtech_udp"

[backend.semtech_udp]
udp_bind = "0.0.0.0:1700"
skip_crc_check = false
fake_rx_time=false

[integration]
marshaler="json"

[integration.mqtt]
event_topic_template="au915/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
state_topic_template="au915/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
command_topic_template="au915/gateway/{{ .GatewayID }}/command/#"
state_retained=true
keep_alive="30s"
max_reconnect_interval="1m0s"
terminate_on_connect_error=false

[integration.mqtt.auth.generic]
servers=["tcp://127.0.0.1:1883"]
username=""
password=""
qos=0
clean_session=true
client_id=""
ca_cert=""
tls_cert=""
tls_key=""

mosquitto_sub -h localhost -t “au915/gateway/#” -v

au915/gateway/a84041ffff27cd0c/state/conn {"gatewayId":"a84041ffff27cd0c","state":"ONLINE"}
au915/gateway/a84041ffff27cd0c/event/stats {"gatewayId":"a84041ffff27cd0c","time":"2024-05-21T19:23:20Z"}
au915/gateway/a84041ffff27cd0c/event/stats {"gatewayId":"a84041ffff27cd0c","time":"2024-05-21T19:23:50Z"}
au915/gateway/a84041ffff27cd0c/event/stats {"gatewayId":"a84041ffff27cd0c","time":"2024-05-21T19:24:20Z"}
au915/gateway/a84041ffff27cd0c/event/stats {"gatewayId":"a84041ffff27cd0c","time":"2024-05-21T19:24:50Z"}
au915/gateway/a84041ffff27cd0c/event/stats {"gatewayId":"a84041ffff27cd0c","time":"2024-05-21T19:25:20Z"}
au915/gateway/a84041ffff27cd0c/event/stats {"gatewayId":"a84041ffff27cd0c","time":"2024-05-21T19:25:50Z"}
au915/gateway/a84041ffff27cd0c/event/stats {"gatewayId":"a84041ffff27cd0c","time":"2024-05-21T19:26:20Z"}
au915/gateway/a84041ffff27cd0c/event/up {"phyPayload":"AAABAAAAQUCogR2HgaxBQKgPPb/zALg=","txInfo":{"frequency":920800000,"modulation":{"lora":{"bandwidth":125000,"spreadingFactor":10,"codeRate":"CR_4_5"}}},"rxInfo":{"gatewayId":"a84041ffff27cd0c","uplinkId":35606,"gwTime":"2024-05-21T19:26:37.588769Z","rssi":-96,"snr":10.5,"channel":4,"rfChain":1,"context":"T74nsg==","crcStatus":"CRC_OK"}}

Request for Help

I would greatly appreciate any help or guidance on why the gateway is not appearing online in the ChirpStack web interface, despite the MQTT messages indicating it is connected and sending data. Thank you in advance for your assistance!

Looks like you might want to replace the au915 with for for example au915_0 (channels 0 - 7), au915_1 (channels 8 - 15), …

Please see for example chirpstack/chirpstack/configuration/region_au915_0.toml at master · chirpstack/chirpstack · GitHub

Perfect, that was indeed the solution! Now I’m in the process of setting up a sensor.

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