Hi,
Thank you for your answer. I found this command in CC2420ControlM: command result_t CC2420Control.setShortAddress(uint16_t addr) { addr = toLSB16(addr); return call HPLChipconRAM.write(CC2420_RAM_SHORTADR, 2, (uint8_t*)&addr); } And one call to CC2420Control.setShortAddress(TOS_LOCAL_ADDRESS) in task PostOscillatorOn() definition, in the same file. My question is , do I have anything more into account? What I would have to do would be to wire my MyApplication.CC2420Control with CC2420ControlM component, and then, whenever I want, call to setShortAddress(NEW_ADDRESS) with the new address, and as this information is saved in RAM memory (what I suppose by looking the HPLChipconRAM file), the mote would change the AM Address till the next time I call setShortAddress.Could this create any incompatibility with lower components or make install.<addr> command?Would I have to update this address in another place? By the way, I found TOS_LOCAL_ADDRESS in tos/system/tos.h file as : uint16_t TOS_LOCAL_ADDRESS = 1; where is TOS_LOCAL_ADDRESS defined in order to be used in other components? I did not find any #define command for TOS_LOCAL_ADDRESS in tos.h file. What happens if I have two nodes with the same Address in the same system? My Base Station will send both of them the same message, or they will have some problem? Thank you in advance -----Mensaje original----- De: Greg Hackmann [mailto:g...@cse.wustl.edu] Enviado el: martes, 17 de noviembre de 2009 19:55 Para: David Conde CC: tinyos-help@millennium.berkeley.edu Asunto: Re: [Tinyos-help] Node Addr and Group Addr On 11/17/09 2:21 AM, David Conde wrote: > Hi, > > Is there any way to change either Node Addr or Group Addr in > programatically way? > > My problem is that I would like to provide Telosb motes with a firmware > already installed to the end users (who are not TinyOS developers and do > not know anything about TinyOS), and They maybe could be using other > motes which could have the same Node Addr as I set for my the Telosb > motes, so, There would be a problem because it would exist two motes > with the same node addr. > > I would like allowing the End user to change this Node Addr in easy way, > I mean, the End User should not have the Cygwin or TinyOS environment to > do that, I thought to do that via RF or plug-in the mote in USB conector > in some way. Is there any solution or any work around about this? > > Thank you in advance Since you're using a CC2420 radio, look at the CC2420Config interface from the CC2420ControlC component. Greg Hackmann _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help