VANET-mobility-model-master

所属分类:通讯编程
开发工具:Python
文件大小:417KB
下载次数:6
上传日期:2019-03-20 21:19:13
上 传 者enchanting
说明:  基于车载网络通信的仿真代码,主要实现了速度等信息的交换
(Based on the simulation code of vehicle network communication, the exchange of speed and other information is realized.)

文件列表:
Car.py (3559, 2015-06-07)
Model.py (24611, 2015-06-07)
Model_2.2.py (10401, 2015-06-07)
Model_2.py (7492, 2015-06-07)
Plots (0, 2015-06-07)
Plots\100m Range (0, 2015-06-07)
Plots\100m Range\Average num of neighbors.png (60111, 2015-06-07)
Plots\100m Range\Same com neighbors.png (74357, 2015-06-07)
Plots\100m Range\same 3 neihbors.png (81612, 2015-06-07)
Plots\50m Range (0, 2015-06-07)
Plots\50m Range\Average_number_of_neighbors.png (44668, 2015-06-07)
Plots\50m Range\Same_neighbors_for_10s.png (51652, 2015-06-07)
Plots\50m Range\Time_with_same_3_neighbors.png (53074, 2015-06-07)
VANET Communication Depiction (0, 2015-06-07)
VANET Communication Depiction\V2I_Communication.png (38155, 2015-06-07)
VANET Communication Depiction\V2V_Communication.png (33946, 2015-06-07)
__pycache__ (0, 2015-06-07)
__pycache__\Car.cpython-34.pyc (1980, 2015-06-07)
__pycache__\Model.cpython-34.pyc (1131, 2015-06-07)

# VANET-mobility-model The project demonstrates the effectiveness of VANET as the future of vehicular networking. The project is composed of two parts - the first part shows the communication properties between VANET neighbors, such as average number of neighbors at different lane densities, the number of neighbors a car can maintain and for how long and the second part demonstrates V2I and V2V communications graphically. The simulations were developed using python 3 along with matplotlib, numpy and scipy modules. ## Running the Code: ## Part I: 1. Make sure the Car.py and Model.py files are in the same folder. 2. To start running the code, you can use the command “python3 Model.py” on the terminal. 3. Before the code starts running, the user will be asked to select a communication range (50m or 100m), and the number of iterations that the user desires. Note that the each iteration accounts for a 100ms of vehicular simulation, if ten minutes are desired, the user should input 6000 iterations. Then the code will execute 10 minutes of simulation 5 times. ## Part II (V2V Communication): 1. To simulate the V2V communication, run the file Model_2.py using the command “python3 Model_2.py”. 2. When the grid is shown, place 2 points to create the first line (road). Then place 2 more points to create the second line (road). Make sure the second line intersects the first line. 3. After the 2 lines are drawn, the simulation starts with 3 cars. When the cars are within 100m of each other, a connection (green line) is shown between these cars indicating that they are in communication range. ## Part II (V2I Communication): 1. To simulate the V2I communication, run the file Model_2.2.py using the command “python3 Model_2.2.py”. 2. The user is asked to select the number of Road Side Units (RSUs). The number of RSUs can be between 1 and 3. 3. Once the number of RSUs is entered, the grid will show up. Place 5 points on the grid to create a path representing 4 roads. 4. After the path is drawn, place the required number of points indicating the number of RSUs. 5. Then a car will start moving on the path and when it reaches 100m within any RSU, a connection (green line) is shown between the car and that RSU indicating that the car is within the communication range of that RSU. The path where the car is within the communication range of an RSU is highlighted in green.

近期下载者

相关文件


收藏者