Dear VEINS project member
I use your project as a reference to implement my network simulation.
I try to find where your project register NIC to the BaseConnectionManager
In TraCIScenarioManager.
initialize
cc = FindModule<BaseConnectionManager*>::findGlobalModule();
if (cc == NULL) error("Could not find BaseConnectionManager module");
During add new module
I do not see you add new nic to the new tracimobility
but during delete module
i see you delete nic for cc (BaseConnectionManager)
void TraCIScenarioManager::deleteModule(std::string nodeId) {
cModule* mod = getManagedModule(nodeId);
if (!mod) error("no vehicle with Id \"%s\" found", nodeId.c_str());
cc->unregisterNic(mod->getSubmodule("nic"));
hosts.erase(nodeId);
mod->callFinish();
mod->deleteModule();
}
Please help me, I need to register nic to my mobility node for simulate the network connection.