JPH01217646A - Diagnostic process control system for data processor - Google Patents

Diagnostic process control system for data processor

Info

Publication number
JPH01217646A
JPH01217646A JP63043540A JP4354088A JPH01217646A JP H01217646 A JPH01217646 A JP H01217646A JP 63043540 A JP63043540 A JP 63043540A JP 4354088 A JP4354088 A JP 4354088A JP H01217646 A JPH01217646 A JP H01217646A
Authority
JP
Japan
Prior art keywords
time
diagnostic
diagnosis
interval
execution
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
JP63043540A
Other languages
Japanese (ja)
Inventor
Koichi Katsuya
勝谷 光一
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
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 filed Critical NEC Corp
Priority to JP63043540A priority Critical patent/JPH01217646A/en
Publication of JPH01217646A publication Critical patent/JPH01217646A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To eliminate the waiting time for execution of the data processing by storing the time and the date of the final execution of diagnosis and the diagnosis executing interval into a nonvolatile memory and judging before execution of a diagnosing processing whether the time interval between the present time and date and the time and data of the final execution of diagnosis exceeds the diagnosis executing interval or not. CONSTITUTION:When a power supply is applied, a diagnosing process control means 3 fetches the final diagnosis executing date/time t1 out of a nonvolatile memory 1 and the fetches the diagnosis executing interval t2. At the same time, the means 3 refers to a timepiece 2 to fetch the present date/time (t) and then decides whether the time interval between the time (t) and the time t1 exceeds the interval t2 or not. If so, the means 3 starts a diagnosing process means 4 for execution of the diagnosing process. As a result, the waiting time can always be eliminated during execution of the diagnosing process.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理装置の診断処理制御方式に関し、特
に現在の日付時刻を知ることができる時計とハードウェ
アを診断する(以下、単に診断すると称する)診断処理
手段とを有するデータ処理装置におけるデータ処理装置
の診断処理制御方式〔従来の技術〕 従来、この種のデータ処理装置の診断処理制御方式は、
データ処理装置の電源投入直後およびハードウェアリセ
ット時には無条件に診断処理が実行されるように制御し
ていた。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a diagnostic processing control method for a data processing device, and in particular to diagnosing a clock and hardware that can know the current date and time (hereinafter simply referred to as diagnosing). Diagnostic processing control method for a data processing device in a data processing device having a diagnostic processing means (called a diagnostic processing means) [Prior art] Conventionally, a diagnostic processing control method for a data processing device of this type is as follows.
Diagnostic processing was controlled to be executed unconditionally immediately after the data processing device was powered on and when the hardware was reset.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のデータ処理装置の診断処理制御方式では
、近年のハードウェアの信輔性向上にもかかわらずデー
タ処理装置の電源投入直後およびハードウェアリセット
時に無条件に診断処理を実行していたので、データ処理
装置の利用者は診断処理が行われたばかりでもデータ処
理装置を直ちに使用したいときでも診断処理が実行され
ている間は常に待たされるという欠点がある。
In the conventional diagnostic processing control method for a data processing device described above, the diagnostic processing was executed unconditionally immediately after the data processing device was powered on and when the hardware was reset, despite improvements in hardware reliability in recent years. The user of the data processing device has the disadvantage that even if the diagnostic processing has just been performed or if he wants to use the data processing device immediately, he is always forced to wait while the diagnostic processing is being performed.

