[Avrora] Confusing Behavior

Mohammed Al-Saleh alsaleh at cs.unm.edu
Fri Feb 20 07:18:49 PST 2009


Thanks Roy, your are right. The problem is in my sender.
For some stupid reason, in the Send, I decided to put an exact receiver (2 
in my case assuming the receiver node id is 2). The thing that I did not 
suspect about this is that I can always see the receiver receives packets 
packets from the sender, but it turns out that it was receiving the packets 
then it drops them as soon as it knows that they are not sent to it. I now 
do AM_BROADCAST_ADDR so all can see what the sender is sending.
BTW, is there any way to change the default node numbering in Avrora (it 
seems that the first node is given id 0, the second 1, and so on)?

...Mohammed


On Thu, 19 Feb 2009 23:41:03 -0800, Roy Shea wrote
> Hello Mohammed,
> 
> >> avrora -platform=mica2 -seconds=30 -monirots=leds
> >> -simulation=sensor-network -nodecount=1,1 recv.od send.od
> 
> > BTW, the problem is not from "monitors" option I've misspelled in the 
email.
> 
> Then that command line looks right.  If you want, you can do a quick
> check using two instances RadioCountToLeds with this command line to 
> see what the proper LED output (for a RadioCountToLeds) should be.  This
> tested fine on my box using:
> 
> ----
> java -cp $HOME/local/avrora/bin avrora/Main -platform=mica2
> -seconds=30 -simulation=sensor-network -monitors=leds -nodecount=2
> app.elf
> ----
> 
> >> Something weird is happenning!
> 
> My guess would be that the problem is in either your recv or send
> program.
> 
> Best of luck,
> -Roy
> _______________________________________________
> Avrora mailing list
> Avrora at lists.ucla.edu
> http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora


--



More information about the Avrora mailing list