Skip to main content

ChirpStack v4 Configuration

This tutorial walks you through the process of adding gateways, creating device profiles, registering devices, decoding payloads, and setting up integrations in ChirpStack v4.


1. Gateways

The first step is to add your gateways into ChirpStack.
From the left navigation menu, under tenant, select Gateways and then click the Add Gateway button in the top right.

A form will appear where you can enter gateway information such as:

  • Name
  • Gateway ID
  • Stats Interval

Once completed, click Submit.

ChirStack v4 - Gateways


Ember Gateways – MikroTik Software

info

If you are using our Ember gateway, the Gateway ID can be found through MikroTik software.

  1. Open a browser and enter the IP address of your gateway.
  2. In the left menu, select IoT → LoRa → Devices.
  3. Click on your gateway to view its details, including the Gateway ID.
  4. Ensure that Network is set to Private, not Public.

You also need to verify the connection between the gateway and the ChirpStack LoRaWAN Network Server.

  1. In the same IoT → LoRa section, select Servers instead of Devices.
  2. Remove the default manufacturer configuration.
  3. Click New to create your own server connection.
  4. Fill in:
    • Name
    • Server address (where ChirpStack is running)
    • Protocol
    • Uplink and Downlink ports

2. Device Profiles

After adding gateways, the next step is to create device profiles in ChirpStack.

  1. In the navigation bar, click Device Profiles.

  2. Click Add Device Profile (top right).

  3. Enter the required information such as:

    • Name
    • Region
    • MAC Version
    • ADR Algorithm
    • Expected Uplink Interval

ChirStack v4 - Gateways


Example for STICKER devices

General Tab:

  • MAC version: LoRaWAN 1.0.4
  • Regional parameters revision: B
  • ADR algorithm: Default ADR algorithm (LoRa only)

Join (OTAA/ABP) Tab:

  • Device supports OTAA: OFF

Class-B Tab:

  • Device supports Class-B: OFF

Class-C Tab:

  • Device supports Class-C: OFF

Example for CHESTER devices:

General Tab:

  • MAC version: LoRaWAN 1.0.4
  • Regional parameters revision: A
  • ADR algorithm: Default ADR algorithm (LoRa only)

Join (OTAA/ABP) Tab:

  • Device supports OTAA: ON

Class-B Tab:

  • Device supports Class-B: OFF

Class-C Tab:

  • Device supports Class-C: OFF

3. Applications – Adding Devices

Next, create an application:

  1. In the navigation bar, select Applications (bottom of the menu).

  2. Create a new application and open it.

  3. Add devices by providing details such as:

    • Name
    • Device EUI
    • Device Profile

Click Submit.

ChirStack v4 - Gateways

After creating the device, go to the Activation tab and enter:

  • Device Address
  • Network Session Key
  • Application Session Key

Finally, click (Re)activate Device.

ChirStack v4 - Gateways


4. Codec

LoRaWAN data is transmitted in a compressed format and needs to be decoded.

  1. Go to Device Profiles → Codec.
  2. Select Payload Codec and paste your decoding code.

For STICKER, choose JavaScript functions as the payload codec, then click Submit.

ChirStack v4 - Gateways

Viewing Decoded Data

  1. Navigate to Applications → Events.
  2. Select Up to view uplink messages.
  3. You will now see decoded data.

Example of Codec (STICKER)


5. Integrations

Finally, you can set up integrations.
Within your Application, go to the Integrations tab and choose the integration method you need, for example:

  • Visualization platforms
  • External services
  • Custom APIs

ChirpStack v4 - Integrations


tip

If you need further assistance or a visual demonstration of the process described in this guide, consult the Video Guide.