KR20030027458A - System and method for monitoring using watchdog timer in rtos - Google Patents

System and method for monitoring using watchdog timer in rtos Download PDF

Info

Publication number
KR20030027458A
KR20030027458A KR1020010060749A KR20010060749A KR20030027458A KR 20030027458 A KR20030027458 A KR 20030027458A KR 1020010060749 A KR1020010060749 A KR 1020010060749A KR 20010060749 A KR20010060749 A KR 20010060749A KR 20030027458 A KR20030027458 A KR 20030027458A
Authority
KR
South Korea
Prior art keywords
watchdog timer
watch dog
dog timer
timer
reset
Prior art date
Application number
KR1020010060749A
Other languages
Korean (ko)
Other versions
KR100414059B1 (en
Inventor
이재욱
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR10-2001-0060749A priority Critical patent/KR100414059B1/en
Publication of KR20030027458A publication Critical patent/KR20030027458A/en
Application granted granted Critical
Publication of KR100414059B1 publication Critical patent/KR100414059B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

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

PURPOSE: A system and method for monitoring a malfunction using a watch dog timer in an RTOS(Real-Time Operating System) is provided to reset the watch dog timer continuously and to prevent the watch dog timer from booting again a system in a critical area by creating a watch dog timer task when the watch dog timer is initialized. CONSTITUTION: A watch dog timer(20) is reset periodically by receiving a reset signal from a control unit(10). When a reset signal is not inputted from the control unit(10) within a predetermined time, the watch dog timer(20) boots a system. A watch dog timer task module(13) outputs a reset signal for reproducing the watch dog timer(20) continuously. A watch dog timer initialization module(12) stops the watch dog timer(20) in a system hardware initialization, resets a variable value of the watch dog timer(20), creates a watch dog timer task module, and operates the watch dog timer(20). A critical area process interrupt module(14) outputs a stop signal to the watch dog timer(20) before a critical area. When a critical area is removed, the critical area process interrupt module(14) outputs a driving signal to the watch dog timer(20).

Description

RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템 및 방법{SYSTEM AND METHOD FOR MONITORING USING WATCHDOG TIMER IN RTOS}Malfunction monitoring system and method using watchdog timer in RTOSS {SYSTEM AND METHOD FOR MONITORING USING WATCHDOG TIMER IN RTOS}

본 발명은 RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템 및 방법에 관한 것으로, 특히 와치독 타이머 초기화시 와치독 타이머 태스크를 생성하여 지속적으로 와치독 타이머가 재생되도록 하고, 임계 영역에 대한 처리를 하는 시스템 및 방법에 관한 것이다.The present invention relates to a malfunction monitoring system and method using a watchdog timer in an RTOS, and more particularly, generates a watchdog timer task when the watchdog timer is initialized so that the watchdog timer is continuously played and processes a critical area. System and method.

종래의 내장형(Embedded)시스템에서 사용하는 프로그래밍 방법으로는 크게 전위/후위(Foreground/Background) 방식의 전통적인 순차 실행 프로그래밍 방법과 OS(Operating System)를 이용한 싱글 태스킹/멀티 태스킹 방식이 있다.Programming methods used in the conventional embedded system are largely a conventional sequential execution programming method of the foreground / background method and a single tasking / multi-tasking method using an operating system (OS).

상기 순차 실행 방식은 많은 마이크로 컴퓨터 응용 프로그램에서 사용되고 있으며, 이 방식은 인터럽트 처리 이외에는 모든 프로그램이 순차적으로 흘러가게 작성된 프로그램이다.The sequential execution method is used in many microcomputer applications, and this method is a program written in order that all programs flow sequentially except for interrupt processing.

그리고, OS를 이용한 프로그래밍 방식은 싱글 태스킹 방식의 경우 상기 순차 실행 방식과 유사하나 프로그램을 로딩시키고, 실행시키며 관리해주는 커넬이 존재한다는 것이 다를 뿐이다.In addition, the programming method using the OS is similar to the sequential execution method in the case of the single tasking method, except that a kernel for loading, executing, and managing a program exists.

이 방식도 마찬가지로 인터럽트 처리 이외에는 모든 프로그램이 순차적으로 흘러가게 하는데, DOS(Disk Operating System)가 그 대표적인 예이다.Likewise, this method causes all programs to flow sequentially except for interrupt processing. A typical example is DOS (Disk Operating System).

멀티 태스킹 방식은 여러 개의 프로그램이 하나의 OS상에서 실현되면서, 적절한 작업을 수행함으로 인하여 프로그램의 구현이 용이하며, 작업의 편리성 또한증가하는 이점이 있는데, Unix, RTOS가 그 대표적인 예이다.The multi-tasking method has several advantages that the program can be easily implemented and the convenience of the task can be increased by performing appropriate tasks while the programs are realized on one OS. Unix and RTOS are typical examples.

컴퓨터 하드웨어의 이상을 검사하기 위한 타이머로서 정상적인 상태에서는 감시 시간보다 짧은 주기로 프로그램에 의해 반복 리셋되지만, 비정상 상태에 의해 리셋되지 않을 때는 경고를 발한다, 시스템 내에서 한 루틴이 계속적으로 반복되거나,장비의 고장, 프로그램의 오류에 의해 처리가 지연될 때 이 타이머가 세트된다.This timer is used to check the computer hardware for abnormality. In normal condition, it is repeatedly reset by the program in shorter time than the monitoring time, but when it is not reset due to abnormal condition, a warning is issued. This timer is set when processing is delayed due to a fault or a program error.

상기 순차실행 방식과 싱글 태스킹 OS의 경우, 와치독 타이머를 이용하여 시스템을 감시하기 위해서는 크게 두 가지 방법이 전통적으로 사용되었다.In the case of the sequential execution method and the single tasking OS, two methods have been traditionally used to monitor a system using a watchdog timer.

첫째는 순차적 프로그램 상에 와치독 타이머를 리셋시키는 명령어를 두어 시스템이 정상 동작하고 있음을 와치독 타이머에게 알려주는 방식이다.The first is to set the watchdog timer on the sequential program to notify the watchdog timer that the system is operating normally.

둘째는 시스템의 타이머 인터럽트 루틴 내부에 와치독 타이머 리셋 명령어를 두어 일정 시간 간격으로 타이머 인터럽트 루틴을 불러서 와치독 타이머에게 시스템이 정상 동작하고 있음을 알리는 방법이다.The second method is to put a watchdog timer reset command inside the timer interrupt routine of the system and call the timer interrupt routine at regular intervals to notify the watchdog timer that the system is operating normally.

그러나, 상기에서와 같이 종래의 기술은 RTOS에서도 사용되는데, 상기 첫 번째의 경우에는 코드마다 타이머를 클리어시켜야 하므로 프로그램 코드가 커져 최적화를 이룰 수 없고, 상기 두 번째의 경우는 RTOS의 특성으로 인한 임계 영역 처리가 어려워진다는 문제점이 있었다.However, as described above, the conventional technique is also used in the RTOS. In the first case, since the timer must be cleared for each code, the program code becomes large and optimization cannot be achieved. In the second case, the threshold is due to the characteristics of the RTOS. There was a problem that area processing became difficult.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창출한 것으로, 와치독 타이머 초기화시 와치독 타이머 태스크를 생성하여 지속적으로 상기 와치독 타이머가 리셋되도록할 뿐만 아니라 임계 영역에서 와치독 타이머가 시스템을 재부팅하는 것을 방지하기 위한 RTOS에서의 와치독 타이머를 이용한 오동작 방지 시스템 및 방법을 제공함에 그 목적이 있다.Accordingly, the present invention has been made to solve the above-mentioned conventional problems, and generates a watchdog timer task when the watchdog timer is initialized so that the watchdog timer is continuously reset as well as the watchdog timer in the critical region. An object of the present invention is to provide a malfunction prevention system and method using a watchdog timer in an RTOS to prevent a system reboot.

상기의 목적을 달성하기 위한 본 발명의 일 실시 예는, 제어부로부터 계속적으로 출력되는 신호에 의해 리셋되고, 리셋 신호가 수신되지 않을 경우, 시스템을 재부팅시키는 와치독 타이머를 이용한 RTOS에서의 오동작 감시 시스템 있어서, 상기 제어부는 계속적으로 상기 와치독 타이머가 재생되도록 리셋 신호를 출력하는 와치독 타이머 태스크 모듈과; 시스템 하드웨어 초기화시 와치독 타이머를 정지시키고, 상기 와치독 타이머의 변수값을 재설정한 후, 상기 와치독 타이머 태스크 모듈을 생성하고, 상기 와치독 타이머를 구동시키는 와치독 타이머 초기화 모듈을 포함하여 구성된 것을 특징으로 한다.An embodiment of the present invention for achieving the above object is a malfunction monitoring system in the RTOS using a watchdog timer that is reset by a signal continuously output from the control unit, the system reboots when the reset signal is not received The watchdog timer task module may further include: a watchdog timer task module configured to continuously output a reset signal to reproduce the watchdog timer; And a watchdog timer initialization module configured to stop the watchdog timer, reset the variable value of the watchdog timer, and generate the watchdog timer task module and drive the watchdog timer. It features.

상기의 목적을 달성하기 위한 본 발명의 다른 실시예는, 시스템 하드웨어 초기화시 와치독 타이머를 정지시키고, 상기 와치독 타이머의 변수값을 재설정한 후, 상기 와치독 타이머 태스크를 생성하고, 상기 와치독 타이머를 구동시키는 와치독 타이머 초기화 단계와; 계속적으로 상기 와치독 타이머가 재생되도록 리셋 신호를 출력하는 와치독 타이머 태스크 단계로 이루어진 것을 특징으로 한다.Another embodiment of the present invention for achieving the above object, the watchdog timer is stopped during system hardware initialization, after resetting the variable value of the watchdog timer, and generates the watchdog timer task, the watchdog A watchdog timer initialization step of driving a timer; And a watchdog timer task step of continuously outputting a reset signal to reproduce the watchdog timer.

도 1은 본 발명에 따른 RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템의 블록 구성도.1 is a block diagram of a malfunction monitoring system using a watchdog timer in an RTOS according to the present invention;

도 2는 본 발명에 따른 RTOS에서의 와치독 타이머를 이용한 오동작 감시 방법을 설명하기 위한 플로우 차트.2 is a flowchart illustrating a malfunction monitoring method using a watchdog timer in an RTOS according to the present invention;

도 3은 본 발명에 따른 와치독 타이머 초기화 과정을 설명하기 위한 플로우 차트.3 is a flowchart illustrating a watchdog timer initialization process according to the present invention.

도 4는 본 발명에 따른 와치독 타이머 태스크 수행 과정을 설명하기 위한 플로우 차트.4 is a flowchart illustrating a process of performing a watchdog timer task according to the present invention.

도 5a 및 도 5b는 본 발명에 따른 임계 영역 처리 과정을 설명하기 위한 플로우 차트.5A and 5B are flowcharts illustrating a critical region processing process according to the present invention.

** 도면의 주요 부분에 대한 부호의 설명 **** Description of symbols for the main parts of the drawing **

10 : 제어부 11 : 메인 모듈10 control unit 11: main module

12 : 와치독 타이머 초기화 모듈 13 : 와치독 타이머 태스트 모듈12: watchdog timer initialization module 13: watchdog timer task module

14 : 임계 영역 처리 모듈 20 : 와치독 타이머14: critical area processing module 20: watchdog timer

이하, 본 발명에 따른 일 실시 예를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, an embodiment according to the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명에 따른 RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템의 블록 구성도이다.1 is a block diagram of a malfunction monitoring system using a watchdog timer in an RTOS according to the present invention.

도 1을 참조하면, 본 발명에 따른 RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템은 제어부(10)와, 상기 제어부(10)로부터 리셋 신호를 입력받아 주기적으로 리셋되고, 상기 제어부(10)로부터 리셋 신호가 일정 시간 안에 입력되지 않을 때는 상기 시스템을 재부팅시키는 와치독 타이머(20)를 포함하여 구성된다.Referring to FIG. 1, a malfunction monitoring system using a watchdog timer in an RTOS according to the present invention is periodically reset by receiving a reset signal from the controller 10 and the controller 10, and from the controller 10. The watchdog timer 20 is configured to reboot the system when the reset signal is not input within a predetermined time.

상기 제어부(10)는 시스템 구동에 따라 실행되는 메인 모듈(11)과, 상기 메인 모듈(11) 및 각 모듈들에 의해 호출되어 실행되는 모듈들로 구성되는데, 상기 모듈들은 하드웨어가 초기화됨과 동시에 실행되는 와치독 타이머 초기화 모듈(12)과, 상기 와치독 타이머 초기화 모듈(12)에 의해 생성되어 계속적으로 상기 와치독 타이머(20)를 리셋시키는 와치독 타이머 태스크 모듈(13), 임계 영역에서 와치독 타이머의 시스템 재부팅을 방지하기 위한 인터럽트 신호를 발생하는 임계 영역 처리 인터럽트 모듈(14)을 포함하여 구성된다.The control unit 10 is composed of a main module 11 to be executed according to the system drive, and a module called and executed by the main module 11 and each module, the modules are executed at the same time the hardware is initialized The watchdog timer initialization module 12 and the watchdog timer task module 13 generated by the watchdog timer initialization module 12 to continuously reset the watchdog timer 20. And a threshold region processing interrupt module 14 for generating an interrupt signal to prevent a system reboot of the timer.

상기 각 모듈들의 동작 설명은 후술되는 RTOS에서의 와치독 타이머를 이용한 오동작 감시 방법에서 상세히 하기로 한다.The operation of each module will be described in detail in a malfunction monitoring method using a watchdog timer in an RTOS, which will be described later.

도 2은 본 발명에 따른 RTOS에서의 와치독 타이머를 이용한 오동작 감시 방법을 설명하기 위한, 제어부의 동작에 따른 플로우 차트이다.2 is a flowchart illustrating a malfunction monitoring method using a watchdog timer in an RTOS according to the present invention.

도 2를 참조하면, 본 발명은 RTOS에서의 와치독 타이머를 이용한 오동작 감시 방법은 시스템 하드웨어 초기화시 와치독 타이머를 정지시키고, 상기 와치독 타이머의 변수값을 재설정한 후, 상기 와치독 타이머 태스크를 생성하고, 상기 와치독 타이머를 구동시키는 단계(S100~S200)와; 계속적으로 상기 와치독 타이머가 재생되도록 리셋 신호를 출력하는 단계(S300)와; 임계 영역 발생시, 와치독 타이머의시스템 재부팅을 방지하기 위한 인터럽트 신호를 발생하는 단계(S400~500)로 이루어진다.Referring to FIG. 2, the present invention provides a malfunction monitoring method using a watchdog timer in an RTOS. The watchdog timer is stopped when system hardware is initialized, and the variable value of the watchdog timer is reset. Generating and driving the watchdog timer (S100 to S200); Continuously outputting a reset signal to reproduce the watchdog timer (S300); When the critical region occurs, generating an interrupt signal for preventing the system reboot of the watchdog timer (S400 ~ 500).

이후, 상술한 시스템 상에서 동작 설명을 상세히 하기로 한다.Hereinafter, the operation description on the above-described system will be described in detail.

RTOS 커널이 로딩된 상태에서 시스템 하드웨어 초기화시(S100), 상기 제어부(10)는 와치독 타이머 초기화 과정을 실행하는데(S200), 도 3은 본 발명에 따른 와치독 타이머 초기화 과정에 따른 플로우 차트로써, 상기 도 3을 참조하여 상기 와치독 타이머 초기화 모듈에 의한 동작 설명을 좀 더 상세히 설명하면 다음과 같다.When the system hardware is initialized while the RTOS kernel is loaded (S100), the controller 10 executes a watchdog timer initialization process (S200). FIG. 3 is a flowchart illustrating a watchdog timer initialization process according to the present invention. The operation description by the watchdog timer initialization module will be described in more detail with reference to FIG. 3 as follows.

상기 와치독 타이머 초기화 모듈(12)은 초기화 플래그가 '1'로 셋팅되어 있는지를 판단하여(S210), 그 판단 결과 초기화 플래그가 셋팅되어 있으면, 초기화 모듈 실행을 중지하고, 초기화 루틴을 빠져나온다.The watchdog timer initialization module 12 determines whether the initialization flag is set to '1' (S210). If the initialization flag is set as a result of the determination, the watchdog timer initialization module 12 stops executing the initialization module and exits the initialization routine.

그러나, 상기 S210의 판단 결과, 초기화 플래그가 셋팅되어 있지 않으면, 와치독 타이머를 정지시키고(S220), 타이머 제어 레지스터에 동작 모드를 설정한 후(S230), 타이머 변수 레지스터에 리로드시킬 값을 기입한다(S240).However, as a result of the determination in S210, if the initialization flag is not set, the watchdog timer is stopped (S220), the operation mode is set in the timer control register (S230), and a value to be reloaded is written in the timer variable register. (S240).

그리고, 상기 와치독 타이머 초기화 모듈(12)은 최상위 순위를 갖는 타이머 태스크를 생성시켜(S250), 이후 계속적으로 타이머 태스크가 수행되도록 한 후, 상기 타이머 초기화 플래그를 셋팅시키고, 상기 와치독 타이머를 재구동시킨다(S260).In addition, the watchdog timer initialization module 12 generates a timer task having a highest rank (S250), and then continuously performs a timer task, sets the timer initialization flag, and resets the watchdog timer. Drive (S260).

상술한 와치독 타이머 초기화 과정을 구현하기 위한 프로그램 소스의 일 실시예는 다음과 같다.An embodiment of a program source for implementing the aforementioned watchdog timer initialization process is as follows.

int wdt_init(void)int wdt_init (void)

{{

if(wdt_initialized) return ( ERROR);if (wdt_initialized) return (ERROR);

wdt_stop();wdt_stop ();

wdt_mode_set();wdt_mode_set ();

wdt_reload_value_set();wdt_reload_value_set ();

if(taskSpawn( "tWdtTask", 0, 0, 512, (FUNCPTR)wdt_refresh_task, 0, 0, 0,if (taskSpawn ("tWdtTask", 0, 0, 512, (FUNCPTR) wdt_refresh_task, 0, 0, 0,

0, 0, 0, 0, 0, 0, 0 )==ERROR) return (ERROR);0, 0, 0, 0, 0, 0, 0) == ERROR) return (ERROR);

wdt_initialized = 1;wdt_initialized = 1;

wdt_restart();wdt_restart ();

return( OK );return (OK);

}}

상기 와치독 타이머 초기화 과정에서 생성된 와치독 타이머의 와치독 타이머 태스크 모듈(13)의 동작 설명을 도 4를 참조하여 설명하면, 우선 와치독 타이머를 정지(S310)시킨 후, 타이머를 다시 구동(S320) 와치독 타이머 재생 루틴을 실행한 후, 타이머 리셋 간격 내에서 태스크를 지연시킨후(S330), 다시 S310으로 돌아가 상술한 과정을 계속적으로 반복한다.The operation of the watchdog timer task module 13 of the watchdog timer generated during the watchdog timer initialization process will be described with reference to FIG. 4. First, the watchdog timer is stopped (S310), and the timer is again driven ( After executing the watchdog timer regeneration routine, the task is delayed within the timer reset interval (S330), and then the process returns to S310 again to repeat the above process.

상술한 와치독 타이머 태스크 구현을 위한 프로그램 소스의 일 실시예는 다음과 같다.An embodiment of a program source for implementing the watchdog timer task described above is as follows.

void wdt_refresh_task(void)void wdt_refresh_task (void)

{{

while (1)while (1)

{{

wdt_refresh();wdt_refresh ();

taskDelay( sysClkRateGet() / 5); /* 200ms task delay*/taskDelay (sysClkRateGet () / 5); / * 200 ms task delay * /

}}

}}

void wdt_refresh(void)void wdt_refresh (void)

{{

wdt_stop();wdt_stop ();

wdt_restart();wdt_restart ();

}}

상술한 바와 같이 타이머가 지속적으로 리셋되는 과정에서 임계 영역내에서는 와치독 타이머 태스크가 작동하지 않으므로, 정상적인 동작을 보장하기 위해 적절한 방법으로 와치독 타이머가 시스템을 재부팅시키는 것을 방지해야 하는데, 그 방지 방법으로 ISR(Interrupt Service Routine), Interrupt Locking, Task Locking을 사용할 수 있다.As described above, the watchdog timer task does not operate in the critical area while the timer is continuously reset. Therefore, the watchdog timer should be prevented from rebooting the system in a proper way to ensure normal operation. You can use Interrupt Service Routine (ISR), Interrupt Locking, and Task Locking.

도 5a 및 도 5b는 임계 영역 처리 과정을 설명하기 위한 플로우차트로써, 우선 도 5a를 참조하면, 타이머를 정지시킨(S510) 후, 메인 루틴이 실행시키고(S520), 메인 루틴이 끝나게 되면, 다시 와치독 타이머를 구동시킨다(S530).5A and 5B are flowcharts for describing a critical area processing process. Referring first to FIG. 5A, after the timer is stopped (S510), the main routine is executed (S520), and when the main routine is finished, again The watchdog timer is driven (S530).

상술한 첫 번째 방법을 구현한 프로그램 소스의 일 실시예는 다음과 같다.An embodiment of a program source implementing the first method described above is as follows.

void flash_write(void)void flash_write (void)

{{

wdt_stop();wdt_stop ();

... /*메인 루틴*/... / * main routines * /

wdt_restart();wdt_restart ();

}}

두 번째로 도 5b를 참조하면, 상술한 와치독 타이머 재생루틴을 계속적으로 실행하되(S510'), 임계 영역에서 벗어났는지를 판단하여(S520'), 그 판단 결과 임계 영역에서 벗어났을 경우에는 상술한 과정을 종료한다.Secondly, referring to FIG. 5B, the watchdog timer regeneration routine is continuously executed (S510 ′), and it is determined whether the threshold is out of the threshold region (S520 ′). Terminate a process.

상술한 두 번째 방법을 구현한 프로그램 소스의 일 실시예는 다음과 같다.An embodiment of a program source implementing the above-described second method is as follows.

void flash_wait_done(void)void flash_wait_done (void)

{{

do{do {

wdt_refresh();wdt_refresh ();

... /*메인 루틴*/... / * main routines * /

} while(wait_done);} while (wait_done);

}}

이상의 본 발명은 상기에 기술된 실시예들에 의해 한정되지 않고, 당업자들에 의해 다양한 변형 및 변경을 가져올 수 있으며, 이는 첨부된 청구항에서 정의되는 본 발명의 취지와 범위에 포함된다.The present invention is not limited to the embodiments described above, and various modifications and changes can be made by those skilled in the art, which are included in the spirit and scope of the present invention as defined in the appended claims.

이상에서 설명한 바와 같이 본 발명은 와치독 타이머 태스크를 생성시키고 최상위로 함으로써 시스템의 신뢰성을 높일 수 있을 뿐만 아니라 RTOS의 특성으로 인한 크리티컬 섹션에서의 처리 방법을 제공하여 시스템이 와치독 타이머에 의해 재부팅되거나 다운되는 증상을 방지하는 효과가 있다.As described above, the present invention not only increases the reliability of the system by creating and maintaining a watchdog timer task, but also provides a processing method in a critical section due to the characteristics of the RTOS so that the system is rebooted by the watchdog timer. It is effective in preventing down symptoms.

Claims (6)

제어부로부터 계속적으로 출력되는 신호에 의해 리셋되고, 리셋 신호가 수신되지 않을 경우, 시스템을 재부팅시키는 와치독 타이머를 이용한 RTOS에서의 오동작 감시 시스템 있어서, 상기 제어부는In the malfunction monitoring system in the RTOS using a watchdog timer that is reset by a signal continuously output from the control unit and reboots the system when the reset signal is not received, the control unit 계속적으로 상기 와치독 타이머가 재생되도록 리셋 신호를 출력하는 와치독 타이머 태스크 모듈과;A watchdog timer task module configured to continuously output a reset signal to reproduce the watchdog timer; 시스템 하드웨어 초기화시 와치독 타이머를 정지시키고, 상기 와치독 타이머의 변수값을 재설정한 후, 상기 와치독 타이머 태스크 모듈을 생성하고, 상기 와치독 타이머를 구동시키는 와치독 타이머 초기화 모듈을 포함하여 구성되는 것을 특징으로 하는 RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템.And a watchdog timer initialization module configured to stop the watchdog timer upon system hardware initialization, reset the variable value of the watchdog timer, generate the watchdog timer task module, and drive the watchdog timer. Malfunction monitoring system using a watchdog timer in RTOS. 제 1항에 있어서, 상기 제어부는The method of claim 1, wherein the control unit 임계 영역 전에 상기 와치독 타이머에 정지 신호를 출력한 후, 임계 영역을 벗어났을 때 상기 와치독 타이머에 구동 신호를 출력하는 임계 영역 처리 인터럽트 모듈을 더 포함하여 구성되는 것을 특징으로 하는 RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템.And a threshold region processing interrupt module configured to output a stop signal to the watchdog timer before the threshold region and then output a driving signal to the watchdog timer when the watchdog timer is out of the threshold region. Malfunction monitoring system using dock timer. 제 1 항에 있어서, 상기 제어부는The method of claim 1, wherein the control unit 임계 영역에서 상기 와치독 타이머를 지속적으로 재생시키는 임계 영역 처리인터럽트 모듈을 더 포함하여 구성되는 것을 특징으로 하는 RTOS에서의 와치독 타이머를 이용한 오동작 감시 시스템.And a threshold region processing interrupt module configured to continuously reproduce the watchdog timer in a critical region. 시스템 하드웨어 초기화시 와치독 타이머를 정지시키고, 상기 와치독 타이머의 변수값을 재설정한 후, 상기 와치독 타이머 태스크를 생성하고, 상기 와치독 타이머를 구동시키는 와치독 타이머 초기화 단계와;A watchdog timer initialization step of stopping the watchdog timer upon system hardware initialization, resetting a variable value of the watchdog timer, generating the watchdog timer task, and driving the watchdog timer; 계속적으로 상기 와치독 타이머가 재생되도록 리셋 신호를 출력하는 와치독 타이머 태스크 단계로 이루어진 것을 특징으로 하는 RTOS에서의 와치독 타이머를 이용한 오동작 감시 방법.And a watchdog timer task step of outputting a reset signal to continuously reproduce the watchdog timer. 제 4항에 있어서,The method of claim 4, wherein 임계 영역 전에 상기 와치독 타이머에 정지 신호를 출력한 후, 임계 영역을 벗어났을 때 상기 와치독 타이머에 구동 신호를 출력하는 임계 영역 처리 인터럽트 단계를 더 포함하는 것을 특징으로 하는 RTOS에서의 와치독 타이머를 이용한 오동작 감시 방법.And a threshold region processing interrupt step of outputting a stop signal to the watchdog timer before a threshold region, and outputting a driving signal to the watchdog timer when the watchdog timer is out of the threshold region. Malfunction monitoring method. 제 4 항에 있어서,The method of claim 4, wherein 임계 영역에서 상기 와치독 타이머를 지속적으로 재생시키는 임계 영역 처리 인터럽트 단계를 더 포함하는 것을 특징으로 하는 RTOS에서의 와치독 타이머를 이용한 오동작 감시 방법.And a threshold region processing interrupt step of continuously regenerating the watchdog timer in a threshold region.
KR10-2001-0060749A 2001-09-28 2001-09-28 System and method for monitoring using watchdog timer in rtos KR100414059B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0060749A KR100414059B1 (en) 2001-09-28 2001-09-28 System and method for monitoring using watchdog timer in rtos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0060749A KR100414059B1 (en) 2001-09-28 2001-09-28 System and method for monitoring using watchdog timer in rtos

Publications (2)

Publication Number Publication Date
KR20030027458A true KR20030027458A (en) 2003-04-07
KR100414059B1 KR100414059B1 (en) 2004-01-07

Family

ID=29562972

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0060749A KR100414059B1 (en) 2001-09-28 2001-09-28 System and method for monitoring using watchdog timer in rtos

Country Status (1)

Country Link
KR (1) KR100414059B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140092132A (en) * 2013-01-15 2014-07-23 콘티넨탈 오토모티브 시스템 주식회사 Method for monitoring os task of twin micom in rtos
CN112084057A (en) * 2020-09-03 2020-12-15 青岛海信电子产业控股股份有限公司 Hardware watchdog system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5513319A (en) * 1993-07-02 1996-04-30 Dell Usa, L.P. Watchdog timer for computer system reset
JPH09198280A (en) * 1996-01-23 1997-07-31 Furukawa Electric Co Ltd:The Method for generating pulse for system monitoring and real time operating system provided with pulse generation function for monitoring
JPH1145214A (en) * 1997-07-25 1999-02-16 Sutetsupu One:Kk Method and device for error detecting process
JPH11212829A (en) * 1998-01-23 1999-08-06 Nec Corp Method and system for wdt monitoring
KR20000001674A (en) * 1998-06-12 2000-01-15 윤종용 Processor recovery device
KR100336500B1 (en) * 2000-01-28 2002-05-15 오길록 I/O-based high availability through middleware in the COTS RTOS

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140092132A (en) * 2013-01-15 2014-07-23 콘티넨탈 오토모티브 시스템 주식회사 Method for monitoring os task of twin micom in rtos
CN112084057A (en) * 2020-09-03 2020-12-15 青岛海信电子产业控股股份有限公司 Hardware watchdog system

Also Published As

Publication number Publication date
KR100414059B1 (en) 2004-01-07

Similar Documents

Publication Publication Date Title
US7562362B1 (en) User control of task priority
US6675324B2 (en) Rendezvous of processors with OS coordination
US8839206B2 (en) Time-based breakpoints in debuggers
US6154838A (en) Flash ROM sharing between processor and microcontroller during booting and handling warm-booting events
US6438709B2 (en) Method for recovering from computer system lockup condition
KR20070108060A (en) System executing a fast boot wake-up
US20070150713A1 (en) Methods and arrangements to dynamically modify the number of active processors in a multi-node system
US7089413B2 (en) Dynamic computer system reset architecture
US7043729B2 (en) Reducing interrupt latency while polling
CN109933451B (en) RISC-V architecture based exception and interrupt handling system and method
US7194614B2 (en) Boot swap method for multiple processor computer systems
JP2007323631A (en) Cpu runaway determination circuit
JP2008513899A (en) Method for processing a computer program on a computer system
US20050188274A1 (en) Watchdog system and method for monitoring functionality of a processor
KR100414059B1 (en) System and method for monitoring using watchdog timer in rtos
US6567930B1 (en) Method and apparatus for controlling writing of flash EEPROM by microcomputer
JPH07113898B2 (en) Failure detection method
US7631178B2 (en) Independent main partition reset
US20230236901A1 (en) Safe critical section operations for virtual machines with virtual central processing unit overcommit
JPH0816420A (en) Error processing method of small-sized information processor
JPH04113421A (en) Initial program loading system
KR20070080084A (en) Apparatus and method for booting in embedded system
JPS6072040A (en) Monitoring system for executing time of program
KR20230101569A (en) Method of providing virtual watchdog and the computing device which the method is applied
JPH06131218A (en) Cpu control system

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070918

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee