Hi, I'm a Politecnico di Milano student who's working on a thesis about power consumption in wsn. I'm using both powertossim and avrora with my code to evaluate mica2 energy consumptions. I've noticed, editing the base Blink code in tinyos-1.x, that if i use a TIMER_ONE_SHOT when calling a timer and then i do some math and turn on the leds i have a zero power draw with powertossim while i have some more reasonable values when i call a TIMER_REPEAT. when i compile i got this:
[EMAIL PROTECTED] /opt/tinyos-1.x/apps/Blink $ make pc mkdir -p build/pc compiling Blink to a pc binary ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"saten\" -DIDENT_HOSTNAME=\"mamt-xqbpx1q9k9\" -DIDENT_USER_HASH=0x1de5c307L -DIDENT_UNIX_TIME=0x4710f17eL -DIDENT_UID_HASH=0x82f5f902L Blink.nc -lm gcc: unrecognized option `-pthread' C:\Progra~1\cygwin\opt\tinyos-1.x\tos\platform\pc\PowerStateM.nc: In function `__nesc_nido_initialise': C:\Progra~1\cygwin\opt\tinyos- 1.x\tos\platform\pc\PowerStateM.nc:478: warning: passing arg 1 of `memset' discards qualifiers from pointer target type compiled Blink to build/pc/main.exe Is this something related to Tossim? I can't switch to use tinyos-2.x because avrora doesn't support any other platform than mica2, while powertossim for tinyos-2.x is supporting, as far as i know, only micaz. thanks for helping, sante gennaro rotondi
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
