Hi dear wasif, Thanks for answer.
Seems good idea. But when I change this file (under /opt/tinyos-2.1.1/tos/chips/cc2420/receive),there is no effect on any thing!even if i put a wrong line of code in the "CC2420ReceiveP.nc". (for example putting "asdasdasd" at the middle of the file!).I think i have to recompile this file but don't know how to do this.do you know? (I'm using "make micaz sim" and after that running the python script file) Thanks in advance. On Tue, Sep 14, 2010 at 2:11 AM, wasif masood <[email protected]> wrote: > > 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 > > -- 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
