Rapidly Establishing a Local LoRaWAN Network Using LoRaWAN Gateways
LoRa modulation is a low-power, wide-area network communication technology, based on spread spectrum technology, developed by Semtech. LoRaWAN is a set of communication protocols and system architecture designed for long-range communication networks using LoRa technology. It functions as the Media Access Control (MAC) layer protocol.
In the entire process, LoRaWAN serves as the MAC layer, while LoRa modulation serves as the physical layer.
The primary advantages of LoRaWAN networks include low cost, wide-area coverage, and low power consumption, along with numerous open-source platforms for use. This article provides a brief overview of how to quickly set up a local LoRaWAN network using Ebyte E890-470LG11 and E78-470LN22S gateways with the open-source server platform Chirpstack.
Introduction to Chirpstack Server and Setup
Chirpstack is a multi-component, easy-to-deploy open-source server and the most widely used LoRaWAN server. For this installation, we'll use Ubuntu 22.04. You'll need to install the necessary software, including git and vim, if not already installed.
- Environment Setup: Install the required software, including Docker Compose, on an Ubuntu 22.04 server.
- Get ChirpStack Files: You can obtain the ChirpStack server files either by directly downloading them from GitHub and copying them to your server or by using Git to clone the ChirpStack Docker project.
- Navigate to the Project Folder: Use the 'cd' command to move into the ChirpStack Docker project folder.
- Run Docker Compose: Run the 'sudo docker-compose up' command to start deploying the server. This will download the necessary environment components and start the server.
- Handle Docker Error: If you encounter a Docker error during download, you can try editing the '/etc/hosts' file to add an IP address mapping for the Docker registry. After making the edit, restart the Docker service and attempt 'sudo docker-compose up' again.
- Modify Server Configuration: Use a text editor to modify the ChirpStack server configuration file ('chirpstack.toml') to add support for specific regions or configurations as needed.
- Access the Server: After successfully starting the server, you can access it by opening a web browser and navigating to 'localhost:8080' to reach the server login page.
- Web-Based Configuration: To configure gateways and nodes, ensure that your computer and gateways can connect to the server. Configure your gateways with the appropriate settings, and set up nodes for communication.
To access the server login interface via a web browser, simply enter "localhost:8080" into the browser's address bar.
Web Configuration of Gateways and Node Communication
Ensure that your computer and gateway can connect to the server. For a local server, ensure that your computer, E890 gateway, and server are in the same network segment. For a public server, ensure that your computer and E890 gateway can connect to the internet.
-
Web Configuration
Open a web browser and enter your server's IP address followed by port 8080. The default username and password are both "admin." Be sure to change the password when first using the interface.
-
Generate Server, Gateway, and Node Information
-
Generate Server Information:
- Click "Regions" to see the supported regions on the server.
- Click on your region, e.g.,
cn470-0
, to view details.
-
Generate Gateway and Node Information:
- Click "Gateways" in the left sidebar, and then click "Add gateway" in the upper right corner to create a gateway.
- Select "E890" as the gateway type, fill in the gateway ID (you can also generate an ID), and configure other parameters. Each server must use a unique gateway ID.
- Click "Submit" to create the gateway.
-
Open your Wi-Fi settings, connect to the Wi-Fi network broadcast by the gateway (e.g., EBT-E890-XXXX). The default IP is 192.168.10.1, and the password is "root." Change the IP address to match the server's IP address.
Set the gateway frequency band according to the server's configuration file (e.g., cn470_0
).
Click "Save and Apply," and you will see the gateway LINK LED light up, indicating that the gateway is connected to the server.
Generate Nodes and Perform Communication Testing
-
- Create a device profile and specify the parameters that match your node's frequency band and LoRaWAN version (e.g., E78-470LN22S uses
470_0
and LoRaWAN version 1.0.2-B). - Enable OTAA mode and Class C.
- Create an application and add a device with the required DevEUI.
- Generate an APPKEY.
- Apply the settings to create the node.
- Create a device profile and specify the parameters that match your node's frequency band and LoRaWAN version (e.g., E78-470LN22S uses
Use AT commands as per the E78 manual to configure the node's network information and request network access.
At this point, you have successfully set up a LoRaWAN network composed of E890, E78, and Chirpstack server.
Conclusion
Using Chirpstack and E890 and E78 devices allows you to rapidly deploy a LoRaWAN network, making it advantageous for projects that require quick development. Additionally, by utilizing
More Application-Related Electronic Components

1N2820B
Zener Diode Regulator 1N2820B

1N5820
Rectifier Diode Schottky 20V 3A 2-Pin DO-201AD

1SMB33CAT3G
TVS Diode Single Bi-Dir 33V 600W Automotive 2-Pin SMB T/R

25RIA120
25RIA120: TO-208AA Silicon Rectifier Diode, Rated at 25 Amps and 1200 Volts

2N3735
Trans GP BJT NPN 50V 1.5A 1000mW 3-Pin TO-39 Box

2N3715
Versatile bipolar junction transistor suitable for a wide range of electronic circuits

2N5339
Robust construction for reliable performanc

2N6251
Ideal for switching and amplification circuits requiring low saturation voltage
READ ALSO
-
The Driving Force of Efficiency and Performance: Miniaturized Interconnect Solutions Date: 18/09/2024
From sleek smartphones to complex medical devices, various industries demand smaller, more efficient, and more powerful interconnect devices. Why is miniaturization so important? And which industries place the most emphasis on these advancements?
-
In-Depth Analysis of Limited Phone WiFi Connection: Causes and Comprehensive Solutions Date: 25/07/2024
This article aims to deeply analyze the causes behind this phenomenon and provide a series of practical solutions to help you easily restore and optimize your network connection.
-
Rapidly Establishing a Local LoRaWAN Network Using LoRaWAN Gateways Date: 26/09/2023
LoRa modulation is a low-power, wide-area network communication technology, based on spread spectrum technology, developed by Semtech. LoRaWAN is a set of communication protocols and system architecture designed for long-range communication networks using LoRa technology. It functions as the Media Access Control (MAC) layer protocol.