Closed 14vv1A0516 closed 1 year ago
Can we access vehicles in SUMO and install RSUs or Access points in SUMO network in vanet-sumo.py file ?
SUMO doesn't support some kind of nodes such as BSes.
I really don't understand why we run sumo file as an external program in mininet-wifi if we don't use it in mininet-wifi.
What?? Mininet-WiFi gets the position of the vehicles from the sumo's API! Strongly suggest you reading https://github.com/ramonfontes/mn-wifi-ebook/blob/main/expert.md#vehicular-ad-hoc-networks
We are creating our hosts as cars and RSUs and just seeing their mobility in UI of Mininet-wifi. I don't find the significance of running sumo unless we are using it as part of simulation.
??
Thank you sir for correcting me. I will try to map sumo vehicles in mininet-wifi.
But before that, I have been facing one more problem. I created a network from openstreetmap and placed the sumo network files in mn_wifi/sumo/data directory.
Then I ran sudo make install in home folder of mininet-wifi as mentioned in the documentation. However, when in the same code, it throws error always.
Can you please help where I am wrong ?
Thank you.
I think there is nothing I can do with that. You have to check if the file directory is correct.
I thought the problem is with the sumo config file. I did a fresh installation of mininet-wifi, mininet, and sumo. I ran vanet-sumo.py for first time which ran successfully showing map on sumo-gui. But when I modify the file, it says map.sumocfg could not access. I think when I edit the file in mininet-wifi/examples directory, I have to re-run or build mininet-wifi again to reflect my changes. Can you please confirm this Sir ?
it says map.sumocfg could not access
What is the file directory?? Did you set an existing path?
Can you please confirm this Sir ?
No. That's wrong.
I didn't change any file in sumo/data directory. The sumo file is in directory mininet-wifi/mn_wifi/sumo/data. The vanet-sumo.py is in mininet-wifi/examples. I just added a few lines of code in python file. After that, I get Error: Could not access configuration 'map.sumocfg' again.
Did you set an existing path? What path should I set ?
The file path ;/
Sir, There is an issue in mn_wifi/sumo/runner.py file. When we send sumo config file from net.useExternalProgram in vanet-sumo.py, the control goes to start method in runner.py file. In this, we are not searching sumocfg file data folder. Search path is incorrect here. So, it is unable to find sumocfg file. I added the below patch in runner.py and ran sudo make install in home directory of mininet-wifi. It worked.
Note: In sumocfg file, set xml-validation as false so that sumo network runs successfully.
Thank you.
Please push this change to the main branch sir. Thank you.
https://github.com/intrig-unicamp/mininet-wifi/blob/master/mn_wifi/sumo/runner.py#L50 is correct! I see no reason for such fix.
Sir,
In blogs, it has been mentioned to have the custom sumocfg files in mininet-wifi/mn_wifi/sumo/data directory. In vanet-sumo.py file, we just give the x.sumocfg in net.useExternalProgram call. In my case, what has happened is the program is trying to access sumocfg file in examples folder where vanet-sumo.py is there.
When it has been mentioned to place to sumocfg file in sumo/data folder, the vanet-sumo.py should fetch the file from sumo/data folder. However, it is unable to locate it as the program is trying to look for sumo file in examples folder. I don't know how it worked for others. I thought this problem is faced by everyone. If it's working fine for others, then no worries sir.
Thank you.
Hi Sir/Madam,
My doubt is inline with the question in link https://github.com/intrig-unicamp/mininet-wifi/issues/135
Can we access vehicles in SUMO and install RSUs or Access points in SUMO network in vanet-sumo.py file ?
I really don't understand why we run sumo file as an external program in mininet-wifi if we don't use it in mininet-wifi.
We are creating our hosts as cars and RSUs and just seeing their mobility in UI of Mininet-wifi. I don't find the significance of running sumo unless we are using it as part of simulation.
Code of vanet-sumo.py
My task is to access sumo vehicles as in mininet and connect them to Ryu controller. I was able to connect mininet hosts in a normal network of hosts with virtual switches but I need to do the same with sumo vehicles. Is this possible with mininet-wifi ?
Thank you.