Pablo is correct; Moteiv's Boomerang distribution that includes SP does not perform destination address filtering; this exercise is left to the protocol/application.
-Joe On 2/25/07, Pablo Gil MontaƱo <[EMAIL PROTECTED]> wrote:
Hi Antonio perhaps you are using Moteiv's version of GenericComm or any other version that also has the following peculiarity: pay attention to the implementation of GenericComm that you are actually using and you will probably find that it is actually the same that the one for GenericCommPromiscuous. In the case of Moteiv's implementation this is related to the use of SP (which seems to be an advantage over older implementations). The thing is, no matter what the documentation says, some newer implementations of GenericComm don't filter any packets according to their destination address. It took me a long time to find out about this as a newbie beacuse I couldn't find which 'GenericComm.nc' file was actually being used when I compiled my programs (there were 'contribs' as well as the one in the main TinyOS tree). Eventually I found it and it turned out provide the same functionality as GenericCommpromiscuous. So that was the problem. Regards, Pablo Gil ----- Mensaje original ---- De: Antonio Romano <[EMAIL PROTECTED]> Para: [email protected] Enviado: lunes, 19 de febrero, 2007 13:45:57 Asunto: [Tinyos-help] unicast problem Hi for all. I use GenericComm for sending unicast message. in the provided interface sendMsg.send() this is the field address. In this field i fill the mote id of the receiver. But all the motes receive the message. One way to solve the problem (on application layer ) is to ceck in the receive event: if (msg->addr == TOS_LOCAL_ADDRESS)..... but the documentation of this interface tell that is posible to send unicast without this check. The MAC layer don't check this in tinyos? How i have to solve the problem? You have example code tested? Thanks in advance for help. __________________________________________ Ing. Antonio Romano RETIS Lab Scuola Superiore Sant'Anna via G. Moruzzi, 1 56124 Pisa (PI) ITALY tel: +39 050 882034 fax: +39 050 882003 __________________________________________ _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
