You are on page 1of 6

NanoMon: An Adaptable Sensor Network Monitoring Software

Misun Yu, Haeyong Kim, and Pyeongsoo Mah


Embedded S/W Research Division
Electronics and Telecommunications Research Institute (ETRI)
Gajeong-dong 161, Yuseong-gu, Daejeon 305-700, South Korea
{msyu, haekim, pmah}@etri.re.kr

Abstract In this paper, we present architecture of sensor network


monitoring software named NanoMon. NanoMon enables
In this paper, we present a sensor network monitor- users to interpret sensor network status visually by pro-
ing software, named NanoMon, which has a flexible ar- viding decent visualization components for sensor network
chitecture and supports for various user requirements of monitoring: topology, sensor data, sensor list, node status,
sensor network applications in an adaptive manner. With received packet log and so on. In addition to its visualization
NanoMon, users can specify custom GUI plug-ins and in- components provisioning capability, NanoMon can manage
ternal module parameters by using a simply describable multiple sets of sensor network information and store sensor
configuration file; and it can be automatically integrated data related with them. NanoMon also provides plug-in ca-
to NanoMon framework to support user-specific sensor pability for adding and removing custom GUI components
network applications. NanoMon employs a widely used at need.
database, MySQL, to concurrently and correctly manage
sensing data and node information of several types of sen-
2. Capability Comparison of NanoMon and
sor network applications.
To show flexibility and adaptability of NanoMon, we im- Other Monitoring Tools
plemented two WSN applications- home monitoring and
Currently, only few kinds of sensor network monitoring
parking lot monitoring systems. By selecting a WSN appli-
tools are available, which provide sensor network data dis-
cation name specified in the configuration file, users can
play capability, topology visualization and sensor network
easily and dynamically change GUI and internal module
information manageability to users. Mote-View [1] moni-
parameters such as sensor types and database locations of
toring tool is capable of logging wireless sensor data to a
NanoMon used to display the status of WSN.
database, analyzing sensor readings and plotting them. It is
composed of several modules which scale flexibly enough
to support disparate needs from various users by using the
1. Introduction plug-in capability. Surge-View [2] provides similar func-
tions with Mote-View except the plug-in capability. In Spy-
Wireless sensor network (WSN) is a computer network Glass framework [3], visualization plug-ins can register dif-
consisting of spatially distributed sensor devices, which col- ferent data types and display information using a flexible
lect quite detailed information about the physical environ- multi-layer mechanism that renders information on a can-
ment. WSNs have made many novel applications possible to vas. This software targets on debugging of applications and
emerge in the fields of environmental monitoring, home au- making the setup process easier. TinyViz is a Java-based
tomation, object tracking, security and prevention of disas- GUI and a part of the TOSSIM package of TinyOS [4] [5].
ters. In these application systems, several tens or hundreds It visualizes sensor readings, LED states and the status of
of sensing devices generate a volume of data. To deal with radio links. Additionally, it allows a direct interaction with
sensor network data generated various operating environ- running TOSSIM simulations. The adaptive architecture of
ment, users inevitably require monitoring software with de- TinyViz allows users to add application specific visualiza-
cent abilities: abilities to flexibly change and scale its func- tion functions. These functions include specialized draw-
tions and appearances suitable to the purpose of various sen- ing operations, subscription/reaction to events and opera-
sor networks as well as to monitor and analyze the collected tions for providing feedback to the TOSSIM simulator.
information from sensor networks. Table 1 shows the comparison among NanoMon
XXX
XXX T ools NanoMon MOTE-VIEW SpyGlass Notes
F eatures XXXX
Multiple WSN moni- O X X
toring
Plug-in capability for O O O
custom GUI
Sensor node control X O X Future work
based on GUI
Database MySQL TinyDB None
Application platform Platform independent Windows XP & Platform independent
(implemented in Java) 2000 (implemented in Java)
WSN platform .Nano-24(NanoQplus) Mica-series [6] Mica-series (TinyOS) We will test NanoMon
.ETRI-SSN(NanoQplus) (TinyOS) with various WSN
.MicaZ(NanoQplus) platforms in near fu-
ture.
O: supportable, X: unsupportable

Table 1. Capability comparison among monitoring tools

and some of above tools which is similar to NanoMon.


