Hi Kang, Thanks for your response. I've looked into this a bit more now.
Would the best approach be to copy this message handler along with the "DataM" configuration wiring from the MultiHopDataM.nc and MultiHopData.nc and paste into DeltaM.nc and Delta.nc, respectively? Note that doing so would include cloning all the "helper functions" defined within the MultiHopDataM.nc, including forward(), update(), enqueue(), is_empty(), is_full(), m_fwdqueue, etc. This doesn't seem right. It also doesn't seem right to add unicast messages in the MultiHopData component level. Is there any documentation which describes how this is done? Any other details would be helpful. Thanks, Tim -----Original Message----- From: KANG HUI [mailto:[EMAIL PROTECTED] Sent: October 16, 2006 12:41 AM To: Tim Spargo Cc: [email protected] Subject: Re: [Tinyos-help] Receiving Delta Messages >From the code in MultihopDataM.nc, we can note that this component does provide DataM.receiveMsg to handle unicast particular message. It is implemented in Line 399 in MultiHopDataM.nc. Hui On Sun, 15 Oct 2006, Tim Spargo wrote: > Hi, > > I am using Tmote sky mote with Delta application (which uses Multihop). > > Could someone please point me to a basic Application/code snippet which > receives messages? Please include any event handler code. I would like to > send messages from the base stn. to a paricular mode in the Network. > > >From the tmote-sky-quickstart.pdf it says to use: > > components Multihop; > ... > AppM.Send -> MultiHop.Send[APP_ID]; > AppM.Receive -> MultiHop.Receive[APP_ID]; > > However I get a compile error on the Receive statement only, since Multihop > doesn't appear to provide the Receive interface. I am able to get a clean > compile using the GenericComm component, but I am guessing I will run into > trouble with Multihop. > > Another idea is to just use the "Intercept" interface to process the > message, and forward message not addressed to this mote. > > Thanks, > Tim > > _______________________________________________ > 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
