SlideShare a Scribd company logo
1 of 46
Download to read offline
Embedded Operating
Systems and
Application
Lirong Chen
741091483@qq.com
Introduction of
Embedded Systems and
Embedded Operating Systems
1 The concept of embedded systems
2 The concept of real-time systems
3 Overview of embedded operating systems
Automotive electronics control systems
motor
controller
lamp
In an automotive, internal communication buses connect ECUs of different
application domains, such as the powertrain domain, the chassis and safety
domain, the infotainment domain, and the comfort domain.
n Anti-lock Braking System (ABS)
• Real time and
• Safety-related!
layered software
architecture of an ECU
○ flight
control
A D
B C
○ fire
control
○ missile
launching
○ ……
Av i o n i c s
Radar
Weapons
Nav
Sensors
Weapon
Management Data Links
Stick,
Throttle…
Actuators
Mission
Computing
Vehicle
Management
communication base stations
Smart phones
Intelligent electric meters
Smart refrigerators
Cash registers
Industrial robots
Medical instruments
UAV(unmanned aerial
vehicle)
• An embedded system is a computer system contained within some larger
device or product with the intent purpose of providing monitoring, and
control services to that device.
• Any sort of device which includes a programmable computer but itself is
not intended to be a general-purpose computer.
• IEEE: “Device used to control,monitor,or assist the operation of
equipment,machinery or plants”.
• Embedded Systems are applications oriented systems, based on computer
technologies, with tailorable hardware and software. They are special
purpose computer systems satisfying strict requirements such as
functionalities, reliability, cost, size and power consumption.
• Embedded systems are combination of advanced computer technologies,
semiconductor technologies and electronic technologies, they have
concrete applications of diverse domains.
• Physically, embedded systems range from portable devices such as
digital watches and MP3 players, to large stationary installations like
traffic lights, factory controllers, or the systems controlling nuclear
power plants.
• Complexity varies from low, with a single microcontroller chip, to
very high with multiple units, peripherals and networks mounted
inside a large chassis or enclosure.
Anti-lock brakes
Auto-focus cameras
Automatic teller
machines
Automatic toll systems
Automatic transmission
Avionic systems
Battery chargers
Camcorders
Cell phones
Cell-phone base stations
Cordless phones
Cruise control
Curbside check-in
systems
Digital cameras
Disk drives
Electronic card readers
Electronic instruments
Electronic toys/games
Factory control
Fax machines
Fingerprint identifiers
Home security systems
Life-support systems
Medical testing systems
Modems
MPEG decoders
Network cards
Network switches/routers
On-board navigation
Pagers
Photocopiers
Point-of-sale systems
Portable video games
Printers
Satellite phones
Scanners
Smart ovens/dishwashers
Speech recognizers
Stereo systems
Teleconferencing systems
Televisions
Temperature controllers
Theft tracking systems
TV set-top boxes
VCR’s, DVD players
Video game consoles
Video phones
Washers and dryers
Information
appliance
Mobile
terminals
Communica
tion
equipment
Automotive
electronics
Industrial
control
systems
Medical
instruments
……
n Pervasive Computing(Ubiquitous Computing): the trend towards
increasingly ubiquitous, connected computing devices in the environment,
a trend being brought about by a convergence of advanced electronic
(particularly wireless) technologies and the Internet.
• Ubiquitous Computing (Mark Weiser, Xerox PARC 1988)
• Calm Computing (John Brown, Xerox PARC 1996)
• Universal Computing (James Landay, Berkeley 1998)
• Invisible Computing (G. Barriello, UoWashington 1999)
• Context Based Computing (Berkeley/IBM 1999)
• Hidden Computing (Toshiba 1999)
• Pervasive Computing (Academia, IBM 1999, SAP 2000)
• Post PC Computing (common sense)
• Ambient Intelligence (European Commission, FP5)
• Everyday Computing (Georgia Tech, 2000)
• Sentient Computing (AT&T, 2002)
• Amorphous Computing (DARPA, 2002)…
Wearable Computing
3rd party application
suppliers: information,
navigation,
entertainment…
4S shops: vehicle
maintenance, rescue,
remote diagnostic,
update…
OEMs:
information
collection, remote
update…
Intelligent
transportation: eCall,
transportation
management, road side
unit management…
ICV:
Intelligent
Connected
Vehicles
ITS:
Intelligent
Transportation
System
• Specialized and optimized for specific
application
• Support many kinds of processor
architectures
• High efficiency
• Embedded operating systems usually
supports many kinds of processors, and
are tailorable, light-weighted, real-time
and reliable, and can be solidified
• Special tools and methods are needed to
develop embedded systems
Host system target system
Cross development of embedded software
Real-time
Memory constraint
Low power consumption
Cost sensitive
High dependability/reliability
execution time of OS services
High dependability of embedded systems
• Reliability R(t) = probability of system working correctly
provided that is was working at t=0
• Maintainability M(d) = probability of system working
correctly d time units after error occurred.
• Availability: probability of system working at time t
• Safety: no harm to be caused
• Security: confidential and authentic communication
functional
safety
functional
safety
a typical embedded OS:
~4KLOC (lines of code)
EAL7: ~$1,000 per LOC
cost: ~$4Million
MILS SEPARATION KERNEL
Application
Middleware
TS
(SL)
Processor
Application
Middleware
U
(SL)
Application
Middleware
C
(SL)
Application
Middleware
S
(SL)
Minimal
Middleware
Minimal
Runtime
TS/S
(MLS)
Guest OS Guest OS Guest OS Guest OS
Linux Linux LynxOS LynxOS
LynuxWorks Lynx Secure
Padded Cell
Linux
Padded Cell
Linux
POSIX
Runtime
POSIX
Runtime
Green Hills INTEGRITY
VxWorks VxWorks VxWorks VxWorks
Wind River VxWorks MILS
MILS Separation Kernel
A MILS Workstation?
Mac OS
John Rushby
Powerful two-level time and space schedulers: implements a strict two-level scheduler for
maximum separation, performance, and scalability. The module operating system (MOS)
operates in kernel space and schedules MMU-protected partitions, on a predefined time basis.
Inside each partition the partition-level operating system (POS) schedules tasks on a priority-
preemptive basis, using VxWorks, ARINC, POSIX, or other API. This robust scheduling and
separation environment enables the deployment of different safety certification levels on a
single instance of silicon and deterministic performance when increasing the number of virtual
application partitions.
module operating
system (MOS)
partition-level
operating systems (POS)
Based on ARINC653
• The relationship of embedded systems and real-
time systems
• Embedded software usually can be executed directly from flash memory
or loaded into RAM,and can be rapidly booted.
§ For real-time systems, right answers arriving too late are wrong.
• Real-time means“immediately”,“on time”
• Real-time systems need to response to external events in
limited time.
• “Any system where a timely response by the computer to external
stimuli is vital is a Real-Time System”.
• Just functionally working is NOT enough!
• Real-time control systems and real-time information processing
systems are both called real-time systems
• The response times range from
microseconds to milliseconds
strong
Real-time
systems
• The response time are at the
level of several seconds
Normal
real-time
systems
• The response times are even
longer, range from tens of
seconds(or minutes) to longer
Weak
real-time
systems
automotive
braking
control
system
traffic lights
stock
system
100ns
1μs
10μs
100μs
1ms
10ms
100ms
1s
Speech and
Audio
systems
Process
simulation and
network control
Flight
simulation
Robot
controllers
Telemetry control
& science analysis
Process
control
systems
and
Industrial
Automation
Medical Diagnosis
and lab automation
Fire alarm systems
Time
Constrains
slower
faster
Applications
• Have strict response time limit,
which must be satisfied,
otherwise the system will
breakdown or lead to fatal error
Hard
real-time
systems
• If the response time does not
satisfy the limit, the system will
not collapse, nor lead to fatal
error
Soft
real-time
systems
nAre operating systems necessarily needed by embedded
real-time systems?
Polling
system
Fore/back-
ground
system
Single-
processor
Multitask
system
Multi-
processor
multitask
system
background
foreground
Higher priorities
For a complex embedded real-time
system, when:
• It’s difficult to fulfill the functionalities
of the system with the software
structure of interrupt processing
routines plus a background program,
especially when the system has
requirements of real-time and high
dependency
• There exit some unrelated tasks to be
processed at the same time
Then we need a multitask system!
Background:
Multi-tasks
Foreground:
ISRs
an extension of fore/back-ground system!
Features:
• S e v e r a l s e q u e n t i a l p r o g r a m s e x e c u t e
concurrently.
• On the macro point of view, all programs run at
the same time, each executes on its own
machine(CPU+ other hardware resources).
• In fact, they share the same CPU and other
hardware components. Thus, a RTOS is needed
to manage these shared devices and data.
• Each program is an infinite loop, waits for
dedicated input data, and does corresponding
processing.
• This is a programming model dividing the whole
system into some simpler and cooperating
modules.
qadvantages
v Decompose a system into relatively independent threads, thus
decrease the complexity of the system
v Guarantee the real-time property of the system
v It’s easier to maintain the system
qdisadvantages
v Some new software design methods must be adopted
v mechanisms such as threads coordination, synchronization and
communication must be provided
v Mutual exclusion mechanism must be used to protect shared
resources
v Competence between threads can not be avoided
v It’s necessary to use RTOSs,which increase the system overhead
Embedded operating systems have functionalities similar with normal operating
systems, meanwhile, they have features of embedded software:
• Real-time
• Configurable, tailorable
• Independent Board Support Packages which can be modified
• Have dedicated versions for special CPU architectures
• ARM  MIPS  PowerPC  Super H  X86  RISC 5......
• Integrated cross tools are used to develop applications based on embedded
operating systems
OS name description
Corporation /
organization
uC/OS
Famous open source embedded real-
time OS
Micriμm
OSEK OS
Real-time OS used in automotive
industry
OSEK
organization
AUTOSAR OS
Real-time OS used in automotive
industry
AUTOSAR
organization
VxWorks
Famous commercial embedded OS,
commonly used in many embedded
systems
Wind River
QNX OS
Famous real-time embedded OS, now
commonly used in telematics boxes on
modern automotive
QNX
INTEGRITY
Famous commercial real-time
embedded OS
Green Hills
Nucleus Famous real-time embedded OS
Accelerated
Technology
example: architecture of the QNX operating system
The INTEGRITY® RTOS is a
secure, maximum reliability,
real-time operating system
intended for use in mission
critical embedded systems.
The velOSity™ RTOS is
small and fast—making it
perfect for high volume,
cost-sensitive, and deeply
embedded applications.
The INTEGRITY-178B RTOS is securely partitioned, making
it ideal for demanding safety critical applications that contain
multiple programs with different levels of safety criticality—all
executing on a single processor.
The royalty-free µ-velOSity real-
time microkernel is the smallest of
Green Hills Software’s family of
operating systems.
• Android
• iOS
• Embedded Linux
IVI(In-Vehicle
Infotainment)
• Give 2~3 descriptions about the concept of embedded systems
• Name out some application domains of embedded systems
• What is “pervasive computing”?
• List out the main features of embedded systems
• What are the main non-functional constraints of embedded systems?
• The concept of real-time system and its relationship with embedded system
• The categories of real-time systems when classified by response time
• The categories of real-time systems when classified by the deterministic attribute
• The definition of hard real-time system
• Does embedded real-time system (ERTS) necessarily need OS? Why?
• According to the software architecture, what categories can embedded systems be classified into?
• The structure of fore/back-ground systems.
• What indicators are used for the performance of fore/back-ground systems?
• The main features of multi-task systems
• The advantages and disadvantages of multi-task systems
• Features of embedded OS
Embedded OS and Application-2024-01 Embedded system introduction.pdf

