Installing java toolchain to connect Intel Mote 2 to a PC:
It should be possible to interact with deployed sensor networks from any PC. In TinyOS, this is accomplished by connecting a dedicated mote (a base station) to a PC. Base station provides a NIC interface to the sensor network through a virtual serial port. SerialForwarder java application further lets you map the virtual com port to a TCP port on your PC, where any number of applications (both local and remote) can connect.
iMote2 can be connected to a PC through the interface board (IIB2400) by connecting the mini USB port on the interface board to a USB port on your PC. FTDI USB drivers for Windows XP are required. After connecting iMote2 to a PC and pressing the reset button (iMote2 is powered off by default), two new virtual COM ports will be detected in Device Manager. The mote can send data to a UART which maps to the COM port with lower number. However, TinyOS java toolchain has not yet been configured for the iMote2 platform. We provide detailed instructions how to configure these tools in this document. It is assumed that you have finished installation of tinyos toolchain.
Step 1 Installing Java
export PATH=/cygdrive/c/Program\ Files/Java/jdk1.6.0_02/bin:$PATH
c:\Program Files\Java\jdk1.6.0_02\jre\lib\ext\ c:\Program Files\Java\jdk1.6.0_02\jre\lib c:\Program Files\Java\jdk1.6.0_02\lib\
c:\Program Files\Java\jdk1.6.0_02\jre\bin\
export CLASSPATH=".;c:/Program Files/Java/jdk1.6.0_02/lib/comm.jar" export CLASSPATH=$CLASSPATH:`$TOSDIR/../tools/java/javapath`
Step 2 Installing FTDI
Step 3 Configuring tinyos java toolchain for iMote2
$TOSROOT/tools/scripts/locate-jre --java
export TOS_PLATFORMS=C:/cygwin/home/brano/.platform.properties
Step 4 Test the setup
java net.tinyos.sf.SerialForwarder -comm serial@COM3:imote2 -port 9001the "Pckts Read" field in SerialForwarder GUI should start increasing