A Discrete-Event Network Simulator
API
wifi-trans-example.cc File Reference
#include <iostream>
#include <stdlib.h>
#include "ns3/core-module.h"
#include "ns3/wifi-module.h"
#include "ns3/mobility-module.h"
#include "ns3/spectrum-module.h"
#include "ns3/gnuplot.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

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 46 of file wifi-trans-example.cc.

References ns3::NetDevice::Send().

+ Here is the call graph for this function: