Hi,
how are you sending the packet? did you try the "Ieee154Send.send"
interface (provided by CC2420Ieee154MessageC)?
Try also to use the "Ieee154Packet" interface (also provided by
CC2420Ieee154MessageC) to change the PAN.
Let me know what happens...
Kind regards,
Hussein
On 24/05/2010 23.05, sadun silva wrote:
hi,
Thank you very much for the quick reply.
i tried doing that. at the sending mote i set call
CC2420Config.setPanAddr(50); & did sync & syncdone (this is happening
because when i put an LedOn in syncdone it switches on)
& receive mote i did call CC2420Config.setPanAddr(51); did the same
like the sending mote
but still the receive mote gets the packets. even when i try sending
from different senders with different PanIDs the receive mote still
receive the packets
do you have any idea why is this? any help will be appreciated
thanks again
silva
On Mon, May 24, 2010 at 12:58 AM, Hussein Khaleel <[email protected]
<mailto:[email protected]>> wrote:
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]
<mailto:[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