-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Simulation.addMote(..) and Simulation.removeMote(..) but crashed. #7
Comments
Yea, I remember having those issues, too, but I can't remember whether I worked around them or fixed the issue. I do remember adding some patches to Cooja to solve issues with adding nodes using plugins. Especially having a list of uninitialized nodes. Yet unless you have a old (>2y) version of Cooja those should be fixed. Did you try stopping the simulation before adding the nodes? |
Thanks @cmorty.
The mote could be added correctly;
Anyway, I will try stopping the simulation before removeMote() and addMote(). PS. /**
* Rebirth of the node
*/
} else if (wasDepleted) { // Currently, it is not depleted. But it was.
String msg = "node " + nodeLabel + " was refilled!\n";
senseh.showMessage(msg + " @" + simulation.getSimulationTime());
logger.debug(msg);
wasDepleted = false;
simulation.stopSimulation(true);
simulation.addMote(mote);
simulation.startSimulation(); |
Dear,
I used your Realsim code to study how to imitate death and rebirth of node in Cooja plugin.
In my plugin, I try Simulation.removeMote(..) and Simulation.addMote(..)
as same as being used in Realsim.
But, the Cooja always crashed after Simulation.addMote(..) was called.
The "illegalArguementException: Jumping to a time that is further than possible in LPM max cycles..."
was thrown.
If you have any clue or suggestion please guild me.
Thank you.
The text was updated successfully, but these errors were encountered: