
When running SerialForwarder.

If MicaZ or Mica2 sensors are connected, be sure to 'unset TOS_PLATFORMS'
in /NOSA/net execute:

MICA2: java net.tinyos.sf.SerialForwarder -comm serial@COMX:mica2 -port 9001
MICAZ: java net.tinyos.sf.SerialForwarder -comm serial@COMX:57600 -port 9002


Where COMX is the serial port which the Base Station is connected to.
Active serial ports can be discovered in your Device Manager.

If Imote2 or Mica2 sensors are connected be sure to  set TOS_PLATFORMS
I use:

export TOS_PLATFORMS=c:/workspace/.platform.properties

'cat .platform.properties' should look like this:

mica=avrmote,2,19200
micaz=micaz,3,57600
mica2=avrmote,2,57600
imote2=micaz,3,115200

The execute:

IMOTE2: java net.tinyos.sf.SerialForwarder -comm serial@COMX:imote2 -port 9003

If you experience MSG_Length errors in SerialForwarder, typically you TOS_PLATFORMS
variable has not been set correctly.

Please only use the SerialForwarder version provided in the NOSA/net directory. It contains
a bug fix that allows more than one SerialForwarder instance to execute at anyone time.