Final Degree Project
Sistema IOT para el control de accidentes en carretera usando MQTT
Author/s | Fidalgo Oliveres, Diego |
Director | Ariza Gómez, María Teresa
![]() ![]() ![]() ![]() ![]() ![]() |
Department | Universidad de Sevilla. Departamento de Ingeniería Telemática |
Publication Date | 2020 |
Deposit Date | 2021-04-09 |
Academic Title | Universidad de Sevilla. Grado en Ingeniería de las Tecnologías de la Telecomunicación |
Abstract | Hoy en día se encuentra en auge la agrupación e interconexión de dispositivos y objetos a través de la red. También conocido como el Internet de las Cosas (IoT).Desarrollándose multitud de aplicaciones destinadas al ... Hoy en día se encuentra en auge la agrupación e interconexión de dispositivos y objetos a través de la red. También conocido como el Internet de las Cosas (IoT).Desarrollándose multitud de aplicaciones destinadas al crecimientode las Smart Cities, la digitalización de las ciudades.El objetivo de este trabajo es el desarrollo de un sistema capaz de recopilar losvalores de los distintos sensores de un terminal móvil mientras se realiza un viaje en coche, guardarlos en una base de datos y determinar si se produce un accidente durante el trayecto.También se proporcionará una solución para la gestión de estas alertas desde el servicio de emergencia.Este sistema se centra en el sistema de colas de mensajes MQTT,como tecnología principal para la comunicación entre los distintos dispositivos que forman parte de él. Dichosistema está formado por:Un bróker MQTT gratuito llamado MaQiaTTo. Que se encarga de la comunicación entre elresto de componentes del sistema. Mediante una cola de mensajes del tipo publicador/suscriptor con varios tópicossegún la finalidad del mensaje.Una aplicaciónAndroid destinada al usuario que realiza el viaje en coche. Donde se recogerán los valores de los sensores y se enviarán por la cola de mensajes.Concretamente se monitorizarán los valores (en los ejes X, Y y Z) del acelerómetro y del giroscopioy la posición GPS del terminal.Otraaplicación Android para los servicios de emergencias. Donde el trabajador podrá ver un listado de todas las alertas creadas. Así como toda la información relevante de cada una deellas, la posibilidad de hacer llamadas al usuario o servicio de emergencia correspondiente y cerrar cada una de las alertas una vez hayan sido solventadas.Una base de datos MariaDB. Donde se almacenará la información de cada uno de los vehículos registrados en la aplicación, viajes realizados y alertas producidas.Un servicio web desarrollado en Flask. Encargado de recibir y enviar mensajes por la cola MQTT. Realizando las acciones pertinentes en función del mensaje y su tópico. Es el componente encargado de tratar con la base de datos de forma directa. Además, consta de una aplicación web a través de la que el administrador del sistemapodrá acceder a la información almacenada sobre los vehículos y alertas. Nowadays the grouping and interconnection of devices and objects through the network is on the rise. Also known as the Internet of Things (IoT). Developing a multitude of applications aiming tothe growth of Smart Cities, ... Nowadays the grouping and interconnection of devices and objects through the network is on the rise. Also known as the Internet of Things (IoT). Developing a multitude of applications aiming tothe growth of Smart Cities, the digitization of cities.The objective of this work is the development of a system capable of collecting the values of the different sensors of a mobile terminal while traveling in acar, saving the valuesin a database and determining if an accident occurs during the travel.It will be also provided a solution for the management of the alerts by the emergency service.This system is basedon the MQTT message queuing system, as the main technology for communication between the different componentsthat are part of it. This system is made up by:A free MQTT broker called MaQiaTTo. Itis responsible for the communication between the rest of the system components. Through a message queue publisher / subscriber type with several topics depending on the purpose of the message.An Android application for the user who makes the trip by car. Where the sensors values will be collected and sent through the message queue. Specifically, the values (in the X, Y and Z axes) of the accelerometer and the gyroscope will be monitoredand the GPS possition of the terminal.Another Android application for the emergency services. In this applicationthe worker will be able to see a list of all the alerts created. As well as all the relevant information of each one of them, the possibility of making calls to the corresponding user or emergency service and closing each of thisalerts once they have been resolved.A MariaDB database. Where the information of each vehicles registered in the application, trips made and alerts produced will be stored.A web service developed in Flask. Responsible of receiving and sending messages through the MQTT queue. Taking the pertinent actions based on the message and its topic. It is the component in charge of dealing with the database directly. In addition, it providesa web application inwhich it is possible for the administrator of the system to access the information stored forthe vehicles and alerts. |
Citation | Fidalgo Oliveres, D. (2020). Sistema IOT para el control de accidentes en carretera usando MQTT. (Trabajo Fin de Grado Inédito). Universidad de Sevilla, Sevilla. |
Files | Size | Format | View | Description |
---|---|---|---|---|
TFG-3333-FIDALGO OLIVERES.pdf | 2.268Mb | ![]() | View/ | |