Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science

Page created by Ramon Pearson
 
CONTINUE READING
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science
J. lnf. Commun. Converg. Eng. 19(1): 16-21, Mar. 2021                                  Regular paper

Design and Implementation of Platform for Monitoring of
Notification System in Firebase Message
Am-Suk Oh * , Member, KIICE
Department of Digital Media Engineering, Tongmyong University, Busan 48520, Korea

Abstract
In this paper, to prevent accidents of school vehicles used by students, which have emerged as a continuous social problem, a
boarding and leaving notification system using Bluetooth beacons is proposed. The platform structure uses Bluetooth, a
smartphone, and an application, and provides real-time message reception between parents and teachers. It is not simply a
system with Bluetooth capability alone, but also an IcT technology that is closely related to real life using two-way
communication. The purpose is to provide user-friendly ICT technology as an integrated system for more practical effects. Two-
way exchange of information between parents and teachers using cloud servers is made possible. By using this Bluetooth beacon
notification system, safety accidents in student vehicles are reduced, which brings confidence from traffic accidents to
schoolchildren of parents and teachers. Therefore, it is expected that parents and teachers are expected to improve their mental
stability and quality of life from traffic accidents.

Index Terms: Bluetooth beacon, Firebase message, IoT, Life-friendly ICT, Notification system

I. INTRODUCTION                                                                      the information to the cloud server, and delivers it to the par-
                                                                                     ents through push messages.
   Various safety accidents such as a neglect of students                              The purpose of the platform is not to provide one-way
remaining in vehicles and students not boarding have                                 applications using simple Bluetooth functions, but to prevent
emerged as social issues, and many costs and manpower,                               a high rate of occurrence of student accidents at low cost
including hand-checks by teachers, are being consumed to                             through two-way communication applied through cloud serv-
solve these problems. Despite such efforts, however, such                            ers. Using accidents as a precautionary measure, the quality
events are not actually decreasing [1].                                              of life is improved by lowering the burden on parents and
   Bluetooth is indispensable in the current smart age and has                       teachers and applying user-friendly ICT technology such as
become an essential tool. Because it is provided through var-                        Bluetooth beacons combined with school vehicles.
ious technologies, it can permeate people without any sense                            The purpose of the system is to decrease the rate of acci-
of incompatibility. In addition, it can be easily applied to real                    dents in school vehicles by providing a boarding and leaving
life situations in comparison to technologies that have not                          notification system using Bluetooth beacons, which will
yet been used in various fields owing to light security [2].                         reduce parent anxiety about childcare.
   Bluetooth Beacon Entry and Exit Notification Service is a                           By allowing parents to check the safety of their children,
system in which a teacher recognizes a student’s Bluetooth                           the system is expected to become an essential parenting plat-
signal based on information registered by the parent, uploads                        form.

Received 20 January 2021, Revised 04 March 2021, Accepted 08 March 2021
*Corresponding Author Am-Suk Oh (E-mail: asoh@tu.ac.kr, Tel: 82-51-629-1211)
Department of Digital Media Engineering, Tongmyong University, Busan 48520, Korea.

                   https://doi.org/10.6109/jicce.2021.19.1.16                                                  print ISSN: 2234-8255 online ISSN: 2234-8883

   This is an Open Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (http://creativecommons.org/licenses/by-
nc/3.0/) which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.

Copyright ⓒ The Korea Institute of Information and Communication Engineering

                                                                                16
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message

II. RELATED RESEARCH                                                    III. SYSTEM CONFIGURATION

A. Firebase Cloud Message                                                  A Bluetooth beacon notification platform consisting of
                                                                        components using Bluetooth beacons, smartphones, applica-
  Fig. 1 shows Firebase Cloud Message, which is a message               tions, and cloud servers. It is a format in which a Bluetooth
system that supports stable connections between devices                 beacon recognizes a student through an application on the
without the need for separate devices. It is used as an appro-          teacher’s smartphone when the student enters or exits a
priate component when transferring information on students              school vehicle and passes the information on to the app of a
entering and exiting school between the teachers and parents            parent’s smartphone [6].
through push messages [3, 4].
                                                                        A. Development Environment
B. Smart Home Technology
                                                                          Table 1 shows the development environment of the entry
  Fig. 2 shows a single-platform hardware manufactured for              and exit notification services using Bluetooth beacons to be
