THESIS
SUBMITTED FOR PARTIAL FULFILLMENT OF
THE REQUIREMENTS FOR THE DEGREE OF
ENGINEER
IN
INFORMATION TECHNOLOGY
Author:
Supervisor:
HANOI 05-2015
Hanoi, 29/5/2015
Supervisor
ACKNOWLEDGEMENT
TM TT NI DUNG N TT NGHIP
Internet of Things v ang l 1 trong nhng xu th pht trin mi trong lnh vc
Cng ngh thng tin. Trong , mng cm bin khng dy l mt nn tng khng th
khng nhc n. Mng cm bin khng dy m ra nhng hng nghin cu v ng
dng mi trong lnh vc ty bin khng dy. Mt trong nhng ng dng in hnh i vi
cc h thng mng cm bin khng dy l kim sot v o c cc yu t mi trng trong
nng nghip. Bng vic s dng nhng nt cm bin tch hp kh nng thu thp thng s
mi trng, chng ta c th thit lp 1 h thng gim st v iu khin nhng yu t nh
hng n s pht trin ca cy trng.
Vit Nam, h thng nng nghip thng minh cha thc s c u t v ch trng
do nhng hn ch v cng ngh cng nh hiu qu kinh t cha c kim chng. Tuy
nhin, trong nhng nm gn y, bin i kh hu c nhng tc ng khng nh n
nng nghip ti Vit Nam. ng thi, nhng thnh cng nht nh t nhng m hnh nh
knh v nng nghip chnh xc trn th gii cho thy y l 1 hng i ha hn cho
nng nghip Vit Nam trong tng lai.
Trong cc m hnh mng cm bin khng dy, vi in hnh rng buc nng lng
thp, thi gian s dng di, RPL ang l giao thc nh tuyn c s dng rng ri v
cho hiu nng cao. Tuy nhin, bn thn RPL vn c nhng hn ch ca n, c th k n l
kh nng cn bng nng lng thp v qu trnh khc phc li mt nhiu thi gian. Hu
qu ca vic ny l s mt gi tin trong qu trnh truyn d liu, khin cho hiu nng ca
ton b h thng b gim, tin cy ca d liu khng cao.
n ny tp trung vo 2 cng vic chnh: thit k m hnh kim sot cc yu t mi
trng da trn mng cm bin khng dy, ph hp vi nhng bi ton thc t Vit Nam
v p dng giao thc truyn tin a ng da trn RPL ci thin hiu nng h thng.
nh gi hiu nng, n m phng h thng da trn nhng tiu chun ca IoT, vi
nhng ci t tng ng trn thit b tht.
Kt qu m phng cho thy h thng t hiu qu v nng lng cng nh m bo
tin cy ca d liu. ng thi, vic p dng giao thc truyn tin a ng cng cho
thy hiu qu trong vic ci thin hiu nng h thng, vi t l nhn gi tng t 2% n 4%
v t hiu sut cao trong cn bng nng lng.
ABSTRACT OF THESIS
Internet of things has been a trend in Information Technology for a few year. And its
most notable application is Wireless Sensor Network(WSN). WSN, with the help of
Internet of things, has opened up a brand new development and application area. One of
which is environment monitoring and control in agriculture, or Precision Agriculture. By
using the network of wireless nodes with embedded sensors which can sense their
surrounding environment, we can establish a system to measure and control the paramters
affecting the plants.
In Vietnam, Precision Agriculture is still a new concept due to limitation in
technologies as well as doubts in its effectiveness. However, global climate changes have
greatly and badly affect agriculture in Vietnam. Moreover, many successful application of
Precision Agriculture in the world show that this is a promising way of development in
agriculture in Vietnam.
In a wireless sensor network, which typically a lossy and lower powered one, RPL is
proven to be very effective and is a routing protocol of choice of many WSN. However,
there are still flaws within RPL, most notable is that RPL does not take into consideration
the energy level the system as a whole and the repair process can be considered time
consuming. This results in the the loss of package and overall, decrease the system's
performance.
This thesis focus on 2 main tasks: design a greenhouse model to monitor environment
information based on the technologies of Wireless Sensor Network over Internet of things
and apply multi-path RPL to the performance of system. For evaluation, this thesis include
a simulation based on Internet of things technology, with the configuration paramenters
closest to real world devices.
The simulation results show the the system's effectiveness and trustworthy. Moreover,
by applying the multi-path RPL, the system's performance is improved: package delivery
rate go up by 2% to 4% and the system archives better energy balance.
TABLE OF CONTENTS
LIST OF FIGURES
LIST OF TABLES
Table 1: IoT layers and characteristic ................................................................18
LIST OF ABBREVIATIONS
Abbreviation
Phrase
ACK
Acknowledgement
ADC
CSMA
CSMA/CA
DAG
DAO
DIO
DIS
DMR
DODAG
ELB
FLR
GDP
GH
GreenHouse
IANA
ICMP
IEEE
IETF
IoT
Internet of Things
IP
Internet Protocol
IPV6
MAC
10
MTU
OF
Objective Function
OSI
PA
Precision Agriculture
PHY
Physical Layer
RAM
RDC
RF
Reduce-Function
ROLL
RPL
TCP
UDP
WSN
11
12
physical phenomena. The sensor motes are typically low-cost, low-power, small
devices equipped with limited sensing, data processing and wireless communication
capabilities with power supply. WSN can form an useful part of the automation
system architecture in modern control system. Wireless communication can be used
to collect the measurements and to communicate between the centralized control
and the actuators located to the different parts of this system. Wireless Sensor
Networks (WSN) plays a major role in this approach.
The Precision farming system has the following parts:
Sensing agricultural parameters.
Identification of sensing location and data gathering.
Transferring data from crop field to control station for decision making.
Actuation and Control decision based on sensed data.
13
SENSING
COMMUNICATION
COMPUTING
MICRO PROCESSOR
SENSOR
UNIT
ADC
PROTOCOLS
TRANSCEIVER
MEMORY
POWER UNIT
14
15
collected data. The amount of water and fertilizers require to the plant is a
function of climate environmental conditions on which growth of the crop is
depended. So that greenhouse crop production is a complex issue[8].
The Climatic Control Variables are the dynamic behaviour of the greenhouse.
Microclimate is a combination of physical processes involving energy transfer
(which includes radiation and heat) and mass balance (which includes water
vapour fluxes and CO2 concentration). This system depends on the outlet
environmental conditions, architecture of the greenhouse, performance of the
control actuators and variety of crop. Proper ventilation and heating are the
main way of controlling green house climate.
From the paricular needs, the general design and operation of GH must satisfies
these requirements:
Continuously work for long time.
Auto repair when error occurs.
High sustainability: System must work in harsh condition.
High performance: The packet delivery rate need to be as high as
possible.
Energy constraint.
Flexible for various requirements.
Low cost, easy to maintain, expand.
16
17
OSI Layer
Application
Transport
Network
Data link
Physical
IoT Layer
Application
Transport
Net layer
ICMP
Adaption
layer
IoT Technology
CoAP, CoAPs
UDP
IPv6
RPL, IPsec
6LoWPAN
[12][13]
MAC layer
802.15.4 MAC
RDC layer
(none)
PHY layer
802.15.4 PHY
Testing system
Client - Server
UDP
IPv6
RPL
6LoWPAN
Un-beacon mode
CSMA
ContikiMAC [14]
Framer802.15.4
cc2420 driver
18
amount of time to do its work and then go back to sleep to save energy. Such thing
can be done by implementing a Radio Duty Cycling design ContikiMAC in this
case. ContikiMAC uses only asynchronous mechanisms, no additional signaling
messages, nor package headers. ContikiMAC packages are link layer frame.
ContikiMAC has a significantly more power-efficient wake-up mechanism that
previous one. This is achieved by precise timing through a set of timing constraints.
ContikiMAC use periodical wake-ups to listen for packet transmission. If a
possible signal is picked, a node will stay a little longer trying to decode the signal.
Unicast is done by having the sender continuously send out message until an
acknowledgement response. In case of broadcast, the process is identical to unicast,
but instead of stop when ack received, the sender keeps sending out message the
whole wake-up time.
II.1.3. Mac layer
This layer is responsible for dertemining who is allowed to access the media at
any time. For wired devices, a CSMA with collision detection is used since it is
very easy to detect collision before hand in a wired network. However, it is nearly
impossible to do that with wireless devices, a CSMA with Collision advoidance
(CSMA/CA) is used instead. The typical CSMA mode used in IoT is un-beacon
mode.
19
Un-slotted CSMA
NB = 0,
BE = macMinBE
Delay for
random(2BE - 1) unit
backoff periods
Perform CCA
Y
Channel idle?
N
NB = NB+1,
BE = min(BE+1, aMaxBE)
NB>
macMaxCSMABackoffs
?
Y
Failure
Success
20
21
applications can agree. Variety of extensions has been provided to tailor RPL
framework to the particular requirements. In this chapter, the RPL is briefly
explained with assumption of only one physical network and one root with no
downward routing provided.
RPL constructs and maintain network as a directed acyclic graph (DAG), which
can be divided into several destination-oriented DAG (DODAG). And, this
DODAG can be considered as a logical routing topology over physical network. An
objective function (OF) [15]defines how routing metrics, optimization objectives,
and functions to calculate rank as well as compare neighbor with aspect of rank.
The rank of a node is relative distance of this node toward the base station. It may
be built on node-quality (hop-count, residual energy, etc) or link-quality (expected
transmission number, delay transmission time, etc).
The RPL routing protocol specifies a set of new ICMPv6 [16]control messages
to construct DODAG and to aid communication between root and source node. A
RPL Control Message is identified by a code, and composed of a base that depends
on the code, and a series of options. Most RPL Control Message has the scope of a
link. The only exception is for the DAO/DAO-ACK messages in non-storing mode,
which are exchanged using a unicast address over multiple hops and thus uses
global or unique-local addresses for both the source and destination addresses. For
all other RPL Control messages, the source address is a link-local address, and the
destination address is either the all-RPL-nodes multicast address or a link-local
unicast address of the destination. The all-RPL-nodes multicast address is a new
address with a requested value of FF02::1A (to be confirmed by IANA)
In accordance with [16], the RPL Control Message consists of an ICMPv6
header followed by a message body. The RPL Control message is an ICMPv6
information message with a requested Type of 155 (to be confirmed by IANA).
Within scope of this paper, we do not consider downward routing, hence, only
two kinds of message are involved, they are:
DODAG Information Solicitation (DIS) - code field is 0x00 (to be
confirmed by IANA) - is used to solicit DIO message from neighbor, it
acts as an initial strobe for a nearby DODAG.
DODAG Information Object (DIO) - code field is 0x01 (to be confirmed
by IANA) - is issued by DODAG root, in order to construct a DODAG.
DIO message contains: DODAG information (InstanceID, Version,
DODAGID immutable, only root node can modify) and nodes rank.
RPL Terminology
The terminology is used within the scope of RPL, and is excerpted from [17]:
Thesis is performed by: Nguyen Khoi Nguyen - 20101949 ICT 55
22
DAG (Directed Acyclic Graph): a directed graph having the property that all
edges are oriented in such a way that no cycles exist. All edges are contained
in paths oriented toward and terminating at one or more root nodes.
DAG root: a node within the DAG that has no outgoing edge. Because the
graph is acyclic, by definition all DAGs must have at least one DAG root and
all paths terminate at a DAG root.
Destination Oriented DAG (DODAG): a DAG rooted at a single destination,
i.e. at a single DAG root (the DODAG root) with no outgoing edges.
DODAG root: the DAG root of a DODAG. The DODAG root may act as a
border router for the DODAG, and in particular it may aggregate routes in
the DODAG, and may redistribute DODAG routes into other routing
protocols.
Rank: a node's Rank defines the node's individual position relative to other
nodes with respect to a DODAG root. Rank strictly increases in the Down
direction and strictly decreases in the Up direction. The exact way Rank is
computed depends on the DAG's Objective Function (OF). The Rank may
analogously track a simple topological distance, may be calculated as a
function of link metrics, and may consider other properties such as
constraints.
Objective Function (OF): defines how routing metrics, optimization
objectives, and related functions are used to compute Rank. Furthermore, the
OF dictates how parents in the DODAG are selected and thus the DODAG
formation.
DODAGID: the identifier of a DODAG root.
DODAG Version: a specific iteration ("Version") of a DODAG with a given
DODAGID.
Version: a sequential counter that is incremented by the root to form a new
Version of a DODAG. A DODAG Version is identified uniquely by the
(InstanceID, DODAGID, Version) tuple.
DODAG parent: a parent of a node within a DODAG is one of the
immediate successors of the node on a path towards the DODAG root. A
DODAG parent's Rank is lower than the node's.
DIO: DODAG Information Object
DIS: DODAG Information Solicitation
23
24
25
26
At the end of this stage, each node has a parent list, and the best rank parent is
selected as preferred parent.
By following these rules, a node having broken path can quickly having a new
parent nodes without the needs of multicasting DIS and waiting for DIO. This
should greatly reduce end-to-end delay as well as energy usage.
Moreover, by self-increase its rank, that node becomes the child of all its
sibling node. Only then, the receiver should know that the broken route node is no
27
longer a candidate for either its parent or sibling nodes, and remove routing
information of that broken node from its routing table.
28
Step 5: After a pre-defined interval, if sensor node has not received any DIO
message, it fires DIS message in order to solicit DIO message from its
neighbor.
29
30
At the end of this stage, each node has a parent list, and the best rank parent is
selected as preferred parent.
31
Rank(node)=(Hop(parent)+1)*RankInc EnergyLevel(node)
II.4. Summary
ELB aims to provide an energy-awareness load balancing in a wireless sensor
network. It is ensured that all of the parent nodes of a sensor will in turn be chosen
as preferred parent by take into consideration a node's residual energy. Therefore, it
results in a load balancing in term of energy. Also, the lifetime of the whole
network should be improved as well, since every best-rank parents are switched turn
by turn.
III. ELB-FLR
This methods aim to take advantages from both of previous enchanment. ELB
defined the term "rank" a little different than FLR. In ELB, rank is calculated by
hop-count and energy level. Therefore when FLR take places, these nodes having
the same hop-count but different energy level is not considered as siblings. Thus,
the number of sibling nodes to be used as back-up is greatly reduced. The term
sibling nodes need to be redefined as follow:
32
33
34
35
Lyly
Bell flowers
Phalaenopsis orchids
Flowers
Rose
lilies
gladiolus
chrysanthemums
Gerberas (2)
Gerberas
Carnation
0%
10%
20%
30%
40%
50%
60%
70%
80%
90% 100%
Humidity (percentage)
Unknown, 5%
Very Strong
light, 10%
Weak light
Normal light
Strong light
Unknown
Unlike paddy, corn, and other food plants, flowers can only growth under given
conditions, depending on what kind the flower is. Furthermore, only high
quality flowers can give high value. Since the quality of products depends
much on the environments effect, the used of environment monitoring system
is necessary to ensure the quality and productivity.
36
These system focus on the automation farming method: auto open/close roof,
auto irrigation system, etc... but hasnt focus on the environment control system yet.
From the section above, we known that the flowers depend a lot on the environment
parameters, so the desgin of Greenhouse in this thesis will mention on the
implementation of the environment control system: how many sensors should we
need, how we populate these nodes.
By careful observation of greenhouses in Vietnam as well as taking Vietnam's
economic circumstances, we propose 3 types of Greenhouse: small size, medium
size and large size.
37
implement WSN and RPL in this situation due to the simply structure of the system.
The figure 17 describe the design for this size of field.
38
In this setup, the technology of IoT and RPL are put to the test. They already
show a reasonable performance (up to 85% package delivery rate) but there still
room to improve. We will discuss the improvement in the enchanted RPL compares
to original RPL in the next chapter.
39
To find the suitable answer for this question, we study on how frequent that
these conditions change their value, and the mechanism that plant use to react with
the changes.
III.1.1. Temperature
Temperature has the massive effect on plants. Suitable air temperature can
enhance the speed of photosynthesis, nutrition absorption and nutrition exchange
inside plants. Plants can growth within wide range of temperature, and each one has
the lowest bound and highest bound of temperature, where this plant can stop all the
inside process if the environment temperature exceed these bounds.
The direct impact of temperature into plants happens when plants live outside
their temperatures range:
Cold damage: With in low temperature, the leaf could be sere, or shed. The
tree try to minimize its metabolism, then there is no chance for flower to
bloomed.
Hot damage: When the temperature is too high, leaf could be burned, and
tree will dead as result. However, a little bit higher temperature can
stimulate the plant growing faster.
Beside the direct impact, temperature also has indirect impact on plants.
Photosynthesis process contains light reaction (day time) and dark reaction (night
Thesis is performed by: Nguyen Khoi Nguyen - 20101949 ICT 55
40
time). While the light reaction totally depend on light, the dark reaction almost
controlled by temperature. When the temperature decrease to low point, the
enzymes can not work well.
Knowing about the impact of temperature into plants, we not only optimize the
living condition, but also control the productivity, time and quality of plants,
especially flowers.
Control the blooming time of flower: As describled above, low temperature
slow down the blooming time of flower, and vice versa. Another word, we
can adjust the time of blooming event. This ability is very useful because
flower is more valueable if bloom in the right time (cenemory, annivesary,
holiday,..)
Control the quality of flower: Some flowers (orchid, dahlia, ...) different
color of flower within different temperature, and soil condition. Therefore,
we have right to decide the most valuable production by adjust the
temperature of Greenhouse.
III.1.2. Air humidity
All plants inhale carbon dioxide through their leaves. This gas is used in
photosynthesis. As the plant opens its leaf pores to take in carbon dioxide, some of
the moisture in the leaf can escape. Thus the plants sweat water vapor into the air
whenever they breath.
Dry air causes plants to transpire moisture much more rapidly than does humid
air. Waterin the leaves evaporates very quickly into air, causing the plant to lose
moisture at a rapid rate. When leaves begin to lose water faster than the roots can
absorb it - disaster strikes. It is an evil the plant inflicts on itself, in self defense. In
order not to lose more water to the air, the plant will almost completely close its leaf
pores. This slows down the flow of moisture from the plant effectively, but
unfortunately it also reduces the intake of carbon dioxide. Without supplies of
carbon dioxide, the cells begin to die and the plant looks tired and ill.
The important point to remember is that dry air pulls water out of the leaves
faster than theroots can supply the leaves. Under these conditions, it doesn't matter
how much you water such a plant it doesn't help. Over watering only reduces the
amount of air in the soil and invites root rot.
When plants have the right humidity they thrive, because they open their pores
completely and so breath deeply without threat of excessive water loss. When the
air is moist, there is little water lost from the leaf. Damping down the benches and
Thesis is performed by: Nguyen Khoi Nguyen - 20101949 ICT 55
41
surrounds, also misting leaves will keep the air moist. Rapid temperature rises
damage orchids too. It means thatthe plant's leaves become warm and
physiologically active, while the root system in it's solid rooting medium, is still
cold and consequently Physiologically dormant. The active leaves are demanding
large quantities of water and nutrients which the root system cannot possibly
supply.
Under these conditions, photosynthesis, transpiration and the other vital plant
processes, are severely restricted and as a result, developing flower growth and new
growth are damaged. Rapid rises in temperature on sunny days can be avoided by
opening vents or doors early in the morning - and letting the greenhouse warm
gradually.
III.1.3. Soil humidity
Soil humidity directly affect the process of water exchange, as well as the
development of harmed insects and disease. In general, humidity in Vietnam is
high, but different regions do not have the same value.
In particular, many kind of flowers living in Vietnam came from non-tropical
region (eg, tulip...), which only growth in low humidity. Therefore, these flowers
need to live under the humidity that continuously controlled.
Like temperature, each plant has its own ideal range of humidity. Too low or
too high value of humidity can harm the plant:
High humidity can prevent the water exchange, thus the plant is very hard to
analyse the nutrion. As the result, the flower usually has the bad quality, or
even dead. Harmful insects and diseases can also growth fast in this
condition.
Low humidity cause the water leak, therefore, plant does not growth well.
III.1.4. Light
Light has three principal characteristics that affect plant growth: quantity,
quality, and duration.
Light quantity refers to the intensity or concentration of sunlight and varies
with the season of the year. The maximum is present in the summer and the
minimum in winter. The more sunlight a plant receives (up to a point), the better
capacity it has to produce plant food through photosynthesis. As the sunlight
quantity decreases the photosynthetic process decreases. Light quantity can be
decreased in a garden or greenhouse by using shade-cloth or shading paint above
the plants. It can be increased by surrounding plants with white or reflective
material or supplemental lights.
Thesis is performed by: Nguyen Khoi Nguyen - 20101949 ICT 55
42
Light quality refers to the color or wavelength reaching the plant surface.
Sunlight can be broken up by a prism into respective colors of red, orange, yellow,
green, blue, indigo, and violet. On a rainy day, raindrops act as tiny prisms and
break the sunlight into these colors producing a rainbow. Red and blue light have
the greatest effect on plant growth. Green light is least effective to plants as most
plants reflect green light and absorb very little. It is this reflected light that makes
them appear green. Blue light is primarily responsible for vegetative growth or leaf
growth. Red light when combined with blue light, encourages flowering in plants.
Fluorescent or cool-white light is high in the blue range of light quality and is used
to encourage leafy growth. These lights are excellent for starting seedlings.
Incandescent light is high in the red or orange range but generally produces too
much heat to be a valuable light source. Fluorescent "grow" lights have a mixture of
red and blue colors that attempts to imitate sunlight as closely as possible. They are
costly and generally not of any greater value than regular fluorescent lights.
Light duration or photoperiod refers to the amount of time that a plant is
exposed to sunlight. When the concept of photoperiod was first recognized it was
thought that the length of periods of light triggered flowering. The various
categories of response were named according to the light length (i.e., short-day and
long-day). It was then discovered that it is not the length of the light period but the
length of uninterrupted dark periods that is critical to floral development. The
ability of many plants to flower is controlled by photoperiod.
There is two groups of plants: light-like plants and shade-like plants. While the
first group needs direct and high intensity of light to well growth, the other one only
growth under shade. Like temperature and humidity, high and low intensity of light
could impact the plants:
Weak light sometimes is not enough for photosynthesis process, which lead
to low quality of production.
Strong light, on the other hand, can burn the leaf and destroy the
chlorophyll. By the other word, too strong light can kill the plant.
43
To find the suitable answer for this question, we study on how frequent that
these conditions change their value, and the mechanism that plant use to react with
the changes.
III.2.1. Light and temperature data
In theory, light must be control continously because tree depends too much on
light and temperature. However, start from the particular situation, the value of
them can be measured periodically, because of these reasons:
High intensity of light or high temperature could instantly kill the tree, but it
is almost impossible under greenhouse, and the climate of Vietnam.
The tree itself has the mechanism to protect and react with the change of
them in short time.
In certain season, we can predict the value of light and temperature in
specific time, with small errors.
In artifact light condition, we can exaclty determine the value of light and
maintain the value of temperature.
III.2.2. Air and soil humidity data
High air humidity in long time is the the main reason for most of disease and
insect.
Low air humidity can instantly prevent the photosynthesis, low air moisture
in long time can prevent plant rejecting Carbon Dixide, which very harmful
to plant itself.
High soil humidity (after baste or under flooded condition) may kill the root
in couple of minutes.
44
45
are varies as per the type, age, phase and climate. The pH value, moisture
contains, electric conductivity and the temp of a soil are some key parameters. The
pH valves and other parameters will help to monitor the soil condition. The
temperature and the moisture can be controlled by the irrigation techniques like
drift and sprinkles system in a greenhouse. The temperature of the soil and
the inside temperature of the green house are interrelated parameters, which can
be, control by proper setting of ventilation. Since the temperature control is
depends on direct sun radiation and the screen material used, the proper set point
can adjust to control soil temperature. The temperature set-point value
depends on actual temperature of the inside and outside of the greenhouse
[25].
46
47
48
Each sensors then try to send these data back to the base station.
For small-sized and medium-sized, the perfomance was superb with almost
100% Package Delivery Rate using only simple RPL routing. For that reason, we
will not discuss the improvement of Multipath routing in these two scenario, we
will mainly focus on our result in large-sized field. The 3 following methods will be
used to measure the improvement of our multipath RPL:
Packet delivery rate: this is the ratio of number of package received in
the base station to number of package sent from nodes.
End-to-end delay: this is calculated by divide the total delay to the total
number of package has been received by application layer in Server. It
represent time difference between data sent at each nodes and received
at the base station.
Data error received at base station: During the experiment, I recorded the
value of data sent from sensor nodes and base station. Then, the set of
data will be synthesized to result the general error during the transmit
time by comparing the data from choosen nodes and base station.
Residual energy-level distribution: energy in each sensor nodes is
divided into 100 equally level. In this method, the number of node in
each level is counted.
49
Total
Light
Air
Soil
temperature Send
humidity humidity
Received Ratio
(%)
RPL
73.05
88.62
87.00
85.21
74232
65208
87.84%
ELB
78.07
92.04
90.21
89.12
74232
67552
91.00%
FLR
75.95
91.67
89.92
87.71
74232
67455
90.87%
ELBFLR
78.21
93.32
91.39
89.64
74232
68530
92.32%
50
ELB-FLR shown to have the best PDR (92.3%). ELB and FLR alone shown
some improvement yet having roughly equal result: 91% and 90.8% respectively.
RPL has the worst package delievery rate with only 87.8% package successfully
deliveried. It can be explained that because RPL use more ICMPv6 message to
maintain its route, there is higher chance of traffic congestion, and FLR tackle this
issue by reduce the amount of these messages. Moreover, ELB provides a parent
switching mechanism to prevent a few good parents from having much higher load
than the rest and quickly ran out of power. ELB-FLR gives the best result since
FLR provides a set of sibling nodes. These nodes can in turn act as parent nodes,
giving ELB more choices when it comes to parent switching.
51
Air humidity
Soil
Humidity
Temperature
RPL
194.72
212.62
201.63
211.98
ELB
301.3
334.44
316.42
332.97
FLR
192.84
212.5
200
213.51
ELB-FLR
248.77
266.1
251.27
270.34
FLR (202 msec) shown a little improvement compared to normal RPL (203
msec). However ELB and ELB-FLR cause a significant higher delay (319 msec and
253 msec respectively). It can be explained that FLR actually reduced the number
of ICMPv6 message needed to maintain RPL route, therefore reduce the amount of
time data payload needs to wait for those ICMPv6 in package queue. On the other
hand, ELB and ELB-FLR tries to balance energy load by choosing different parent
at any transmission. Under the circumstances of our network setup, 1 node may
have many parent nodes, therefore the parent switching get really slow, thus
increase the overall delay of package.
Thesis is performed by: Nguyen Khoi Nguyen - 20101949 ICT 55
52
Temperature error
Error (Celcious)
2
1.5
1
0.5
0
0
500
1000
1500
2000
2500
3000
2500
3000
Time
RPL
ELB
FLR
FLR+ELB
Light error
160
Error (Lux)
140
120
100
80
60
40
20
0
0
500
1000
1500
2000
Time
RPL
ELB
FLR
FLR+ELB
53
Error (%)
500
1000
1500
2000
2500
3000
2500
3000
Time
RPL
ELB
FLR
FLR+ELB
Error (%)
500
1000
1500
2000
Time
RPL
ELB
FLR
FLR+ELB
All above figures (from Fig.24 to Fig.27) represent the error between data
received at the BS produced by RPL, ELB, FLR, ELB-FLR and the data sent at the
sensors. Obviously, the high data error leads to the decreased monitoring quality.
As shown in the previous figures, RPL routing protocol produces the highest data
error, compared to ELB, FLR and ELB-FLR. The reason of this characteristic is
that RPL achieves the worst packet delivery rate (as described in previous section).
This low packet delivery rate leads to the data error produced at the BS. More
concretely, pH level and light intensity varies slightly according to the time while
temperature and humidity fluctuates more strongly. Thus, the data error received at
Thesis is performed by: Nguyen Khoi Nguyen - 20101949 ICT 55
54
the BS of pH level and light intensity is smaller than error of temperature and
humidity. In addition, among five above parameters (pH level, light intensity,
humidity of the air and the soil, temperature), it is necessary to measure the
humidity with the highest sampling rate. This high sampling rate leads to the more
frequent humidity error produced at the BS. In conclusion, the implementation of
multipath-based RPL protocols ELB, FLR, ELB-FLR can help to the performance
increase of environment monitoring parameters.
It can be seen that ELB, FLR and ELB-FLR provided more nodes with high
residual energy level. Where ELB and FLR provided roughly the same result, ELBFLR combined shows much promising sin0063e it both reduce the number of
overhead package and maintain a balanced level of energy among nodes.
55
In this thesis, we have studied the concept of Precision Agriculture and the
deployment of Greenhouse using Wireless Sensor Network over Internet of Things.
We also studied the popular plants and flowers in Vietnam and their characteristic
to determine how environment affects their growth. Using these information, we
concluded how important certain environment parameters are and how often should
we measure them to not only ensure plants' safety but also save energy. By careful
observation of real world Greenhouse models and Vietnam's particular requirement,
we came up with a design of Greenhouse suitable for Vietnamese farmers. We also
studied the multipath solution based on RPL and apply it to improve the system's
performance. Last, we set up a simulation and the out come result was very
promising.
However, these designs have only been implemented and tested in simulation
environment. For real world applications, there are a lot of others' factor that can
affect and degrade the system's performance. Another problems is that the multipath
enchanment is still in theory and not yet implemented and tested on real devices.
Overall, this research is aimed toward deploying a real world application of
WSN for Greenhouse in Vietnam. But due to our limited time and knowledge, we
only be able to design and evaluate it through simulation. It is a great challenge for
us, and we need more affordable work in the future to realize our idea.
56
REFERENCES
57
58
24] on Wireless Network Measurements (located with WiOpt 2005), Riva del
Garda, Italy, Apr. 2005..
[
W. Zhang, G. Kantor, and S. Singh Integrated wireless sensor/actuator
25] networks in agricultural applications. In Second ACM International
Conference on Embedded Networked Sensor Systems (SenSys), page 317,
Baltimore, Maryland, USA, Nov. 2004..
[
Rodrguez, F. Modeling and hierarchical control of greenhouse crop
26] production (in Spanish). PhD thesis, University of Almera, Spain, 2002..
59