A LoRaWAN nodes' simulator to simulate a LoRaWAN Network.
LWN Simulator is a LoRaWAN nodes' simulator equipped with web interface. It allows to comunicate with a real infrastructure LoRaWAN or ad-hoc infrastructure, such as Chirpstack.

The project consists of three main components: devices, forwarder and gateways.
It receives the frames from devices, creates a RXPK object including them within and forwards to gateways.
There are two types of gateway:
Tip
A ChirpStack instance can be easily started using Docker. You can find the instructions [here](https://www.chirpstack.io/docs/getting-started/docker.html).
You can download from releases section the pre-compiled binary file.
The simulator is written in Go, so you must have installed Go on your machine.
Note
Windows users should install [GnuMake for Windows](https://www.gnu.org/software/make/) to use the makefile. If you use winget, you can install it with the following command: ```bash winget install GnuWin32.Make ```
Firstly, you must clone this repository:
git clone https://github.com/UniCT-ARSLab/LWN-Simulator.git
After the download, you must enter in main directory:
cd LWN-Simulator
You must install all dependencies to build the simulator:
make install-dep
Now you can launch the build of the simulator:
make build
The binary file will be created in the bin directory.
To run the simulator, you can:
./bin/lwnsimulator // for Linux
./bin/lwnsimulator.exe // for Windows
make run-release // if you use makefile
make run
The simulator depends on a configuration file (config.json) which specifies some configurations for the simulator:
{
"address": "0.0.0.0",
"port": 8000,
"metricsPort": 8001,
"configDirname": "lwnsimulator",
"autoStart": false,
"verbose": false
}
address: the address where the simulator will listen for incoming connections;port: the port where the simulator will listen for incoming connections;metricsPort: the port where the simulator will listen for incoming connections for metrics (Prometheus);configDirname: the directory where the simulator will store the configuration files;autoStart: if true, the simulator will start automatically the simulation;verbose: if true, the simulator will print more logs.More coming soon...
How to Install on Linux or WLS
How to use LWN Simulator with ChirpStack
Content type
Image
Digest
sha256:bfac64185…
Size
297.3 MB
Last updated
about 1 year ago
docker pull techblog/lpwan-sim