[Tinyos-help] What's the unit for booting nodes up in TOSSIM?

EunKyung Lee ssinji79 at gmail.com
Thu Feb 7 10:22:07 PST 2008


t.getNode(0).bootAtTime(10000000);
t.getNode(1).bootAtTime(20000000);
t.getNode(2).bootAtTime(30000000);
t.getNode(3).bootAtTime(40000000);
t.getNode(4).bootAtTime(50000000);
t.getNode(5).bootAtTime(60000000);
t.getNode(6).bootAtTime(70000000);
t.getNode(7).bootAtTime(80000000);
t.getNode(8).bootAtTime(90000000);

I booted the nodes up in this way .
I thought this could be 0.1 ms = 100,000,000 ns

but when I check the time in simulation in tossim  using function
sim_time_string()
It is 0.01ms.

DEBUG (0): (0:0:0.001000000) RadioCountToLedsC: Booted!!
DEBUG (1): (0:0:0.002000000) RadioCountToLedsC: Booted!!
DEBUG (2): (0:0:0.003000000) RadioCountToLedsC: Booted!!
DEBUG (3): (0:0:0.004000000) RadioCountToLedsC: Booted!!
DEBUG (4): (0:0:0.005000000) RadioCountToLedsC: Booted!!
DEBUG (5): (0:0:0.006000000) RadioCountToLedsC: Booted!!
DEBUG (6): (0:0:0.007000000) RadioCountToLedsC: Booted!!
DEBUG (7): (0:0:0.008000000) RadioCountToLedsC: Booted!!
DEBUG (8): (0:0:0.009000000) RadioCountToLedsC: Booted!!

What's the unit for using bootAtTime(___) function?

Please correct my opinion if i'm wrong
and any reply will be appreciated .. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080207/93dbd192/attachment.html


More information about the Tinyos-help mailing list