Contents


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

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


Gateway Configuration

Method 1: Connect via ChirpStack Gateway Bridge

Milesight gateways have 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.

Note: this method only works with ChirpStack V3. If you need to connect to ChirpStack V4, please use Method 2: Connect via Semtech UDP Packet Forwarder.

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_V3 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.


 

Chirpstack_V4 Configuration

Before adding gateway to Web GUI, please follow step 1&2 to modify the ChirpStack configuration file to match the correspond Gateway frequency region. 

1. Go to /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml, locate to  [integration.mqtt] section, add region prefix in the topics.


2. Go to /etc/chirpstack/chirpstack.toml, locate to [network] section, choose and uncomment the correspond enabled regions.

The region_[frequency].toml file have defined the channel and mqtt topic.

 

3. Go to ChirpStack Tenant->Gateways->Add Gateway, then fill in the Gateway Name and Gateway ID/EUI(can get it in Gateway Packet Forward page) , click Submit to add the gateway.

 

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



--END--