sami7719037 / wifi-range-test

In this script you can do experiment with the range of Wifi Adhoc Interface. You can enable or disable transmission power and also you can increase or decrease transmission power and node to node distance to see the node to node hop count.
GNU General Public License v3.0
1 stars 0 forks source link

set parameter using ns3 instead of waf #1

Open hhhicham132 opened 1 year ago

hhhicham132 commented 1 year ago

please, how can I set parameter using ns3 instead of waf as nNodes or distances?

sami7719037 commented 1 year ago

Which version of ns3 are you using? If you have latest version then you can just type ./ns3 run "programName --nNodes=30"

On Sun, 2 Jul 2023, 9:38 am hhhicham132, @.***> wrote:

please, how can I set parameter using ns3 instead of waf as nNodes or distances?

— Reply to this email directly, view it on GitHub https://github.com/sami7719037/wifi-range-test/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVOZ3CLM5SGKXSTHZJMJLOTXOD3LLANCNFSM6AAAAAAZ3GSR6M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hhhicham132 commented 1 year ago

Think you sir, but when I set distance=400, i get packet sent=0, can you help me to pick up the problem please?

sami7719037 commented 1 year ago

Maximum range is 350 meter with default transmission power. If you want to cover more distance, you need to increase transmission power.

On Sun, 2 Jul 2023, 10:34 am hhhicham132, @.***> wrote:

Think you sir, but when I set distance=400, i get packet sent=0, can you help me to pick up the problem please?

— Reply to this email directly, view it on GitHub https://github.com/sami7719037/wifi-range-test/issues/1#issuecomment-1616386059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVOZ3COTOJNQXB6BPLOKLJ3XOEB7BANCNFSM6AAAAAAZ3GSR6M . You are receiving this because you commented.Message ID: @.***>

hhhicham132 commented 1 year ago

Thank you for your response, but if I put tPower=true, it gives all zeros, I don't know why? packet sent can't be zero?

sami7719037 commented 1 year ago

double txp = 7;
Try to increase txp and check again, try with 10, 20, 30 or any other value according to your need.

hhhicham132 commented 1 year ago

Thank you sir, do you think that packet send can zeros regardless of tx power?