It is a verification that parts of the communications path are working correctly. The best way is with a mirror node (its what ping does). But what he would like to do requires that an interface be able to hear itself. I don't think any of the tinyos mote nodes can do that.
Alternatively the stack can have provisions for looping data back if it is addressed to itself. Given the limited resources that motes have I don't see the benefit of that. Ping is fine. But that is one reason why you would want this kind of capability. eric On Wed, Oct 14, 2009 at 1:26 PM, Raffaele Gravina < [email protected]> wrote: > I think there's no way you can send something to yourself without any > "mirror" node (and, btw, why you should need that if you already have the > info you would like to receive?).The CC2420 can either receive or > transmit, but can't do both at the same time. > > - raffaele > > 2009/10/14 <[email protected]> > >> Hi, >> >> I am using TinyOS-2.x. >> >> I am trying to send a packet from a node to itself. >> I tried >> AMSend(TOS_NODE_ID, &pkt, sizeof(PKT)); >> but the node didn't receive anything. >> >> I installed another mote with the same exact program, but changed sending >> part to >> AMSend("id of the first mote", &pkt, sizeof(PKT)); >> and confirmed that the first node is receiving the packet from the second >> mote. >> This means that the sending and receiving part is fine. >> >> So, I think the problem is that AMSend does not send a packet to the >> sending node. >> Is there any way to send a packet to the sending node? >> What should the first argument of the AMSend be?? >> >> Thank you in prior:) >> >> >> Kenji >> >> >> -------------------------------------- >> GyaO! - Anime, Dramas, Movies, and Music videos [FREE] >> http://pr.mail.yahoo.co.jp/gyao/ >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > > > > -- > Raffaele Gravina | Research Engineer > > Wireless Sensor Networks Lab Berkeley > 2000 Hearst Ave, suite 304 > Berkeley, CA 94709 > +1 510 666 0174 ext. 101 > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
