Dear Márcio,
Glad to hear everything is working as it should!
Márcio Barbosa wrote:
> - I read somewhere in this group that Veins, being a part of (or closer
> to) MIXIM, currently don't allow me to use the TCP, UDP, and other
> resources available in INET. Is it true/accurate?
Version 3 alpha 3 of Veins is based on MiXiM, so it uses different
interfaces between modules than those in INET -- as well as different
modules for modeling mobility and the physical layer.
The next version of Veins will be based on INET again (which is in the
process of being modified to rely on MiXiM as well), so this will become
a non-issue.
In the meantime, I see two possible ways:
A) You can freely use modules from the INET Framework and from Veins 3
in the same simulation, but there is no easy way to connect modules from
one to the other: You will need to write a new module that allows
connecting the INET TCP module to the Veins WAVE MAC module.
B) Version 2.4.0 of The INET Framework includes many modules from Veins:
TraCI (coupling OMNeT++ and SUMO), Obstacles (modeling buildings
blocking radio communication), and Annotations (drawing lines etc on the
OMNeT++ canvas) have all been ported from Veins to INET. If you do not
need a WAVE communication stack, this might be sufficient to model your
scenario.
> - How can I implement my own application in a vehicular scenario? From
> what I've seen in veins 2.2 (I've tested both 2.2 and 3.a3), cars share
> some kind of message about accidents and also compute CO2 emission...
> Where were these things defined?
The Veins example uses an application layer module called
`TraCIDemo11p'. You can find its implementation in the main source tree.
For example, [1] is the line of code that sends a warning message after
a car was stopped for too long and [2] is the line of code that lets
other cars react to this warning message by avoiding a particular road.
If you have any more questions, I will be happy to help.
Best,
Christoph
[1]
https://github.com/sommer/veins/blob/veins-3a3/src/modules/application/traci/TraCIDemo11p.cc#L92
[2]
https://github.com/sommer/veins/blob/veins-3a3/src/modules/application/traci/TraCIDemo11p.cc#L52
--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/