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]> 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]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

Reply via email to