github上的参考文档:An Introduction to CoojaUsing Cooja Test Scripts to Automate Simulations

因为版本问题,对 Using Cooja Test Scripts to Automate Simulations(2009)中的一些问题进行补充说明,以适应Contiki-2.6版本。

1.Start the "Contiki Test Editor" plugin.

修改为: tools=> Simulation script editor.

2. export : "Export as Contiki test".

Just in the Simulation script editor : Run=>save simulation and run with script.

3.bash RUN_TEST mytest 还可以用如下命令代替:

参考文档

101226122.png

$java -mx512m -jar ../../../tools/cooja/dist/cooja.jar -nogui='mytest.csc'

运行结果如下(针对hello-world):Contiki Cooja 仿真 之一_第1张图片