More Related Content

Similar to Embedded OS and Application-2024-01 Embedded system introduction.pdf

Aauca_Sistemas_Embebidos_Nota_1DR JS.pdf
Aauca_Sistemas_Embebidos_Nota_1DR JS.pdfAauca_Sistemas_Embebidos_Nota_1DR JS.pdf
Aauca_Sistemas_Embebidos_Nota_1DR JS.pdfJoseMaximilianoNzang1
 
Embedded system notes
Embedded system notesEmbedded system notes
Embedded system notesTARUN KUMAR
 
Embedded System
Embedded SystemEmbedded System
Embedded Systemsureskal
 
Basics of OS & RTOS.ppt
Basics of OS & RTOS.pptBasics of OS & RTOS.ppt
Basics of OS & RTOS.pptDr.YNM
 
Language for embedded system
Language for embedded systemLanguage for embedded system
Language for embedded systemvkrhanjeeth .
 
Language for Embedded System
Language for Embedded System Language for Embedded System
Language for Embedded System vkrhanjeeth .
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollersAditya Porwal
 
EMBEDDED SYSTEMS - MSc Sem III (Final).ppt
EMBEDDED SYSTEMS - MSc Sem III (Final).pptEMBEDDED SYSTEMS - MSc Sem III (Final).ppt
EMBEDDED SYSTEMS - MSc Sem III (Final).pptNamrata Ajwani
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05Rajesh Gupta
 
Architecture design of a virtual embedded system report
Architecture design of a virtual embedded system reportArchitecture design of a virtual embedded system report
Architecture design of a virtual embedded system reportRajeev Mohanty
 
39245175 intro-es-ii
39245175 intro-es-ii39245175 intro-es-ii
39245175 intro-es-iiEmbeddedbvp
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptxPratik Gohel
 
Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02ishan111
 
Chapter 6 computer and controls systems within manufacturing
Chapter 6   computer and controls systems within manufacturingChapter 6   computer and controls systems within manufacturing
Chapter 6 computer and controls systems within manufacturingN. A. Sutisna
 
Unit 1 Embedded systems and applications
Unit 1 Embedded systems and applicationsUnit 1 Embedded systems and applications
Unit 1 Embedded systems and applicationsDr.YNM
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applicationsDr.YNM
 
embeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptxembeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptxDrVikasMahor
 
Embedded System
Embedded SystemEmbedded System
Embedded Systemsurendar
 

Similar to Embedded OS and Application-2024-01 Embedded system introduction.pdf (20)

Aauca_Sistemas_Embebidos_Nota_1DR JS.pdf
Aauca_Sistemas_Embebidos_Nota_1DR JS.pdfAauca_Sistemas_Embebidos_Nota_1DR JS.pdf
Aauca_Sistemas_Embebidos_Nota_1DR JS.pdf
 
