diff --git a/README.md b/README.md index bf67397..e557ece 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,39 @@ This setup is pre-configured for all regions. You can either connect a ChirpStac instance (v3.14.0+) to the MQTT broker (port 1883) or connect a Semtech UDP Packet Forwarder. Please note that: -* You must prefix the MQTT topic with the region +* You must prefix the MQTT topic with the region. Please see the region configuration files in the `configuration/chirpstack` for a list - of topic prefixes (e.g. eu868, us915_0, au915, as923_2, ...). + of topic prefixes (e.g. eu868, us915_0, au915_0, as923_2, ...). * The protobuf marshaler is configured. -This setup also comes with a ChirpStack Gateway Bridge instance which is configured to the -eu868 topic prefix. You can connect your UDP packet-forwarder based gateway to port 1700. +This setup also comes with two instances of the ChirpStack Gateway Bridge. One +is configured to handle the Semtech UDP Packet Forwarder data (port 1700), the +other is configured to handle the Basics Station protocol (port 3001). Both +instances are by default configured for EU868 (using the `eu868` MQTT topic +prefix). + +### Reconfigure regions + +ChirpStack has at least one configuration of each region enabled. You will find +the list of `enabled_regions` in `configuration/chirpstack/chirpstack.toml`. +Each entry in `enabled_regions` refers to the `id` that can be found in the +`region_XXX.toml` file. This `region_XXX.toml` also contains a `topic_prefix` +configuration which you need to configure the ChirpStack Gateway Bridge +UDP instance (see below). + +#### ChirpStack Gateway Bridge (UDP) + +Within the `docker-compose.yml` file, you must replace the `eu868` prefix in the +`INTEGRATION__..._TOPIC_TEMPLATE` configuration with the MQTT `topic_prefix` of +the region you would like to use (e.g. `us915_0`, `au915_0`, `in865`, ...). + +#### ChirpStack Gateway Bridge (Basics Station) + +Within the `docker-compose.yml` file, you must update the configuration file +that the ChirpStack Gateway Bridge instance must used. The default is +`chirpstack-gateway-bridge-basicstation-eu868.toml`. For available +configuration files, please see the `configuration/chirpstack-gateway-bridge` +directory. # Data persistence diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923.toml new file mode 100644 index 0000000..e38c6e5 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AS923" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 923200000, + 923400000, + 923600000, + 923800000, + 924000000, + 924200000, + 924400000, + 924600000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=924500000 + bandwidth=250000 + spreading_factor=7 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_2.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_2.toml new file mode 100644 index 0000000..934cd4a --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_2.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AS923" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 921400000, + 921600000, + 921800000, + 922000000, + 922200000, + 922400000, + 922600000, + 922800000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=922700000 + bandwidth=250000 + spreading_factor=7 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_3.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_3.toml new file mode 100644 index 0000000..2537933 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_3.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AS923" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 916600000, + 916800000, + 917000000, + 917200000, + 917400000, + 917600000, + 917800000, + 918000000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=917900000 + bandwidth=250000 + spreading_factor=7 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_4.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_4.toml new file mode 100644 index 0000000..0ecca5c --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-as923_4.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AS923" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 917300000, + 917500000, + 917700000, + 917900000, + 918100000, + 918300000, + 918500000, + 918700000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=918600000 + bandwidth=250000 + spreading_factor=7 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_0.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_0.toml new file mode 100644 index 0000000..c44a5e6 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_0.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 915200000, + 915400000, + 915600000, + 915800000, + 916000000, + 916200000, + 916400000, + 916600000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=915900000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_1.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_1.toml new file mode 100644 index 0000000..9bb3754 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_1.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 916800000, + 917000000, + 917200000, + 917400000, + 917600000, + 917800000, + 918000000, + 918200000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=917500000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_2.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_2.toml new file mode 100644 index 0000000..b2b657b --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_2.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 918400000, + 918600000, + 918800000, + 919000000, + 919200000, + 919400000, + 919600000, + 919800000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=919100000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_3.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_3.toml new file mode 100644 index 0000000..a2471bb --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_3.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 920000000, + 920200000, + 920400000, + 920600000, + 920800000, + 921000000, + 921200000, + 921400000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=920700000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_4.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_4.toml new file mode 100644 index 0000000..fc571c1 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_4.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 921600000, + 921800000, + 922000000, + 922200000, + 922400000, + 922600000, + 922800000, + 923000000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=922300000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_5.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_5.toml new file mode 100644 index 0000000..af19f45 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_5.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 923200000, + 923400000, + 923600000, + 923800000, + 924000000, + 924200000, + 924400000, + 924600000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=923900000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_6.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_6.toml new file mode 100644 index 0000000..1cca444 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_6.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 924800000, + 925000000, + 925200000, + 925400000, + 925600000, + 925800000, + 926000000, + 926200000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=925500000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_7.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_7.toml new file mode 100644 index 0000000..bf8dc00 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-au915_7.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="AU915" + frequency_min=915000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 926400000, + 926600000, + 926800000, + 927000000, + 927200000, + 927400000, + 927600000, + 927800000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=927100000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_0.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_0.toml new file mode 100644 index 0000000..08067db --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_0.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 470300000, + 470500000, + 470700000, + 470900000, + 471100000, + 471300000, + 471500000, + 471700000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_1.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_1.toml new file mode 100644 index 0000000..e417781 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_1.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 471900000, + 472100000, + 472300000, + 472500000, + 472700000, + 472900000, + 473100000, + 473300000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_10.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_10.toml new file mode 100644 index 0000000..7233e35 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_10.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 486300000, + 486500000, + 486700000, + 486900000, + 487100000, + 487300000, + 487500000, + 487700000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_11.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_11.toml new file mode 100644 index 0000000..45c7c6d --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_11.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 487900000, + 488100000, + 488300000, + 488500000, + 488700000, + 488900000, + 489100000, + 489300000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_2.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_2.toml new file mode 100644 index 0000000..4b7fcee --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_2.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 473500000, + 473700000, + 473900000, + 474100000, + 474300000, + 474500000, + 474700000, + 474900000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_3.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_3.toml new file mode 100644 index 0000000..e0d380b --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_3.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 475100000, + 475300000, + 475500000, + 475700000, + 475900000, + 476100000, + 476300000, + 476500000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_4.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_4.toml new file mode 100644 index 0000000..5863ae4 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_4.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 476700000, + 476900000, + 477100000, + 477300000, + 477500000, + 477700000, + 477900000, + 478100000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_5.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_5.toml new file mode 100644 index 0000000..f83ef74 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_5.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 478300000, + 478500000, + 478700000, + 478900000, + 479100000, + 479300000, + 479500000, + 479700000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_6.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_6.toml new file mode 100644 index 0000000..913691c --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_6.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 479900000, + 480100000, + 480300000, + 480500000, + 480700000, + 480900000, + 481100000, + 481300000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_7.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_7.toml new file mode 100644 index 0000000..090cb52 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_7.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 481500000, + 481700000, + 481900000, + 482100000, + 482300000, + 482500000, + 482700000, + 482900000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_8.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_8.toml new file mode 100644 index 0000000..f0cb5d0 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_8.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 483100000, + 483300000, + 483500000, + 483700000, + 483900000, + 484100000, + 484300000, + 484500000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_9.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_9.toml new file mode 100644 index 0000000..cc7bf67 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-cn470_9.toml @@ -0,0 +1,35 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=470000000 + frequency_max=510000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 484700000, + 484900000, + 485100000, + 485300000, + 485500000, + 485700000, + 485900000, + 486100000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu433.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu433.toml new file mode 100644 index 0000000..051f8ea --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu433.toml @@ -0,0 +1,30 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="EU433" + frequency_min=433050000 + frequency_max=434900000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 433175000, + 433375000, + 433575000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu868.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu868.toml new file mode 100644 index 0000000..cb84327 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu868.toml @@ -0,0 +1,43 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="EU868" + frequency_min=863000000 + frequency_max=870000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 868100000, + 868300000, + 868500000, + 867100000, + 867300000, + 867500000, + 867700000, + 867900000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=868300000 + bandwidth=250000 + spreading_factor=7 + + [backend.basic_station.concentrators.fsk] + frequency=868800000 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-in865.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-in865.toml new file mode 100644 index 0000000..13d9050 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-in865.toml @@ -0,0 +1,30 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="IN865" + frequency_min=865000000 + frequency_max=867000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 865062500, + 865402500, + 865985000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-kr920.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-kr920.toml new file mode 100644 index 0000000..8aa9ee4 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-kr920.toml @@ -0,0 +1,30 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="KR920" + frequency_min=920900000 + frequency_max=923300000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 922100000, + 922300000, + 922500000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-ru864.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-ru864.toml new file mode 100644 index 0000000..3aab080 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-ru864.toml @@ -0,0 +1,29 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="RU864" + frequency_min=863000000 + frequency_max=870000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 868900000, + 869100000, + ] diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_0.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_0.toml new file mode 100644 index 0000000..8020c61 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_0.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 902300000, + 902500000, + 902700000, + 902900000, + 903100000, + 903300000, + 903500000, + 903700000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=903000000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_1.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_1.toml new file mode 100644 index 0000000..0f7ca0d --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_1.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 903900000, + 904100000, + 904300000, + 904500000, + 904700000, + 904900000, + 905100000, + 905300000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=904600000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_2.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_2.toml new file mode 100644 index 0000000..7b145e0 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_2.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 905500000, + 905700000, + 905900000, + 906100000, + 906300000, + 906500000, + 906700000, + 906900000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=906200000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_3.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_3.toml new file mode 100644 index 0000000..554d787 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_3.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 907100000, + 907300000, + 907500000, + 907700000, + 907900000, + 908100000, + 908300000, + 908500000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=907800000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_4.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_4.toml new file mode 100644 index 0000000..84ae72a --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_4.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 908700000, + 908900000, + 909100000, + 909300000, + 909500000, + 909700000, + 909900000, + 910100000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=909400000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_5.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_5.toml new file mode 100644 index 0000000..8f8638a --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_5.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 910300000, + 910500000, + 910700000, + 910900000, + 911100000, + 911300000, + 911500000, + 911700000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=911000000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_6.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_6.toml new file mode 100644 index 0000000..9d00815 --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_6.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 911900000, + 912100000, + 912300000, + 912500000, + 912700000, + 912900000, + 913100000, + 913300000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=912600000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_7.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_7.toml new file mode 100644 index 0000000..20fe5fe --- /dev/null +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-us915_7.toml @@ -0,0 +1,40 @@ +# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full +# configuration example and documentation. + +[integration.mqtt.auth.generic] +servers=["tcp://mosquitto:1883"] +username="" +password="" + +[backend] +type="basic_station" + + [backend.basic_station] + bind=":3001" + tls_cert="" + tls_key="" + ca_cert="" + + region="US915" + frequency_min=923000000 + frequency_max=928000000 + + + [[backend.basic_station.concentrators]] + + [backend.basic_station.concentrators.multi_sf] + frequencies=[ + 913500000, + 913700000, + 913900000, + 914100000, + 914300000, + 914500000, + 914700000, + 914900000, + ] + + [backend.basic_station.concentrators.lora_std] + frequency=914200000 + bandwidth=500000 + spreading_factor=8 diff --git a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml index a4d2dbf..894de95 100644 --- a/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml +++ b/configuration/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml @@ -5,8 +5,3 @@ servers=["tcp://mosquitto:1883"] username="" password="" - -[integration.mqtt] -event_topic_template="eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }}" -state_topic_template="eu868/gateway/{{ .GatewayID }}/state/{{ .StateType }}" -command_topic_template="eu868/gateway/{{ .GatewayID }}/command/#" diff --git a/configuration/chirpstack/region_as923.toml b/configuration/chirpstack/region_as923.toml index a826764..0992c00 100644 --- a/configuration/chirpstack/region_as923.toml +++ b/configuration/chirpstack/region_as923.toml @@ -1,8 +1,11 @@ # This file contains an example AS923 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="as923" + # ID is an user-defined identifier for this region. + id="as923" + + # Description is a short description for this region. + description="AS923" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="as923/gateway/+/event/+" - - # Command topic template. - command_topic="as923/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="as923" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -185,7 +195,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_as923_2.toml b/configuration/chirpstack/region_as923_2.toml index 75f0825..04f865e 100644 --- a/configuration/chirpstack/region_as923_2.toml +++ b/configuration/chirpstack/region_as923_2.toml @@ -1,8 +1,11 @@ # This file contains an example AS923_2 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="as923_2" + # ID is an user-defined identifier for this region. + id="as923_2" + + # Description is a short description for this region. + description="AS923-2" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="as923_2/gateway/+/event/+" - - # Command topic template. - command_topic="as923_2/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="as923_2" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -185,7 +195,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_as923_3.toml b/configuration/chirpstack/region_as923_3.toml index 8665e9c..7792267 100644 --- a/configuration/chirpstack/region_as923_3.toml +++ b/configuration/chirpstack/region_as923_3.toml @@ -1,8 +1,11 @@ # This file contains an example AS923_3 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="as923_3" + # ID is an user-defined identifier for this region. + id="as923_3" + + # Description is a short description for this region. + description="AS923-3" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="as923_3/gateway/+/event/+" - - # Command topic template. - command_topic="as923_3/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="as923_3" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -185,7 +195,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_as923_4.toml b/configuration/chirpstack/region_as923_4.toml index 703d167..d8a17f7 100644 --- a/configuration/chirpstack/region_as923_4.toml +++ b/configuration/chirpstack/region_as923_4.toml @@ -1,8 +1,11 @@ # This file contains an example AS923_4 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="as923_4" + # ID is an user-defined identifier for this region. + id="as923_4" + + # Description is a short description for this region. + description="AS923-4" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="as923_4/gateway/+/event/+" - - # Command topic template. - command_topic="as923_4/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="as923_4" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -185,7 +195,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_au915_0.toml b/configuration/chirpstack/region_au915_0.toml index 4323e7c..29f903b 100644 --- a/configuration/chirpstack/region_au915_0.toml +++ b/configuration/chirpstack/region_au915_0.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 0-7 + 64). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_0" + # ID is an use-defined identifier for this region. + id="au915_0" + + # Description is a short description for this region. + description="AU915 (channels 0-7 + 64)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_0/gateway/+/event/+" - - # Command topic template. - command_topic="au915_0/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_0" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_au915_1.toml b/configuration/chirpstack/region_au915_1.toml index 7323a2a..6d2e31d 100644 --- a/configuration/chirpstack/region_au915_1.toml +++ b/configuration/chirpstack/region_au915_1.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 8-15 + 65). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_1" + # ID is an use-defined identifier for this region. + id="au915_1" + + # Description is a short description for this region. + description="AU915 (channels 8-15 + 65)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_1/gateway/+/event/+" - - # Command topic template. - command_topic="au915_1/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_1" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_au915_2.toml b/configuration/chirpstack/region_au915_2.toml index 161a753..3d1e5e7 100644 --- a/configuration/chirpstack/region_au915_2.toml +++ b/configuration/chirpstack/region_au915_2.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 16-23 + 66). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_2" + # ID is an use-defined identifier for this region. + id="au915_2" + + # Description is a short description for this region. + description="AU915 (channels 16-23 + 65)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_2/gateway/+/event/+" - - # Command topic template. - command_topic="au915_2/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_2" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_au915_3.toml b/configuration/chirpstack/region_au915_3.toml index 74a13a5..c1098c7 100644 --- a/configuration/chirpstack/region_au915_3.toml +++ b/configuration/chirpstack/region_au915_3.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 24-31 + 67). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_3" + # ID is an use-defined identifier for this region. + id="au915_3" + + # Description is a short description for this region. + description="AU915 (channels 24-31 + 67)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_3/gateway/+/event/+" - - # Command topic template. - command_topic="au915_3/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_3" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_au915_4.toml b/configuration/chirpstack/region_au915_4.toml index 57c15ec..ec51fef 100644 --- a/configuration/chirpstack/region_au915_4.toml +++ b/configuration/chirpstack/region_au915_4.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 32-39 + 68). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_4" + # ID is an use-defined identifier for this region. + id="au915_4" + + # Description is a short description for this region. + description="AU915 (channels 32-39 + 68)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_4/gateway/+/event/+" - - # Command topic template. - command_topic="au915_4/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_4" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_au915_5.toml b/configuration/chirpstack/region_au915_5.toml index 2d2ce02..59b5f40 100644 --- a/configuration/chirpstack/region_au915_5.toml +++ b/configuration/chirpstack/region_au915_5.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 40-47 + 69). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_5" + # ID is an use-defined identifier for this region. + id="au915_5" + + # Description is a short description for this region. + description="AU915 (channels 40-47 + 69)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_5/gateway/+/event/+" - - # Command topic template. - command_topic="au915_5/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_5" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_au915_6.toml b/configuration/chirpstack/region_au915_6.toml index 476befa..2181344 100644 --- a/configuration/chirpstack/region_au915_6.toml +++ b/configuration/chirpstack/region_au915_6.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 48-55 + 70). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_6" + # ID is an use-defined identifier for this region. + id="au915_6" + + # Description is a short description for this region. + description="AU915 (channels 48-55 + 70)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_6/gateway/+/event/+" - - # Command topic template. - command_topic="au915_6/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_6" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_au915_7.toml b/configuration/chirpstack/region_au915_7.toml index e51ffcc..09c5dba 100644 --- a/configuration/chirpstack/region_au915_7.toml +++ b/configuration/chirpstack/region_au915_7.toml @@ -1,8 +1,11 @@ # This file contains an example AU915 example (channels 56-63 + 71). [[regions]] - # Name is an use-defined identifier for this region. - name="au915_7" + # ID is an use-defined identifier for this region. + id="au915_7" + + # Description is a short description for this region. + description="AU915 (channels 56-63 + 71)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="au915_7/gateway/+/event/+" - - # Command topic template. - command_topic="au915_7/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="au915_7" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_cn470_0.toml b/configuration/chirpstack/region_cn470_0.toml index 8de8c7c..5686f6e 100644 --- a/configuration/chirpstack/region_cn470_0.toml +++ b/configuration/chirpstack/region_cn470_0.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 0-7). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_0" + # ID is an use-defined identifier for this region. + id="cn470_0" + + # Description is a short description for this region. + description="CN470 (channels 0-7)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_0/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_0/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_0" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_1.toml b/configuration/chirpstack/region_cn470_1.toml index 5949697..277b900 100644 --- a/configuration/chirpstack/region_cn470_1.toml +++ b/configuration/chirpstack/region_cn470_1.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 8-15). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_1" + # ID is an use-defined identifier for this region. + id="cn470_1" + + # Description is a short description for this region. + description="CN470 (channels 8-15)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_1/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_1/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_1" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_10.toml b/configuration/chirpstack/region_cn470_10.toml index abcd3ce..bd02dd1 100644 --- a/configuration/chirpstack/region_cn470_10.toml +++ b/configuration/chirpstack/region_cn470_10.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 80-87). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_10" + # ID is an use-defined identifier for this region. + id="cn470_10" + + # Description is a short description for this region. + description="CN470 (channels 80-87)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_10/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_10/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_10" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_11.toml b/configuration/chirpstack/region_cn470_11.toml index 0fd37c8..fb043c6 100644 --- a/configuration/chirpstack/region_cn470_11.toml +++ b/configuration/chirpstack/region_cn470_11.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 88-95). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_11" + # ID is an use-defined identifier for this region. + id="cn470_11" + + # Description is a short description for this region. + description="CN470 (channels 88-95)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_11/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_11/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_11" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_2.toml b/configuration/chirpstack/region_cn470_2.toml index 0bc4293..bc30825 100644 --- a/configuration/chirpstack/region_cn470_2.toml +++ b/configuration/chirpstack/region_cn470_2.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 16-23). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_2" + # ID is an use-defined identifier for this region. + id="cn470_2" + + # Description is a short description for this region. + description="CN470 (channels 16-23)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_2/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_2/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_2" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_3.toml b/configuration/chirpstack/region_cn470_3.toml index f75cf96..6efc24d 100644 --- a/configuration/chirpstack/region_cn470_3.toml +++ b/configuration/chirpstack/region_cn470_3.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 24-31). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_3" + # ID is an use-defined identifier for this region. + id="cn470_3" + + # Description is a short description for this region. + description="CN470 (channels 24-31)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_3/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_3/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_3" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_4.toml b/configuration/chirpstack/region_cn470_4.toml index 95b52cc..17f46b8 100644 --- a/configuration/chirpstack/region_cn470_4.toml +++ b/configuration/chirpstack/region_cn470_4.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 32-39). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_4" + # ID is an use-defined identifier for this region. + id="cn470_4" + + # Description is a short description for this region. + description="CN470 (channels 32-39)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_4/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_4/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_4" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_5.toml b/configuration/chirpstack/region_cn470_5.toml index 578eb05..75256fd 100644 --- a/configuration/chirpstack/region_cn470_5.toml +++ b/configuration/chirpstack/region_cn470_5.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 40-47). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_5" + # ID is an use-defined identifier for this region. + id="cn470_5" + + # Description is a short description for this region. + description="CN470 (channels 40-47)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_5/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_5/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_5" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_6.toml b/configuration/chirpstack/region_cn470_6.toml index d118dcb..b1d6693 100644 --- a/configuration/chirpstack/region_cn470_6.toml +++ b/configuration/chirpstack/region_cn470_6.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 48-55). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_6" + # ID is an use-defined identifier for this region. + id="cn470_6" + + # Description is a short description for this region. + description="CN470 (channels 48-55)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_6/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_6/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_6" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_7.toml b/configuration/chirpstack/region_cn470_7.toml index 719b93a..70937cf 100644 --- a/configuration/chirpstack/region_cn470_7.toml +++ b/configuration/chirpstack/region_cn470_7.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 56-63). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_7" + # ID is an use-defined identifier for this region. + id="cn470_7" + + # Description is a short description for this region. + description="CN470 (channels 56-63)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_7/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_7/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_7" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_8.toml b/configuration/chirpstack/region_cn470_8.toml index 8d4e5fa..8fcf3b0 100644 --- a/configuration/chirpstack/region_cn470_8.toml +++ b/configuration/chirpstack/region_cn470_8.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 64-71). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_8" + # ID is an use-defined identifier for this region. + id="cn470_8" + + # Description is a short description for this region. + description="CN470 (channels 64-71)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_8/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_8/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_8" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn470_9.toml b/configuration/chirpstack/region_cn470_9.toml index 4cb46fd..87973f7 100644 --- a/configuration/chirpstack/region_cn470_9.toml +++ b/configuration/chirpstack/region_cn470_9.toml @@ -1,8 +1,11 @@ # This file contains an example CN470 example (channels 72-79). [[regions]] - # Name is an use-defined identifier for this region. - name="cn470_9" + # ID is an use-defined identifier for this region. + id="cn470_9" + + # Description is a short description for this region. + description="CN470 (channels 72-79)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn470_9/gateway/+/event/+" - - # Command topic template. - command_topic="cn470_9/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn470_9" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -228,7 +238,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=2 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_cn779.toml b/configuration/chirpstack/region_cn779.toml index ced9934..94aa163 100644 --- a/configuration/chirpstack/region_cn779.toml +++ b/configuration/chirpstack/region_cn779.toml @@ -1,8 +1,11 @@ # This file contains an example CN779 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="cn779" + # ID is an user-defined identifier for this region. + id="cn779" + + # Description is a short description for this region. + description="CN779" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="cn779/gateway/+/event/+" - - # Command topic template. - command_topic="cn779/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="cn779" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -191,7 +201,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_eu433.toml b/configuration/chirpstack/region_eu433.toml index c15367c..c471542 100644 --- a/configuration/chirpstack/region_eu433.toml +++ b/configuration/chirpstack/region_eu433.toml @@ -1,8 +1,11 @@ # This file contains an example EU433 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="eu433" + # ID is an user-defined identifier for this region. + id="eu433" + + # Description is a short description for this region. + description="EU443" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="eu433/gateway/+/event/+" - - # Command topic template. - command_topic="eu433/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="eu433" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -191,7 +201,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_eu868.toml b/configuration/chirpstack/region_eu868.toml index 8812ebb..c87f268 100644 --- a/configuration/chirpstack/region_eu868.toml +++ b/configuration/chirpstack/region_eu868.toml @@ -1,8 +1,11 @@ # This file contains an example EU868 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="eu868" + # ID is an user-defined identifier for this region. + id="eu868" + + # Description is a short description for this region. + description="EU868" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="eu868/gateway/+/event/+" - - # Command topic template. - command_topic="eu868/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="eu868" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -233,7 +243,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_in865.toml b/configuration/chirpstack/region_in865.toml index 609b55d..6b0930b 100644 --- a/configuration/chirpstack/region_in865.toml +++ b/configuration/chirpstack/region_in865.toml @@ -1,8 +1,11 @@ # This file contains an example IN865 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="in865" + # ID is an user-defined identifier for this region. + id="in865" + + # Description is a short description for this region. + description="IN865" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="in865/gateway/+/event/+" - - # Command topic template. - command_topic="in865/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="in865" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -191,7 +201,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=4 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_ism2400.toml b/configuration/chirpstack/region_ism2400.toml index 50d2ce2..9b37d2d 100644 --- a/configuration/chirpstack/region_ism2400.toml +++ b/configuration/chirpstack/region_ism2400.toml @@ -1,8 +1,11 @@ # This file contains an example ISM2400 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="ism2400" + # ID is an user-defined identifier for this region. + id="ism2400" + + # Description is a short description for this region. + description="ISM2400" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="ism2400/gateway/+/event/+" - - # Command topic template. - command_topic="ism2400/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="ism2400" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_kr920.toml b/configuration/chirpstack/region_kr920.toml index ebdfff0..c20a9db 100644 --- a/configuration/chirpstack/region_kr920.toml +++ b/configuration/chirpstack/region_kr920.toml @@ -1,8 +1,11 @@ # This file contains an example KR920 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="kr920" + # ID is an user-defined identifier for this region. + id="kr920" + + # Description is a short description for this region. + description="KR920" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="kr920/gateway/+/event/+" - - # Command topic template. - command_topic="kr920/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="kr920" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -191,7 +201,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_ru864.toml b/configuration/chirpstack/region_ru864.toml index d7578bd..071be02 100644 --- a/configuration/chirpstack/region_ru864.toml +++ b/configuration/chirpstack/region_ru864.toml @@ -1,8 +1,11 @@ # This file contains an example RU864 configuration. [[regions]] - # Name is an user-defined identifier for this region. - name="ru864" + # ID is an user-defined identifier for this region. + id="ru864" + + # Description is a short description for this region. + description="RU864" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="ru864/gateway/+/event/+" - - # Command topic template. - command_topic="ru864/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="ru864" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) @@ -185,7 +195,7 @@ [regions.network.class_b] # Ping-slot data-rate. - ping_slot_dr=0 + ping_slot_dr=3 # Ping-slot frequency (Hz) # diff --git a/configuration/chirpstack/region_us915_0.toml b/configuration/chirpstack/region_us915_0.toml index 9953c49..0bca96f 100644 --- a/configuration/chirpstack/region_us915_0.toml +++ b/configuration/chirpstack/region_us915_0.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 0-7 + 64). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_0" + # ID is an use-defined identifier for this region. + id="us915_0" + + # Description is a short description for this region. + description="US915 (channels 0-7 + 64)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_0/gateway/+/event/+" - - # Command topic template. - command_topic="us915_0/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_0" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_us915_1.toml b/configuration/chirpstack/region_us915_1.toml index 3061176..2ed6b3f 100644 --- a/configuration/chirpstack/region_us915_1.toml +++ b/configuration/chirpstack/region_us915_1.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 8-15 + 65). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_1" + # ID is an use-defined identifier for this region. + id="us915_1" + + # Description is a short description for this region. + description="US915 (channels 8-15 + 65)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_1/gateway/+/event/+" - - # Command topic template. - command_topic="us915_1/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_1" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_us915_2.toml b/configuration/chirpstack/region_us915_2.toml index 9462013..7d906cd 100644 --- a/configuration/chirpstack/region_us915_2.toml +++ b/configuration/chirpstack/region_us915_2.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 16-23 + 66). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_2" + # ID is an use-defined identifier for this region. + id="us915_2" + + # Description is a short description for this region. + description="US915 (channels 16-23 + 66)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_2/gateway/+/event/+" - - # Command topic template. - command_topic="us915_2/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_2" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_us915_3.toml b/configuration/chirpstack/region_us915_3.toml index e507cf0..708e810 100644 --- a/configuration/chirpstack/region_us915_3.toml +++ b/configuration/chirpstack/region_us915_3.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 24-31 + 67). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_3" + # ID is an use-defined identifier for this region. + id="us915_3" + + # Description is a short description for this region. + description="US915 (channels 24-31 + 67)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_3/gateway/+/event/+" - - # Command topic template. - command_topic="us915_3/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_3" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_us915_4.toml b/configuration/chirpstack/region_us915_4.toml index f9e23be..bd0ac39 100644 --- a/configuration/chirpstack/region_us915_4.toml +++ b/configuration/chirpstack/region_us915_4.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 32-39 + 68). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_4" + # ID is an use-defined identifier for this region. + id="us915_4" + + # Description is a short description for this region. + description="US915 (channels 32-39 + 68)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_4/gateway/+/event/+" - - # Command topic template. - command_topic="us915_4/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_4" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_us915_5.toml b/configuration/chirpstack/region_us915_5.toml index 11948c7..3d27aaf 100644 --- a/configuration/chirpstack/region_us915_5.toml +++ b/configuration/chirpstack/region_us915_5.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 40-47 + 69). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_5" + # ID is an use-defined identifier for this region. + id="us915_5" + + # Description is a short description for this region. + description="US915 (channels 40-47 + 69)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_5/gateway/+/event/+" - - # Command topic template. - command_topic="us915_5/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_5" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_us915_6.toml b/configuration/chirpstack/region_us915_6.toml index aee3b34..d02d935 100644 --- a/configuration/chirpstack/region_us915_6.toml +++ b/configuration/chirpstack/region_us915_6.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 48-55 + 70). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_6" + # ID is an use-defined identifier for this region. + id="us915_6" + + # Description is a short description for this region. + description="US915 (channels 48-55 + 70)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_6/gateway/+/event/+" - - # Command topic template. - command_topic="us915_6/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_6" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/configuration/chirpstack/region_us915_7.toml b/configuration/chirpstack/region_us915_7.toml index 86818aa..f563ce3 100644 --- a/configuration/chirpstack/region_us915_7.toml +++ b/configuration/chirpstack/region_us915_7.toml @@ -1,8 +1,11 @@ # This file contains an example US915 example (channels 56-63 + 71). [[regions]] - # Name is an use-defined identifier for this region. - name="us915_7" + # ID is an use-defined identifier for this region. + id="us915_7" + + # Description is a short description for this region. + description="US915 (channels 56-63 + 71)" # Common-name refers to the common-name of this region as defined by # the LoRa Alliance. @@ -27,11 +30,12 @@ # MQTT configuration. [regions.gateway.backend.mqtt] - # Event topic template. - event_topic="us915_7/gateway/+/event/+" - - # Command topic template. - command_topic="us915_7/gateway/{{ gateway_id }}/command/{{ command }}" + # Topic prefix. + # + # The topic prefix can be used to define the region of the gateway. + # Note, there is no need to add a trailing '/' to the prefix. The trailing + # '/' is automatically added to the prefix if it is configured. + topic_prefix="us915_7" # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) server="tcp://$MQTT_BROKER_HOST:1883" @@ -66,6 +70,12 @@ # a random id will be generated by ChirpStack. client_id="" + # Keep alive interval. + # + # This defines the maximum time that that should pass without communication + # between the client and server. + keep_alive_interval="30s" + # CA certificate file (optional) # # Use this when setting up a secure connection (when server uses ssl://...) diff --git a/docker-compose.yml b/docker-compose.yml index 1ed859d..75633da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,15 +19,28 @@ services: ports: - 8080:8080 - chirpstack-gateway-bridge-eu868: + chirpstack-gateway-bridge: image: chirpstack/chirpstack-gateway-bridge:4 restart: unless-stopped ports: - 1700:1700/udp volumes: - ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge + environment: + - INTEGRATION__MQTT__EVENT_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }} + - INTEGRATION__MQTT__STATE_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/state/{{ .StateType }} + - INTEGRATION__MQTT__COMMAND_TOPIC_TEMPLATE=eu868/gateway/{{ .GatewayID }}/command/# depends_on: - mosquitto + + chirpstack-gateway-bridge-basicstation: + image: chirpstack/chirpstack-gateway-bridge:4 + restart: unless-stopped + command: -c /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge-basicstation-eu868.toml + ports: + - 3001:3001 + volumes: + - ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge chirpstack-rest-api: image: chirpstack/chirpstack-rest-api:4