VANET Toolbox: A Vehicular Network Simulator based on DES

Version 2.2.1 (3.43 MB) by Le Wang
The simulator, VANET Toolbox, currently support V2V communication with lane changing, car following activities. V2I is under development.
3.5K Downloads
Updated 10 Jan 2020

View License

Note:
2019-12-30 update: add R2019b version. Fix version comparability issue. No new features added.

1. The 1st time running may take several minutes to initiate. It is normal, as MATLAB/Simulink is performing C code generation in order to accelerate the execution speed. Once the code generation is finished, the Simulink model or library will open, and next time it won't take too much time.

2. VANET_Toolbox r2018a will be removed in future release.

The vehicular network simulator, VANET toolbox, is a Simulink library. The library contains major vehicular network layers, APP layer, MAC layer, and the PHY layer.

APP layer is responsible for message generation and vehicular mobility models. Currently, APP layer generates messages including Basic Safety Message (BSM) and Lane Changing Message. The mobility models include the car-following model (CFM) and lane-changing model (LCM), thus users can simulate braking and changing lane behaviors.

MAC layer implemented Enhanced Distributed Channel Access (EDCA) according to IEEE 802.11p. The messages entity 0from APP layer is converted into frame entity, experience channel contention period and sent to PHY layer as waveform entity. On the other hand, the waveform received from the PHY layer is converted into payload and sent to the APP layer. The MAC layer also supports Relible Data Transmission (RDT), i.e., DATA-ACK.

PHY layer includes a two-ray ground reflection model and an AWGN channel based on WAVE/DSRC standards. The Tx/Rx and AWGN are developed based on IEEE 802.11a and implemented by WLAN system toolbox.

VANET library also includes a vehicular object, which consists APP, MAC and PHY layer. In order to simulate V2V communication, users should include at least two 'vehicle' blocks, a 'channel' block and a 'control panel' block. Some Simulink demos are provided.

VANET toolbox provides a basic GUI for users to conduct simulations in batches. To open the GUI, type 'vanet' in MATLAB command window and tune up the necessary parameters.

GUI only has limited options, while the Simulink model is limited in a large-scale simulation. In order to simulate with all tunable parameters in large scale, simulations need to be created by MATLAB script. Please refer to 'simLC.m' for more details.

https://www.youtube.com/watch?v=wIohwbSk68I&t=47s

The required MathWorks Products includes:
MATLAB;
MATLAB Coder;
Simulink;
Simulink Coder;
SimEvents Toolbox;
WLAN System Toolbox;
Communications System Toolbox;
DSP System Toolbox.

Cite As

Le Wang (2024). VANET Toolbox: A Vehicular Network Simulator based on DES (https://www.mathworks.com/matlabcentral/fileexchange/68437-vanet-toolbox-a-vehicular-network-simulator-based-on-des), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018a to R2018b
Platform Compatibility
Windows macOS Linux
Categories
Find more on System-Level Simulation in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

VANET_Toolbox/VANET_Toolbox_2018a

VANET_Toolbox/VANET_Toolbox_multiChannel_2018b

VANET_Toolbox/VANET_Toolbox_multiChannel_2019b_release

Version Published Release Notes
2.2.1

attach 19b version

2.2.0

Update to support R2019b

2.1.1

Add note

2.1.0

1. fix R2019 codegen error
2. add switch for CCH_extension period option
3. multichannel role selection (provider or user)

2.0.3

Redesign multichannel operation on WME DES

2.0.2

Add tutorial video of VANET Toolbox from youtube.

2.0.1

1. Fix bug on intersection traffic;
2. Provide 'multi-channel' beta to VANET_Toolbox r2018b version.

1.1.4

VANET Toolbox is no longer supporting MATLAB r2017b.

1.1.3

Update VANET Toolbox to run in MATLAB R2018b;

1.1.2

Optimize performance on macOS

1.0.0