VANET simulation problem with Veins: Error in module (PhyLayer80211p)

897 views
Skip to first unread message

Ana María Orozco Idrobo

unread,
Apr 13, 2012, 5:52:54 PM4/13/12
to omn...@googlegroups.com
Good day all,

I am trying to simulate a VANET using my own scenario in omnet following the Veins example (Erlangen).

In SUMO I am using the "busses" configuration (.net and routes) with 3 vehicules, in Omnet
a using almost the same configuration files of the Veins example (omnetpp.ini, Car.ned, etc.)

I had the following problem after few seconds of the simulation:

** Event #2370  T=37.10495578078  Ejemplo6.node[0].nic.mac80211p (Mac80211p, id=12), on `{Radio switching over}' (cMessage, id=22)
Phylayer said radio switching is done
** Event #2371  T=37.10495678078  Ejemplo6.node[0].nic.phy80211p (PhyLayer80211p, id=11), on `{MacPkt including WSA}' (Mac80211Pkt, id=23)
node[0]::PhyLayer80211p: AirFrame encapsulated, length: 1598

<!> Error in module (PhyLayer80211p) Ejemplo6.node[1].nic.phy80211p (id=19) at event #2372, t=37.104956832399: Model error: ASSERT: condition senderPos.z > 0 false in function filterSignal, analogueModel/TwoRayInterferenceModel.cc line 35.

I don´t know where is the problem, i run the simulation step-by-step since event 2360 and in event 2372 Omnet crashes I think the problem is when node[1] gets the packet.

Any idea why is this happening?

Thanks in advance.

Ana María Orozco.



Christoph Sommer

unread,
Apr 14, 2012, 5:16:51 AM4/14/12
to omn...@googlegroups.com
Ana María Orozco Idrobo wrote:
> Model error: ASSERT: condition senderPos.z > 0 false in function
> filterSignal, analogueModel/TwoRayInterferenceModel.cc line 35.
>
> I don´t know where is the problem

Because of restrictions imposed by the overall framework the Two Ray
Interference model implementation [1] in Veins is using nodes'
z-position as the antenna height over ground.

You will need to configure nodes' mobility.z parameter in your
omnetpp.ini file, otherwise (if I recall correctly) it will be
initialized to 0 (meaning an antenna height of 0, which the Two Ray
Interference Model is complaining about).

Cheers,

Christoph


[1] http://veins.car2x.org/documentation/modules/tworay/

--
Dr.-Ing. Christoph Sommer
Institute of Computer Science
University of Innsbruck, Austria
Phone: +43 512 507-96835 / Fax: -9888
http://ccs.uibk.ac.at/~sommer/

Ana María Orozco Idrobo

unread,
May 30, 2012, 4:50:54 PM5/30/12
to omn...@googlegroups.com
Good day,

Thanks Dr. Sommer for your answer, but we still have the same problem even if we change the node (mobility.z) value to 1.895
as in Veins sample.

The message we got are the following:


