41
As the IoT server was setup also for DNS services, the iothomepage.com was translated
with the IoT server static IP.
Once user was connected to IoThomepage.com it was possible to visualize the status of
the IoT devices but it is also possible to review the interaction logic between them.
As visible in the Figure 20, in this exercise five IoT smart-devices were used:
motion
detector, siren, garage door, fan and smoke detector. Also cars were utilized, but these
were only for influence the environmental variable of the simulation.
Figure 20 - Status of the
IoT devices connected
42
Figure 21 - Pre-set conditions
As one can see in the Figure 21 while being connected to the IoT homepage it was also
possible to browse to the conditions page and visualize the two main
IoT simulation ex-
amples.
The first case utilized a motion sensor to temporary activate the alarm siren as sort of
basic home alarm system. Logic is visible in the previous Figure 21, simply, when sensor
was triggered, the siren was set on. When sensor was not detecting any movement, and
after
a pre-set timeout, the siren was set to be off. This logic
was easily validated by
pressing ALT on the keyboard and hoovering the mouse cursor on the motion detector,
siren was then activated immediately as shown in the Figure 22 below.
Figure 22 - Active IoT siren
43
The second simulation logic was regarding the home garage, in this case an additional
separate physical container was utilized in order to influence the environmental varia-
bles.
As visible in the Figure 21, the sensor was set to turn on the fan, to open the garage door
and to sound the alarm siren in case the carbon dioxide level within the container reached
a pre-set threshold. No action were triggered if level of carbon
dioxide was under the
threshold.
In order to raise the carbon dioxide level few cars were utilized. By pressing ALT on the
keyboard and clicking on the car with the mouse, the car turned on. Once all cars were
on the level of carbon dioxide was rapidly raising, till the moment that alarm rang, garage
door opened and ceiling fan started venting out the carbon dioxide. Simulations statuses
are visible in the below Figure 23.
Figure 23 - Simulation of carbon dioxide building up in the garage