how to create module in veins for simulation the vanet

796 views
Skip to first unread message

fekair mohammed

unread,
Oct 2, 2014, 11:11:06 AM10/2/14
to omn...@googlegroups.com

Hello

 i want to create module in veins for connect between two cars by its NIC 802,11p where i create a folder sub Modules in veins named Mytest , inside this i create File NED for defined network description i import module nic80211p and i create other module named Netwreklayer and i connect them by its gates :

                         networkLayer.lowerLayerOut --> nic80211p.upperLayerIn;

                                networkLayer.lowerControlOut --> nic80211p.upperControlIn;

                                nic80211p.upperControlOut --> networkLayer.lowerControlIn;

                                 nic80211p.upperLayerOut --> networkLayer.lowerLayerIn;

My question is for how to create vanet simulation between cars by use sumo and its c++ file

 

file networklayer.ned

module NetworkLayer

{

    gates:

        input upperLayerIn; // from upper layer

        output upperLayerOut; // to uppe layer

        input upperControlIn; // control from upper layer

        output upperControlOut; // control to upper layer

        input lowerLayerIn; // from lower layer

        output lowerLayerOut; // to lower layer

        input lowerControlIn; // control from lower layer

        output lowerControlOut; // control to lower layer

}

 

File car.ned

 

package org.car2x.veins.modules.Mytest;

import org.car2x.veins.base.modules.BaseMobility;

import org.car2x.veins.modules.nic.Nic80211p;

import org.car2x.veins.nodes.Car;

 

 

//

// TODO documentation

//

module CarFekair

{

    types:

    submodules:

        nic80211p: Nic80211p {

            @display("p=150,163");

        }

        networkLayer: NetworkLayer {

            @display("p=149,50");

        }

    connections:

        networkLayer.lowerLayerOut --> nic80211p.upperLayerIn;

        networkLayer.lowerControlOut --> nic80211p.upperControlIn;

        nic80211p.upperControlOut --> networkLayer.lowerControlIn;

        nic80211p.upperLayerOut --> networkLayer.lowerLayerIn;

}

 

Please help me; i ‘am beginner in simulators omnet++

 

Christoph Sommer

unread,
Oct 5, 2014, 10:41:03 AM10/5/14
to omn...@googlegroups.com
fekair mohammed wrote:
> Please help me; i ‘am beginner in simulators omnet++

The Veins tutorial has all the necessary information to run a basic
simulation of a vehicular network. A high level overview of Veins is
given in the Veins documentation. The next steps depend on what you want
to do.

For creating own simulations, you will need to learn how to use OMNeT++.
Excellent tutorials, videos, and a comprehensive user manual are
available on the documentation pages on the OMNeT++ website.

If you know how to use OMNeT++ and want to write custom simulation
modules (e.g., for new applications), you might find an API documenation
of the Veins simulation module library helpful. It can be created from
the IDE, by clicking Project > Generate NED Documentation..., or from
the command line, by running make doxy. To start reading the module
documenation, open doc/index.html in your browser.

If you use one of the available road traffic scenarios, there is no need
to learn much about SUMO. If you want to run your simulations on custom
road maps, you will need to learn how to use SUMO, though. SUMO comes
with an excellent tutorial (Hello SUMO) and an extensive online user
manual, available on the documentation pages on the SUMO website.

If you want to implement new TraCI commands for interacting with (or
getting data from) the running road traffic simulation, the SUMO TraCI
documentation has a list of available commands.

For more information, please refer to the Veins FAQ at
http://veins.car2x.org/documentation/faq/

Best,

Christoph

--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/

fekair mohammed

unread,
Oct 15, 2014, 3:18:16 PM10/15/14
to omn...@googlegroups.com
Thnaks a lot Christoph, it helped me a lot

sarah

unread,
Jul 27, 2015, 5:32:23 AM7/27/15
to OMNeT++ Users, som...@ccs-labs.org
Hello M.Sommer, 
I tried to generate the index.html file, but I can not. From the IDE, when I click on Project> Generate Documentation NED, nothing happens, I also tried from the mingw > make doxy, but when I try to open the doc/index.html file, it shows: page not found. thank you to bring me your help


Reply all
Reply to author
Forward
0 new messages