> 
> Your channel is BlinkC, not Boot.
> 
> Also, the Booted event is not assured to be signaled in the first  
> event. The boot event represents the OS, not the node, booting. There  
> might be a bunch of hardware events/tasks (which are TOSSIM events)  
> before the Boot.booted() event is signaled.
> 
> Phil
> 


The BlinkC vs. Boot channel was a typo in the command I sent to the
mailing list. Here is what my BlinkC looks like (the only change is
adding dbg message in booted():

  event void Boot.booted()
  {
    dbg("BlinkC", "booted\n");
    call Timer0.startPeriodic( 250 );
    call Timer1.startPeriodic( 500 );
    call Timer2.startPeriodic( 1000 );
  }

  event void Timer0.fired()
  {
    dbg("BlinkC", "Timer 0 fired @ %s.\n", sim_time_string());
    call Leds.led0Toggle();
  }

  event void Timer1.fired()
  {
    dbg("BlinkC", "Timer 1 fired @ %s \n", sim_time_string());
    call Leds.led1Toggle();
  }

  event void Timer2.fired()
  {
    dbg("BlinkC", "Timer 2 fired @ %s.\n", sim_time_string());
    call Leds.led2Toggle();
  }


Here is TOSSIM. I see times such as 2500045654L, 5000045654L,
10000045654L - does that mean the timers are firing? I am still not
able to get the debug messages.

>>> from TOSSIM import *;
>>> t = Tossim([]);
>>> m = t.getNode(32);
>>> m.bootAtTime(45654);
>>> import sys;
>>> t.addChannel("BlinkC", sys.stdout);
>>> m.isOn();
0
>>> t.runNextEvent();
1
>>> m.isOn();
1
>>> for i in range(50):
...     t.runNextEvent();
...     t.time();
...
1
45754L
1
45854L
1
78170654L
1
1250045654L
1
2441451904L
1
2441452004L
1
2441452104L
1
2500045654L
1
2500045654L
1
3691451904L
1
4882858154L
1
4882858254L
1
4882858354L
1
4941451904L
1
5000045654L
1
6132858154L
1
7324264404L
1
7324264504L
1
7324264604L
1
7382858154L
1
7500045654L
1
8574264404L
1
9765670654L
1
9765670754L
1
9765670854L
1
9824264404L
1
10000045654L
1
11015670654L
1
12207076904L
1
12207077004L
1
12207077104L
1
12265670654L
1
12500045654L
1
13457076904L
1
14648483154L
1
14648483254L
1
14648483354L
1
14707076904L
1
15000045654L
1
15898483154L
1
17089889404L
1
17089889504L
1
17089889604L
1
17148483154L
1
17500045654L
1
18339889404L
1
19531295654L
1
19531295754L
1
19531295854L
1
19589889404L
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to