[Tinyos-help] about atomic block

2008-07-17 Thread m.khezri
Hello, I read the tinyos programming guide, but didn't understand exactly this part of manual(page 41) : The atomic block promises that these variables can be read and written atomically. Note that this does not promise that the atomic block won't be preempted. Even with atomic blocks, two code

[Tinyos-help] Testing Scheduler FIFO policy

2008-07-05 Thread m.khezri
Hello, I am testing TinyOS scheduler FIFO policy I change Blink application,add 3 tasks which execution of each task takes about 1 second (8 Million NOP instruction on Mica2 platform) task void Task0() { call Leds.led0Toggle(); waitLongTime(); }

[Tinyos-help] Counter32khzC component for mica platform

2008-07-03 Thread m.khezri
Hello Counter32khzC is available for pxa27x processor and provides LocalTime32khz interface. Mica platform have Counter32khz32C but this component doesn't provide localtime interface. is it possible to make component like Counter32khzC for mica platform? thank you.

[Tinyos-help] Measuring task execution time in TOSSIM

2008-06-14 Thread m.khezri
Hello, I want to measure task execution time in Tossim , I write a dummy task and use this code for measuring: . .. implementation { task void LongTask(); event void Timer.fired() { dbg(Log, LongTask() before run : %f\n,(double) sim_time() / sim_ticks_per_sec()); post LongTask();

[Tinyos-help] Building mica2 motes from schematic!

2008-05-31 Thread m.khezri
Hello all is it possible to build mica2 motes from schematic below? www.tinyos.net/hardware/design/ORCAD_FILES/*MICA2*/6310-0306-01ACLEAN.pdfhttp://www.tinyos.net/hardware/design/ORCAD_FILES/MICA2/6310-0306-01ACLEAN.pdf also sensor board from this file:

[Tinyos-help] problem with TOSSIM

2008-04-30 Thread m.khezri
Hi everyone! I am newbie at TinyOs and have a problem with TOSSIM I read the TinyOS tutorialshttp://docs.tinyos.net/index.php/TinyOS_Tutorialsand successfully install tinyos 2.x on Cygwin but i have problem with Debugging Statements. the problem is that dbg does not print anything on stdout or