REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.

Slides:



Advertisements
Similar presentations
© 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.
Advertisements

INPUT-OUTPUT ORGANIZATION
COSC 513 Operating Systems Yue Dou
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
CS-334: Computer Architecture
Sensor Network Platforms and Tools
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Programmable Logic Controller PLC
Data Acquisition Concepts Data Translation, Inc. Basics of Data Acquisition.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 15 Slide 1 Real-time Systems 2.
MotoHawk Training Model-Based Design of Embedded Systems.
Dedicated Computer Systems
Interrupts (contd..) Multiple I/O devices may be connected to the processor and the memory via a bus. Some or all of these devices may be capable of generating.
COMP3221: Microprocessors and Embedded Systems Lecture 15: Interrupts I Lecturer: Hui Wu Session 1, 2005.
© Andy Wellings, 2004 Concurrent and Real-Time Programming in Java  Electronic copies of course foils available via 
Chapter 13 Embedded Systems
Real-Time Systems and Programming Languages
Real-Time Systems – The big Picture
SOFTWARE ENGINEERING for REAL-TIME SYSTEMS (© J.E.Cooling 2003) Introduction to real-time systems - slide 1 Software engineering for real-time systems.
1 Chapter 13 Embedded Systems Embedded Systems Characteristics of Embedded Operating Systems.
EMBEDDED SOFTWARE Team victorious Team Victorious.
Airbus flight control system  The organisation of the Airbus A330/340 flight control system 1Airbus FCS Overview.
INPUT-OUTPUT ORGANIZATION
Airbus flight control system
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 15 Slide 1 Real-time Systems 1.
An Introduction to Real time Systems by Dr. Amin Danial Asham.
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.
Real Time Process Control (Introduction)
Real-Time Kernel (Part 1)
Real Time & Embedded Systems Lecture 1: Real Time Systems Software (RTSS) RTSS: the software half of the Real Time & Embedded Systems unit What do we mean.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
NETW 3005 I/O Systems. Reading For this lecture, you should have read Chapter 13 (Sections 1-4, 7). NETW3005 (Operating Systems) Lecture 10 - I/O Systems2.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 16 System Architecture and Design II.
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.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
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.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
Measurement and Control. Control Systems A control system usually consists of a processor, a control program, interfaces and a device under the processor's.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Introduction to Real-Time Systems.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
©Ian Sommerville, Robin Abraham 2004CS 361, Summer 2004 Slide 1 Real-time Software Design.
Real-time Software Design King Saud University College of Computer and Information Sciences Department of Computer Science Dr. S. HAMMAMI.
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
Real-Time Systems, Events, Triggers. Real-Time Systems A system that has operational deadlines from event to system response A system whose correctness.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
CISSP Common Body of Knowledge Review by Alfred Ouyang is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
بسم الله الرحمن الرحيم MEMORY AND I/O.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
1.  System Characteristics  Features of Real-Time Systems  Implementing Real-Time Operating Systems  Real-Time CPU Scheduling  An Example: VxWorks5.x.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2012.
Embedded System Design and Development Introduction to Embedded System.
INTRODUCTION TO REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
מעבדה במערכות משובצות ד"ר מרינה ליפשטיין דוא"ל:
Real-time Software Design
CS 501: Software Engineering Fall 1999
COMP3221: Microprocessors and Embedded Systems
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU

Introduction to Real-Time Systems What is a Real-Time System? Is defined as a system in which the time where the outputs are produced is significant (within specified bounds or deadlines). RTS Sensor Data Commands Actuator Outputs Displays Correctness depends on output values and the time at which the inputs are processed and the outputs are produced

Introduction to Real-Time Systems n Real-Time Systems can be Hard Real-Time systems or Soft Real-Time systems n In Hard Real-Time systems outputs must be produced within the specified deadlines or a system failure will occur (Examples include: Flight Control systems, Air Traffic Control systems, Robots, Automotive Control Systems,..) n In Soft Real-Time Systems, deadlines can be occasionally missed ( Examples include: communications systems using time out protocols, ATMs, Air line Reservation Systems, Process Control Systems designed to tolerate delays)

Engineering Applications of Real-Time Systems 1.Process Control and Manufacturing Systems Controller Plant Sensor Data Control Signals Raw Material Finished Products Operator Commands Displays

