Assignment 1: Learning to program TelosB mote
Before you go through this assignment, please note
that you are responsible for returning the motes in working condition.
Also, be careful of static discharge and other things that can "fry"
a mote.
Items marked with * will be available in class on Aug. 29th.
Setting up a TelosB environment on Windows
Install tinyos-1.1.11-3is from TelosB install CD*. We highly recommend that you choose Complete Install. This will install Cygwin, Java, the MSPGCC MSP430 compiler, assembler, BSL (Boot Strap Loader), motelist, TinyOS files, and other programs.
Plug a TelosB mote* into a USB port and install FTDI USB Virtual COM Port Driver from the install CD.
Start up cygwin.
Run toscheck (it should be in your path -- a copy is also in tinyos-1.x/tools/scripts). If any errors are reported, make sure to fix the problems.
Setting up a TelosB environment on Linux
The install guide is available here.
Compile and Program
Identify the COM port using motelist command. This command will find the COM port your mote is on.
Compile
the TinyOS Application.
cd
/opt/tinyos-1.x/apps/Blink
make telosb
Program the TelosB mote.
make
install telosb
After the programming has been completed, the LED on the mote should blink on and off.
You should remove out one of the batteries when a mote is not in use. You do not need to put the batteries into the mote to program it: the mote receives power from the USB port when plugged in. We do not provide backup batteries.
Go through the TinyOS and TinyOS-programming tutorials
You should go through the TinyOS tutorial, which is included in the release as doc/tutorial/index.html. You do need to understand how to program motes, send and receive radio messages, use Listen and SerialForwarder to check data received from serial port. You also need to go through the tinyos-programming which is available here. You will not be able to complete the following assignments unless you follow the two tutorials.
Note: This assignment will not be graded.