Create and Visualize 802.11ax Multinode Residential Scenario
WLAN Toolbox™ features enable you to create and visualize an IEEE® 802.11ax™ multinode residential scenario with any number of floors and rooms. Using this example, you can:
Create and configure a multinode 802.11ax residential scenario consisting of two floors, one access point (AP), and two stations (STAs) per room.
Assign random positions to the STAs and AP.
Visualize the residential scenario in 3-D.
Create and Visualize 802.11ax Multinode Residential Scenario with Two Floors
To access the helper files that this example uses, add the mlWLANSystemSimulation
folder to the MATLAB path.
addpath(genpath(fullfile(pwd,'mlWLANSystemSimulation')));
Create a simulation scenario by specifying the number of rooms in each floor. This example uses two rooms in x-, y-, and z-directions.
ScenarioParameters = struct; ScenarioParameters.BuildingLayout = [2 2 2];
Specify the length, width, and height of the room in meters.
ScenarioParameters.RoomSize = [10 10 10];
Specify the number of STAs per room. This example contains one AP and two STAs per room.
ScenarioParameters.NumRxPerRoom = 2;
Assign random positions to APs and STAs by using the hDropNodes
helper function.
[apPositions,staPositions] = hDropNodes(ScenarioParameters);
Obtain the medium access control (MAC) and physical layer (PHY) configuration of APs and STAs and the application traffic configuration of the transmitting nodes by using the hLoadConfiguration
helper function. This helper function also assigns identifiers (IDs) and positions to all of the nodes in the network.
[nodeConfigs,trafficConfigs] = hLoadConfiguration(ScenarioParameters, ...
apPositions,staPositions);
Create transmitter and receiver sites from the node configurations by using the hCreateSitesFromNodes
helper function.
[txSite,rxSite] = hCreateSitesFromNodes(nodeConfigs);
Create a residential triangulation object by using the hTGaxResidentialTriangulation
helper object. This object specifies the building parameters of the residential scenario.
triangulation = hTGaxResidentialTriangulation(ScenarioParameters);
Visualize the 802.11ax multinode residential scenario by using the hVisualizeScenario
helper function.
hVisualizeScenario(triangulation,txSite,rxSite,apPositions);
At the end of the simulation, remove the mlWLANSystemSimulation
folder from the path.
rmpath(genpath(fullfile(pwd,'mlWLANSystemSimulation')));
Related Topics
- WLAN Node Composition and Configuration
- Statistics Captured in WLAN System-Level Simulation
- Configure Uplink and Downlink Traffic at 802.11ax Access Point
- Visualize Node State Transitions in 802.11ax System-Level Simulation
- MAC and PHY Layer Abstraction in System-Level Simulation
- 802.11ax Multinode System-Level Simulation of Residential Scenario Using MATLAB
- Get Started with WLAN System-Level Simulation in MATLAB