Skip to content

Commit 2a1b62b

Browse files
committed
Add Basics Station + improve region config.
1 parent c34c100 commit 2a1b62b

File tree

79 files changed

+2111
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2111
-305
lines changed

README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,39 @@ This setup is pre-configured for all regions. You can either connect a ChirpStac
2020
instance (v3.14.0+) to the MQTT broker (port 1883) or connect a Semtech UDP Packet Forwarder.
2121
Please note that:
2222

23-
* You must prefix the MQTT topic with the region
23+
* You must prefix the MQTT topic with the region.
2424
Please see the region configuration files in the `configuration/chirpstack` for a list
25-
of topic prefixes (e.g. eu868, us915_0, au915, as923_2, ...).
25+
of topic prefixes (e.g. eu868, us915_0, au915_0, as923_2, ...).
2626
* The protobuf marshaler is configured.
2727

28-
This setup also comes with a ChirpStack Gateway Bridge instance which is configured to the
29-
eu868 topic prefix. You can connect your UDP packet-forwarder based gateway to port 1700.
28+
This setup also comes with two instances of the ChirpStack Gateway Bridge. One
29+
is configured to handle the Semtech UDP Packet Forwarder data (port 1700), the
30+
other is configured to handle the Basics Station protocol (port 3001). Both
31+
instances are by default configured for EU868 (using the `eu868` MQTT topic
32+
prefix).
33+
34+
### Reconfigure regions
35+
36+
ChirpStack has at least one configuration of each region enabled. You will find
37+
the list of `enabled_regions` in `configuration/chirpstack/chirpstack.toml`.
38+
Each entry in `enabled_regions` refers to the `id` that can be found in the
39+
`region_XXX.toml` file. This `region_XXX.toml` also contains a `topic_prefix`
40+
configuration which you need to configure the ChirpStack Gateway Bridge
41+
UDP instance (see below).
42+
43+
#### ChirpStack Gateway Bridge (UDP)
44+
45+
Within the `docker-compose.yml` file, you must replace the `eu868` prefix in the
46+
`INTEGRATION__..._TOPIC_TEMPLATE` configuration with the MQTT `topic_prefix` of
47+
the region you would like to use (e.g. `us915_0`, `au915_0`, `in865`, ...).
48+
49+
#### ChirpStack Gateway Bridge (Basics Station)
50+
51+
Within the `docker-compose.yml` file, you must update the configuration file
52+
that the ChirpStack Gateway Bridge instance must used. The default is
53+
`chirpstack-gateway-bridge-basicstation-eu868.toml`. For available
54+
configuration files, please see the `configuration/chirpstack-gateway-bridge`
55+
directory.
3056

3157
# Data persistence
3258

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AS923"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
923200000,
28+
923400000,
29+
923600000,
30+
923800000,
31+
924000000,
32+
924200000,
33+
924400000,
34+
924600000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=924500000
39+
bandwidth=250000
40+
spreading_factor=7
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AS923"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
921400000,
28+
921600000,
29+
921800000,
30+
922000000,
31+
922200000,
32+
922400000,
33+
922600000,
34+
922800000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=922700000
39+
bandwidth=250000
40+
spreading_factor=7
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AS923"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
916600000,
28+
916800000,
29+
917000000,
30+
917200000,
31+
917400000,
32+
917600000,
33+
917800000,
34+
918000000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=917900000
39+
bandwidth=250000
40+
spreading_factor=7
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AS923"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
917300000,
28+
917500000,
29+
917700000,
30+
917900000,
31+
918100000,
32+
918300000,
33+
918500000,
34+
918700000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=918600000
39+
bandwidth=250000
40+
spreading_factor=7
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AU915"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
915200000,
28+
915400000,
29+
915600000,
30+
915800000,
31+
916000000,
32+
916200000,
33+
916400000,
34+
916600000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=915900000
39+
bandwidth=500000
40+
spreading_factor=8
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AU915"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
916800000,
28+
917000000,
29+
917200000,
30+
917400000,
31+
917600000,
32+
917800000,
33+
918000000,
34+
918200000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=917500000
39+
bandwidth=500000
40+
spreading_factor=8
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AU915"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
918400000,
28+
918600000,
29+
918800000,
30+
919000000,
31+
919200000,
32+
919400000,
33+
919600000,
34+
919800000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=919100000
39+
bandwidth=500000
40+
spreading_factor=8
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
2+
# configuration example and documentation.
3+
4+
[integration.mqtt.auth.generic]
5+
servers=["tcp://mosquitto:1883"]
6+
username=""
7+
password=""
8+
9+
[backend]
10+
type="basic_station"
11+
12+
[backend.basic_station]
13+
bind=":3001"
14+
tls_cert=""
15+
tls_key=""
16+
ca_cert=""
17+
18+
region="AU915"
19+
frequency_min=915000000
20+
frequency_max=928000000
21+
22+
23+
[[backend.basic_station.concentrators]]
24+
25+
[backend.basic_station.concentrators.multi_sf]
26+
frequencies=[
27+
920000000,
28+
920200000,
29+
920400000,
30+
920600000,
31+
920800000,
32+
921000000,
33+
921200000,
34+
921400000,
35+
]
36+
37+
[backend.basic_station.concentrators.lora_std]
38+
frequency=920700000
39+
bandwidth=500000
40+
spreading_factor=8

0 commit comments

Comments
 (0)