NanoMon can manage and visualize multiple sensor net-
work information such as history of received sensing data
and network topology using MySQL databases. All tools
listed in the Table 1 provide plug-in capability for GUI ex-
tension, but only our tool provides easy GUI extension
method such as a configuration file. NanoMon and Spy-
Glass are implemented in Java language to offer plat-
form independence. Additionally, NanoMon provides
well-defined packet format to connect with sink nodes or Figure 1. Sensor network monitoring frame-
other monitoring devices. work of NanoMon

3. Sensor Network Monitoring Framework


Sensor network monitoring framework of NanoMon
is composed of following four functional parts. Fig- in turn. And then it transmits data to a database server via
ure 1 shows how these parts are interconnected with each TCP /IP network to store them. The monitoring server can
other. also forward sensor data to monitoring clients connected
via TCP/IP. In our implementation, we defined XML packet
• Wireless sensor networks formats for sending sensor data to monitoring clients.
• Monitoring server
The database is a data storage saving sensor data, net-
• Databases work topology, etc. We use MySQL [9] as a database man-
• Monitoring clients ager.
A wireless sensor network includes micro-sensor nodes Monitoring clients are computer programs(e.g.
loading sensor OS (e.g. NanoQplus [7] [8]), sensor appli- NanoMon) utilizing sensor data and topology infor-
cations and routing facilities, and a sink node. Environ- mation of a sensor network received from monitoring
ment information generated by sensor nodes is forwarded servers (NanoMon). Monitoring clients and monitor-
to a designated sink node. Each sink node sends collected ing servers communicate each other through TCP/IP
data and topology information to a monitoring server (e.g. network. When past data related with a sensor net-
NanoMon). work is requested by users, a monitoring client con-
After the monitoring server receives the sensor network nects to its database server via TCP/IP network and re-
data from sink nodes, it filters, arranges and displays them trieves those data from it.
4. NanoMon Architecture
Minimum components of NanoMon are one configura-
tion file, essential five software modules and a database.
Users can set GUI components, sensor related informa-
tion, the database information and connection information
to sensor networks just by writing a configuration file. Each
software module reads specific parts of the configuration
file dedicated to it and adjusts its appearances or creates in-
ternal parameters according to them.

4.1. Configuration file

A NanoMon configuration file can contain module set-


