CrossBow sensors have become very
popular as a standard research platform for Wireless Sensor Networks. This toolkit
developed in LabView helps easy data access, processing and even programming
of these tiny sensors. Most of the programs here are written for mica2
platform of sensor nodes. Each program is accompanied by its help file in the
VI. The programs need LabView 7.1 or higher to run.
The complete toolkit will be emailed to you after a payment of $50.00 is
·Serial Communication Read/Write Mica2
Authors: Prasanna Ballal, Vincenzo Giordano
The Basic Serial Read and Write example
performs a Serial Port Read, a Serial Port Write, or a combination of these
actions. The user selects the actions (read or write) on the front panel.
If both are selected, the VI will write the data first, read data, and then
close the VISA session that is opened to the port. This VI will wait until
the specified number of bytes is received at the port. Only the number of
bytes specified will be read. We can configure the Baud rate and COM
settings in the VI. The output gives the sensor number and sensor reading
if TOSMsg packet is used.
·Packet Builder for Mica2
Author: Prasanna Ballal
This VI builds packets for TOSMsg. It
automatically adds the CRC to the message. This is used in conjunction with
Basicserialrw.vi. TOSbase needs to be installed in the mote connected to
the serial port.
Author: Sankar Gorthi
This VI Unescapes the input TOS AM Packet
and returns the payload and the CRC with the message acknowledge type,
message type, length of the message, etc. For more details, refer to the
Deciphering TOS packets manuals available online.
Author: Sankar Gorthi
Running the TinyDB applications:
1) Program your motes with the TinyDB application.
2) Note the Baud rate of the motes and set it in the appropriate controls
in all the applications.
3) Run the Set Positions.exe application and place the motes at locations
which correspond to the physical positions of the motes.
4) Save the resulting Pos.txt (keep the file name as is) in the same folder
as the TinyDB EXE applications.
5) Make sure the SeqNo.val file is placed in the same folder too.
6) Run the desired application, setting the number of motes that are being
used, the baud rate, optional query ID (default 4).
7) Run the application.
8) If the Application hangs and the STOP button does not respond, halt the
application, reset the motes and make sure the batteries are fresh, the
serial port is connected etc.
This VI deciphers the Cricket packets from
listener motes which contain the distance measured to the Beacon. Using the
scheme shown in the VI, one can extract the appropriate data from the
received packet. More details on the packet structure and the Cricket
deployment scheme, refer to http://cricket.csail.mit.edu/index.php.
Also, this VI sets the Cricket mote to the Listener mode of operation
(assuming the mote's standard mode of operation is in the Beacon mode). The
Crickets are programmed with the default scheme provided in the Cricket
folder of the apps in the tinyos-1.x collection.
Still to come:
Program standard programs in TinyOS through