> > 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.
I'm not the original poster, but we use it so we can program all motes with the same image, which is essential when dealing with hundreds or thousands of nodes. Serial ID chips are not much use, because they are only unique if you use all of their bits, so you can't really use them as for AM addresses. Also, you don't need all your IDs to be unique, just those within the same deployment, or you'd run out of address space in no time. We've set it up so that if a node boots and doesn't have an address yet, it requests one from a base station, which hands out the next free ID within that deployment's AM group. We store the assigned ID in configuration flash and reboot the node so we don't have to worry about whether protocols support runtime address changes. Michiel _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
