El multiplexor de paquetes ChirpStack permite conectar las puertas de enlace utilizando el protocolo Semtech UDP Packet-Forwarder a múltiples servidores, con la opción de marcar los servidores solo como enlace ascendente.
ChirpStack proporciona un repositorio que es compatible con el sistema de paquetes Debian / Ubuntu Apt. Primero asegúrese de que se instalen dirmngr y apt-transport-https :
sudo apt install apt-transport-https dirmngr
Configure la clave para este nuevo repositorio:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
Agregue el repositorio a la lista de repositorio creando un nuevo archivo:
sudo echo "deb https://artifacts.chirpstack.io/packages/4.x/deb stable main" | sudo tee /etc/apt/sources.list.d/chirpstack.list
Actualice el paquete APT en caché e instale chirpstack-packet-multiplexer :
sudo apt update
sudo apt install chirpstack-packet-multiplexer
Para completar la instalación, actualice el archivo de configuración que se encuentra en /etc/chirpstack-packet-multiplexer/chirpstack-packet-multiplexer.toml y (re) iniciar el servicio:
sudo systemctl restart chirpstack-packet-multiplexer
Construir el multiplexor de paquetes Chirpstack requiere:
NIX se utiliza para configurar el entorno de desarrollo que se utiliza para el desarrollo local y para crear los binarios.
Si no tiene NIX instalado y no desea instalarlo, también puede replicar el entorno de desarrollo instalando los paquetes enumerados en shell.nix manualmente.
Docker es utilizado por RS-RS para compilación cruzada, así como algunos de los comandos make .
Ejecute el siguiente comando para iniciar el shell de desarrollo:
nix-shellEjecute el siguiente comando para ejecutar las pruebas:
make testEjecute los siguientes comandos para construir los binarios y paquetes de multiplexador de paquetes ChirpStack:
# Only build binaries
make build
# Build binaries + distributable packages.
make dist Ejecute chirpstack-packet-multiplexer --help para información de uso.
Ejecutar chirpstack-packet-multiplexer configfile Devuelve la siguiente plantilla de configuración:
# Logging settings.
[ logging ]
# Log level.
#
# Valid options are:
# * TRACE
# * DEBUG
# * INFO
# * WARN
# * ERROR
level = " info "
# Multiplexer configuration.
[ multiplexer ]
# Interface:port of UDP bind.
#
# This this is the interface:port on which the Multiplexer will receive
# data from the gateways.
bind = " 0.0.0.0:1700 "
# Servers to forward gateway data to.
#
# Example configuration:
# [[multiplexer.server]]
# # Hostname:port of the server.
# server="example.com:1700"
# # Only allow uplink.
# #
# # If set to true, any downlink will be discarded.
# uplink_only=false
# # Gateway ID prefix filters.
# #
# # If not set, data of all gateways will be forwarded. If set, only data
# # from gateways with a matching Gateway ID will be forwarded.
# #
# # Examplex:
# # * "0102030405060708/32": Exact match (all 32 bits of the filter must match)
# # * "0102030400000000/16": All gateway IDs starting with "01020304" (filter on 16 most significant bits)
# gateway_id_prefixes=[]
# Monitoring configuration.
[ monitoring ]
# Interface:port.
#
# If set, this will enable the monitoring endpoints. If not set, the endpoint
# will be disabled. Endpoints:
#
# * /metrics: Exposes Prometheus metrics.
bind = " " services:
chirpstack-packet-multiplexer:
image: chirpstack/chirpstack-packet-multiplexer:4.0.0-test.2
command: -c /etc/chirpstack-packet-multiplexer/chirpstack-packet-multiplexer.toml
ports:
- 1700:1700/udp
volumes:
- ./config:/etc/chirpstack-packet-multiplexer
El ejemplo anterior supone que tiene un directorio de configuración local llamado config que contiene un archivo chirpstack-packet-multiplexer.toml .
gateway_id_prefixes está vacía.Esta versión renombra el multiplexor de paquetes Lora al multiplexor de paquetes Chirpstack. Vea el anuncio de renombro para obtener más información.
El multiplexor de paquetes Chirpstack se distribuye bajo la licencia MIT. Ver también Licencia.