I am working on M3WSN(Mobile Multi-Media Wireless Sensor Network) simulator framework to be built on the OMNeT++ discrete event simulator for generic networks and adaptable to use with the Castalia simulator for Wireless Sensor Networks and Body Area Networks.
For this I assume you have installed Omnet++ (I am using version 4.6) and Castalia (I am using version 3.3) in Linux (Ubuntu 14.04). If not you can download and install from the link below:
Next is to RUN your Omnet++ IDE and do as follows:
- Create new empty Omnet++ Project:
- File -> New -> Omnet++ Project.
- Choose a project name (Eg: “castalia”) and click next.
- Select Empty project and click Finish
- Import the Castalia files:
- Right click on the new Omnet++ project (“castalia”) and select Import
- Select General -> File System. Then click Next
- Click Browse and search for your Castalia-3.3 directory (Root directory of the one you have downloaded and extracted) and click OK
- Click on “Select All” button and then Finish.
- You should now see the directory hierarchy under the project “castalia”
- Changing NED source folders:
- Right click the project (“castalia”) -> Properties.
- In the window that opens, expand OMNeT++ on the left side menu, and select “NED Source Folders”.
- Expand the project name and mark “Simulations” and “src” directories as NED Source Folders. Click OK.
- Edit the NED files in project folder(“castalia”) in main IDE:
- Navigate into the project (“castalia”) -> src
- Open SensorNetwork.ned file and select the “source” tab
- Add “.*” to the three import lines. You should end up with something like this: import wirelessChannel.*; import physicalProcess.*; import node.*;
- Save the file
- Now open src -> node -> Node.ned file and go to source tab
- Add “.*” at the end of the import mobility manager line. You’ll end up with this: import node.mobilityManager.*;
- Save the file.
Now you are done and should not see any errors. You can test it by running simulations under the Simulation folder.
Reference:
https://groups.google.com/forum/#!topic/castalia-simulator/yUFddPDMhdQ
Leave a comment