[Tinyos-help] Multihop application with multiple data packets

Paul Bender bender.13 at wright.edu
Thu May 8 19:29:52 PDT 2008


Hi Folks,

  First, I appologize for the incomplete message I sent previously.  I was 
too fast on the send button.  Now, to my problem....

  I have an application written for TinyOS 1.x that I am converting from
a broadcast application to a multihop application and I'm running into a
bit of a problem trying to send multiple packets which constitute a data
reading (and yes, each reading is large enough it must be spread over
multiple 
packets).

  The single hop application uses the SendMsg interface and has the
following psudocode structure:

   1) After a timer fires, Ask an I2C device to gather data
   2) When data collection is complete read the first packet's worth of data
   3) Use SendMsg to send that packet
   4) When SendDone is signaled 
        5) if packets remain read the next packet and goto step 3
        6) if no packets remain, reset the timer (which triggers step 1)

  I followed the example in the Surge application to convert the program
this far, but the multihop version has the same structure, but I only
receive routing messages and the first data packet on the base.

  Does anyone have any thoughts or suggestions as to what I should look
for to find the error which is causing only the one data packet to be
received?

  I have my sendDone toggling the yellow LED on the mote (a MICAz), and
the only time I see the LED activate is when I fire up another mote and
the sending mote receives a routing packet (since the receive in
MintRoute flashes the LED in this case.)  This leads me to believe that
sendDone is never called, but I can't figure out why.

Thanks,

Paul


More information about the Tinyos-help mailing list