Reputation: 39
I'm checking the Veins tutorial that is http://veins.car2x.org/tutorial/ but I'm a little confused I see the tutorial is for Windows and Im using ubuntu, I managed to install, omnet++, sumo and import veins into Omnet++ but when I try to run the omnetpp.ini, everything opens in Omnet but i get this error:
Could not connect to TraCI server; error message: 111: Connection refused -- in module (Veins::TraCIScenarioManagerLaunchd) RSUExampleScenario.manager (id=6), at t=0s, event #1
TRAPPING on the exception above, due to a debug-on-errors=true configuration option. Is your debugger ready?
Upvotes: 2
Views: 2216
Reputation: 21
You have to launch sumo in parallel, so that is can wait for incoming connections on the port specified in the behavior of your application (generally 9999). Type in your terminal:
path_to_veins/sumo-launchd.py -v -c path_to_sumo
Upvotes: 1
Reputation: 119
If you are using Ubuntu and followed where it told you to place your files in
/usr/local/src
Then you should have three directories in /usr/local/src
Make sure that the files inside them are able to be executed by running
sudo chmod 755 -R *
from /usr/local/src.
because if the scripts inside veins and sumo directories are not set with the correct permission they will not execute and hence you will not have a server running and listening on port 9999
Upvotes: -1
Reputation: 80
Could not connect to TraCI server
The TaCI is the API of the SUMO traffic simulator. SUMO runs externally as a dedicated service and is not "built in" while compiling. That being said, you need to start the TraCI server first.
The documentation is very specific about that in this section.
Upvotes: 4