Embedded system notes
Embedded system notesEmbedded system notes
Embedded system notes
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Basics of OS & RTOS.ppt
Basics of OS & RTOS.pptBasics of OS & RTOS.ppt
Basics of OS & RTOS.ppt
 
Language for embedded system
Language for embedded systemLanguage for embedded system
Language for embedded system
 
Language for Embedded System
Language for Embedded System Language for Embedded System
Language for Embedded System
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
EMBEDDED SYSTEMS - MSc Sem III (Final).ppt
EMBEDDED SYSTEMS - MSc Sem III (Final).pptEMBEDDED SYSTEMS - MSc Sem III (Final).ppt
EMBEDDED SYSTEMS - MSc Sem III (Final).ppt
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05
 
Architecture design of a virtual embedded system report
Architecture design of a virtual embedded system reportArchitecture design of a virtual embedded system report
Architecture design of a virtual embedded system report
 
39245175 intro-es-ii
39245175 intro-es-ii39245175 intro-es-ii
39245175 intro-es-ii
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
 
Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02Embeddedsystem 110412132957-phpapp02
Embeddedsystem 110412132957-phpapp02
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Unit 1 - Introduction
Unit 1 - IntroductionUnit 1 - Introduction
Unit 1 - Introduction
 
Chapter 6 computer and controls systems within manufacturing
Chapter 6   computer and controls systems within manufacturingChapter 6   computer and controls systems within manufacturing
Chapter 6 computer and controls systems within manufacturing
 
