Smart Office Network Design, Automation, and Data Collection Project
VerifiedAdded on 2022/08/27
|24
|2420
|19
Project
AI Summary
This project details the design and implementation of a smart office network using Internet of Things (IoT) devices. The project is divided into two main tasks. Task one focuses on the network design, including the configuration of a registration server, wireless access point, and DHCP server to manage a...

Running head: INTERNET OF THINGS
Internet of Things
Name of the Student
Name of the University
Author’s Note
Internet of Things
Name of the Student
Name of the University
Author’s Note
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.

1
INTERNET OF THINGS
Task One
Part A
The network is developed for Main smart Office and the listed IoT devices are placed,
connected with the registration server, wireless access point and the main site. For the
development of the network secured network protocol and wireless encryption is used. An
addressing scheme is created for the configuration of the DHCP server and allowing the IOT
devices to be allocated with a suitable IPv4 address such that it can send and receive data packets
over the network.
The following is the design of the network presented that is created for the demo smart
office:
Network Design
INTERNET OF THINGS
Task One
Part A
The network is developed for Main smart Office and the listed IoT devices are placed,
connected with the registration server, wireless access point and the main site. For the
development of the network secured network protocol and wireless encryption is used. An
addressing scheme is created for the configuration of the DHCP server and allowing the IOT
devices to be allocated with a suitable IPv4 address such that it can send and receive data packets
over the network.
The following is the design of the network presented that is created for the demo smart
office:
Network Design

2
INTERNET OF THINGS
INTERNET OF THINGS

3
INTERNET OF THINGS
The registration server is configured with IoT service and DNS service enabled such that
it can be accessed for controlling the smart devices connected with the network. The following
screenshot is given for the demonstration of the configuration steps.
Step#1: An account is opened with username and password for managing the IoT devices
connected with the registration server.
Step#2: The wireless access point is configured with authentication and encryption such
that only the known users can connect with the network. The password makes the network secure
and is needed for connecting each of the IoT devices or other smart devices with the
organizational network.
INTERNET OF THINGS
The registration server is configured with IoT service and DNS service enabled such that
it can be accessed for controlling the smart devices connected with the network. The following
screenshot is given for the demonstration of the configuration steps.
Step#1: An account is opened with username and password for managing the IoT devices
connected with the registration server.
Step#2: The wireless access point is configured with authentication and encryption such
that only the known users can connect with the network. The password makes the network secure
and is needed for connecting each of the IoT devices or other smart devices with the
organizational network.
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.

4
INTERNET OF THINGS
IP addressing
Subnet
Name
Allocated
Size
Address Dec Mask Mask Assignable
Range
Broadcast
Server
Subnet
14 209.165.220.
0
255.255.255.240 /28 209.165.220.1
-
209.165.220.14
209.165.220.15
IoT
Subnet
126 192.168.0.0 255.255.255.128 /25
192.168.0.1 -
192.168.0.126
192.168.0.127
Step#4: The tablet pc and the IoT devices are connected with the wireless access point with the
authentication passphrase and is demonstrated below:
INTERNET OF THINGS
IP addressing
Subnet
Name
Allocated
Size
Address Dec Mask Mask Assignable
Range
Broadcast
Server
Subnet
14 209.165.220.
0
255.255.255.240 /28 209.165.220.1
-
209.165.220.14
209.165.220.15
IoT
Subnet
126 192.168.0.0 255.255.255.128 /25
192.168.0.1 -
192.168.0.126
192.168.0.127
Step#4: The tablet pc and the IoT devices are connected with the wireless access point with the
authentication passphrase and is demonstrated below:

5
INTERNET OF THINGS
INTERNET OF THINGS

6
INTERNET OF THINGS
Step#5: The DHCP server is configured following the IP address and subnets created in
the addressing table such that the IP address wastage can be reduced and the efficiency is address
allocation is improved.
INTERNET OF THINGS
Step#5: The DHCP server is configured following the IP address and subnets created in
the addressing table such that the IP address wastage can be reduced and the efficiency is address
allocation is improved.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

7
INTERNET OF THINGS
Step#6: In this step the IoT devices are connected with the registration server by
inputting the IP address of the server and the user name and password used for creating the
account in registration server.
Step#7: In this step DNS server is configured with enabling DNS service in the
registration server such that an URL can be used for accessing the server and make the network
more convenient to use.
INTERNET OF THINGS
Step#6: In this step the IoT devices are connected with the registration server by
inputting the IP address of the server and the user name and password used for creating the
account in registration server.
Step#7: In this step DNS server is configured with enabling DNS service in the
registration server such that an URL can be used for accessing the server and make the network
more convenient to use.

