rmartin5 / aqua-sim-ng

Aqua-Sim on NS3
83 stars 42 forks source link

Transmission range #8

Closed Duola-li closed 5 years ago

Duola-li commented 5 years ago

Is there a transmission range between the nodes? If so, what is the transmission range? Can I set it?

BigRabbit71 commented 5 years ago

Hi,

First of all, you should set the propagation model as AquaSimRangePropagation. After that, you could change the transmission range through AquaSimNetDevice like below:

Ptr<AquaSimNetDevice> newDevice = CreateObject<AquaSimNetDevice> ();
newDevice->GetPhy ()->SetTransRange (range);

Hope it helps.

Duola-li commented 5 years ago

It`s workable, thank you very much!