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 issue here is changing the node ID at runtime, or burning a node ID onto a node that's restored when it reboots. Note that Deluge does the latter -- so if you use Deluge this isn't a problem. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