tings of several sensor network applications to make all of
their connections and environment settings to NanoMon at
once. Module settings of a specific sensor network appli-
cation split into four parts: GUI setting part, sensor setting Figure 2. Structure of NanoMon configuration
part, database setting part and connection setting part. GUI file and its example
setting part includes names of plug-in components which
will be integrated into the GUI framework when a user se-
lects a specific sensor network application. Sensor setting
part includes sensor related information such as names and
identifiers of sensor types, measurement units and calibra-
tion classes of sensor data used in the sensor network ap-
plication. Sensor identifiers are numbers to identify sensor
types used in the packets received from a sensor network. A
calibration class is used to convert sensor readings of a spe-
cific sensor to universal engineering units. Database setting
part includes database location and user information (user
id and password). Connection setting part includes connec-
tion type between NanoMon and a sensor network such as
RS-232 serial data communication protocol or TCP/IP with
their specific parameters. Figure 2 shows the structure of
NanoMon configuration file and its example.
Figure 3. Software architecture
4.2. Software Architecture
the packet processing module. This module pro-
NanoMon is composed of five software modules -
cesses connections requests from external monitoring
GUI integration module, sensor network abstraction mod-
devices which want to receive the information gener-
ule, packet processing module, data management mod-
ated from sensor networks connected to NanoMon.
ule and connection module. Users can flexibly scale and
change the operation of NanoMon according to its special- • Packet Processing Module parses packets re-
ized sensor network application requirements by using the ceived from the connection module according to
configuration file. Figure 3 shows the software architec- well-defined packet formats and transmission pro-
ture of NanoMon and its constituting modules. cedures. This module also sends parsed data to
data management module to store them into the
• Connection Module connects NanoMon with sen- database and to sensor network abstraction mod-
sor network via serial data transmission protocols ule to send to GUI module consequently. When ex-
or TCP/IP as specified in the connection set- ternal monitoring devices are connected to NanoMon
ting part of the configuration file. After connection via TCP/IP, this module sends parsed data to these de-
is successfully established, this module forwards re- vices in accordance with the well-defined procedure
ceived packets from wireless sensor networks to and an XML packet format through the connec-
tion module. 5.1. Transmission procedure
• Data Management Module defines and implements
Figure 4 shows the packets used to send information and
data access interfaces so as to write/read sensor node
the transmission procedure between a sink and NanoMon.
data to/from the storage specified in the database set-
When NanoMon wants to receive information such as sens-
ting part of the configuration file. All the other mod-
ing data, its network topology and remaining battery vol-
ules can access the storage using these data access in-
ume of constituting sensor nodes from a sensor network, it
terfaces. NanoMon provides sensor data history and
starts the procedure by sending a MON REQ packet. After
conditional sensor data searching functions by using
receiving the request from NanoMon, the sink node starts
this module.
to send packets containing WSN information (WSN INFO,
• Sensor Network Abstraction Module contains infor- WSN DATA, WSN BATTERY) to NanoMon. WSN INFO
mation of sensors, nodes, connections between nodes packet contains sensor network’s topology information such
and its data used in the GUI integration module. If user as existing sensor nodes, attached sensor types and parent
sets receiving mode to ”live mode” in GUI framework, nodes of them. When the topology of a sensor network has
this module provides current sensor network status changed, its sink node sends a WSN INFOMS packet in-
and the most recent data from sensor nodes, otherwise cluding the revised topology information. WSN DATAMS
it contains the past status and data generated for speci- packets include sensing data collected from sensor nodes in
fied period. This module reads the sensor setting parts a WSN. Sink nodes send this type of packets to NanoMon
of the configuration file and then creates sensor ob- periodically or immediately. A WSN DATAMS packet con-
jects dynamically and integrates calibration classes. tains node IDs, sensor types and sensing data. Sensor nodes
periodically send battery volume to sink node. And sink
• GUI Integration Module creates GUI framework and
nodes send collected battery values to NanoMon using
integrates GUI plug-ins specified in the configuration
WSN BATTERY packets. If NanoMon doesn’t want to re-
file into the framework. Users can add and remove
ceive sensor network information or ends execution, it sends
plug-ins freely at their needs. Plug-ins can use inter-
a MON CLOSE packet to connected sink nodes.
faces provided by a sensor network abstraction mod-
ule to access information of a sensor network con-
nected with NanoMon. NanoMon basically provides
below plug-ins.
– Topology plug-in visualizes sensor nodes and
connections between them.
– Sensor data plug-in displays accurate sens-
ing value from sensor nodes and data recep-
tion time. This plug-in also provides interfaces
for searching particular sensor data accord-
ing to input conditions.
– Chart plug-in visualizes sensor data using the
various types of charts such as line chart, bar Figure 4. Transmission procedure
chart, and so on. User can dynamically add and
remove user-defined charts.
– Sensor list plug-in displays live sensor nodes
and their detailed information such as battery 5.2. Packet format
volume, install location, ID, nick name, last
sensing value and etc. Figure 5 shows packets and their format used to trans-
fer the information of sensor networks or inform the status
5. Communication Protocol with Sink Nodes (start and close) of a monitoring application.
Figure 5-(a) shows the common format of pack-
NanoMon provides well-defined packet format and ets used in the NanoMon monitoring framework. All pack-
packet transmission procedure to sink nodes so as to of- ets must include node ID of a sender and packet type iden-
fer sensor network platform independency to users. tifier. Figure 5-(b) shows the packets from sink nodes
NanoMon uses binary packets to communicate with sink to NanoMon. WSN INFOMS packets include informa-
nodes. tion of sensor nodes composing a specific sensor network
such as total number of nodes, each node’s ID, node’s par- 6.1. Home monitoring system
ent node ID and sensor types of nodes. Sink nodes trans-
mit WSN DATAMS packets to send collected sensing data First, we built a home monitoring system which can col-
from sensor nodes. These packets include sensor node’s lect environmental information of home like temperature,
IDs, sensor types and sensing data. WSN BATTERY pack- humidity, states of lighting, gas leakage and movement of
ets are used to inform battery volume and live state of sen- objects. WSN is comprised of a sink node and seven sensor
sor nodes periodically. WSN BATTERY includes nodes nodes. Five of sensor nodes are attaching integrated sensor
IDs and battery volume. Figure 5-(c) shows the pack- board and the others are attaching infrared ray sensors.
ets from NanoMon to sink nodes. MON REQ and Figure 6 shows the configuration file of home monitoring
MON CLOSE packets just inform the starting and clos- system which specifies sensor information (e.g. types, iden-
ing of NanoMon application to sink nodes. These packets tifiers, measurement units and calibration classes), plug-in
include no data field. GUI modules, communication protocol between sink node
and NanoMon and database information.

Figure 6. Home monitoring system

Figure 7 shows home monitoring system maed of a WSN


