DIVISION OF ENGINEERING AND APPLIED SCIENCES
HARVARD UNIVERSITY
CS 263. Modern Distributed
Systems:
Wireless Communications and Sensor Networks
Prof. Matt Welsh
Fall 2005
|
General Documentation
These documents may be helpful if you get stuck:
Setting up a Telos environment on Windows
- Download and install TinyOS v1.1.11 package
available here.
- Start up Cygwin.
- Plug the Telos mote into a USB port on your PC. When Windows
is asks for its driver, it's available here.
- Type "motelist" under cygwin to see if the Telos mote is detected by
the system. If it is working correctly, you will see something
like this:
$ motelist
Reference CommPort Description
---------- ---------- ----------------------------------------
M4BQY1WI COM3 Telos (Rev A 2004-04-27)
- Upgrade TinyOS to v1.1.14 as described
here.
Make sure you type this to install the rpm:
rpm --force --ignoreos -Uvh tinyos-1.1.14Jul2005cvs-1.cygwin.noarch.rpm
Setting up a Telos environment on Linux (RedHat or Fedora Core)
- You must have GNU make v3.80 or later installed.
Type make -v to check which version you have.
- Download and install Sun Java J2SE 1.4.2 SDK from this website.
- Download and install Sun JavaComm from this website.
Apart from what described in the JavaComm documentation, you may need to do this to get the library loaded correctly.
As root, type:
cp commapi/lib/libLinuxSerialParallel.so /usr/java/j2sdk1.4.2_09/jre/lib/i386/
- Install nesc 1.1.2b available here.
- Follow the Linux installation instructions provided
here by the TinyOS team, except the Java part.
Install TinyOS 1.1.0 first and then upgrade to TinyOS 1.1.14.
Details regarding upgrading can be found
here.
- Install MSP430 tool chain:
- Type cd $TOSROOT/tools/src/mspgcc
- As root, type ./build-mspgcc install
where $TOSROOT is the root of your TinyOS installation
directory (e.g., /opt/tinyos-1.x).
- Make a symlink for the Telos-specific "Boot Strap Loader" for
MSP430. As root, type:
ln -s $TOSROOT/tools/src/mspgcc-pybsl/bsl.py /usr/local/bin/msp430-bsl
- Install pySerial, available here.
As root, type:
unzip pyserial-2.2.zip
cd pyserial-2.2
python setup.py install
- In order to allow TinyOS java applications to access the USB port, you need
to make a symlink that makes the USB serial port look like a
"standard" serial port. As root, type:
ln -sf /dev/ttyUSB0 /dev/ttyS1
Where /dev/ttyUSB0 is the USB port where your Telos mote will be
connected (/dev/ttyUSB0 should work in most cases).
/dev/ttyS1 should be an unused physical serial port. You can
pick another number if you want. If you choose /dev/ttyS1,
then the Telos mote can be accessed using
export MOTECOM=serial@/dev/ttyS1:telos
when you run Java applications that talk to the motes serial port.
(This is explained in the TinyOS tutorial.)
- Set the following environment variable:
export MAKERULES=/opt/tinyos-1.x/tools/make/Makerules
where /opt/tinyos-1.x is the location of your TinyOS
installation directory.