smart homes [5].                                                        developed in this study. The OS used Android, and IDE used
                                                                        Android Studio 3.5. The language uses Java, and the SDK is
                                                                        for Android 6.0 at a minimum, and the most appropriate
                                                                        SDK is for Android 8.0. The resolution was set to 1.440 ×
                                                                        2,560 (560 dpi).

                                                                        B. Accessories for Entering and Exiting Detection

                                                                          Table 2 shows the components used for the development
                                                                        of Bluetooth beacons used to detect a student when in a
                                                                        vehicle.
                                                                          Ultrasonic sensors are used for a better detection of Blue-
                                                                        tooth signals and GPS light modules are applied for vehicle
                                                                        location recognition.

                                                                        C. Bluetooth Beacon Service Platform Components
Fig. 1. Firebase cloud message.
                                                                          Fig. 3 shows the structure of the overall Bluetooth beacon-
                                                                        based entry and exit notification service. When a parent’s
                                                                        smartphone enters information and device information for a
                                                                        student, it is updated on the cloud server. If the teacher’s
                                                                        smartphone recognizes the signal of the Bluetooth beacon of
                                                                        a student who is registered with the cloud server, the infor-

                                                                        Table 1. Detailed development environment
                                                                                   OS                                Android
                                                                           IDE                        Android Studio 3.5
                                                                           Language                   Java
                                                                           Minimum SDK                Android 6.0 (Marshmallow: API 23)
                                                                           Optimization SDK           Android 8.0 (Oreo: API 27)
Fig. 2. Smart home.                                                        Resolution                 1440 × 2560 (560 dpi)

Table 2. Detailed development environment
   ATMEGA168 PRO mini                             5V          Vehicle entry and exit detector SW Implementation
   9-Axix acceleration sensor module             IMU          For research and development of non-contingent movement detection sensor
   GPS communication module antenna set           5V          For research and development of vehicle location recognition function
   Ultrasonic distance measuring sensor          4.5M         R&D on ride and exit recognition

                                                                   17                                                              http://jicce.org
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science
J. lnf. Commun. Converg. Eng. 19(1): 16-21, Mar. 2021

Fig. 3. Hardware component.                                          Fig. 5. Bluetooth beacon platform components.

                                                                     Fig. 6. Parent device and cloud server components.

                                                                     Fig. 7. Teacher device and Bluetooth beacon components.
Fig. 4. Software component.

mation will be updated on the cloud server, and the informa-
tion will be sent to the parents through a push message using
Firebase [7, 8].
   Fig. 4 shows a fully configured cloud server and firebase
message. The final goal is not only to provide Bluetooth
functionality, but also to provide user-friendly ICT technol-
ogy that consists of a single platform by utilizing different        Fig. 8. Notify parent’s components.
servers.

                                                                     unloading, and maintenance status; updates the cloud server,
IV. SYSTEM DESIGN                                                    including the student information; and delivers push mes-
                                                                     sages to the parent’s application using Firebase [9].
   Fig. 5 shows the overall composition of the entry and exit           Fig. 8 shows the cloud server, which provides the original
alarm service platform using Bluetooth beacons, which con-           information to the teacher’s applications and provides a real-
sists of the teacher’s application, parent’s application, and        time exchange of information such that the boarding status
cloud server.                                                        can be checked by parent’s application. Firebase plays a role
   Fig. 6 shows how parents upload information from stu-             in delivering push messages to parents based on updated
dents, the unique addresses of the Bluetooth tokens, and the         entrance and exit information from the cloud server. The
unique addresses of the devices to the server. Information           Bluetooth beacon entry and exit notification system has a
can be updated through the application.                              structure that recognizes the signal of the Bluetooth beacons
   Fig. 7 shows a teacher’s application, which recognizes the        as being from a teacher’s device based on the information
Bluetooth signal of the Bluetooth beacons for the boarding,          stored in the cloud server and delivers it to the parents.

https://doi.org/10.6109/jicce.2021.19.1.16                      18
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message

V. SYSTEM IMPLEMENTATION                                                and sends a push message to the parent’s application.
                                                                          Fig. 12 shows the screen after clicking on the push mes-
   Fig. 9 shows screen that print the initial screen when exe-          sage shown in Fig. 4. This screen shows the status of enter-
