The initial version of this code was developed by SIGNET Lab at the University of Padova by the developer Davide Magrin and one of the contributors Qiu Yukang LoRaWAN LoRaWAN-Class-C
This is an ns-3 module that can be used to perform simulations of a LoRaWAN network.
First of all in order to run the simulations using this module, you need to install ns-3, and clone this repository inside the src
directory:
git clone https://github.com/nsnam/ns-3-dev-git ns-3
git clone https://github.com/adwise-fiu/LoRaWAN ns-3/src/lorawan
To compile, move to the ns-3
folder, configure and then build ns-3:
./waf configure --enable-tests --enable-examples
./waf build
Finally, make sure tests run smoothly with:
./test.py -s lorawan
Make sure the script returns that the lorawan test suite passed.
The module includes the following code:
LoraCenter
The code can be run via the ./waf --run LoraCenter
command.
The Simulation Setup is shown in the figure below:
- ns-3 tutorial
- ns-3 manual
- The LoRaWAN specification can be requested at the LoRa Alliance website