P. Albertos* & A. Crespo + Universidad Politécnica de Valencia * Dept. of Systems Engineering and Control, + Dept. of Computer Engineering POB. 22012 E-46071.

Slides:



Advertisements
Similar presentations
Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
Advertisements

Introduction to Embedded Systems Resource Management - III Lecture 19.
Distributed Systems Major Design Issues Presented by: Christopher Hector CS8320 – Advanced Operating Systems Spring 2007 – Section 2.6 Presentation Dr.
Introduction CSCI 444/544 Operating Systems Fall 2008.
Model for Supporting High Integrity and Fault Tolerance Brian Dobbing, Aonix Europe Ltd Chief Technical Consultant.
Architectural Support for OS March 29, 2000 Instructor: Gary Kimura Slides courtesy of Hank Levy.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
1 Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented By Jonathan.
Supporting Time-sensitive Application on a Commodity OS Ashvin Goel, Luca Abeni, Charles Krasic, Jim Snow, Jonathan Walpole Presented by Wen Sun Some Slides.
Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented by Reinette Grobler.
Chapter 13 Embedded Systems
Scheduling with Optimized Communication for Time-Triggered Embedded Systems Slide 1 Scheduling with Optimized Communication for Time-Triggered Embedded.
OS Spring’03 Introduction Operating Systems Spring 2003.
Supporting Time-sensitive Application on a Commodity OS By Ashvin Goel, Luca Abeni, Charles Krasic, Jim Snow, Jonathan Walpole Presenter: Shuping Tien.
Figure 1.1 Interaction between applications and the operating system.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
CprE 458/558: Real-Time Systems
1 Chapter 13 Embedded Systems Embedded Systems Characteristics of Embedded Operating Systems.
DATE Optimizations of an Application- Level Protocol for Enhanced Dependability in FlexRay Wenchao Li 1, Marco Di Natale 2, Wei Zheng 1, Paolo Giusto.
Virtual Machine Monitors CSE451 Andrew Whitaker. Hardware Virtualization Running multiple operating systems on a single physical machine Examples:  VMWare,
EMBEDDED SOFTWARE Team victorious Team Victorious.
Chapter 19: Real-Time Systems Silberschatz, Galvin and Gagne ©2005 AE4B33OSS Chapter 19: Real-Time Systems System Characteristics Features of Real-Time.
Real-Time Operating Systems Suzanne Rivoire November 20, 2002
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 15 Slide 1 Real-time Systems 1.
EMBEDDED SYSTEMS G.V.P.COLLEGE OF ENGINEERING Affiliated to J.N.T.U. By By D.Ramya Deepthi D.Ramya Deepthi & V.Soujanya V.Soujanya.
Introduction to Embedded Systems
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
9/14/2015B.Ramamurthy1 Operating Systems : Overview Bina Ramamurthy CSE421/521.
Tufts Wireless Laboratory School Of Engineering Tufts University “Network QoS Management in Cyber-Physical Systems” Nicole Ng 9/16/20151 by Feng Xia, Longhua.
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
Threads, Thread management & Resource Management.
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.
Two schemes for feedback scheduling on hybrid control systems Chen Xi.
1 소프트웨어공학 강좌 Chap 11. Real-time software Design - Designing embedded software systems whose behaviour is subject to time constraints -
ARMADA Middleware and Communication Services T. ABDELZAHER, M. BJORKLUND, S. DAWSON, W.-C. FENG, F. JAHANIAN, S. JOHNSON, P. MARRON, A. MEHRA, T. MITTON,
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Architectural Design lecture 10. Topics covered Architectural design decisions System organisation Control styles Reference architectures.
The Grid System Design Liu Xiangrui Beijing Institute of Technology.
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
CONTI'20041 Event Management in Distributed Control Systems Gheorghe Sebestyen Technical University of Cluj-Napoca Computers Department.
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.
1 Soft Timers: Efficient Microsecond Software Timer Support For Network Processing Mohit Aron and Peter Druschel Rice University Presented By Oindrila.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
BY: ADAM BAIR Real-Time Operating Systems. What’s a Real-Time System? - A computer system that requires computation to be correct and done before a specified.
1 VxWorks 5.4 Group A3: Wafa’ Jaffal Kathryn Bean.
Threads, Thread management & Resource Management.
19.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 19: Real-Time Systems.
Chapter 19: Real-Time Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 19: Real-Time Systems System Characteristics.
Real-Time Operating System Design
1.  System Characteristics  Features of Real-Time Systems  Implementing Real-Time Operating Systems  Real-Time CPU Scheduling  An Example: VxWorks5.x.
FLARe: a Fault-tolerant Lightweight Adaptive Real-time Middleware for Distributed Real-time and Embedded Systems Dr. Aniruddha S. Gokhale
Control-Theoretic Approaches for Dynamic Information Assurance George Vachtsevanos Georgia Tech Working Meeting U. C. Berkeley February 5, 2003.
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 Real-Time Systems Processing interrupts Lecturer Department University.
Soft Timers : Efficient Microsecond Software Timer Support for Network Processing - Mohit Aron & Peter Druschel CS533 Winter 2007.
CONCEPTS OF REAL-TIME OPERATING SYSTEM. OBJECTIVE  To Understand Why we need OS?  To identify Types of OS  To Define Real - Time Systems  To Classify.
Real-Time Operating Systems RTOS For Embedded systems.
Real-time Software Design
Virtual Machine Monitors
REAL-TIME OPERATING SYSTEMS
Chapter 19: Real-Time Systems
Lecture 12: Real-Time Scheduling
Real-time Software Design
Architectural Support for OS
Chapter 19: Real-Time Systems
Supporting Time-Sensitive Applications on a Commodity OS
Architectural Support for OS
Presentation transcript:

