Applicable Releasesv11
v12
v13

Installation

Admin Privileges is required to install NetSim. SUMO will install along with NetSim.

The general installation paths would be

NetSim must be installed in C drive only

NetSim v10,v11 & v12.0 uses Python Version 2.7.6 and Pywin32-220

PythonC:\Python27\

Pywin: C:\Python27\Lib\site-packages\

SUMO: C:\sumo-0.25.0

NetSim v12.1 & v13.0 uses Python Version 3.7.4  and Pywin32-224

PythonC:\Python37\

Pywin: C:\Python37\Lib\site-packages\

SUMO: C:\ProgramFiles(x86)\Eclipse\SUMO


VANET Network Creation Flow in NetSim


Open Configuration.sumo.cfg from NetSim GUI.


Configuration.sumo.cfg file is available in <NetSim-installation-directory>/ Docs\Sample_Configuration\VANET. This folder (NetSim-installation-directory>/ Docs\Sample_Configuration\VANET) contains some example SUMO configuration files. Users can create/open their own SUMO config files.


Next, NetSim GUI calls Vanet.exe which in turn calls DevicePlacement.py (DevicePlacement.py is available in <NetSim-install-directory>/bin folder, and can be modified by the user). When DevicePlacement.py is run DevicePlacement.txt and RoadsPlacement.txt files will be created in windows temp path allotted for NetSim (%temp%/NetSim)


Note that Configuration.sumo.cfg is the input file for DevicePlacement.py.


Run Simulation


When the simulation is run, the core engine of NetSim ie NetSimcore.exe calls Vanet.exe which in turn calls Sumorun.py (which is available in <NetSim-install-directory>/bin folder and is user-modifiable).


This then calls SUMO and then we have run-time linking between SUMO and NetSimCore.exe


Note that

DevicePlacement.txt will be created by DevicePlacement.py in the NetSim temp path (%temp%/NetSim) and per this file, devices are been placed in NetSim GUI.

RoadsPlacement.txt will be also be created by DevicePlacement.py in the NetSim temp path and per this file, roads are created in GUI.


Troubleshooting

If Python is not working/installed or blocked by antivirus/firewall software then Python code (DevicePlacement.py) won’t execute. This means that DevicePlacement.txt and RoadsPlacement.txt files would not get created in the NetSim temp path. This leads to GUI will throw an error message “DevicePlacement.txt not found in temp path. (C:\Users\TETCOS\AppData\Local\Temp\NetSim path)“ which can be GUIlog.txt which is written in NetSim temp path


Try turning off the anti-virus/firewall and running

Check if DevicePlacement.txt and RoadsPlacement.txt is available in NetSim temp path