
How to Build a Private LoRaWAN Network with ChirpStack & Robustel R1520LG Industrial LoRaWAN Gateway
|
|
Time to read 10 min
|
|
Time to read 10 min
Building a Private LoRaWAN Network offers unparalleled control, security, and cost-efficiency for industrial IoT applications.
This comprehensive guide provides a step-by-step walkthrough of how to deploy a secure and scalable Private LoRaWAN Network using ChirpStack, the leading open-source LoRaWAN Network Server, and Robustel’s R1520LG Industrial LoRaWAN Gateway . We will cover the core components, the significant benefits of this powerful integration—including zero recurring cloud costs, full data sovereignty, and ultra-low latency—and its applications in smart metering and environmental monitoring.
By following this guide, you'll have the knowledge to deploy a robust, production-ready Private LoRaWAN Network for your demanding IoT projects.
The Internet of Things (IoT) is fundamentally transforming industries by enabling smart, data-driven solutions through advanced technologies. Among these, LoRaWAN (Low-Power, Wide-Area Network) stands out as a leading protocol designed for long-range, low-power communication. As organizations increasingly deploy connected devices for mission-critical operations, the need for secure, reliable, and cost-effective connectivity has grown. This has fueled the adoption of the Private LoRaWAN Network .
Unlike public networks managed by telecom operators, a Private LoRaWAN Network gives an organization complete control over its infrastructure, data, and security policies. This is particularly vital in industrial settings where data sovereignty and network reliability are non-negotiable. According to a recent report by MarketsandMarkets, At a Compound Annual Growth Rate (CAGR) of 32.4% over the course of the projection period, the size of the global LoRa and LoRaWAN IoT market is expected to increase from USD 8.0 billion in 2024 to USD 32.7 billion by 2029. This explosive growth underscores the global demand for independent and scalable IoT solutions. This guide will show you exactly how to create your own Private LoRaWAN Network by detailing the integration of the open-source ChirpStack server with Robustel’s R1520LG, which is an Industrial LoRaWAN Gateway with Edge Computing capability. For a deeper dive into the protocol itself, see this overview of LoRaWAN Technology.
ChirpStack is a complete, open-source LoRaWAN Network Server stack. It provides all the necessary components to manage gateways, authenticate devices, route data, and integrate with your end applications. Because it's open-source, it allows for deployment on your own hardware (like the R1520LG or a server), giving you full control over your Private LoRaWAN Network . Its enterprise-grade features and adherence to industry standards make it a top choice for professional deployments.
Its core components include:
For detailed documentation, the official ChirpStack website is an invaluable resource. Understanding these components is the first step to building your Private LoRaWAN Network.
The Robustel R1520LG is Robustel’s next-generation indoor Industrial LoRaWAN Gateway , specifically optimized for building a reliable and high-performance Private LoRaWAN Network . Its industrial-grade design ensures it can operate in demanding environments, while its powerful hardware provides the foundation for both LoRaWAN communication and edge computing tasks.
Robustel R1520LG: Industrial LoRaWAN Edge Gateway
Feature Category |
Specification |
System |
|
CPU |
ARM Cortex-A7, 792 MHz (NXP i.MX6ULL) |
RAM |
512 MB DDR3 |
Storage |
8 GB eMMC |
Indicators |
LED for LoRa, RUN, MDM, USR, WLAN, RSSI |
LoRaWAN Interface |
|
Frequency Bands |
EU868 / AU915 / US915 (Region-dependent) |
Channels |
Up to 8 concurrent channels |
Chipset |
Semtech SX1302 |
Transmit Power |
Max +25 dBm |
Receiver Sensitivity |
Down to -140 dBm |
Antenna |
1 x RP-SMA Connector |
Network Connectivity |
|
Cellular |
Modem: 4G LTE Cat 4 (Worldwide Frequencies) SIM: 2 x Mini SIM (2FF), Dual SIM Failover Antennas: 2 x SMA Connectors |
Wi-Fi |
Standard: 802.11 b/g/n, 2.4 GHz Modes: Access Point (AP), Client Antenna: 1 x RP-SMA Connector |
Interfaces |
|
Ethernet |
2 x 10/100 Mbps, RJ45 (ETH0 supports PoE PD - IEEE 802.3at) |
Serial |
1 x RS232, 1 x RS485 |
USB |
1 x USB 2.0 Host (Type-A) |
Power & Physical |
|
Input Voltage |
9 to 60 VDC (3.5mm Pitch Terminal Block or via PoE PD) |
Power Consumption |
~1.5W (Idle @ 12VDC), ~10W (Max @ 12VDC) |
Housing |
Plastic (PC + ABS) |
Protection |
IP30 |
Dimensions |
105 x 90 x 46 mm |
Weight |
238.5 g |
Installation |
DIN-Rail, Wall Mount, Desktop |
Environmental |
|
Operating Temperature |
-20°C to +60°C |
Storage Temperature |
-40°C to +85°C |
Relative Humidity |
5% to 95% (non-condensing) |
Certifications |
|
Regulatory |
CE, UKCA, RCM, FCC |
Environmental |
RoHS 2.0, WEEE |
Software |
|
Operating System |
RobustOS Pro (based on Debian 11 with LTS), Docker support |
LoRaWAN |
V1.04 Class A/B/C, Built-in ChirpStack LNS, Packet Forwarder mode |
Key Software Support |
Node-RED, MQTT, Modbus (RTU/TCP), OPC UA, BACnet, DNP3, IEC101/104 |
Cloud Integration |
Native MQTT for AWS, Azure, Aliyun; Fully compatible with RCMS |
Security Features |
IEC 62443-4-1 certified development, Penetration Tested, Automatic System Failback, VPN (IPsec, OpenVPN, Wireguard, etc.), Stateful Firewall |
SDK & Customization |
C, C++, Python, Java, Go, Node.js and more; ~6 GB Flash, ~256 MB RAM for user apps |
Management |
Web GUI, CLI, SMS, Robustel Cloud Manager Service (RCMS) |
With its modern 8-channel Semtech SX1302 LoRa concentrator, the R1520LG can handle a high density of devices, making it perfect for both initial deployments and large-scale expansions of your Private LoRaWAN Network.
Combining the ChirpStack stack with the Robustel R1520LG Industrial LoRaWAN Gateway offers significant advantages over relying on public networks or other solutions:
The versatility of a ChirpStack and R1520LG-based Private LoRaWAN Network supports a wide range of industrial and commercial IoT use cases:
Before starting your ChirpStack R1520LG integration, ensure you have the following:
By default, both ETH0 and ETH1 are in bridge mode. To use one as a dedicated internet uplink, follow these steps.
Bridge
→ Settings
.Submit
, then Save & Apply
.Network
→ WAN
→ Add New Interface
and configure as follows:WAN
Ethernet
eth1
External
DHCP

Interface
→ Cellular
→ Advanced cellular settings
and set the parameters according to your ISP's requirements (e.g., APN).Network
→ WAN
→ Link
and add a new link for cellular dial-up, selecting "Modem" as the link type.Before installing software, create sudo privileges via the web UI.
System
> User Management
> Sudo user
> Sudo User Settings
.Access the terminal via SSH and install the prerequisites:
Bash
sudo apt update sudo apt install mosquitto mosquitto-clients redis-server redis-tools postgresql
Set up the PostgreSQL database and roles for ChirpStack:
SQL
sudo -u postgres psql
create role chirpstack with login password 'chirpstack';
create database chirpstack with owner chirpstack;
\c chirpstack create extension pg_trgm;
\q
Add the ChirpStack repository and install the components:
Bash
sudo apt install apt-transport-https dirmngr -y
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
echo "deb https://artifacts.chirpstack.io/packages/4.x/deb stable main" |
sudo tee /etc/apt/sources.list.d/chirpstack.list sudo apt update
sudo apt install chirpstack-gateway-bridge
Next, edit the Gateway Bridge configuration file at
/etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml
to match your region (e.g., EU868):
[integration.mqtt] event_topic_template="eu868/gateway/{{ .GatewayID }}/event/{{ .EventType }}" command_topic_template="eu868/gateway/{{ .GatewayID }}/command/#"
Enable and start the ChirpStack services to bring your Private LoRaWAN Network online:
Bash
sudo systemctl start chirpstack
sudo systemctl enable chirpstack
sudo systemctl start chirpstack-gateway-bridge
sudo systemctl enable chirpstack-gateway-bridge
Verify the services are running correctly:
Bash
sudo systemctl status chirpstack
sudo systemctl status chirpstack-gateway-bridge
Navigate to your R1520LG's IP address on port 8080 (e.g., http://192.168.0.1:8080
). Log in with the default credentials (admin
/admin
) and change the password immediately for security.
LoRaWAN
> Device Profiles
to create a new profile for your device type.LoRaWAN
> Devices
to add your end devices, entering their DevEUI, AppKey, and other relevant information.The successful device join process for your Private LoRaWAN Network involves:
Building a Private LoRaWAN Network using ChirpStack and the Robustel R1520LG Industrial LoRaWAN Gateway is a powerful way to take full control of your IoT infrastructure. This approach offers significant advantages in cost, security, latency, and scalability, making it an ideal choice for serious industrial and commercial deployments. By following this guide, you have a clear roadmap to deploy a robust, professional-grade IoT solution tailored to your specific needs. To learn more about how Robustel's hardware can power your IoT projects, explore our full range of Industrial IoT Gateways.
A: Public LoRaWAN networks are operated by third-party service providers on a subscription basis, similar to a mobile phone network. A Private LoRaWAN Network , which you can build with ChirpStack and the R1520LG, is owned and managed entirely by you, offering greater control, security, and no recurring data fees.
A: ChirpStack is a leading open-source choice because it is highly customizable, feature-rich, and has strong community and commercial support. It allows you to build a powerful Private LoRaWAN Network without vendor lock-in and with full control over your infrastructure.
A: Yes. The R1520LG is a flexible Industrial LoRaWAN Gateway . While this guide focuses on ChirpStack for building a fully Private LoRaWAN Network , the gateway can be configured to work in "Packet Forwarder" mode, allowing it to forward LoRaWAN packets to virtually any network server, including The Things Network or AWS IoT Core for LoRaWAN.