added contiki test: sky hello world

This commit is contained in:
fros4943 2008-09-18 10:27:57 +00:00
parent 0651d0200f
commit 8a171ebc16
3 changed files with 48 additions and 0 deletions

View 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>

View file

@ -0,0 +1 @@
Single sky mote running Hello world application

View 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)*/
}