Exception handling method and device in embedded system

An embedded system and exception handling technology, applied in the directions of non-redundant fault handling, electrical digital data processing, response error generation, etc. Robustness, prevention of abnormal spread, good scalability

Inactive Publication Date: 2010-12-22
ZTE CORP
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The technical problem to be solved by the present invention is to provide an exception handling method and device in an embedded system to solve the problem that the exception handling program has poor portability and needs to be modified accordingly for different processor architectures

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Exception handling method and device in embedded system
  • Exception handling method and device in embedded system
  • Exception handling method and device in embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to facilitate the application development, the present invention provides an open multi-level processing method, adopts the exception callback linked list to hook the exception handling function, and adopts the linked list structure, so it can support the nesting of multi-layer exception handling in the program. Developers can attach custom exception handling functions to different levels of exception callback lists according to the application situation. When an exception occurs, the attached exception handling function will be called to complete the exception handling function step by step. Through multi-level exception handling Mechanism to meet the exception handling requirements of modern embedded systems.

[0038] In this embodiment, two levels of exception callback linked lists are provided for application development: a task-level exception callback linked list and an application-level exception callback linked list.

[0039] When a task is running, a t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an exception handling method in an embedded system. The method comprises the following steps of: when an application program is run, creating an exception callback link for the run application program; registering an exception handling function and a corresponding relation between the exception handling function and exception information to the exception callback link by using the application program; after exception is captured, querying an exception handling function matching the captured exception from the corresponding relation between the exception handling function and the exception information according to the exception information of the captured exception; and after the matched exception handling function is found, calling and executing the matched exception handling function and performing exception handling. Due to the adoption of the exception callback link structure, direct operation of the exception handling function on bottom hardware is avoided and the portability and the robustness of software are improved; and the exception handling method meets the requirements of the current embedded system on the exception handling and has the characteristics of high expandability, reliable system operation, wide application range and the like.

Description

technical field [0001] The invention relates to the technical field of software fault tolerance, in particular to an exception handling method and device in an embedded system. Background technique [0002] With the advent of the post-PC era, embedded systems have been widely used in key technical fields with high reliability requirements such as communication, aviation, national defense and industrial control, and their complexity and functions are increasing day by day. At the same time, in order to efficiently use resources, the software design method of multi-application and multi-task parallelism is also widely adopted. These changes inevitably lead to the increase of various errors and exceptions in the system. When an exception occurs, if it is not handled effectively, it may lead to application termination, system crash, and even catastrophic accidents. would like to see. [0003] As a common fault-tolerant mechanism of embedded systems, exception handling plays a ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/36G06F11/00G06F9/4812G06F11/0715G06F11/0736G06F11/0793
Inventor 王继刚谢世波
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products