Skip to content

Latest commit

 

History

History
116 lines (79 loc) · 4.54 KB

set_up_chirpstack.md

File metadata and controls

116 lines (79 loc) · 4.54 KB

How to Set Up ChirpStack

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.

Run Chirpstack in Docker

Clone the repository

  1. Clone the repository.
vcs import --recursive < project.repos

Run Chirpstack

  1. Run.
cd src/wisevision_lorawan_bridge/chirpstack_docker
docker compose up 
# or for older versions docker-compose up 

How to Add Gateway

  1. 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
  1. Open http://localhost:8080. Log in with admin/admin.
  2. On the left bar click on Gateways. (1. on the image below)
  3. Click on the Add gateway. (2. on the image below)

Add gateway start

  1. Write name for gateway. (1. on the image below)
  2. Write gateway ID (EUI) How to get gateway ID. (2. on the image below)
  3. Save gateway by click Submit (3. on the image below)

Add gateway data

How to Create Application

  1. On the left bar click on Aplications. (1. on the image below)
  2. Click on the Add application. (2. on the image below)

Add application start

  1. Write name for application. (1. on the image below)
  2. Save application by click Submit. (2. on the image below)

Add applcation data

How to Create Device Profile

  1. On the left bar click on Device Profiles. (1. on the image below)
  2. Click on the Add device profile. (2. on the image below)

Add device profile start

  1. 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)
  2. If device is class C device click on the Class-C. (2. on the image below)

Add device profile data

  1. Switch Device supports Class-C. (1. on the image below)
  2. Save device profile by click Submit. (2. on the image below)

Add device profile class C

How to Add Device to Application

  1. On the left bar click on Applications. (1. on the image below)
  2. Choose the application to add the device to. (2. on the image below)

Add device start

  1. Click on the Add device. (1. on the image below)

Add device application

  1. Write name for device. (1. on the image below)
  2. Write device EUI. (2. on the image below)
  3. Write device Join EUI. (3. on the image below)
  4. Choose correct device profile. (4. on the image below)
  5. Save device by click Submit. (5. on the image below)

Add device data

How to Get Application ID

  1. On the left bar click on Applications. (1. on the image below)
  2. Choose the application to get the application ID from. (2. on the image below)

Application id start

  1. Application id is next to app name. (1. on the image below)

Application id data

How to Create API Key

  1. On the left bar click on API keys. (1. on the image below)
  2. Click on the Add API key. (2. on the image below)

API key start

  1. Wrtie name of the API keys. (1. on the image below)
  2. Click on the Submit. (2. on the image below)

API key data

  1. API key is here. (1. on the image below)
  2. Click on the Submit. (2. on the image below)
  3. Store the value in environment variable CHIRPSTACK_API_TOKEN.

API key copy

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.