[Avrora] Confusing Behavior

Marco Antonio Lopez Trinidad marco.lopez at unige.it
Fri Feb 20 07:47:44 PST 2009


In the simulation command when you write:

avrora <simulation-options>, TosBase, Prog1, Prog2, ...

The virtual nodes take the ID value from the topology.top file.

It means,

TosBase will be executed by node0,
Prog1 runs in node1,
...
and so on.

Whether you write in the command line just two programs.

Then the first will run in node0 and the other will run in all the rest of the
virtual motes.

ciao,
--marco.

> 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
>
>
> --
>
> _______________________________________________
> Avrora mailing list
> Avrora at lists.ucla.edu
> http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora
>





More information about the Avrora mailing list