├── .gitattributes ├── .github └── FUNDING.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── configuration ├── chirpstack-gateway-bridge │ ├── chirpstack-gateway-bridge-basicstation-as923.toml │ ├── chirpstack-gateway-bridge-basicstation-as923_2.toml │ ├── chirpstack-gateway-bridge-basicstation-as923_3.toml │ ├── chirpstack-gateway-bridge-basicstation-as923_4.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_0.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_1.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_2.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_3.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_4.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_5.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_6.toml │ ├── chirpstack-gateway-bridge-basicstation-au915_7.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_0.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_1.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_10.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_11.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_2.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_3.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_4.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_5.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_6.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_7.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_8.toml │ ├── chirpstack-gateway-bridge-basicstation-cn470_9.toml │ ├── chirpstack-gateway-bridge-basicstation-eu433.toml │ ├── chirpstack-gateway-bridge-basicstation-eu868.toml │ ├── chirpstack-gateway-bridge-basicstation-in865.toml │ ├── chirpstack-gateway-bridge-basicstation-kr920.toml │ ├── chirpstack-gateway-bridge-basicstation-ru864.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_0.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_1.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_2.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_3.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_4.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_5.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_6.toml │ ├── chirpstack-gateway-bridge-basicstation-us915_7.toml │ └── chirpstack-gateway-bridge.toml ├── chirpstack │ ├── chirpstack.toml │ ├── region_as923.toml │ ├── region_as923_2.toml │ ├── region_as923_3.toml │ ├── region_as923_4.toml │ ├── region_au915_0.toml │ ├── region_au915_1.toml │ ├── region_au915_2.toml │ ├── region_au915_3.toml │ ├── region_au915_4.toml │ ├── region_au915_5.toml │ ├── region_au915_6.toml │ ├── region_au915_7.toml │ ├── region_cn470_0.toml │ ├── region_cn470_1.toml │ ├── region_cn470_10.toml │ ├── region_cn470_11.toml │ ├── region_cn470_2.toml │ ├── region_cn470_3.toml │ ├── region_cn470_4.toml │ ├── region_cn470_5.toml │ ├── region_cn470_6.toml │ ├── region_cn470_7.toml │ ├── region_cn470_8.toml │ ├── region_cn470_9.toml │ ├── region_cn779.toml │ ├── region_eu433.toml │ ├── region_eu868.toml │ ├── region_in865.toml │ ├── region_ism2400.toml │ ├── region_kr920.toml │ ├── region_ru864.toml │ ├── region_us915_0.toml │ ├── region_us915_1.toml │ ├── region_us915_2.toml │ ├── region_us915_3.toml │ ├── region_us915_4.toml │ ├── region_us915_5.toml │ ├── region_us915_6.toml │ └── region_us915_7.toml ├── mosquitto │ └── config │ │ └── mosquitto.conf └── postgresql │ └── initdb │ └── 001-chirpstack_extensions.sh └── docker-compose.yml /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: chirpstack 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # hidden files, exluding gitattributes 2 | .* 3 | !.gitattributes 4 | 5 | # data folder 6 | /data 7 | /lorawan-devices 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 Orne Brocaar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | import-lorawan-devices: 2 | docker-compose run --rm --entrypoint sh --user root chirpstack -c '\ 3 | apk add --no-cache git && \ 4 | git clone https://github.com/brocaar/lorawan-devices /tmp/lorawan-devices && \ 5 | chirpstack -c /etc/chirpstack import-legacy-lorawan-devices-repository -d /tmp/lorawan-devices' 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ChirpStack Docker example 2 | 3 | This repository contains a skeleton to setup the [ChirpStack](https://www.chirpstack.io) 4 | open-source LoRaWAN Network Server (v4) using [Docker Compose](https://docs.docker.com/compose/). 5 | 6 | **Note:** Please use this `docker-compose.yml` file as a starting point for testing 7 | but keep in mind that for production usage it might need modifications. 8 | 9 | ## Directory layout 10 | 11 | * `docker-compose.yml`: the docker-compose file containing the services 12 | * `configuration/chirpstack`: directory containing the ChirpStack configuration files 13 | * `configuration/chirpstack-gateway-bridge`: directory containing the ChirpStack Gateway Bridge configuration 14 | * `configuration/mosquitto`: directory containing the Mosquitto (MQTT broker) configuration 15 | * `configuration/postgresql/initdb/`: directory containing PostgreSQL initialization scripts 16 | 17 | ## Configuration 18 | 19 | This setup is pre-configured for all regions. You can either connect a ChirpStack Gateway Bridge 20 | instance (v3.14.0+) to the MQTT broker (port 1883) or connect a Semtech UDP Packet Forwarder. 21 | Please note that: 22 | 23 | * You must prefix the MQTT topic with the region. 24 | Please see the region configuration files in the `configuration/chirpstack` for a list 25 | of topic prefixes (e.g. eu868, us915_0, au915_0, as923_2, ...). 26 | * The protobuf marshaler is configured. 27 | 28 | This setup also comes with two instances of the ChirpStack Gateway Bridge. One 29 | is configured to handle the Semtech UDP Packet Forwarder data (port 1700), the 30 | other is configured to handle the Basics Station protocol (port 3001). Both 31 | instances are by default configured for EU868 (using the `eu868` MQTT topic 32 | prefix). 33 | 34 | ### Reconfigure regions 35 | 36 | ChirpStack has at least one configuration of each region enabled. You will find 37 | the list of `enabled_regions` in `configuration/chirpstack/chirpstack.toml`. 38 | Each entry in `enabled_regions` refers to the `id` that can be found in the 39 | `region_XXX.toml` file. This `region_XXX.toml` also contains a `topic_prefix` 40 | configuration which you need to configure the ChirpStack Gateway Bridge 41 | UDP instance (see below). 42 | 43 | #### ChirpStack Gateway Bridge (UDP) 44 | 45 | Within the `docker-compose.yml` file, you must replace the `eu868` prefix in the 46 | `INTEGRATION__..._TOPIC_TEMPLATE` configuration with the MQTT `topic_prefix` of 47 | the region you would like to use (e.g. `us915_0`, `au915_0`, `in865`, ...). 48 | 49 | #### ChirpStack Gateway Bridge (Basics Station) 50 | 51 | Within the `docker-compose.yml` file, you must update the configuration file 52 | that the ChirpStack Gateway Bridge instance must used. The default is 53 | `chirpstack-gateway-bridge-basicstation-eu868.toml`. For available 54 | configuration files, please see the `configuration/chirpstack-gateway-bridge` 55 | directory. 56 | 57 | # Data persistence 58 | 59 | PostgreSQL and Redis data is persisted in Docker volumes, see the `docker-compose.yml` 60 | `volumes` definition. 61 | 62 | ## Requirements 63 | 64 | Before using this `docker-compose.yml` file, make sure you have [Docker](https://www.docker.com/community-edition) 65 | installed. 66 | 67 | ## Importing device repository 68 | 69 | To import the [lorawan-devices](https://github.com/TheThingsNetwork/lorawan-devices) 70 | repository (optional step), run the following command: 71 | 72 | ```bash 73 | make import-lorawan-devices 74 | ``` 75 | 76 | This will clone the `lorawan-devices` repository and execute the import command of ChirpStack. 77 | Please note that for this step you need to have the `make` command installed. 78 | 79 | **Note:** an older snapshot of the `lorawan-devices` repository is cloned as the 80 | latest revision no longer contains a `LICENSE` file. 81 | 82 | ## Usage 83 | 84 | To start the ChirpStack simply run: 85 | 86 | ```bash 87 | $ docker-compose up 88 | ``` 89 | 90 | After all the components have been initialized and started, you should be able 91 | to open http://localhost:8080/ in your browser. 92 | 93 | ## 94 | 95 | The example includes the [ChirpStack REST API](https://github.com/chirpstack/chirpstack-rest-api). 96 | You should be able to access the UI by opening http://localhost:8090 in your browser. 97 | 98 | **Note:** It is recommended to use the [gRPC](https://www.chirpstack.io/docs/chirpstack/api/grpc.html) 99 | interface over the [REST](https://www.chirpstack.io/docs/chirpstack/api/rest.html) interface. 100 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="as923/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="as923/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="as923/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AS923" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 923200000, 33 | 923400000, 34 | 923600000, 35 | 923800000, 36 | 924000000, 37 | 924200000, 38 | 924400000, 39 | 924600000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=924500000 44 | bandwidth=250000 45 | spreading_factor=7 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_2.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="as923_2/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="as923_2/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="as923_2/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AS923" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 921400000, 33 | 921600000, 34 | 921800000, 35 | 922000000, 36 | 922200000, 37 | 922400000, 38 | 922600000, 39 | 922800000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=922700000 44 | bandwidth=250000 45 | spreading_factor=7 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_3.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="as923_3/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="as923_3/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="as923_3/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AS923" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 916600000, 33 | 916800000, 34 | 917000000, 35 | 917200000, 36 | 917400000, 37 | 917600000, 38 | 917800000, 39 | 918000000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=917900000 44 | bandwidth=250000 45 | spreading_factor=7 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_4.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="as923_4/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="as923_4/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="as923_4/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AS923" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 917300000, 33 | 917500000, 34 | 917700000, 35 | 917900000, 36 | 918100000, 37 | 918300000, 38 | 918500000, 39 | 918700000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=918600000 44 | bandwidth=250000 45 | spreading_factor=7 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_0.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_0/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_0/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_0/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 915200000, 33 | 915400000, 34 | 915600000, 35 | 915800000, 36 | 916000000, 37 | 916200000, 38 | 916400000, 39 | 916600000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=915900000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_1.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_1/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_1/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_1/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 916800000, 33 | 917000000, 34 | 917200000, 35 | 917400000, 36 | 917600000, 37 | 917800000, 38 | 918000000, 39 | 918200000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=917500000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_2.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_2/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_2/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_2/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 918400000, 33 | 918600000, 34 | 918800000, 35 | 919000000, 36 | 919200000, 37 | 919400000, 38 | 919600000, 39 | 919800000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=919100000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_3.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_3/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_3/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_3/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 920000000, 33 | 920200000, 34 | 920400000, 35 | 920600000, 36 | 920800000, 37 | 921000000, 38 | 921200000, 39 | 921400000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=920700000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_4.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_4/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_4/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_4/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 921600000, 33 | 921800000, 34 | 922000000, 35 | 922200000, 36 | 922400000, 37 | 922600000, 38 | 922800000, 39 | 923000000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=922300000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_5.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_5/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_5/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_5/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 923200000, 33 | 923400000, 34 | 923600000, 35 | 923800000, 36 | 924000000, 37 | 924200000, 38 | 924400000, 39 | 924600000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=923900000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_6.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_6/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_6/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_6/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 924800000, 33 | 925000000, 34 | 925200000, 35 | 925400000, 36 | 925600000, 37 | 925800000, 38 | 926000000, 39 | 926200000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=925500000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_7.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="au915_7/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="au915_7/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="au915_7/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="AU915" 24 | frequency_min=915000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 926400000, 33 | 926600000, 34 | 926800000, 35 | 927000000, 36 | 927200000, 37 | 927400000, 38 | 927600000, 39 | 927800000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=927100000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_0.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_0/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_0/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_0/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 470300000, 33 | 470500000, 34 | 470700000, 35 | 470900000, 36 | 471100000, 37 | 471300000, 38 | 471500000, 39 | 471700000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_1.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_1/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_1/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_1/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 471900000, 33 | 472100000, 34 | 472300000, 35 | 472500000, 36 | 472700000, 37 | 472900000, 38 | 473100000, 39 | 473300000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_10.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_10/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_10/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_10/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 486300000, 33 | 486500000, 34 | 486700000, 35 | 486900000, 36 | 487100000, 37 | 487300000, 38 | 487500000, 39 | 487700000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_11.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_11/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_11/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_11/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 487900000, 33 | 488100000, 34 | 488300000, 35 | 488500000, 36 | 488700000, 37 | 488900000, 38 | 489100000, 39 | 489300000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_2.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_2/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_2/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_2/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 473500000, 33 | 473700000, 34 | 473900000, 35 | 474100000, 36 | 474300000, 37 | 474500000, 38 | 474700000, 39 | 474900000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_3.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_3/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_3/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_3/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 475100000, 33 | 475300000, 34 | 475500000, 35 | 475700000, 36 | 475900000, 37 | 476100000, 38 | 476300000, 39 | 476500000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_4.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_4/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_4/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_4/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 476700000, 33 | 476900000, 34 | 477100000, 35 | 477300000, 36 | 477500000, 37 | 477700000, 38 | 477900000, 39 | 478100000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_5.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_5/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_5/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_5/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 478300000, 33 | 478500000, 34 | 478700000, 35 | 478900000, 36 | 479100000, 37 | 479300000, 38 | 479500000, 39 | 479700000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_6.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_6/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_6/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_6/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 479900000, 33 | 480100000, 34 | 480300000, 35 | 480500000, 36 | 480700000, 37 | 480900000, 38 | 481100000, 39 | 481300000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_7.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_7/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_7/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_7/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 481500000, 33 | 481700000, 34 | 481900000, 35 | 482100000, 36 | 482300000, 37 | 482500000, 38 | 482700000, 39 | 482900000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_8.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_8/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_8/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_8/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 483100000, 33 | 483300000, 34 | 483500000, 35 | 483700000, 36 | 483900000, 37 | 484100000, 38 | 484300000, 39 | 484500000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_9.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="cn470_9/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="cn470_9/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="cn470_9/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="CN470" 24 | frequency_min=470000000 25 | frequency_max=510000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 484700000, 33 | 484900000, 34 | 485100000, 35 | 485300000, 36 | 485500000, 37 | 485700000, 38 | 485900000, 39 | 486100000, 40 | ] 41 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu433.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="eu433/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="eu433/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="eu433/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="EU433" 24 | frequency_min=433050000 25 | frequency_max=434900000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 433175000, 33 | 433375000, 34 | 433575000, 35 | ] 36 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu868.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="eu868/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="eu868/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="EU868" 24 | frequency_min=863000000 25 | frequency_max=870000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 868100000, 33 | 868300000, 34 | 868500000, 35 | 867100000, 36 | 867300000, 37 | 867500000, 38 | 867700000, 39 | 867900000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=868300000 44 | bandwidth=250000 45 | spreading_factor=7 46 | 47 | [backend.basic_station.concentrators.fsk] 48 | frequency=868800000 49 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-in865.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="in865/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="in865/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="in865/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="IN865" 24 | frequency_min=865000000 25 | frequency_max=867000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 865062500, 33 | 865402500, 34 | 865985000, 35 | ] 36 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-kr920.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="kr920/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="kr920/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="kr920/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="KR920" 24 | frequency_min=920900000 25 | frequency_max=923300000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 922100000, 33 | 922300000, 34 | 922500000, 35 | ] 36 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-ru864.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="ru864/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="ru864/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="ru864/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="RU864" 24 | frequency_min=863000000 25 | frequency_max=870000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 868900000, 33 | 869100000, 34 | ] 35 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_0.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_0/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_0/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_0/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 902300000, 33 | 902500000, 34 | 902700000, 35 | 902900000, 36 | 903100000, 37 | 903300000, 38 | 903500000, 39 | 903700000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=903000000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_1.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_1/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_1/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_1/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 903900000, 33 | 904100000, 34 | 904300000, 35 | 904500000, 36 | 904700000, 37 | 904900000, 38 | 905100000, 39 | 905300000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=904600000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_2.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_2/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_2/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_2/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 905500000, 33 | 905700000, 34 | 905900000, 35 | 906100000, 36 | 906300000, 37 | 906500000, 38 | 906700000, 39 | 906900000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=906200000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_3.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_3/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_3/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_3/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 907100000, 33 | 907300000, 34 | 907500000, 35 | 907700000, 36 | 907900000, 37 | 908100000, 38 | 908300000, 39 | 908500000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=907800000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_4.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_4/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_4/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_4/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 908700000, 33 | 908900000, 34 | 909100000, 35 | 909300000, 36 | 909500000, 37 | 909700000, 38 | 909900000, 39 | 910100000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=909400000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_5.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_5/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_5/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_5/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 910300000, 33 | 910500000, 34 | 910700000, 35 | 910900000, 36 | 911100000, 37 | 911300000, 38 | 911500000, 39 | 911700000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=911000000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_6.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_6/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_6/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_6/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 911900000, 33 | 912100000, 34 | 912300000, 35 | 912500000, 36 | 912700000, 37 | 912900000, 38 | 913100000, 39 | 913300000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=912600000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_7.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | 9 | [integration.mqtt] 10 | event_topic_template="us915_7/gateway/{{ .GatewayID }}/event/{{ .EventType }}" 11 | state_topic_template="us915_7/gateway/{{ .GatewayID }}/state/{{ .StateType }}" 12 | command_topic_template="us915_7/gateway/{{ .GatewayID }}/command/#" 13 | 14 | [backend] 15 | type="basic_station" 16 | 17 | [backend.basic_station] 18 | bind=":3001" 19 | tls_cert="" 20 | tls_key="" 21 | ca_cert="" 22 | 23 | region="US915" 24 | frequency_min=923000000 25 | frequency_max=928000000 26 | 27 | 28 | [[backend.basic_station.concentrators]] 29 | 30 | [backend.basic_station.concentrators.multi_sf] 31 | frequencies=[ 32 | 913500000, 33 | 913700000, 34 | 913900000, 35 | 914100000, 36 | 914300000, 37 | 914500000, 38 | 914700000, 39 | 914900000, 40 | ] 41 | 42 | [backend.basic_station.concentrators.lora_std] 43 | frequency=914200000 44 | bandwidth=500000 45 | spreading_factor=8 46 | -------------------------------------------------------------------------------- /configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml: -------------------------------------------------------------------------------- 1 | # See https://www.chirpstack.io/gateway-bridge/install/config/ for a full 2 | # configuration example and documentation. 3 | 4 | [integration.mqtt.auth.generic] 5 | servers=["tcp://mosquitto:1883"] 6 | username="" 7 | password="" 8 | -------------------------------------------------------------------------------- /configuration/chirpstack/chirpstack.toml: -------------------------------------------------------------------------------- 1 | # Logging. 2 | [logging] 3 | 4 | # Log level. 5 | # 6 | # Options are: trace, debug, info, warn error. 7 | level="info" 8 | 9 | 10 | # PostgreSQL configuration. 11 | [postgresql] 12 | 13 | # PostgreSQL DSN. 14 | # 15 | # Format example: postgres://:@/?sslmode=. 16 | # 17 | # SSL mode options: 18 | # * disable - Do not use TLS 19 | # * prefer - Attempt to connect with TLS but allow sessions without 20 | # * require - Require the use of TLS 21 | dsn="postgres://chirpstack:chirpstack@$POSTGRESQL_HOST/chirpstack?sslmode=disable" 22 | 23 | # Max open connections. 24 | # 25 | # This sets the max. number of open connections that are allowed in the 26 | # PostgreSQL connection pool. 27 | max_open_connections=10 28 | 29 | # Min idle connections. 30 | # 31 | # This sets the min. number of idle connections in the PostgreSQL connection 32 | # pool (0 = equal to max_open_connections). 33 | min_idle_connections=0 34 | 35 | 36 | # Redis configuration. 37 | [redis] 38 | 39 | # Server address or addresses. 40 | # 41 | # Set multiple addresses when connecting to a cluster. 42 | servers=[ 43 | "redis://$REDIS_HOST/", 44 | ] 45 | 46 | # TLS enabled. 47 | tls_enabled=false 48 | 49 | # Redis Cluster. 50 | # 51 | # Set this to true when the provided URLs are pointing to a Redis Cluster 52 | # instance. 53 | cluster=false 54 | 55 | 56 | # Network related configuration. 57 | [network] 58 | 59 | # Network identifier (NetID, 3 bytes) encoded as HEX (e.g. 010203). 60 | net_id="000000" 61 | 62 | # Enabled regions. 63 | # 64 | # Multiple regions can be enabled simultaneously. Each region must match 65 | # the 'name' parameter of the region configuration in '[[regions]]'. 66 | enabled_regions=[ 67 | "as923", 68 | "as923_2", 69 | "as923_3", 70 | "as923_4", 71 | "au915_0", 72 | "cn470_10", 73 | "cn779", 74 | "eu433", 75 | "eu868", 76 | "in865", 77 | "ism2400", 78 | "kr920", 79 | "ru864", 80 | "us915_0", 81 | "us915_1", 82 | ] 83 | 84 | 85 | # API interface configuration. 86 | [api] 87 | 88 | # interface:port to bind the API interface to. 89 | bind="0.0.0.0:8080" 90 | 91 | # Secret. 92 | # 93 | # This secret is used for generating login and API tokens, make sure this 94 | # is never exposed. Changing this secret will invalidate all login and API 95 | # tokens. The following command can be used to generate a random secret: 96 | # openssl rand -base64 32 97 | secret="you-must-replace-this" 98 | 99 | 100 | [integration] 101 | enabled=["mqtt"] 102 | 103 | [integration.mqtt] 104 | server="tcp://$MQTT_BROKER_HOST:1883/" 105 | json=true 106 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_as923.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example AS923 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="as923" 6 | 7 | # Description is a short description for this region. 8 | description="AS923" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="AS923" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="as923" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=923200000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=923400000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | 111 | # Region specific network configuration. 112 | [regions.network] 113 | 114 | # Installation margin (dB) used by the ADR engine. 115 | # 116 | # A higher number means that the network-server will keep more margin, 117 | # resulting in a lower data-rate but decreasing the chance that the 118 | # device gets disconnected because it is unable to reach one of the 119 | # surrounded gateways. 120 | installation_margin=10 121 | 122 | # RX window (Class-A). 123 | # 124 | # Set this to: 125 | # 0: RX1 / RX2 126 | # 1: RX1 only 127 | # 2: RX2 only 128 | rx_window=0 129 | 130 | # RX1 delay (1 - 15 seconds). 131 | rx1_delay=1 132 | 133 | # RX1 data-rate offset 134 | rx1_dr_offset=0 135 | 136 | # RX2 data-rate 137 | rx2_dr=2 138 | 139 | # RX2 frequency (Hz) 140 | rx2_frequency=923200000 141 | 142 | # Prefer RX2 on RX1 data-rate less than. 143 | # 144 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 145 | # is smaller than the configured value, then the Network Server will 146 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 147 | # has already a payload scheduled at the RX2 timing) it will try RX1. 148 | rx2_prefer_on_rx1_dr_lt=0 149 | 150 | # Prefer RX2 on link budget. 151 | # 152 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 153 | # try to schedule the downlink in RX2, failing that it will try RX1. 154 | rx2_prefer_on_link_budget=false 155 | 156 | # Downlink TX Power (dBm) 157 | # 158 | # When set to -1, the downlink TX Power from the configured band will 159 | # be used. 160 | # 161 | # Please consult the LoRaWAN Regional Parameters and local regulations 162 | # for valid and legal options. Note that the configured TX Power must be 163 | # supported by your gateway(s). 164 | downlink_tx_power=-1 165 | 166 | # ADR is disabled. 167 | adr_disabled=false 168 | 169 | # Minimum data-rate. 170 | min_dr=0 171 | 172 | # Maximum data-rate. 173 | max_dr=5 174 | 175 | 176 | # Rejoin-request configuration (LoRaWAN 1.1) 177 | [regions.network.rejoin_request] 178 | 179 | # Request devices to periodically send rejoin-requests. 180 | enabled=false 181 | 182 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 183 | # uplink messages. Valid values are 0 to 15. 184 | max_count_n=0 185 | 186 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 187 | # seconds. Valid values are 0 to 15. 188 | # 189 | # 0 = roughly 17 minutes 190 | # 15 = about 1 year 191 | max_time_n=0 192 | 193 | 194 | # Class-B configuration. 195 | [regions.network.class_b] 196 | 197 | # Ping-slot data-rate. 198 | ping_slot_dr=3 199 | 200 | # Ping-slot frequency (Hz) 201 | # 202 | # set this to 0 to use the default frequency plan for the configured region 203 | # (which could be frequency hopping). 204 | ping_slot_frequency=0 205 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_as923_2.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example AS923_2 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="as923_2" 6 | 7 | # Description is a short description for this region. 8 | description="AS923-2" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="AS923_2" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="as923_2" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=921400000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=921600000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | 111 | # Region specific network configuration. 112 | [regions.network] 113 | 114 | # Installation margin (dB) used by the ADR engine. 115 | # 116 | # A higher number means that the network-server will keep more margin, 117 | # resulting in a lower data-rate but decreasing the chance that the 118 | # device gets disconnected because it is unable to reach one of the 119 | # surrounded gateways. 120 | installation_margin=10 121 | 122 | # RX window (Class-A). 123 | # 124 | # Set this to: 125 | # 0: RX1 / RX2 126 | # 1: RX1 only 127 | # 2: RX2 only 128 | rx_window=0 129 | 130 | # RX1 delay (1 - 15 seconds). 131 | rx1_delay=1 132 | 133 | # RX1 data-rate offset 134 | rx1_dr_offset=0 135 | 136 | # RX2 data-rate 137 | rx2_dr=0 138 | 139 | # RX2 frequency (Hz) 140 | rx2_frequency=921400000 141 | 142 | # Prefer RX2 on RX1 data-rate less than. 143 | # 144 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 145 | # is smaller than the configured value, then the Network Server will 146 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 147 | # has already a payload scheduled at the RX2 timing) it will try RX1. 148 | rx2_prefer_on_rx1_dr_lt=0 149 | 150 | # Prefer RX2 on link budget. 151 | # 152 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 153 | # try to schedule the downlink in RX2, failing that it will try RX1. 154 | rx2_prefer_on_link_budget=false 155 | 156 | # Downlink TX Power (dBm) 157 | # 158 | # When set to -1, the downlink TX Power from the configured band will 159 | # be used. 160 | # 161 | # Please consult the LoRaWAN Regional Parameters and local regulations 162 | # for valid and legal options. Note that the configured TX Power must be 163 | # supported by your gateway(s). 164 | downlink_tx_power=-1 165 | 166 | # ADR is disabled. 167 | adr_disabled=false 168 | 169 | # Minimum data-rate. 170 | min_dr=0 171 | 172 | # Maximum data-rate. 173 | max_dr=5 174 | 175 | 176 | # Rejoin-request configuration (LoRaWAN 1.1) 177 | [regions.network.rejoin_request] 178 | 179 | # Request devices to periodically send rejoin-requests. 180 | enabled=false 181 | 182 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 183 | # uplink messages. Valid values are 0 to 15. 184 | max_count_n=0 185 | 186 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 187 | # seconds. Valid values are 0 to 15. 188 | # 189 | # 0 = roughly 17 minutes 190 | # 15 = about 1 year 191 | max_time_n=0 192 | 193 | 194 | # Class-B configuration. 195 | [regions.network.class_b] 196 | 197 | # Ping-slot data-rate. 198 | ping_slot_dr=3 199 | 200 | # Ping-slot frequency (Hz) 201 | # 202 | # set this to 0 to use the default frequency plan for the configured region 203 | # (which could be frequency hopping). 204 | ping_slot_frequency=0 205 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_as923_3.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example AS923_3 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="as923_3" 6 | 7 | # Description is a short description for this region. 8 | description="AS923-3" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="AS923_3" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="as923_3" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=916600000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=916800000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | 111 | # Region specific network configuration. 112 | [regions.network] 113 | 114 | # Installation margin (dB) used by the ADR engine. 115 | # 116 | # A higher number means that the network-server will keep more margin, 117 | # resulting in a lower data-rate but decreasing the chance that the 118 | # device gets disconnected because it is unable to reach one of the 119 | # surrounded gateways. 120 | installation_margin=10 121 | 122 | # RX window (Class-A). 123 | # 124 | # Set this to: 125 | # 0: RX1 / RX2 126 | # 1: RX1 only 127 | # 2: RX2 only 128 | rx_window=0 129 | 130 | # RX1 delay (1 - 15 seconds). 131 | rx1_delay=1 132 | 133 | # RX1 data-rate offset 134 | rx1_dr_offset=0 135 | 136 | # RX2 data-rate 137 | rx2_dr=2 138 | 139 | # RX2 frequency (Hz) 140 | rx2_frequency=916600000 141 | 142 | # Prefer RX2 on RX1 data-rate less than. 143 | # 144 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 145 | # is smaller than the configured value, then the Network Server will 146 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 147 | # has already a payload scheduled at the RX2 timing) it will try RX1. 148 | rx2_prefer_on_rx1_dr_lt=0 149 | 150 | # Prefer RX2 on link budget. 151 | # 152 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 153 | # try to schedule the downlink in RX2, failing that it will try RX1. 154 | rx2_prefer_on_link_budget=false 155 | 156 | # Downlink TX Power (dBm) 157 | # 158 | # When set to -1, the downlink TX Power from the configured band will 159 | # be used. 160 | # 161 | # Please consult the LoRaWAN Regional Parameters and local regulations 162 | # for valid and legal options. Note that the configured TX Power must be 163 | # supported by your gateway(s). 164 | downlink_tx_power=-1 165 | 166 | # ADR is disabled. 167 | adr_disabled=false 168 | 169 | # Minimum data-rate. 170 | min_dr=0 171 | 172 | # Maximum data-rate. 173 | max_dr=5 174 | 175 | 176 | # Rejoin-request configuration (LoRaWAN 1.1) 177 | [regions.network.rejoin_request] 178 | 179 | # Request devices to periodically send rejoin-requests. 180 | enabled=false 181 | 182 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 183 | # uplink messages. Valid values are 0 to 15. 184 | max_count_n=0 185 | 186 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 187 | # seconds. Valid values are 0 to 15. 188 | # 189 | # 0 = roughly 17 minutes 190 | # 15 = about 1 year 191 | max_time_n=0 192 | 193 | 194 | # Class-B configuration. 195 | [regions.network.class_b] 196 | 197 | # Ping-slot data-rate. 198 | ping_slot_dr=3 199 | 200 | # Ping-slot frequency (Hz) 201 | # 202 | # set this to 0 to use the default frequency plan for the configured region 203 | # (which could be frequency hopping). 204 | ping_slot_frequency=0 205 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_as923_4.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example AS923_4 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="as923_4" 6 | 7 | # Description is a short description for this region. 8 | description="AS923-4" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="AS923_4" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="as923_4" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=917300000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=917500000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | 111 | # Region specific network configuration. 112 | [regions.network] 113 | 114 | # Installation margin (dB) used by the ADR engine. 115 | # 116 | # A higher number means that the network-server will keep more margin, 117 | # resulting in a lower data-rate but decreasing the chance that the 118 | # device gets disconnected because it is unable to reach one of the 119 | # surrounded gateways. 120 | installation_margin=10 121 | 122 | # RX window (Class-A). 123 | # 124 | # Set this to: 125 | # 0: RX1 / RX2 126 | # 1: RX1 only 127 | # 2: RX2 only 128 | rx_window=0 129 | 130 | # RX1 delay (1 - 15 seconds). 131 | rx1_delay=1 132 | 133 | # RX1 data-rate offset 134 | rx1_dr_offset=0 135 | 136 | # RX2 data-rate 137 | rx2_dr=2 138 | 139 | # RX2 frequency (Hz) 140 | rx2_frequency=917300000 141 | 142 | # Prefer RX2 on RX1 data-rate less than. 143 | # 144 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 145 | # is smaller than the configured value, then the Network Server will 146 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 147 | # has already a payload scheduled at the RX2 timing) it will try RX1. 148 | rx2_prefer_on_rx1_dr_lt=0 149 | 150 | # Prefer RX2 on link budget. 151 | # 152 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 153 | # try to schedule the downlink in RX2, failing that it will try RX1. 154 | rx2_prefer_on_link_budget=false 155 | 156 | # Downlink TX Power (dBm) 157 | # 158 | # When set to -1, the downlink TX Power from the configured band will 159 | # be used. 160 | # 161 | # Please consult the LoRaWAN Regional Parameters and local regulations 162 | # for valid and legal options. Note that the configured TX Power must be 163 | # supported by your gateway(s). 164 | downlink_tx_power=-1 165 | 166 | # ADR is disabled. 167 | adr_disabled=false 168 | 169 | # Minimum data-rate. 170 | min_dr=0 171 | 172 | # Maximum data-rate. 173 | max_dr=5 174 | 175 | 176 | # Rejoin-request configuration (LoRaWAN 1.1) 177 | [regions.network.rejoin_request] 178 | 179 | # Request devices to periodically send rejoin-requests. 180 | enabled=false 181 | 182 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 183 | # uplink messages. Valid values are 0 to 15. 184 | max_count_n=0 185 | 186 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 187 | # seconds. Valid values are 0 to 15. 188 | # 189 | # 0 = roughly 17 minutes 190 | # 15 = about 1 year 191 | max_time_n=0 192 | 193 | 194 | # Class-B configuration. 195 | [regions.network.class_b] 196 | 197 | # Ping-slot data-rate. 198 | ping_slot_dr=3 199 | 200 | # Ping-slot frequency (Hz) 201 | # 202 | # set this to 0 to use the default frequency plan for the configured region 203 | # (which could be frequency hopping). 204 | ping_slot_frequency=0 205 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_0.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 0-7). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_0" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 0-7)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_0" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=470300000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=470500000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=470700000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=470900000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=471100000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=471300000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=471500000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=471700000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[0, 1, 2, 3, 4, 5, 6, 7] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_1.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 8-15). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_1" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 8-15)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_1" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=471900000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=472100000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=472300000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=472500000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=472700000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=472900000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=473100000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=473300000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[8, 9, 10, 11, 12, 13, 14, 15] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_10.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 80-87). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_10" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 80-87)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_10" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=486300000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=486500000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=486700000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=486900000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=487100000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=487300000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=487500000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=487700000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[80, 81, 82, 83, 84, 85, 86, 87] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_11.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 88-95). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_11" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 88-95)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_11" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=487900000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=488100000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=488300000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=488500000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=488700000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=488900000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=489100000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=489300000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[88, 89, 90, 91, 92, 93, 94, 95] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_2.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 16-23). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_2" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 16-23)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_2" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=473500000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=473700000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=473900000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=474100000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=474300000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=474500000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=474700000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=474900000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[16, 17, 18, 19, 20, 21, 22, 23] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_3.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 24-31). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_3" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 24-31)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_3" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=475100000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=475300000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=475500000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=475700000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=475900000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=476100000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=476300000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=476500000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[24, 25, 26, 27, 28, 29, 30, 31] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_4.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 32-39). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_4" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 32-39)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_4" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=476700000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=476900000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=477100000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=477300000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=477500000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=477700000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=477900000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=478100000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[32, 33, 34, 35, 36, 37, 38, 39] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_5.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 40-47). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_5" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 40-47)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_5" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=478300000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=478500000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=478700000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=478900000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=479100000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=479300000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=479500000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=479700000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[40, 41, 42, 43, 44, 45, 46, 47] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_6.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 48-55). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_6" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 48-55)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_6" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=479900000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=480100000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=480300000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=480500000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=480700000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=480900000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=481100000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=481300000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[48, 49, 50, 51, 52, 53, 54, 55] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_7.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 56-63). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_7" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 56-63)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_7" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=481500000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=481700000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=481900000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=482100000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=482300000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=482500000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=482700000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=482900000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[56, 57, 58, 59, 60, 61, 62, 63] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn470_8.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN470 example (channels 64-71). 2 | [[regions]] 3 | 4 | # ID is an use-defined identifier for this region. 5 | id="cn470_8" 6 | 7 | # Description is a short description for this region. 8 | description="CN470 (channels 64-71)" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN470" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn470_8" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=483100000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=483300000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=483500000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | [[regions.gateway.channels]] 117 | frequency=483700000 118 | bandwidth=125000 119 | modulation="LORA" 120 | spreading_factors=[7, 8, 9, 10, 11, 12] 121 | 122 | [[regions.gateway.channels]] 123 | frequency=483900000 124 | bandwidth=125000 125 | modulation="LORA" 126 | spreading_factors=[7, 8, 9, 10, 11, 12] 127 | 128 | [[regions.gateway.channels]] 129 | frequency=484100000 130 | bandwidth=125000 131 | modulation="LORA" 132 | spreading_factors=[7, 8, 9, 10, 11, 12] 133 | 134 | [[regions.gateway.channels]] 135 | frequency=484300000 136 | bandwidth=125000 137 | modulation="LORA" 138 | spreading_factors=[7, 8, 9, 10, 11, 12] 139 | 140 | [[regions.gateway.channels]] 141 | frequency=484500000 142 | bandwidth=125000 143 | modulation="LORA" 144 | spreading_factors=[7, 8, 9, 10, 11, 12] 145 | 146 | 147 | # Region specific network configuration. 148 | [regions.network] 149 | 150 | # Installation margin (dB) used by the ADR engine. 151 | # 152 | # A higher number means that the network-server will keep more margin, 153 | # resulting in a lower data-rate but decreasing the chance that the 154 | # device gets disconnected because it is unable to reach one of the 155 | # surrounded gateways. 156 | installation_margin=10 157 | 158 | # RX window (Class-A). 159 | # 160 | # Set this to: 161 | # 0: RX1 / RX2 162 | # 1: RX1 only 163 | # 2: RX2 only 164 | rx_window=0 165 | 166 | # RX1 delay (1 - 15 seconds). 167 | rx1_delay=1 168 | 169 | # RX1 data-rate offset 170 | rx1_dr_offset=0 171 | 172 | # RX2 data-rate 173 | rx2_dr=0 174 | 175 | # RX2 frequency (Hz) 176 | rx2_frequency=505300000 177 | 178 | # Prefer RX2 on RX1 data-rate less than. 179 | # 180 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 181 | # is smaller than the configured value, then the Network Server will 182 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 183 | # has already a payload scheduled at the RX2 timing) it will try RX1. 184 | rx2_prefer_on_rx1_dr_lt=0 185 | 186 | # Prefer RX2 on link budget. 187 | # 188 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 189 | # try to schedule the downlink in RX2, failing that it will try RX1. 190 | rx2_prefer_on_link_budget=false 191 | 192 | # Downlink TX Power (dBm) 193 | # 194 | # When set to -1, the downlink TX Power from the configured band will 195 | # be used. 196 | # 197 | # Please consult the LoRaWAN Regional Parameters and local regulations 198 | # for valid and legal options. Note that the configured TX Power must be 199 | # supported by your gateway(s). 200 | downlink_tx_power=-1 201 | 202 | # ADR is disabled. 203 | adr_disabled=false 204 | 205 | # Minimum data-rate. 206 | min_dr=0 207 | 208 | # Maximum data-rate. 209 | max_dr=5 210 | 211 | # Enabled uplink channels. 212 | # 213 | # Use this when ony a sub-set of the by default enabled channels are being 214 | # used. For example when only using the first 8 channels of the US band. 215 | # Note: when left blank / empty array, all channels will be enabled. 216 | enabled_uplink_channels=[64, 65, 66, 67, 68, 69, 70, 71] 217 | 218 | 219 | # Rejoin-request configuration (LoRaWAN 1.1) 220 | [regions.network.rejoin_request] 221 | 222 | # Request devices to periodically send rejoin-requests. 223 | enabled=false 224 | 225 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 226 | # uplink messages. Valid values are 0 to 15. 227 | max_count_n=0 228 | 229 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 230 | # seconds. Valid values are 0 to 15. 231 | # 232 | # 0 = roughly 17 minutes 233 | # 15 = about 1 year 234 | max_time_n=0 235 | 236 | 237 | # Class-B configuration. 238 | [regions.network.class_b] 239 | 240 | # Ping-slot data-rate. 241 | ping_slot_dr=2 242 | 243 | # Ping-slot frequency (Hz) 244 | # 245 | # set this to 0 to use the default frequency plan for the configured region 246 | # (which could be frequency hopping). 247 | ping_slot_frequency=0 248 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_cn779.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example CN779 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="cn779" 6 | 7 | # Description is a short description for this region. 8 | description="CN779" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="CN779" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="cn779" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=779500000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=779700000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=779900000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | 117 | # Region specific network configuration. 118 | [regions.network] 119 | 120 | # Installation margin (dB) used by the ADR engine. 121 | # 122 | # A higher number means that the network-server will keep more margin, 123 | # resulting in a lower data-rate but decreasing the chance that the 124 | # device gets disconnected because it is unable to reach one of the 125 | # surrounded gateways. 126 | installation_margin=10 127 | 128 | # RX window (Class-A). 129 | # 130 | # Set this to: 131 | # 0: RX1 / RX2 132 | # 1: RX1 only 133 | # 2: RX2 only 134 | rx_window=0 135 | 136 | # RX1 delay (1 - 15 seconds). 137 | rx1_delay=1 138 | 139 | # RX1 data-rate offset 140 | rx1_dr_offset=0 141 | 142 | # RX2 data-rate 143 | rx2_dr=0 144 | 145 | # RX2 frequency (Hz) 146 | rx2_frequency=786000000 147 | 148 | # Prefer RX2 on RX1 data-rate less than. 149 | # 150 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 151 | # is smaller than the configured value, then the Network Server will 152 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 153 | # has already a payload scheduled at the RX2 timing) it will try RX1. 154 | rx2_prefer_on_rx1_dr_lt=0 155 | 156 | # Prefer RX2 on link budget. 157 | # 158 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 159 | # try to schedule the downlink in RX2, failing that it will try RX1. 160 | rx2_prefer_on_link_budget=false 161 | 162 | # Downlink TX Power (dBm) 163 | # 164 | # When set to -1, the downlink TX Power from the configured band will 165 | # be used. 166 | # 167 | # Please consult the LoRaWAN Regional Parameters and local regulations 168 | # for valid and legal options. Note that the configured TX Power must be 169 | # supported by your gateway(s). 170 | downlink_tx_power=-1 171 | 172 | # ADR is disabled. 173 | adr_disabled=false 174 | 175 | # Minimum data-rate. 176 | min_dr=0 177 | 178 | # Maximum data-rate. 179 | max_dr=5 180 | 181 | 182 | # Rejoin-request configuration (LoRaWAN 1.1) 183 | [regions.network.rejoin_request] 184 | 185 | # Request devices to periodically send rejoin-requests. 186 | enabled=false 187 | 188 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 189 | # uplink messages. Valid values are 0 to 15. 190 | max_count_n=0 191 | 192 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 193 | # seconds. Valid values are 0 to 15. 194 | # 195 | # 0 = roughly 17 minutes 196 | # 15 = about 1 year 197 | max_time_n=0 198 | 199 | 200 | # Class-B configuration. 201 | [regions.network.class_b] 202 | 203 | # Ping-slot data-rate. 204 | ping_slot_dr=3 205 | 206 | # Ping-slot frequency (Hz) 207 | # 208 | # set this to 0 to use the default frequency plan for the configured region 209 | # (which could be frequency hopping). 210 | ping_slot_frequency=0 211 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_eu433.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example EU433 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="eu433" 6 | 7 | # Description is a short description for this region. 8 | description="EU443" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="EU433" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="eu433" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=433175000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=433375000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=433575000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | 117 | # Region specific network configuration. 118 | [regions.network] 119 | 120 | # Installation margin (dB) used by the ADR engine. 121 | # 122 | # A higher number means that the network-server will keep more margin, 123 | # resulting in a lower data-rate but decreasing the chance that the 124 | # device gets disconnected because it is unable to reach one of the 125 | # surrounded gateways. 126 | installation_margin=10 127 | 128 | # RX window (Class-A). 129 | # 130 | # Set this to: 131 | # 0: RX1 / RX2 132 | # 1: RX1 only 133 | # 2: RX2 only 134 | rx_window=0 135 | 136 | # RX1 delay (1 - 15 seconds). 137 | rx1_delay=1 138 | 139 | # RX1 data-rate offset 140 | rx1_dr_offset=0 141 | 142 | # RX2 data-rate 143 | rx2_dr=0 144 | 145 | # RX2 frequency (Hz) 146 | rx2_frequency=434665000 147 | 148 | # Prefer RX2 on RX1 data-rate less than. 149 | # 150 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 151 | # is smaller than the configured value, then the Network Server will 152 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 153 | # has already a payload scheduled at the RX2 timing) it will try RX1. 154 | rx2_prefer_on_rx1_dr_lt=0 155 | 156 | # Prefer RX2 on link budget. 157 | # 158 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 159 | # try to schedule the downlink in RX2, failing that it will try RX1. 160 | rx2_prefer_on_link_budget=false 161 | 162 | # Downlink TX Power (dBm) 163 | # 164 | # When set to -1, the downlink TX Power from the configured band will 165 | # be used. 166 | # 167 | # Please consult the LoRaWAN Regional Parameters and local regulations 168 | # for valid and legal options. Note that the configured TX Power must be 169 | # supported by your gateway(s). 170 | downlink_tx_power=-1 171 | 172 | # ADR is disabled. 173 | adr_disabled=false 174 | 175 | # Minimum data-rate. 176 | min_dr=0 177 | 178 | # Maximum data-rate. 179 | max_dr=5 180 | 181 | 182 | # Rejoin-request configuration (LoRaWAN 1.1) 183 | [regions.network.rejoin_request] 184 | 185 | # Request devices to periodically send rejoin-requests. 186 | enabled=false 187 | 188 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 189 | # uplink messages. Valid values are 0 to 15. 190 | max_count_n=0 191 | 192 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 193 | # seconds. Valid values are 0 to 15. 194 | # 195 | # 0 = roughly 17 minutes 196 | # 15 = about 1 year 197 | max_time_n=0 198 | 199 | 200 | # Class-B configuration. 201 | [regions.network.class_b] 202 | 203 | # Ping-slot data-rate. 204 | ping_slot_dr=3 205 | 206 | # Ping-slot frequency (Hz) 207 | # 208 | # set this to 0 to use the default frequency plan for the configured region 209 | # (which could be frequency hopping). 210 | ping_slot_frequency=0 211 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_in865.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example IN865 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="in865" 6 | 7 | # Description is a short description for this region. 8 | description="IN865" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="IN865" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="in865" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=865062500 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=865402500 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=865985000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | 117 | # Region specific network configuration. 118 | [regions.network] 119 | 120 | # Installation margin (dB) used by the ADR engine. 121 | # 122 | # A higher number means that the network-server will keep more margin, 123 | # resulting in a lower data-rate but decreasing the chance that the 124 | # device gets disconnected because it is unable to reach one of the 125 | # surrounded gateways. 126 | installation_margin=10 127 | 128 | # RX window (Class-A). 129 | # 130 | # Set this to: 131 | # 0: RX1 / RX2 132 | # 1: RX1 only 133 | # 2: RX2 only 134 | rx_window=0 135 | 136 | # RX1 delay (1 - 15 seconds). 137 | rx1_delay=1 138 | 139 | # RX1 data-rate offset 140 | rx1_dr_offset=0 141 | 142 | # RX2 data-rate 143 | rx2_dr=2 144 | 145 | # RX2 frequency (Hz) 146 | rx2_frequency=866550000 147 | 148 | # Prefer RX2 on RX1 data-rate less than. 149 | # 150 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 151 | # is smaller than the configured value, then the Network Server will 152 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 153 | # has already a payload scheduled at the RX2 timing) it will try RX1. 154 | rx2_prefer_on_rx1_dr_lt=0 155 | 156 | # Prefer RX2 on link budget. 157 | # 158 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 159 | # try to schedule the downlink in RX2, failing that it will try RX1. 160 | rx2_prefer_on_link_budget=false 161 | 162 | # Downlink TX Power (dBm) 163 | # 164 | # When set to -1, the downlink TX Power from the configured band will 165 | # be used. 166 | # 167 | # Please consult the LoRaWAN Regional Parameters and local regulations 168 | # for valid and legal options. Note that the configured TX Power must be 169 | # supported by your gateway(s). 170 | downlink_tx_power=-1 171 | 172 | # ADR is disabled. 173 | adr_disabled=false 174 | 175 | # Minimum data-rate. 176 | min_dr=0 177 | 178 | # Maximum data-rate. 179 | max_dr=5 180 | 181 | 182 | # Rejoin-request configuration (LoRaWAN 1.1) 183 | [regions.network.rejoin_request] 184 | 185 | # Request devices to periodically send rejoin-requests. 186 | enabled=false 187 | 188 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 189 | # uplink messages. Valid values are 0 to 15. 190 | max_count_n=0 191 | 192 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 193 | # seconds. Valid values are 0 to 15. 194 | # 195 | # 0 = roughly 17 minutes 196 | # 15 = about 1 year 197 | max_time_n=0 198 | 199 | 200 | # Class-B configuration. 201 | [regions.network.class_b] 202 | 203 | # Ping-slot data-rate. 204 | ping_slot_dr=4 205 | 206 | # Ping-slot frequency (Hz) 207 | # 208 | # set this to 0 to use the default frequency plan for the configured region 209 | # (which could be frequency hopping). 210 | ping_slot_frequency=0 211 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_ism2400.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example ISM2400 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="ism2400" 6 | 7 | # Description is a short description for this region. 8 | description="ISM2400" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="ISM2400" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="ism2400" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=2403000000 100 | bandwidth=812000 101 | modulation="LORA" 102 | spreading_factors=[12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=2479000000 106 | bandwidth=812000 107 | modulation="LORA" 108 | spreading_factors=[12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=2425000000 112 | bandwidth=812000 113 | modulation="LORA" 114 | spreading_factors=[12] 115 | 116 | 117 | # Region specific network configuration. 118 | [regions.network] 119 | 120 | # Installation margin (dB) used by the ADR engine. 121 | # 122 | # A higher number means that the network-server will keep more margin, 123 | # resulting in a lower data-rate but decreasing the chance that the 124 | # device gets disconnected because it is unable to reach one of the 125 | # surrounded gateways. 126 | installation_margin=10 127 | 128 | # RX window (Class-A). 129 | # 130 | # Set this to: 131 | # 0: RX1 / RX2 132 | # 1: RX1 only 133 | # 2: RX2 only 134 | rx_window=0 135 | 136 | # RX1 delay (1 - 15 seconds). 137 | rx1_delay=1 138 | 139 | # RX1 data-rate offset 140 | rx1_dr_offset=0 141 | 142 | # RX2 data-rate 143 | rx2_dr=0 144 | 145 | # RX2 frequency (Hz) 146 | rx2_frequency=2423000000 147 | 148 | # Prefer RX2 on RX1 data-rate less than. 149 | # 150 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 151 | # is smaller than the configured value, then the Network Server will 152 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 153 | # has already a payload scheduled at the RX2 timing) it will try RX1. 154 | rx2_prefer_on_rx1_dr_lt=0 155 | 156 | # Prefer RX2 on link budget. 157 | # 158 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 159 | # try to schedule the downlink in RX2, failing that it will try RX1. 160 | rx2_prefer_on_link_budget=false 161 | 162 | # Downlink TX Power (dBm) 163 | # 164 | # When set to -1, the downlink TX Power from the configured band will 165 | # be used. 166 | # 167 | # Please consult the LoRaWAN Regional Parameters and local regulations 168 | # for valid and legal options. Note that the configured TX Power must be 169 | # supported by your gateway(s). 170 | downlink_tx_power=-1 171 | 172 | # ADR is disabled. 173 | adr_disabled=false 174 | 175 | # Minimum data-rate. 176 | min_dr=0 177 | 178 | # Maximum data-rate. 179 | max_dr=7 180 | 181 | 182 | # Rejoin-request configuration (LoRaWAN 1.1) 183 | [regions.network.rejoin_request] 184 | 185 | # Request devices to periodically send rejoin-requests. 186 | enabled=false 187 | 188 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 189 | # uplink messages. Valid values are 0 to 15. 190 | max_count_n=0 191 | 192 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 193 | # seconds. Valid values are 0 to 15. 194 | # 195 | # 0 = roughly 17 minutes 196 | # 15 = about 1 year 197 | max_time_n=0 198 | 199 | 200 | # Class-B configuration. 201 | [regions.network.class_b] 202 | 203 | # Ping-slot data-rate. 204 | ping_slot_dr=0 205 | 206 | # Ping-slot frequency (Hz) 207 | # 208 | # set this to 0 to use the default frequency plan for the configured region 209 | # (which could be frequency hopping). 210 | ping_slot_frequency=0 211 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_kr920.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example KR920 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="kr920" 6 | 7 | # Description is a short description for this region. 8 | description="KR920" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="KR920" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="kr920" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=922100000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=922300000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | [[regions.gateway.channels]] 111 | frequency=922500000 112 | bandwidth=125000 113 | modulation="LORA" 114 | spreading_factors=[7, 8, 9, 10, 11, 12] 115 | 116 | 117 | # Region specific network configuration. 118 | [regions.network] 119 | 120 | # Installation margin (dB) used by the ADR engine. 121 | # 122 | # A higher number means that the network-server will keep more margin, 123 | # resulting in a lower data-rate but decreasing the chance that the 124 | # device gets disconnected because it is unable to reach one of the 125 | # surrounded gateways. 126 | installation_margin=10 127 | 128 | # RX window (Class-A). 129 | # 130 | # Set this to: 131 | # 0: RX1 / RX2 132 | # 1: RX1 only 133 | # 2: RX2 only 134 | rx_window=0 135 | 136 | # RX1 delay (1 - 15 seconds). 137 | rx1_delay=1 138 | 139 | # RX1 data-rate offset 140 | rx1_dr_offset=0 141 | 142 | # RX2 data-rate 143 | rx2_dr=0 144 | 145 | # RX2 frequency (Hz) 146 | rx2_frequency=921900000 147 | 148 | # Prefer RX2 on RX1 data-rate less than. 149 | # 150 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 151 | # is smaller than the configured value, then the Network Server will 152 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 153 | # has already a payload scheduled at the RX2 timing) it will try RX1. 154 | rx2_prefer_on_rx1_dr_lt=0 155 | 156 | # Prefer RX2 on link budget. 157 | # 158 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 159 | # try to schedule the downlink in RX2, failing that it will try RX1. 160 | rx2_prefer_on_link_budget=false 161 | 162 | # Downlink TX Power (dBm) 163 | # 164 | # When set to -1, the downlink TX Power from the configured band will 165 | # be used. 166 | # 167 | # Please consult the LoRaWAN Regional Parameters and local regulations 168 | # for valid and legal options. Note that the configured TX Power must be 169 | # supported by your gateway(s). 170 | downlink_tx_power=-1 171 | 172 | # ADR is disabled. 173 | adr_disabled=false 174 | 175 | # Minimum data-rate. 176 | min_dr=0 177 | 178 | # Maximum data-rate. 179 | max_dr=5 180 | 181 | 182 | # Rejoin-request configuration (LoRaWAN 1.1) 183 | [regions.network.rejoin_request] 184 | 185 | # Request devices to periodically send rejoin-requests. 186 | enabled=false 187 | 188 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 189 | # uplink messages. Valid values are 0 to 15. 190 | max_count_n=0 191 | 192 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 193 | # seconds. Valid values are 0 to 15. 194 | # 195 | # 0 = roughly 17 minutes 196 | # 15 = about 1 year 197 | max_time_n=0 198 | 199 | 200 | # Class-B configuration. 201 | [regions.network.class_b] 202 | 203 | # Ping-slot data-rate. 204 | ping_slot_dr=3 205 | 206 | # Ping-slot frequency (Hz) 207 | # 208 | # set this to 0 to use the default frequency plan for the configured region 209 | # (which could be frequency hopping). 210 | ping_slot_frequency=0 211 | -------------------------------------------------------------------------------- /configuration/chirpstack/region_ru864.toml: -------------------------------------------------------------------------------- 1 | # This file contains an example RU864 configuration. 2 | [[regions]] 3 | 4 | # ID is an user-defined identifier for this region. 5 | id="ru864" 6 | 7 | # Description is a short description for this region. 8 | description="RU864" 9 | 10 | # Common-name refers to the common-name of this region as defined by 11 | # the LoRa Alliance. 12 | common_name="RU864" 13 | 14 | 15 | # Gateway configuration. 16 | [regions.gateway] 17 | 18 | # Force gateways as private. 19 | # 20 | # If enabled, gateways can only be used by devices under the same tenant. 21 | force_gws_private=false 22 | 23 | 24 | # Gateway backend configuration. 25 | [regions.gateway.backend] 26 | 27 | # The enabled backend type. 28 | enabled="mqtt" 29 | 30 | # MQTT configuration. 31 | [regions.gateway.backend.mqtt] 32 | 33 | # Topic prefix. 34 | # 35 | # The topic prefix can be used to define the region of the gateway. 36 | # Note, there is no need to add a trailing '/' to the prefix. The trailing 37 | # '/' is automatically added to the prefix if it is configured. 38 | topic_prefix="ru864" 39 | 40 | # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) 41 | server="tcp://$MQTT_BROKER_HOST:1883" 42 | 43 | # Connect with the given username (optional) 44 | username="" 45 | 46 | # Connect with the given password (optional) 47 | password="" 48 | 49 | # Quality of service level 50 | # 51 | # 0: at most once 52 | # 1: at least once 53 | # 2: exactly once 54 | # 55 | # Note: an increase of this value will decrease the performance. 56 | # For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels 57 | qos=0 58 | 59 | # Clean session 60 | # 61 | # Set the "clean session" flag in the connect message when this client 62 | # connects to an MQTT broker. By setting this flag you are indicating 63 | # that no messages saved by the broker for this client should be delivered. 64 | clean_session=false 65 | 66 | # Client ID 67 | # 68 | # Set the client id to be used by this client when connecting to the MQTT 69 | # broker. A client id must be no longer than 23 characters. If left blank, 70 | # a random id will be generated by ChirpStack. 71 | client_id="" 72 | 73 | # Keep alive interval. 74 | # 75 | # This defines the maximum time that that should pass without communication 76 | # between the client and server. 77 | keep_alive_interval="30s" 78 | 79 | # CA certificate file (optional) 80 | # 81 | # Use this when setting up a secure connection (when server uses ssl://...) 82 | # but the certificate used by the server is not trusted by any CA certificate 83 | # on the server (e.g. when self generated). 84 | ca_cert="" 85 | 86 | # TLS certificate file (optional) 87 | tls_cert="" 88 | 89 | # TLS key file (optional) 90 | tls_key="" 91 | 92 | 93 | # Gateway channel configuration. 94 | # 95 | # Note: this configuration is only used in case the gateway is using the 96 | # ChirpStack Concentratord daemon. In any other case, this configuration 97 | # is ignored. 98 | [[regions.gateway.channels]] 99 | frequency=868900000 100 | bandwidth=125000 101 | modulation="LORA" 102 | spreading_factors=[7, 8, 9, 10, 11, 12] 103 | 104 | [[regions.gateway.channels]] 105 | frequency=869100000 106 | bandwidth=125000 107 | modulation="LORA" 108 | spreading_factors=[7, 8, 9, 10, 11, 12] 109 | 110 | 111 | # Region specific network configuration. 112 | [regions.network] 113 | 114 | # Installation margin (dB) used by the ADR engine. 115 | # 116 | # A higher number means that the network-server will keep more margin, 117 | # resulting in a lower data-rate but decreasing the chance that the 118 | # device gets disconnected because it is unable to reach one of the 119 | # surrounded gateways. 120 | installation_margin=10 121 | 122 | # RX window (Class-A). 123 | # 124 | # Set this to: 125 | # 0: RX1 / RX2 126 | # 1: RX1 only 127 | # 2: RX2 only 128 | rx_window=0 129 | 130 | # RX1 delay (1 - 15 seconds). 131 | rx1_delay=1 132 | 133 | # RX1 data-rate offset 134 | rx1_dr_offset=0 135 | 136 | # RX2 data-rate 137 | rx2_dr=0 138 | 139 | # RX2 frequency (Hz) 140 | rx2_frequency=869100000 141 | 142 | # Prefer RX2 on RX1 data-rate less than. 143 | # 144 | # Prefer RX2 over RX1 based on the RX1 data-rate. When the RX1 data-rate 145 | # is smaller than the configured value, then the Network Server will 146 | # first try to schedule the downlink for RX2, failing that (e.g. the gateway 147 | # has already a payload scheduled at the RX2 timing) it will try RX1. 148 | rx2_prefer_on_rx1_dr_lt=0 149 | 150 | # Prefer RX2 on link budget. 151 | # 152 | # When the link-budget is better for RX2 than for RX1, the Network Server will first 153 | # try to schedule the downlink in RX2, failing that it will try RX1. 154 | rx2_prefer_on_link_budget=false 155 | 156 | # Downlink TX Power (dBm) 157 | # 158 | # When set to -1, the downlink TX Power from the configured band will 159 | # be used. 160 | # 161 | # Please consult the LoRaWAN Regional Parameters and local regulations 162 | # for valid and legal options. Note that the configured TX Power must be 163 | # supported by your gateway(s). 164 | downlink_tx_power=-1 165 | 166 | # ADR is disabled. 167 | adr_disabled=false 168 | 169 | # Minimum data-rate. 170 | min_dr=0 171 | 172 | # Maximum data-rate. 173 | max_dr=5 174 | 175 | 176 | # Rejoin-request configuration (LoRaWAN 1.1) 177 | [regions.network.rejoin_request] 178 | 179 | # Request devices to periodically send rejoin-requests. 180 | enabled=false 181 | 182 | # The device must send a rejoin-request type 0 at least every 2^(max_count_n + 4) 183 | # uplink messages. Valid values are 0 to 15. 184 | max_count_n=0 185 | 186 | # The device must send a rejoin-request type 0 at least every 2^(max_time_n + 10) 187 | # seconds. Valid values are 0 to 15. 188 | # 189 | # 0 = roughly 17 minutes 190 | # 15 = about 1 year 191 | max_time_n=0 192 | 193 | 194 | # Class-B configuration. 195 | [regions.network.class_b] 196 | 197 | # Ping-slot data-rate. 198 | ping_slot_dr=3 199 | 200 | # Ping-slot frequency (Hz) 201 | # 202 | # set this to 0 to use the default frequency plan for the configured region 203 | # (which could be frequency hopping). 204 | ping_slot_frequency=0 205 | -------------------------------------------------------------------------------- /configuration/mosquitto/config/mosquitto.conf: -------------------------------------------------------------------------------- 1 | listener 1883 2 | allow_anonymous true 3 | -------------------------------------------------------------------------------- /configuration/postgresql/initdb/001-chirpstack_extensions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="$POSTGRES_DB" <<-EOSQL 5 | create extension pg_trgm; 6 | create extension hstore; 7 | EOSQL 8 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | services: 2 | chirpstack: 3 | image: chirpstack/chirpstack:4 4 | command: -c /etc/chirpstack 5 | restart: unless-stopped 6 | volumes: 7 | - ./configuration/chirpstack:/etc/chirpstack 8 | depends_on: 9 | - postgres 10 | - mosquitto 11 | - redis 12 | environment: 13 | - MQTT_BROKER_HOST=mosquitto 14 | - REDIS_HOST=redis 15 | - POSTGRESQL_HOST=postgres 16 | ports: 17 | - "8080:8080" 18 | 19 | chirpstack-gateway-bridge: 20 | image: chirpstack/chirpstack-gateway-bridge:4 21 | restart: unless-stopped 22 | ports: 23 | - "1700:1700/udp" 24 | volumes: 25 | - ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge 26 | environment: 27 | - INTEGRATION__MQTT__EVENT_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }} 28 | - INTEGRATION__MQTT__STATE_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/state/{{ .StateType }} 29 | - INTEGRATION__MQTT__COMMAND_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/command/# 30 | depends_on: 31 | - mosquitto 32 | 33 | chirpstack-gateway-bridge-basicstation: 34 | image: chirpstack/chirpstack-gateway-bridge:4 35 | restart: unless-stopped 36 | command: -c /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu868.toml 37 | ports: 38 | - "3001:3001" 39 | volumes: 40 | - ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge 41 | depends_on: 42 | - mosquitto 43 | 44 | chirpstack-rest-api: 45 | image: chirpstack/chirpstack-rest-api:4 46 | restart: unless-stopped 47 | command: --server chirpstack:8080 --bind 0.0.0.0:8090 --insecure 48 | ports: 49 | - "8090:8090" 50 | depends_on: 51 | - chirpstack 52 | 53 | postgres: 54 | image: postgres:14-alpine 55 | restart: unless-stopped 56 | volumes: 57 | - ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d 58 | - postgresqldata:/var/lib/postgresql/data 59 | environment: 60 | - POSTGRES_USER=chirpstack 61 | - POSTGRES_PASSWORD=chirpstack 62 | - POSTGRES_DB=chirpstack 63 | 64 | redis: 65 | image: redis:7-alpine 66 | restart: unless-stopped 67 | command: redis-server --save 300 1 --save 60 100 --appendonly no 68 | volumes: 69 | - redisdata:/data 70 | 71 | mosquitto: 72 | image: eclipse-mosquitto:2 73 | restart: unless-stopped 74 | ports: 75 | - "1883:1883" 76 | volumes: 77 | - ./configuration/mosquitto/config/:/mosquitto/config/ 78 | 79 | volumes: 80 | postgresqldata: 81 | redisdata: 82 | --------------------------------------------------------------------------------