Are you looking for a full dhcp-style application or do you want to know how to change the mote's address?
Changing the mote's address should be easy. At least in Tinyos 1.x, TOS_LOCAL_ADDRESS is just a variable (uint16_t). So, you should be able to change its value at runtime. I haven't ever needed to do this, but from the code I don't see any reason why you couldn't. Try it out and see. As for doing dhcp on motes, I don't know of any existing application that does this. I'm sure you can do it, but I don't know that you really want to. If you could give some details about what exactly you need, it might help. What kind of addresses are you assigning? 2-byte TinyOS addresses? IPv4? Do you need to be able to uniquely identify your nodes (i.e. do you need a unique node address (like a MAC address) as well as the dynamic one? Anyway, hope that helps. Jacob Sorber On 8/11/07, Itamar Amsili <[EMAIL PROTECTED]> wrote: > > Hi all, > I need to implemet an application of allocating an address to a mote in a > dynamic way, > i.e. after the mote is waking up, it's searching for a network to join, if > finding one- the network gives it > an address, and if not- allocating to itself an address. > Is anyone has an idea or example or kind of application i can use to help > me? > I need it ASAP... > > Thanks alot, > > Itamar > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
