From 994e35002698573d305f3b2a0563c070f92210b4 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sat, 6 Nov 2010 15:03:48 +0000 Subject: [PATCH] Broadcast example --- examples/rime/example-broadcast.c | 4 +- examples/rime/example-broadcast.csc | 248 ++++++++++++++++++++++++++++ 2 files changed, 250 insertions(+), 2 deletions(-) create mode 100644 examples/rime/example-broadcast.csc diff --git a/examples/rime/example-broadcast.c b/examples/rime/example-broadcast.c index a7d2b2232..c99cc0fb4 100644 --- a/examples/rime/example-broadcast.c +++ b/examples/rime/example-broadcast.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: example-broadcast.c,v 1.2 2009/11/19 17:29:41 nifi Exp $ + * $Id: example-broadcast.c,v 1.3 2010/11/06 15:03:48 adamdunkels Exp $ */ /** @@ -48,7 +48,7 @@ #include /*---------------------------------------------------------------------------*/ -PROCESS(example_broadcast_process, "BROADCAST example"); +PROCESS(example_broadcast_process, "Broadcast example"); AUTOSTART_PROCESSES(&example_broadcast_process); /*---------------------------------------------------------------------------*/ static void diff --git a/examples/rime/example-broadcast.csc b/examples/rime/example-broadcast.csc new file mode 100644 index 000000000..d2199309f --- /dev/null +++ b/examples/rime/example-broadcast.csc @@ -0,0 +1,248 @@ + + + [CONTIKI_DIR]/tools/cooja/apps/mrm + [CONTIKI_DIR]/tools/cooja/apps/mspsim + [CONTIKI_DIR]/tools/cooja/apps/avrora + [CONTIKI_DIR]/tools/cooja/apps/native_gateway + [CONTIKI_DIR]/tools/cooja/apps/serial_socket + /home/user/contikiprojects/sics.se/mobility + [CONTIKI_DIR]/tools/cooja/apps/collect-view + /home/user/contikiprojects/sics.se/powertracker + + Broadcast example + 0 + 123456 + 1000000 + + se.sics.cooja.radiomediums.UDGM + 50.0 + 100.0 + 1.0 + 1.0 + + + 40000 + + + se.sics.cooja.mspmote.SkyMoteType + sky1 + Broadcast example + [CONTIKI_DIR]/examples/rime/example-broadcast.c + make example-broadcast.sky TARGET=sky + [CONTIKI_DIR]/examples/rime/example-broadcast.sky + se.sics.cooja.interfaces.Position + se.sics.cooja.interfaces.RimeAddress + se.sics.cooja.interfaces.IPAddress + se.sics.cooja.interfaces.Mote2MoteRelations + se.sics.cooja.interfaces.MoteAttributes + se.sics.cooja.mspmote.interfaces.MspClock + se.sics.cooja.mspmote.interfaces.MspMoteID + se.sics.cooja.mspmote.interfaces.SkyButton + se.sics.cooja.mspmote.interfaces.SkyFlash + se.sics.cooja.mspmote.interfaces.SkyCoffeeFilesystem + se.sics.cooja.mspmote.interfaces.SkyByteRadio + se.sics.cooja.mspmote.interfaces.MspSerial + se.sics.cooja.mspmote.interfaces.SkyLED + se.sics.cooja.mspmote.interfaces.MspDebugOutput + se.sics.cooja.mspmote.interfaces.SkyTemperature + + + + + se.sics.cooja.interfaces.Position + 37.5366545201821 + 20.133438936240488 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 1 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 50.05393308569106 + 3.886106972235548 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 2 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 53.50011157471555 + 48.16869587128244 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 3 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 12.542870357677295 + 50.15965479801062 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 4 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 45.30496839108535 + 49.347800977978565 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 5 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 74.7539300728242 + 28.371269772953212 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 6 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 51.968753134087585 + 77.76059892362437 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 7 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 63.365939830655286 + 24.573727672975103 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 8 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 21.82676295937117 + 84.86468902217199 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 9 + + sky1 + + + + + se.sics.cooja.interfaces.Position + 8.668640141529082 + 21.113338033999675 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 10 + + sky1 + + + + se.sics.cooja.plugins.SimControl + 318 + 3 + 192 + 0 + 0 + + + se.sics.cooja.plugins.Visualizer + + se.sics.cooja.plugins.skins.IDVisualizerSkin + se.sics.cooja.plugins.skins.AddressVisualizerSkin + se.sics.cooja.plugins.skins.UDGMVisualizerSkin + 2.6322285313650773 0.0 0.0 2.6322285313650773 36.20636526098638 1.3163328971993926 + + 300 + 1 + 300 + 528 + -2 + + + se.sics.cooja.plugins.LogListener + + + + 827 + 2 + 218 + 1 + 197 + + + se.sics.cooja.plugins.TimeLine + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + + + 125 + 500.0 + + 828 + 0 + 138 + 0 + 414 + + +