>
> Dear Mr. Philip Levis,
>   Firsrtly,I am so sorry for post this mail to a wrong address.
>   I'm doing simulation with TOSSIM in TinyOS 2.x.I have a question about
> "runNextEvent()".
> I did the simulation according to the TinyOS_Tutorials lesson 11(TOSSIM)
> for RadioCountToLeds .There was a strange result that was not similar to the
> result tutorials showed out.
> The result is:
> 1  2 -54.0
> 2  1 -55.0
> 1  3 -60.0
> 3  1 -60.0
> 2  3 -64.0
> 3  2 -64.0
> DEBUG (1): Application booted.
> DEBUG (1): Application booted again.
>
> DEBUG (1): Application booted a third time.
> DEBUG (2): Application booted.
> DEBUG (2): Application booted again.
> DEBUG (2): Application booted a third time.
> DEBUG (3): Application booted.
> DEBUG (3): Application booted again.
>
> DEBUG (3): Application booted a third time.


I can't see the result as follows:

DEBUG (1): RadioCountToLedsC: timer fired, counter is 1.
DEBUG (1): RadioCountToLedsC: packet sent.
DEBUG (2): RadioCountToLedsC: timer fired, counter is 1.
DEBUG (2): RadioCountToLedsC: packet sent.
DEBUG (3): RadioCountToLedsC: timer fired, counter is 1.
DEBUG (3): RadioCountToLedsC: packet sent.
DEBUG (1): RadioCountToLedsC: timer fired, counter is 2.
DEBUG (2): RadioCountToLedsC: timer fired, counter is 2.
DEBUG (3): RadioCountToLedsC: timer fired, counter is 2.



> I had to change the script as this:
> for i in range(0, 100000):
>        t.runNextEvent()
>
> This time the result is also wrong.
> The mote' timer was fired continuously,but it can't trigger the event
> "sendDone()" or "receive()"
>
> Can you tell me the reason?
> I want to know what is runNextEvent and why the Timer was not fired
> according to the period I wrote in RadioCountToLedsC.nc
>
> Beg your answer! Thank you so much!
>


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

Reply via email to