[Tinyos-help] Unicast radio transmission
Pablo Gil Montaño
pgilmon at yahoo.es
Thu Sep 14 07:09:28 PDT 2006
Sorry, perhaps I didn't explain myself correctly.
The nodes that are sending the packets are not running TOSBase, but with a node running TOSBase I can see that the address field of the packet (PAN+address) is 0xFFFF 0x0001 (when I try to send a packet to node 1). I don't know if the field order is PAN + address o viceversa, so perhaps the destination address is correct and the PAN address is 0xFFFF. Anyway, ReceiveMsg.receive() is signaled on every node, not only in node 1. However, I think that ReceiveMsg.receive() should filter all the packets and deliver to the user of the interface only those packet directed either to all (bradcast) or to the node itself, so I think that I might be doing somthing wrong.
Any ideas?
Siirtola Harri <Harri.Siirtola at vtt.fi> escribió: TosBase only sends broadcast packets. So, the easiest way of unicast is to embed your destination address into the data payload and make your app sw extract it, compare to TOS_LOCAL_ADDRESS and act accordingly (drop or interpret).
Regards,
Harri
---------------------------------
From: tinyos-help-bounces at Millennium.Berkeley.EDU [mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of Pablo Gil Montaño
Sent: Thursday, September 14, 2006 2:54 PM
To: tinyos-help_list
Subject: [Tinyos-help] Unicast radio transmission
Hi.
I'm trying to send a packet throught SendMsg to a specific node. Scanning the sent packets with TOSBase I can see that the first argument passed to SendMsg.send() is set as the PAN address, and the field TOS_Msg.addr has no effect either on the PAN address or the destination address. Thus, I cannot change the destination address and the event ReceiveMsg.receive is signaled in all the nodes.
How can I send a packet that signals this event only in the destination node?
Thanks in advance
---------------------------------
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
---------------------------------
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060914/2814d143/attachment.html
More information about the Tinyos-help
mailing list