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

Automatically starting the simulation from command line #59

Closed
lcharpenwi6labs opened this issue Aug 12, 2021 · 1 comment · Fixed by #780
Closed

Automatically starting the simulation from command line #59

lcharpenwi6labs opened this issue Aug 12, 2021 · 1 comment · Fixed by #780

Comments

@lcharpenwi6labs
Copy link

Hello.
Currently, when I run this command below, the cooja gui starts, the compilation is done but the simulation doesn't start.
java -jar ../../../tools/cooja/dist/cooja.jar -quickstart=simu_cooja_3_sensors.csc -contiki=../../..

Is there a possible option available to start the simulation directly?

Thanks a lot

@lcharpenwi6labs lcharpenwi6labs changed the title Automaticall starting the simulation from command line Automatically starting the simulation from command line Aug 12, 2021
pjonsson added a commit to pjonsson/cooja that referenced this issue May 20, 2022
Commits:
c82dc9e Merge pull request contiki-ng#60 from nfi/dos-to-unix
60eb9d5 Convert DOS formatted files to Unix for consistent line endings.
9a752cd Merge pull request contiki-ng#59 from nfi/minor-code-cleanup
3d51407 Merge pull request contiki-ng#57 from nfi/tests
cf48bd1 Merge pull request contiki-ng#58 from nfi/flash-fix
c1762b3 Updated README to use 'ant' instead of 'make'
15d8882 Use StringBuilder instead of StringBuffer
8951db5 Minor code cleanup
b7b1a21 Corrected Javadoc argument names
5c9b6f7 Remove deprecated and unused methods
9400ad4 Make some inner classes static
a840a8a Corrected flash emergency exit check
27c09d7 Corrected bit shift in CC2420 log output
b1daf72 Removed Makefile - use ant to build instead
e243d61 Added targets for missing node types + target to run tests
b082842 Add pre-built firmwares for tests
e8b7814 Fail with error when test fails
61b84a0 Updated tests to build with msp430-gcc 4.7.x
pjonsson added a commit to pjonsson/cooja that referenced this issue Nov 11, 2022
This option enables the user to automatically
start simulations loaded with -quickstart.

There is also a per-simulation option called
autostart, so

cooja --args="-quickstart=file1.csc -quickstart=file2.csc,autostart=true"

will first load file1.csc, and then load file2.csc
and run the simulation.

Fixes contiki-ng#59.
@pjonsson
Copy link
Contributor

There wasn't, but #780 adds the support for that.

@nfi nfi closed this as completed in #780 Nov 12, 2022
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 a pull request may close this issue.

2 participants