void ns3::WifiNetDevice::SetRemoteStationManager | ( | const Ptr< WifiRemoteStationManager > | manager | ) |
.AddAttribute ("GuardInterval",
"Whether 800ns, 1600ns or 3200ns guard interval is used for HE transmissions."
"This parameter is only valuable for 802.11ax STAs and APs.",
TimeValue (NanoSeconds (3200)),
MakeTimeAccessor (&WifiPhy::GetGuardInterval,
&WifiPhy::SetGuardInterval),
ObjectFactory fact;
fact.SetTypeId("ns3::ConstantRateWifiManager"); //Type of object to create. You can also pass it ConstantRateWifiManager::GetTypeId(), but WifiHelper uses string value.
fact.Set ("DataMode",StringValue("OfdmaRate12Mbps")); //"DataMode" is an attribute in ConstantRateWifiManager
Ptr<WifiRemoteStationManager> manager = fact.Create<WifiRemoteStationManager> ();
WifiHelper helper;
helper.SetRemoteStationManager ("ns3::ConstantRateWifiManager", StringValue("DataMode"), StringValue("OfdmaRate12Mbps") , "ControlMode", StringValue("OfdmaRate27Mbps") , "MaxSsrc", UintegerValue(10));
Hello,
can someone please tell me where can I find default values for various wifi standards? And where can I find files in which different modules are defined (propagation, building)? For example, description of the buildings - how are office and residential buildings defined and what is the difference?
Hello Nina, you make a good point that there isn't a straightforward way to dump all of these values in our example programs.
I suggest that you have a look at the config-store module. There is an example at src/config-store/examples/config-store-save.cc.
Specifically, if you include the config-store-module.h header,
and add these lines to your program just before Simulator::Run(),
as in the example:
// Output config store to txt format
Config::SetDefault ("ns3::ConfigStore::Filename", StringValue
("output-attributes.txt"));
Config::SetDefault ("ns3::ConfigStore::FileFormat", StringValue
("RawText"));
Config::SetDefault ("ns3::ConfigStore::Mode", StringValue
("Save"));
ConfigStore outputConfig2;
outputConfig2.ConfigureDefaults ();
outputConfig2.ConfigureAttributes ();
your program will then dump all of the default values and all of
the per-object attribute values in effect, and you can read this
'output-attributes.txt' file.
In the long run, I will add this kind of capability to our
'project ideas' list.
I have found folders for various modules in ns-3/src folder but I don't know which files to look at and which ones to change. For example, I open buildings/model folder but none of the files (building, building-list) contain any description of specific type of buildings. I have found in itur1238-propagation-loss-model a specific formula by which the loss is calculated and I think that is the only thing I could find by myself to change.
Another example - I want to see default value for guard interval in wifi ax standard. I set this variable using Yans wifi phy helper so I search src/wifi/model files yans-wifi-phy, yans-wifi-channel, , I search src/wifi/helper file yans-wifi-helper and I find nothing. In wifi-helper file I found some values for GI and channel width but they are only being compared for what I think is generating pcap file.
So, can someone please give me some general instructions:
1. on finding specific information in src files and
2.which files to look at when I need something changed?
You need to search for strings in either the online Doxygen documentation (which has a powerful search capability, cross-referenced with the source code), or, when using the Bash shell, using a string search on the source code, such as:
$ find . -name "*.h" | xargs grep 'ItuR1238'
- Tom
I have read tutorial, model library (completely) and doxygen (on a need basis) and could not find any answers there. I have started reading manual as well but I don't think it helps me with using the simulator.
RegardsNina
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/2086ef42-cc0c-4b91-877e-0d23f3617ba4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ObssPdAlgorithm
and is it possible it has not been added? I have posted a new topic regarding this.To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-...@googlegroups.com.