Outline:
Getting Started
How To Program
Available Components
Running a Data Collection Demo
- What you need: mote, parallel port programming device (cable for weC
mote, Programming Board for Rene), TOS tools
(described below)
Now let's take a look at the steps you need to go through to compile
and install a simple application. Once you have extracted the TOS source
and compiled the required tools, go into the tos directory and type make.
This will generate all of the component header files and then compile the
application. Next connect the device to your programming cable/board and
connect the cable/board to the parallel port of the computer. Then type
make install to have the application programmed into the device. You
should now be running the blink application and seeing the three lights blink as
a binary counter.
The make file uses the DESC variable to determine which application description file to use in compilation. To change the application that you want to have compiled and installed, changed the DESC variable to point at another application contained in the apps directory. Then run "make clean" and repeat the compilation/installation process.
see README or Component Lists
Our basic data collection demo contains 4 pieces
Starting with a collection of devices, program one of them to be a base station by:
Then program the rest of them to be data collection nodes by:
Once you have all of the devices programmed, connect the base station to the serial port of your PC. Then start the graphical display by going into the surge directory and running 'java surge'. Finally, run the data forwarder by running ./forwarder in the surge directory. This program will open the UART of the PC and forward data to the graphical display. Each of the mobile nodes (that are turned on) will slowly appear on display screen as they report their data readings and are discovered by the base station.
FAQs