Wisenet: (Wireless Sensor Network)
Wisenet: (Wireless Sensor Network)
Wisenet: (Wireless Sensor Network)
1
ABSTRACT
to transmit this data to a computer that function as a server. The server stores
the data in a database where it can later be retrieved and analyzed via a web-
2
Introduction:
The technological drive for smaller devices using less power with greater
functionality has created new potential applications in the sensor and data acquisition
sectors. Low-power microcontrollers with RF transceivers and various digital and analog
acquire a wide range of data. The TinyOS is a real-time operating system to address the
priorities of such a sensor network using low power, hard real-time constraints, and
robust communications.
take advantage of newer microcontrollers with greater functionality and more features.
This involves selecting the hardware, designing the motes, and porting TinyOS. Once the
platform is completed and TinyOS was ported to it, the next stage is to use this platform
System Description:
Network).
Primary Subsystems:
Data Analysis
Data Acquisition.
3
Data Analysis:
Internet and web (HTTP) infrastructure to provide communications between the Client and Server
components. The focus of this subsystem was to selectively present the collected environmental data
Data Acquisition:
The purpose of this subsystem is to collect and store environmental data for later
processing by the Data Analysis subsystem. This is a mix of both PC & embedded system software, as
well as embedded system hardware. It is composed of both the Server and Sensor Mote Network
components.
System Components:
Office2
Internet HTTP
RS232 SERIAL
980MHZ RF Comm.
Gateway
TCP/IP
HTTP Office1
Server
System
Wise
DB
Lab A Lab B
Web
Program TCP/IP
Web
Browser
SQL
TCP/IP
Database
4
Client:
That is, any computer with a web browser and Internet access could be a Client. It served only as a
USER SERVER
CLIENT
Requests WEB page Requested WEB page
Inputs &
Outputs
USER SERVER
Server:
The Server is a critical component as the link between the Data Acquisition and
Data Analysis subsystems. On the Data Analysis side, an web (HTTP) server hosting a web
application. When a page request came in, the web server executes the web application, which
retrieved data from the database, processes it, and returns a web page that the web server
transmitted to the Client. For the Data Acquisition system there is a daemon (WiseDB) running to
5
This daemon is responsible for collecting raw data packets from the Sensor
Mote Network. These packets are then processed to convert the raw data into meaningful
environmental data. This processed data is then inserted into the database. Thus the database is
the link between the Data Analysis and Data Acquisition subsystems. The Server also had the
potential to send commands to the Sensor Mote Network (via the gateway mote), although this
It should be noted that since the SQL database connections can be made via
TCP/IP, only the web server and web-program (see figure 4) needed to be located on the same
physical machine. The web server, the database, and WiseDB could all be on different physical
machines connected via a LAN or the Internet. This allows a flexible Server component
CLIENT HTTP
Server
SENSOR NETWORK
WEB TinyOS
Program Daemon (GATEWAY MOTE)
WISEDB
SQL
TCP/IP
Database TCP/IP
6
Sensor Motes:
Network component. It is the component responsible for collecting and transmitting raw
environmental data to the Server. There is also the potential for the motes to receive commands
from the Server, although that functionality may not be implemented in WISENET. Uses for this
INPUTS
(GATEWAY MOTE) & SENSOR NETWORK
ONLY
OUTPUTS DATA PACKETS
SERVER PC ENVIRONMENT
DATA PACKETS HUMIDITY, LIGHT etc.,
This component consists of two parts. The first is the sensor mote. The primary
purpose of the sensor mote is to collect and transmit raw environmental data. When not doing this, it
went into a low-power idle mode to conserve energy. Another aspect of the sensor motes involved ad-
The gateway mote is the second part of the Sensor Mote Network. Its purpose is to
serve as the liaison between the Server and the Sensor Mote Network and deliver all the data packets
to WiseDB. In theory both standard and gateway motes could be implemented on the same hardware
PCB and with the same software. For WISENET, however, resource and time constraints necessitated
the use of slightly different hardware and software configurations for gateway versus standard motes,
as described below.
7
Hardware Design:
the development of WISENET. Great functionality and low power are two of the highest
priorities in evaluating the fitness of both the microcontroller and the sensor candidates.
with integrated RF transceiver. After a little research it was decided the CC1010 would
1. Optimized 8051-core
2. Active (14.8 mA), Idle (29 _A) and sleep (0.2 _A) power modes
3. 32 kB flash memory
8
WISENET includes a socketed evaluation board (CC1010EB) and two
evaluation modules (CC1010EM). The evaluation board provided access to all of the
analog and digital pins on the CC1010, as well as two serial ports, a parallel
programming port, RF network analysis ports, and other peripherals. Each evaluation
module featured the CC1010, RF network hardware, an antenna port, and an analog
temperature sensor. The modules connected to the evaluation board via two TFM-D
sockets. These sockets also allowed the possibility of designing a custom expansion
board.
There are many digital temperature sensors available, but there is a much smaller
selection of digital humidity and light sensors. A larger selection of analog sensors are
available; however, analog sensors tended to require more power and be less precise than
their digital counterparts, in addition to requiring more complex circuitry. For these
reasons, digital sensors are given higher priority. Two new sensors provided the required
functionality. First, Sensirion released the SHT11, a digital temperature and humidity
sensor with ultra low power consumption (550 MicroA while measuring, 1 MicroA when
in sleep mode), a 14 bit analog to digital converter, and the desired accuracy (±5%
relative humidity, ±3ºC). It also featured a simple serial interface. The light sensor chosen
was the Texas Advanced Optoelectonic Solutions (TAOS) TSL2550 ambient light sensor
with SMBus interface. This sensor also featured ultra-low power (600 MicroA active, 10
MicroA power down), a 12-bit analog to digital converter, and dual photo diodes. The
TSL2550 uses both photo diodes to compensate for infrared light and to produce a
9
The final stage of hardware design involved creating the Add-on
module. The WISENET Add-On Module has the two digital sensors described above.
The Sensirion SHT-11 humidity and temperature sensor has a 2-wire proprietary serial
interface. The TAOS TSL2550 digital light sensor uses an SMBus serial interface.
SMBus is a standardized 2-wire serial interface. The layout must be carefully designed
such that the light, temperature and humidity sensors does not underneath the evaluation
module when it is plugged into the board, which would make them useless.
The server using for WISENET should have four commercial off the shelf
applications installed on it that worked together to create the Data Analysis portion of the
Server component. Apache, MySQL, and PHP are open-source products freely available
on the Internet. In addition, Chart-Director the trial version of the commercial application
Internet.
should also be designed to use along with a database and included many built-in
MySQL is a database that can contain any type of data and is accessed by a
10
Software Components – Custom:
WISENET’s web program was written in PHP and utilized the Chart-
Director charting software. The web application queried MySQL database for the data in
the requested date range, then we use a Chart-Director to generate a graph of that data.
Sensor Mote Network via a serial link to the gateway mote and with the MySQL database
via a TCP/IP link to the MySQL server application. Already we know about how
WiseDB interacted with the rest of the system. WiseDB was written in C++ and utilized
previously mentioned, TinyOS is a real-time operating system designed for use in sensor
network applications where low-power, limited resources and hard real-time constraints
are critical parameters. After implementing all the software and embedding in a single
11
Future Work:
There are a number of future extensions for this WISENET. A few are:
We can expand the sensor mote network by adding more motes. This
would allow the development and testing of advanced network-layer functions, such as
multi-hop routing.
By creating a new PCB design that integrates the CC1010EM design with
the sensors and power hardware on a single-board another interesting feature can be
developed or adopt a standard expandable plug-in sensor interface in both hardware and
software
Conclusions:
Wireless sensor networks are getting smaller and faster, increasing their
of applications depends only upon the sensors used and the interpretation of the data
obtained. As the technology improves and new low-power digital sensors become more
12
References:
1.Atkinson, MySQL++: A C++ API for MySQL, vers 1.7.9,
<http://www.mysql.com/downloads/api-mysql++. html>.
Systems,
<http://today.cs.berkeley.edu/tos/papers/nesc.pdf>.
http://www.cs.berkeley.edu/~polastre/papers/wsna02.pdf
http://today.cs.berkeley.edu/tos/papers/tos.pdf
5.Torvmark, Application Note AN017: Low Power Systems Using the CC1010,
http://www.chipcon.com/files/AN_017_Low_Power_Systems_Using_The_CC101
0_1_1.pdf
Networks,
http://www.isi.edu/%7Eweiye/pub/smac_infocom.pdf
www.apache.org
www.php.net
www.mysql.com
www.advsofteng.com/index.html
http://Internetmaster.com/installtutorial/index.html
13