This project simulates pollution monitoring in Jakarta using OMNeT++.
- Open OMNeT++ IDE
- Import this project using File > Import > Existing Projects into Workspace
- Right-click on the project in Project Explorer
- Select "Run As" > "OMNeT++ Simulation"
- Choose the "General" configuration and click "Run"
To run the simulation from the command line, use:
cd /path/to/omnetpp-6.1
source setenv
cd samples/PollutionMonitoring
opp_run -m -u Qtenv -c General -n "src;."
If you encounter "network not found" error, make sure:
- The package names in the NED files are consistent with the directory structure
- You have the correct path set with the -n option
- Pollution monitoring with 4 categories (BAIK, SEDANG, TIDAK SEHAT, SANGAT TIDAK SEHAT)
- CSMA-based wireless communication protocol
- Simulates real-world sensor network for air quality monitoring
After running the simulation, check the following files in the simulations directory:
- CSMA_pollution_data_0.csv - Contains sensor readings with pollution categories
- CSMA_collision_data_0.csv - Records of network collisions