8
INTERNET OF THINGS
Part B
A new branch is added and connected with the main office site such that the device
installed in the main office site can be controlled from the branch and the usability of the
network is improved. The network design after the addition of the branch office is given below:
A smart phone is connected with the branch office server and logged in to the user account that is
created before for the management of Iot devices. Logging into the account shows the IoT
devices that are connected with the network along with their status and helps management of the
IoT devices according to the needs of the user.
The sprinkler is turned off:
The ceiling fan is turned off:
INTERNET OF THINGS
Part B
A new branch is added and connected with the main office site such that the device
installed in the main office site can be controlled from the branch and the usability of the
network is improved. The network design after the addition of the branch office is given below:
A smart phone is connected with the branch office server and logged in to the user account that is
created before for the management of Iot devices. Logging into the account shows the IoT
devices that are connected with the network along with their status and helps management of the
IoT devices according to the needs of the user.
The sprinkler is turned off:
The ceiling fan is turned off:

9
INTERNET OF THINGS
The door is locked:
The lamp is set to dim:
The smoke alarm is turned on:
The motion detector is turned on:
The wind detector is turned on:
INTERNET OF THINGS
The door is locked:
The lamp is set to dim:
The smoke alarm is turned on:
The motion detector is turned on:
The wind detector is turned on:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.

10
INTERNET OF THINGS
Part C
In the final task the IoT devices are configured for automating some of the operation and
the conditions used for the configuration are given below:
On detection of any motion by the motion detector the lamp is turned on and a picture is taken
with the help of web camera.
On detection of fire by the smoke detector the fire sprinkler is turned on and when the fire is
stopped the sprinkler stops automatically. The implementation is done by triggering the siren and
a level is set for turning on the supply of water. Appropriate levels are assumed for the
demonstration of condition.
INTERNET OF THINGS
Part C
In the final task the IoT devices are configured for automating some of the operation and
the conditions used for the configuration are given below:
On detection of any motion by the motion detector the lamp is turned on and a picture is taken
with the help of web camera.
On detection of fire by the smoke detector the fire sprinkler is turned on and when the fire is
stopped the sprinkler stops automatically. The implementation is done by triggering the siren and
a level is set for turning on the supply of water. Appropriate levels are assumed for the
demonstration of condition.

11
INTERNET OF THINGS
INTERNET OF THINGS

12
INTERNET OF THINGS
On detection of carbon dioxide with the help of Co2 monitoring IOT the smart window is
automatically opened and it is set to close on decrease of co2 level in the in house office
environment.
INTERNET OF THINGS
On detection of carbon dioxide with the help of Co2 monitoring IOT the smart window is
automatically opened and it is set to close on decrease of co2 level in the in house office
environment.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

13
INTERNET OF THINGS
The following are the condition applied for the satisfaction of the smart office condition and
tabulated below
Actions Enabled Name Condition Actions
Edit Remove Yes condition1 Motion Detector On is true Set Lamp Status to On
Set Web Camera On to true
Edit Remove Yes condition2 Smoke Detector Level >= 2.5 Set Fire Sprinkler Status to true
Edit Remove Yes condition2.1 Smoke Detector Level = 0 Set Fire Sprinkler Status to false
Edit Remove Yes condition 3 CO2 detector Level >= 2.5 Set Window On to true
Edit Remove Yes condition 3.1 CO2 detector Level <= 2.4 Set Window On to false
INTERNET OF THINGS
The following are the condition applied for the satisfaction of the smart office condition and
tabulated below
Actions Enabled Name Condition Actions
Edit Remove Yes condition1 Motion Detector On is true Set Lamp Status to On
Set Web Camera On to true
Edit Remove Yes condition2 Smoke Detector Level >= 2.5 Set Fire Sprinkler Status to true
Edit Remove Yes condition2.1 Smoke Detector Level = 0 Set Fire Sprinkler Status to false
Edit Remove Yes condition 3 CO2 detector Level >= 2.5 Set Window On to true
Edit Remove Yes condition 3.1 CO2 detector Level <= 2.4 Set Window On to false

14
INTERNET OF THINGS
Task Two
Part A
Introduction
The task two is related with the creation of a script of python in order to gather the data
that are associated to real world from the gadgets of Internet of Things and the deployment of
services of IoT. For the creation of the software, python is utilised and the data taken from the
sensors known as Ballina is required to be collected from the website
http://www.bom.gov.au/fwo/IDN60801/IDN60801.94596.json. In the last three days, the data is
presented and then it is represented utilising API by Beurea of Meterology environment of FOG.
The data is required to be re-examined and then presented at the website
http://www.bom.gov.au/catalogue/data-feeds.shtml#xml. The environment of Linux is installed
in an workstation those are virtual by utilising the Oracle Virtualbox (Vajja, 2016). After
installing the server, the programming language and the Apache Web Server is then installed in
the server. The steps that are followed in order to install the server is given in the screenshots
below. In the subsequent steps a script of python is developed that utilises request of python and
the module of JSON in order to download the object of JSON. The program then processes the
data of three days that are obtainable from the website and then reports the minimum, maximum
and the average relative humidity and the minimum, maximum and the average temperature
(Raikar, Desai & Naragund, (2016). In the last stage, the program of python is altered in order to
generate a very simple webpage as results and then putting it in the directory of CGI BIN in
order to access it and offering the user a web page that displays all the required information.
Installing Apache
INTERNET OF THINGS
Task Two
Part A
Introduction
The task two is related with the creation of a script of python in order to gather the data
that are associated to real world from the gadgets of Internet of Things and the deployment of
services of IoT. For the creation of the software, python is utilised and the data taken from the
sensors known as Ballina is required to be collected from the website
http://www.bom.gov.au/fwo/IDN60801/IDN60801.94596.json. In the last three days, the data is
presented and then it is represented utilising API by Beurea of Meterology environment of FOG.
The data is required to be re-examined and then presented at the website
http://www.bom.gov.au/catalogue/data-feeds.shtml#xml. The environment of Linux is installed
in an workstation those are virtual by utilising the Oracle Virtualbox (Vajja, 2016). After
installing the server, the programming language and the Apache Web Server is then installed in
the server. The steps that are followed in order to install the server is given in the screenshots
below. In the subsequent steps a script of python is developed that utilises request of python and
the module of JSON in order to download the object of JSON. The program then processes the
data of three days that are obtainable from the website and then reports the minimum, maximum
and the average relative humidity and the minimum, maximum and the average temperature
(Raikar, Desai & Naragund, (2016). In the last stage, the program of python is altered in order to
generate a very simple webpage as results and then putting it in the directory of CGI BIN in
order to access it and offering the user a web page that displays all the required information.
Installing Apache

15
INTERNET OF THINGS
The screenshot demonstrates the steps that are followed in order to install Apache2 web
server and in order to do this, the command “sudo apt update” is utilised.
INTERNET OF THINGS
The screenshot demonstrates the steps that are followed in order to install Apache2 web
server and in order to do this, the command “sudo apt update” is utilised.
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.

16
INTERNET OF THINGS
In the subsequent step, the command “sudo apt install apache2” is utilised in order to start
the installation of the Apache2 Web Service.
In this screenshot, the installation of the Apache2 web service is verified utilising the
command “apache2 -version”
Installation of Python
In order to install python in the environment of Linux, the command “sudo apt install
software-properties-common” is utilised in order to download the general files and then
installing the prequisities.
INTERNET OF THINGS
In the subsequent step, the command “sudo apt install apache2” is utilised in order to start
the installation of the Apache2 Web Service.
In this screenshot, the installation of the Apache2 web service is verified utilising the
command “apache2 -version”
Installation of Python
In order to install python in the environment of Linux, the command “sudo apt install
software-properties-common” is utilised in order to download the general files and then
installing the prequisities.

17
INTERNET OF THINGS
In the next step, the deadsnake PPA is inserted to the list of source utilising the “sudo add-apt-
repository ppa:deadsnakes/ppa” command.
INTERNET OF THINGS
In the next step, the deadsnake PPA is inserted to the list of source utilising the “sudo add-apt-
repository ppa:deadsnakes/ppa” command.

18
INTERNET OF THINGS
In the last step, python version 3.7 is installed by utilising the command “sudo apt install
python3.7”. The user is prompted in order to press Y/N in order to proceed with the installation
of python and Y is entered in order to complete the procedure of installation.
The installation of python is verified by utilising “python3.7 --version” command and it
is shown in the screenshot given above.
Part B
#!/usr/bin/python
import urllib as u
import urllib.request
import json
import xml.etree.ElementTree as ET
import dateutil.parser
import argparse
def getAttribute(root, attrib):
res = root.find("./*[@type='"+attrib+"']")
if res is not None:
return res.text
INTERNET OF THINGS
In the last step, python version 3.7 is installed by utilising the command “sudo apt install
python3.7”. The user is prompted in order to press Y/N in order to proceed with the installation
of python and Y is entered in order to complete the procedure of installation.
The installation of python is verified by utilising “python3.7 --version” command and it
is shown in the screenshot given above.
Part B
#!/usr/bin/python
import urllib as u
import urllib.request
import json
import xml.etree.ElementTree as ET
import dateutil.parser
import argparse
def getAttribute(root, attrib):
res = root.find("./*[@type='"+attrib+"']")
if res is not None:
return res.text
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

19
INTERNET OF THINGS
else:
return None
def current():
resp =
urllib.request.urlopen("http://www.bom.gov.au/fwo/IDN60801/IDN60801.94596.json")
data = json.loads(resp)
latest_ob = data['observations']['data'][0]
location = latest_ob['name']
datetime_full = latest_ob['local_date_time_full']
time = datetime_full[8:10] + ':' + datetime_full[10:12]
print ('\nLatest observations for %s (as of %s latest_time):' % (location, time))
print ('\tAir temp: %.1fC' % latest_ob['air_temp'])
print ('\tMAximum Air temp: %.1fC' % Max(latest_ob))
print ('\tMinimum Air temp: %.1fC' % Min(latest_ob))
print ('\tRelative Humidity: %d percent' % latest_ob['rel_hum'])
print ('\tMaximum Relative Humidity: %d percent' % Max(latest_ob))
print ('\tMaximum Relative Humidity: %d percent' % Min(latest_ob))
return
def format_time_full(s):
INTERNET OF THINGS
else:
return None
def current():
resp =
urllib.request.urlopen("http://www.bom.gov.au/fwo/IDN60801/IDN60801.94596.json")
data = json.loads(resp)
latest_ob = data['observations']['data'][0]
location = latest_ob['name']
datetime_full = latest_ob['local_date_time_full']
time = datetime_full[8:10] + ':' + datetime_full[10:12]
print ('\nLatest observations for %s (as of %s latest_time):' % (location, time))
print ('\tAir temp: %.1fC' % latest_ob['air_temp'])
print ('\tMAximum Air temp: %.1fC' % Max(latest_ob))
print ('\tMinimum Air temp: %.1fC' % Min(latest_ob))
print ('\tRelative Humidity: %d percent' % latest_ob['rel_hum'])
print ('\tMaximum Relative Humidity: %d percent' % Max(latest_ob))
print ('\tMaximum Relative Humidity: %d percent' % Min(latest_ob))
return
def format_time_full(s):

20
INTERNET OF THINGS
'''Format a BOM full time string to a time'''
date = s[0:4] + '-' + s[4:6] + '-' + s[6:8]
time = s[8:10] + ':' + s[10:12]
return (date, time)
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--current",
help="Current temperature", action="store_true")
args = parser.parse_args()
if args.current:
current()
else:
parser.print_help()
return
if __name__ == '__main__':
main()
Part C
The program of python that is developed is altered in order to produce an html result and
then place the script in the directory of CDI-BIN in order to access it and offer the information
INTERNET OF THINGS
'''Format a BOM full time string to a time'''
date = s[0:4] + '-' + s[4:6] + '-' + s[6:8]
time = s[8:10] + ':' + s[10:12]
return (date, time)
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--current",
help="Current temperature", action="store_true")
args = parser.parse_args()
if args.current:
current()
else:
parser.print_help()
return
if __name__ == '__main__':
main()
Part C
The program of python that is developed is altered in order to produce an html result and
then place the script in the directory of CDI-BIN in order to access it and offer the information

21
INTERNET OF THINGS
that are tailored by the user about the IoT sensor known as Ballina. The CGI is utilised as a
benchmark for the external gateway and serve is as a server of HTTP. A directory those are
preconfigured is utilised in order to keep the programs of CGI that are required to be run by the
server of HTTP (Gordon & Guilfoos, 2017). The directory of CGI can be easily found at
/var/www/cgi-bin and the files that are present in the directory have an extension of .cgi but the
files that have the extension .py can be kept in the directory. The script of python that is
developed in part b write down its results in the STDOUT file, it is an essential functionality that
requires to be printed as Content-type:text/html\r\n\r\n. In order to print, the lines are then sent to
the browser and it specifies the kind of content that are required to be exhibited (Irving, 2016).
The variable of CGI can be listed by the utilization of environment of GET as the information of
user is encoded and then it is appended with the request of page.
Conclusion
The report concludes that the creation of the script of python would assist in collecting
data that are produced from the sensors of IoT and then show it in a format those are readable for
the evaluation of data. The Apache Web Server is available in free and it is utilised in order to
host the web pages and it assists in developing an success to secure shell to the server. The
service of IoT is configured with the evaluation of real world data produced from the original
sensors of IoT. Software is created in order to represent the data of last three days and then
standardize the interface of web in order to make the data available through it. In the last stage,
the program of python is altered in order to generate a very simple webpage as results and then
putting it in the directory of CGI BIN in order to access it and offering the user a web page that
displays all the required information.
INTERNET OF THINGS
that are tailored by the user about the IoT sensor known as Ballina. The CGI is utilised as a
benchmark for the external gateway and serve is as a server of HTTP. A directory those are
preconfigured is utilised in order to keep the programs of CGI that are required to be run by the
server of HTTP (Gordon & Guilfoos, 2017). The directory of CGI can be easily found at
/var/www/cgi-bin and the files that are present in the directory have an extension of .cgi but the
files that have the extension .py can be kept in the directory. The script of python that is
developed in part b write down its results in the STDOUT file, it is an essential functionality that
requires to be printed as Content-type:text/html\r\n\r\n. In order to print, the lines are then sent to
the browser and it specifies the kind of content that are required to be exhibited (Irving, 2016).
The variable of CGI can be listed by the utilization of environment of GET as the information of
user is encoded and then it is appended with the request of page.
Conclusion
The report concludes that the creation of the script of python would assist in collecting
data that are produced from the sensors of IoT and then show it in a format those are readable for
the evaluation of data. The Apache Web Server is available in free and it is utilised in order to
host the web pages and it assists in developing an success to secure shell to the server. The
service of IoT is configured with the evaluation of real world data produced from the original
sensors of IoT. Software is created in order to represent the data of last three days and then
standardize the interface of web in order to make the data available through it. In the last stage,
the program of python is altered in order to generate a very simple webpage as results and then
putting it in the directory of CGI BIN in order to access it and offering the user a web page that
displays all the required information.
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.

