Hi, I think that when you use: call CC2420Config.setPanAddr, only the
PAN Address variable is changed in the mote,
so, in order to actually change the PAN Address you need to call the
CC2420Config.sync() command after the setPanAddr,
such that you should have something like this:
call CC2420Config.setPanAddr(newPANAddr);
call CC2420Config.sync();
You should also to note that after you call the sync command, the event
syncDone() will be signaled as an indication that the change
has been done (just in case you need to put something there)...
Try this and let's hope it works :-)
Kind regards,
Hussein
On 24/05/2010 4.23, sadun silva wrote:
Hi all,
I have a very strange problem. I’m just sending some packets to a
mote. But I change the PAN ID in the sending telosb mote using
CC2420Config.setPanAddr command.
I have another telosb with a totally different PAN ID which is sending
another packet. But the problem is the base station accepts both.
CC2420Config is wired to CC2420ControlC.
CC2420Config.setPanAddr is working because I checked it with
TestPromiscuous application.
I do not understand this. Can somebody help me in this?
Thank you
silva
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help