JPS5983438A - Program failure detecting system - Google Patents

Program failure detecting system

Info

Publication number
JPS5983438A
JPS5983438A JP57194245A JP19424582A JPS5983438A JP S5983438 A JPS5983438 A JP S5983438A JP 57194245 A JP57194245 A JP 57194245A JP 19424582 A JP19424582 A JP 19424582A JP S5983438 A JPS5983438 A JP S5983438A
Authority
JP
Japan
Prior art keywords
program
timer
reset
monitor
abnormality detection
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP57194245A
Other languages
Japanese (ja)
Inventor
Teruo Tsukamoto
塚本 照男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric Co Ltd
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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP57194245A priority Critical patent/JPS5983438A/en
Publication of JPS5983438A publication Critical patent/JPS5983438A/en
Pending legal-status Critical Current

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

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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PURPOSE:To attain the detection of failure of a more strict program, by checking that a monitor timer reset instruction from a program enters the range for a prescribed count time. CONSTITUTION:A monitor clock producing circuit 33 generates a timing pulse, which is inputted to a clock device counting a counter of a monitor timer 32. A carry output signal 385 of the counter is made active after a prescribed time if no reset input is given to the timer 32, a failure detection FF37 is set and a program failure detection signal line 40 is made active. When the program is operated normally, a monitor timer reset instruction is outputted via a processor bus 20. An I/O decoder 31 receives this instruction and outputs a timer reset signal 381. The monitor timer is reset by this signal.

Description

【発明の詳細な説明】 本発明は、データ交換処理装置におけるソフトウェア(
プログラム)の異常を検出するための方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides software (
This invention relates to a method for detecting abnormalities in programs.

従来、この種のプログラムの異常を検出する回路として
は、各種の回路があシ、いわゆるウォッチドッグタイマ
もその1つである。これは、その監視タイマに一定時間
以上プログラムからのリセットがかからないと、プログ
ラムが異常となって、暴走状態となシ、規定のルートを
走っていないと判断し、割込処理等の手段でシステムの
異常処理動作を行い、システム回復を行わせるために用
いられている。
Conventionally, various circuits have been used to detect this type of program abnormality, and a so-called watchdog timer is one of them. This means that if the monitoring timer is not reset by the program for a certain period of time, the program will become abnormal and run out of control.It will determine that the program is not running on the specified route, and the system will use interrupt processing or other means. It is used to handle abnormalities and recover the system.

この方式によると、プログラムの暴走の仕方が、監視タ
イマリセット命令を含んでループを繰返せば、永久に異
常検出が出来ない。この為にシステム自体の正常性を保
証するための外部監視装置による検出や加入者の自己申
告等で対処している。
According to this method, if the program goes out of control and repeats a loop including a supervisory timer reset instruction, abnormality cannot be detected forever. For this reason, measures are taken to ensure the normality of the system itself, such as detection by external monitoring equipment and self-reporting by subscribers.

しかるに、前者はハードウェア量の増加をもたらし、後
者はサービス性の低下をもたらす欠点があった。
However, the former method has the drawback of increasing the amount of hardware, and the latter method has the drawback of reducing serviceability.

本発明は従来の上記事情に鑑みて・なされたものであシ
、従って本発明の目的は、プログラムからの監視タイマ
リセット命令が、ある一定カウント時間の範囲内に入っ
ていることをチェックすることにより、上記欠点を除去
した新規なプログラム異常検出力式を提供するものであ
る。
The present invention has been made in view of the above-mentioned conventional circumstances, and therefore, an object of the present invention is to check whether a monitor timer reset command from a program is within a certain fixed count time range. This provides a new program abnormality detection formula that eliminates the above-mentioned drawbacks.

即ち、本発明のプログラム異常検出力式は、プログラム
からの監視タイマのリセット信号を、監視タイマのカウ
ント時間’rBTt+o)tでに受信した場合又はカウ
ント時間T1からT2 CTl <T2)までの間に受
信しなかった場合に、プログラム異常として検出するこ
とを特徴とする。
That is, the program abnormality detection power formula of the present invention can be used when the reset signal of the monitoring timer from the program is received at the counting time 'rBTt+o)t of the monitoring timer, or between the counting time T1 and T2 CTl <T2). The feature is that if the program is not received, it is detected as a program abnormality.

