intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
432 stars 239 forks source link

propagationModel.py---------antenna's height doesn't seem to make a difference on power received. #366

Open CharlieAx10 opened 3 years ago

CharlieAx10 commented 3 years ago

Hello, i'm currently working with propagation models using the mininet-wifi script titled propagationModels.py, i found out that whenever i vary the antenna's height (transmitter and receiver or both) the received power on the station (receiver) doesn't change at all, it only varies if i manipulate the gain on the receiver or transmitter antenna, my question would be, why doesn't the antenna height affect the received power ? Even if i give it the value of 0, the received power doesn't change at all, why would this be? i'd appreciate any help.

ramonfontes commented 3 years ago

Which propagation model are you using? Does it consider the antenna height in its formula?

CharlieAx10 commented 3 years ago

Which propagation model are you using? Does it consider the antenna height in its formula?

After reviewing the theory, i was able to find out that on the friis model, which was the one i was looking at first, the equation for received power doesn't rely on the antennas heights but the gain of them and the transmitted power. This leads me to the following question, does the transmitted power have a predetermined value that could be modified?

(I think i just found the answer to my own question)

i tried the two ray ground model next and noticed that the received power does change if i give different values for their antenna heights, as the equation needs those values to calculate the received power. Really appreciate the help, thank you.

CharlieAx10 commented 3 years ago

Hello, quick question, on the propagation Models file, are the units used for antenna heights given in meters or centimeters? I was wondering, since the method logDistance can be used for indoors as well as outdoors but if we were talking about an indoor environment; then the units would be centimeters for a transmitter and receiver. However, I can’t use float numbers for antenna heights, only integers base 10.

ramonfontes commented 3 years ago

This commit https://github.com/intrig-unicamp/mininet-wifi/commit/f0ee3857642281efe8a868b1b3c5d2b8e6096561 might solve the issue