Aldalbahias / VLC

We provide visible light communication (vlc) module that is implemented using NS3 to simulate large-scale vlc.Please refer to the doc directory for more details.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VLC

We provide visible light communication (vlc) module that is implemented using NS3 to simulate large-scale vlc.Please refer to the doc directory for more details.

If you do not have NS3 installed in your PC, please refer to the following link for installation:

https://www.nsnam.org/docs/release/3.24/tutorial/singlehtml/index.html Installation guide: https://www.nsnam.org/wiki/Installation (Follow the instructions for installation depending on which flavor of Linux you prefer)

Once an example script is made and compiles, to run this script it must be in the scratch directory: To get to this directory run the cmd: cd repos/ns-3-allinone/ns-3-dev/scratch (path is not fixed also it depends on which ns3 version you install)

NS-3 file documentation: https://www.nsnam.org/doxygen/index.html (gives an idead of ns3 classes structure)

Steps to install VLC module into NS3:

Prerequisites:

1-Having the NS3 environment installed and running in your linux environment

Installation:

  1. download .zip file of the vlc module

  2. open .zip file and you should see a simple folder named vlcnew

  3. enter that folder and you should see folders that mimic the ones in the repository

  4. Now, go into the terminal and build a skeleton module by typing "./create-module.py vlcnew" (please follow ns3 guidline on how to build new module)

  5. Find your NS3 file system and in the "src" folder there should be a "vlcnew" folder, open that and you should see similar folder names to that of the repository.

  6. you should delete those files as they will be replaced by the files downloaded from the repository

  7. Look back to where you unziped the downloaded repository files and copy and paste those folders and files into this newly made folder (do not copy the scratch folder)

  8. Now, start up the terminal and go to the ns-3-dev directory

  9. While in this directory build all the NS3 modules (if unsure use the installation guide to help, I use ubuntu and my command is ./waf build)

  10. It is optional to enable tests and examples but it should build regardless ( build will take sometimes! have your coffee ready!)

  11. now you can use the vlcnew-module in ns3 simulations

  12. as far as the error model and propagation model are concerned, they can be also put into the model folder of the module but propagation can also be added onto the propagation module that is native to ns3, just be sure to add everything to its respective wscript

//Running a script

  1. create a file a .cc file and follow the format that the example scripts use (in terms of laying out the script)

  2. move the file into the /scratch directory (must run any test from the scratch directory)

  3. to compile and run use the command "./waf --run scratch/your_file_name_without_.cc

About

We provide visible light communication (vlc) module that is implemented using NS3 to simulate large-scale vlc.Please refer to the doc directory for more details.

License:GNU General Public License v2.0


Languages

Language:C++ 98.2%Language:Python 1.8%