[Tinyos-help] unicast problem
Pablo Gil Montaño
pgilmon at yahoo.es
Sun Feb 25 11:17:14 PST 2007
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 <romano at gandalf.sssup.it>
Para: tinyos-help at Millennium.Berkeley.EDU
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
Tinyos-help at Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070225/5c19843a/attachment.html
More information about the Tinyos-help
mailing list