Ejemplo6.node[0].nic.phy80211p (PhyLayer80211p, id=11), on `{MacPkt including WSA}' (Mac80211Pkt, id=23)
node[0]::PhyLayer80211p: AirFrame encapsulated, length: 1598

<!> Error in module (PhyLayer80211p) Ejemplo6.node[1].nic.phy80211p (id=19) at event #2372,
 t=37.104956832399: Model error: ASSERT: condition senderPos.z > 0 false in function filterSignal,
analogueModel/TwoRayInterferenceModel.cc line 35.

Thank you in advance.

Ana and Roger.

Ana María Orozco Idrobo

unread,
May 30, 2012, 5:30:18 PM5/30/12
to omn...@googlegroups.com

The map that we are using is a SUMO example (cuadra.sumo.cfg).
In addition, we tried the same simulation in the Erlangen scenario an it worked.

Do you know why there are problems with different maps?

Thanks.

Christoph Sommer

unread,
May 31, 2012, 9:50:27 AM5/31/12
to omn...@googlegroups.com
Dear Ana,

Ana María Orozco Idrobo wrote:
> The map that we are using is a SUMO example (cuadra.sumo.cfg).
> In addition, we tried the same simulation in the Erlangen scenario an it
> worked.

this sounds very strange. If you could send me (a link to) a scenario
that I could try out on my machine, I'll be happy to investigate.


Best,

Christoph

Ana María Orozco Idrobo

unread,
May 31, 2012, 11:37:38 AM5/31/12
to omn...@googlegroups.com
Good day,

Thank you Dr. Sommer for your time.

I am posting here the example that i had problem with .
[attached file: ejemplo6.rar]

Thanks in advance.

Regards,

Ana María.
ejemplo6.rar

Christoph Sommer

unread,
May 31, 2012, 12:38:14 PM5/31/12
to omn...@googlegroups.com
Dear Ana,

Ana María Orozco Idrobo wrote:
> we still have the same problem even if we change the node (mobility.z) value to 1.895
> as in Veins sample.
>
> condition senderPos.z > 0 false in function filterSignal, analogueModel/TwoRayInterferenceModel.cc line 35.
>
[...]
>
> I am posting here the example

In your omnetpp.ini file, you are setting ``world.use2D = true''.

This forces all nodes to be on a 2D plane (i.e., have a z position of 0)

Jeferson Thalheimer

unread,
Sep 3, 2012, 4:20:10 PM9/3/12
to omn...@googlegroups.com

Hello Ana Maria Orozco!
I'm doing my Final Work Course with the theme VANET, so I found this his example, and I downloaded to get an idea of ​​how the simulation is done. But I did not understand what the example is doing (functionality). I wonder if you or Christoph Sommer explain to me because I'm trying to understand the Simulator Omnet + + but I'm struggling. If they have any supporting material that I can look would be grateful!
Thank you for your attention
Jeferson Thalheimer

Ana María Orozco Idrobo

unread,
Sep 3, 2012, 4:50:30 PM9/3/12
to omn...@googlegroups.com
Hello Jeferson,

The example in Veins consists in simulate a Vehicle-to-Vehicle (V2V) communication, in which each node (car)  of the
network is advised with a WAVE Short Message (WSM) about an accident.

The first car (node[0]) has an accident and it broadcast this information through the VANET.

If you want to understant the  functionality, you should read the Omnet++ tutorial [1] and the Veins documentation [2].

Best regards,

Ana María. 

[1] Omnet++ documentation, http://www.omnetpp.org/documentation
[2] Veins documentation, http://veins.car2x.org/documentation/

--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
 
 



--
Ana Maria Orozco I.


Jeferson Thalheimer

unread,
Sep 5, 2012, 12:09:19 PM9/5/12
to omn...@googlegroups.com
What you described in the other comment is regarding the Veins Ejemplo6 or posted by you in a comment above?
I wonder if you could tell me briefly what function must each file within the file Ejemplo6.
From what I understand the "bus.launchd.xml" flame others who are files written in it. And what others do? (e.g. vehroutes.xml, net.net.xml, ejemplo6.ned, config.xml, car.ned, etc.).
Unless you need to give me a north to try to begin to understand. thank you
Jeferson Thalheimer

Ana María Orozco Idrobo

unread,
Sep 14, 2012, 4:56:42 PM9/14/12
to omn...@googlegroups.com
Sorry for the late.

I recommend you to start by understanding Omnet in general, and learn the use of the elements, what is a module, a component,
how the communicate, and so on. then you can run any simple example, so you can see the result on a simulation and the elements
again, the console outputs, the graphic interaction between node, etc...

and then you can simulate the Veins example, each the name of the scenario is Erlangen.

and you will see some nodes sending a broadcast when the node[0] had an accident in the road. (you will see green circles and the airframes going between nodes)

for sumo, you don't need a lot of tutorial, just need to know how it works in general, that is why there's a lot of xml files in the example.
those tell sumo the information of the realworld map, such as traces, coordinates, etc...

good luck!

Ana María.

--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
 
 

mouradb...@gmail.com

unread,
May 10, 2018, 6:01:14 AM5/10/18
to OMNeT++ Users
dear sommer i want to start my veins example with 50 vehiculs in time=0.can you tell the methods to implement that
thank you dear

Christoph Sommer

unread,
May 10, 2018, 9:39:31 AM5/10/18
to omn...@googlegroups.com
mouradb...@gmail.com wrote:
>
> dear sommer i want to start my veins example with 50 vehiculs in time=0.can you tell the methods to implement that
>

How to change road traffic is one of the frequently asked questions <http://veins.car2x.org/documentation/faq/>. In brief, vehicle movement is governed by SUMO. Its documentation has nice tutorials on creating custom road networks. When using this network in Veins, just make sure to list all required filenames in the .launch.xml configuration file of sumo-launchd. SUMO comes with an excellent tutorial (Hello SUMO) and an extensive online user manual, available on the documentation pages on the SUMO website.

Best,

Christoph

--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/

Reply all
Reply to author
Forward
0 new messages