VIETNAM NATIONAL UNIVERSITY HOCHIMINH CITY UNIVERSITY OF INFORMATION TECHNOLOGY ADVANCED PROGRAM IN INFORMATION SYSTEMS NGUYEN HUYNH NHU THAO APPLYING IOT TECHNOLOGY FOR MONITORING ENVIRONMENT BACHELOR OF ENGINEERING IN INFORMATION SYSTEMS HO CHI MINH CITY, 2021 NATIONAL UNIVERSITY HOCHIMINH CITY UNIVERSITY OF INFORMATION TECHNOLOGY ADVANCED PROGRAM IN INFORMATION SYSTEMS NGUYEN HUYNH NHU THAO - 17521064 APPLYING IOT TECHNOLOGY FOR MONITORING ENVIRONMENT BACHELOR OF ENGINEERING IN INFORMATION SYSTEMS THESIS ADVISOR Ph. DO TRONG HOP HO CHI MINH CITY, 2021 ASSESSMENT COMMITTEE The Assessment Committee is established under the Decision. ; date " by Rector of the University of Information Technology —. - Member ACKNOWLEDGMENTS During the 4 years of studying and training at Vietnam National University HCMC University of Information Technology so far, I have received a lot of attention and help from teachers and friends.
With the deepest and most sincere gratitude, I would like to send my gratitude to the teachers at Vietnam National University HCMC University of Information Technology, with their knowledge and enthusiasm, to impart their valuable knowledge to us during our time at school. Especially in this semester, the Department organized for us to have access to a subject that, in my opinion, is very useful for students majoring in Information Systems as well as all students in other majors in Information Technology. For the topic "Applying IoT Technology For Monitoring Environment". I would like to thank Ph.
Do Trong Hop for guiding us through each class session as well as talks and discussions on the creative field in scientific research. I would also like to express my gratitude to the leadership of Vietnam National University HCMC University of Information Technology and the faculties and departments who have directly and indirectly supported me throughout the process of studying and researching this topic. Given the limited time and experience of a student, this report cannot avoid shortcomings. I look forward to receiving the guidance and comments of the teachers so that I have the conditions to supplement and improve my knowledge, to better serve the practical work in the future.
Ho Chi Minh City, December 2021 Nguyen Huynh Nhu Thao TABLE OF CONTENTS cso ACKNOWLEDGMENTS. 5 5< << HH0 i TABLE OF CONTENTS. LIST OF FIGURES .cccesessssssesesessssscesesesscseeesesesessesesesesesaeseseseensesseseeesneneseeeeeeeeee iv LIST OF TABLES10. csccssssssssesesesssssssessssssssseesesssssesesessscssesesessssssssesnsesseseeses viii LIST OF ACRONYMS AND ABBRE.
xi Chapter 1 INTRODUCTION.3 Scope of thesis 1.5 Structure of the: Chapter 2 THEORETICAL FOUNDA TIONS.1 Internet of Things.2 Making sense of IoT sensors and actuators [6].1 Sensors and actuators [5] 2.2 Characteristics of sensors and actuators .1 IoT platform as the middleware 2.2 IoT platform technology stack.5 Air and water measurement web application. Sàn HH grkt 20 25.3 Communication protocols for IoT applications. - -‹--«-5-<+ 22 Chapter 3 AIRPLEX WEB APPLICATION DESIGN AND IMPLEMENTATION 3.1 System analysis and architecture 3.3 Use case diagram.2 UI/ UX design.5 UI/UX screenshot 3.2 System admin: Device air pressure sensor.3 System admin: Device water level.4 User admin: Device air pressure sensorrand device water level 3.5 Web application results .cssesssssssessesssscssesnssessesnsscsnsscssesnesessssssesnesesnesnssesassesaesneaenesnsseensones 79 iii LIST OE FIGURES cae Figure 1.1 Top 10 smart city use cases in 2020 (source: AnalyticsloT) .1 The global IoT market growth [3].2 IoT sensors and actuators (SOULE: CISCO).3 IoT platform as the middleware Figure 2.4 IoT platform technology stack .5 The top IoT applications.6 Common IoT standards and framework .----¿-‹eces«-essceceeeeeeee LS Figure 2.7 IoT applications in enVirOIH€II(.9 Deployment mode in NB-IoT.1 Web application function diagram Figure 3.2 Usecase diagram of system admin air pressure sensor and water float SWitch device. ÁP 4É, TID sssessesesesssssevehocsssssosesssseesssosossssssssessesonons 28 Figure 3.3 Usecase diagram of user admin air pressure sensor and water float SWI(Ch COVICE.
Sàn HH HH HH HH. TH HH0 gi 31 Figure 3.4 User activity diagram .5 Group activity diagram Figure 3.6 Blower activity diagram.7 Device activity điaðram.8 Template activity diagram.----¿- + Street OD Figure 3.10 Entity diagram relationship .11 The four stage architecture of an IoT system .12 Basic elements of IoT architecture.13 IoT system design Figure 3. - 5-5 TH HH ưưn 43 Figure 3.21 Login sCT€en. esesseseesesseseseeaessesscstssessessestssnssesssstestssesseseetets TỔ, Figure 3.22 Forget password screen Figure 3.23 Email reset password.24 Reset password screen.26 Dashboard view all devices used screen.27 Dashboard view all error log devices used screen.28 User index sCTeen.29 User create screen.30 User edit screen.31 Group index screen Figure 3.32 Group Create SCT€€I.33 Group edit SCreen.34 Group create notification destination sCr€€n.-- - - + +5«es+se+ 52 Figure 3.35 Group edit notification destination sCreen.36 Guide create notification Line screen Figure 3.37 Blower index screen.38 Blower create screen.39 Blower edit SCT€€II.-- cà HH giờ 55 Figure 3.40 Device index $CT@€n.41 Device create SCT€I.- cà TT hờn 56 Figure 3.42 Device edit SCT€N.43 Device import CSV screen.44 Data device detail screen.45 Notification condition index screen.46 Notification condition update screen.-------¿-5s5+5s+ss+s++xecs2 58 Figure 3.48 View all devices used in Dashboard screen.49 View all error log devices used in Dashboard screen .50 User index SCT€€H.
truc OD Figure 3.51 User create SCT€€n.52 User edit SCT€en.53 Group index SCLCOM eee eeessestesessessessessssessessesssstssesscstssessesseseenens OD Figure 3.54 Group Create SCT€€II. nà TT gườn 62 Figure 3.55 Group edit SCT€CT.56 Group create notification destination screen.57 Group edit notification destination screen.58 Guide create notification Line screen.59 Device index SCrOCN.60 Device create SCLCOM oo. eecesesceseeetsessessesessestestsstssesssstssesseseseseeees OD Figure 3.61 Device edit screen Figure 3.62 Device create notification Line .63 Device edit notification Line Figure 3.64 Device import CSV Figure 3.65 Device format import CSV .66 Data device detail SCTEON .67 Notification condition index screen.68 Notification condition update sCT€€I.-- -5- 2-5 5sSxcsterterrtsrterterrrrrrrerrrrrerece OD) Figure 3.71 User update sCr€€n.72 Group index §CT€€H.-- ¿525cc Stscsterterersrererrrrrrrrrrreerecee TO.73 Group Create SCT€€H.74 Group edit SCT€€T. ¿6 St rreerore TÔ, Figure 3.75 Group create notification destination screen.76 Group edit notification destination screen.77 Device index screen.78 Device edit screen.79 Device create notification Line .80 Device edit notification Line.81 Device send emiallL.---¿- + +52 ket DO vi Figure 3.82 Air pressure sensor dashboard has not devices .83 Air pressure device dashboard.-- - + ++x+cervrveeexerereeervreeevee DD Figure 3.84 Water level dashboard has not devices .85 Water level device dashboard.86 Email device death .- - - + + St HH ưưn 74 Figure 3.87 Email device live.88 Email device lower pressure Figure 3.89 Email device lower return .90 Email device upper pressure .-- ©5525 5c+c++ccscsrcerrrerecrcee TỔ Figure 3.91 Email device upper return 0.92 Welcome add chanel AirFlex-Bot .93 Get userID Figure 3.94 Line device death Figure 3.95 Line device on.
LIST OE TABLES œELlb Table 2.1 Characteristics of sensors and aCfUfOTS.1 Notification condition air pressure sensor device.2 Notification condition water level deViCe .3 Use case description of system admin air pressure sensor device .4 Use case description of system admin water level device.5 Use case description of user admin air pressure device .6 Use case description of user admin water level device. 33 Vii LIST OF ACRONYMS AND ABBREVIATIONS Meaning loT Internet Of Things AWS Amazon Web Services RFID Radio-Frequency Identification BL Bluetooth Low Energy NB-IoT Narrow Band Internet of Things ICT Information and Communications Technology WSN Wireless Sensor Network SoC System on Chip MQTT Message Queuing and Telemetry Transport OTA Over The Air HVAC Heating, Ventilation, and Air Conditioning EC2 Elastic Compute Cloud WSS Websockets Secure HTTPS Hypertext Transfer Protocol - Secure LoRaWAN Long Range Wide Area Network API Application Programming Interface SQL Structured Query Languag ix 18 M2M Machine To Machine 19 IEEE The Institute of Electrical and Electronics Engineers 20 LTE-M Long Term Evolution for Machines 21 LTE Long Term Evolution 22 AWS RDS Amazon Relational Database Service 23 UL User Interface 24 UX User Experience 25 SIM Subscriber Identity Module 26 PHP Hypertext Preprocessor 27 MySQL My Structured Query Language 28 Yii Yes It Is! 29 CMS Content Management System 30 MVC Model View Controller ABSTRACT Nowadays, the monitoring of environmental parameters is very necessary for many fields such as cultivation, aquaculture, animal husbandry, cold storage monitoring, waste, air, industrial production, factories, and many other fields. Therefore, devices used to measure and notify systems when environmental parameters exceed the allowable thresholds, thereby detecting abnormal developments of water and air levels is essential. To build these notification systems, IoT plays an intimate role.
The application of IoT can support the transmission, storage, and management of large amounts of data to accurately record changing trends, thereby improving quality of life and increasing labor productivity. This report realistically describes the construction of a water and air level warning system based on data from measuring devices. The system after being built will contribute to reducing emergencies or losses related to leaks, water scarcity, and control, detection, and repair of many boilers to limit the risk of fire and explosion quickly. xi Chapter 1 INTRODUCTION 1.1 Introduction Nowadays, the monitoring of environmental parameters is very necessary for many fields such as cultivation, aquaculture, animal husbandry, cold storage monitoring, waste, air, industrial production, factories, and many other fields.
The fourth industrial revolution is developing at a rapid pace, with an extremely large scale and complexity, requiring countries, companies, and businesses to be more proactive in the context that the world is changing drastic changes in the smart industry and modern technology. oP, 1OT ANALY TICS "aug 2020 you to undestondloT markets insights that empower The top 10 Smart City use cases Use Case Share Category CÔ connected Public Transport NN74% ry transportation © F nức Monitoring and Management BE. Mobily & Transportation SE Water level / Flood Monitoring» ID. Environment © |> Video surveillance & Analytics —~aae 7 7 ;z.
Public Safety © (7 connected streetlights 7= — isan Energy & Utilities © a& Weather Monitoring a as Erwivonment @ đề Air quality/ Pollution Monitoring ETT 63% Environment © 6 smart metering - water mm. Energy& Utilities © & Fire / smoke Detection ee cc, Buildings & infrastructure @ & water quality Monitoring 2% Environment e +» 21 more use cases Shara = Percentage of cles tat have fly opty deployed the use ate a part of ther Smart Cy nate: = 50 ees across the lobe Source: Anite Research August 2020 or mare information, te tợ Sart iy Use Cases & Tecnology Adoption Report 2020) Figure 1.1 Top 10 smart city use cases in 2020 (source: AnalyticsIoT) According to the recently published Smart City Use Cases & Technology Adoption Report 2020 in which IoT Analytics surveyed key decision-makers from 50 cities around the globe on the details of their Smart City initiatives. The study shows that cities around the world are looking to Smart City technology to help address problems that are and will continue to impede the quality of life of their citizens. These include increasing operational efficiency and improving decision-making in the short term while addressing long-term challenges of sustainability and pollution in ever-growing cities.
Among other aspects, the report examines 31 Smart City use cases in depth.1 above shows are the top 10 Smart City use cases (by share of adoption in the 50 cities analyzed). In this situation, I would like to be able to build a web application for monitoring the parameters of water level monitoring and monitoring air quality. That web application will help me monitor environmental parameters anytime, anywhere, thereby giving appropriate notifications for each type of device.1 Requirement For this thesis topic the following requirements must be satisfied: All pressure gauges must be managed. Be sure to always connect each device's data from the server and display that data on the web automatically.
Manage all alerts when receiving data from the device. Send timely notification information to users to promptly handle when problems occur.2 Target Satisfactorily solved the problem and included: Research on IoT service system structures. Learn and grasp the method of communication with water and air level measuring devices. Research methods for storing data collected from IoT devices.
Research methods of analyzing and visualizing collected data. From the results of the analysis to send notifications, study the methods of alerting users. Build a complete system to meet the above requirements.