From 58ca3bcae3480c9d4ea507145e5dfb0312b4500c Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 2 May 2008 05:58:01 +0000 Subject: [PATCH] ctimer test --- tools/cooja/contiki_tests/ctimer.csc | 84 ++++++++++++++++++++++++++++ tools/cooja/contiki_tests/ctimer.js | 4 ++ 2 files changed, 88 insertions(+) create mode 100644 tools/cooja/contiki_tests/ctimer.csc create mode 100644 tools/cooja/contiki_tests/ctimer.js diff --git a/tools/cooja/contiki_tests/ctimer.csc b/tools/cooja/contiki_tests/ctimer.csc new file mode 100644 index 000000000..6b8ae7224 --- /dev/null +++ b/tools/cooja/contiki_tests/ctimer.csc @@ -0,0 +1,84 @@ + + + + My simulation + 0 + 1 + 123456 + 1 + 0 + + se.sics.cooja.radiomediums.UDGM + 50.0 + 100.0 + 1.0 + 1.0 + + + se.sics.cooja.contikimote.ContikiMoteType + mtype1 + Contiki Mote #1 + ../../.. + ../../../platform/cooja + ../apps/mrm + ../apps/mspsim + ../../../platform/cooja/testapps + testctimer.c + test_ctimer_process + button_sensor + pir_sensor + radio_sensor + vib_sensor + se.sics.cooja.interfaces.Position + se.sics.cooja.interfaces.Battery + se.sics.cooja.contikimote.interfaces.ContikiVib + se.sics.cooja.contikimote.interfaces.ContikiMoteID + se.sics.cooja.contikimote.interfaces.ContikiRS232 + se.sics.cooja.contikimote.interfaces.ContikiBeeper + se.sics.cooja.contikimote.interfaces.ContikiIPAddress + se.sics.cooja.contikimote.interfaces.ContikiRadio + se.sics.cooja.contikimote.interfaces.ContikiButton + se.sics.cooja.contikimote.interfaces.ContikiPIR + se.sics.cooja.contikimote.interfaces.ContikiClock + se.sics.cooja.contikimote.interfaces.ContikiLED + se.sics.cooja.contikimote.interfaces.ContikiLog + se.sics.cooja.contikimote.interfaces.ContikiCFS + cfs_interface + beep_interface + button_interface + radio_interface + ip_interface + leds_interface + moteid_interface + pir_interface + rs232_interface + vib_interface + clock_interface + simlog_interface + false + Rime + + + se.sics.cooja.contikimote.ContikiMote + mtype1 + + se.sics.cooja.interfaces.Position + 79.66258522384587 + 56.93700296740023 + 0.0 + + + se.sics.cooja.contikimote.interfaces.ContikiMoteID + 1 + + + se.sics.cooja.contikimote.interfaces.ContikiIPAddress + 10.10.2.11 + + + se.sics.cooja.interfaces.Battery + false + + + + diff --git a/tools/cooja/contiki_tests/ctimer.js b/tools/cooja/contiki_tests/ctimer.js new file mode 100644 index 000000000..ddf0052ed --- /dev/null +++ b/tools/cooja/contiki_tests/ctimer.js @@ -0,0 +1,4 @@ +if (msg.startsWith("Callback function called at time 2000000 (counter=4000)")) { + log.log("TEST OK\n"); + mote.getSimulation().getGUI().doQuit(false); +}