i want to determine Is there a RSU at a junction? Is a method or a way to achieve my goal?
Can any one please helpe me.
Veins 4.4 offers a function to get a list of all junctions and, for each of those, a function to get a junction's position. This should allow for a good approximation of whether an RSU can serve a junction.
If you want to be more precise, you would need to know the junction's exact geometry. It is known to SUMO (though not yet exposed via the TraCI API), but you can easily extend the API by a function to do this yourself.
Related
I am using Omnet++ 5.3, veins 4.7.1 and Sumo 0.32.0. I want to set weights to the edges in SUMO. Having done some reading, I realise that traci has a function called seteffort in the python version. I am unable to find a similar function to set weights in traci present in the veins version used for omnet++. Any help to achieve the task is appreciated. Thank you!
It is certainly possible to extend Veins by adding new methods to https://github.com/sommer/veins/blob/veins-5.0/src/veins/modules/mobility/traci/TraCICommandInterface.h following the code that is already there.
The specific method you mentioned, however, might not be a good idea: it is meant to change how every vehicle in the network perceives it. You might be more interested in changing how only a single vehicle chooses its route.
I wanted to compare the energy consumption of directional vs omnidirectional antennas in WSN specifically. Couple of questions:
1-) How the direction of the incoming signal determined? In which parameter the nodes (both sender and receiver) can store it? simply I need to find out the signal's coming angle if possible. I guess there is sth in Castalia related to that.
2-) The coordinator node's coordinates should be specified, isn't it?
3-) Any tutorial on the Battery depletion models for Castalia?
4-) If I just accept/transmit signals from/to a certain direction (with higher gain) can this be regarded quick-dirty directional antenna? How can this be done?
5-) I need more examples on these, especially on 802.15.4 stuff.
Sorry just a beginner in Castalia...
Thanks...
There is no directional signal propagation model in Castalia, so you can't use Castalia for your purposes. You could built that model for Castalia, but this is a huge task.
There is no connection between the directionality of signal (physical layer) and the MAC protocol used (MAC layer). I am not sure why you are asking about it.
The battery model is yet another topic (note: it's better not to ask multiple unrelated questions within a StackOverflow question). Castalia's battery depletion model is a the most simple one: linear depletion. Other people have built more advanced models but I am not sure they are publicly available.
I need to build a scenario from scratch.
Two vehicles moving on a straight road. There is a single rsu.
The rsu brodcasts the speed value every 10s. Vehicles should slow down to reach that value.
My question is
can i consider the msg as a beacon? If yes, how can i set the beacon msg in the rsu application? And if no, how to implement such scenario
You can have a look at the following answered questions, since they are somewhat similar to your question or at least give you some insight in how messages between vehicles are handled in Veins.
Please note that you should get a basic understanding of how OMNeT++ works first. You can use the TicToc tutorial to do that.
how to getting start to build a veins application
what policy is based vehicle rerouting in case of accident?
What exactly does handleParkingUpdate() do?
The necessity of handleSelfMsg in BaseWaveApplLayer
I'm using veins 4.4, OMNeT++ 5.0 and SuMO 0.25, and my project is about intersection traffic control.
I have only one obstacle (building) on my map (by open street map), and my problem is that node 1 is not receiving messages from node 2 and vice versa while in other lanes communication is done perfectly without missing messages.
I think the problem is because of this obstacle. Can anyone help me to get rid of this problem?
The obstacle (which is likely representing a house next to a junction) is behaving as it should: it is obstructing radio communication. There are two ways to approach this: either this is intended, then you would need to design a system that can route data around the house in a multi-hop fashion; or this is unintended, then you would need to remove the building or its effect on radio communication.
If you do not want to have a building in your simulation, make sure that your simulation does not load the Obstacle Shadowing Model. If you load this model but no obstacles, the simulation will complain.
I have a simple traffic light intersection in which I have already set the traffic light logic. Suppose the vehicle density is increasing in one road and I want to retrieve this data in Omnet and use the C++ logic to direct the traffic lights to change state. Is it possible to do this in Omnet++?
In short I am looking to control the traffic using the network information obtained by running SUMO and coupling through SUMO. Is it possible to control the traffic through Omnet++? If yes, then can you tell me an example of how to do so?
Veins already includes some TraCI commands to retrieve the state of a SUMO simulation, as well as to change traffic lights. SUMO includes many more TraCI commands which should be able to do what you describe. You would just need to implement them in Veins as well, building on what is already there.