On 16 juin, 12:20, phuchong kheawchaoom <
phuchon...@gmail.com> wrote:
> // Setup Wifi
> m_wifiHelper = WifiHelper::Default();
> m_wifiHelper.SetStandard (WIFI_PHY_STANDARD_80211p_CCH);
> m_wifiMacHelper = NqosWifiMacHelper::Default();
> m_wifiPhyHelper = YansWifiPhyHelper::Default();
> m_wifiChannelHelper = YansWifiChannelHelper::Default ();
> m_wifiMacHelper.SetType ("ns3::AdhocWifiMac");
> m_wifiHelper.SetRemoteStationManager
> ("ns3::ConstantRateWifiManager","DataMode", StringValue
> ("OfdmRate6MbpsBW10MHz"), "ControlMode",
> StringValue("OfdmRate6MbpsBW10MHz"));
> m_wifiChannelHelper.AddPropagationLoss
> ("ns3::NakagamiPropagationLossModel");
> m_wifiChannel = m_wifiChannelHelper.Create();
> m_wifiPhyHelper.SetChannel (m_wifiChannel);
> m_wifiPhyHelper.Set("TxPowerStart",DoubleValue(21.5)); // 250-300 meter
> transmission range
> m_wifiPhyHelper.Set("TxPowerEnd",DoubleValue(21.5)); // 250-300
> meter transmission range
> m_wifiPhyHelper.Set("TxPowerLevels",UintegerValue(1));
> m_wifiPhyHelper.Set("TxGain",DoubleValue(0));
> m_wifiPhyHelper.Set("RxGain",DoubleValue(0));
> m_wifiPhyHelper.Set("EnergyDetectionThreshold", DoubleValue(-101.0));
>
> On Thu, Jun 16, 2011 at 5:05 PM, Jorge Sousa <
jose.jorge.so...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi there,
>
> > Take a look on wifi examples (.../{ns3.11}/examples/wireless) and you can
> > check which parameters are used to a minimum working scenario. Ofcourse
> > there are many other attributes than those presented in those scripts but it
> > will only depend of what you want to simulate.
>
> > Regards,
>
> > JS
>