added contiki test: sky hello world
This commit is contained in:
parent
0651d0200f
commit
8a171ebc16
3 changed files with 48 additions and 0 deletions
40
tools/cooja/contiki_tests/sky_helloworld.csc
Normal file
40
tools/cooja/contiki_tests/sky_helloworld.csc
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<simconf>
|
||||
<simulation>
|
||||
<title>Hello World (Sky)</title>
|
||||
<delaytime>0</delaytime>
|
||||
<ticktime>1</ticktime>
|
||||
<randomseed>123456</randomseed>
|
||||
<nrticklists>1</nrticklists>
|
||||
<motedelay>0</motedelay>
|
||||
<radiomedium>
|
||||
se.sics.cooja.radiomediums.UDGM
|
||||
<transmitting_range>50.0</transmitting_range>
|
||||
<interference_range>100.0</interference_range>
|
||||
<success_ratio_tx>1.0</success_ratio_tx>
|
||||
<success_ratio_rx>1.0</success_ratio_rx>
|
||||
</radiomedium>
|
||||
<motetype>
|
||||
se.sics.cooja.mspmote.SkyMoteType
|
||||
<identifier>sky1</identifier>
|
||||
<description>Sky Mote Type #1</description>
|
||||
<source>C:\Documents and Settings\fros\My Documents\Eclipse Workspace\contiki-2.x_hybrid_dbg\examples\hello-world\hello-world.c</source>
|
||||
<command>make hello-world.firmware TARGET=sky</command>
|
||||
</motetype>
|
||||
<mote>
|
||||
se.sics.cooja.mspmote.SkyMote
|
||||
<motetype_identifier>sky1</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>64.11203103628397</x>
|
||||
<y>93.06735634828134</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.mspmote.interfaces.MspMoteID
|
||||
<id>1</id>
|
||||
</interface_config>
|
||||
</mote>
|
||||
</simulation>
|
||||
</simconf>
|
||||
|
1
tools/cooja/contiki_tests/sky_helloworld.info
Normal file
1
tools/cooja/contiki_tests/sky_helloworld.info
Normal file
|
@ -0,0 +1 @@
|
|||
Single sky mote running Hello world application
|
7
tools/cooja/contiki_tests/sky_helloworld.js
Normal file
7
tools/cooja/contiki_tests/sky_helloworld.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* Script is called once for every node log output. */
|
||||
/* Input variables: Mote mote, int id, String msg. */
|
||||
|
||||
if (msg.startsWith('Hello, world')) {
|
||||
log.log('TEST OK\n'); /* Report test success */
|
||||
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
||||
}
|
Loading…
Reference in a new issue