hi Hussein,

sorry for getting late to reply .
Are you sure CC2420ActiveMessageP.nc and CC2420Ieee154MessageP.nc are
different in checking the PAN ID ? because even CC2420ActiveMessageP.nc is
attaching the PAN ID  before sending

for me both look the same.

as you said  what i'm going to do is , add another condition which checks
the packet is really intended to me (current node)  then do the necessary
stuff after that. in that condition i'll check for the group id.

let me try that.


thanks again

silva

On Tue, May 25, 2010 at 9:06 AM, sadun silva <[email protected]> wrote:

> thanks a lot! i really appreciate your help! i'll definitely look into your
> advice.
>  i'll keep you updated.
>
> thanks
>
> silva
>
>
> On Tue, May 25, 2010 at 4:08 AM, Hussein Khaleel <[email protected]> wrote:
>
>>  Hi, I've just noticed now that the "Receive" interface does not check for
>> the PAN address.
>> You can see that in the file CC2420ActiveMessageP.nc, look for
>> "AMPacket.isForMe", and you'll see that it doesn't count for the PAN
>> address, which is called here as "grp".
>> So, you can add another condition for it...
>>
>> Note: If you're using Ieee154Send you should look in the
>> "CC2420Ieee154MessageP.nc" for "Ieee154Packet.isForMe", PAN address is
>> called here "destpan".
>>
>> Let me know how it goes, cheers,
>> 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]>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