cuted and a message that says monitoring when authorized.               ing and exiting. The first screen shows whether the user
When first running the application, permission is requested             wants to update the application when turning the application
for use on the mobile phone. The application automatically              on without receiving a push message, and the second screen
shuts down if the user requests permission to inquire the               shows whether the status of the application is up to date,
Bluetooth and location information. After a certain period of           whether it is on or off, and the time when the student enters
time has elapsed since the vehicle monitoring is started when           and exits.
all permissions are granted, or the screen is turned over to
perform monitoring or notification functions at touch [10].
   Fig. 10 shows a screen where students enter their personal
information, beacon addresses, and tokens for receiving push
messages. Previously, if there is no registered information, a
Register button will appear instead of a Cancel button, and
after entering the student’s personal information, the Beacon
Address will open a window where the user can select the
surrounding Bluetooth beacon address when clicking Scan.
A Push Token automatically enters the information on the
device when pressing Get. When clicking the Update or
Register button after finishing these inputs, the information
entered is sent to the cloud server and registered [11].
   Fig. 11 shows a push message screen that appears when a
student gets on and off the vehicle. The teacher recognizes
the Bluetooth beacon signal when the student is on board

                                                                        Fig. 11. Push message receiving screen.

Fig. 9. Main screen of application.

Fig. 10. Student information Input screen.                              Fig. 12. Entry and exit status notification service screen.

                                                                   19                                                                 http://jicce.org
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science
J. lnf. Commun. Converg. Eng. 19(1): 16-21, Mar. 2021

                                                                       Fig. 15. Bluetooth signal strength graph.

                                                                       drop-off if it deviates from a ride.
                                                                          Fig. 15 shows a graph of the Bluetooth signal strength rec-
                                                                       ognizing an entry and exit. The light blue is the range of the
                                                                       ride recognition, and when entering, it is recognized as a
Fig. 13. School vehicle monitoring screen for teacher.                 drop-off if it is outside of the vehicle. As such, a slightly
                                                                       higher standard was set for the ride and a larger range for the
  Fig. 13 shows the teacher’s in-vehicle student monitor               drop-off. Figs. 14 and 15 show only the measurement of a
screen. If the status of entering and exiting the car is               signal in an empty space and the strength of the signal using
changed, the information is printed on the screen and                  a Galaxy S10 for Bluetooth beacons, respectively.
updated on the cloud server, and a push message is sent to
the parent’s application through Firebase [12, 13]
  This Bluetooth beacon-based notification system is                   VII. CONCLUSIONS
expected to prevent student accidents and reduce the anxiety
of parents and teachers due to commuting accidents [14].                 Accidents such as a neglect of students while riding a
                                                                       commuting vehicle and the absence of students at school are
                                                                       becoming issues, and many policies and techniques are being
VI. EXPERIMENTS                                                        considered to solve them.
                                                                         The purpose of this paper is to provide a notification ser-
  Fig. 14 shows the strength of the Bluetooth signal. It starts        vice for student commuting vehicles utilizing Bluetooth bea-
to be recognized as a ride from the designated signal strength,        cons, smartphones, applications, and cloud servers. The
and if it is within a certain range, it will be changed to a           purpose of this technology is to provide more cost and time
                                                                       efficiencies than other technologies, provide real-time deliv-
                                                                       ery through cloud servers rather than just Bluetooth technol-
                                                                       ogy, and establish itself as a user-friendly ICT technology by
                                                                       utilizing technologies that will not be difficult to immedi-
                                                                       ately apply.
                                                                         By using these technologies, student accidents can be pre-
                                                                       vented more efficiently, thereby relieving the burden of
                                                                       teachers and parent anxiety, and improving their overall
                                                                       quality of life.
                                                                         The quality of education is improved by reflecting various
                                                                       technologies in nurturing talent, and the use of Bluetooth
                                                                       signals as technical contributions provides options for utilizing
                                                                       Bluetooth functions in various fields as well as commuting.

                                                                       ACKNOWLEDGEMENTS

Fig. 14. Bluetooth entry and exit signal strength.                       This study was supported by the BB21+ project in 2020.

https://doi.org/10.6109/jicce.2021.19.1.16                        20
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message

REFERENCES                                                                              2019. DOI: 10.1109/ISNCC.2019.8909095.
                                                                                  [ 8 ] H. S. Kyu, “New multiple access technology for Bluetooth to collect