P. Albertos* & A. Crespo + Universidad Politécnica de Valencia * Dept. of Systems Engineering and Control, + Dept. of Computer Engineering POB E Valencia, Spain. Fax: Embedded Control Systems: Control Kernel

NoE on Embedded Systems Design ©P. Albertos 2005 Embedded Control Systems Embedded systems with: – hard RT constraints – guarantee of safe operation – best possible performances Additional issues from viewpoint of: – implementation – computation – algorithmic

NoE on Embedded Systems Design ©P. Albertos 2005 RT Control Issues RT Constraints: –Maximize the time determinism For many controllers a worst-case approach works well e.g., PI, PID, State Feedback, … however, many exceptions: hybrid controllers that switch between different modes with different characteristics model-predictive controllers (MPC) convex optimization problem solved every sample execution time can vary an order of magnitude –Compensate the variations: Measure and react Feedback robustness

NoE on Embedded Systems Design ©P. Albertos 2005 Control requirements Multiloop control Non-uniform sampling Missing data Variable delays Sampling period changes Mode changes Fault tolerant Safe operation CPU optimization Battery control Process to control Environment ECS CPU Batt ery S1S1 SiSi Memory A1A1 AiAi

NoE on Embedded Systems Design ©P. Albertos 2005 ECS: Implementation The same resources must be shared between different tasks Alternative control algorithms should be ready to get the control of the process Working conditions, such as priority, allocated time and memory or signals availability may change Variable delays should be considered Validation and certification

NoE on Embedded Systems Design ©P. Albertos 2005 ECS: Computational viewpoint Economic algorithms Information updating Optional tasks Hybrid systems CPU use measurement and optimisation On-line scheduling Memory saving Economic hardware redundancy Fault detection and isolation

NoE on Embedded Systems Design ©P. Albertos 2005 Control Performances RT Constraints: –Maximize the time determinism For many controllers a worst-case approach works well e.g., PI, PID, … however, a lot of exceptions: hybrid controllers that switch between different modes with different characteristics model-predictive controllers (MPC) convex optimization problem solved every sample execution time can vary an order of magnitude –Compensate the variations: Feedback robustness Measure and counteract Relevance of the control actions The Control Effort concept Sensitive to time delays Changes in the sampling period: –Controller parameters –Past data Commutation bumping

NoE on Embedded Systems Design ©P. Albertos 2005 MIMO controlled plant ref H j.... yiyi ujuj vjvj zi zi SiSi Process Control Integrity Redundancy Performance degrading

NoE on Embedded Systems Design ©P. Albertos 2005 ECS: Control algorithm viewpoint –Reduced order models –Non-conventional sampling and updating patterns –Missing data control –Event-triggered control –Hybrid control systems –Decision and supervisory control –Multimode control –Sampling rate changes –Fault-tolerant control –Degraded and back-up (safe) control strategies –Battery monitoring and control

NoE on Embedded Systems Design ©P. Albertos 2005 The kernel concept Basic services: –Task and time management –Interrupt handling –Interface to the applications (API) –Mode changes –Fault tolerance OS kernel: Additional services –File management –Quality of service –Tracing and debugging –Mode changes –Fault tolerance

NoE on Embedded Systems Design ©P. Albertos 2005 The OS kernel (I) The OS Kernel provides the minimal services that should be included in any embedded system. Task management and synchronization mechanisms Task communication Semaphores and monitors Server definition (aperiodic servers, constant bandwidth servers)) Scheduling policies Time management Real-time clock High resolution timers and execution timers (limit the cpu use per task) Absolute and relative delays Application interface (API) POSIX (standard) OSEK (automobile industry specification) ….

NoE on Embedded Systems Design ©P. Albertos 2005 The OS kernel (II) The OS Kernel provides the minimal services that should be included in any embedded control system. Fault tolerance Degrade task activity (when a task does not guarantee some timing constraints, the degraded behavior is executed) Change mode events raised when some faults can not be managed. Mode changes Mode definition (set of tasks associated to a mode) Mode change events (event to change from one mode to another) Mode change protocol Security Network access Attacks

NoE on Embedded Systems Design ©P. Albertos 2005 The OS kernel (III)

NoE on Embedded Systems Design ©P. Albertos 2005 The Control Kernel concept Ensures control action (CA) delivering Data acquisition of major signals Transfer to new control structure Additional CA computing facilities Communication facilities Coordination facilities DE driven-control

NoE on Embedded Systems Design ©P. Albertos 2005 Event-driven control

NoE on Embedded Systems Design ©P. Albertos 2005 Basic Control Loop CT DT

NoE on Embedded Systems Design ©P. Albertos 2005 Basic Control Loop

NoE on Embedded Systems Design ©P. Albertos 2005 Control Kernel Ensures control action (CA) delivering –Safe (back-up) CA computation –Safe CA computation based on previous data Data acquisition of major signals –Safe CA computation based on current data Transfer to new control structure –Basic control structure parameters computation –CA computation Full DA –Control structures evaluation and selection –CA computation (different levels) Communication facilities Coordination facilities

NoE on Embedded Systems Design ©P. Albertos 2005 The control kernel concept Plant CA deliv Backup CA CA user CA computation DA Safe operation in any condition

NoE on Embedded Systems Design ©P. Albertos 2005 Control Kernel Algorithm CA delivering Backup CA Backup CA Computation Current safe b-up CA comp. Basic CA computation CA comp CA comp. (Process model) –Essential –Partial –Complete

NoE on Embedded Systems Design ©P. Albertos 2005 Control Kernel Algorithm Model reduction: –Partial control (parts of the plant) - Partial phenomena (fast/slow dynamics) S1 S2 u y

NoE on Embedded Systems Design ©P. Albertos 2005 Conclusions Control Kernel Variables relevance –Control effort