No worries. From what I understand, you have (at least) 2 nodes (A and B) communicating together. After A has sent a packet to B, A waits for 1,000 microseconds to see if B successfully receives the packet. I guess that A and B have the same piece of code.
In this case, A and B have the same message structure. A increments the number of sent packets after being signaled SUCCESS by sendDone(). B increments the number of received packets after its successful data reception somehow. A can then look at the field in message structure indicating the number of received packets. (This can be implemented in the sendDone() event) If it's *not* incremented, when the timer already hits 1,000 microseconds. A re-transmits the packet. The above is just *preliminary* idea. Not sure if it's what you want. Ittipong 2008/8/10 ram kishore <[EMAIL PROTECTED]> > > Hi, > Sorry for misleading.I am transmitting as well as receiving on the same > mote.After I transmit,I need to wait for 1000 micro seconds.If I get a > packet with this duration,I transmit next packet else re-transmit. > > My worry is I am not able to detect packet reception(even erroneous) from > senddone() event. > > Regards, > Kishore > > On Sun, Aug 10, 2008 at 3:56 PM, Ittipong Khemapech < > [EMAIL PROTECTED]> wrote: > >> Hi, >> >> I think that sendDone() is at the sending side *not* receiving side. If >> sendDone() returns SUCCESS, you may increment the number of sent packets. >> The other thing is modifying the code at the receiving side to increment the >> number of received packets. >> >> Hope this helps. >> Ittipong >> >> 2008/8/10 ram kishore <[EMAIL PROTECTED]> >> >>> Hi all, >>> Sorry for re-posting but desperate.After transmission, >>> senddone() is signaled.Being in senddone() event,How can I be notified that >>> packet has come? >>> Any interrupts?macros for detecting that packet has come(need not be >>> correct packet,just arrival)? >>> >>> Kindly Help, >>> >>> Regards, >>> Kishore >>> >>> _______________________________________________ >>> Tinyos-help mailing list >>> [email protected] >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> >> >> >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
