WSNDemo Application

Preface

The WSNDemo application is intended to organize a wireless sensor network (WSN) composed of Atmel MeshBean boards. Each WSN node periodically reads the data of its on-board sensors (light, temperature and battery power) and sends them to coordinator, which in turn sends the data to the PC's COM port. A special GUI application named WSN Monitor running on the PC displays the network topology and sensor data in an easy-to-interpret graphical form.

Using the Boards

To start the WSNDemo, do the following:

  1. Using DIP swithches (see the table below) configure one node as a coordinator, and the others as routers/end-devices.
    DIP switchesRole
     1  2  3   
    ON OFF OFFCoordinator
    OFF ON OFFRouter
    OFF OFF ONEnd device
  2. Connect the coordinator node to a PC by USB or RS-232 cable.
  3. Power on the nodes to bring them to Standby state.
  4. Once the nodes are powered on, they start searching for network. Alternatively, if the CS_AUTONETWORK parameter defined in the configuration file has been changed to 0, the user has to press the SW1 button on each node, starting from the coordinator.
  5. Start WSN Monitor on the PC to which the coordinator is connected.

Coordinator organizes the wireless network automatically. The WSN activity may be observed in two ways, i.e. by on-board LEDs (see description in the table below) and via the WSN Monitor running on PC.  
Node State LED state
LED1 (Red)LED2 (Yellow)LED3 (Green)
Standbyblinking synchronously
Searching for networkblinkingOFFOFF
Joined to networkON  
  + receiving data blinking 
  + sending data  blinking
Sleeping (end device only)OFFOFFOFF

The source codes of WSNDemo application are located at [ZDK]\Sample Applications\WSNDemo directory.

WSN Monitor

WSN Monitor is a PC-based GUI diagnostic application for WSNDemo that is used to display the network topology and other information about the network. Run WSNMonitorSetup.exe located at [ZDK]\Evaluation Tools\WSNDemo (WSN Monitor)\ to install the program.

Take a look at the screenshot below. WSN Monitor displays the network tree in real time and updates it automatically as the nodes join or leave. The nodes are represented by icons with the node data tips. The links between the nodes are tipped with the link quality data. Sensor data for each node is recorded and may be visualized in graphs and in table at any time.

On startup, go to Tools, Settings, and select the proper communication port from the COM port list. Also, check that the Parse sensors as value is set to int-32, in order to read the sensors measurements correctly.

Use top-level program menu and toolbars to control the topology outlook.

 


Generated on Tue Oct 7 12:45:20 2008 for BitCloud Stack Documentation by  doxygen 1.5.1-p1