Skip to content
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

provide simControl break mote thread action #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexrayne
Copy link
Contributor

@alexrayne alexrayne commented May 16, 2020

SimControl break button - perform breakSimulation. It is can be invoked if mote hungs, and not return control to sim.

this patch rely on contink-ng PR#1225 coffeecatch exception hooks. With coffee pressing Break button breaks hunged mote, and reports callstack where mote is.

this PR also includes PR #33

on this, imediatly stops simulation. and prints stackTrace.
mote turn to state HANG, and it later newer executes.

*this feature work together with target aplication supportfor exceptions.
contiki provide coffeecatch integration, that allow get stackTrace on mote crash.
look it on alexrayne:contrinb/cooja-coffeecatch
…ked if sim hungs.

+TimeEvent.kill(), Simulator.breakSimulation() - TimeEvent can break execution on kill request from sim.

+AbstractWakeupMote.kill, ContikiMote.kill - executes kill action from TimeEvent, invokes CoreComm.kill for mote

+CoreComm.kill() - mote class provide new JNI  kill() action.

+JNI:kill - extends mote API with kill action, that provide signal killing to mote thread.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant