Basrah Journal for Engineering Sciences, vol. 17, no. 1, 2017 67
Fig. 11 The upload and download data operation.
To achieve the IoT system that could perform the
functions that has been illustrated in Fig. 11, there are some
programs and techniques should be employed:
a) Design a web application:
The First step was designing a web page to display the
information for the user. The web page should be easy to
use, attractive, and has a simple HTML code in order to
speed up the execution of functions of the web page.
The designed web application is important to be secured
with Username and password for each user. Also, the
permissions of each member are different, a part of
members are authorized to access, monitor, and control the
systems as shown in Fig. 12.
While the other part has the ability to access and monitor
the state of the systems as shown in Fig. 13.
a) The cloud technology:
The real problem faced in this project as especial case
and in IoT as general case is centered on the public Internet
address (IP). This is a big problem facing the developers of
IoT. However, there are several solutions; one of them is the
use of cloud technology.
Fig. 12 The web application: control and monitor.
Fig. 13 The web page: monitor.
There are several companies offer to the developers a
space on their servers and give them a domain name. This
domain name gives the ability to the developers to access
their server from anywhere in the world. In this work, the
000webhost is selected, in which the website code and
additional files of PHP and MySQL are uploaded by
Filezilla program to a 000webhost server.
b) Local communications of nodes:
In order to make several nodes capable to connect to
internet and download the set-points and upload their system
status, the master-slave technique could be used. The master
would be defined as node that has the ability to connect to
the public internet by the Ethernet to download/upload the
nodes data. Also, the master node communicate locally with
others node by using the RF Transmitter. While, the slave
node is only communicate with slave node to send their
status and receive the set-point that specified for its control
system.
c) Remotely Management and Monitor the system’s status:
In this article, attempt to construct a prototype IoT, using
simple, cheap, and available tools. To apply the IoT in a
practical application, there are many tools should be
employed like Ethernet Arduino Shield and Arduino
microcontroller.
The Ethernet plays as the main tool which makes a
connection between the greenhouse and the router that acts
as a gateway. The first step was programming the
microcontroller to make a link between the greenhouse and
the server, to be more accurate with the PHP files that
should be resided on the server. The PHP file function
fetches the data send through the link from the greenhouse
and store it in MySQL table. The link established by HTTP
request, which is issued by the microcontrollers.
The download data is accomplished by multiple HTTP
requests from the greenhouse to the server. The response of
the server has returned the code to the source
(microcontroller) of the request. The microcontroller will
receive the server’s response and store it in buffers, then
start to looking for the intended parameters that used for
managing. In this project is considered as set-points whose
utilize to drive the intelligent control systems that explained
previously.
The last feature in this IoT system is the utilization of
the IP camera to offer an online monitoring for the
greenhouses, there is an icon in Fig. 12 and Fig. 13 referred
to the camera which enables the pleasant to watch their
plants online.
The problem faced the developers is the dynamic IP that
changes every time after the router reboot. In order to solve
that, NO-IP website could be used to obtain a dynamic
domain name. This domain name should be set-up in the
Dostları ilə paylaş: