I have tried by changing the environment variables. But even with the properly set environment variables, I got wrong results. I am not getting the reason behind that.

For 1.x the variables are set as
   
            TOSROOT  ="/opt/tinyos-1.x"
            TOSDIR    ="$TOSROOT/tos"
            CLASSPATH =`$TOSROOT/tools/java/javapath`
            MAKERULES ="$TOSROOT/tools/make/Makerules"

and for 2.x

          TOSROOT ="/opt/tinyos-2.x"
          TOSDIR  ="$TOSROOT/tos"
          CLASSPATH=`cygpath -w
                          $TOSROOT/support/sdk/java/tinyos.jar;.`
          MAKERULES="$TOSROOT/support/make/Makerules"

Thanks and Regards,
Mohan
     

On Tue, 25 Jul 2006 David Gay wrote :
>On 7/24/06, Philip Levis <[EMAIL PROTECTED]> wrote:
>>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
>
>It's a good idea to change TOSROOT too - it's used here and there.
>
>David Gay



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

Reply via email to