監視タイマのカウント時間T1及びT2の値は、プログ
ラム構成との関係で決められる。インターバルタイマ割
込によシブログラムが時間を認識し、そのインターバル
タイマ周期が時間ベースとなって、監視タイマのリセッ
ト周期が決められるので監視タイマのカウント時間T1
は少くともこの周期以上の値に設定される。
The values of the count times T1 and T2 of the monitoring timer are determined in relation to the program configuration. The sibling program recognizes the time by the interval timer interrupt, and the interval timer period becomes the time base, and the reset period of the watchdog timer is determined, so the count time of the watchdog timer is T1.
is set to a value that is at least equal to or greater than this period.

次に図面を参照して本発明をその好ましい一実施例につ
いて詳細に説明する。
Next, a preferred embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明のプログラム異常検出回路のシステム内
の位置を示すものである。中央処理装置10上でプログ
ラムが処理を実行する。プログラムはプログラム構成上
法められたアルゴリズムで監視タイマリセット命令をプ
ロセッサバス20を介してプログラム異常検出回路30
に送出する。プログラム異常検出回路30は、プログラ
ム異常を検出すると、プログラム異常検出信号線40に
よシ、中央処理装置10によシ割込み、そして外部装置
に報告する。又2重化システムにおいてはメイト側シス
テムに報告し、システム全体のACT/5TAND B
Yを切替える。
FIG. 1 shows the position of the program abnormality detection circuit of the present invention in the system. A program executes processing on the central processing unit 10. The program sends a monitoring timer reset command to the program abnormality detection circuit 30 via the processor bus 20 using an algorithm stipulated by the program structure.
Send to. When the program abnormality detection circuit 30 detects a program abnormality, it sends an interrupt to the program abnormality detection signal line 40, an interrupt to the central processing unit 10, and reports it to an external device. In addition, in a redundant system, it is reported to the mate system, and the ACT/5TAND B of the entire system is
Switch Y.

