KR101519351B1 - Task execution diagnosis apparatus - Google Patents
Task execution diagnosis apparatus Download PDFInfo
- Publication number
- KR101519351B1 KR101519351B1 KR1020130121158A KR20130121158A KR101519351B1 KR 101519351 B1 KR101519351 B1 KR 101519351B1 KR 1020130121158 A KR1020130121158 A KR 1020130121158A KR 20130121158 A KR20130121158 A KR 20130121158A KR 101519351 B1 KR101519351 B1 KR 101519351B1
- Authority
- KR
- South Korea
- Prior art keywords
- task
- signal
- information
- execution
- error
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/28—Error detection; Error correction; Monitoring by checking the correct order of processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
본 발명은 태스크 수행을 알리는 태스크 정보를 발생시키는 태스크 정보 출력부, 태스크 정보 출력부로부터 태스크 정보를 입력받으면, 기 저장된 설정 정보를 토대로 태스크 정보를 분석하여 태스크 폴트 신호를 출력하는 태스크 정보 분석부 및 태스크 정보 분석부로부터 입력된 태스크 폴트 신호를 분석하여 태스크 수행 오류를 검출하는 마이컴을 포함하는 것을 특징으로 한다.A task information analyzer for analyzing task information based on previously stored setting information and outputting a task fault signal when receiving task information from the task information output unit; And a microcomputer for analyzing a task fault signal input from the task information analyzing unit and detecting a task execution error.
Description
본 발명은 태스크 수행 진단 장치에 관한 것으로서, 보다 상세하게는 주기적 수행이 요구되는 시스템에서 태스크의 수행 오류를 진단하는 태스크 수행 진단 장치에 관한 것이다.
The present invention relates to a task execution diagnostic apparatus, and more particularly, to a task execution diagnostic apparatus that diagnoses a task execution error in a system requiring periodic execution.
일반적으로 태스크란 주기적 수행이 요구되는 시스템에서 실행 가능한 프로그램 부분을 말한다. In general, a task is a part of a program that is executable on a system that requires periodic execution.
주기적 수행이 요구되는 시스템은 시간 반응이 정확히 요구되는 리얼 타임 시스템으로써, 특정 시간 주기 내에서 특정 사건에 반응하는 것이 보장되어야 하는바, 주로 안전 시스템에 이용된다. 그 결과, 주기적 수행이 요구되는 시스템의 오류는 전체 시스템에는 치명적인 결과로 나타나게 된다. A system that requires periodic performance is a real-time system that requires precise time response. It is mainly used in safety systems as it must be guaranteed to respond to specific events within a specific time period. As a result, system errors that require periodic performance are fatal to the overall system.
이에 주기적 수행이 요구되는 시스템의 경우, 해당 태스크 수행 주기와 태스크 수행 타이밍 등을 진단하여 전체 시스템에 대한 안전을 보장할 필요할 필요가 있다.Therefore, in the case of a system requiring periodical execution, it is necessary to diagnose the task execution cycle and the task execution timing to ensure safety for the entire system.
이에 종래에는 태스크 수행 타이밍에 대한 평균값을 체크하고 이 평균값이 정상 범위를 연속적으로 초과하는지를 통해 태스크 수행 타이밍에 대한 오류를 판단하였다. Conventionally, an average value of task execution timings is checked, and an error with respect to task execution timings is determined based on whether the average value continuously exceeds the normal range.
그러나, 종래의 방식은 태스크 수행 타이밍이 정상 범위를 벗어나더라도 그 평균값이 결국 정상 범위와 가까워지기 때문에 태스크 수행시간 오류를 정확하게 검출하지 못하는 문제점이 있었다. However, in the conventional method, even if the task execution timing deviates from the normal range, the average value is finally close to the normal range, so that the task execution time error can not be accurately detected.
게다가, 종래의 방식은 단지 태스크 수행 타이밍에 대해서만 체크할 수 있고, 태스크 수행 주기나 태스크 수행 시퀀스에 대해서는 검출하기 어려운 문제점이 있었다. In addition, the conventional method has a problem that it is possible to check only the task execution timing, and it is difficult to detect the task execution cycle or the task execution sequence.
본 발명의 배경기술은 대한민국 특허공개번호 10-2009-0084866호(2009.08.05)의 '검출 장치, 프로그램 및 검출 방법'에 개시되어 있다.
The background art of the present invention is disclosed in 'Detection Apparatus, Program and Detection Method' of Korean Patent Publication No. 10-2009-0084866 (2009.08.05).
본 발명은 상기와 같은 문제점을 개선하기 위해 창출된 것으로서, 본 발명의 목적은 마이컴에서 태스크를 수행할 때마다 태스크 정보를 출력하고, 발생된 태스크 정보를 태스크 정보 분석부가 분석하여 마이컴에서의 태스크 수행 오류를 검출하는 태스크 수행 진단 장치를 제공하는 것이다. SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and it is an object of the present invention to provide a task information analyzing apparatus and method, in which a task information is outputted every time a task is executed in a microcomputer, And to provide a task execution diagnostic apparatus that detects an error.
본 발명의 다른 목적은 마이컴에서 태스크 수행시, 태스크 수행 타이밍, 태스크 수행 주기 및 태스크 수행 시퀀스 등과 같은 전반적인 태스크 정보를 실시간으로 체크할 수 있도록 하는 태스크 수행 진단 장치를 제공하는 것이다.Another object of the present invention is to provide a task execution diagnostic apparatus that can check overall task information such as task execution timing, task execution cycle, and task execution sequence in real time when a task is executed in a microcomputer.
본 발명의 또 다른 목적은 주기적 수행이 요구되는 시스템의 오동작에 따른 위험성을 감소시켜 전체 시스템의 안전성을 보장하는 태스크 수행 진단 장치를 제공하는 것이다.It is still another object of the present invention to provide a task execution diagnostic apparatus that reduces the risk of malfunction of a system requiring periodic execution and ensures safety of the entire system.
본 발명의 또 다른 목적은 전체 시스템에 대한 개발 및 검증 과정에서, 태스크 수행시 그 오류 발생 빈도를 확인하기 위한 오류 분석 데이터를 취득할 수 있도록 하는 태스크 수행 진단 장치를 제공하는 것이다.
It is still another object of the present invention to provide a task execution diagnostic apparatus capable of acquiring error analysis data for checking the occurrence frequency of errors in a task development and verification process for the entire system.
본 발명의 일 측면에 따른 태스크 수행 진단 장치는 태스크 수행을 알리는 태스크 정보를 발생시키는 태스크 정보 출력부; 상기 태스크 정보 출력부로부터 상기 태스크 정보를 입력받으면, 기 저장된 설정 정보를 토대로 상기 태스크 정보를 분석하여 태스크 폴트 신호를 출력하는 태스크 정보 분석부; 및 상기 태스크 정보 분석부로부터 입력된 상기 태스크 폴트 신호를 분석하여 태스크 수행 오류를 검출하는 마이컴을 포함하는 것을 특징으로 한다.According to an aspect of the present invention, a task execution diagnostic apparatus includes: a task information output unit for generating task information indicating task execution; A task information analyzer for analyzing the task information based on previously stored setting information and outputting a task fault signal when receiving the task information from the task information output unit; And a microcomputer for analyzing the task fault signal inputted from the task information analyzing unit to detect a task execution error.
본 발명에서, 상기 태스크 수행 오류는 태스크 수행 주기 오류, 태스크 수행 시간 오류, 태스크 수행 타이밍 오류 및 태스크 수행 시퀀스 오류 중 어느 하나 이상을 포함하는 것을 특징으로 한다.In the present invention, the task execution error includes at least one of a task execution cycle error, a task execution time error, a task execution timing error, and a task execution sequence error.
본 발명에서, 상기 태스크 정보는 상기 태스크와 동기화된 파형 형태의 태스크 신호인 것을 특징으로 한다.In the present invention, the task information is a task signal in the form of a waveform synchronized with the task.
본 발명에서, 상기 설정 정보는 상기 태스크 신호의 신호 방식에 따른 임계 범위, 태스크 폴트 신호 방식 및 폴트 신호 파라메타 중 어느 하나 이상을 포함하는 것을 특징으로 한다.In the present invention, the setting information may include at least one of a threshold range, a task fault signal system, and a fault signal parameter according to a signal system of the task signal.
본 발명에서, 상기 태스크 신호는 PWM(Pulse Width Modulation) 신호, PFM(Pulse Frequency Modulation) 신호 및 태스크 정상 수행시 주기적으로 동일한 파형을 출력하는 신호 중 어느 하나인 것을 특징으로 한다.In the present invention, the task signal may be one of a pulse width modulation (PWM) signal, a pulse frequency modulation (PFM) signal, and a signal periodically outputting the same waveform at the time of normal task execution.
본 발명에서, 상기 마이컴은 상기 태스크 신호의 토글 주기, 상기 태스크 신호의 라이징 엣지 간의 간격 및 상기 태스크 신호의 폴링 엣지간 간격 중 어느 하나 이상을 분석하는 것을 특징으로 한다.In the present invention, the microcomputer analyzes at least one of a toggle cycle of the task signal, an interval between rising edges of the task signal, and an interval between polling edges of the task signal.
본 발명에서, 상기 태스크 정보는 상기 태스크를 제어하는 레지스터 값인 것을 특징으로 한다.
In the present invention, the task information is a register value for controlling the task.
본 발명은 마이컴에서 태스크를 수행할 때마다 태스크 정보를 출력하고, 발생된 태스크 신호를 태스크 정보 분석부가 분석하여 마이컴에서의 태스크 수행 오류를 검출한다. The present invention outputs task information each time a task is executed in the microcomputer, and analyzes the task signal generated by the task information analyzing unit to detect a task execution error in the microcomputer.
본 발명은 마이컴에서 태스크 수행시, 태스크 수행 타이밍, 태스크 수행 주기 및 태스크 수행 시퀀스 등과 같은 전반적인 태스크 정보를 실시간으로 체크한다. In the present invention, when a task is executed in a microcomputer, overall task information such as a task execution timing, a task execution cycle, and a task execution sequence is checked in real time.
본 발명은 주기적 수행이 요구되는 전체 시스템의 오동작에 따른 위험성을 감소시켜 전체 시스템의 안전성을 보장한다. The present invention reduces the risk of erroneous operation of the entire system requiring periodic operation, thereby assuring safety of the entire system.
본 발명은 전체 시스템에 대한 개발 및 검증 과정에서, 태스크 수행시 그 오류 발생 빈도를 확인하기 위한 오류 분석 데이터를 취득할 수 있도록 한다.
The present invention can acquire error analysis data for confirming the occurrence frequency of errors in the task development and verification process for the entire system.
도 1 은 본 발명의 제1 실시예에 따른 태스크 수행 진단 장치의 블럭 구성도이다.
도 2 는 본 발명의 제1 실시예에 따른 태스크 수행 진단 장치의 동작 과정을 도시한 순서도이다.
도 3 은 본 발명의 제1 실시예에 따른 태스크 정보 출력부로부터 출력된 태스크 신호의 예시도이다.
도 4 는 본 발명의 제1 실시예에 따른 태스크 정보 분석부의 동작 과정을 도시한 순서도이다.
도 5 는 본 발명의 제1 실시예에 따른 태스크 정보 분석부로부터 출력되는 태스크 폴트 신호의 예시도이다.
도 6 은 본 발명의 제2 실시예에 따른 태스크 수행 진단 장치의 블럭 구성도이다.
도 7 은 본 발명의 제3 실시예에 따른 태스크 수행 진단 장치의 블럭 구성도이다. 1 is a block diagram of a task performance diagnosis apparatus according to a first embodiment of the present invention.
FIG. 2 is a flowchart illustrating an operation process of the task execution diagnostic apparatus according to the first embodiment of the present invention.
3 is an exemplary diagram of a task signal output from a task information output unit according to the first embodiment of the present invention.
4 is a flowchart illustrating an operation of the task information analyzer according to the first embodiment of the present invention.
5 is a diagram illustrating an example of a task fault signal output from the task information analysis unit according to the first embodiment of the present invention.
6 is a block diagram of a task performance diagnosis apparatus according to a second embodiment of the present invention.
7 is a block diagram of a task performance diagnosis apparatus according to a third embodiment of the present invention.
이하에서는 본 발명의 실시예에 따른 태스크 수행 진단 장치를 첨부된 도면을 참조하여 상세하게 설명한다. 이 과정에서 도면에 도시된 선들의 두께나 구성요소의 크기 등은 설명의 명료성과 편의상 과장되게 도시되어 있을 수 있다. 또한, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례에 따라 달라질 수 있다. 그러므로, 이러한 용어들에 대한 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.Hereinafter, a task execution diagnostic apparatus according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. In this process, the thicknesses of the lines and the sizes of the components shown in the drawings may be exaggerated for clarity and convenience of explanation. In addition, the terms described below are defined in consideration of the functions of the present invention, which may vary depending on the intention or custom of the user, the operator. Therefore, definitions of these terms should be made based on the contents throughout this specification.
도 1 은 본 발명의 제1 실시예에 따른 태스크 수행 진단 장치의 블럭 구성도이다.1 is a block diagram of a task performance diagnosis apparatus according to a first embodiment of the present invention.
도 1 을 참조하면, 본 발명의 제1 실시예에 따른 태스크 수행 진단 장치는 주기적 수행이 요구되는 시스템에 설치되며, 태스크 정보 출력부(10), 태스크 정보 분석부(20) 및 마이컴(30)을 포함한다. Referring to FIG. 1, the task execution diagnostic apparatus according to the first embodiment of the present invention is installed in a system requiring periodic execution, and includes a task
태스크 정보 출력부(10)는 마이컴(30)이 태스크를 수행할 때마다, 태스크 수행을 알리는 태스크 정보를 발생시켜 태스크 정보 분석부(20)로 전송한다. Each time the
이 경우, 태스크 정보 출력부(10)는 마이컴(30)이 태스크 수행을 개시하는 태스크 개시 시점 또는 태스크를 종료하는 태스크 완료 시점에 태스크 정보를 출력한다. In this case, the task
이러한 태스크 정보 출력부(10)는 도 1 에 도시된 바와 같이, 마이컴(30) 내부에 탑재될 수 있으나, 본 발명의 기술적 범위는 이에 한정되는 것은 아니며, 태스크 정보 출력부(10)가 마이컴(30) 외부에 별도로 구비되는 것도 포함한다.1, the task
한편, 태스크 정보 분석부(20)는 태스크 수행에 필요한 설정 정보가 기 저장되어 이 설정 정보를 토대로 태스크 정보 출력부(10)로부터 전송받은 태스크 정보를 분석하고, 분석 결과 태스크 정보 이상이 검출되면, 해당 태스크 정보 이상에 대응되는 태스크 폴트 신호를 발생시켜 상기한 마이컴(30)으로 전송한다. On the other hand, the task
참고로, 상기한 설정 정보는 태스크 정보 분석부(20)에 기 설정되는데, 사전에 마이컴(30)이 데이터 버스를 통해 태스크 정보 분석부(20)를 초기화하여 설정할 수 있다. 여기서, 설정 정보는 태스크 신호의 신호 방식에 따라 임계 범위, 태스크 폴트 신호 방식, 폴트 신호 파라메타 등으로 다양하게 설정될 수 있다. For reference, the setting information is previously set in the task
참고로, 데이터 버스로는 SPI(Serial Peripheral Interface), I2C 및 CAN(Controller Area Network) 등 다양한 통신방식이 채용될 수 있다. For reference, various communication methods such as SPI (Serial Peripheral Interface), I 2 C, and CAN (Controller Area Network) may be adopted as the data bus.
한편, 마이컴(30)은 태스크 정보 분석부(20)로부터 입력된 태스크 폴트 신호를 분석하여 태스크 수행 오류, 예를 들어 태스크 수행 주기, 태스크 수행 시간, 태스크 수행 타이밍 오류 및 태스크 수행 시퀀스 오류 등을 검출한다. Meanwhile, the
여기서, 마이컴(30)은 IC(Integrated Circuit)나 모든 컴퓨터 시스템 혹은 전자 시스템을 포함하는 것으로 이해되어야 할 것이다. Here, it should be understood that the
한편, 태스크 정보 출력부(10)로부터 출력되는 태스크 정보는 태스크 수행을 나타내는 정보로써, 태스크 정보로는 태스크와 동기화된 파형 형태의 태스크 신호가 채용될 수 있다. 이 태스크 신호로는 PWM(Pulse Width Modulation) 신호, PFM(Pulse Frequency Modulation) 신호, 태스크 정상 수행시 주기적으로 동일한 파형이 반복되는 신호 및 태스크의 개시와 종료를 구분지을 수 있는 신호 중 어느 하나가 채용될 수 있다. 즉, 태스크 신호는 상기한 PWM 신호, PFM 신호 이외에도 전압 레벨, 주기, 듀티를 나타내는 다양한 파형으로 출력될 수 있다. On the other hand, the task information output from the task
예를 들어, 태스크 정보 분석부(20)는 PWM(Pulse Width Modulation) 신호, PFM(Pulse Frequency Modulation) 신호 및 태스크 정상 수행시 주기적으로 동일한 파형이 반복되는 신호 중 어느 하나 이상을 통해 태스크 정보 이상을 검출하며, 태스크의 개시와 종료를 구분지을 수 있는 신호를 통해 태스크 수행 시간 오류를 검출할 수 있도록 한다. For example, the task
한편, 태스크 정보로는 태스크를 제어하는 레지스터값이 채용될 수 있다. 이 경우, 태스크 정보 출력부(10)는 마이컴(30) 내부에 탑재된 레지스터가 채용될 수 있으며, 태스크 정보 분석부(20)는 레지스터값을 분석하여 태스크 폴트 신호를 출력함으로써 그 태스크 수행 오류를 검출할 수 있도록 한다. 이에 대해서는 도 7 을 참조하여 후술한다. On the other hand, as the task information, a register value for controlling the task can be employed. In this case, the task
다음은 태스크 정보 출력부(10) 및 태스크 정보 분석부(20)의 동작 과정을 도 2 내지 도 5 를 참조하여 상세하게 설명한다. Next, the operation of the task
도 2 는 본 발명의 제1 실시예에 따른 태스크 수행 진단 장치의 동작 과정을 도시한 순서도이고, 도 3 은 본 발명의 제1 실시예에 따른 태스크 정보 출력부로부터 출력된 태스크 신호의 예시도이며, 도 4 는 본 발명의 제1 실시예에 따른 태스크 정보 분석부의 동작 과정을 도시한 순서도이며, 도 5 는 본 발명의 제1 실시예에 따른 태스크 정보 분석부로부터 출력되는 태스크 폴트 신호의 예시도이다. FIG. 2 is a flowchart illustrating an operation process of the task execution diagnostic apparatus according to the first embodiment of the present invention. FIG. 3 is an exemplary view of a task signal output from the task information output unit according to the first embodiment of the present invention FIG. 5 is a diagram illustrating an example of a task fault signal output from the task information analyzer according to the first embodiment of the present invention. FIG. 5 is a flowchart illustrating an operation of the task information analyzer according to the first embodiment of the present invention. to be.
도 2 를 참조하면, 태스크 정보 출력부(10)는 마이컴(30)이 태스크를 수행하는지를 판단(S110)하고, 판단 결과 태스크를 수행하면 태스크 신호를 태스크 정보 분석부(20)로 출력한다(S120). Referring to FIG. 2, the task
이후, 마이컴(30)은 태스크 정보 분석부(20)로부터 태스크 폴트 신호가 입력되는지를 판단(S130)하고, 판단 결과 태스크 폴트 신호가 입력되면, 태스크 폴트 신호를 분석하여 태스크 수행 오류를 등록한다(S140). Thereafter, the
이 경우, 마이컴(30)은 태스크 폴트 신호에 따라 태스크 수행 주기 오류, 태스크 수행 시간 오류 및 태스크 수행 타이밍 오류 등을 등록한다. In this case, the
도 3 에는 태스크 신호의 일 예가 도시된다. 도 3 의 (a)는 태스크 수행 시점마다 토글되는 태스크 신호로써, 태스크 신호의 토글 주기가 왜곡되어 이 토글 주기가 해당 태스크 신호에 기 설정된 임계 범위를 벗어나 있음을 알 수 있다. 3 shows an example of a task signal. 3 (a) is a task signal toggled at each task execution time, and it can be seen that the toggle cycle of the task signal is distorted, and the toggle cycle is out of the predetermined threshold range for the task signal.
도 3 의 (b)는 태스크 개시 시점에서는 하이 레벨이고 태스크 종료 시점에서는 로우 레벨인 태스크 신호로써, 라이징 엣지와 다음 라이징 엣지 간의 시간 간격이 해당 태스크 신호에 기 설정된 임계 범위를 벗어나 있음을 알 수 있다. FIG. 3 (b) shows a task signal having a high level at the start of the task and a low level at the end of the task, and the time interval between the rising edge and the next rising edge is out of the predetermined threshold range for the task signal .
도 3 의 (c)는 태스크 개시 시점에서는 로우 레벨이고 태스크 종료 시점에서 하이 레벨인 태스크 신호로써, 폴링 엣지와 다음 폴링 엣지 간의 간격이 해당 태스크 신호에 기 설정된 임계 범위를 벗어나 있음을 알 수 있다. FIG. 3 (c) shows a task signal having a low level at the start of the task and a high level at the end of the task. It can be seen that the interval between the polling edge and the next polling edge is out of the predetermined threshold range for the task signal.
한편, 태스크 정보 분석부(20)는 기 설정된 설정 정보를 토대로 태스크 정보 출력부(10)로부터 입력된 태스크 신호를 분석하여 태스크 폴트 신호를 발생시킨다.Meanwhile, the task
즉, 도 2 의 단계(S120)에 따라 태스크 신호가 출력되는바, 태스크 정보 분석부(20)는 도 4 에 도시된 바와 같이, 태스크 정보 출력부(10)로부터 태스크 신호가 입력되는지를 판단(S210)하고, 판단 결과 태스크 신호가 입력되면 해당 태스크 신호를 분석한다(S220).4, the task
분석 결과, 태스크 신호 이상이 검출(S230)되면, 태스크 정보 분석부(20)는 해당 태스크 신호 이상에 대응되는 태스크 폴트 신호를 상기한 마이컴(30)으로 출력(S240)한다. As a result of the analysis, if the task signal abnormality is detected (S230), the
이에 따라, 마이컴(30)은 도 2 의 단계(S130,S140)에 나타난 바와 같이, 태스크 폴트 신호 입력 여부에 따라 태스크 수행 오류를 등록한다. Accordingly, as shown in steps S130 and S140 of FIG. 2, the
도 5 에는 태스크 폴트 신호의 일 예가 도시된다. 5 shows an example of a task fault signal.
도 5 의 (a)는 전압을 로우 레벨에서 하이 레벨로 출력하여 태스크 신호 이상을 출력하고, (b)는 전압을 하이 레벨에서 로우 레벨로 출력하여 태스크 신호 이상을 출력함으로써, 태스크 수행 주기의 오류를 출력한다. 5 (a) shows a task signal abnormality by outputting a voltage from a low level to a high level, outputs a task signal abnormality, (b) outputs a task signal abnormality by outputting a voltage from a high level to a low level, .
또한 도 5 의 (c)는 PFM 파형의 주파수로 태스크 신호 이상을 출력하고, (d)는 PWM 듀티로 태스크 신호 이상을 출력하여 태스크 수행 주기의 오류를 출력한다. Fig. 5 (c) shows the task signal abnormality at the frequency of the PFM waveform, and Fig. 5 (d) outputs the task signal abnormality with the PWM duty and outputs the error of the task execution cycle.
한편, 상기한 실시예에서는 태스크 분석 결과가 태스크 폴트 신호를 통한 파형으로 전달되는 것을 예시로 설명하였으나, 본 발명을 기술적 범위는 이에 한정되지 않고, 태스크 분석 결과를 데이터 버스를 통해서도 전달하는 것도 포함한다. In the above-described embodiment, the task analysis result is transmitted to the waveform through the task fault signal. However, the present invention is not limited to this, and the task analysis result may be transmitted through the data bus .
이하에서는 본 발명의 제2 및 제3 실시예에 따른 태스크 수행 진단 장치를 도 6 및 도 7 을 참조하여 설명한다. Hereinafter, a task execution diagnostic apparatus according to the second and third embodiments of the present invention will be described with reference to FIGS. 6 and 7. FIG.
본 발명의 제2 및 제3 실시예에서 상기한 제1 실시예와 동일한 부분에 대해서는 동일한 도면 부호를 부여하고 그 상세한 설명을 생략한다. In the second and third embodiments of the present invention, the same reference numerals are assigned to the same parts as those in the first embodiment, and a detailed description thereof will be omitted.
도 6 은 본 발명의 제2 실시예에 따른 태스크 수행 진단 장치의 블럭 구성도이다.6 is a block diagram of a task performance diagnosis apparatus according to a second embodiment of the present invention.
도 6 을 참조하면, 본 발명의 제2 실시예에 따른 태스크 수행 진단 장치는 태스크 정보 출력부(10)와 태스크 정보 분석부(20)가 마이컴(30) 내부에 설치된다. Referring to FIG. 6, a task execution diagnostic apparatus according to the second embodiment of the present invention includes a task
이 경우, 태스크 정보 분석부(20)에서 태스크 폴트 신호를 출력하면, 인터럽트 서비스 루틴부(Interrupt service routine)(32)가 인터럽트를 발생시켜 태스크 수행 오류를 등록한다. In this case, when the task
도 7 은 본 발명의 제3 실시예에 따른 태스크 수행 진단 장치의 블럭 구성도이다. 7 is a block diagram of a task performance diagnosis apparatus according to a third embodiment of the present invention.
도 7 을 참조하면, 본 발명의 제3 실시예에 따른 태스크 수행 진단 장치는 태스크 정보 출력부(10)와 태스크 정보 분석부(20)가 마이컴(30) 내부에 설치되며, 특히 태스크 정보 출력부(10)로 레지스터가 채용된 것이다. 7, the task execution diagnostic apparatus according to the third embodiment of the present invention includes a task
이 경우, 태스크 정보는 레지스터값으로 설정되며, 레지스터에는 태스크를 제어하기 위한 레지스터값이 저장되므로, 태스크 정보 분석부(20)는 이 레지스터값을 입력받아 분석하여 그 분석 결과에 따라 태스크 폴트 신호를 출력한다. In this case, the task information is set as a register value, and a register value for controlling the task is stored in the register. Therefore, the task
이와 같이 본 발명은 마이컴(30)에서 태스크를 수행할 때마다 태스크 신호를 발생시키고, 발생된 태스크 신호를 태스크 정보 분석부(20)가 분석하여 마이컴(30)에서의 태스크 수행 오류 예를 들어, 태스크 수행 타이밍 오류, 태스크 수행 주기 오류 및 태스크 수행 시퀀스 오류 등과 같은 전반적인 태스크 수행 정보를 실시간으로 체크한다. As described above, according to the present invention, a task signal is generated every time a task is executed in the
게다가, 본 발명은 주기적 수행이 요구되는 시스템의 오동작에 따른 위험성을 감소시켜 시스템 안전성을 보장하고, 전체 시스템에 대한 개발 및 검증 과정에서, 태스크 수행시 그 오류 발생 빈도를 확인하기 위한 오류 분석 데이터를 취득할 수 있도록 한다. In addition, the present invention reduces the risk of malfunction of the system in which periodic execution is required, thereby assuring system safety. In the development and verification of the entire system, error analysis data To be acquired.
본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나 이는 예시적인 것에 불과하며 당해 기술이 속하는 기술분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 아래의 특허청구범위에 의하여 정해져야할 것이다.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. will be. Accordingly, the true scope of the present invention should be determined by the following claims.
10: 태스크 정보 출력부 20: 태스크 정보 분석부
30: 마이컴 32: 인터럽트 서비스 루틴부 10: Task information output unit 20: Task information analysis unit
30: Microcomputer 32: Interrupt service routine
Claims (7)
상기 태스크 정보 출력부로부터 상기 태스크 정보를 입력받으면, 기 저장된 설정 정보를 토대로 상기 태스크 정보를 분석하여 태스크 폴트 신호를 출력하는 태스크 정보 분석부; 및
상기 태스크 정보 분석부로부터 입력된 상기 태스크 폴트 신호를 분석하여 태스크 수행 오류를 검출하는 마이컴을 포함하고,
상기 태스크 수행 오류는 상기 태스크 수행 주기 오류, 태스크 수행 시간 오류, 태스크 수행 타이밍 오류 및 태스크 수행 시퀀스 오류를 포함하며,
상기 태스크 정보는 상기 태스크와 동기화된 파형 형태의 태스크 신호이며,
상기 태스크 신호는 PWM(Pulse Width Modulation) 신호, PFM(Pulse Frequency Modulation) 신호 및 태스크 정상 수행시 주기적으로 동일한 파형을 출력하는 신호 중 어느 하나인 것을 특징으로 하는 태스크 수행 진단 장치.
A task information output unit for generating task information indicating task execution;
A task information analyzer for analyzing the task information based on previously stored setting information and outputting a task fault signal when receiving the task information from the task information output unit; And
And a microcomputer for analyzing the task fault signal inputted from the task information analyzing unit to detect a task execution error,
The task execution error includes the task execution cycle error, the task execution time error, the task execution timing error, and the task execution sequence error,
Wherein the task information is a task signal in the form of a waveform synchronized with the task,
Wherein the task signal is any one of a PWM (Pulse Width Modulation) signal, a PFM (Pulse Frequency Modulation) signal, and a signal that periodically outputs the same waveform at the time of normal task execution.
The apparatus of claim 1, wherein the setting information includes at least one of a threshold range, a task fault signal system, and a fault signal parameter according to a signal system of a task signal.
The apparatus of claim 1, wherein the microcomputer analyzes at least one of a toggle period of the task signal, an interval between rising edges of the task signal, and an interval between polling edges of the task signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130121158A KR101519351B1 (en) | 2013-10-11 | 2013-10-11 | Task execution diagnosis apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130121158A KR101519351B1 (en) | 2013-10-11 | 2013-10-11 | Task execution diagnosis apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20150042471A KR20150042471A (en) | 2015-04-21 |
KR101519351B1 true KR101519351B1 (en) | 2015-05-12 |
Family
ID=53035517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020130121158A KR101519351B1 (en) | 2013-10-11 | 2013-10-11 | Task execution diagnosis apparatus |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101519351B1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001318807A (en) * | 2000-05-11 | 2001-11-16 | Nec Microsystems Ltd | Method and device for controlling task switching |
JP5321686B2 (en) * | 2011-01-31 | 2013-10-23 | トヨタ自動車株式会社 | SAFETY CONTROL DEVICE AND SAFETY CONTROL METHOD |
-
2013
- 2013-10-11 KR KR1020130121158A patent/KR101519351B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001318807A (en) * | 2000-05-11 | 2001-11-16 | Nec Microsystems Ltd | Method and device for controlling task switching |
JP5321686B2 (en) * | 2011-01-31 | 2013-10-23 | トヨタ自動車株式会社 | SAFETY CONTROL DEVICE AND SAFETY CONTROL METHOD |
Also Published As
Publication number | Publication date |
---|---|
KR20150042471A (en) | 2015-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10649487B2 (en) | Fail-safe clock monitor with fault injection | |
US9323595B2 (en) | Microcontroller, control device and determination method | |
US8745447B2 (en) | System and method for analyzing an electronics device including a logic analyzer | |
US8799703B2 (en) | Methods and systems for measuring I/O signals | |
US7539903B2 (en) | Method for monitoring the execution of a program by comparing a request with a response and introducing a falsification in a response | |
US8825446B2 (en) | Independently based diagnostic monitoring | |
CN111381150B (en) | Chip automatic verification system and method thereof | |
US8311169B2 (en) | Automatic frequency monitoring circuit, electronic device, automatic frequency monitoring method, and automatic frequency monitoring program | |
CN112286750A (en) | GPIO (general purpose input/output) verification method and device, electronic equipment and medium | |
US8762792B2 (en) | Event monitor having switch matrix, separate counter, and compare circuitry | |
EP3642715B1 (en) | Method for detecting a disruption in a vehicle's communication system by checking for abnormalities in communication | |
US9489287B2 (en) | Breaking code execution based on time consumption | |
CN113225232B (en) | Hardware testing method and device, computer equipment and storage medium | |
JP2015005189A (en) | Ecu evaluation device, computer program, and ecu evaluation method | |
US10838795B2 (en) | Monitoring circuit with a signature watchdog | |
KR101519351B1 (en) | Task execution diagnosis apparatus | |
JP2007026028A (en) | Device for detecting abnormality in microcomputer | |
JP2003271694A (en) | Simulation method and device for verifying logic circuit including processor and error detecting program for verifying logic circuit | |
KR102158773B1 (en) | Pulse Width Modulator and method for PWM signal monitoring using the same | |
CN117439583B (en) | Signal comparison system, chip and vehicle | |
US20030093725A1 (en) | Method and circuit for monitoring microcomputer for onboard electronic control device | |
JPH07121576A (en) | Failure simulation device | |
CN116394959A (en) | Automobile body control domain and control method | |
US20060112316A1 (en) | Method of monitoring status of processor | |
JP2005227958A (en) | Simulation analysis system, accelerator device and emulator device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20180426 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20190425 Year of fee payment: 5 |