Presentation on Real Time Systems and Adaptive Cruise Control.

Slides:



Advertisements
Similar presentations
INTRODUCTION APPLICATION IN THE DRIVING SEAT THE DOCTOR WILL SEE WIRED WEARABLES DO NOT KEEP YOUR EYES ON ROAD ADAPTIVE CRUISE CONTROL(A.C.C.) WORKING.
Advertisements

© Alan Burns and Andy Wellings, 2001 Real-Time Systems and Programming Languages n Buy Real-Time Systems: Ada 95, Real-Time Java and Real-Time POSIX by.
EE5900 Advanced Embedded System For Smart Infrastructure
Train Gate System A one-directional railway track crosses a road A gate at the crossing may be lowered or raised under computer control A short distance.
COSC 513 Operating Systems Yue Dou
Real-Time Embedded Systems
Introduction to VISSIM
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
1-1 ROPES Rapid Object-Oriented Process for Embedded Systems.
1 of 30 June 14, 2000 Scheduling and Communication Synthesis for Distributed Real-Time Systems Paul Pop Department of Computer and Information Science.
Chapter 13 Embedded Systems
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Real-Time Systems and Programming Languages
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Bandwidth Allocation in a Self-Managing Multimedia File Server Vijay Sundaram and Prashant Shenoy Department of Computer Science University of Massachusetts.
EMBEDDED SOFTWARE Team victorious Team Victorious.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 15 Slide 1 Real-time Systems 1.
Real-Time Software Design Yonsei University 2 nd Semester, 2014 Sanghyun Park.
Instructore: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Concurrent and.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Execution Control with If/Else and Boolean Functions
Real Time Process Control (Introduction)
1. Introduction 1.1 Background 1.2 Real-time applications 1.3 Misconceptions 1.4 Issues in real-time computing 1.5 Structure of a real-time system.
1 소프트웨어공학 강좌 Chap 11. Real-time software Design - Designing embedded software systems whose behaviour is subject to time constraints -
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
EEL Software development for real-time engineering systems.
Quality of Service Karrie Karahalios Spring 2007.
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
Real-Time Embedded Systems
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
Slide 1 Chapter 11 Real –time Software Designs. Slide 2 Real-time systems l Systems which monitor and control their environment l Inevitably associated.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Transit Signal Priority (TSP). Problem: Transit vehicles are slow Problem: Transit vehicles are effected even more than cars by traffic lights –The number.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Introduction to Real-Time Systems.
Adaptive Cruise Control Advisor(s): Prof. Krithi Ramamritham Prof. S. Ramesh Prof. Kavi Arya Gurulingesh R. KReSIT, IIT Bombay.
Communicating Real-Time State Machines (CRSM) State machines that communicate synchronously Unique unidirectional channels are used for the communication.
Chapter 6 Adaptive Cruise Control (ACC)
Undergraduate course on Real-time Systems Linköping 1 of 45 Autumn 2009 TDDC47: Real-time and Concurrent Programming Lecture 5: Real-time Scheduling (I)
©Ian Sommerville, Robin Abraham 2004CS 361, Summer 2004 Slide 1 Real-time Software Design.
> Power Supervison Desired Output level Source Diesel Valve Sink Diesel Valve > Valve Regulator Sink T = 40 ms Air Valve CBSE Course The SaveComp Component.
Real-time Software Design King Saud University College of Computer and Information Sciences Department of Computer Science Dr. S. HAMMAMI.
Adaptive Cruise Control
Embedded and Real Time Systems Lecture #2 David Andrews
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
Special Class on Real-Time Systems
Real time scheduling G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
Introduction to Embedded Systems Rabie A. Ramadan 5.
Introduction to Real-Time Systems
CISSP Common Body of Knowledge Review by Alfred Ouyang is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
1 Dynamic Speed and Sensor Rate Adjustment for Mobile Robotic Systems Ala’ Qadi, Steve Goddard University of Nebraska-Lincoln Computer Science and Engineering.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Embedded System Design and Development Introduction to Embedded System.
Undergraduate course on Real-time Systems Linköping TDDD07 – Real-time Systems Lecture 1: Introduction & Scheduling I Simin Nadjm-Tehrani Real-time Systems.
Real-time Embedded Systems Module overview Introduction to Real-time Systems and Scheduling.
Mohammed Hasham Chemnitz University of Technology Masters Automotive Software Engineering 2nd Semester Automatic Cruise Control Seminar Automotive Sensors.
Embedded System Scheduling
Real-time Software Design
REAL-TIME OPERATING SYSTEMS
EEE 6494 Embedded Systems Design
ECE 382. Feedback Systems Analysis and Design
Chapter 2 Scheduling.
Real-time Software Design
Introduction to Realtime Systems (& Embedded Systems)
ADAPTIVE CRUISE CONTROL
Real-Time Support for Automotive Application
Chapter 10 Multiprocessor and Real-Time Scheduling
Presentation transcript:

Presentation on Real Time Systems and Adaptive Cruise Control

Roadmap Introduction to RTS Problem Definition / Motivation Adaptive Cruise Control (ACC) Driver Models Functional Model & Task Model Extensions to Functional Model Conclusion & Future Work References

Functional Design & Mapping HW1HW2HW3HW4 Hardware Interface RTOS/Drivers Threa d Architectural Design F1 F2 F3 F4 F5 Functional Design (F3)(F4) (F5) (F2) Source: Ian Phillips, ARM VSIA 2001 Source: Ian Phillips, ARM VSIA 2001

What is “real” about real-time? computer world  e.g., PC  average response for user  Interactive  occasionally longer  reaction: user annoyed  computer controls speed of user  “computer time” real world  Industrial system, airplane  environment has own speed  reaction too slow: deadline miss  reaction: damage, pot. loss of human life  computer must follow speed of environment  “real-time”

A real-time system is a system that reacts to events in the environment by performing predefined actions I/O - data Real-Time Systems Real-time computing system event action within specified time intervals. time

Real-Time Systems: Properties of Interest Safety: Nothing bad will happen. Liveness: Something good will happen. Timeliness: Things will happen on time - by their deadlines, periodically,...

In a Real-Time System… correct value delivered too late is incorrect e.g., traffic light: light must be green when crossing, not enough before Real-time: (Timely) reactions to events as they occur, at their pace: (real-time) system (internal) time same time scale as environment (external) time Correctness of results depends on value and its time of delivery

Types of RT Systems Dimensions along which real-time activities can be categorized: how tight are the deadlines? --deadlines are tight when laxity (deadline -- computation time) is small. how strict are the deadlines? what is the value of executing an activity after its deadline? what are the characteristics of environment? how static or dynamic must the system be?

deadline (dl) + Hard, soft, firm Hard -- result useless or dangerous if deadline exceeded Ex: Aircraft, Chemical Plant value time - hard soft Soft -- result of some - lower value if deadline exceeded Ex: Multimedia, Interactive video games Firm -- If value drops to zero at deadline

Timing Constraints Real-time means to be in time --- how do we know something is “in time”? how do we express that? Timing constraints are used to specify temporal correctness e.g., “finish assignment by 2pm”, “be at station before train departs”. A system is said to be (temporally) feasible, if it meets all specified timing constraints. Timing constraints do not come out of thin air: design process identifies events, derives models, and finally specifies timing constraints

Overall Picture Physical properties of environment Model-design Timing constraints Analysis, Testing Run-time dispatching (In field use) Functional Temporal

Timing Properties Periodic –activity occurs repeatedly –e.g., to monitor environment values, temperature, etc. Aperiodic –can occur any time –no arrival pattern given Sporadic –can occur any time, but –minimum time between arrivals mint time

Who initiates (triggers) actions? Example: Chemical process –controlled so that temperature stays below danger level –warning is triggered before danger point …… so that cooling can still occur Two possibilities: –action whenever temp raises above warn -- event triggered –look every int time intervals; action when temp if measures above warn -- time triggered

Other Issues to worry about Meet requirements -- some activities may run only: –after others have completed - precedence constraints –while others are not running - mutual exclusion –within certain times - temporal constraints Scheduling –planning of activities, such that required timing is kept Allocation –where should a task execute?

Project Motivation

Motivation (Cont…) –Partitioning of system into TT and ET domains –Process Mapping –Optimization of parameters corresponding to communication protocol. Sequence and Slots of TDMA (TTC) Priorities of Messages (ETC) –Schedulability

Adaptive Cruise Control Adaptive Cruise Control: –automatically adjusts vehicle speed to maintain a driver-selected safe distance from the vehicle ahead in the same lane. –It then returns to the set speed when traffic clears. Requirements: –The speed should be kept close to the SET speed, if there is no vehicle ahead. –Timegap should be maintained at x sec. –Manual intervention, UI, etc…

Functions Identified Computing Current speed of our vehicle Leading Vehicle related Task Controlling Speed of our Vehicle Controlling the Throttle Controlling the Brake Detecting Manual Intervention UI to the Driver Periodicity of Tasks Hard, Firm; Periodic, Aperiodic…

Human Driver Model Structure of Human Driver in Car-Following Stimulus-Reaction Model

Car Following Models Linear Follow-the-Leader Model –Stimulus: Velocity Difference b/w Leader and Follower –Reaction: Acceleration command to vehicle Look-Ahead-Model –Driver observes the behavior of three vehicles ahead of him. –Stimulus: Majority direction of Acceleration –Reaction: Acceleration command using switching logic Others…

Simple Car Following Model v l Velocity of Leader v f Velocity of Follower r l Retardation of Leader r f Retardation of Follower t r Short Reaction Time

Acceleration profile of vehicle D min = D i – D i-1 Di = D1i + D2i + D3i

Src: Prof. Shashikant's Control System Lec-1 in DEP Mode ACC System Design (desired vehicle speed) Control I/P Physical Process Sensors Actuators Adaptive Adaptive Cruise Cont. Reference Input Actual output Sensor Noise Actuator Noise Sensed O/P Desired Control I/P Disturbances (accelerator pedal (throttle) position, brake pedal position) (wheel speed sensor) (air drag, grade, friction etc) (vehicle speed)

Src: Prof. Shashikant's Control System Lec-1 in DEP Mode Process Model Physical Process Actual Output Control I/P Disturbances E 1/M G 1/R w

Pictorial View Friction Estimator Speed Sensor Radar System Roadside Signals Control Algorithm Throttle System ABS Actuators Sensors Schematic Picture of Control Algorithm and its Environment SPEED Module DISTANCE Module Min-value Control Signal to the Actuators The structure of Control Algorithm asas adad

Block Diagram

Flow Chart

(cont…)

State Diagram

g a b Wheel S IR S f Speed Set Thrott le S Brake S c d e Throt tle A Brake A Curr_Thr Pos Curr_Br Pos Precedence Graph showing communication relation

Task Graph

Extensions to Functional Model under consideration Adaptive to –Driver Reaction Time –Roadside Signals –Friction b/w road and tyre (ABS) –Relative positioning in the lane

Future Work Partitioning tasks as TT and/or ET and as Soft, Hard or Firm. Writing Algorithm Allocation of Tasks Schedulability One or two similar application if time permits