Click
here for
downloading the source code.
Description
MySurge is an application that implements MultiHop ad-hoc routing
in the motes, forming a wireless sensor network. It is designed to be
used in conjunction with the SurgeListen tool. Each node forwards
their local address to the base station, which is mote 0 in this case.
Mote 0 then forwards all the packets to the serial port of the PC it
is connected to(It is tossim-serial in this case). The SurgeListen
tool listens to the tossim serial port and reads every packet that comes
in on it. The application analyzes each packet and prints out the destination,
source and the data contained in each of the packets(which is the local
address of the node from which the packet was sent). Observe that this
program can easily modified by having the motes send sensor readings
instead of their local addresses. This sensor data can then be analyzed
at the PC connected to the base station, and even by remote machines
that are connected to this PC.
The nodes can also respond to broadcast commands from the base.
Please read the
readme.txt file that comes with the code on how to run it.