From 6da45867baded41c2cbae7e39b10504156e1034c Mon Sep 17 00:00:00 2001 From: razvanm Date: Mon, 14 Jan 2008 18:12:46 +0000 Subject: [PATCH] Adjust the burn and burn-net script to work with the new Deluge T2. --- apps/tests/deluge/Blink/burn | 8 ++++---- apps/tests/deluge/Blink/burn-net | 24 +++++++----------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/apps/tests/deluge/Blink/burn b/apps/tests/deluge/Blink/burn index ce7b1b26..ce357e7a 100755 --- a/apps/tests/deluge/Blink/burn +++ b/apps/tests/deluge/Blink/burn @@ -20,8 +20,8 @@ fi if [ $# -ne 2 ]; then echo "Usage: $0 " - echo " For example, /dev/ttyUSB0" - echo " \"micaz\", \"telosb\"" + echo " /dev/ttyUSB0" + echo " micaz or telosb" exit 2 fi @@ -63,7 +63,7 @@ echo ============================= Compile a new Blink ======================== CFLAGS=-DBLINK_REVERSE\ -DDELUGE_BASESTATION make ${PLATFORM} echo =============================== Upload the image =============================== -${TOS_DELUGE} ${PORT} ${PLATFORM} -i 0 build/${PLATFORM}/tos_image.xml +${TOS_DELUGE} ${PORT} ${PLATFORM} -i 1 build/${PLATFORM}/tos_image.xml echo ' +----------------------------------------------------------------+' echo ' | |' @@ -80,4 +80,4 @@ echo ' +----------------------------------------------------------------+' read echo =========================== Reboot the base station ============================ -${TOS_DELUGE} ${PORT} ${PLATFORM} -b 0 +${TOS_DELUGE} ${PORT} ${PLATFORM} -dr 1 diff --git a/apps/tests/deluge/Blink/burn-net b/apps/tests/deluge/Blink/burn-net index 26debcdc..0d94b40c 100755 --- a/apps/tests/deluge/Blink/burn-net +++ b/apps/tests/deluge/Blink/burn-net @@ -7,8 +7,8 @@ fi if [ $# -ne 2 ]; then echo "Usage: $0 " - echo " \"micaz\", \"telosb\"" - echo " how many motes will be used in the test" + echo " micaz or telosb" + echo " how many motes will be used in the test" exit 2 fi @@ -80,30 +80,20 @@ echo ' +-----------------------------------------------------+' read echo ============================= Start dissemination ============================== -${TOS_DELUGE} ${PORT} ${PLATFORM} -d 1 +${TOS_DELUGE} ${PORT} ${PLATFORM} -dr 1 echo ' +------------------------------------------------------------+' echo ' | |' echo ' | The dissemination is completed when the second and third |' echo ' | led from all the motes except the last one stops blinking. |' echo ' | |' +echo ' | After a mote gets the whole image he will reboot and |' +echo ' | reprogram itself. If the new image contains Deluge he will |' +echo ' | continue participating in dissemination. |' +echo ' | |' echo ' | In the next step the motes will be rebooted to allow the |' echo ' | reprogramming to take place. |' echo ' | |' -echo ' | Press ENTER to continue... |' -echo ' | |' echo ' +------------------------------------------------------------+' -read -echo ===================== Trigger the reboot in the new image ====================== -${TOS_DELUGE} ${PORT} ${PLATFORM} -r 1 - -echo ' +-------------------------------------------------------------+' -echo ' | |' -echo ' | All the motes except the last one should reboot, reprogram |' -echo ' | the internal flash with the new image and start running it. |' -echo ' | The end result should be that the last led (blue/yellow) |' -echo ' | from all the motes except the last one is blinking. |' -echo ' | |' -echo ' +-------------------------------------------------------------+' -- 2.39.2