A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lr-wpan-error-distance-plot.cc File Reference
#include <ns3/abort.h>
#include <ns3/callback.h>
#include <ns3/command-line.h>
#include <ns3/constant-position-mobility-model.h>
#include <ns3/gnuplot.h>
#include <ns3/log.h>
#include <ns3/lr-wpan-error-model.h>
#include <ns3/lr-wpan-mac.h>
#include <ns3/lr-wpan-net-device.h>
#include <ns3/lr-wpan-spectrum-value-helper.h>
#include <ns3/mac16-address.h>
#include <ns3/multi-model-spectrum-channel.h>
#include <ns3/net-device.h>
#include <ns3/node.h>
#include <ns3/nstime.h>
#include <ns3/packet.h>
#include <ns3/propagation-loss-model.h>
#include <ns3/simulator.h>
#include <ns3/single-model-spectrum-channel.h>
#include <ns3/spectrum-value.h>
#include <ns3/test.h>
#include <ns3/uinteger.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
+ Include dependency graph for lr-wpan-error-distance-plot.cc:

Go to the source code of this file.

Functions

void LrWpanErrorDistanceCallback (McpsDataIndicationParams params, Ptr< Packet > p)
 Function called when a Data indication is invoked.
 

Variables

uint32_t g_packetsReceived = 0
 number of packets received
 

Detailed Description

Usage

$ ./ns3 run "lr-wpan-error-distance-plot [Program Options]"

Program Options

--txPower
transmit power (dBm) [0]
--packetSize
packet (MSDU) size (bytes) [7]
--channelNumber
channel number [11]
--rxSensitivity
the rx sensitivity (dBm) [-106.58]

Definition in file lr-wpan-error-distance-plot.cc.

Function Documentation

◆ LrWpanErrorDistanceCallback()

void LrWpanErrorDistanceCallback ( McpsDataIndicationParams  params,
Ptr< Packet p 
)

Function called when a Data indication is invoked.

Parameters
paramsMCPS data indication parameters
ppacket

Definition at line 80 of file lr-wpan-error-distance-plot.cc.

References g_packetsReceived.

Variable Documentation

◆ g_packetsReceived

uint32_t g_packetsReceived = 0

number of packets received

Definition at line 70 of file lr-wpan-error-distance-plot.cc.

Referenced by LrWpanErrorDistanceCallback().