Chirpstack is an open-source LoRaWAN Network Server stack. It is responsible for handling the communication between the LoRaWAN end-devices and the application server. In the WiseVision project, it is used to manage the communication between the LoRaWAN end-devices and the WiseVision bridge.
- Clone the repository.
vcs import --recursive < project.repos
- Run.
cd src/wisevision_lorawan_bridge/chirpstack_docker
docker compose up
# or for older versions docker-compose up
- Start the gateway in another terminal (if it's already set up, if not setup gateway).
cd sx1302_hal/packet_forwarder
sudo ./lora_pkt_fwd
- Open http://localhost:8080. Log in with admin/admin.
- On the left bar click on
Gateways
. (1.
on the image below) - Click on the
Add gateway
. (2.
on the image below)
- Write name for gateway. (
1
. on the image below) - Write gateway ID (EUI) How to get gateway ID. (
2.
on the image below) - Save gateway by click
Submit
(3.
on the image below)
- On the left bar click on
Aplications
. (1.
on the image below) - Click on the
Add application
. (2.
on the image below)
- Write name for application. (
1
. on the image below) - Save application by click
Submit
. (2
. on the image below)
- On the left bar click on
Device Profiles
. (1.
on the image below) - Click on the
Add device profile
. (2.
on the image below)
- Write name for device profile (this name has to be the same name of the parser class in
wisevision_lorawan_bridge
for this device, this name is case sensitive). (1.
on the image below) - If device is class C device click on the
Class-C
. (2.
on the image below)
- Switch
Device supports Class-C
. (1.
on the image below) - Save device profile by click
Submit
. (2.
on the image below)
- On the left bar click on
Applications
. (1.
on the image below) - Choose the application to add the device to. (
2.
on the image below)
- Click on the
Add device
. (1.
on the image below)
- Write name for device. (
1.
on the image below) - Write device
EUI
. (2.
on the image below) - Write device
Join EUI
. (3.
on the image below) - Choose correct device profile. (
4.
on the image below) - Save device by click
Submit
. (5.
on the image below)
- On the left bar click on
Applications
. (1.
on the image below) - Choose the application to get the
application ID
from. (2.
on the image below)
- Application id is next to app name. (
1.
on the image below)
- On the left bar click on
API keys
. (1.
on the image below) - Click on the
Add API key
. (2.
on the image below)
- Wrtie name of the
API keys
. (1.
on the image below) - Click on the
Submit
. (2.
on the image below)
API key
is here. (1.
on the image below)- Click on the
Submit
. (2.
on the image below) - Store the value in environment variable
CHIRPSTACK_API_TOKEN
.
Note
It will not be possible to retrieve API key later. If you lose the key value, you will need to generate a new key.