Last Updated on October 18, 2006 6:33 AM .
Note: As of 11/03/2005, the latest version of Agilla is distributed through TinyOS's CVS repository. For instructions on how to install previous versions, click here.
Makefile.Agilla
file
containing local settings within $TOSROOT/contrib/wustl/apps/Agilla
.
Simply copy the example file
included with Agilla:cd $TOSROOT/contrib/wustl/apps/Agilla
cp Example\ Makefile.Agilla Makefile.Agilla
$TOSROOT/contrib/wustl/apps/Agilla/README
for details
on how to customize Makefile.Agilla.$TOSROOT/tos/platforms/<platform>/HPLUART0M.nc
and
change outp(15, UBRR0L);
to outp(7,
UBRR0L);
.$TOSROOT/tools/make
.
Customize it to your liking, e.g., choose the appropriate radio
frequency and group id.cd $TOSROOT/contrib/wustl/apps/Agilla/
make [platform]
make [platform] reinstall.[id][programming board],[port]
cd $TOSROOT/contrib/wustl/apps/Agilla/
make telosb
make telosb reinstall.0 bsl,4
cd $TOSROOT/contrib/wustl/apps/Agilla/
make mica2
make mica2 reinstall.1 mib510,/dev/ttyS0
edu.wustl.mobilab.agilla.AgentInjector
.
washu.sh
installed in /etc/profile.d
,
it will run /opt/tinyos-1.x/contrib/wustl/tools/java/javapath
which
will ensure the above directory is in your classpath. You can view your
classpath by typing the following command:echo $CLASSPATH
$TOSROOT/contrib/wustl/tools/java/edu/wustl/mobilab/agilla
and
copy
the file "Example Makefile.Agilla" into "Makefile.Agilla".cd $TOSROOT/contrib/wustl/tools/java/edu/wustl/mobilab/agilla cp Example\ Makefile.Agilla Makefile.Agilla makeFinally, compile the AgentInjector:
makeThis will generate all of Agilla's messages using mig and compile the AgentInjector.
cd $TOSROOT/contrib/wustl/tools/java/ cp Example\ agilla.properties agilla.propertiesThis will tell the AgentInjector to by default open the 3Blink mobile agent that simply blinks all 3 LEDs three times and then dies.
$TOSROOT/tools/java
. cd $TOSROOT/contrib/wustl/tools/java java -Djava.security.policy=java.policy edu.wustl.mobilab.agilla.AgentInjector \ -comm COM1:57600 -d &
You should see the following GUI:
Ctrl+r
while looking at the motes. They should
all turn on all 3 LEDs on for 1 second indicating that they are
resetting. If this does not occur, ensure that a mote is correctly attached
to the PC.
Refer to the troubleshooting section if
you continue to have problems injecting agents.TOS Address
box, and
then click on the Inject Agent!!
button. The 3Blink agent will then be compiled
and injected into the network. Watch the mote attached to the PC. It should
blink its LEDs 3 times each time you inject this agent.