本発明の目的は、上述の点に鑑み、予め定められた診断
実行間隔を経過するまでは診断処理を行わないように診
断処理制御を行うデータ処理装置の診断処理制御方式を
提供することにある。
In view of the above points, an object of the present invention is to provide a diagnostic processing control method for a data processing device that performs diagnostic processing control such that diagnostic processing is not performed until a predetermined diagnostic execution interval has elapsed. .

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデータ処理装置の診断処理制御方式は、現在の
日付時刻を知ることができる時計とハードウェアを診断
する診断処理手段とを有するデータ処理装置において、
最後に診断を実行した最終診断実行日付時刻と診断を実
行する時間間隔である予め定められた診断実行間隔とを
記憶する不揮発性メモリと、前記データ処理装置にハー
ドウェアの状態を診断する事象が発生したときに前記不
揮発性メモリ内の最終診断実行日付時刻および診断実行
間隔と前記時計に表示されている現在の日付時刻とを基
に現在の日付時刻と最終診断実行日付時刻との間の時間
間隔が診断実行間隔を経過したか否かを判断して経過し
ていなければ前記診断処理手段による診断処理を実行さ
せないように診断処理制御を行う診断処理制御手段とを
有する。
A diagnostic processing control method for a data processing device according to the present invention is a data processing device that includes a clock that can know the current date and time and a diagnostic processing means that diagnoses hardware.
a non-volatile memory that stores the last diagnosis execution date and time and a predetermined diagnosis execution interval that is a time interval at which the diagnosis is executed; The time between the current date and time and the last diagnosis execution date and time based on the last diagnosis execution date and time in the nonvolatile memory when the occurrence occurs, the diagnosis execution interval, and the current date and time displayed on the clock. and a diagnostic processing control means for determining whether or not the interval has passed a diagnostic execution interval, and controlling the diagnostic processing so as not to cause the diagnostic processing means to execute the diagnostic processing if the interval has not passed.

〔作用〕[Effect]

本発明のデータ処理装置の診断処理制御方式では、不揮
発性メモリが最後に診断を実行した最終診断実行日付時
刻と診断を実行する時間間隔である予め定められた診断
実行間隔とを記憶し、診断処理制御手段がデータ処理装
置にハードウェアの状態を診断する事象が発生したとき
に不揮発性メモリ内の最終診断実行日付時刻および診断
実行間隔と時計に表示されている現在の日付時刻とを基
に現在の日付時刻と最終診断実行日付時刻との間の時間
間隔が診断実行間隔を経過したか否かを判断して経過し
ていなければ診断処理手段による診断処理を実行させな
いよう°に診断処理制御を行う。
In the diagnostic processing control method of the data processing device of the present invention, the nonvolatile memory stores the last diagnostic execution date and time when the last diagnosis was performed and a predetermined diagnostic execution interval that is the time interval for performing the diagnosis. When the processing control means diagnoses the hardware status of the data processing device based on the last diagnosis execution date and time and diagnosis execution interval in the nonvolatile memory and the current date and time displayed on the clock. It is determined whether the time interval between the current date and time and the last diagnosis execution date and time has passed the diagnosis execution interval, and if the time interval has not elapsed, the diagnosis processing is controlled so that the diagnosis processing means does not execute the diagnosis processing. I do.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例のデータ処理装置の診断処
理制御方式の構成を示すブロック図である0本実施例の
データ処理装置の診断処理制御方式は、不揮発性メモリ
lと、時計2と、診断処理制御手段3と、診断処理手段
4と、入出力制御装置5と、入出力装置6とから構成さ
れている。
FIG. 1 is a block diagram showing the configuration of a diagnostic processing control method of a data processing device according to an embodiment of the present invention. 2, a diagnostic processing control means 3, a diagnostic processing means 4, an input/output control device 5, and an input/output device 6.

不揮発性メモリ1は、電池等によりバンクアップが可能
で、最後に診断処理を実行した最終診断実行日付時刻t
1と予め定められた診断を実行する時間間隔である診断
実行間隔t!とを格納する。
The non-volatile memory 1 can be banked up using a battery or the like, and stores the last diagnosis execution date and time t when the last diagnosis process was executed.
1 and the diagnosis execution interval t!, which is the time interval at which the predetermined diagnosis is executed. and store it.

時計2は、現在の日付時刻tを示している。Clock 2 shows the current date and time t.