Engineering Applications of Real-Time Systems 2. Integrated Communication, Command, and Control (IC 3 ) Systems Comm. Command Control Data From Sensing devices/ Control signals to Actuating devices, and data to displays Filtered data/ Controls info Decisions Sensor Data Control Signals

Characteristics of Real-Time Systems Real-Time systems are often embedded systems (i.e., contained within a larger system to provide monitoring, control, and computation functions) They often require concurrent processing of multiple inputs. Concurrent tasks must be created and managed in order to fulfill the functions of the system. Task scheduling is one of the important aspects of managing concurrency. Since tasks will compete for the same resources (such as the Processor)

Embedded/Concurrent Systems Plant Sensor HW Actuator control Actuator Control Sensor IO Drivers Actuator IO Drivers Micro- Controller Data/Control BUS

Characteristics of Real-Time Systems : Task Scheduling A B Example: two periodic tasks A and B, A p =10, A d =20, B p =25, B d =50 Fixed Priority Scheduling B > A A will miss its deadline in the second execution ABABBA Nearest deadline scheduling AdAd BdBd AdAd AdAd

Characteristics of Real-Time Systems n Real-Time systems need to respond to synchronous events ( i.e., periodic events) as well as asynchronous events (those that could occur at any time) n Real-Time systems often require high Reliability and Safety requirements. n Real-Time systems often have special environmental, interfacing, and fault-tolerance requirements. n Environmental factors such as temperature (e.g., in space exploration applications systems must operate in a temperature range of -55 to 200 degree centigrade), shock and vibration, size limits, weight limits, usually have an impact on the system hardware and software requirements

Characteristics of Real-Time Systems n Fault-tolerant requirements and Exception handling have special consideration due to the high reliability and critical timing requirements. Fault-tolerance requirements greatly impact and usually complicate the design of software and hardware components of the system. n Interfacing requirements. The devices which are typically interfaced to a RTS are many (Examples include sensors, actuators, switches, displays, communication links, D/A and A/D converters, and pulse-width-modulated controllers)

A CASE STUDY n The functional requirements of an Aircraft Monitoring System (AMS) 1. The system shall perform various aircraft monitoring and recording functions. 2. The aircraft has one engine. the engine is fitted with pressure and temperature sensors. 3. The sensors are polled by the system at regular 1 second intervals. 4. All sensors readings shall be sent to dials, one for each sensor. 5. All sensor readings shall be tested to be within a safe working range.

A CASE STUDY 6. When three consecutive readings from a sensor were found to be out of range, a lamp corresponding to the sensor is changed from green to red. 7. When a sensor fails to respond to a poll sequence, a time out signal is generated. 8. A timed out sensor shall be treated as if it had supplied an out of range reading 9. Three consecutive time outs shall cause a warning lamp to switch from green to red. 10. A number of smoke detectors are installed in the aircraft. When smoke is first detected, an interrupt is generated by the smoke detectors.

A CASE STUDY 11. When smoke is subsequently no longer detected, an interrupt is generated by the smoke detectors. 12 The system shall switch a smoke warning lamp from green to red when a smoke detection interrupt occurs. 13. A sensor is installed in the fuel tank of the aircraft to provide information on the quantity of fuel remaining. 14. The fuel sensor shall be polled and read by the system at 1 second intervals. 15. The fuel sensor reading shall be passed to a dial. 16. A warning lamp shall be switched from green to red when a 10% or less fuel reading is obtained from the fuel sensor.

A CASE STUDY 17. The system shall have the capability to support a CRT display and a keyboard 18. Measures calculated from the sensor data (such as rate of change of pressure, rate of fuel consumption, etc.) can be requested by the pilot using the keyboard. 19. These measures shall be displayed on the CRT display. 20. Out of limit readings from the sensors or smoke detectors which cause the warning red light to be set shall cause a warning message to be displayed on the CRT. 21 The warnings message shall be of a higher precedence over the measures requested to be displayed By the pilot.

A CASE STUDY 22. The warning messages persist until acknowledged by the pilot via the keyboard. 23. When all warning messages have been acknowledged, the last request shall be displayed. 24. The key board shall be used by the pilot to request the system to simulate the smoke detection. 25. All smoke or no smoke interrupts shall be recorded on a magnetic medium. 26 All readings recorded on the magnetic medium shall be tagged with time at which they were received.