Unit 1 Embedded systems and applications
Unit 1 Embedded systems and applicationsUnit 1 Embedded systems and applications
Unit 1 Embedded systems and applications
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applications
 
embeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptxembeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptx
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 

Recently uploaded

HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...ssuserdfc773
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsmeharikiros2
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxpritamlangde
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxhublikarsn
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257subhasishdas79
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesChandrakantDivate1
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxNANDHAKUMARA10
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdfKamal Acharya
 

Recently uploaded (20)

HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 

Embedded OS and Application-2024-01 Embedded system introduction.pdf

  • 2. Introduction of Embedded Systems and Embedded Operating Systems 1 The concept of embedded systems 2 The concept of real-time systems 3 Overview of embedded operating systems
  • 3. Automotive electronics control systems motor controller lamp
  • 4. In an automotive, internal communication buses connect ECUs of different application domains, such as the powertrain domain, the chassis and safety domain, the infotainment domain, and the comfort domain.
  • 5. n Anti-lock Braking System (ABS) • Real time and • Safety-related! layered software architecture of an ECU
  • 6. ○ flight control A D B C ○ fire control ○ missile launching ○ …… Av i o n i c s
  • 8.
  • 9. communication base stations Smart phones Intelligent electric meters Smart refrigerators Cash registers Industrial robots Medical instruments UAV(unmanned aerial vehicle)
  • 10. • An embedded system is a computer system contained within some larger device or product with the intent purpose of providing monitoring, and control services to that device. • Any sort of device which includes a programmable computer but itself is not intended to be a general-purpose computer. • IEEE: “Device used to control,monitor,or assist the operation of equipment,machinery or plants”. • Embedded Systems are applications oriented systems, based on computer technologies, with tailorable hardware and software. They are special purpose computer systems satisfying strict requirements such as functionalities, reliability, cost, size and power consumption.
  • 11. • Embedded systems are combination of advanced computer technologies, semiconductor technologies and electronic technologies, they have concrete applications of diverse domains. • Physically, embedded systems range from portable devices such as digital watches and MP3 players, to large stationary installations like traffic lights, factory controllers, or the systems controlling nuclear power plants. • Complexity varies from low, with a single microcontroller chip, to very high with multiple units, peripherals and networks mounted inside a large chassis or enclosure.
  • 12. Anti-lock brakes Auto-focus cameras Automatic teller machines Automatic toll systems Automatic transmission Avionic systems Battery chargers Camcorders Cell phones Cell-phone base stations Cordless phones Cruise control Curbside check-in systems Digital cameras Disk drives Electronic card readers Electronic instruments Electronic toys/games Factory control Fax machines Fingerprint identifiers Home security systems Life-support systems Medical testing systems Modems MPEG decoders Network cards Network switches/routers On-board navigation Pagers Photocopiers Point-of-sale systems Portable video games Printers Satellite phones Scanners Smart ovens/dishwashers Speech recognizers Stereo systems Teleconferencing systems Televisions Temperature controllers Theft tracking systems TV set-top boxes VCR’s, DVD players Video game consoles Video phones Washers and dryers
  • 14. n Pervasive Computing(Ubiquitous Computing): the trend towards increasingly ubiquitous, connected computing devices in the environment, a trend being brought about by a convergence of advanced electronic (particularly wireless) technologies and the Internet. • Ubiquitous Computing (Mark Weiser, Xerox PARC 1988) • Calm Computing (John Brown, Xerox PARC 1996) • Universal Computing (James Landay, Berkeley 1998) • Invisible Computing (G. Barriello, UoWashington 1999) • Context Based Computing (Berkeley/IBM 1999) • Hidden Computing (Toshiba 1999) • Pervasive Computing (Academia, IBM 1999, SAP 2000) • Post PC Computing (common sense) • Ambient Intelligence (European Commission, FP5) • Everyday Computing (Georgia Tech, 2000) • Sentient Computing (AT&T, 2002) • Amorphous Computing (DARPA, 2002)… Wearable Computing
  • 15.
  • 16. 3rd party application suppliers: information, navigation, entertainment… 4S shops: vehicle maintenance, rescue, remote diagnostic, update… OEMs: information collection, remote update… Intelligent transportation: eCall, transportation management, road side unit management… ICV: Intelligent Connected Vehicles ITS: Intelligent Transportation System
  • 17. • Specialized and optimized for specific application • Support many kinds of processor architectures • High efficiency • Embedded operating systems usually supports many kinds of processors, and are tailorable, light-weighted, real-time and reliable, and can be solidified • Special tools and methods are needed to develop embedded systems Host system target system Cross development of embedded software
  • 18. Real-time Memory constraint Low power consumption Cost sensitive High dependability/reliability execution time of OS services
  • 19. High dependability of embedded systems • Reliability R(t) = probability of system working correctly provided that is was working at t=0 • Maintainability M(d) = probability of system working correctly d time units after error occurred. • Availability: probability of system working at time t • Safety: no harm to be caused • Security: confidential and authentic communication
  • 20.
  • 23.
  • 24. a typical embedded OS: ~4KLOC (lines of code) EAL7: ~$1,000 per LOC cost: ~$4Million
  • 25. MILS SEPARATION KERNEL Application Middleware TS (SL) Processor Application Middleware U (SL) Application Middleware C (SL) Application Middleware S (SL) Minimal Middleware Minimal Runtime TS/S (MLS) Guest OS Guest OS Guest OS Guest OS Linux Linux LynxOS LynxOS LynuxWorks Lynx Secure Padded Cell Linux Padded Cell Linux POSIX Runtime POSIX Runtime Green Hills INTEGRITY VxWorks VxWorks VxWorks VxWorks Wind River VxWorks MILS MILS Separation Kernel A MILS Workstation? Mac OS John Rushby
  • 26. Powerful two-level time and space schedulers: implements a strict two-level scheduler for maximum separation, performance, and scalability. The module operating system (MOS) operates in kernel space and schedules MMU-protected partitions, on a predefined time basis. Inside each partition the partition-level operating system (POS) schedules tasks on a priority- preemptive basis, using VxWorks, ARINC, POSIX, or other API. This robust scheduling and separation environment enables the deployment of different safety certification levels on a single instance of silicon and deterministic performance when increasing the number of virtual application partitions. module operating system (MOS) partition-level operating systems (POS)
  • 28. • The relationship of embedded systems and real- time systems • Embedded software usually can be executed directly from flash memory or loaded into RAM,and can be rapidly booted. § For real-time systems, right answers arriving too late are wrong.
  • 29. • Real-time means“immediately”,“on time” • Real-time systems need to response to external events in limited time. • “Any system where a timely response by the computer to external stimuli is vital is a Real-Time System”. • Just functionally working is NOT enough! • Real-time control systems and real-time information processing systems are both called real-time systems
  • 30. • The response times range from microseconds to milliseconds strong Real-time systems • The response time are at the level of several seconds Normal real-time systems • The response times are even longer, range from tens of seconds(or minutes) to longer Weak real-time systems automotive braking control system traffic lights stock system
  • 31. 100ns 1μs 10μs 100μs 1ms 10ms 100ms 1s Speech and Audio systems Process simulation and network control Flight simulation Robot controllers Telemetry control & science analysis Process control systems and Industrial Automation Medical Diagnosis and lab automation Fire alarm systems Time Constrains slower faster Applications
  • 32. • Have strict response time limit, which must be satisfied, otherwise the system will breakdown or lead to fatal error Hard real-time systems • If the response time does not satisfy the limit, the system will not collapse, nor lead to fatal error Soft real-time systems
  • 33. nAre operating systems necessarily needed by embedded real-time systems? Polling system Fore/back- ground system Single- processor Multitask system Multi- processor multitask system
  • 34.
  • 36.
  • 37. For a complex embedded real-time system, when: • It’s difficult to fulfill the functionalities of the system with the software structure of interrupt processing routines plus a background program, especially when the system has requirements of real-time and high dependency • There exit some unrelated tasks to be processed at the same time Then we need a multitask system! Background: Multi-tasks Foreground: ISRs an extension of fore/back-ground system!
  • 38. Features: • S e v e r a l s e q u e n t i a l p r o g r a m s e x e c u t e concurrently. • On the macro point of view, all programs run at the same time, each executes on its own machine(CPU+ other hardware resources). • In fact, they share the same CPU and other hardware components. Thus, a RTOS is needed to manage these shared devices and data. • Each program is an infinite loop, waits for dedicated input data, and does corresponding processing. • This is a programming model dividing the whole system into some simpler and cooperating modules.
  • 39. qadvantages v Decompose a system into relatively independent threads, thus decrease the complexity of the system v Guarantee the real-time property of the system v It’s easier to maintain the system qdisadvantages v Some new software design methods must be adopted v mechanisms such as threads coordination, synchronization and communication must be provided v Mutual exclusion mechanism must be used to protect shared resources v Competence between threads can not be avoided v It’s necessary to use RTOSs,which increase the system overhead
  • 40. Embedded operating systems have functionalities similar with normal operating systems, meanwhile, they have features of embedded software: • Real-time • Configurable, tailorable • Independent Board Support Packages which can be modified • Have dedicated versions for special CPU architectures • ARM MIPS PowerPC Super H X86 RISC 5...... • Integrated cross tools are used to develop applications based on embedded operating systems
  • 41. OS name description Corporation / organization uC/OS Famous open source embedded real- time OS Micriμm OSEK OS Real-time OS used in automotive industry OSEK organization AUTOSAR OS Real-time OS used in automotive industry AUTOSAR organization VxWorks Famous commercial embedded OS, commonly used in many embedded systems Wind River QNX OS Famous real-time embedded OS, now commonly used in telematics boxes on modern automotive QNX INTEGRITY Famous commercial real-time embedded OS Green Hills Nucleus Famous real-time embedded OS Accelerated Technology
  • 42. example: architecture of the QNX operating system
  • 43. The INTEGRITY® RTOS is a secure, maximum reliability, real-time operating system intended for use in mission critical embedded systems. The velOSity™ RTOS is small and fast—making it perfect for high volume, cost-sensitive, and deeply embedded applications. The INTEGRITY-178B RTOS is securely partitioned, making it ideal for demanding safety critical applications that contain multiple programs with different levels of safety criticality—all executing on a single processor. The royalty-free µ-velOSity real- time microkernel is the smallest of Green Hills Software’s family of operating systems.
  • 44. • Android • iOS • Embedded Linux IVI(In-Vehicle Infotainment)
  • 45. • Give 2~3 descriptions about the concept of embedded systems • Name out some application domains of embedded systems • What is “pervasive computing”? • List out the main features of embedded systems • What are the main non-functional constraints of embedded systems? • The concept of real-time system and its relationship with embedded system • The categories of real-time systems when classified by response time • The categories of real-time systems when classified by the deterministic attribute • The definition of hard real-time system • Does embedded real-time system (ERTS) necessarily need OS? Why? • According to the software architecture, what categories can embedded systems be classified into? • The structure of fore/back-ground systems. • What indicators are used for the performance of fore/back-ground systems? • The main features of multi-task systems • The advantages and disadvantages of multi-task systems • Features of embedded OS