On Tue, Dec 8, 2009 at 4:56 PM, Philip Levis <[email protected]> wrote: > > On Dec 8, 2009, at 12:26 AM, Omprakash Gnawali wrote: > >> On Sat, Dec 5, 2009 at 7:25 AM, Faisal Aslam >> <[email protected]> wrote: >>> >>> Hi, >>> >>> It now finally works great. I did figure it out yesterday that I must >>> send >>> packets too using LinkEstimator. However, I did not realize that those >>> packets should be broadcast instead of unicast. Thanks a lot for your >>> help. >>> >>> I am happy that the TinyOS CTP protocol also works with Java applications >>> [1]. However, it has some strange behaviors. This behavior also persist >>> in >>> pure TinyOS applications. >>> >>> 1) If there is no root then a non-root mote does not send any packets. >>> However, when it once start sending packets then switching off the root >>> node does not make it stop sending those packets. That behavior is >>> strange for me and does not feel consistent? >> >> The difficulty is knowing if the root has been switched off or just >> not reachable at the moment... >> >> >>> 2) Assigning mote Id at runtime does not works. The motes have to be >>> assigned unique ids at compilation time. >> >> Yes. We have discussed this in the past. You need to handle the >> address changed event. We haven't made these changes yet. If dynamic >> address assignment starts to become common, we will need to handle >> this scenario. Can you explain why you are assigning addresses >> dynamically? Your example will help us understand how dynamic >> addressing is being used in practice. > > T2 makes a distinction between a node ID, which it assumes does not change > over time, and an AM address. The former is TOS_NODE_ID, the latter is > obtained through an interface. By default, the AM address is the node ID, > but you can change the address at runtime and things should still work.
The existing protocols will break for a while because they don't flush cached states upon address change. It should be possible to build this awareness into the network protocols. - om_p _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
