# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
# configuration example and documentation.
[integration.mqtt.auth.generic]
servers=["tcp://mosquitto:1883"]
username=""
password=""
[integration.mqtt]
event_topic_template="as923/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
state_topic_template="as923/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
command_topic_template="as923/gateway/{{ .GatewayID }}/command/#"
and another for as923-4 in a seperate folder
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
# configuration example and documentation.
[integration.mqtt.auth.generic]
servers=["tcp://mosquitto:1883"]
username=""
password=""
[integration.mqtt]
event_topic_template="as923_4/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
state_topic_template="as923_4/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
command_topic_template="as923_4/gateway/{{ .GatewayID }}/command/#"
is this the correct approach here? I am not sure it is working, but still debugging with the end-device.
Just a correction, you are using the same frequency band (AS923), what you refer to, is the use of different frequency subbands (1, 2, 3, 4, 5, 6, 7 and 8).
This subbands use different channels for up and downlinks.
I think it is not necessary to have different .toml files under the /configuration folder in docker-compose. You should enter your gateway UI and select it from there (be careful, some end-devices work on ANY subband, and others are set to work in only one of them).
Hi @NicolasUy again i think you are mixing use-cases here. Where in V4 UI do you see ability to select gateway bands? I don’t see this option.
also if you look at the reference diagram here, you will see what I am trying to achieve.
@brocaar currently I am unable to get a single instance of chirpstack (with docker compose) running 2-3 regions. Can you help with this? I hate having to spawn different servers for each region…
this will load the region_as923.toml & region_as923_4.toml from the configuration/ folder, same place the chirpstack.toml is located. you will need to add the extra channels into the toml files for as923 - as without this it just uses the 2 join channels for all uplinks and downlinks. (currently i run 1 x as923 and 1 x au915 sb2 region).
now you need to create a seperate gateway bridge in your compose file for each of these regions you want to run. so now jump over into the chirpsack-gateway-bridge folder and create a regional toml for each region…
chirpstack-gateway-bridge-as923.toml
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
# configuration example and documentation.
[integration.mqtt.auth.generic]
servers=["tcp://mosquitto:1883"]
username=""
password=""
[integration.mqtt]
event_topic_template="as923/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
state_topic_template="as923/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
command_topic_template="as923/gateway/{{ .GatewayID }}/command/#"
and
chirpstack-gateway-bridge-as923_4.toml
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
# configuration example and documentation.
[integration.mqtt.auth.generic]
servers=["tcp://mosquitto:1883"]
username=""
password=""
[integration.mqtt]
event_topic_template="as923_4/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
state_topic_template="as923_4/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
command_topic_template="as923_4/gateway/{{ .GatewayID }}/command/#"
and your docker compose gateway bridge section should look something like this…
this should give you as923 bridge listening on udp port 1921 and as923_4 bridge listening on udp port 1924. i did this off memory, but i’m fairly confidant this should be all you need, let me know how you go with it - the only other thing i did was remove all the regions i dont run a gw bridge for from the configuration directory so it doesnt waste time trying to load them.