A Discrete-Event Network Simulator
API
wifi-trans-example.cc File Reference
#include "ns3/command-line.h"
#include "ns3/gnuplot.h"
#include "ns3/mobility-helper.h"
#include "ns3/spectrum-analyzer-helper.h"
#include "ns3/spectrum-channel.h"
#include "ns3/spectrum-helper.h"
#include "ns3/spectrum-wifi-helper.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
+ Include dependency graph for wifi-trans-example.cc:

Go to the source code of this file.

Functions

void SendPacket (Ptr< NetDevice > sourceDevice, Address &destination)
 This example (inspired from tv-trans-example) enables to generate the transmitted spectra of Wi-Fi stations, so as to model transmit mask imperfections of OFDM-based Wi-Fi standards. More...
 

Function Documentation

◆ SendPacket()

void SendPacket ( Ptr< NetDevice sourceDevice,
Address destination 
)

This example (inspired from tv-trans-example) enables to generate the transmitted spectra of Wi-Fi stations, so as to model transmit mask imperfections of OFDM-based Wi-Fi standards.

Only one data packet is sent from access point to station (once association has been performed) so as to reduce execution time.

A spectrum analyzer is used to measure the transmitted spectra from Wi-Fi stations. The file "spectrum-analyzer-wifi-[standard]-[bandwidth]MHz-sim-2-0.tr" contains its output post simulation and use it to plot transmitted spectra with Gnuplot.

The wifi-trans-example.sh script runs this example for all combinations, plots transmitted spectra, and puts resulting png images in wifi-trans-results folder.

Definition at line 47 of file wifi-trans-example.cc.