To import Veins & Sumo packages in omnet++ we have shared the steps that are included. Veins Framework is a free simulation tool that works with OMNeT++ and SUMO (Simulation of Urban Mobility) to create models of vehicle networks, especially focusing on Vehicle-to-Vehicle (V2V) and Vehicle-to-Infrastructure (V2I) communication. It helps researchers understand how vehicles interact on the road and how they connect with wireless networks, making it a valuable resource for studying Intelligent Transportation Systems (ITS). With Veins, users can simulate realistic vehicle movements using SUMO and combine them with detailed network simulations in OMNeT++. This combination allows for the exploration of different factors in vehicular networks, like how traffic conditions affect communication quality, the success of safety applications, and the development of new communication protocols for vehicles. We also guide you with best project ideas.
Notify the steps that are required for the installation of Veins Framework.
PRE-REQUISITES:
Screenshot:
2.OMNET++ 5.6.2 Installation:
Screenshot:
Framework importation:
Screenshot:
2.Download the INET Framework:
Next, we need to download the INET Framework version 4.2.2 from the below link.
Link: https://github.com/inet-framework/inet/releases/download/v4.2.2/inet-4.2.2-src.tgz
Screenshot:
3.Download the Veins Framework:
Next, we need to download the Veins Framework version 5.2 from the below link.
Link: https://veins.car2x.org/download/veins-5.2.zip
Screenshot:
4.Download the Sumo Framework:
Next, we need to download the Sumo Framework version 1.8.0 from the below link.
Link: https://sourceforge.net/projects/sumo/files/sumo/version%201.8.0/sumo-win64-1.8.0.zip/download
Screenshot:
Screenshot:
Finally Extract the Sumo using WinRAR by clicking Extract Here and Extraction process Completed.
5.Import Framework in Omnet++:
Next, we need to import the INET Framework in the OMNET++ IDE. First of all, Click File button at the top of the Omnet++ IDE, you can see the Import Option in the File Dialog and Click it.
Screenshot:
Then Click General option and you can see the dropdown option, then click Existing Projects into Workspace and Finally Click Next Button to proceed to next process.
Screenshot:
Here, we need to Click the Select archive file option, Browse to the INET Framework Downloaded File and Click Finish Button to complete the INET Framework Import Process.
Screenshot:
Screenshot:
Here You can see the INET Framework Imported Successfully as “inet” in the OMNET++ IDE.
Screenshot:
Here, we need to import Veins Framework so proceed previous steps for Import Options and Click the Select archive file option, browse to the Veins Framework Downloaded File and Click Finish Button to complete the Veins Framework Import Process.
Screenshot:
Screenshot:
Screenshot:
Here, you can see the Veins Framework Imported Successfully as “veins” related folders in the OMNET++ IDE.
6.INET 4.2.2 Building Process:
Next, we need to build the inet folder to make INET Framework to work in the OMNET++ 5.6.2 IDE. Right Click the inet folder and Click the Build Project Option to build the Inet Framework.
Screenshot:
Screenshot:
Screenshot:
Screenshot:
Here We successfully built and imported the INET Framework in the OMNET++ IDE.
7.Veins Building Process:
Next, we need to build the Veins related folders to make Veins Framework to work in the OMNET++ 5.6.2 IDE. Right Click the Veins Related folders and Click the Build Project Option to build the Veins Framework.
Screenshot:
Screenshot:
Screenshot:
Screenshot:
Here We successfully built and imported the Veins Framework in the OMNET++ IDE.
Note: In case, If Got Some Error Related to Inet or Project Reference, then Right Click the both Veins Related folder and click Project Reference in Properties and check the inet Folder.
8.Executing the Example Veins Framework Program:
Firstly, You need to launch Sumo using following command in terminal and change directory as per your preference. Here we have done all process in E Drive.
Screenshot:
Then we need to run the Example Veins Framework program to view output of the program. Firstly, we need to locate to the “/veins/examples/veins” to find the example program in the veins Folder.
Screenshot:
Next click the “omnetpp.ini” file and Configuration of the example Veins Program.
Screenshot:
Next, Right Click the omnetpp.ini file, click the Run As and then Click the OMNeT++ Simulation.
Screenshot:
If you got any prompt, then Click the OK button to build and Simulate the Example program.
Screenshot:
Screenshot:
Click the Any Configuration in the Omnet++ Ide to select the Configuration for the Example Program Simulation.
Screenshot:
Click the Run Button in the Omnet++ Ide to simulate the Example Program.
Screenshot:
Screenshot:
Screenshot:
Simulation Completed Successfully Using the Veins Framework Example.