WS2 Usage Instructions
Step 1
Attach an IIB2400 interface board to the base station mote. Connect a USB cable from your PC to the interface board attached to the mote (not the mote itself). If you haven't already, find out the mote's port number by following Step 10 of UIUC's "Getting Started" guide.
Press the base station mote's reset button to make sure that it is on.
Step 2
In a Cygwin window, run:
cd $TOSROOT/apps/WS2-ARQ/java ./start-ws2 COMxx
where COMxx
is the name of the first ("data") COM port belonging to the mote's interface board.
Step 3
You will see a screenshot like the one shown below:
TODO: screenshot
Next to each mote ID, there will be a "Set Init Values" button. Press each of these buttons. As you press each button, the corresponding mote's LEDs will turn green.
Step 4
Press the "Start DLAC" button. The motes will begin blinking their LEDs blue or red. Wait until each of the motes turns its LEDs back to green.
The sensorboard driver may rarely crash on a mote. If this happens, then its LEDs will stay red and the Java application will display an alert. You will need to then reboot the mote by pushing its reset button.
Step 5
Once all of the motes have turned their LEDs green again, you can collect their results by pressing each "Get Results" button. When the mote's results are collected, the button will turn from red to green.
For validation purposes, you can collect intermediate results from a mote by pressing its "Get Root Params", "Get Raw Data", or "Get PS Data" button. Note that this data isn't needed to finish the computations, and it will take much longer to retrieve than the normal results.
Step 6
Finally, save the results to disk by pressing the Save Results button. This will complete the DLAC computations and write the final results to disk. You will find the results in C:\tinyos\cygwin\opt\tinyos-cvs\apps\WS2-ARQ\java\results
.