On Jul 24, 2006, at 4:24 AM, Mohan Hambar wrote:

Hi All,

I have recently installed tinyos 2.x source tree on my windows
machine keeping tinyos 1.x.

I am able to compile both (1.x and 2.x)apps.

But after installing tinyos 2.x, tinyos 1.x apps like surge are giving
absurd results.

Surge Result in xlisten:

health:  node id=1  parent=126  seq_no=8275984
battery    = 4969 mv
temperature = -273.15 degC
light:      = 0 ADC mv
AccelX:    = 1080.000000 g,        AccelY: = -9000.000000 g
MagX:      = 112.36 mgauss, MagY:  = 68.06 mgauss

Can anyone help in this regard?

TinyOS 1.x and 2.x use different serial packet formats. In TinyOS 1.x, serial packet formats are platform-specific. In TinyOS 2.x, the serial stack supports having different packet formats, and the basic format is platform-independent (so you no longer need platform- specific message structures for the base case). You therefore need to change your CLASSPATH based on which version you are using.

I've found that switching back and forth requires changing three variables:

CLASSPATH, for java support
TOSDIR, for the TinyOS source tree
MAKERULES, for the make system

Phil

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to