第2図はプログラム異常検出回路30の詳細な構成を示
す。本実施例においては、インターバルタイマ割込が1
 (knsなので、監視タイマのカウント時間nが4Q
ms、 T2が160m5 にそれぞれ設定されている
。この場合、プログラム構成上、40m5以内に監視タ
イマリセット命令を出力しないように制限が設けられて
いる。監視クロック生成回路33は、10m5周期のタ
イミングパルスを発生し、監視タイマ32のカウンタを
lQms毎にカウントするためのクロックに入力される
。監視タイマ32は、リセット入力がない場合には16
0 m s経過するとカウンタのキャリー出力信号38
5がアクティブ(以下”ACTIVE”と記す)になり
、異常検出フリップフロツプ(以下段と略記する)37
をセットし、プログラム異常検出信号線40を”ACT
ffE”にする。
FIG. 2 shows a detailed configuration of the program abnormality detection circuit 30. In this embodiment, the interval timer interrupt is 1
(Since it is kns, the count time n of the monitoring timer is 4Q.
ms and T2 are each set to 160m5. In this case, due to the program configuration, a restriction is set so that the monitor timer reset command is not output within 40m5. The supervisory clock generation circuit 33 generates a timing pulse of 10m5 cycles, which is inputted as a clock for counting the counter of the supervisory timer 32 every 1Qms. The monitoring timer 32 is set to 16 when there is no reset input.
When 0 ms elapses, the counter's carry output signal 38
5 becomes active (hereinafter referred to as "ACTIVE"), and the abnormality detection flip-flop (hereinafter referred to as "stage") 37
and set the program abnormality detection signal line 40 to "ACT".
ffE”.

プログラムが正常に動作している場合には、プロセッサ
バス20を介して、監視タイマリセット命令が出力され
る。VOデコーダ31は該命令を受信して、監視タイマ
リセット信号381を出力する。
If the program is operating normally, a supervisory timer reset command is output via the processor bus 20. The VO decoder 31 receives the command and outputs a supervisory timer reset signal 381.

このリセット信号381により監視タイマ32がリセッ
トされる。もし、プログラム異常によ、9 T1=40
ms 以内にリセット信号381が出力する場合には監
視タイマ32のカウンタ出力22ビツト、iピットが0
”であるという条件で、回路35が”ACTIVE”に
なシ、0几回路36を通して、異常検出F/E’37が
セットされ、T2= 160 msまでの間にリセット
信号がない場合と同様に、プログラム異常検出信号線4
O−4(”ACTIVE” K −f ル。
The monitor timer 32 is reset by this reset signal 381. If there is a program error, 9 T1=40
If the reset signal 381 is output within ms, the 22-bit counter output of the monitoring timer 32 and the i-pit become 0.
”, the circuit 35 is not “ACTIVE”, the abnormality detection F/E' 37 is set through the zero circuit 36, and there is no reset signal until T2 = 160 ms. , program abnormality detection signal line 4
O-4 ("ACTIVE" K -f le.

異常検出F/F’ 37はシステムリセット信号線38
8によシリセットされる。又、監視タイマ32もシステ
ムリセット信号線389によりリセットされる。
Abnormality detection F/F' 37 is system reset signal line 38
8 is reset. Further, the monitoring timer 32 is also reset by the system reset signal line 389.

監視タイマのカウント時間T1及びT2の値は本実施例
の値とは別にプログラム構成上適切な値が設定されるの
で、その値をジャンパ線切替とか、プログラム設定可能
にすることは容易に行い得るところである。
The values of the count times T1 and T2 of the monitoring timer are set to appropriate values in terms of the program configuration, separate from the values of this embodiment, so it is easy to change the values by switching jumper wires or making them programmable. By the way.

本発明に係る異常検出方式は、従来のウォッチドッグタ
イマの回路に比較して、本実施例に示すように回路35
.36が増加するだけである。
Compared to the conventional watchdog timer circuit, the abnormality detection method according to the present invention has a circuit 35 as shown in this embodiment.
.. 36 only increases.

本発明は、以上説明したように、従来の方式に比較して
少ない金物量の増加で、よシ厳密なプログラムの異常検
出が可能であシ、システム全体としてサービス性の向上
及びシステム全体の金物量を減少させる効果がある。
As explained above, the present invention enables more precise program abnormality detection with a smaller increase in the amount of hardware compared to conventional methods, improves serviceability of the system as a whole, and improves the hardware of the entire system. It has the effect of reducing the amount.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はプログラム異常検出回路のシステム内の位置を
示すブロック図、第2図は本発明に係るプログラム異常
検出回路の一実施例を示す詳細なブロック図である。 10、、、中央処理装置、20.、、プロセッサバス、
30.、。 プログラム異常検出回路、31.、、I10デコーダ、
3200.監視タイマ(カウンタ) 、33.、、監視
クロック生成回路、37.、、異常検出し/F 、34
.35.36.、、論理回路、381〜389.、、信
号線、40.、、 プログラム異常検出信号線
FIG. 1 is a block diagram showing the position of the program abnormality detection circuit in the system, and FIG. 2 is a detailed block diagram showing one embodiment of the program abnormality detection circuit according to the present invention. 10, central processing unit, 20. ,,processor bus,
30. ,. Program abnormality detection circuit, 31. ,,I10 decoder,
3200. Monitoring timer (counter), 33. ,,supervision clock generation circuit, 37. ,,Anomaly detected/F ,34
.. 35.36. ,, Logic circuits, 381-389. ,,signal line,40. ,, Program error detection signal line

Claims (1)

【特許請求の範囲】[Claims] データ交換処理装置において、プログラムからの監視タ
イマのリセット信号を、監視タイマのカウント時間’r
l (Tl〜O)までに受信した場合又はカウント時間
T1からT2 (TI<T2)までの間に受信しなかっ
た場合に、プログラム異常として検出することを特徴と
するプログラム異常検出力式。
In the data exchange processing device, the monitor timer reset signal from the program is sent to the monitor timer count time 'r.
A program abnormality detecting power formula characterized in that a program abnormality is detected when the program is received within a time period of T1 to T2 (TI<T2) or when it is not received within a count time of T1 to T2 (TI<T2).
JP57194245A 1982-11-04 1982-11-04 Program failure detecting system Pending JPS5983438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57194245A JPS5983438A (en) 1982-11-04 1982-11-04 Program failure detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57194245A JPS5983438A (en) 1982-11-04 1982-11-04 Program failure detecting system

Publications (1)

Publication Number Publication Date
JPS5983438A true JPS5983438A (en) 1984-05-14

Family

ID=16321392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57194245A Pending JPS5983438A (en) 1982-11-04 1982-11-04 Program failure detecting system

Country Status (1)

Country Link
JP (1) JPS5983438A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277948A (en) * 1988-09-14 1990-03-19 Toshiba Corp Watchdog timer
US5524117A (en) * 1985-03-22 1996-06-04 Siemens Aktiengesellschaft Microcomputer system with watchdog monitoring of plural and dependent overlapping output therefrom
CN114070828A (en) * 2022-01-17 2022-02-18 中央广播电视总台 Program stream fault detection method and device, computer equipment and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5688546A (en) * 1979-11-15 1981-07-18 Wabco Fahrzeugbremsen Gmbh Function monitor for programmable electronic switching circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5688546A (en) * 1979-11-15 1981-07-18 Wabco Fahrzeugbremsen Gmbh Function monitor for programmable electronic switching circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5524117A (en) * 1985-03-22 1996-06-04 Siemens Aktiengesellschaft Microcomputer system with watchdog monitoring of plural and dependent overlapping output therefrom
JPH0277948A (en) * 1988-09-14 1990-03-19 Toshiba Corp Watchdog timer
CN114070828A (en) * 2022-01-17 2022-02-18 中央广播电视总台 Program stream fault detection method and device, computer equipment and readable storage medium
CN114070828B (en) * 2022-01-17 2022-05-17 中央广播电视总台 Program stream fault detection method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
JPS5983438A (en) Program failure detecting system
JP2870250B2 (en) Microprocessor runaway monitor
JPS6051141B2 (en) Program runaway detection method
JPS6290068A (en) Auxiliary monitor system
JP2749994B2 (en) Numerical control unit
JP2592525B2 (en) Error detection circuit of common bus system
JPS5845054B2 (en) Watchdog timer error relief method
JPS6018714A (en) Watchdog timer
JPS63101917A (en) Method for supervising clock pulse in control device
JPS5819097B2 (en) Computer system monitoring method
JPS6320548A (en) Supervisor/resetting circuit for cpu
JPS5868166A (en) Processor fault monitoring device
JPS6174034A (en) Trouble recovery system of counter
JPS6343561Y2 (en)
JPS6320540A (en) Information processor
JPH01185742A (en) Program runaway detection circuit
JPH0296840A (en) Runaway prevention circuit of central processing unit
JPH053016B2 (en)
JPH01199238A (en) Data processor
JPH0481936A (en) Synchronization control system between plural cpus
JPS62216048A (en) Runaway detecting system for processor
JPH05324407A (en) Cpu monitor system
JPH01209516A (en) System for monitoring timer working
JPH02137047A (en) Input/output controller
JPH06131209A (en) Artificial error generating system