From 70ab82761b221b9647ff839dd9633b5c00f38cff Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 31 Mar 2010 09:35:01 +0000 Subject: [PATCH] test now also includes multi-hop pinging (uip_over_mesh), up to 4 hops --- .../contiki_tests/ip_cooja_telnet_ping.csc | 267 +++++++++++++----- .../contiki_tests/ip_cooja_telnet_ping.info | 3 +- 2 files changed, 200 insertions(+), 70 deletions(-) diff --git a/tools/cooja/contiki_tests/ip_cooja_telnet_ping.csc b/tools/cooja/contiki_tests/ip_cooja_telnet_ping.csc index 4f5427248..dd3052864 100644 --- a/tools/cooja/contiki_tests/ip_cooja_telnet_ping.csc +++ b/tools/cooja/contiki_tests/ip_cooja_telnet_ping.csc @@ -1,26 +1,29 @@ - ../apps/mrm - ../apps/mspsim - ../apps/avrora - ../apps/native_gateway + [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 - 1 + -2147483648 generated 1000000 se.sics.cooja.radiomediums.UDGM - 50.0 - 100.0 + 25.0 + 0.0 1.0 1.0 + + 40000 + se.sics.cooja.contikimote.ContikiMoteType - mtype511 + mtype611 Contiki Mote Type #1 - ../../../examples/telnet-server/telnet-server.c + [CONTIKI_DIR]/examples/telnet-server/telnet-server.c make telnet-server.cooja TARGET=cooja se.sics.cooja.interfaces.Position se.sics.cooja.interfaces.Battery @@ -38,123 +41,249 @@ se.sics.cooja.contikimote.interfaces.ContikiCFS se.sics.cooja.interfaces.Mote2MoteRelations false - uIPv4 - se.sics.cooja.contikimote.ContikiMote - mtype511 se.sics.cooja.interfaces.Position - 44.40540999693696 - 81.18952332401878 + 0.0 + 0.0 0.0 - - se.sics.cooja.interfaces.Battery - false - se.sics.cooja.contikimote.interfaces.ContikiMoteID 1 + mtype611 + + + + se.sics.cooja.interfaces.Position + 20.0 + 0.0 + 0.0 + + + se.sics.cooja.contikimote.interfaces.ContikiMoteID + 2 + + mtype611 + + + + se.sics.cooja.interfaces.Position + 40.0 + 0.0 + 0.0 + + + se.sics.cooja.contikimote.interfaces.ContikiMoteID + 3 + + mtype611 + + + + se.sics.cooja.interfaces.Position + 60.0 + 0.0 + 0.0 + + + se.sics.cooja.contikimote.interfaces.ContikiMoteID + 4 + + mtype611 + + + + se.sics.cooja.interfaces.Position + 80.0 + 0.0 + 0.0 + + + se.sics.cooja.contikimote.interfaces.ContikiMoteID + 5 + + mtype611 se.sics.cooja.plugins.SimControl 248 - 1 + 5 200 - 2 - 2 + 0 + 0 false se.sics.cooja.plugins.Visualizer - Addresses: IP or Rime - Mote IDs - Radio environment (UDGM) - LEDs + se.sics.cooja.plugins.skins.AddressVisualizerSkin + se.sics.cooja.plugins.skins.IDVisualizerSkin + se.sics.cooja.plugins.skins.UDGMVisualizerSkin + se.sics.cooja.plugins.skins.LEDVisualizerSkin + se.sics.cooja.plugins.skins.TrafficVisualizerSkin + se.sics.cooja.plugins.skins.GridVisualizerSkin + 6.0123843024302435 0.0 0.0 6.0123843024302435 81.22165451665171 95.03179722772279 + - 247 - 3 - 110 - 3 - 203 + 659 + 4 + 198 + 246 + 2 false se.sics.cooja.plugins.ScriptRunner - + +log.log("\nTEST SUMMARY:\n") +testOK = 1; +currentMote = 1; +while (currentMote <= NR_MOTES) { + log.log("Ping replies from mote " + currentMote + ": " + nrReplies[currentMote] + "/" + NR_PINGS + "\n") + if (nrReplies[currentMote] < NR_PINGS_MIN) { + testOK = 0; + } + + currentMote++; +} + +if (testOK == 1) { + log.testOK(); +} +log.testFailed(); true 600 - 0 - 700 - 251 + 2 + 702 + 903 1 false + + se.sics.cooja.plugins.LogListener + + + + 904 + 1 + 538 + 0 + 519 + false + se.sics.cooja.plugins.NativeIPGateway 0 - \Device\NPF_{6AE59250-8082-40D4-B2F4-89EC57DD3321} + \Device\NPF_{8ABD0E53-3824-4541-B397-5FAF535206CF} true 388 - 2 - 331 - 0 - 313 + 6 + 321 + 1 + 200 + false + + + se.sics.cooja.plugins.RadioLogger + + 150 + + 517 + 3 + 321 + 389 + 200 + false + + + se.sics.cooja.plugins.TimeLine + + 0 + 1 + 2 + 3 + 4 + + 1 + 11 + + 600 + 0 + 355 + 903 + 702 false diff --git a/tools/cooja/contiki_tests/ip_cooja_telnet_ping.info b/tools/cooja/contiki_tests/ip_cooja_telnet_ping.info index 07257425a..b86a8e029 100644 --- a/tools/cooja/contiki_tests/ip_cooja_telnet_ping.info +++ b/tools/cooja/contiki_tests/ip_cooja_telnet_ping.info @@ -1 +1,2 @@ -1xContiki node: examples/native-ip/telnet-server.c. Sends 10 pings to 172.16.0.1 via the native IP stack. Test succeeds if more than 5 ping replies are received. +Five Contiki motes in a line, all running examples/telnet-server/telnet-server.c. Mote 1 (172.16.1.0) is connected to the native network via Native IP Gateway. +Test succeeds if all five nodes can be pinged from the native network (at least 10/20 ping replies must be received from each mote).