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

Adding delay in the start of malicious mote. #41

Closed
abhiverma866 opened this issue Jan 30, 2019 · 2 comments
Closed

Adding delay in the start of malicious mote. #41

abhiverma866 opened this issue Jan 30, 2019 · 2 comments
Assignees

Comments

@abhiverma866
Copy link

abhiverma866 commented Jan 30, 2019

I want to add delay in the node startup of malicious mote. My aim is to make a mote send its first DIS after certain period of time. Like in case of hello-flood the DIS_START_DELAY is set to 0. However, when i set delay to 60, it rarely makes any difference. The hello-flood should start after the nodes have found their parents i.e. network topology has been setup. How can i do this.
screenshot from 2019-01-30 12-27-44
screenshot from 2019-01-30 12-28-10
screenshot from 2019-01-30 12-28-43

@dhondta
Copy link
Owner

dhondta commented Dec 1, 2019

Hi @abhiverma866
I apologize for the huge delay.

After a bit of testing, it appears that, whatever I set for the related constant, in practice the delay always seems to be 0.

Namely, I tried a few times to adapt the malicious-[...].c files at rpl-attacks/templates/experiment/motes to make the malicious mote compile with the option set to multiple test values, but rpl.log always shows DIS sent by the malicious mote from the very beginning of the experiment.

I fear this issue comes from Contiki.

@abhiverma866
Copy link
Author

Thank you for your reply. Well the issue was resolved by simply adding a stimer after PROCESS_BEGIN.

@dhondta dhondta closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants