Orne Brocaar bb53821aef Update gw proto & refactor Mesh Heartbeat event.
This refactors the gateway protobuf payloads, such that the
Concentratord can publish an Event message, containing one of the
possible events published by the Concentratord (uplink, stats or mesh
event). It also combines the possible Concentratord commands into a
single Command message. This simplifies the ZMQ interface as it is no
longer needed to match the payload type by string.

This also refactors the MeshHeartbeat message into a Mesh message, which
can contain multiple events, of which the Heartbeat is one of the
possible events.

The future goal is to make it possible to send different types of events
from the Gateway Mesh Relay gateways (e.g. battery status, ...) and to
make it possible to also send proprietary event types.
2025-05-08 14:29:15 +01:00
2024-12-05 11:20:20 +00:00
2025-04-22 09:01:31 +01:00
2025-04-22 09:01:31 +01:00
2025-04-22 09:01:31 +01:00
2025-04-28 10:18:44 +01:00
2023-05-30 12:13:52 +01:00
2022-04-06 21:50:23 +01:00
2025-04-22 09:01:31 +01:00
2024-08-08 16:53:07 +01:00
2023-05-30 12:13:52 +01:00
2024-12-06 09:54:54 +00:00
2022-04-06 21:18:32 +01:00
2025-04-15 11:29:01 +01:00
2025-04-15 11:29:01 +01:00

ChirpStack open-source LoRaWAN(R) Network Server

CI

ChirpStack is an open-source LoRaWAN(R) Network Server which can be used to set up LoRaWAN networks. ChirpStack provides a web-interface for the management of gateways, devices and tenants as well to set up data integrations with the major cloud providers, databases and services commonly used for handling device data. ChirpStack provides a gRPC based API that can be used to integrate or extend ChirpStack.

Documentation and binaries

Please refer to the ChirpStack website for documentation and pre-compiled binaries.

Building from source

Requirements

Building ChirpStack requires:

Nix

Nix is used for setting up the development environment which is used for local development and for creating the binaries.

If you do not have Nix installed and do not wish to install it, then you can use the provided Docker Compose based Nix environment. To start this environment execute the following command:

make docker-devshell

Note: You will be able to run the test commands and run cargo build, but cross-compiling will not work within this environment (because it would try start Docker within Docker).

Docker

Docker is used by cross-rs for cross-compiling, as well as some of the make commands.

Starting the development shell

Run the following command to start the development shell:

nix-shell

Or if you do not have Nix installed, execute the following command:

make docker-devshell

Building the UI

To build the ChirpStack UI, execute the following command:

make build-ui

Running ChirpStack tests

Start required services

ChirpStack requires several services like PostgresQL, Redis, Mosquitto, ... to be running before you can run the tests. You need to start these services manually if you started the development shell using nix-shell:

docker compose up -d

Run tests

Run the following command to run the ChirpStack tests:

# Test (with PostgresQL database backend)
make test

# Test with SQLite database backend
DATABASE=sqlite make test

Building ChirpStack binaries

Before compiling the binaries, you need to install some additional development tools (for cross-compiling, packaging, e.d.). Execute the following command:

make dev-dependencies

Run the following command within the ./chirpstack sub-folder:

# Build AMD64 debug build (optimized for build speed)
make debug-amd64

# Build AMD64 release build (optimized for performance and binary size)
make release-amd64

# Build all packages (all targets, .deb, .rpm and .tar.gz files)
make dist

By default the above commands will build ChirpStack with the PostgresQL database database backend. Set the DATABASE=sqlite env. variable to compile ChirpStack with the SQLite database backend.

Database migrations

To create a new database migration, execute:

make migration-generate NAME=test-migration

To apply migrations, execute:

make migration-run

To revert a migration, execute:

make migration-revert

By default the above commands will execute the migration commands using the PostgresQL database backend. To execute migration commands for the SQLite database backend, set the DATABASE=sqlite env. variable.

License

ChirpStack Network Server is distributed under the MIT license. See also LICENSE.

Description
ChirpStack open-source LoRaWAN Network Server
Readme MIT 20 MiB
Languages
Rust 85.5%
TypeScript 14.1%
Makefile 0.2%