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
- Any Milesight LoRaWAN Gateway
- ChirpStack Server (server frequency should be the same as gateway and sensors)
ChirpStack v4 Integration
Gateway Configuration
Method 1: Connect via ChirpStack MQTT Forwarder
Milesight gateways have embedded ChirpStack MQTT Forwarder to integrate with ChirpStack v4 server.
Compatible Model:
- UG65/UG67: firmware version 60.0.0.43 and later
1. Disable Embedded NS and create a ChirpStack-V4 type network server.
2. Type the ChirpStack server address, select a region ID 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. Create a Semtech type network server.
2. Type the ChirpStackserver address and save the configuration.
3. Click Save&Apply to complete the gateway settings.
ChirpStack_V4 Configuration
1. Go to Tenant >Gateways to click 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.
ChirpStack v3 Integration
Gateway Configuration
Method 1: Connect via ChirpStack Gateway Bridge
Milesight gateways have embedded ChirpStack gateway bridge supports generic MQTT authentication (V3.5.0).
1. Disable Embedded NS and create a ChirpStack-Generic type network server.
2. Type the ChirpStack server 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. Create a Semtech type network server.
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 page and click +CREATE to add a gateway profile.
2. Go to Gateways page 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.
--END--