On Aug 4, 2008, at 5:54 PM, Hazem Al- Ojeh wrote: > Hi Philip, > > Thanks for the reply, I did read TEP 106, that is where I thought I > can use the > Scheduler provided instead of writing my own loop. I went through the > implementation of SchedulerBasicP and I think I understand how it is > being used. > > I tried following the structure shown in SchedulerBasicP in my own > code so I can > understand how it works and it did work; as in, it did replace > everything > perfectly, and by using pushTask(id) and popTask(), I was able to > add and remove > tasks from the m_tasks[NO_TASK] array. > > However, the problem remains in radio communication! I mean I use the > Scheduler.taskLoop() to loop through all the tasks, and if I send > more than one > task to another node over the radio communication, only the first > actually gets > sent (given that I use a busy flag as shown earlier in the > tutorials). If I > remove the busy flag, then only the last task is being sent. I > expected that if > I make multiple send request through radio communication they would > be added to > a queue and eventually all be sent. > > So I am not really sure if I misunderstood TEP 106, or maybe I am > having this > problem because I am trying to run this on TOSSIM. I would really > appreciate > your opinion.
TOSSIM does not model CPU execution time. If you simply cycle through tasks, then almost no time will have passed since the first one executed. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