診断処理制御手段3は、診断を実行しなければならない
事象(データ処理装置への電源投入、バードウエアリセ
ント等)が発生すると、不揮発性メモリ1内の最終診断
実行日付時刻t1と診断実行間隔t、とを取り込むとと
もに時計2から現在の日付時刻tを取り込み、現在の日
付時刻tと最終診断実行日付時刻1.との時間間隔が診
断実行間隔t2を経過しているか否かを判断する0診断
実行間隔t、を経過していると判断したならば、診断処
理制御手段3は、診断処理手段4を起動して診断を実行
させ、診断処理手段4からの診断結果通知を受けたとき
に、現在の日付時刻tを最終診断実行日付時刻1.とし
て不揮発性メモリl内に格納するとともに、診断結果が
正常であれば入出力制御装置5を介して入出力装置6か
ら図示しない初期プログラムをメモリにロードおよび実
行して制御を初期プログラムに渡し、診断結果が異常で
あればその旨を利用者に通知する。
When an event that requires a diagnosis to be executed (power-on to the data processing device, hardware recent, etc.) occurs, the diagnostic processing control means 3 stores the final diagnosis execution date and time t1 and the diagnosis execution interval in the non-volatile memory 1. t, and the current date and time t from the clock 2, and the current date and time t and the final diagnosis execution date and time 1. The diagnostic processing control means 3 starts the diagnostic processing means 4 if it is determined that the diagnostic execution interval t has elapsed. When the diagnosis is executed and the diagnosis result notification is received from the diagnosis processing means 4, the current date and time t is set as the last diagnosis execution date and time 1. If the diagnosis result is normal, an initial program (not shown) is loaded and executed from the input/output device 6 to the memory via the input/output control device 5, and control is passed to the initial program. If the diagnosis result is abnormal, the user will be notified to that effect.

また、診断処理制御手段3は、診断実行間隔t2を経過
していないと判断したときには、診断処理手段4を起動
することなく、入出力制御装置5を介して入出力装置6
から初期プログラムをメモリにロードして実行し、制御
を初期プログラムに渡す。
Further, when the diagnostic processing control means 3 determines that the diagnostic execution interval t2 has not elapsed, the diagnostic processing control means 3 controls the input/output device 6 via the input/output control device 5 without activating the diagnostic processing means 4.
Loads the initial program into memory, executes it, and passes control to the initial program.

第2図を参照すると、本実施例のデータ処理装置の診断
処理制御方式における処理は、最終診断実行日付時刻t
1取込みステップ21と、診断実行間隔t2取込みステ
ップ22と、現在の日付時刻を取込みステップ23と、
1−1.≧t2判断ステップ24と、診断処理ステップ
25と、現在の日付時刻tを最終診断実行日付時刻t1
として格納ステップ26と、初期プログラムロードステ
ップ27と、初期プログラム実行ステップ28とからな
る。
Referring to FIG. 2, the processing in the diagnostic processing control method of the data processing device of this embodiment is performed at the final diagnosis execution date and time t.
1 import step 21, diagnostic execution interval t2 import step 22, current date and time import step 23,
1-1. ≧t2 Judgment step 24, diagnosis processing step 25, and the current date and time t are set as the final diagnosis execution date and time t1.
The program consists of a storage step 26, an initial program load step 27, and an initial program execution step 28.

次に、このように構成された本実施例のデータ処理装置
の診断処理制御方式の動作について説明する。
Next, the operation of the diagnostic processing control method of the data processing apparatus of this embodiment configured as described above will be explained.

データ処理装置への電源投入またはハードウェアリセッ
トが行われると、診断処理制御手段3は、不揮発性メモ
リl内の最終診断実行日付時刻t、を取り込み(ステッ
プ21)、診断実行間隔t2を取り込む(ステップ22
)、また、診断処理制御手段3は、時計2を参照して現
在の日付時刻tを取り込む(ステップ23)0次に、診
断処理制御手段3は、現在の日付時刻tと最終診断実行
日付時刻t1との時間間隔が診断実行間隔t2を経過し
ているか否かを判断する(ステップ24)。
When the power is turned on or the hardware is reset to the data processing device, the diagnostic processing control means 3 takes in the last diagnosis execution date and time t in the nonvolatile memory l (step 21), and takes in the diagnosis execution interval t2 (step 21). Step 22
), the diagnostic processing control means 3 refers to the clock 2 and takes in the current date and time t (step 23). Next, the diagnostic processing control means 3 retrieves the current date and time t and the final diagnosis execution date and time It is determined whether the time interval from t1 has passed the diagnosis execution interval t2 (step 24).

診断実行間隔t2を経過していると判断したならば、診
断処理制御手段3は、診断処理手段4を起動して診断処
理を行わせる(ステ、ブ25)。
If it is determined that the diagnostic execution interval t2 has elapsed, the diagnostic processing control means 3 starts the diagnostic processing means 4 to perform the diagnostic processing (Step 25).

診断処理制御手段3から起動された診断処理手段4は、
診断処理を行い、診断結果を診断処理制御手段3に通知
する。
The diagnostic processing means 4 started from the diagnostic processing control means 3,
It performs diagnostic processing and notifies the diagnostic processing control means 3 of the diagnostic results.

診断処理手段4から診断結果の通知を受けた診断処理制
御手段3は、現在の日付時刻tを最終診断実行日付時刻
1.として不揮発性メモリ1に格納する(ステップ26
)、なお、このとき通知された診断結果が異常であれば
、利用者にその旨を通知する。
The diagnosis processing control means 3, which has received the notification of the diagnosis result from the diagnosis processing means 4, sets the current date and time t to the final diagnosis execution date and time 1. (Step 26)
), and if the diagnosis result notified at this time is abnormal, the user will be notified to that effect.

診断結果が正常であった場合およびステップ24で診断
実行間隔(2を経過していないと判断された場合には、
診断処理制御手段3は、入出力制御装置5を介して入出
力装置6から初期プログラムをメモリにロードして(ス
テップ27)、初期プログラムを実行しくステップ2日
)、制御を初期プログラムに渡す。
If the diagnosis result is normal and if it is determined that the diagnosis execution interval (2) has not elapsed in step 24,
The diagnostic processing control means 3 loads the initial program from the input/output device 6 into the memory via the input/output control device 5 (step 27), executes the initial program (step 2), and passes control to the initial program.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、不揮発性メモリに最終診
断実行日付時刻および診断実行間隔を格納して診断処理
を実行する前に現在の日付時刻と最終診断実行日付時刻
との間の時間間隔が診断実行間隔を経過したか否かを判
断するようにしたことにより、データ処理装置の定期的
な診断の実行を可能としたうえで、データ処理装置への
電源投入あるいはハードウェアリセット後席に診断処理
のためにデータ処理の実行を待たされるという事態を改
善することができるという効果がある。
As described above, the present invention stores the final diagnostic execution date and time and the diagnostic execution interval in a nonvolatile memory, and before executing diagnostic processing, the time interval between the current date and time and the final diagnostic execution date and time is stored. By determining whether the diagnostic execution interval has elapsed, it is possible to perform periodic diagnostics of the data processing device, and the diagnostics can be performed immediately after powering on the data processing device or resetting the hardware. This has the effect of being able to improve the situation where data processing is forced to wait for processing.

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

第1図は本発明の一実施例のデータ処理装置の診断処理
制御方式の構成を示すブロック図、第2図は本実施例の
データ処理装置の診断処理制御方式における処理を示す
流れ図である。 図において、 1・・・不揮発性メモリ、 2・・・時計、 3・・・診断処理制御手段、 4・・・診断処理手段、 5・・・入出力制?11装置、 6・・・入出力装置、 t・・・現在の日付時刻、 tl・・・最終診断実行日付時刻、 t:・・・診断実行間隔である。
FIG. 1 is a block diagram showing the configuration of a diagnostic processing control method for a data processing apparatus according to an embodiment of the present invention, and FIG. 2 is a flowchart showing the processing in the diagnostic processing control method for a data processing apparatus according to this embodiment. In the figure, 1...Nonvolatile memory, 2...Clock, 3...Diagnostic processing control means, 4...Diagnostic processing means, 5...Input/output system? 11 devices, 6... input/output device, t... current date and time, tl... final diagnosis execution date and time, t:... diagnosis execution interval.

