KR20190036104A - Microcomputer monitoring apparatus and control method thereof - Google Patents
Microcomputer monitoring apparatus and control method thereof Download PDFInfo
- Publication number
- KR20190036104A KR20190036104A KR1020170124938A KR20170124938A KR20190036104A KR 20190036104 A KR20190036104 A KR 20190036104A KR 1020170124938 A KR1020170124938 A KR 1020170124938A KR 20170124938 A KR20170124938 A KR 20170124938A KR 20190036104 A KR20190036104 A KR 20190036104A
- Authority
- KR
- South Korea
- Prior art keywords
- answer
- normal
- microcomputer
- count value
- monitoring device
- 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/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
본 발명은 마이컴 감시 장치 및 그 제어 방법에 관한 것으로, 보다 상세하게는 엄격한 동작 관리가 필요한 시스템에서의 마이컴의 정상 동작을 확인하여, 정해진 수준의 오류가 계속 검출되면 외부에서 강제로 리셋 시키기 위한 마이컴 감시 장치 및 그 제어 방법에 관한 것이다.The present invention relates to a microcomputer monitoring apparatus and a control method thereof. More particularly, the present invention relates to a microcomputer monitoring apparatus and a microcomputer monitoring apparatus for checking a normal operation of a microcomputer in a system requiring strict operation management, And a control method thereof.
일반적으로 와치독은 마이컴(Microcomputer)이나 컴퓨터 시스템이 기계적인 고장으로 휴지 상태가 되거나, 또는 상기 엠씨유나 프로그램이 비정상적으로 무한 루프에 빠지거나 홀트(halt) 상태가 되었을 때, 마이컴(Microcomputer)이나 컴퓨터 시스템이 스스로 리셋을 수행하여 시스템을 초기화할 때 사용한다. Generally, a watchdog is a microcomputer or a computer when a microcomputer or a computer system becomes idle due to a mechanical malfunction, or when the MC or program abnormally falls into an infinite loop or halt, Used by the system to reset itself and initialize the system.
상기 와치독은 마이컴 내부에 레지스터로 구성되어 있는 것을 사용하거나, 마이컴 외부에 하드웨어적으로 보다 안전하고 강력하게 구성된 와치독 전용 칩(Chip)을 사용하기도 한다. The watchdog may be a resistor built in the microcomputer, or a chip that is more secure and stronger than the microcomputer.
상기 와치독 전용 칩은 간단한 프로그램이 가능하게 구성될 수 있으며, 적어도 세 가지 고장 상태(예 : Underflow 고장, Overflow 고장, 틀린 답변 고장)를 검출할 수 있어야 한다.The watchdog-only chip can be configured to be simple programmable and capable of detecting at least three fault conditions (eg, underflow breakdown, overflow breakdown, wrong answer breakdown).
여기서 상기 (1) Underflow 고장은 정해진 시간보다 빨리 질문에 대한 답변(응답)이 수신되는 고장, (2) Overflow 고장은 정해진 시간 안에 질문에 대한 답변(응답)이 수신되지 않는 고장, (3) 틀린 답변 고장은 정해진 시간 내에 질문에 대한 답변이 수신되더라도 예상 답변과 다른 답변이 수신되는 고장을 의미한다.(1) Underflow failure is a failure in which a response to a question is received earlier than a fixed time; (2) Overflow failure is a failure in which a response to a question is not received within a predetermined time; (3) Answer Failure means failure to receive the expected answer and other answers even if the answer to the question is received within the specified time.
그런데 기존에는 상기 세 가지의 고장 상태를 판단하기 위하여, 와치독 전용 칩 내부적으로 (1) Underflow 고장, (2) Overflow 고장, (3) 틀린 답변 고장을 구분하고, 상기 고장 상태를 카운트하는 구조를 가지고 있어서, 칩의 내부 구조가 복잡해지고, 또한 이를 구현하기 위한 회로 면적이 넓어지는 문제점이 있었다.Conventionally, in order to determine the above three fault conditions, a structure for counting the fault state is classified into (1) an underflow fault, (2) an overflow fault, and (3) The internal structure of the chip is complicated, and the circuit area for realizing this is widened.
본 발명의 일 측면에 따르면, 본 발명은 상기와 같은 문제점을 해결하기 위해 창작된 것으로서, 엄격한 동작 관리가 필요한 시스템에서의 마이컴의 정상 동작을 확인하여, 정해진 수준의 오류가 계속 검출되면 외부에서 강제로 리셋 시키기 위한 마이컴 감시 장치 및 그 제어 방법을 제공하는데 그 목적이 있다. According to an aspect of the present invention, there is provided a method of controlling a microcomputer, which is created to solve the above-described problems, and which confirms a normal operation of a microcomputer in a system requiring strict operation management. When a predetermined level of error is continuously detected, And to provide a microcomputer monitoring apparatus and a control method thereof.
본 발명의 일 측면에 따른 마이컴 감시 장치는, 감시 대상인 마이컴에 질문을 전송하는 감시 장치; 및 상기 질문에 대한 답변을 산출하여 상기 감시 장치에 전송하는 마이컴;을 포함하되, 상기 감시 장치는 상기 질문을 전송한 후 기 설정된 정상답변 구간(OPEN WINDOW)으로 설정된 시간동안 답변이 전송되기를 대기하고, 상기 정상답변 구간에 답변을 전송받을 경우, 상기 감시 장치는 상기 전송받은 답변이 정상 답변이면 상기 감시 장치의 정상 카운터의 카운트 값을 기 설정된 최대값 이내에서 증가시키며, 상기 전송받은 답변이 비정상 답변이면 상기 정상 카운터의 카운트 값을 차감하고, 상기 정상 카운터의 최종 카운트 값이 0이 되면 고장을 확정하여, 상기 감시 장치가 상기 마이컴에 리셋 신호를 출력하여 상기 마이컴을 리셋시키도록 구현된 것을 특징으로 한다.A microcomputer monitoring apparatus according to one aspect of the present invention includes: a monitoring apparatus for sending a question to a microcomputer to be monitored; And a microcomputer for calculating a response to the question and transmitting the answer to the monitoring apparatus. The monitoring apparatus waits for a response to be transmitted during a predetermined time period set in a predetermined normal answer interval (OPEN WINDOW) after transmitting the question The monitoring device increases the count value of the normal counter of the monitoring device within a predetermined maximum value if the received answer is a normal answer, and if the received answer is an abnormal answer The count value of the normal counter is subtracted from the count value of the normal counter, and when the final count value of the normal counter becomes 0, the monitoring device determines the failure and outputs the reset signal to the microcomputer so as to reset the microcomputer. do.
본 발명에 있어서, 상기 감시 장치는, 상기 마이컴에 질문을 전송하고, 상기 마이컴으로부터 답변을 전송받기 위한 통신부; 상기 마이컴에 질문을 전송함과 동시에 이 질문에 대한 답변을 연산하여 산출하며, 상기 정상답변 구간으로 설정된 시간 동안에 상기 마이컴으로부터 전송받은 답변에 대해서 정상 답변인지 비정상 답변인지 판단하는 연산 및 타이머부; 및 상기 답변이 정상 답변이면 카운트 값을 증가시키고, 상기 답변이 비정상 답변이면 상기 카운트 값을 차감시키는 정상 카운터;를 포함하는 것을 특징으로 한다.In the present invention, the monitoring apparatus may include: a communication unit for sending a question to the microcomputer and receiving an answer from the microcomputer; Calculating and calculating an answer to the question and transmitting the question to the microcomputer and calculating whether the answer received from the microcomputer is a normal answer or an abnormal answer during the time set as the normal answer section; And a normal counter for incrementing the count value if the answer is a normal answer and subtracting the count value if the answer is an abnormal answer.
본 발명에 있어서, 상기 감시 장치는, 상기 답변이 기 설정된 미답변 구간(CLOSE WINDOW)으로 설정된 시간동안 전송될 경우 이 답변을 무시하고, 상기 정상답변 구간이 종료되기 전까지 답변이 전송되지 않을 경우에는 비정상 답변으로 판단하여 정상 카운터의 카운트 값을 차감하는 것을 특징으로 한다.In the present invention, the monitoring device may ignore the answer when the answer is transmitted during a time set in a predetermined non-answer interval (CLOSE WINDOW), and if the answer is not transmitted until the normal answer interval is terminated It is determined that the answer is abnormal and the count value of the normal counter is subtracted.
본 발명에 있어서, 상기 감시 장치는, 상기 질문에 대한 답변이 계속해서 정상 상태인 경우라고 하더라도, 상기 정상 카운터의 카운트 값은 초기 설정된 최대값을 초과하여 증가시키지 않으며, 상기 카운트 값이 차감된 상태에서 상기 질문에 대한 답변이 정상 상태인 경우에만 상기 정상 카운터의 카운트 값을 최대값 이내에서 증가시키는 것을 특징으로 한다.In the present invention, even when the answer to the above-mentioned question is continuously in the normal state, the monitoring device does not increase the count value of the normal counter beyond the initially set maximum value, The count value of the normal counter is increased within the maximum value only when the answer to the question is in the normal state.
본 발명의 다른 측면에 따른 마이컴 감시 장치의 제어 방법은, 감시 장치가 마이컴에 질문을 전송한 후 상기 마이컴에서 답변이 전송되기를 정상답변 구간(OPEN WINDOW)으로 설정된 시간까지 대기하는 단계; 상기 정상답변 구간이 시작된 후, 상기 감시 장치가 상기 정상답변 구간이 종료되는지 체크하는 단계; 상기 감시 장치가 상기 정상답변 구간 동안 상기 마이컴의 답변이 전송되기를 기다리고, 상기 정상답변 구간이 종료되기 전에 상기 마이컴의 답변이 수신될 경우, 상기 감시 장치가 상기 답변이 정상 답변인지 체크하는 단계; 상기 정상답변 구간 동안 수신된 답변이 정상 답변이 아닌 경우, 상기 감시 장치가 정상 카운터의 카운트 값을 차감시키는 단계; 및 상기 정상 카운터의 카운트 값이 0이 되면 상기 감시 장치가 상기 마이컴이 고장인 것으로 확정하여 상기 마이컴에 리셋 신호를 출력하는 단계;를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a method for controlling a microcomputer monitoring apparatus, comprising: waiting for an answer to be transmitted from a microcomputer after a monitoring apparatus sends a question to a microcomputer, until a time set in a normal answer interval (OPEN WINDOW); Checking whether the monitoring device completes the normal answer interval after the normal answer interval starts; Waiting for the response of the microcomputer to be transmitted during the normal answer interval and checking if the answer is a normal answer when the answer of the microcomputer is received before the normal answer interval is completed; If the answer received during the normal answer interval is not a normal answer, subtracting the count value of the normal counter from the monitoring device; And outputting a reset signal to the microcomputer when the count value of the normal counter becomes 0, and the monitoring device confirms that the microcomputer is out of order.
본 발명에 있어서, 상기 정상답변 구간은, 상기 마이컴이 답변을 해야 되는 구간으로서, 상기 정상답변 구간에서 수신된 답변에 대해서만 상기 감시 장치가 정상 답변인지 아닌지를 판단하는 것을 특징으로 한다.In the present invention, the normal answer interval is an interval in which the microcomputer should answer, and it is determined whether the monitoring device is a normal answer only for the answer received in the normal answer interval.
본 발명에 있어서, 상기 마이컴으로부터의 답변이 기 설정된 미답변 구간(CLOSE WINDOW)으로 설정된 시간동안 전송될 경우 이 답변을 무시하고, 상기 정상답변 구간이 종료될 때 까지 상기 마이컴으로부터 답변이 수신되지 않을 경우, 상기 감시 장치가 정상 카운터의 카운트 값을 차감시키는 단계;를 더 포함하는 것을 특징으로 한다.In the present invention, when the answer from the microcomputer is transmitted during a time set in a predetermined non-answer interval (CLOSE WINDOW), the response is ignored, and an answer is not received from the microcomputer until the normal answer interval ends And the monitoring device subtracts the count value of the normal counter.
본 발명에 있어서, 상기 정상답변 구간 동안 수신된 답변이 정상 답변인 경우, 상기 감시 장치가 정상 카운터의 카운트 값을 증가시키는 단계;를 더 포함하는 것을 특징으로 한다.In the present invention, when the answer received during the normal answer interval is a normal answer, the monitoring device may increase the count value of the normal counter.
본 발명의 일 측면에 따르면, 본 발명은 엄격한 동작 관리가 필요한 시스템에서의 마이컴의 정상 동작을 확인하여, 정해진 수준의 오류가 계속 검출되면 외부에서 강제로 리셋 시키기 위한 것으로서, 기존 와치독 장치 대비 보다 단순한 구조이면서 동등한 성능을 가지는 효과가 있다.According to an aspect of the present invention, there is provided a system for checking normal operation of a microcomputer in a system requiring strict operation management, and for forcibly resetting a predetermined level of error from the outside when the system is continuously detected. It has a simple structure and an equivalent performance.
도 1은 본 발명의 일 실시예에 따른 마이컴 감시 장치의 개략적인 구성을 보인 예시도.
도 2는 상기 도 1에 있어서, 감시 장치의 질문에 대하여 마이컴이 답변해야 되는 답변 시간을 보인 예시도.
도 3은 상기 도 1에 있어서, 틀린 답변이 증가하여 정상 카운트 값이 지정된 수준을 만족하는지 판단하는 과정을 설명하기 위하여 보인 예시도.
도 4는 본 발명의 일 실시예에 따른 마이컴 감시 장치의 제어 방법을 설명하기 위한 흐름도.Brief Description of the Drawings Fig. 1 is a diagram illustrating a schematic configuration of a microcomputer monitoring apparatus according to an embodiment of the present invention; Fig.
Fig. 2 is an exemplary diagram showing the response time to be answered by the microcomputer with respect to the question of the monitoring apparatus in Fig. 1; Fig.
FIG. 3 is an exemplary diagram for explaining a process of determining whether a normal count value satisfies a specified level by increasing an incorrect answer in FIG. 1; FIG.
4 is a flowchart illustrating a method of controlling a microcomputer monitoring apparatus according to an embodiment of the present invention.
이하, 첨부된 도면을 참조하여 본 발명에 따른 마이컴 감시 장치 및 그 제어 방법의 일 실시예를 설명한다. Hereinafter, an embodiment of a microcomputer monitoring apparatus and a control method thereof according to the present invention will be described 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 is a diagram illustrating a schematic configuration of a microcomputer monitoring apparatus according to an embodiment of the present invention.
도 1에 도시된 바와 같이, 본 발명의 일 실시예에 따른 마이컴 감시 장치(200)는, 감시대상 장치인 마이컴(100)의 동작을 감시하기 위한 장치로서, 통신부(210), 연산 및 타이머부(220), 및 정상 카운터(230)를 포함한다.1, a
상기 감시 장치(200)는 상기 마이컴(100)의 동작을 감시하기 위하여 상기 마이컴(100)에 질문을 송신하고 이에 대한 답변을 수신하여 이 답변이 예상된 답변(즉, 정상 답변)인지 체크한다.The
상기 감시 장치(200)는 상기 마이컴(100)의 외부에 별도의 장치(예 : ASIC 칩 형태)로서 구현될 수 있다.The
상기 감시 장치(200)는 상기 마이컴(100)이 지정된 수준의 정상 상태가 아닌 경우에 상기 마이컴(100)에 리셋 신호를 출력하여 상기 마이컴(100)을 리셋 시킬 수 있다. 여기서 상기 지정된 수준의 정상 상태란, 상기 마이컴(100)에 대한 질문과 답변에 의해 판단한 상기 마이컴(100)의 동작 상태가 미리 지정된 횟수 이상 정상 상태를 유지하는지에 대한 수준을 의미한다.The
상기 통신부(110, 210)는, 기 설정된 통신 인터페이스 방식에 따라, 상기 감시 장치(200)의 질문을 상기 마이컴(100)에 전송하고, 상기 마이컴(100)의 답변(응답)을 상기 감시 장치(200)에 전송한다.The
예컨대 상기 통신 인터페이스 방식은 I2C(Inter Integrated Circuit) 통신 방식, UART(Universal Asynchoronous Receiver / Transmitter) 통신 방식, 직렬 통신 방식, 병렬 통신 방식, SPI(Serial to Peripheral Interface) 통신 방식 중 적어도 어느 한 가지 통신 방식을 포함할 수 있다. 그러나 상술한 통신 방식에 한정되지 않고 다른 새로운 통신 방식을 이용하는 것도 가능하다.For example, the communication interface method may include at least any one of an I2C (Inter Integrated Circuit) communication method, a UART (Universal Asynchronous Receiver / Transmitter) communication method, a serial communication method, a parallel communication method, and an SPI (Serial to Peripheral Interface) . ≪ / RTI > However, it is also possible to use a new communication method other than the communication method described above.
상기 정상 카운터(230)는 상기 마이컴(100)의 정상 상태를 카운트한다. The
예컨대 상기 카운트한 정상 상태가 미리 설정한 값(예 : 3회) 미만인 경우, 상기 감시 장치(200)는 상기 마이컴(100)을 리셋 시킬 수 있다. For example, when the counted normal state is less than a predetermined value (for example, three times), the
물론 상기 감시 장치(200)는 상기 마이컴(100)에서 한 번이라도 정상 상태를 벗어나면 곧바로 리셋 시킬 수도 있다. 가령 상기 정상 카운터(230)의 설정 값을 1로 설정하고 오류가 검출될 경우 상기 정상 카운터(230)가 1에서 0으로 바뀜에 따라 즉시 리셋이 가능하다.Of course, the
상기 감시 장치(200)는 상기 마이컴(100)에 출력할 질문(또는 문제)을 미리 생성하여 저장하기 위한 메모리(미도시)를 더 포함할 수 있다. 또한 상기 메모리(미도시)에는 상기 질문에 대응하여 상기 마이컴(100)으로부터 수신된 답변(또는 응답)이 정상인지 비교 및 판독하기 위한 기준이 되는 답변을 저장할 수 있다. The
다만 본 실시예에서는 질문과 답변을 상기 메모리(미도시)에 미리 저장하지 않고, 질문과 동시에 자체적으로 연산하여 정상 답변(또는 예상 답변)을 산출할 수도 있다. 예컨대 상기 질문은 간단한 산술 연산을 요구하는 질문일 수 있다. 즉, 1 + 3을 연산하여 답변하라는 내용으로 질문을 할 수 있다.However, in the present embodiment, the question and answer may be calculated by itself in addition to the question, without storing the question and the answer in advance in the memory (not shown) to calculate a normal answer (or a predicted answer). For example, the question may be a question requiring a simple arithmetic operation. That is, 1 + 3 can be calculated and asked to answer.
이에 따라 상기 마이컴(100)은 상기 감시 장치(200)로부터의 질문에 해당하는 답변을 미리 내장된 산술식(또는 프로그램)에 의해 연산하여 상기 감시 장치(200)에 출력한다. Accordingly, the
예컨대 1 + 3을 연산하여 답변하라는 질문인 경우 4를 답변하는 것이다.For example, if you are asked to answer 1 + 3, answer 4.
상기 정상 카운터(230)는 상기 질문에 대한 답변이 정상 상태인 경우 상기 정상 카운터(230)의 이전 카운트 값을 증가시키고, 반대로 상기 질문에 대한 답변이 고장 상태인 경우 상기 정상 카운터(230)를 차감한다. 이후 다시 질문에 대한 답변이 정상 상태인 경우 상기 정상 카운터(230)의 이전 카운트 값(즉, 차감된 카운트 값)을 증가시킨다.The
다만 상기 질문에 대한 답변이 계속 정상 상태인 경우라고 하더라도, 상기 정상 카운터(230)의 카운트 값은 초기 설정된 값을 초과하여 증가되지는 않는다. 가령, 상기 정상 카운터(230)의 카운트 값으로 3이 설정되었다고 가정할 때, 상기 질문에 대한 답변이 계속 정상 상태인 경우라고 하더라도 초기 설정된 값이 최대값이 되어 더 이상 증가되지 않는다. 그러나 상기 질문에 대한 답변이 오답인 경우에 상기 카운트 값이 차감된 상태(예 : 카운트 값이 2인 상태)에서 상기 질문에 대한 답변이 정상 상태인 경우에는 상기 정상 카운터(230)의 카운트 값으로 3으로 증가된다.However, even if the answer to the above-mentioned question is still in the normal state, the count value of the
상기 연산 및 타이머부(220)는 사실상 상기 감시 장치(200)의 제어부로서 동작하는 것으로, 상기 마이컴(100)에 질문을 전송하고, 이 질문에 대한 답변을 연산(또는 메모리에서 인출)하며, 상기 마이컴(100)에서 전송받은 답변이 정상(즉, 예상된 답변)인지 아닌지를 판단한다.The operation and
한편 상기 감시 장치(200)의 질문에 대하여 상기 마이컴(100)에서 답변을 전송할 경우, 미리 설정된 시간대(즉, 미리 설정된 답변 시간)에 전송하도록 설정된다(도 2 참조).On the other hand, when the
도 2는 상기 도 1에 있어서, 감시 장치의 질문에 대하여 마이컴이 답변해야 되는 답변 시간을 보인 예시도로서, 상기 답변 시간은 두 가지의 답변 구간을 포함한다. 즉, 상기 두 가지의 답변 구간은 미답변 구간(CLOSE WINDOW) 및 정상답변 구간(OPEN WINDOW)을 포함한다.FIG. 2 is a diagram illustrating an example of an answer time to be answered by a microcomputer with respect to a question of a monitoring apparatus in FIG. 1, and the answer time includes two answer sections. That is, the two answer sections include an unanswered section (CLOSE WINDOW) and a normal answer section (OPEN WINDOW).
상기 미답변 구간(CLOSE WINDOW)은 이 구간에서 상기 마이컴(100)이 답변(예 : 정상 답변, 틀린 답변)을 하더라도 상기 감시 장치(200)가 이 답변을 무시하는 구간(즉, 답변 자체를 수신하지 않거나, 답변을 수신하더라도 답변이 정상인지 아닌지를 판단하지 않는 구간)이다. The CLOSE WINDOW is a period during which the
상기 정상답변 구간(OPEN WINDOW)은 이 구간에서 상기 마이컴(100)이 답변을 해야 되는 구간으로서, 상기 감시 장치(200)가 이 정상답변 구간(OPEN WINDOW)에서 수신된 답변이 정상인지 아닌지를 판단한다.The normal answer interval (OPEN WINDOW) is a period during which the
즉, 상기 마이컴(100)은 상기 정상답변 구간(OPEN WINDOW)에서 상기 질문에 대한 정상 답변을 상기 감시 장치(200)에 전송해야만 정상 상태로 판단되며, 만약 상기 답변이 미답변 구간(CLOSE WINDOW)에서 전송되거나, 또는 정상답변 구간(OPEN WINDOW)에서 전송되더라도 틀린 답변(오답)을 전송할 경우에는 고장 상태로 판단된다. That is, the
이에 따라, 가령 도 2의 첫 번째 정상답변 구간(OPEN WINDOW)에 전송된 답변이 정상답변(정답)인 경우, 상기 연산 및 타이머부(220)는 즉시(즉, 정상답변 구간(OPEN WINDOW)으로 설정된 시간이 모두 경과되지 않더라도) 타이머를 리셋시키고 정상 카운터(230)를 증가시킨다. Accordingly, for example, when the answer transmitted to the first normal answer interval (OPEN WINDOW) of FIG. 2 is a normal answer (correct answer), the operation and
그런데 도 2의 미답변 구간(CLOSE WINDOW)에 답변이 전송될 경우, 상기 연산 및 타이머부(220)는 이 미답변 구간에서 전송된 답변을 무시하고, 정상답변 구간(OPEN WINDOW)으로 설정된 시간이 모두 경과되면 타이머를 리셋시키고, 정상답변 구간(OPEN WINDOW)에서 추가적인 답변이 전송되지 않으므로 오답(또는 고장)으로 판단하여 정상 카운터(230)를 차감시킨다.However, when an answer is sent to the CLOSE WINDOW of FIG. 2, the operation and
본 실시예에서는 상기 두 가지 답변 구간(예 : 미답변 구간(CLOSE WINDOW) 및 정상답변 구간(OPEN WINDOW))의 설정을 통해, (1)Underflow 고장, 및 (2)Overflow 고장을 간단하게 판단할 수 있으며, 상기 정상답변 구간(OPEN WINDOW)에서의 답변에 의해 (3)틀린 답변 고장을 간단하게 판단할 수 있도록 한다.(1) Underflow failure and (2) Overflow failure can be easily judged through the setting of the two answer sections (e.g., the CLOSE WINDOW and the OPEN WINDOW) And (3) it is possible to easily judge an incorrect answer failure by an answer in the normal answer interval (OPEN WINDOW).
한편 본 실시예에 따른 감시 장치(200)는 상기 마이컴(100)에 오류가 있는 것으로 판단될 경우, 상기 마이컴(100)을 곧바로 리셋 시킬 수 있으며, 상기 정상 카운터(230)의 카운트 값이 지정된 수준(즉, 상기 마이컴(100)에 대한 질문과 답변에 의해 판단한 상기 마이컴(100)의 동작 상태가 미리 지정된 횟수 이상 정상 상태를 유지하는지에 대한 수준)의 정상 상태가 아닌 경우에 상기 마이컴(100)에 리셋 신호를 출력하여 상기 마이컴(100)을 리셋 시킬 수 있다. Meanwhile, when it is determined that the
도 3은 상기 도 1에 있어서, 틀린 답변이 증가하여 정상 카운트 값이 지정된 수준을 만족하는지 판단하는 과정을 설명하기 위하여 보인 예시도이다.FIG. 3 is an exemplary diagram for explaining a process of determining whether the normal count value satisfies a specified level in FIG. 1 by increasing an incorrect answer.
도 3에 도시된 바와 같이, 상기 정상 카운터(230)에 특정 카운트 값(예 : 4비트 데이터를 1로 설정함, 즉, 1111b)로 설정되어 있다고 가정할 때, 첫 번째 질문에 대한 답변(문답1)이 정상인 경우에 상기 정상 카운터(230)의 카운트 값은 초기 설정된 카운트 값(예 : 1111b)을 유지하고, 상기 첫 번째 질문에 대한 답변(문답1)이 비정상(오답 또는 고장)인 경우에 상기 정상 카운터(230)의 카운트 값은 1이 차감된 카운트 값(예 : 1110b)으로 변경된다.Assuming that the
이후 두 번째 질문에 대한 답변(문답2)이 계속해서 정상인 경우에 상기 정상 카운터(230)의 카운트 값은 초기 설정된 카운트 값(예 : 1111b)을 유지하지만, 상기 두 번째 질문에 대한 답변(문답2)이 계속해서 비정상(오답 또는 고장)인 경우에 상기 정상 카운터(230)의 카운트 값은 이전 카운트 값(예 : 1110b)에서 1이 차감된 카운트 값(예 : 1101b)으로 변경되고, 이전의 답변은 비정상이었지만 두 번째 답변은 정상인 경우에는 1이 증가된 카운트 값(예 : 1101b)으로 변경된다.If the answer to the second question (Question 2) continues to be normal, the count value of the
상기와 같이 마이컴(100)과 감시 장치(200)는 질문과 답변을 반복 수행하여, 상기 답변이 정상인 경우에는 상기 정상 카운터(230)의 이전 카운트 값에서 1이 증가되지만, 상기 답변이 비정상(오답 또는 고장)인 경우에는 상기 정상 카운터(230)의 이전 카운트 값에서 1이 차감된다. 이에 따라 최종 카운트 값이 0(예 : 0000b)이 되면 고장을 확정한다. 이와 같이 고장이 확정되면 상기 감시 장치(200)는 상기 마이컴(100)에 리셋 신호를 출력하여 상기 마이컴(100)을 리셋 시킨다.As described above, the
도 4는 본 발명의 일 실시예에 따른 마이컴 감시 장치의 제어 방법을 설명하기 위한 흐름도이다.4 is a flowchart illustrating a method of controlling a microcomputer monitoring apparatus according to an embodiment of the present invention.
도 4에 도시된 바와 같이, 감시 장치(200)는 마이컴(100)에 질문을 송부한 후, 상기 마이컴(100)에서 답변이 전송되기를 정상답변 구간(OPEN WINDOW)으로 설정된 시간까지 대기한다(S101).4, the
상기 정상답변 구간(OPEN WINDOW)은 상기 마이컴(100)이 답변을 해야 되는 구간으로서, 상기 감시 장치(200)는 상기 정상답변 구간(OPEN WINDOW)에서 수신된 답변에 대해서만 정상 답변인지 아닌지를 판단한다.The normal answer interval (OPEN WINDOW) is a period during which the
상기 정상답변 구간(OPEN WINDOW)이 시작된 후, 상기 감시 장치(200)는 타이머 최대시간에 도달하는지 체크한다. 즉, 상기 감시 장치(200)는 상기 정상답변 구간(OPEN WINDOW)이 종료되는지 체크한다(S104).After the normal answer interval (OPEN WINDOW) is started, the
상기 감시 장치(200)는 상기 정상답변 구간(OPEN WINDOW) 동안 상기 마이컴(100)의 답변이 전송되기를 기다린다(S102).The
상기 감시 장치(200)는 상기 정상답변 구간(OPEN WINDOW)이 종료되기 전에 상기 마이컴(100)의 답변이 수신될 경우(S102의 예), 즉, 상기 정상답변 구간(OPEN WINDOW) 동안 상기 마이컴(100)의 답변이 수신될 경우, 상기 감시 장치(200)는 상기 답변이 정상 답변(예 : 정답 or 예상된 답변)인지 체크한다(S103).The
이에 따라 상기 정상답변 구간(OPEN WINDOW)이 종료될 때 까지 상기 마이컴(100)으로부터 답변이 수신되지 않거나(S104의 예), 상기 정상답변 구간(OPEN WINDOW) 동안 수신된 답변이 정상 답변이 아닌 경우(S104의 아니오), 상기 감시 장치(200)는 정상 카운터(230)의 카운트 값을 감소시킨다(S105).Accordingly, if no answer is received from the
반면에 상기 정상답변 구간(OPEN WINDOW) 동안 수신된 답변이 정상 답변인 경우(S104의 예) 정상 카운터(230)의 카운트 값을 증가시킨다(S106).On the other hand, when the answer received during the normal answer interval (OPEN WINDOW) is a normal answer (YES in S104), the count value of the
이에 따라 최종 카운트 값이 0(예 : 0000b)이 되면 고장을 확정한다. 즉, 연속해서 비정상 답변이 전송될 경우 고장이 확정된다. 이와 같이 고장이 확정되면 상기 감시 장치(200)는 상기 마이컴(100)에 리셋 신호를 출력하여 상기 마이컴(100)을 리셋 시킨다.Accordingly, when the final count value becomes 0 (for example, 0000b), the failure is confirmed. That is, if an abnormal answer is continuously transmitted, the failure is confirmed. When the malfunction is confirmed, the
상기와 같이 본 실시예는 엄격한 동작 관리가 필요한 시스템에서의 마이컴의 정상 동작을 확인하여, 정해진 수준의 오류가 계속 검출되면 외부에서 강제로 리셋 시키기 위한 것으로서, 기존 와치독 장치 대비 보다 단순한 구조이면서 동등한 성능을 가지는 효과가 있다.As described above, the present embodiment is for confirming normal operation of the microcomputer in a system requiring strict operation management, and forcibly resetting the microcomputer from the outside when a predetermined level of error is continuously detected. There is an effect that has performance.
이상으로 본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나, 이는 예시적인 것에 불과하며, 당해 기술이 속하는 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 기술적 보호범위는 아래의 특허청구범위에 의해서 정하여져야 할 것이다.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 embodiments, but, on the contrary, I will understand the point. Accordingly, the technical scope of the present invention should be defined by the following claims.
100 : 마이컴
110 : 통신부
200 : 감시 장치
210 : 통신부
220 : 연산 및 타이머부
230 : 정상 카운터100: Microcomputer
110:
200: Monitoring device
210:
220: Operation and timer section
230: Normal counter
Claims (8)
상기 질문에 대한 답변을 산출하여 상기 감시 장치에 전송하는 마이컴;을 포함하되,
상기 감시 장치는 상기 질문을 전송한 후 기 설정된 정상답변 구간(OPEN WINDOW)으로 설정된 시간동안 답변이 전송되기를 대기하고,
상기 정상답변 구간에 답변을 전송받을 경우, 상기 감시 장치는 상기 전송받은 답변이 정상 답변이면 상기 감시 장치의 정상 카운터의 카운트 값을 기 설정된 최대값 이내에서 증가시키며, 상기 전송받은 답변이 비정상 답변이면 상기 정상 카운터의 카운트 값을 차감하고,
상기 정상 카운터의 최종 카운트 값이 0이 되면 고장을 확정하여, 상기 감시 장치가 상기 마이컴에 리셋 신호를 출력하여 상기 마이컴을 리셋시키도록 구현된 것을 특징으로 하는 마이컴 감시 장치.
A monitoring device for sending a question to the microcomputer to be monitored; And
And a microcomputer for calculating an answer to the question and transmitting the answer to the monitoring apparatus,
The surveillance apparatus waits for a response to be transmitted during a time set in a predetermined normal answer interval (OPEN WINDOW) after transmitting the question,
If a response is received in the normal answer interval, the monitoring device increases the count value of the normal counter of the monitoring device within a predetermined maximum value if the received answer is a normal answer, and if the answer is an abnormal answer Subtracts the count value of the normal counter,
Wherein when the final count value of the normal counter reaches 0, the controller determines a failure, and the monitoring device outputs a reset signal to the microcomputer to reset the microcomputer.
상기 마이컴에 질문을 전송하고, 상기 마이컴으로부터 답변을 전송받기 위한 통신부;
상기 마이컴에 질문을 전송함과 동시에 이 질문에 대한 답변을 연산하여 산출하며, 상기 정상답변 구간으로 설정된 시간 동안에 상기 마이컴으로부터 전송받은 답변에 대해서 정상 답변인지 비정상 답변인지 판단하는 연산 및 타이머부; 및
상기 답변이 정상 답변이면 카운트 값을 증가시키고, 상기 답변이 비정상 답변이면 상기 카운트 값을 차감시키는 정상 카운터;를 포함하는 것을 특징으로 하는 마이컴 감시 장치.
The apparatus according to claim 1,
A communication unit for sending a question to the microcomputer and receiving an answer from the microcomputer;
Calculating and calculating an answer to the question and transmitting the question to the microcomputer and calculating whether the answer received from the microcomputer is a normal answer or an abnormal answer during the time set as the normal answer section; And
And a normal counter for incrementing the count value if the answer is a normal answer and decreasing the count value if the answer is an abnormal answer.
상기 답변이 기 설정된 미답변 구간(CLOSE WINDOW)으로 설정된 시간동안 전송될 경우 이 답변을 무시하고,
상기 정상답변 구간이 종료되기 전까지 답변이 전송되지 않을 경우에는 비정상 답변으로 판단하여 정상 카운터의 카운트 값을 차감하는 것을 특징으로 하는 마이컴 감시 장치.
The apparatus according to claim 1,
If the answer is transmitted during the time set in the predetermined non-answer period (CLOSE WINDOW), the answer is ignored,
And when the answer is not transmitted until the normal answer section is terminated, it is determined that the answer is abnormal and the count value of the normal counter is subtracted.
상기 질문에 대한 답변이 계속해서 정상 상태인 경우라고 하더라도, 상기 정상 카운터의 카운트 값은 초기 설정된 최대값을 초과하여 증가시키지 않으며,
상기 카운트 값이 차감된 상태에서 상기 질문에 대한 답변이 정상 상태인 경우에만 상기 정상 카운터의 카운트 값을 최대값 이내에서 증가시키는 것을 특징으로 하는 마이컴 감시 장치.
The apparatus according to claim 2,
The counter value of the normal counter does not increase beyond the initially set maximum value even if the answer to the question is still in the normal state,
And counts the count value of the normal counter within a maximum value only when the answer to the question is in a normal state in a state where the count value is subtracted.
상기 정상답변 구간이 시작된 후, 상기 감시 장치가 상기 정상답변 구간이 종료되는지 체크하는 단계;
상기 감시 장치가 상기 정상답변 구간 동안 상기 마이컴의 답변이 전송되기를 기다리고, 상기 정상답변 구간이 종료되기 전에 상기 마이컴의 답변이 수신될 경우, 상기 감시 장치가 상기 답변이 정상 답변인지 체크하는 단계;
상기 정상답변 구간 동안 수신된 답변이 정상 답변이 아닌 경우, 상기 감시 장치가 정상 카운터의 카운트 값을 차감시키는 단계; 및
상기 정상 카운터의 카운트 값이 0이 되면 상기 감시 장치가 상기 마이컴이 고장인 것으로 확정하여 상기 마이컴에 리셋 신호를 출력하는 단계;를 포함하는 것을 특징으로 하는 마이컴 감시 장치의 제어 방법.
Waiting for an answer to be sent from the microcomputer after a monitoring device sends a question to the microcomputer until a time set in a normal answer interval (OPEN WINDOW) is reached;
Checking whether the monitoring device completes the normal answer interval after the normal answer interval starts;
Waiting for the response of the microcomputer to be transmitted during the normal answer interval and checking if the answer is a normal answer when the answer of the microcomputer is received before the normal answer interval is completed;
If the answer received during the normal answer interval is not a normal answer, subtracting the count value of the normal counter from the monitoring device; And
And outputting a reset signal to the microcomputer when the count value of the normal counter becomes 0, and the monitoring device determines that the microcomputer is malfunctioning and outputs a reset signal to the microcomputer.
상기 정상답변 구간은, 상기 마이컴이 답변을 해야 되는 구간으로서,
상기 정상답변 구간에서 수신된 답변에 대해서만 상기 감시 장치가 정상 답변인지 아닌지를 판단하는 것을 특징으로 하는 마이컴 감시 장치의 제어 방법.
6. The method of claim 5,
The normal answer interval is a section in which the microcomputer should answer,
Wherein the control unit determines whether the monitoring apparatus is a normal answer only for the answer received in the normal answer section.
상기 마이컴으로부터의 답변이 기 설정된 미답변 구간(CLOSE WINDOW)으로 설정된 시간동안 전송될 경우 이 답변을 무시하고,
상기 정상답변 구간이 종료될 때 까지 상기 마이컴으로부터 답변이 수신되지 않을 경우, 상기 감시 장치가 정상 카운터의 카운트 값을 차감시키는 단계;를 더 포함하는 것을 특징으로 하는 마이컴 감시 장치의 제어 방법.
6. The method of claim 5,
If the answer from the microcomputer is transmitted during a time set to a predetermined non-answer interval (CLOSE WINDOW), the answer is ignored,
Further comprising the step of the monitoring device subtracting the count value of the normal counter when an answer is not received from the microcomputer until the normal answer interval is ended.
상기 정상답변 구간 동안 수신된 답변이 정상 답변인 경우, 상기 감시 장치가 정상 카운터의 카운트 값을 증가시키는 단계;를 더 포함하는 것을 특징으로 하는 마이컴 감시 장치의 제어 방법.
6. The method of claim 5,
And increasing the count value of the normal counter if the answer received during the normal answer interval is a normal answer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020170124938A KR102343543B1 (en) | 2017-09-27 | 2017-09-27 | Microcomputer monitoring apparatus and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020170124938A KR102343543B1 (en) | 2017-09-27 | 2017-09-27 | Microcomputer monitoring apparatus and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20190036104A true KR20190036104A (en) | 2019-04-04 |
KR102343543B1 KR102343543B1 (en) | 2021-12-27 |
Family
ID=66105562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020170124938A KR102343543B1 (en) | 2017-09-27 | 2017-09-27 | Microcomputer monitoring apparatus and control method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102343543B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200353933A1 (en) * | 2019-05-06 | 2020-11-12 | University Of Florida Research Foundation, Incorporated | Operator monitoring and engagement |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130009086A (en) * | 2011-07-14 | 2013-01-23 | 현대모비스 주식회사 | Advanced watchdog apparatus and method thereof |
JP2013029052A (en) * | 2011-07-27 | 2013-02-07 | Denso Corp | Engine control device |
JP2014032872A (en) * | 2012-08-03 | 2014-02-20 | Sony Corp | Information processing device, communication method, electric energy storage system and electric vehicle |
KR20150019174A (en) * | 2013-08-12 | 2015-02-25 | 현대오트론 주식회사 | Bi-directional watchdog apparatus and the controlling method thereof |
-
2017
- 2017-09-27 KR KR1020170124938A patent/KR102343543B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130009086A (en) * | 2011-07-14 | 2013-01-23 | 현대모비스 주식회사 | Advanced watchdog apparatus and method thereof |
JP2013029052A (en) * | 2011-07-27 | 2013-02-07 | Denso Corp | Engine control device |
JP2014032872A (en) * | 2012-08-03 | 2014-02-20 | Sony Corp | Information processing device, communication method, electric energy storage system and electric vehicle |
KR20150019174A (en) * | 2013-08-12 | 2015-02-25 | 현대오트론 주식회사 | Bi-directional watchdog apparatus and the controlling method thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200353933A1 (en) * | 2019-05-06 | 2020-11-12 | University Of Florida Research Foundation, Incorporated | Operator monitoring and engagement |
US12012107B2 (en) * | 2019-05-06 | 2024-06-18 | University Of Florida Research Foundation, Incorporated | Operator monitoring and engagement |
Also Published As
Publication number | Publication date |
---|---|
KR102343543B1 (en) | 2021-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7698418B2 (en) | Monitoring system | |
KR101526874B1 (en) | Bi-directional watchdog apparatus and the controlling method thereof | |
US10496128B2 (en) | Method for obtaining timestamp and computer device using the same | |
JP5601357B2 (en) | Electronic control unit | |
EP3220502B1 (en) | Device control apparatus and demand response method | |
KR20190036104A (en) | Microcomputer monitoring apparatus and control method thereof | |
JP2017005364A (en) | Serial communication system and communication setting method | |
KR20150004232A (en) | Watchdog apparatus and the controlling method thereof | |
CN109188991B (en) | Control signal transmission method and device | |
CN111211869A (en) | Method for automatically adapting baud rate, intelligent terminal and storage medium | |
JP2004107044A (en) | Elevator remote monitoring system | |
CN104486787A (en) | Method and device for detecting wireless link fault | |
JP2007187406A (en) | Air conditioning system | |
KR101568096B1 (en) | Error diagnosis method and apparatus of the vehocle multiplexer | |
KR101006680B1 (en) | Apparatus for mornitoring transmission controll unit | |
KR101988723B1 (en) | Mcu operation monitoring system and controlling method thereof | |
KR101795464B1 (en) | System Having Watchdog Processor, and Method Thereof | |
KR101491347B1 (en) | Method and apparatus for operating processor and watch dog module | |
CN106708759B (en) | Method for controlling digital input/output interface and processor | |
JP2680473B2 (en) | Watchdog mechanism | |
KR101449274B1 (en) | Watchdog using effective channel and operating method thereof | |
WO2010089810A1 (en) | Reset control circuit, apparatus control device, and control system | |
JP7318805B2 (en) | building management system | |
JP2018086950A (en) | Communication system | |
AU2018452878A1 (en) | Air-conditioning control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |