Introduction

The ChirpStack open-source LoRaWAN Network Server stack provides open-source components for LoRaWAN networks. Together they form a ready-to-use solution including a user-friendly web-interface for device management and APIs for integration. The modular architecture makes it possible to integrate within existing infrastructures. All components are licensed under the MIT license and can be used for commercial purposes. It supports Class A, Class B, and Class C modes, as well as adaptive data-rate, live-frame logging, channel configuration, multi-tenant, APIs and integration, etc.


This article will guide you how to integrate Milesight LoRaWAN gateways to ChirpStack server. Click here for more information about how to install ChirpStack.


Requirements

  • UG6x/UG8x LoRaWAN Gateway
  • ChirpStack Server  (server frequency should be the same as gateway and sensors)


Contents

1. Gateway Configuration

2. ChirpStack Configuration


 

Gateway Configuration

Method 1: Connect via ChirpStack Gateway Bridge

UG6x/UG8x gateways has embedded ChirpStack gateway bridge supports generic MQTT authentication (V3.5.0) and this feature only suits firmware of 60.0.0.x,  80.0.0.49 and later.

1. Go to Packet Forwarder-> General and click to create a  ChirpStack-Generic type network server to Multi-Destination list. 

2. Type the ChirpStackserver address and enable this server. User credentials and TLS authentication are required as server settings.


3. Click Save&Apply to complete the gateway settings.


Method 2: Connect via Semtech UDP Packet Forwarder

Chirpstack supports Semtech UDP packet forwarder that is not encrypted, less reliable (UDP-based), but its simplicity makes it work on a large number of gateways.

1. Go to Packet Forwarder-> General and click to create a  Semtech type network server to Multi-Destination list. 

2. Type the ChirpStackserver address and save the configuration.


3. Click Save&Apply to complete the gateway settings.

Note: For firmware version 87.1.0.x or before 80.0.0.49, go to LoRaWAN-> Packet Forwarder -> General and fill in ChirpStack server address.


 

ChirpStack Configuration

1. Go to Gateway-profiles pageand click +CREATE to add a gateway profile.


2. Go to Gatewaypage to add a gateway. Gateway ID can be found in webpage of UG6x/UG8x. After all information are completed, click GREATE GATEWAY.

3. Click the gateway item to check if gateway is online. You can also check realtime data in LIVE LORAWAN FRAMES tab.