Application: Sensor Data Acquisition
Introduction

Due to rapid improvements in sensor and networking technologies, a large number of inexpensive and small sensors can be deployed in complex applications to obtain a variety of real-time data. For distributed sensor networks (DSNs) used in large unstructured geographical areas, wireless networks with low bandwidth are usually the only communication method among the sensors. Besides, the massively deployed sensors typically generate a huge amount of raw data with various characteristcs. Therefore, in order to minimize the consumption of the scarce resources such as battery power and network bandwidth, it is critical to collect only the information produced by necessary, essential raw data through an efficient manner. Mobile agents can be dynamically created by the user at a source node and executed at remote nodes to acquire necessary raw data, perform computations on raw data, and return desired essential information. Flexibility and mobility make mobile agent based technology a convincing approach to meet new challenges in DSN applications.

Ch I2CIO Package

Download:
In order to execute the examples listed below, first install the Ch I2CIO Package.

Example Code:
The example provided below assumes that a dual axis accelerometer is attached to ADC channels 0 and 1. It acquires 30 data points from those channels and converts them to units of g.

View the code
Download the code

Example Output:

Example: Mobile Agent-Based Remote Data Acquisition

In this sensor data acquisition experiment, an accelerometer is attached to one surface of a running DC motor and also connected to a tiny Gumstix computer. A mobile agent is sent from a local host to the Gumstix through Ethernet to get raw data from the accelerometer and process the raw data to produce accelerations in X and Y directions. The acceleration data are carried back by the mobile agent and displayed in forms of text and graph on the local host.

Output on Local Host:


Example Code:
View the code
Download the code

Example: Web-based Interactive Data Acquisition