Hi,

   Thought I'd mention a debugging technique that I found
useful and which others may also.

   It's often difficult to tell what's going on inside
a network of motes.  You can get some information by
sending out RF debug messages or sending data to a UART or
by blinking the LED's.  These methods have their limitations.
RF and UART messages are limited in how fast they can be received
and how close you are to the area of interest, especially
when you have a lot of senders.  The LED's are only three bits 
of information.
   Another technique is to program a mote (or several of them)
as probes that will light their LED's in reaction to specific
events.  This is especially useful for detecting the presence
or absence of RF messages.  You can wave your probe mote
around your network and find out what is happening in
the RF world.  You could do the same with a basestation
connected to a laptop, but the LED's on a mote are
much easier to see and correlate with what the LED's
on your network motes are telling you and you don't have
to deal with a cable.  You can also program the probe
mote to light an LED under very specific conditions
(i.e., "received msg and 4th data byte is 0x1c").

   Ron
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to