Skip to content

Commit 5cc92d4

Browse files
committed
Update to v3 components + update openembedded layers.
Closes #9.
1 parent c0d7e00 commit 5cc92d4

File tree

15 files changed

+97
-147
lines changed

15 files changed

+97
-147
lines changed

bitbake

Submodule bitbake updated from 7c1eb51 to 4ce92f4

docs/config.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ pygmentsUseClasses = true
3333
weight = 4
3434

3535
[params]
36-
raspberrypi_raspberrypi3_version = "2.0.0test4"
37-
wifx_lorix_one_sd_version = "2.0.0test4"
38-
wifx_lorix_one_512_sd_version = "2.0.0test4"
36+
raspberrypi_raspberrypi3_version = "3.0.0test1"
37+
wifx_lorix_one_sd_version = "3.0.0test1"
38+
wifx_lorix_one_512_sd_version = "3.0.0test1"

docs/content/overview/changelog.md

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ menu:
88

99
# Changelog
1010

11+
## v3.0.0test1
12+
13+
### General
14+
15+
* LoRa App Server v3.1.0.
16+
* LoRa Server v3.0.2.
17+
* LoRa Gateway Bridge v3.0.1.
18+
19+
### Raspberry Pi
20+
21+
* Fix HDMI related boot issue. ([#9](https://github.com/brocaar/lora-gateway-os/issues/9))
22+
1123
## v2.0.0test4
1224

1325
### General

layers/bsp/meta-raspberrypi

Submodule meta-raspberrypi updated from c71d79e to 89bdf97

layers/loraserver/meta-loraserver/recipes-loraserver/lora-app-server/lora-app-server_2.6.0.bb renamed to layers/loraserver/meta-loraserver/recipes-loraserver/lora-app-server/lora-app-server_3.1.0.bb

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ SRC_URI = " \
99
file://lora-app-server.monit \
1010
file://lora-app-server.toml \
1111
"
12-
SRC_URI[md5sum] = "1b201241a69d1fa660441533fc4bfdde"
13-
SRC_URI[sha256sum] = "9433b7ca3980e3457d93b2e19d9f0e26530128b0a887df6e566ffc1edae2ac2f"
12+
SRC_URI[md5sum] = "aa8dc1d2e26c171f2496e7b7dbc948a0"
13+
SRC_URI[sha256sum] = "8b75522b372d7e37b1168aa9d1de848cdb16b758b694abfbbc8eeeb0b36a8a3e"
1414
PR = "r1"
1515

1616
inherit update-rc.d
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,90 @@
1-
[general]
2-
# debug=5, info=4, warning=3, error=2, fatal=1, panic=0
3-
log_level = 4
4-
5-
6-
# Configuration which relates to the packet-forwarder.
7-
[packet_forwarder]
8-
# ip:port to bind the UDP listener to
9-
#
10-
# Example: 0.0.0.0:1700 to listen on port 1700 for all network interfaces.
11-
# This is the listeren to which the packet-forwarder forwards its data
12-
# so make sure the 'serv_port_up' and 'serv_port_down' from your
13-
# packet-forwarder matches this port.
14-
udp_bind = "0.0.0.0:1700"
15-
16-
# Skip the CRC status-check of received packets
1+
# This configuration provides a Semtech UDP packet-forwarder backend and
2+
# integrates with a MQTT broker. Many options and defaults have been omitted
3+
# for simplicity.
174
#
18-
# This is only has effect when the packet-forwarder is configured to forward
19-
# LoRa frames with CRC errors.
20-
skip_crc_check = false
5+
# See https://www.loraserver.io/lora-gateway-bridge/install/config/ for a full
6+
# configuration example and documentation.
217

228

23-
# # Managed packet-forwarder configuration.
24-
# #
25-
# # By configuring one or multiple managed packet-forwarder sections, the
26-
# # LoRa Gateway Bridge updates the configuration when the backend receives
27-
# # a configuration change, after which it will restart the packet-forwarder.
28-
# [[packet_forwarder.configuration]]
29-
# # Gateway MAC.
30-
# #
31-
# # The LoRa Gateway Bridge will only apply the configuration updates for this
32-
# # gateway MAC.
33-
# mac="0102030405060708"
9+
# Gateway backend configuration.
10+
[backend]
11+
# Backend type.
12+
type="semtech_udp"
3413

35-
# # Base configuration file.
36-
# #
37-
# # This file will be used as base-configuration and will not be overwritten on
38-
# # a configuration update. This file needs to exist and contains the base
39-
# # configuration and vendor specific
40-
# base_file="/etc/lora-packet-forwarder/global_conf.json"
14+
# Semtech UDP packet-forwarder backend.
15+
[backend.semtech_udp]
4116

42-
# # Output configuration file.
43-
# #
44-
# # This will be the final configuration for the packet-forwarder, containing
45-
# # a merged version of the base configuration + the requested configuration
46-
# # update.
47-
# # Warning: this file will be overwritten on a configuration update!
48-
# output_file="/etc/lora-packet-forwarder/local_conf.json"
49-
50-
# # Restart command.
51-
# #
52-
# # This command is issued by the LoRa Gateway Bridge on a configuration
53-
# # change. Make sure the LoRa Gateway Bridge process has sufficient
54-
# # permissions to execute this command.
55-
# restart_command="/etc/init.d/lora-packet-forwarder restart"
56-
57-
58-
# Configuration for the MQTT backend.
59-
[backend.mqtt]
60-
# MQTT topic templates for the different MQTT topics.
61-
#
62-
# The meaning of these topics are documented at:
63-
# https://docs.loraserver.io/lora-gateway-bridge/use/data/
64-
#
65-
# The default values match the default expected configuration of the
66-
# LoRa Server MQTT backend. Therefore only change these values when
67-
# absolutely needed.
68-
# Use "{{ .MAC }}" as an substitution for the LoRa gateway MAC.
69-
uplink_topic_template="gateway/{{ .MAC }}/rx"
70-
downlink_topic_template="gateway/{{ .MAC }}/tx"
71-
stats_topic_template="gateway/{{ .MAC }}/stats"
72-
ack_topic_template="gateway/{{ .MAC }}/ack"
73-
config_topic_template="gateway/{{ .MAC }}/config"
17+
# ip:port to bind the UDP listener to
18+
#
19+
# Example: 0.0.0.0:1700 to listen on port 1700 for all network interfaces.
20+
# This is the listeren to which the packet-forwarder forwards its data
21+
# so make sure the 'serv_port_up' and 'serv_port_down' from your
22+
# packet-forwarder matches this port.
23+
udp_bind = "0.0.0.0:1700"
7424

25+
# Managed packet-forwarder configuration.
26+
#
27+
# By configuring one or multiple managed packet-forwarder sections, the
28+
# LoRa Gateway Bridge updates the configuration when the backend receives
29+
# a configuration change, after which it will restart the packet-forwarder.
30+
#
31+
# Example (this configuration can be repeated):
32+
#
33+
# [[backend.semtech_udp.configuration]]
34+
# # Gateway ID.
35+
# #
36+
# # The LoRa Gateway Bridge will only apply the configuration updates for this
37+
# # gateway ID.
38+
# gateway_id="0102030405060708"
39+
40+
# # Base configuration file.
41+
# #
42+
# # This file will be used as base-configuration and will not be overwritten on
43+
# # a configuration update. This file needs to exist and contains the base
44+
# # configuration and vendor specific
45+
# base_file="/etc/lora-packet-forwarder/global_conf.json"
46+
47+
# # Output configuration file.
48+
# #
49+
# # This will be the final configuration for the packet-forwarder, containing
50+
# # a merged version of the base configuration + the requested configuration
51+
# # update.
52+
# # Warning: this file will be overwritten on a configuration update!
53+
# output_file="/etc/lora-packet-forwarder/local_conf.json"
54+
55+
# # Restart command.
56+
# #
57+
# # This command is issued by the LoRa Gateway Bridge on a configuration
58+
# # change. Make sure the LoRa Gateway Bridge process has sufficient
59+
# # permissions to execute this command.
60+
# restart_command="/etc/init.d/lora-packet-forwarder restart"
61+
62+
# Integration configuration.
63+
[integration]
7564
# Payload marshaler.
7665
#
7766
# This defines how the MQTT payloads are encoded. Valid options are:
78-
# * v2_json: The default LoRa Gateway Bridge v2 encoding (will be deprecated and removed in LoRa Gateway Bridge v3)
7967
# * protobuf: Protobuf encoding (this will become the LoRa Gateway Bridge v3 default)
8068
# * json: JSON encoding (easier for debugging, but less compact than 'protobuf')
81-
marshaler="v2_json"
69+
marshaler="protobuf"
70+
71+
# MQTT integration configuration.
72+
[integration.mqtt]
73+
# Event topic template.
74+
event_topic_template="gateway/{{ .GatewayID }}/event/{{ .EventType }}"
75+
76+
# Command topic template.
77+
command_topic_template="gateway/{{ .GatewayID }}/command/#"
8278

8379
# MQTT authentication.
84-
[backend.mqtt.auth]
80+
[integration.mqtt.auth]
8581
# Type defines the MQTT authentication type to use.
8682
#
8783
# Set this to the name of one of the sections below.
88-
# Note: when the 'v2_json marhaler' is configured, the generic backend will
89-
# always be used.
9084
type="generic"
9185

9286
# Generic MQTT authentication.
93-
[backend.mqtt.auth.generic]
87+
[integration.mqtt.auth.generic]
9488
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
9589
server="tcp://127.0.0.1:1883"
9690

@@ -99,60 +93,3 @@ marshaler="v2_json"
9993

10094
# Connect with the given password (optional)
10195
password=""
102-
103-
# Quality of service level
104-
#
105-
# 0: at most once
106-
# 1: at least once
107-
# 2: exactly once
108-
#
109-
# Note: an increase of this value will decrease the performance.
110-
# For more information: https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels
111-
qos=0
112-
113-
# Clean session
114-
#
115-
# Set the "clean session" flag in the connect message when this client
116-
# connects to an MQTT broker. By setting this flag you are indicating
117-
# that no messages saved by the broker for this client should be delivered.
118-
clean_session=true
119-
120-
# Client ID
121-
#
122-
# Set the client id to be used by this client when connecting to the MQTT
123-
# broker. A client id must be no longer than 23 characters. When left blank,
124-
# a random id will be generated. This requires clean_session=true.
125-
client_id=""
126-
127-
# CA certificate file (optional)
128-
#
129-
# Use this when setting up a secure connection (when server uses ssl://...)
130-
# but the certificate used by the server is not trusted by any CA certificate
131-
# on the server (e.g. when self generated).
132-
ca_cert=""
133-
134-
# mqtt TLS certificate file (optional)
135-
tls_cert=""
136-
137-
# mqtt TLS key file (optional)
138-
tls_key=""
139-
140-
# Maximum interval that will be waited between reconnection attempts when connection is lost.
141-
# Valid units are 'ms', 's', 'm', 'h'. Note that these values can be combined, e.g. '24h30m15s'.
142-
max_reconnect_interval="10m0s"
143-
144-
145-
# Metrics configuration.
146-
[metrics]
147-
148-
# Metrics stored in Prometheus.
149-
#
150-
# These metrics expose information about the state of the LoRa Gateway Bridge
151-
# instance like number of messages processed, number of function calls, etc.
152-
[metrics.prometheus]
153-
# Expose Prometheus metrics endpoint.
154-
endpoint_enabled=false
155-
156-
# The ip:port to bind the Prometheus metrics server to for serving the
157-
# metrics endpoint.
158-
bind=""
+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ SRC_URI = "https://artifacts.loraserver.io/downloads/lora-gateway-bridge/lora-ga
88
file://lora-gateway-bridge.init \
99
file://lora-gateway-bridge.monit \
1010
"
11-
SRC_URI[md5sum] = "2847ca47e165e37855ce636fc149ab54"
12-
SRC_URI[sha256sum] = "a23a20e366c0dc5a0ca4c9df34e5815df4b565cbf534bb3d92d88ae8648dbceb"
11+
SRC_URI[md5sum] = "8ce5f8d32a0a6b9fba49b38c759f3ed4"
12+
SRC_URI[sha256sum] = "62fe4da1c9dfe3a0310fc700710610c94b16d33b2f993d0b4ea3f146d5bd7c7e"
1313
PR = "r1"
1414

1515
inherit update-rc.d

layers/loraserver/meta-loraserver/recipes-loraserver/loraserver/loraserver_2.6.1.bb renamed to layers/loraserver/meta-loraserver/recipes-loraserver/loraserver/loraserver_3.0.2.bb

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ SRC_URI = " \
2525
file://config/us915_6.toml \
2626
file://config/us915_7.toml \
2727
"
28-
SRC_URI[md5sum] = "81d7be439efa9afdfaa1c2def30a2bdb"
29-
SRC_URI[sha256sum] = "f667fd0f6759b0f325301faa76cf52dd3b184769387334aed9d1b69532012831"
28+
SRC_URI[md5sum] = "2e5df617f5037b55cca5e17355fec2c5"
29+
SRC_URI[sha256sum] = "84d595dd4ff8468d2b0835e14f02d226b13fbe7edda20e1abd99df1c3b08daad"
3030
PR = "r1"
3131

3232
inherit update-rc.d

layers/mender/meta-mender

Submodule meta-mender updated 33 files

layers/openembedded/meta-openembedded

Submodule meta-openembedded updated from 4cd3a39 to 9b3b907

layers/openembedded/openembedded-core

Submodule openembedded-core updated from 7b5a069 to f162d5b

meta/conf/distro/lora-gateway-os.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DISTRO = "lora-gateway-os"
22
DISTRO_NAME = "LoRa Gateway OS"
3-
DISTRO_VERSION = "2.0.0test4"
3+
DISTRO_VERSION = "3.0.0test1"
44

55
PACKAGE_CLASSES = "package_ipk"
66
IMAGE_INSTALL_append = " opkg "

meta/recipes-core/firstbootinit/firstbootinit/firstbootinit.sh

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ do_init_postgresql_dbs() {
3232
sudo -u postgres /usr/bin/psql -c "create database loraserver_ns with owner loraserver_ns";
3333
sudo -u postgres /usr/bin/psql -c "create database loraserver_as with owner loraserver_as";
3434
sudo -u postgres /usr/bin/psql loraserver_as -c "create extension pg_trgm;"
35+
sudo -u postgres /usr/bin/psql loraserver_as -c "create extension hstore;"
3536
touch /var/lib/firstbootinit/postgresql_dbs_created
3637
fi
3738
}

scripts/loraserver-prepare-deploy

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ do_deploy() {
1313
}
1414

1515

16-
VERSION="2.0.0test4"
16+
VERSION="3.0.0test1"
1717

1818
do_deploy $VERSION "raspberrypi" "raspberrypi3"
1919
do_deploy $VERSION "wifx" "lorix-one-sd"

0 commit comments

Comments
 (0)