@@ -9,18 +9,6 @@ description: Instructions and examples how to configure the LoRa Gateway Bridge
99
1010# Configuration
1111
12- ## Gateway
13-
14- Modify the [ packet-forwarder] ( https://github.com/lora-net/packet_forwarder )
15- of your gateway so that it will send its data to the LoRa Gateway Bridge.
16- You will need to change the following configuration keys:
17-
18- * ` server_address ` to the IP address / hostname of the LoRa Gateway Bridge
19- * ` serv_port_up ` to ` 1700 ` (the default port that LoRa Gateway Bridge is using)
20- * ` serv_port_down ` to ` 1700 ` (same)
21-
22- ## LoRa Gateway Bridge
23-
2412The ` lora-gateway-bridge ` has the following command-line flags:
2513
2614{{<highlight text >}}
4533Use "lora-gateway-bridge [ command] --help" for more information about a command.
4634{{< /highlight >}}
4735
48- ### Configuration file
36+ ## Configuration file
4937
5038By default ` lora-gateway-bridge ` will look in the following order for a
5139configuration at the following paths when ` --config ` / ` -c ` is not set:
@@ -82,6 +70,14 @@ log_level = 4
8270# Gateway backend configuration.
8371[ backend]
8472
73+ # Backend type.
74+ #
75+ # Valid options are:
76+ # * semtech_udp
77+ # * basic_station
78+ type="semtech_udp"
79+
80+
8581 # Semtech UDP packet-forwarder backend.
8682 [ backend.semtech_udp]
8783
@@ -133,6 +129,61 @@ log_level = 4
133129 # # permissions to execute this command.
134130 # restart_command="/etc/init.d/lora-packet-forwarder restart"
135131
132+ # Basic Station backend.
133+ [ backend.basic_station]
134+
135+ # ip: port to bind the Websocket listener to.
136+ bind=":3001"
137+
138+ # TLS certificate and key files.
139+ #
140+ # When set, the websocket listener will use TLS to secure the connections
141+ # between the gateways and LoRa Gateway Bridge (optional).
142+ tls_cert=""
143+ tls_key=""
144+
145+ # TLS CA certificate.
146+ #
147+ # When configured, LoRa Gateway Bridge will validate that the client
148+ # certificate of the gateway has been signed by this CA certificate.
149+ ca_cert=""
150+
151+ # Ping interval.
152+ ping_interval="1m0s"
153+
154+ # Read timeout.
155+ #
156+ # This interval must be greater than the configured ping interval.
157+ read_timeout="1m5s"
158+
159+ # Write timeout.
160+ write_timeout="1s"
161+
162+ # Region.
163+ #
164+ # Please refer to the LoRaWAN Regional Parameters specification
165+ # for the complete list of common region names.
166+ region="EU868"
167+
168+ # Minimal frequency (Hz).
169+ frequency_min=863000000
170+
171+ # Maximum frequency (Hz).
172+ frequency_max=870000000
173+
174+ # Filters.
175+ [backend.basic_station.filters]
176+
177+ # NetIDs to filter on when receiving uplinks.
178+ net_ids=[
179+ "000000",
180+ ]
181+
182+ # JoinEUIs to filter on when receiving join-requests.
183+ join_euis=[
184+ ["0000000000000000", "ffffffffffffffff"],
185+ ]
186+
136187
137188# Integration configuration.
138189[ integration]
@@ -263,7 +314,7 @@ marshaler="protobuf"
263314 bind=""
264315{{</highlight >}}
265316
266- #### Environment variables
317+ ## Environment variables
267318
268319Although using the configuration file is recommended, it is also possible
269320to use environment variables to set configuration variables.
0 commit comments