Claims (1)

【特許請求の範囲】  現在の日付時刻を知ることができる時計とハードウェ
アを診断する診断処理手段とを有するデータ処理装置に
おいて、 最後に診断を実行した最終診断実行日付時刻と診断を実
行する時間間隔である予め定められた診断実行間隔とを
記憶する不揮発性メモリと、前記データ処理装置にハー
ドウェアの状態を診断する事象が発生したときに前記不
揮発性メモリ内の最終診断実行日付時刻および診断実行
間隔と前記時計に表示されている現在の日付時刻とを基
に現在の日付時刻と最終診断実行日付時刻との間の時間
間隔が診断実行間隔を経過したか否かを判断して経過し
ていなければ前記診断処理手段による診断処理を実行さ
せないように診断処理制御を行う診断処理制御手段と、 を有することを特徴とするデータ処理装置の診断処理制
御方式。
[Scope of Claims] In a data processing device having a clock capable of knowing the current date and time and a diagnostic processing means for diagnosing hardware, the last diagnosis execution date and time and the time at which the diagnosis is executed. a non-volatile memory that stores a predetermined diagnostic execution interval; and a last diagnostic execution date and time stored in the non-volatile memory when an event for diagnosing a hardware condition occurs in the data processing device. Based on the execution interval and the current date and time displayed on the clock, it is determined whether the time interval between the current date and time and the final diagnosis execution date and time has passed the diagnosis execution interval. A diagnostic processing control method for a data processing device, comprising: a diagnostic processing control means for controlling the diagnostic processing so as not to cause the diagnostic processing means to execute the diagnostic processing unless the diagnostic processing means executes the diagnostic processing.
JP63043540A 1988-02-26 1988-02-26 Diagnostic process control system for data processor Pending JPH01217646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63043540A JPH01217646A (en) 1988-02-26 1988-02-26 Diagnostic process control system for data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63043540A JPH01217646A (en) 1988-02-26 1988-02-26 Diagnostic process control system for data processor

Publications (1)

Publication Number Publication Date
JPH01217646A true JPH01217646A (en) 1989-08-31

Family

ID=12666569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63043540A Pending JPH01217646A (en) 1988-02-26 1988-02-26 Diagnostic process control system for data processor

Country Status (1)

Country Link
JP (1) JPH01217646A (en)

Similar Documents

Publication Publication Date Title
JPH09244923A (en) Abnormality monitoring device using watchdog timer
JPH01217646A (en) Diagnostic process control system for data processor
JPH0934518A (en) Control processor
JP2002236503A (en) Electronic controller for vehicle
JPS58181160A (en) Controlling system of emergency operation
JP2508305B2 (en) Initial value determination device
JPS6347812A (en) Sleep mode controller
JPS59140572A (en) Electronic apparatus
JPH0581065A (en) Self diagnostic method for programmable controller system
JPH064318A (en) Error detecting system
JP4535663B2 (en) State machine control method and state machine
JPS5833758A (en) Programmable controller
JPH03184134A (en) Pseudo fault generating mechanism for data processor
JPH06314211A (en) Diagnostic method in electronic instrument having power saving function
JPS6118045A (en) Detecting system of program runaway
JP3473002B2 (en) Data processing device and data processing method
JPS6398009A (en) Processing control system at power failure
JPH0635757A (en) Abnormality detector of cpu
JP2002312076A (en) Power supply control device for computer system
JPH0687213B2 (en) Data processing device
JPH09190360A (en) Microcomputer and its ranaway monitoring processing method
JPH033041A (en) Time-out monitoring circuit
JPH0237450A (en) Channel device
JPS62100845A (en) Test system for information processor
JPS6121551A (en) Interface controller