Real-Time Vehicle Sensor Management System

Interrupt-driven RTOS simulation with deterministic task behavior, priority-based scheduling, and safe shared resource handling for vehicle sensor events.

This project demonstrates how Brake, Collision, and Speed interrupts are mapped to ISR handlers, queued by priority, and executed through RTOS-style task scheduling while preserving predictable timing.

Sensor Task Overview

Brake Sensor Task

Safety-critical path with the highest priority. It preempts lower tasks to ensure immediate reaction.

Priority 7

Collision Sensor Task

High-priority response task for collision detection events and intermediate safety handling.

Priority 6

Speed Sensor Task

Monitoring and telemetry task with medium priority for regular speed-event processing.

Priority 5

Architecture And Real-Time Behavior

Core Components

  • Interrupt controller with virtual INT mapping
  • ISR handlers for each sensor type
  • Priority queue based RTOS scheduler
  • Mutex-protected shared resource access
  • Structured event logger with microsecond timestamps

Real-Time Properties

  • Higher-priority preemption over running lower-priority tasks
  • Deterministic event order for repeated input sequences
  • Bounded interrupt and task response windows
  • Safe concurrency through lock-based resource access
  • Continuous stats collection for runtime verification
Sensor Trigger Interrupt Entry ISR Processing Task Signal Priority Scheduling Task Execution Log + Stats Update

Available API Endpoints

Endpoint Method Purpose
/dashboard GET Interactive RTOS dashboard view
/api/trigger-sensor/{name} POST Trigger Brake, Collision, or Speed interrupt
/api/event-log GET Fetch event stream generated by ISR and tasks
/api/system-stats GET Read task, interrupt, CPU and uptime statistics
/ppt GET Open presentation page for demo and explanation