intrig-unicamp / mininet-wifi

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

setBGScan function replacement. #417

Closed mufaawan closed 2 years ago

mufaawan commented 2 years ago

I have been trying to convert code from following link which was supposed to work on with mininet-wifi 2.2. But I am converting it to work with latest mininet-wifi. https://github.com/jafar-albadarneh/SDS-Mininet-WiFi/blob/master/SDCD/sdcd-experimental.py

On line number 96 there is an statement: net.setBgscan(signal=-45, s_inverval=5, l_interval=10)

I found that there is no setBgscan function anymore in net.py. How am I supposed to handle this change?

ramonfontes commented 2 years ago

Hi,

You can take handover_bgscan.py as reference.

mufaawan commented 2 years ago

I fixed the issue by suggested solution. Simulation started, when I click 'Locate Vehicles'. I see no vehicles list.

Just for the sake of confirmation I executed vanet-sumo.py from examples. Even with that example file without any change I see no vehicles list under 'Locate Vehicles'. Please suggest me if I need to do anything.

I am using preconfigured VM. And I confirmed that there is data folder inside mn_wifi/sumo. This folder has all files.

ramonfontes commented 2 years ago

Which SUMO version do you have??

mufaawan commented 2 years ago

image

I have this version.

ramonfontes commented 2 years ago

Have you ever read the requirements??

https://github.com/intrig-unicamp/mininet-wifi/blob/37785e5dbd3d62cb33284af201a18b83c5ec38a9/examples/vanet-sumo.py

mufaawan commented 2 years ago

So I updated to v1.11. Still can't see any vehicle in the list.

ramonfontes commented 2 years ago

How can I reproduce the issue?

mufaawan commented 2 years ago

You can reproduce by loading pre-configured VM(latest:without p4). And just execute vanet-sumo.py from examples.

ramonfontes commented 2 years ago

Okay. You are using the VM. Can you please do a git pull, run sudo make install and then run the code one more time?

mufaawan commented 2 years ago

It worked this time.
Thank you so much.

I am sorry for asking too much. But I have one more question. Actually I am upgrading the repo to work with latest Mininet wifi.

https://github.com/jafar-albadarneh/SDS-Mininet-WiFi/blob/master/SDCD/sdcd-experimental.py On line 146 and 155 there is an array accessed from net object like net.carsSTA which was part of v2.2. I have been struggling to find the same array in latest version.

One parallel request is to please provide the link to preconfigured VM for version 2.2. It must be somewhere in your google drive. It would make alot of things easy for me.
Thank you.

mufaawan commented 2 years ago

@ramonfontes I am waiting for kind response.

ramonfontes commented 2 years ago

On line 146 and 155 there is an array accessed from net object like net.carsSTA which was part of v2.2. I have been struggling to find the same array in latest version

There is no carsSTA anymore. However, you can easily reproduce the same setup by connecting a switch to the vehicle.

One parallel request is to please provide the link to preconfigured VM for version 2.2. It must be somewhere in your google drive. It would make alot of things easy for me.

There is no VM for old releases.