[ 1 ] M. S. Yie and N. S. Joong, “The impact of ICT sector on economic                  the movement pattern of children,” The Korea Institute of Information
      output and growth,” National Information society Agency, vol. 26 no.              and Communication Engineering, vol. 20, no. 7, pp. 1262-1268,
      2, pp. 24-45, 2019. DOI: 10.22693/NIAIP.2019.26.2.024.                            2016. DOI: 10.6109/jkiice.2016.20.7.1262.
[ 2 ] S. H. Lee and D. H. Kim, and H. Y. Lee, “Smart IoT hardware                 [ 9 ] T. Malche and P. Maheshwary, “Internet of Things (IoT) for building
      control system using secure mobile messenger,” The Korean Institute               smart home system,” 2017 International Conference on I-SMAC,
      of Electrical Engineers, vol. 65, no. 12, pp. 2232-2239, 2016. DOI:               2017. DOI: 10.1109/I-SMAC.2017.8058258.
      10.5370/KIEE.2016.65.12.2232.                                               [10] P Yadav and S Vishwakarma, “Application of Internet of Things and
[ 3 ] M. Frachri and A. Khumaidi, “Positioning accuracy of commercial                   big data towards a smart city,” In 2018 3rd International Conference
      Bluetooth low energy beacon,” 2019 Fourth International Conference                on Internet of Things: Smart Innovation and Usages, 2018. DOI:
      on Informatics and Computing, Information and Commucation                         10.1109/IoT-SIU.2018.8519920.
      Engineering, vol. 20, no. 7, pp. 1262-1268, 2016. DOI: 10.1109/             [11] D. H. Park, H. C. Bang, C. S. Pyo, and S. J. Kang, “Semantic open
      ICIC47613.2019.8985797.                                                           IoT service platform technology,” In 2014 IEEE World Forum on
[ 4 ] Y. A. Badamasi, “The working principle of an Arduino,” In 2014 11th               Internet of Things, 2014. DOI: 10.1109/WF-IoT.2014.6803125.
      International Conference on Electronics Computer and Computation            [12] S. Nurjanah and Z. A. Hasibuan, “Analysis of IcT context for
      (ICECCO), 2014. DOI: 10.1109/ICECCO.2014.6997578.                                 building conceptual understanding amongst research: A literature
[ 5 ] D. H. Ryu and T. W. Choi “Development of open IoT platform based                  review,” International Conference on IcT for Smart Society, 2016.
      on open source hardware & cloud service,” Korea Institute of                      DOI: 10.1109/ICTSS.2013.6588098.
      Electronic Communication Science, vol. 11, no. 5, pp. 485-490,              [13] B. Da, P. P. Esnault, and C. Wang, “Identity/identifier-enabled
      2016. DOI: 10.13067/JKIECS.2016.11.5.485.                                         networks for Internet of Things,” 2018 IEEE 4th World Forum on
[ 6 ] S. K. Vishwakarma and P. Upadhyaya, “Smart energy efficient home                  Internet of Things, 2018. DOI: 10.1109/WF-IoT.2018.8355102.
      automation system using IoT,” 2019 Fourth International Con-                [14] N. S. R. Challa, P. Kesari, and S. R. Ammana and S. Katukojwala
      ference on Informatics and Computing, 2019. DOI: 10.1109/IoT-                     and D. S. Achanta “Design and implementation of Bluetooth-beacon
      SIU.2019.8777607.                                                                 based indoor positioning system,” 2019 IEEE International WIE
[ 7 ] M. Ture and A Hatipoglu, “Indoor location finding of the transmitter              Conference on Electrical and Computer Engineering, 2019. DOI:
      based on Bluetooth received signal strength,” 2019 International                  10.1109/WIECON-ECE48653.2019.9019997.
      Symposium on Networks, Computers and Communications (ISNCC),

                        Am-Suk Oh
                        received BS and MS degrees in computer science from Busan National University and Chungang University, respectively.
                        He received a PhD in computer engineering at Busan National University. He is currently with the Department of Digital
                        Media Engineering, Tongmyong University as a professor. His research interests include databases, healthcare systems,
                        big data, and IoT.

                                                                             21                                                                http://jicce.org
Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science Design and Implementation of Platform for Monitoring of Notification System in Firebase Message - Korea Science
You can also read