Skip to content

rafaeldsd/RSA-Project

Repository files navigation

Emergency Vehicle Notification System (RSA)

Introduction

A solution to address the significant risks faced by emergency services while responding to emergencies, especially in highly congested urban areas. The project aims to provide real-time notifications about the location and status of emergency vehicles to nearby vehicles, helping drivers quickly and safely clear the path of the emergency vehicle. This, in turn, reduces the risk of accidents and improves response times.

Project Overview

The project utilizes VANETZA to equip emergency vehicles with the ability to send DENM messages to nearby vehicles, containing information about their location, speed, and direction of travel. The DENM message may also include details about the type of emergency. Within a specified range, vehicles receive the DENM message and inform the driver through a message displayed on the dashboard or an audible warning. The notification can also indicate the current location and the direction in which the emergency vehicle is heading. Additionally, a central server receives the DENM message, which is then utilized to monitor the real-time location and status of emergency vehicles.

Installation

To run the project locally, follow these basic instructions:

  1. Create a virtual environment (venv)
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the game requirements:
pip install -r requirements.txt

Usage

To run the project, follow these steps:

  1. Open four terminals
  2. Run the docker compose (1st terminal)
docker-compose up
  1. Run the webapp (2nd terminal)
python3 app.py
  1. Run the simulation for the RSU's (3rd terminal)
python3 simulation_rsu.py
  1. Run the simulation for the OBU's (4th terminal)
python3 simulation_obu.py

Modifying Routes in the Database

To modify the routes in the database, follow these steps:

  1. Open the db_rsu.py and db_obu.py files in your preferred text editor.

  2. Locate the section where the latitude and longitude values for the routes are defined.

  3. Update the latitude and longitude values according to the desired modifications.

  4. Save the changes made to the db_rsu.py and db_obu.py files.

  5. Run the coordinates.py script to update the database with the modified routes. Use the following command:

python3 coordinates.py

References

Here are some useful references that can be consulted for more information:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published