Index of /support/SBT80v2/samplecode_SBT80v2
Name Last modified Size Description
Parent Directory 12-Feb-2008 19:16 -
SBT80app/ 25-Jul-2006 18:16 -
java code to run on PC/ 25-Jul-2006 18:16 -
_vti_cnf/ 12-Feb-2008 19:17 -
TinyOS and Java code for reading sensors in SBT80v2
The TinyOS and Java code for reading 8 sensor channels of SBT80v2 over the TelosB motes are available at http://www.easysen.com/support/SBT80v2
The sample application folder SBT80app consists of 2 header files (SBT80ADCmap.h and SBT80Msg.h), a configuration file (MobileNode.nc) and a module file (MobileNodeM.nc). It samples all 8 sensor channels in a sequence and transmit data to a PC.
The file ListenSBT80v2.java reads and displays the packets transmitted using the MobileNode application above.
1. Program one TelosB mote with the MobileNode application given here.
(a) Copy and unzip the folder SBT80app into the /opt/tinyos1.x/apps folder in your TinyOS installation
(b) Connect TelosB mote to the PC USB connector and execute the command
make telosb install inside the folder SBT80app to install the application
(c) Connect the sensor board SBT80v2 to the expansion connector of the TelosB mote
2. Program a base station with the generic TOSBase application
(a) Connect another TelosB mote to the PC USB connector and execute the command
make telosb install inside the folder /opt/tinyos1.x/apps/TOSBase
3. Display sensor readings on PC
(a) Copy the java program ListenSBT80v2.java to the folder /opt/tinyos1.x/tools/java/net/tinyos/tools in your TinyOS installation
(b) compile by executing the command javac ListenSBT80v2.java inside the same folder
(c) set the MOTECOMM variable to read the USB port properly according to the TinyOS tutorial guide
(d) run the java application by executing the command java net.tinyos.tools.ListenSBT80v2
This should produce a display of sensor readings from all 8 channels on the cygwin window.