1 / 23

EMBEDDED SOFTWARE

EMBEDDED SOFTWARE. OBJECTIVE This presentation will introduce some of the characteristic features of embedded real-time system and software engineering. This presentation will also help you:.

ula
Download Presentation

EMBEDDED SOFTWARE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EMBEDDED SOFTWARE Team victorious

  2. OBJECTIVEThis presentation will introduce some of the characteristic features of embedded real-time system and software engineering. This presentation will also help you: • Understand the concept of embedded software, which is used tocontrol systems that must react to external events in their environment. • Understand the design process for real-time systems, wherethe software systems are organized as a set of cooperating processes. • Understand three architectural patterns that are commonly used in embedded real-time systems design; • Understand the organization of real-time operating systems and therole that they play in an embedded, real-time system. Team victorious

  3. What is an Embedded Software System? • An embedded software system is part of a hardware/software system that reacts to events in its environment. • The software is ‘embedded’ in the hardware. • Embedded systems are normally real-time systems. Team victorious

  4. Embedded software is very important economically because almost every electrical device now includes software. There are therefore many more embedded software systems than other types of software system. If you look around your house you may have three or four personal computers. But you probably have 20 or 30 embedded systems, such as systems in phones, cookers, microwaves, etc. • Embedded systems can be thought of as reactive systems; that is, they must react to events in their environment at the speed of that environment (Berry, 1989). Team victorious

  5. Team victorious

  6. REAL-TIME SOFTWARE SYSYTEM • This is a system whose correct operation depends on both the results produced by the system and the time at which these results are produced. The software system has a deadline for responding to external events. If this deadline is missed, then the overall hardware–software system will not operate correctly. Team victorious

  7. Examples of an Embedded Software System • The insulin pump software. • The wilderness weather station software. • Burglar alarm software • Note: explain a little Team victorious

  8. Difference Between Embedded Software Systems and Other Software Systems • The paramount difference between embedded systems and other software systems such as information systems, web-based systems whose main purpose is data processing is the responsiveness in real time. Other differences exists which are: • Embedded systems generally run continuously and do not terminate. The real-time system may include update mechanisms that support dynamic reconfiguration so that the system can be updated while it is in service. Team victorious

  9. Difference Between Embedded Software Systems and Other Software Systems continue………. • Interactions with the system’s environment are uncontrollable and unpredictable. Real-time embedded systems must be able to respond to unexpected events at any time. This leads to a design for real-time systems based on concurrency(time in computers), with several processes executing in parallel. • Issues of safety and reliability may dominate the system design. Many embedded systems control devices whose failure may have high human or economic costs. Therefore, dependability is critical and the system design has to ensure safety-critical behavior at all times. Team victorious

  10. Embedded systems design • Given that embedded systems are reactive systems that react to events in their environment, the most general approach to embedded, real-time software design is based on a stimulus-response model. A STIMULUSis an event occurring in the software system’s environment that causes the system to react in some way; a Responseis a signal or message that is sent by the software to its environment. • Stimuli fall into two classes: • Periodic stimuli : These occur at predictable time intervals. • Aperiodic stimuli: These occur irregularly and unpredictably and are usually signaled using the computer’s interrupt mechanism. Team victorious

  11. A general model diagram of an embedded system.Stimuli come from sensors in the system’s environment and responses are sent to actuators. The actuators themselves may also generate stimuli. Thestimuli from actuators often indicate that some problem has occurred, which must behandled by the system. Team victorious

  12. Activities that are expected to be included in a real-time software design process: • Platform selection :you choose an execution platform for the system (i.e., the hardware and the real-time operating system to be used). • Stimuli/response identification: This involves identifying the stimuli that the system must process and the associated response or responses for each stimulus. • Timing analysis For each stimulus and associated response, you identify the timing constraints that apply to both stimulus and response processing. • Process design At this stage, you aggregate the stimulus and response processing into a number of concurrent processes. • Algorithm design For each stimulus and response, you design algorithms to carry out the required computations. • Data design You specify the information that is exchanged by processes and the events that coordinate information exchange, an d design data structures to manage this information exchange. • Process scheduling You design a scheduling system that will ensure that processes are started in time to meet their deadlines. Team victorious

  13. Architectural patterns in Real Time Software System • Observe and React: When the sensors show that some event has occurred (e.g. An incoming call on a cell phone), the system reacts by initiating a process to handle that event. • Environmental Control: In response to environmental changes detected by the sensor, control signals are sent to the system actuators. • Process Pipeline: This pattern is used when data has to be transformed from one representation to another before it can be processed. The transformation is implemented as a sequence of processing steps, which may be carried out concurrently. This allows for very fast data processing, because a separate core or processor can execute each transformation. Team victorious

  14. Timing Requirements of Embedded SystemThe correctness of a real-time system depends not just on the correctness of its outputs but also on the time at which these outputs were produced.This means that an important activity in the embedded, real-time software development process is timing analysis. • When you are analyzing the timing requirements of embedded real-time systems and designing systems to meet these requirements, the following key factors have to be considered: • 1. Deadlines • 2. Frequency • 3. Execution time Team victorious

  15. Real-time operating systems(RTOS) • A platform is always needed to execute an application system. • A real-time operating system manages processes and resource allocation for a real-timesystem. It starts and stops processes so that stimuli can be handled and allocates memory and processor resources. • Standard operating systems, such as Linux and Windows, are not normally used as the execution platform for real-time systems. Very simple embedded systems may be implemented as ‘bare metal’ systems. The systems themselves include system startup and shutdown, process and resource management, and process scheduling. More commonly, however, embedded applications are built on top of a real-time operating system (RTOS), which is an efficient operating system that offers the features needed by real-time systems. Examples of RTOS are Windows/CE, Vxworks, and RTLinux. Team victorious

  16. COMPONENTS OF RTOS • A real-time clock, which provides the information required to schedule processes periodically. • An interrupt handler, which manages aperiodic requests for service. • A scheduler, which is responsible for examining the processes that can be executed and choosing one of these for execution. • A resource manager, which allocates appropriate memory and processor resources to processes that have been scheduled for execution. • A dispatcher, which is responsible for starting the execution of processes. Team victorious

  17. Team victorious

  18. The actions taken by the operating system for periodic process management are shown in the figure in previous slide. The scheduler examines the list of periodic processes and selects a process to be executed. The choice depends on the process priority, the process periods, the expected execution times, and the deadlines of the ready processes. Team victorious

  19. At any one time, there may be several processes, all with different priorities, that could be executed. The process scheduler implements system-scheduling policies that determine the order of process execution. There are two commonly used scheduling strategies: • Non-pre-emptive scheduling: Once a process has been scheduled for execution, it runs to completion, or until it is blocked for some reason, such as waiting for input. • Pre-emptive scheduling: The executing process may be stopped if a higher-priority process requires service. Team victorious

  20. Advantages of Embedded Software • Embedded systems are easier to maintain • the supplied power is embedded in the system and • does not require remote maintenance. Team victorious

  21. Disadvantages of Embedded Software • Embedded systems are difficult to service • they are inside another machine, so a greater effort is made to carefully develop them. • E.g Difficult to upgrade Team victorious

  22. Summary • An embedded software system is part of a hardware/software system that reacts to events in its environment. The software is ‘embedded’ in the hardware. Embedded systems are normally real-time systems. • A real-time operating system is responsible for process and resource management. It always includes a scheduler, which is the component responsible for deciding which process should be scheduled for execution • Real-time systems are usually implemented as a set of communicating processes that react to stimuli to produce responses. Team victorious

  23. References • Berry, G. (1989). ‘Real-time programming: Special-purpose or general-purpose languages’. In Information Processing. Ritter, G. (ed.). Amsterdam: Elsevier Science Publishers, 11–17. • Software engineering 9 Summer Villi_www.titlecover.com • http://www.ehow.com/facts_5526848_advantages-embedded-system.html#ixzz2kAsGXtMk Team victorious

More Related