22
INTERNET OF THINGS
INTERNET OF THINGS

23
INTERNET OF THINGS
Bibliography
Badshah, A., Ghani, A., Qureshi, M. A., & Shamshirband, S. (2019). Smart Security Framework
for Educational Institutions Using Internet of Things (IoT).
Flifel, R. K. (2019). The Role of Packet Tracer in Learning Wireless Networks and Managing
IoT Devices. ISeCure, 11(3).
Gordon, S. I., & Guilfoos, B. (2017). Introduction to Modeling and Simulation with MATLAB®
and Python. Chapman and Hall/CRC.
Irving, D. (2016). A minimum standard for publishing computational results in the weather and
climate sciences. Bulletin of the American Meteorological Society, 97(7), 1149-1158.
Raikar, M. M., Desai, P., & Naragund, J. G. (2016, December). Active learning explored in
Open elective course: Internet of Things (IoT). In 2016 IEEE Eighth International
Conference on Technology for Education (T4E) (pp. 15-18). IEEE.
Sihombing, O., Zendrato, N., Laia, Y., Nababan, M., Sitanggang, D., Purba, W., ... & Siregar, S.
(2018, April). Smart home design for electronic devices monitoring based wireless
gateway network using cisco packet tracer. In Journal of Physics: Conference
Series (Vol. 1007, No. 1, p. 012021). IOP Publishing.
Vajja, R. (2016). Python Oracle Integration and Data Analysis(Doctoral dissertation, San Diego
State University).
INTERNET OF THINGS
Bibliography
Badshah, A., Ghani, A., Qureshi, M. A., & Shamshirband, S. (2019). Smart Security Framework
for Educational Institutions Using Internet of Things (IoT).
Flifel, R. K. (2019). The Role of Packet Tracer in Learning Wireless Networks and Managing
IoT Devices. ISeCure, 11(3).
Gordon, S. I., & Guilfoos, B. (2017). Introduction to Modeling and Simulation with MATLAB®
and Python. Chapman and Hall/CRC.
Irving, D. (2016). A minimum standard for publishing computational results in the weather and
climate sciences. Bulletin of the American Meteorological Society, 97(7), 1149-1158.
Raikar, M. M., Desai, P., & Naragund, J. G. (2016, December). Active learning explored in
Open elective course: Internet of Things (IoT). In 2016 IEEE Eighth International
Conference on Technology for Education (T4E) (pp. 15-18). IEEE.
Sihombing, O., Zendrato, N., Laia, Y., Nababan, M., Sitanggang, D., Purba, W., ... & Siregar, S.
(2018, April). Smart home design for electronic devices monitoring based wireless
gateway network using cisco packet tracer. In Journal of Physics: Conference
Series (Vol. 1007, No. 1, p. 012021). IOP Publishing.
Vajja, R. (2016). Python Oracle Integration and Data Analysis(Doctoral dissertation, San Diego
State University).
1 out of 24
Related Documents

Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
© 2024 | Zucol Services PVT LTD | All rights reserved.