intrig-unicamp / mininet-wifi

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

Stop the car mobility when running examples/vanet.py #261

Closed badDDalways closed 4 years ago

badDDalways commented 4 years ago

Hello, I'd like to stop the car mobility when running examples/vanet.py. I've tried "net. stopMobility()" method, and there's no effect. Is there any other way to stop the car on the road? Thank you.

ramonfontes commented 4 years ago

Hi,

You can try the stop command in the CLI.

badDDalways commented 4 years ago

Hi,

I tried the stop command while running examples/vanet.py, it didn't work, cars are still moving. However, when I tried this command in examples/mobility.py, it worked well. I think it's possible that some mobility methods have been rewritten in vanet.py. Is there any other solutions?

Thank you.

ramonfontes commented 4 years ago

https://github.com/intrig-unicamp/mininet-wifi/commit/c71a17158fd71d3f7f77a66b58f7f5efe8a8c070 enables stop command for vanet.py

badDDalways commented 4 years ago

Thank you very much. I tried a few more times, the stop command still cannot work.

ramonfontes commented 4 years ago

Did you recompile the code with sudo make install?

badDDalways commented 4 years ago

It works well~~~!!!! Thank you very much~~~!!!