diff --git a/examples/netperf/Makefile b/examples/netperf/Makefile new file mode 100644 index 000000000..8a6461d87 --- /dev/null +++ b/examples/netperf/Makefile @@ -0,0 +1,6 @@ +CONTIKI_PROJECT = netperf-shell +all: $(CONTIKI_PROJECT) +APPS=serial-shell + +CONTIKI = ../.. +include $(CONTIKI)/Makefile.include diff --git a/examples/netperf/netperf-shell.c b/examples/netperf/netperf-shell.c new file mode 100644 index 000000000..a8b03bacb --- /dev/null +++ b/examples/netperf/netperf-shell.c @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2008, Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the Institute nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * This file is part of the Contiki operating system. + * + * $Id: netperf-shell.c,v 1.1 2009/11/03 22:56:27 adamdunkels Exp $ + */ + +/** + * \file + * netperf shell + * \author + * Adam Dunkels + */ + +#include "contiki.h" +#include "shell.h" +#include "serial-shell.h" + +/*---------------------------------------------------------------------------*/ +PROCESS(netperf_shell_process, "netperf shell"); +AUTOSTART_PROCESSES(&netperf_shell_process); +/*---------------------------------------------------------------------------*/ +PROCESS_THREAD(netperf_shell_process, ev, data) +{ + PROCESS_BEGIN(); + + serial_shell_init(); + shell_blink_init(); + /* shell_file_init(); + shell_coffee_init();*/ + /* shell_download_init(); + shell_rime_sendcmd_init();*/ + shell_ps_init(); + shell_reboot_init(); + shell_rime_init(); + shell_rime_netcmd_init(); + shell_rime_ping_init(); + shell_rime_debug_init(); + shell_rime_sniff_init(); + shell_text_init(); + shell_time_init(); + shell_sendtest_init(); + shell_netperf_init(); + + PROCESS_END(); +} +/*---------------------------------------------------------------------------*/ diff --git a/examples/netperf/netperf-sky.csc b/examples/netperf/netperf-sky.csc new file mode 100644 index 000000000..6976a3046 --- /dev/null +++ b/examples/netperf/netperf-sky.csc @@ -0,0 +1,179 @@ + + + [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 + + My simulation + 0 + 123456 + 1000000 + + se.sics.cooja.radiomediums.UDGM + 50.0 + 100.0 + 1.0 + 1.0 + + + 40000 + + + se.sics.cooja.mspmote.SkyMoteType + sky1 + netperf shell + [CONTIKI_DIR]/examples/netperf/netperf-shell.c + make netperf-shell.sky TARGET=sky + [CONTIKI_DIR]/examples/netperf/netperf-shell.sky + se.sics.cooja.interfaces.Position + se.sics.cooja.interfaces.RimeAddress + se.sics.cooja.interfaces.IPAddress + se.sics.cooja.interfaces.Mote2MoteRelations + 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.SkySerial + se.sics.cooja.mspmote.interfaces.SkyLED + + + se.sics.cooja.mspmote.SkyMote + sky1 + + + se.sics.cooja.interfaces.Position + 49.48292285385544 + 97.67000744426045 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 1 + + + + se.sics.cooja.mspmote.SkyMote + sky1 + + + se.sics.cooja.interfaces.Position + 80.21380569499377 + 98.51039574575084 + 0.0 + + + se.sics.cooja.mspmote.interfaces.MspMoteID + 2 + + + + + se.sics.cooja.plugins.SimControl + 290 + 5 + 172 + 0 + 0 + false + + + se.sics.cooja.plugins.Visualizer + + se.sics.cooja.plugins.skins.IDVisualizerSkin + se.sics.cooja.plugins.skins.GridVisualizerSkin + se.sics.cooja.plugins.skins.UDGMVisualizerSkin + 2.920727775710812 0.0 0.0 2.920727775710812 -28.526147202610904 -183.26750359633323 + + 300 + 6 + 300 + 724 + 0 + false + + + se.sics.cooja.plugins.LogListener + + + + 1024 + 2 + 150 + 0 + 398 + false + + + se.sics.cooja.plugins.TimeLine + + 0 + 1 + + + + 118 + 9 + + 1024 + 0 + 150 + 0 + 548 + false + + + se.sics.cooja.plugins.MoteInterfaceViewer + 0 + + Serial port + 0,0 + + 432 + 1 + 505 + 290 + -1 + false + + + se.sics.cooja.plugins.MoteInterfaceViewer + 1 + + Serial port + 0,0 + + 350 + 3 + 300 + 379 + 112 + false + + + se.sics.cooja.plugins.ScriptRunner + + + true + + 600 + 4 + 476 + 399 + 154 + false + + +