Wireless Sensor Networks Nodes Distribut PDF
Wireless Sensor Networks Nodes Distribut PDF
net/publication/318242537
CITATIONS READS
0 71
3 authors, including:
Some of the authors of this publication are also working on these related projects:
Wireless Sensor Networks Nodes Distributed in Shapes of Polygons for Promote Distance, Time Delay and Optimization Energy
Consumption via Bluetooth View project
All content following this page was uploaded by Asmaa Hamoodi on 20 July 2017.
Nodes Distributed in Shapes of The Handshaking process usually takes place to establish rules
for communication when a computer sets about communicating
Polygons for Promote Distance, with a foreign device. When a computer communicates with another
device like a modem, printer, or network server, it needs to handshake
Time Delay and Optimization with it to establish a connection. In our work, we used Handshaking
algorithm in communication for wireless sensors network nodes
Energy Consumption via via Bluetooth. We designed our system with eight wireless sensor
Bluetooth networks nodes (WSNs), each node connected with the followed node
formed a Nonagon Polygon shape, this shape implemented by using
Asmaa Salih Hammoodi1*, Fatih V. Celebi2 and Remzi Yildrim3 Arduino and MATLAB.
Then, we implemented a PEGASIS algorithm with the same eight
wireless sensor networks nodes, by calculation the energy, distance
Abstract and time delay comparing with Handshaking to present a difference
Recently, many algorithms have been developed, using software, and improved the best algorithm.
in the field of reducing time delay, optimizing energy or increasing
transmitter distance. This paper shows how to distribute a wireless Related Work
sensor networks nodes (WSNs) by use of geometric shapes
especially polygons. We presented link design in successive shapes A sensor network is a network of many smart devices, called
of polygons in a Handshaking and PEGASIS Algorithms for getting: nodes, which are spatially distributed to perform an application-
reduce delay time, Optimize Energy Consumption and Increase the oriented global task. The primary component of the network is the
transmitter distance for wireless sensor networks nodes (WSNs) sensor, essential for monitoring real world physical conditions or
through Bluetooth. In Handshake technique depends on inference variables such as temperature, humidity, presence (absence), sound,
engine during every cycle. Each session starts automatically from
intensity, vibration, pressure, motion, and pollutants, among others,
the first node to the last node depend on Bluetooth. Bluetooth
behaves in two modes, master radio and a slave radio, depends at different locations [3].
upon Bluetooth portrait’s if it’s in transmitter or receiver.To achieve
In a sttudy by Nizar et al. [2], deals with the matter of energy
improvement, we compared between Handshaking algorithm
and PEGASIS , to get optimize energy, reduced time delay, and consumption minimization to maximize the overall network lifespan.
distance will be increased among nodes and base station. A mathematical model for the lifetime of WSN is formulated based
on several parameters to find out the optimal solution of the energy
Keywords
problem in the field of wireless sensor networks using the Modified
WSN; Energy consumption in WSNs; Handshaking algorithm; Particle Swarm Optimization (MPSO) and Ant Colony Optimization
Bluetooth; PEGASIS algorithm; Polygon (ACO) algorithms.
Received: May 23, 2017 Accepted: June 14, 2017 Published: June 18, 2017 • cyber-physical co-design of wireless control systems that
All articles published in Journal of Computer Engineering & Information Technology are the property of SciTechnol, and is
International Publisher of Science, protected by copyright laws. Copyright © 2017, SciTechnol, All Rights Reserved.
Technology and Medicine
Citation: Hammoodi AS, Celebi F, Yildrim R (2017) Wireless Sensor Networks Nodes Distributed in Shapes of Polygons for Promote Distance, Time Delay
and Optimization Energy Consumption via Bluetooth. J Comput Eng Inf Technol 6:3.
doi: 10.4172/2324-9307.1000178
integrate wireless and control designs; and example, medium access control, routing, Quality of Service (QoS),
and network security. These communication techniques and protocols
• a wireless cyber-physical simulator for co-design and
provide a rich technological background for the design of wireless
evaluation of wireless control systems [6].
communication in WSNs.
This paper presents the study of Hierarchical-Based Routing
Today most conventional wireless networks use Radio Frequency
Protocols (HBRP) such as leach and PEGASIS protocol proposed
(RF) for communication, including microwave and millimeter wave.
for wireless sensor networks. Additionally, the paper includes the
The primary reason is that RF communication does not require a
comparison analysis of both protocols based on some parameter.
line of sight and provides omni -directional links. However, RF has
The main objective of hierarchical based routing is to maximize the
some limitations, for example, large radiators and low transmission
network lifetime. They are made a comparison between LEACH and
efficiencies, which make RF not the best communication medium
PEGASIS protocol.
for tiny energy - constrained sensor nodes. Another possible
Overview of Wireless Sensor Networks medium for communication in sensor networks is free - space
optical communication, which has many advantages over RF
Due to the dramatic increase in worldwide and digital electronic communication [8]. Bluetooth in our work represented the main
technology, wireless sensor network, which is considered one of wireless communication.
the most important technologies in the twenty-first century [7].
Enabled by recent advances in micro-electronic-mechanical systems Bluetooth
(MEMS) and wireless communication technologies, tiny, cheap, and A Bluetooth device uses radio waves connected to a phone or
smart sensors deployed in a physical area and networked through computer. A Bluetooth product contains a tiny computer chip with
wireless links and the Internet provide unprecedented opportunities a Bluetooth radio and software that makes it easy to connect. When
for a variety of civilian and military applications. A large amount of two Bluetooth devices want to link with each other, they need to pair.
research activities has been carried out to explore and solve various Communication between Bluetooth devices happens over a short-
design and application issues, and significant advances have been range, this ad hoc network known as piconets. A piconet is a network
made in the development and deployment of WSNs [8]. of devices connected using Bluetooth technology. When a network
Applications of WSN is established, one device takes the role of the master while all the
other devices act as slaves. Piconets are established dynamically and
Wireless sensors have significant advantages over conventional automatically as Bluetooth devices enter and leave radio proximity.
wired sensors. They can not only reduce the cost and delay in Bluetooth radios are symmetric in that the same device may operate
deployment, but also be applied to any environment, especially as a master and the slave. In our work, we used HC-05 embedded
those in which conventional wired sensor networks are impossible Bluetooth serial communication module (can be short for module)
to be deployed, for example, inhospitable terrains, battle fields, outer have two work modes: order-response work mode and automatic
space, or deep oceans. WSNs were originally motivated by military connection work mode. And there are three work roles (Master,
applications, which range from large - scale acoustic surveillance Slave and Loopback) at the automatic connection work mode. When
systems for ocean surveillance to small networks of unattended the module is at the automatic connection work mode, it will follow
ground sensors for ground target detection. However, the availability the default way set lastly to transmit the data automatically. When
of low - cost sensors and wireless communication has promised the the module is at the order-response work mode, user can send the
development of a wide range of applications in both civilian and AT command to the module to set the control parameters and sent
military fields [8]. control order [9]. HC-05 is a MASTER/SLAVE module as shown in
Some of the important application domains of WSNs are listed Figure 1a. The HC-05 Bluetooth module and its siblings are by far the
below. most popular and inexpensive. It costs less than $10 on eBay and it’s
easy to implement.
• Military sensor networks
• Networks for detecting chemical, biological, radiological, The role of this module (master or slave) can be configured only
nuclear, and explosive material by AT COMMANDS. Bluetooth of base station start as the master
mode while Bluetooth of all other eight nodes behave as slaves.
• Environmental monitoring networks
• Traffic sensor networks Energy
• Surveillance applications The energy of sensor nodes is usually limited, and it is difficult to
• Parking systems in shopping malls and big markets [3]. supplement energy frequently. Multi-hop communication, which can
lead to unbalanced energy consumption in the whole network and
Wireless Communication Technology seriously affect the life cycle of wireless sensor network, is generally
Wireless communication is a key technology for enabling the used for infrastructure and testing linear network [8].
normal operation of a WSN. Wireless communication has been Energy consumption
extensively studied for conventional wireless networks in the last
couple of decades and significant advances have been obtained in The main objective of the routing protocols is efficient delivery
various aspects of wireless communication. At the physical layer, a of information between sensors and the sink. To this end, energy
variety of modulation, synchronization, and antenna techniques consumption is the main concern in the development of any routing
have been designed for different network scenarios and application protocol for WSNs. Because of the limited energy resources of sensor
requirements. At higher layers, efficient communication protocols nodes, data need to be delivered in the most energy-efficient manner
have been developed to address various networking issues, for without compromising the accuracy of the information content.
doi: 10.4172/2324-9307.1000178
doi: 10.4172/2324-9307.1000178
and reset, continue the operation with the second node change its
mode from slave to master and preparing links with third node which
is in a slave mode then send frame to the third node after collection
with the data of second, after that continue in the same sequence with
all other nodes fourth, five …. till eighth node. Before BS receives fill
frame, BS change modes from master to slave as in Figure 3b. The
frame fill with data of all nodes located in base station (BS), shown
Figure 3c: Fill the frame with data of first node.
in Figure 3d.
In our work, eight wireless sensors network nodes are connected
in Nonagon Polygon shape. Each node introduces Submit itself to the
next node for preparing connection. By using Arduino with Bluetooth
as shown in Figure 1a Start configuring the AT command for slave as
below:
• Set the role as slave by write “AT+ROLE=0”
• Set the baud rate to compatible with others by
“AT+UART=9600,0,0”
• Free the BT from any connection by write “AT+DISC”
• Set connection mode to only one connect by write
“AT=CMODE=0”
doi: 10.4172/2324-9307.1000178
the network nodes with the given algorithms as a basis for evaluating and forwards it to a nearby neighbor. It presents mechanisms that
performance enhancements by simulation. allow the variation of radio communications energy parameters
[10]. The PEGASIS scheme, depends upon a greedy chain formation
Pseudocode of handshake implements master and slave mode
While the greedy chain cannot always guarantee minimal energy
Input: msg[1,..,8] --> Empty frame for sensor value and connection consumption, the randomized leader selection does not consider the
path for each node node’s capability in being the leader, in terms of its energy content and
transmit distance [12].
Output: ETX and ERX
In this work paper, we built a PEGASIS algorithm by eight
start:
nodes, the base station (BS) connected with two chains to implement
exe_time=0.043; PEGASIS chains as shown in Figure 4. Base station linked with farthest
node in Bluetooth path (20 meters’) then connected with neighbors to
config node(i) as slave mode complete chain. We took this algorithm to compare with our proposal
role=0; Handshake algorithm, seeing benefits then inspire to improve which
algorithm we will used.
uart=9600;
Implementation of PEGASIS algorithm
cmode=0; // connect to one BT
We have developed a simulation of the proposed work in
disconnect; MATLAB
slaveTime=exe_time * 4; // 4 number of commands Pseudocode of PEGASIS
config node(i) as master mode Input: msg[1,..,8] --> Empty frame for sensor value and connection
role=1; path for each node
PEGASIS Algorithm
PEGASIS chain construction is performed according to a greedy
algorithm, where nodes select their closest neighbors as next hops in
the chain. It is assumed that the nodes have a global knowledge of
the network and the chain construction starts from the nodes that
are farthest from the sink. Because of chain operation, instead of
maintaining cluster formation and membership, each node only keeps
track of its previous and next neighbor in the chain. Communication
in the chain is performed sequentially such that each node within a
chain aggregates data from its neighbor until all the data are aggregated
at one of the sensor nodes, i.e., chain leader. The chain leader controls
the communication order by passing a token among the nodes., a
chain is created so that each node receives aggregate information Figure 4: The Implementation of PEGASIS implementation.
doi: 10.4172/2324-9307.1000178
role=1;
uart=9600;
cmode=0; // connect to one BT
disconnect;
prepare link to next node;
masterTime=exe_time * 6; // 6 number of commands
while (i<5)
nu(i) and nd(i) connect to nu(i+1) and nd(i+1);
update msg[i] with sensor value;
calc ETX(msg), ERX(msg);
send msg[1,..,8] to nu(i+1) and to nd(i+1);
Distance = 20 meter;
Return ETX, ERX, Distance;
End
• energy for communication among sensor nodes, and ETx(Ҡ; d) = Eelec * Ҡ + ϵamp * Ҡ * d2
doi: 10.4172/2324-9307.1000178
Eelec is the energy consumption of transmitting circuit, while Eamp Radio mode Energy Consumption
means the energy consumption of the transmitting amplifier. Where Transmitter Electronics (ETX-elec)
k the size of transmitting, or receiving data, d the distance between Receiver Electronics (ERX-elec) 50NJ/bit
the two nodes, [14] (ETX-elec= ERX-elec= Eelec)
Transmit Amplifier (ɛamp) 100p J/bit/m2
Table 3 shows the classical model with transmitter and receiver
Idle (Eidle) 40 N J/bit
energies values. We used these values for getting ERx and ETx.
Sleep 0
The Simulation Results Table 3: The classical energy consumption model.
Table 4 display the transmitter and receiver energies for all nodes
in a Handshaking algorithm and PEGASIS algorithm respectively, by
using the classical values of Table 3. In compensation of the parameters
Eamp, Eelec and k.
• The total transmitter energy 0.00010714 J/Bit while total
receiver energy is 9.92e-05 J/Bit in Handshake algorithm.
• The total transmitter energy 0.00010714 J/Bit while total
receiver energy is 9.92e-05 J/Bit in PEGASIS algorithm.
• The total time delay for transmitting a message of 8 bit is 6.64
second in Handshake algorithm.
• The total time delay for transmitting a message of 8 bit is 3.32
second in PEGASIS algorithm.
doi: 10.4172/2324-9307.1000178