for environment sensing of home, a sink node collecting
sensed information from sensor nodes and NanoMon con-
Figure 5. Packet formats figured using the above configuration file.

6. Sensor Network Monitoring System Exam-


ples

We applied NanoMon to two sensor network applica-


tions - home monitoring system and parking lot monitor- Figure 7. Home monitoring system
ing system. Each system has several sensor nodes, a sink
node and NanoMon. Sensor nodes send sensing data and
battery volume to a sink node through RF communication.
A sink node sends received data and connection information 6.2. Parking lot monitoring system
between sensor nodes to NanoMon using serial communi-
cation. We used ETRI-SSN and Nano-24[8] board as sensor Second, we built a parking lot monitoring system which
nodes and NanoQplus as sensor node’s OS. ETRI-SSN and shows the empty spaces of parking lot. WSN is comprised
Nano-24 board can attach several sensors (or sensor boards) of ten sensor nodes attaching infrared ray sensor and a sink
such as temperature, light, humidity, gas, infrared rays and node. When a car enters a parking space, installed sensor
ultrasonic sensors. node in this space sends information to the sink node. The
Temperature, light, humidity and gas sensors are inte- sink node forwards this information to NanoMon immedi-
grated into one sensor board which is called integrated sen- ately, and NanoMon displays the total number and position
sor board. of empty spaces.
We added settings of NanoMon for parking lot moni- 7. Conclusion and perspectives
toring system to the configuration file of home monitoring
system to concurrently monitor(manage) two systems using NanoMon provides configuration files for users to set
one NanoMon application. Figure 8 shows the configura- GUI, database, sensor types and desired connection pro-
tion file including settings of home monitoring system and tocol to connect sensor network applications to NanoMon.
parking lot monitoring system. Users can easily change external appearances as well as in-
ternal modules of NanoMon into more adequate forms to
interpret the status and data of sensor networks according
to their own sensor network applications. The multiple con-
nections support capability of NanoMon to sensor networks
and their designated database enables users to switch among
several sensor networks and observe current and past status
of them.
We designed well-defined packet format and transmis-
sion procedure so that NanoMon can connect with various
sensor network platforms.
Currently, we completed the implementation and testing.
Testing was performed with real sensor nodes embedding
Nano-Qplus platform and its applications. We have a plan
to publish NanoMon with Nano-Qplus package. In the near
future, we are going to test NanoMon with real sensor net-
work applications composed of a lot of sensor nodes and
Figure 8. Configuration file of parking lot reinforce its ability by adding sensor network management
monitoring system functions such as remote management of sensor nodes, net-
work performance monitoring functions and so forth.

References
Figure 9 shows parking lot monitoring system having
[1] T. M., “Mote-view: A sensor network monitoring and man-
sensor nodes for recognizing empty or full spaces of parking agement tool,” in proceedings of the 2nd IEEE workshop on
lot, a sink node collecting parking lot information from sen- embedded Networked Sensors (EmNetS-II), May 2005.
sor nodes and NanoMon configured using the above config- [2] Crossbow Technology Inc., “Surge network viewer.”
uration file. NanoMon can connect with any of sensor net- http://www.xbow.com/Products/Products/productsdetails.aspx?sid=86.
work specified in the configuration file, and monitor cur- [3] C. Buschmann, D. Pfisterer, and S. Fischer, “Spyglass: A
rent status of selected WSN. We selected parking lot mon- wireless sensor network visualizer,” in ACM SIGBED review,
itoring system in Figure 9 using the upper right combo vol. 2, Jan. 2005.
box of NanoMon. When we select another WSN, NanoMon [4] UC Berkeley, “Tinyos.” http://www.tinyos.net.
changes its appearances (plug-in GUI components) and in- [5] P. Levis, N. Lee, M. Welsh, and D. Culler, “Tossim: accurate
ternal parameters (sensor types of WSN, serial parameters and scalable simulation of entire tinyos applications,” in pro-
for connection with a sink node and etc.) dynamically. ceedings of the 1st international conference on embedded net-
worked sensor systems, pp. 126–137, 2003.
[6] C. T. Inc., “Mica2mote.” http://www.xbow.com.
[7] E. S. research Division of ETRI, “Nanoqplus.”
http://qplus.or.kr.
[8] K. Lee, Y. Shin, H. Choi, and S. Park, “A design of sensor
network system based on scalable and reconfigurable nano-os
platform,” in IT-Soc International Conference, 2004.
[9] M. AB., “Mysql.” http://www.mysql.com/.

Figure 9. Home monitoring system

You might also like