A Smart Self-Adjusting Sensor Network Based On Zigbee Communications
A Smart Self-Adjusting Sensor Network Based On Zigbee Communications
A Smart Self-Adjusting Sensor Network Based On Zigbee Communications
141 www.erpublication.org
A Smart Self-Adjusting Sensor Network based on ZigBee Communications
networking provides high reliability and more extensive deployed or removed (due to improper functioning). Thus it
range. Thus, ZigBee enables new opportunities for wireless should autonomously reconfigure the system, according to
sensors and control networks. dynamic environmental situation.
B. Effective Energy Management:
Different Wireless Technologies And Their Comparison The network lifetime is the most critical issue
because sensors operate using a limited power resource which
Characteristics ZigBee (80215.4) Bluetooth (802.15.1) Wi-Fi(802.11b) is greatly influenced by the battery lifetime. An efficient
Battery Life energy management technique is required to sustain the
(in days)
100 1000+ 1-7 1-5 wireless network communication for a long time.
Reliable, low power High speed and High By considering the design objectives, we have
Key features Speed, Flexibility designed and implemented a ZigBee based a Smart Self
& cost effective data rates
Adjusting Sensor (SSAS) network by using Dynamic Ad hoc
Fig1. Different Wireless technologies and their comparison network protocol, where the sensor nodes can adapt
The interest in wireless sensor networks research has dynamically to communicate in a new environmental
been increasing exponentially over the last few years.In this situations. We used the ZigBee technology (IEEE 802.15.4
section, we briefly discuss the existing systems. Han et al [8] standard) which effectively deliver the solutions for a variety
proposed a home energy management system (HEMS) using a of areas including energy management and efficiency, home
ZigBee technology and Infrared remote controls to reduce the automation because of its Low-Power and Low-Cost
standby power. The configured ZigBee network is composed characteristics.
of the home server (central control unit), the ZigBee hub, and
the power outlets. The connected device to power outlet with
a Zigbee module cuts off the AC power when the energy III. SELF ADJUSTING SENSOR ARCHITECTURE
consumption when it is below the threshold value. Thus the
HEMS user interface is used to control/monitor the energy A. Network Deployment
saving system via server. Gaddam et al [9] designed a novel
home monitoring system which is based on cognitive sensor The proposed system uses heterogeneous wireless nodes to
network and is intended for elder-care application. Depends form a distributed and control network as shown in the fig 2.
on the elders movement the cognitive sensor network collect In this we are going to see the three different functional nodes.
and transmit the information to the central server. In this They are coordinator node, monitor node and sensor node. In
instead of webcam based, by using selective activity this network topology, there is only one PAN coordinator
monitoring network, the system can alert the elder persons which forms this mesh type personal area network. Here the
when they meet the abnormal situations such as excessive entire communication among the coordinator and the monitor
usage of power/water usage and also intimate to caretaker by nodes is via Zigbee wireless technology (IEEE 802.15.4).
send the SMS (short message service).Gill et al [10] proposed
ZigBee based home automation system that can control and
monitor home appliances. The home gateway provides
network interoperability to the zigbee controlled system, a
simple and flexible remote access user interface. By this
Academic research we can conclude the Objectives and
Challenges
A. Easy Deployment and Self Configuration of Wireless
Nodes:
Frequently wireless network topologies changes, as
nodes are scalable and flexibility in dynamic environment.
F
The presence of human may be restricted or inappropriate in ig2 . Node Deployment Prototype Overview
some real time monitoring like disaster sites ,dense forests,
nuclear plants etc., So in this type of situation , node failure
1. Coordinator Node :
affects the system throughput with static routing techniques. It
is tedious task to set up a network topology and find the The Coordinator node plays a major role in the SSAS
system working parameters whenever the sensor node is network. The primary function of the coordinator node is to
142 www.erpublication.org
International Journal of Engineering and Technical Research (IJETR)
ISSN: 2321-0869, Volume-2, Issue-11, November 2014
monitor and control the entire network. In established
Personal Area Network (PAN) only one Coordinator node As this is wireless network, frequently changes in the sensor
should be present. Thus the coordinator starts a network by nodes can be observed. So in the ad-hoc network formation,
new PAN ID (an un allocated PAN ID) and channel for identifying the unknown destination node address is done by
communication through energy scan. Once it starts a PAN, the broadcasting the control packet (REQ_PACKET). This
coordinator can allow monitor nodes to join the network. process is called Route Discovery. It can be observed
Performing an energy scan allows the coordinator to have a diagrammatically in fig 3.
unique PAN ID and free communication to avoid contention
on channels and PAN IDs selected by other PAN network The control request packet contains the source network
coordinators. address, the destination network address and a path cost field
(a metric for measuring route quality). Every zigbee device
2. Monitor Node :
has two types of addresses. One is 16 bit network address and
Monitor nodes are responsible for collecting and other is permanent device 64 bit address. The 16 bit is a
analysing the situational information with respect to network address which is unique and dynamic address
predefined instructions, and also by providing the required assigned when it joins the network where the 64 bit address is
services to actuator circuits with respect to sensor nodes given by manufacturer which is unique, static and permanent
information. The nodes are self manageable and controlled by .Always, a routing is done through a network address
coordinator node. No monitor node can communicate (dynamic address) to decrease the latency and in the packet
simultaneously with two or more coordinator nodes. load in the communication network. In the route discovery
3. Sensor Node : process the destination 16 bit network address is not known,
for first time it will send the static address. The source node
The sensor nodes are transducers which provide the
will flood the packet through the method broadcasting, in this
environmental changes by converting the sensed information
control packet are broadcasted to its adjacent nodes, those
(Analog form) to the electrical pulses (Digital form).
nodes will broad cast to their adjacent nodes, thus this process
will continue until it find a destination node.
B. Self-Adjusting sensor network While responding to the source request, the destination will
The smartness comes to the system is by combining a new send the dynamic network address along with the response
emerging wireless ZigBee technology and a dynamic Adhoc packet (RSP_PACKET). Thus destination node will respond
network protocol. Here the nodes are scalable and flexibility via shortest route through unicast, depends on path cost field
in environment. To maintain a stable connectivity and metric. In this the duplicate packets are filtered out. For
maximizing the network communication throughput through example, the S node wants to communicate with D node as
wireless, with effective and reliable delivery is difficult to shown in fig3. So it has to find its destination address by route
handle and thus become a real challenge. The main key discovery. The duplicate messages are filtered out when it
behind this challenge is the effective routing within the reach to the broadcasted/source node. Thus a communication
dynamic environment. So, by the dynamic ad-hoc network link is formed between the S and D for Data transmission.
protocol makes the system more adaptable. The monitor IDLE MODE
YES YES
16-BIT NETWORK
NO ROUTE KNOWN
IS 16 BIT ADDRESS KNOWN
ADDRESS IS NO
F H VALID
16-BIT NETWORK NO
YES
ADDRESS
SEND TO UART
G RECEIVE BUFFER
DISCARDED
YES
ROUTE
DISCOVERY
16-BIT NETWORK
ADDRESS DISCOVERED
B SEND THE ACK ?
FRAME PACKET TO NO YES
NO
A D THE SENDER
ADDRESS DATA DISCARDED
ROUTE
DICOVERED
C I
E
Fig 4. Algorithm For Transmitting / Receiving On Event Happening
Adhoc NETWORK
J
FORMATION
PACKET DOES NOT ACCEPTED (FILTERED) DUE TO DUPLICATE (ALREADY FORWARDED) PACKET The algorithm flow is show in the fig. 4, how the idle
TRANSMISSION OF PACKET THROUGH BROADCAST monitor node will change to active mode to initiate the
Fig 3. Route Discovery Process To Get Unknown Address
143 www.erpublication.org
A Smart Self-Adjusting Sensor Network based on ZigBee Communications
M2
INTERFACE LAYER
INTERFACE GROUP
ZIGBEE BLUETOOTH
SENSING USER
NEXT
INTERFACE INNTERACTION
HOP INTERFACE INTERFACE
AND ACTUATOR M1 M3
NODE MANAGER MANAGER
MANAGER
MANAGER
TABLE
ZIGBEE BLUETOOTH
ENVENT OR C
ENVIRONME
DEVICE DEVICE NT DATA USER INTERACTION
communication when an event has happened, to transmit or
receive the data.
Frame format structure of packet which is shown in fig 5 M5
consists of a preamble, pan identifier (address), source M4
identifier, destination identifier, control or data information,
End frame delimiter Beacon signal will send to coordinator in a frequent times
CONTROL OR END FRAME Fig 6. Failure of the Node and its identification
PREAMBLE PAN ID SOURCE ID DESTINATION ID
DATA DELIMITER
Fig 5.Frame format of the Data/Control packet
D. The Layered Architecture Of The System
To provide the modularity and also making it much easier to
1. Preamble: change the implementation of services, we made the system
At the beginning of each frame (packet), there into the layered architecture.
will be a start of the header called the Preamble. The
Preamble is used to do the following: This layered architecture has been divided into three main
Inform the receiving station that a new packet layers. They are: Management layer, Network layer and
is arriving Interface layer.
For synchronization purpose
1. Management layer:
2. Address Field(s):
Source, Destination and PAN identifier This layer consists of sub layers, a context management
uses network 16 bit addresses which are used to group and a sensor management group. A context
authenticate themselves in respective PAN network. management group is composed of a context aggregator
(CAG), a context analyzer (CA), and a context manager
3. Control or Data : (CM). CAG gathers the sensor data and categorizes the
This field is used to indicate the Type of situational events. CA assorts the valid meaning events . It
Information that is being sent as Data. The Type of sends the meaning event to CM otherwise the data will be
Information can be Control information used when discarded. CM then infers and predicts the service required in
establishing a connection (i.e. handshaking), or it the given situation. A sensor management group is
can be Data such as file transfers between two nodes. composed of a rule based engine, a service and configuration
manager (SCM). This group has a role in sensor management.
4. End Frame Delimiter: With the predefined instructions and depends on the events
The End Frame Delimiter has a specific bit pattern which is and situations happening through sensing elements, the
identified as the end of the packet by the destination node. system send the control signals to reconfigure the system
according to environmental changes.
144 www.erpublication.org
International Journal of Engineering and Technical Research (IJETR)
ISSN: 2321-0869, Volume-2, Issue-11, November 2014
PERSONAL EXTERNAL DEBUGGING
COMPUTER ENTITY PURPOSE
RELAY
BUZZER
DRIVER
UART
CIRCUIT
8 bit AVR RISC GPIO
MICROCONTROLLER ADC
WATER
POWER MONITOR TEMPERATURE
LEVEL LDR SENSOR
SUPPLY SNSOR
SENSOR
Fig 8. Monitor Node With Prototype And Hardware
Fig 7. Layered Architecture Of The Proposed System 2. Network part: Zigbee (IEEE 802.15.4 standard) acts as a
transceiver/radio to establish a wireless link in a network
2. Network Layer: connection.
This layer plays a major role in communication management, 3. Sensor Part: There are different sensors to sense the
routing, topology control, traffic control, etc. A Networking environmental changes. All these are connected to ADC port
and communication group consists of a topology control pins because the sensed information is in analog form. The
manager (TCM), a routing manager (TM), and a traffic SSAS has various environmental monitoring sensor modules.
control manager (TRCM). This group is a core component of Different types of sensor modules temperature, water level
network layer; it provides and controls the network and sensor, gas sensor, motion detection sensor and Light
communication services, such as MAC, routing, topology, detecting sensor are basically installed. So by our system we
transmission and synchronization, etc. are going to monitor the status and routing of the information
dynamically through adhoc manner irrespective of the
3. Interface layer: topology. In the case of more complex services, other sensor
modules can be installed through a user connector.
This layer provides the interface to interact with the
networked devices or Physical Environments. This layer 4. Actuator and Driver part: These parts are the appliances
includes an interface group, and a user interaction manager, which are controlled and maintained to save the power
consumption. Driver circuits drives the components
and a next hop node table. An interface group plays a role in
according to microcontroller instructions.
providing a point of interaction with external component
(networked device or user). This group is composed of a
PERSONAL EXTERNAL DEBUGGING
network interface manager (NIM), an Bluetooth interface COMPUTER ENTITY PURPOSE
145 www.erpublication.org
A Smart Self-Adjusting Sensor Network based on ZigBee Communications
ROOM 3
B. Software Tools
TV
Code Vision AVR is a C cross compiler, Integrated
Develop Environment designed for Atmel AVR family
microcontrollers. The entire code is written in the SENSOR COORDINATOR MONITOR
NODE
embedded-c which is compiled by code vision and dumped in NODE
2. Real Term: Fig 11, illustrates the floor plan of the test bed . We
Real term is a terminal program with extensive features deployed the SSAS in the different rooms. The coordinator
which is specially designed for capturing, controlling and node is responsibility for controlling the monitor nodes. Each
debugging binary and other difficult data streams. monitor node is responsible for gathering information from
the sensor nodes. We have flexiblility of changing the SSAS
monitor node places without loss of information due to
dynamic routing protocol. Android based mobile through
Bluetooth user interface is used to control and get
notifications from the sensor network through the coordinator
node. A snapshot of the smart self adjusting interface is used
to control and monitor.
working modes, they are Auto and Manual. In Auto mode the
monitoring of the information is autonomously configured to
predefined instructions. Through manual mode the users can
control themselves. This application can be easily shared
Fig 10. A Snapshot Of the X-CTU Tool among multiple users. Thus these users can simultaneously
monitor their appliances through android based mobile
3. X-CTU: device.
We configured the zigbee modules by using X-CTU
(Xbee Configuration & Test Utility Software). With AT V. EXPERIMENTAL RESULTS
commands we configure like modes, baud rates, maximum
hops, power level modes etc., We can update the firmware to In the experiment, we have reduced the consumption
the zigbee modules. The snapshot of the tool is shown in the of the battery energy through some smart network and a
fig. 10 flexible way of deploying the sensor nodes to monitor with
146 www.erpublication.org
International Journal of Engineering and Technical Research (IJETR)
ISSN: 2321-0869, Volume-2, Issue-11, November 2014
dynamic adhoc network protocol. We maintain a stable H. Subba Rao received B.Tech degree in
connectivity in sparsely deployed network which tends to Electronics and Communication engineering
from Intellectual Engineering College(Affiliated
ensure a correct packet delivery. Due to the cooperation of the to JNTU Anantapur). Now is currently pursuing
devices with this protocol in dynamic network infrastructure, Masters of Technology program in Embedded
we can decrease the total battery consumption and without System Design, Rajeev Gandhi Memorial
loss of information and connectivity. This shows, safety and College of Engineering & Technology
(Autonomous) Andhra Pradesh, India. His
energy efficiency can be achieved. research interests include Wireless
Communication networks and Embedded
VI. CONCLUSION AND FUTURE WORK system design.
REFERENCES
147 www.erpublication.org