Please send questions to tinyos-help; that way, they're archived for people to read in the future. Answer follows.

On Apr 13, 2006, at 1:44 AM, Omprakash Gnawali wrote:


Hi Phil,

Do you know if TOSSIM in dev branch is working?

In apps/Blink/BlinkC.nc:

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


Then, make micaz sim.

Then in Python:

from TOSSIM import *
t = Tossim([])
m = t.getNode(32);
m.bootAtTime(45654);
import sys
t.addChannel("Boot", sys.stdout);
t.runNextEvent()

I don't see the message but it returns 1.

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

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to