Messages will be lost. Get over it...

The number will vary depending on the distance
between motes, and whether they can all "hear"
each other (see Hidden Node Problem). I think
TOSSIM has a whole modeling system for testing
message failures, but I've never used the sim.

I also found that throttling sends with up to 10ms
between them helped greatly in small systems. See
this old report:
     http://www.etantdonnes.com/Motes/report_mica2/

MS

Kartik Siddhabathula wrote:
> Hi Harshal,
> 
> As from your output it is clear that the receiver mote is able to get 
> the messages.
> The problem must be in the simultaneous sending. The problem I faced was 
> also when I was sending simultaneously that's why I wanted to know what 
> is the buffer size for receiving.
> 
> As far as I my understanding goes, the reason must be that when the 
> receiver receives the messages, it keeps in the buffer till it is 
> processed (crc check etc). While it is processing a packet and another 
> one arrives it puts them in the buffer queue.
> 
> Kartik
> 
> --- On *Mon, 7/19/10, harsh...@cse.iitk.ac.in 
> /<harsh...@cse.iitk.ac.in>/* wrote:
> 
> 
>     From: harsh...@cse.iitk.ac.in <harsh...@cse.iitk.ac.in>
>     Subject: Re: [*] [Tinyos-help] Regarding sending and receiving
>     To: "Kartik Siddhabathula" <siddhabathulakar...@yahoo.com>
>     Cc: tinyos-help@millennium.berkeley.edu
>     Date: Monday, July 19, 2010, 3:50 AM
> 
>     Hi Kartik,
>     Thanks for your reply. I did what you suggested and got the
>     following output:
>          X=91
>          X=94
>          X=86
>          X=90
>          X=83
>          X=88
>          X=77
>          X=86
>          X=89
>          X=89
> 
>     According to this, most packets are received, which is good. However, in
>     my application I am still facing the same problem. In that app, many
>     nodes
>     try to send at a time to a particular node. More concretely, in (TOSSIM
>     simulation of) a 25 node network, about 20 nodes send a message to a
>     particular node of which only 7-8 are seen to be received by it. Could
>     this simultaneous sending be a reason for that node to not to
>     receive all
>     the messages?
> 
>     Regards,
>     Harshal
> 
> 
>      > Hi Harshal,
>      >
>      > I got over the problem. I tested some code two days back and I
>     found that
>      > I was receiving some where between 89 to 99 messages out of 100
>     messages.
>      > I am not sure how I overcame the problem though I hadn't made
>     much changes
>      > to the code!
>      >
>      > Try to do this: Have one sender and one receiver.
>      > Sender sends 1000 messages and each message is a number one more
>     than the
>      > previous one.
>      >
>      > At the receiver have two variables X and Y initialized to 0.
>      > let's say the received number is z,
>      > do if z<Y+100 then X++
>      > else save the value of X in the log and then do X=0 and Y=Y+100.
>      >
>      > Get the log and then let me know the results.
>      >
>      > Kartik
>      >
>      >
>      > --- On Sun, 7/18/10, harsh...@cse.iitk.ac.in
>     </mc/compose?to=harsh...@cse.iitk.ac.in> <harsh...@cse.iitk.ac.in
>     </mc/compose?to=harsh...@cse.iitk.ac.in>>
>      > wrote:
>      >
>      > From: harsh...@cse.iitk.ac.in
>     </mc/compose?to=harsh...@cse.iitk.ac.in> <harsh...@cse.iitk.ac.in
>     </mc/compose?to=harsh...@cse.iitk.ac.in>>
>      > Subject: Re: [*]  [Tinyos-help] Regarding sending and receiving
>      > To: "Kartik Siddhabathula" <siddhabathulakar...@yahoo.com
>     </mc/compose?to=siddhabathulakar...@yahoo.com>>
>      > Cc: tinyos-help@millennium.berkeley.edu
>     </mc/compose?to=tinyos-h...@millennium.berkeley.edu>
>      > Date: Sunday, July 18, 2010, 11:46 PM
>      >
>      >> Hi All,
>      >>
>      >> I have a question regarding the buffers. I am using tinyos-2.x and
>      > telosb
>      >> motes. From one mote I sent a message 100 times, but another
>     mote which
>      > was configured to receive the messages received less messages.
>      >>
>      >> Once it received the message only thrice and the maximum is 57
>     messages.
>      > The no of messages received (on average) is 30.
>      >>
>      >> What could be the reason, any ideas?
>      >>
>      >> Thanks in advance,
>      >> Kartik
>      >>
>      >>
>      >>
>      >>       _______________________________________________
>      >
>      >
>      > Hi,
>      > I am facing a similar problem to the one above. It would be
>     really great
>      > if someone provides some pointers.
>      >
>      > Regards,
>      > Harshal
>      >
>      >
>      >
>      >
>      >
>      >
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to