you filter it at any level but I thnk the best would be to change the
CC2420Receive file, specifically at

if (passesAddressCheck(m_p_rx_buf, m_p_rx_buf->data) && length >=
CC2420_SIZE) {

      m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf->data,
                       length - CC2420_SIZE);
    }

I beleive you can also add another check here in addition to
passesAddressCheck!

On Mon, Sep 13, 2010 at 7:45 PM, mojtaba raznahan <
[email protected]> wrote:

> Hi Dear Jeonghoon,
>
> Thanks for your answer.
>
> I didn't get your solution.May be I'm not making myself clear.
>
> I want to avoid signaling the Receive.receive event.
> The scenario is this:
> when we use AMSend.Send(*node1*,...)(I mean not broadcasting),every other
> node in the listening node of sender will receive the signal,But because the
> destination of the message is *node1* so only this node will receive the
> packet(Receive.receive of other nodes will not triggered). I want to add
> another factor(beside the destination of the message). for example a
> variable in the node.So if we are sending a message to *node1*,the message
> should be received by a node by the the address of *node1* as well as
> having the mentioned factor.
>
> Any Solution?
>
>
> On Mon, Sep 13, 2010 at 5:41 PM, Jeonghoon Kang <[email protected]>wrote:
>
>> Hi,
>>
>> How about trying to use different AM type.
>>
>> command send[1]
>> command send[2]
>> event receive[1]
>> event receive[2]
>>
>> or
>>
>> if (NODE_ID == 0x00) { ~~~ }
>>
>> Jeonghoon Kang
>> Managerial Researcher
>> at Korea Electronics Technology Institute(www.keti.re.kr)
>> TinyOS Korea Forum Administrator
>> www.tinyos.or.kr
>> work = [email protected]
>> private = [email protected]
>> www.pinkfloyd.re.kr/rnd/
>> *Kmote Connector
>> http://www.tinyos.re.kr/bbs/upload/kmote_connector.pdf
>>
>>
>>
>>
>> 2010/9/11 mojtaba raznahan <[email protected]>:
>>
>> > Hi,
>> >
>> > How can I filter a message depending on some feature of nodes ?I mean a
>> way
>> > to prevent the Receive.receive from being signaled.
>> >
>> > your help would be highly appreciated.
>> >
>> > --
>> > Mojtaba Raznahan
>> > BS of Computer engineering
>> > TMU university
>> > www.raznahan.com
>> >
>> > _______________________________________________
>> > Tinyos-help mailing list
>> > [email protected]
>> >
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >
>>
>
>
>
> --
> Mojtaba Raznahan
> BS of Computer engineering
> TMU university
> www.raznahan.com
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to