JP2010165007A - Information processor - Google Patents

Information processor Download PDF

Info

Publication number
JP2010165007A
JP2010165007A JP2009004396A JP2009004396A JP2010165007A JP 2010165007 A JP2010165007 A JP 2010165007A JP 2009004396 A JP2009004396 A JP 2009004396A JP 2009004396 A JP2009004396 A JP 2009004396A JP 2010165007 A JP2010165007 A JP 2010165007A
Authority
JP
Japan
Prior art keywords
self
diagnosis
unit
execution
time
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
JP2009004396A
Other languages
Japanese (ja)
Inventor
Takashi Saito
隆 斎藤
Ryozo Kiyohara
良三 清原
Akira Hirata
明 平田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009004396A priority Critical patent/JP2010165007A/en
Publication of JP2010165007A publication Critical patent/JP2010165007A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To shorten a system set-up time in an embedded device by skipping self-diagnosis in turning-on a power source or resetting the device and also to enhance reliability by reliably performing the self-diagnosis when needed. <P>SOLUTION: An embedded device 100 counts times where the self-diagnosis is continuously skipped, and measures time when the self-diagnosis is continuously skipped. When the times for skipping the self-diagnosis or the time for skipping the self-diagnosis reaches a threshold, the self-diagnosis is performed. When both of the self-diagnosis skipping times and skipping time do not reach the thresholds, the self-diagnosis is skipped, so as to set up the system. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、自己診断(セルフテスト)を行う情報処理装置に関し、例えば、カーナビゲーションシステム(以下、カーナビと表記する)等の組込み装置に関する。   The present invention relates to an information processing apparatus that performs a self-diagnosis (self-test), for example, an embedded apparatus such as a car navigation system (hereinafter referred to as a car navigation system).

従来のコンピュータシステムの自己診断(セルフテスト)方法では、システムの起動時に、不揮発性メモリに残されていたそれまでの自己診断実行結果の履歴情報と起動回数条件を元に、対象デバイスのテスト項目毎に自己診断の実行をするかどうかを決める制御を行っている(例えば、特許文献1)。   In the conventional computer system self-diagnosis (self-test) method, the test items of the target device are based on the history information of the self-diagnosis execution results that have been left in the non-volatile memory at the time of system start-up and the number of start-up conditions. Control is performed to determine whether or not to execute self-diagnosis every time (for example, Patent Document 1).

特開平8−129495号公報 第2頁〜5頁、第5図、第10図JP-A-8-129495, pages 2 to 5, FIGS. 5 and 10

従来の自己診断方法は、自己診断の実行を行うかどうかの判断をするために大容量の不揮発性メモリを必要とするため、コストが増大するという課題がある。
また、長い間システムを起動しなかった場合、実際にはハードウェアの状態が変化している可能性が高いにも関わらず、自己診断を行わずにシステム立上げを行うため、通常動作を開始した後に故障が発生する可能性が高くなり、システム動作の信頼性を低下させる結果になるという課題がある。
さらに、カーナビのような組込み装置では、ハードウェアが複雑になり、規模が増大している上に、使用環境が過酷であるにも関わらず、良好な環境で使用されるコンピュータでも行われている電源投入時やリセット後の自己診断を実行していないため、故障が発生してもシステム動作不良が発生するまで発見できず、システム動作の信頼性を低下させるという課題がある。
The conventional self-diagnosis method requires a large-capacity nonvolatile memory in order to determine whether or not to execute the self-diagnosis, and thus has a problem that the cost increases.
Also, if the system has not been started for a long time, it is likely that the hardware status has actually changed, but the system is started without performing self-diagnosis. After that, there is a problem that the possibility that a failure will occur increases, resulting in a decrease in the reliability of the system operation.
Furthermore, in an embedded device such as a car navigation system, the hardware is complicated, the scale is increased, and the computer is used in a good environment even though the environment is severe. Since self-diagnosis is not performed when power is turned on or after reset, there is a problem that even if a failure occurs, it cannot be discovered until a system operation failure occurs, reducing the reliability of the system operation.

この発明は上記のような課題を解決することを主な目的の一つとし、カーナビのように過酷な環境で使用される組込み装置をはじめとする情報処理装置において、電源投入時やリセット実行時に、毎回の自己診断の実行によるシステムの立上げ時間を長くするのを避けた上で、必要な時には確実に自己診断を実行することにより、情報処理装置のシステムとしての信頼性を向上させることを主な目的とする。   One of the main objects of the present invention is to solve the above-described problems. In an information processing apparatus such as an embedded apparatus used in a harsh environment such as a car navigation system, when power is turned on or reset is performed. To improve the reliability of the information processing system by avoiding lengthening the system start-up time by executing self-diagnosis every time, and by executing self-diagnosis reliably when necessary Main purpose.

本発明に係る情報処理装置は、
立上げ処理時に自己診断を行うとともに、所定の場合に立上げ処理時の自己診断を省略できる情報処理装置であって、
連続して自己診断が省略された立上げ処理の回数を自己診断省略連続回数としてカウントする回数カウント部と、
継続して自己診断が行われていない時間を自己診断省略継続時間として計時する計時部と、
立上げ処理時において、前記回数カウント部によりカウントされた自己診断省略連続回数が閾値以上であるか否かを判定するとともに、前記計時部により計時された自己診断省略継続時間が閾値以上であるか否かを判定して、当該立上げ処理時において自己診断を行うか否かを決定する自己診断決定部とを有することを特徴とする。
An information processing apparatus according to the present invention includes:
An information processing apparatus capable of performing self-diagnosis during start-up processing and omitting self-diagnosis during start-up processing in a predetermined case,
A count unit that counts the number of start-up processes in which self-diagnosis is omitted continuously as a self-diagnosis skipped continuous number;
A timekeeping unit that counts the time during which self-diagnosis is not performed continuously as self-diagnosis skipping continuation time;
During start-up processing, it is determined whether or not the number of consecutive self-diagnosis skips counted by the number-of-times counting unit is greater than or equal to a threshold value, and whether or not the duration of self-diagnosis skipped time counted by the timing unit is greater than or equal to a threshold value A self-diagnosis determining unit that determines whether or not to perform self-diagnosis during the start-up process.

本発明によれば、連続して自己診断を省略している回数をカウントし、また、継続して自己診断を省略している時間を計測し、自己診断を省略している回数及び自己診断を省略している時間を閾値と比較して自己診断を行うか否かを決定するので、閾値に達していない場合は自己診断を省略し閾値に達していれば自己診断を実施し、これにより、装置の立上げ時間の短縮を図るとともに装置の信頼性を向上させることができる。   According to the present invention, the number of times the self-diagnosis is omitted continuously is counted, the time when the self-diagnosis is continuously omitted is measured, and the number of times the self-diagnosis is omitted and the self-diagnosis are Since it is determined whether or not self-diagnosis is performed by comparing the omitted time with a threshold, if the threshold is not reached, the self-diagnosis is omitted and if the threshold is reached, the self-diagnosis is performed. The start-up time of the apparatus can be shortened and the reliability of the apparatus can be improved.

実施の形態1に係る組込み装置の構成例を示す図。FIG. 3 is a diagram illustrating a configuration example of an embedded device according to the first embodiment. 実施の形態2に係る組込み装置の構成例を示す図。FIG. 6 is a diagram illustrating a configuration example of an embedded device according to a second embodiment. 実施の形態3に係る組込み装置の構成例を示す図。FIG. 10 is a diagram illustrating a configuration example of an embedded device according to a third embodiment. 実施の形態4に係る組込み装置の構成例を示す図。FIG. 10 is a diagram illustrating a configuration example of an embedded device according to a fourth embodiment. 実施の形態5に係る組込み装置の構成例を示す図。FIG. 6 shows a configuration example of an embedded device according to a fifth embodiment. 実施の形態6に係る組込み装置の構成例を示す図。FIG. 10 shows a configuration example of an embedded device according to a sixth embodiment. 実施の形態7に係る組込み装置の構成例を示す図。FIG. 10 illustrates a configuration example of an embedded device according to a seventh embodiment. 実施の形態8に係る組込み装置の構成例を示す図。FIG. 10 shows a configuration example of an embedded device according to an eighth embodiment. 実施の形態9に係る組込み装置の構成例を示す図。FIG. 10 shows a configuration example of an embedded device according to Embodiment 9. 実施の形態10に係る組込み装置の構成例を示す図。FIG. 18 illustrates a configuration example of an embedded device according to a tenth embodiment. 実施の形態11に係る組込み装置の構成例を示す図。FIG. 18 shows a configuration example of an embedded device according to Embodiment 11. 実施の形態12に係る組込み装置の構成例を示す図。FIG. 18 shows a configuration example of an embedded device according to Embodiment 12. 実施の形態13に係る組込み装置の構成例を示す図。FIG. 18 shows a configuration example of an embedded device according to Embodiment 13; 実施の形態14に係る組込み装置の構成例を示す図。FIG. 18 shows a configuration example of an embedded device according to Embodiment 14; 実施の形態15に係る組込み装置の構成例を示す図。FIG. 18 shows a configuration example of an embedded device according to Embodiment 15. 実施の形態1に係る組込み装置の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example of the embedded device according to the first embodiment. 実施の形態3に係る組込み装置の動作例を示すフローチャート図。FIG. 10 is a flowchart showing an operation example of the embedded device according to the third embodiment. 実施の形態3に係る組込み装置の動作例を示すフローチャート図。FIG. 10 is a flowchart showing an operation example of the embedded device according to the third embodiment. 実施の形態4に係る組込み装置の動作例を示すフローチャート図。FIG. 10 is a flowchart showing an operation example of the embedded device according to the fourth embodiment. 実施の形態4に係る組込み装置の動作例を示すフローチャート図。FIG. 10 is a flowchart showing an operation example of the embedded device according to the fourth embodiment. 実施の形態5に係る組込み装置の動作例を示すフローチャート図。FIG. 10 is a flowchart showing an operation example of the embedded device according to the fifth embodiment. 実施の形態5に係る組込み装置の動作例を示すフローチャート図。FIG. 10 is a flowchart showing an operation example of the embedded device according to the fifth embodiment. 実施の形態7に係る組込み装置の動作例を示すフローチャート図。FIG. 18 is a flowchart showing an operation example of the embedded device according to the seventh embodiment. 実施の形態7に係る組込み装置の動作例を示すフローチャート図。FIG. 18 is a flowchart showing an operation example of the embedded device according to the seventh embodiment. 実施の形態8に係る組込み装置の動作例を示すフローチャート図。FIG. 19 is a flowchart showing an operation example of the embedded device according to the eighth embodiment. 実施の形態8に係る組込み装置の動作例を示すフローチャート図。FIG. 19 is a flowchart showing an operation example of the embedded device according to the eighth embodiment. 実施の形態9に係る組込み装置の動作例を示すフローチャート図。FIG. 25 is a flowchart showing an operation example of the embedded device according to the ninth embodiment. 実施の形態9に係る組込み装置の動作例を示すフローチャート図。FIG. 25 is a flowchart showing an operation example of the embedded device according to the ninth embodiment. 実施の形態11に係る組込み装置の動作例を示すフローチャート図。FIG. 22 is a flowchart showing an operation example of the embedded device according to the eleventh embodiment. 実施の形態11に係る組込み装置の動作例を示すフローチャート図。FIG. 22 is a flowchart showing an operation example of the embedded device according to the eleventh embodiment. 実施の形態12に係る組込み装置の動作例を示すフローチャート図。FIG. 19 is a flowchart showing an operation example of the embedded device according to the twelfth embodiment. 実施の形態12に係る組込み装置の動作例を示すフローチャート図。FIG. 19 is a flowchart showing an operation example of the embedded device according to the twelfth embodiment. 実施の形態13に係る組込み装置の動作例を示すフローチャート図。FIG. 23 is a flowchart showing an operation example of the embedded device according to the thirteenth embodiment. 実施の形態13に係る組込み装置の動作例を示すフローチャート図。FIG. 23 is a flowchart showing an operation example of the embedded device according to the thirteenth embodiment. 実施の形態15に係る組込み装置の動作例を示すフローチャート図。FIG. 25 is a flowchart showing an operation example of the embedded device according to the fifteenth embodiment. 実施の形態15に係る組込み装置の動作例を示すフローチャート図。FIG. 25 is a flowchart showing an operation example of the embedded device according to the fifteenth embodiment. 実施の形態16に係る組込み装置の動作例を示すフローチャート図。FIG. 25 is a flowchart showing an operation example of the embedded device according to the sixteenth embodiment.

実施の形態1.
図1は、本実施の形態に係る組込み装置100の構成を示すブロック図である。
図1において、CPU(Central Processing Unit)1は自己診断を実行するマイクロプロセッサである。
ROM(Read Only Memory)2は、CPU1が実行する初期化、自己診断プログラム、通常動作用システムプログラムのブートローダもしくは通常動作用システムプログラムそのものが記憶された記憶装置である。
RAM(Random Access Memory)3は、システムプログラムのブート先であり、また、ROM2に格納された種々のプログラムやシステムプログラムの実行時に必要な変数などを記憶したりするためのメモリである。
RTC(Real Time Clock)4はバッテリバックアップされた時計である。
入力部5は、押しボタンなどで構成される。
表示部6は、LCD(Liquid Crystal Display)などで構成される。
DVD/CD7は、DVDやCD(Compact Disc)などの外付け記憶メディア読み込み装置である。
HDD(Hard Disk Drive)8は、ハードディスク装置である。
バッテリ9は、組込み装置100の電源である。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of an embedded device 100 according to the present embodiment.
In FIG. 1, a CPU (Central Processing Unit) 1 is a microprocessor that executes self-diagnosis.
A ROM (Read Only Memory) 2 is a storage device that stores initialization executed by the CPU 1, a self-diagnostic program, a boot loader for a normal operation system program, or the normal operation system program itself.
A RAM (Random Access Memory) 3 is a boot destination of the system program, and is a memory for storing various programs stored in the ROM 2 and variables necessary for executing the system program.
An RTC (Real Time Clock) 4 is a battery-backed timepiece.
The input unit 5 includes a push button or the like.
The display unit 6 includes an LCD (Liquid Crystal Display) or the like.
The DVD / CD 7 is an external storage medium reading device such as a DVD or a CD (Compact Disc).
An HDD (Hard Disk Drive) 8 is a hard disk device.
The battery 9 is a power source for the embedded device 100.

立上げ成功フラグ10は、組込み装置100の前回立上げ時に正常に立上げに成功したか否かを示すフラグである。
連続立上げ成功回数カウント部11は、連続して立上げに成功した連続立上げ成功回数をカウントする。後述するように、連続立上げ成功回数カウント部11がカウントする連続立上げ成功回数は、連続して自己診断が省略された立ち上げ処理の回数(自己診断省略連続回数)に相当し、連続立上げ成功回数カウント部11は回数カウント部の例である。
自己診断非実行回数設定部12は、連続立上げ成功回数の上限値を設定する。
自己診断非実行期間設定部13は、一度立上げが成功した後自己診断を実行しない期間である自己診断非実行期間を設定する。
自己診断非実行期限設定部14は、一度立上げが成功した後自己診断が猶予される期限(時刻)である自己診断非実行期限を設定する。
なお、後述するように、RTC4、自己診断非実行期間設定部13及び自己診断非実行期限設定部14は、協働して自己診断が行われていない時間(自己診断省略継続時間)を計時し、それぞれ計時部の例に相当する。
自己診断決定部15は、立上げ処理時において、連続立上げ成功回数カウント部11によりカウントされた連続立上げ成功回数が自己診断非実行回数(閾値)に達しているか否かを判定するとともに、RTC4、自己診断非実行期間設定部13及び自己診断非実行期限設定部14により計時された自己診断が省略されている時間が自己診断非実行期限(閾値)に達しているか否かを判定し、連続立上げ成功回数が自己診断非実行回数に達している場合及び自己診断が省略されている時間が自己診断非実行期限に達している場合の少なくともいずれかにおいて自己診断を行うよう決定する。
The startup success flag 10 is a flag indicating whether or not the startup has been successfully completed when the embedded device 100 was started up last time.
The continuous startup success number counting unit 11 counts the number of successful continuous startups that have been successfully started up. As will be described later, the continuous startup success number counted by the continuous startup success number counting unit 11 corresponds to the number of startup processes in which self-diagnosis is omitted (self-diagnosis skipped continuous number). The success count counter 11 is an example of a count counter.
The self-diagnosis non-execution number setting unit 12 sets an upper limit value of the number of successful continuous startups.
The self-diagnosis non-execution period setting unit 13 sets a self-diagnosis non-execution period, which is a period during which the self-diagnosis is not executed after successful startup.
The self-diagnosis non-execution time limit setting unit 14 sets a self-diagnosis non-execution time limit that is a time limit (time) for which self-diagnosis is suspended after successful startup.
As will be described later, the RTC 4, the self-diagnosis non-execution period setting unit 13 and the self-diagnosis non-execution time limit setting unit 14 work together to measure the time during which self-diagnosis is not performed (self-diagnosis omission duration). , Each corresponds to an example of a timing unit.
The self-diagnosis determination unit 15 determines whether or not the continuous startup success count counted by the continuous startup success count counter 11 has reached the self-diagnosis non-execution count (threshold) during the startup process. It is determined whether the time when the self-diagnosis timed by the RTC 4, the self-diagnosis non-execution period setting unit 13 and the self-diagnosis non-execution period setting unit 14 has reached the self-diagnosis non-execution period (threshold) The self-diagnosis is determined to be performed at least one of when the number of continuous startup successes has reached the number of times of self-diagnosis non-execution and when the time when self-diagnosis is omitted has reached the self-diagnosis non-execution deadline.

なお、本実施の形態では、立上げ成功フラグ10、連続立上げ成功回数カウント部11、自己診断非実行回数設定部12、自己診断非実行期間設定部13および自己診断非実行期限設定部14は、それぞれハードウェアである。
一方、自己診断決定部15は、ROM2の自己診断プログラムのうちの一部のプログラムである。
また、RTC4、立上げ成功フラグ10、連続立上げ成功回数カウント部11、自己診断非実行回数設定部12、自己診断非実行期間設定部13および自己診断非実行期限設定部14はバッテリ9によりバックアップされている。
In the present embodiment, the startup success flag 10, the continuous startup success count unit 11, the self-diagnosis non-execution count setting unit 12, the self-diagnosis non-execution period setting unit 13, and the self-diagnosis non-execution deadline setting unit 14 , Each is hardware.
On the other hand, the self-diagnosis determination unit 15 is a part of the self-diagnosis program stored in the ROM 2.
Further, the RTC 4, the startup success flag 10, the continuous startup success frequency counting unit 11, the self-diagnosis non-execution frequency setting unit 12, the self-diagnosis non-execution period setting unit 13 and the self-diagnosis non-execution time limit setting unit 14 are backed up by the battery 9. Has been.

次に、動作について説明する。
組込み装置100の電源が投入されるか、リセットが実行されると、ROM2に格納された自己診断プログラムがCPU1により読み出され、実行される。
図16はこの時の動作を示すフローチャートであり、図16を用いて組込み装置100の動作を説明する。
Next, the operation will be described.
When the power of the embedded device 100 is turned on or reset is executed, the self-diagnosis program stored in the ROM 2 is read out and executed by the CPU 1.
FIG. 16 is a flowchart showing the operation at this time. The operation of the embedded device 100 will be described with reference to FIG.

自己診断プログラムでは、まず、自己診断決定部15が立上げ成功フラグ10の状態を読取る(101)。
そして立上げ成功フラグ10がセットされているかどうか判断する(102)。
立上げ成功フラグ10がセットされていなければ、自己診断決定部15は、まだ自己診断が正常終了していないと判断し、自己診断の実行を決定し、立上げ成功フラグ10をクリアし(110)、連続立上げ成功回数カウント部11をクリアする(111)。
そして、自己診断プログラムがハードウェアの自己診断を実行する(112)。
自己診断実行後、自己診断決定部15は、自己診断でエラーが発生したかどうかをチェックする(113)。
エラーが発生せず正常終了した場合には、自己診断決定部15は、立上げ成功フラグをセットし(114)、RTC4から読み出した時刻に自己診断非実行期間設定部13に設定されている時間を加えた時刻を自己診断非実行期限設定部14にセットする(115)。
そして、自己診断決定部15が連続立上げ成功回数カウント部11の内容を1増やした(116)後、自己診断プログラムの実行を終了し、実システムの立上げを開始する。
もしも、自己診断でエラーが発生した場合には、自己診断決定部15は、立上げ成功フラグ10のセットは行わず、エラー発生の表示を行い(117)、システムの立上げを中止する。
In the self-diagnosis program, first, the self-diagnosis determination unit 15 reads the state of the startup success flag 10 (101).
Then, it is determined whether the startup success flag 10 is set (102).
If the startup success flag 10 is not set, the self-diagnosis determination unit 15 determines that the self-diagnosis has not been completed normally, determines execution of the self-diagnosis, and clears the startup success flag 10 (110 ), The continuous startup success count section 11 is cleared (111).
Then, the self-diagnosis program executes hardware self-diagnosis (112).
After executing the self-diagnosis, the self-diagnosis determination unit 15 checks whether an error has occurred in the self-diagnosis (113).
If no error occurs and the process ends normally, the self-diagnosis determination unit 15 sets the startup success flag (114), and the time set in the self-diagnosis non-execution period setting unit 13 at the time read from the RTC 4 Is set in the self-diagnosis non-execution time limit setting unit 14 (115).
Then, after the self-diagnosis determining unit 15 increases the content of the continuous startup success number counting unit 11 by 1 (116), the execution of the self-diagnosis program is terminated and the actual system is started up.
If an error occurs in the self-diagnosis, the self-diagnosis determination unit 15 does not set the start-up success flag 10, displays an error occurrence (117), and stops the system start-up.

一方、ステップ102において、立上げ成功フラグ10がセットされていれば、自己診断決定部15は、少なくとも1度は自己診断の実行が正常終了したと判断し、連続立上げ成功回数カウント部11の内容と自己診断非実行回数設定部12の内容を比較する(103)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部22の内容を超えていた場合には、既に指定された回数だけ自己診断の実行を省略済なので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(110)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部12の内容を超えていなかった場合には、自己診断決定部15は、RTC4から読み出した時刻と自己診断非実行期限設定部14にセットされていた時刻の比較を行う(104)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていた場合、指定された時間を超えて自己診断を実行していないことになるので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(110)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていなかった場合、自己診断決定部15は自己診断の省略を決定し、連続立上げ成功回数カウント部11の内容を1増やし(116)、自己診断プログラムの終了と実システムの立上げ開始を行う。
On the other hand, if the startup success flag 10 is set in step 102, the self-diagnosis determination unit 15 determines that the execution of the self-diagnosis has been normally completed at least once. The contents are compared with the contents of the self-diagnosis non-execution frequency setting unit 12 (103).
When the content of the continuous startup success number counting unit 11 exceeds the content of the self-diagnosis non-execution frequency setting unit 22, the self-diagnosis determination unit 15 has omitted the execution of the self-diagnosis by the number of times already specified. After execution of the self-diagnosis is determined and the startup success flag 10 is cleared, the self-diagnosis program performs self-diagnosis (110).
If the content of the continuous startup success count unit 11 does not exceed the content of the self-diagnosis non-execution number setting unit 12, the self-diagnosis determination unit 15 reads the time read from the RTC 4 and the self-diagnosis non-execution time limit setting unit The time set in 14 is compared (104).
If the time read from the RTC 4 has passed the time set in the self-diagnosis non-execution deadline setting unit 14, the self-diagnosis has not been executed beyond the specified time, so the self-diagnosis determination unit 15 Determines execution of self-diagnosis, and after the processing after clearing the startup success flag 10, the self-diagnosis program performs self-diagnosis (110).
If the time read from the RTC 4 has not passed the time set in the self-diagnosis non-execution time limit setting unit 14, the self-diagnosis determination unit 15 determines omission of self-diagnosis, and the continuous startup success count counter 11 The content is incremented by 1 (116), and the self-diagnosis program is terminated and the actual system is started.

なお、RTC4の時刻、自己診断非実行回数設定部12の自己診断省略回数、自己診断非実行期間設定部13の自己診断省略期間の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The time of the RTC 4, the number of times of self-diagnosis omission of the self-diagnosis non-execution setting unit 12, and the setting of the self-diagnosis omission period of the self-diagnosis non-execution period setting unit 13 are set in advance by the user using the setting function of the self-diagnosis program I can keep it.

以上のように、本実施の形態では一度自己診断が成功すれば、その後決めた回数だけ電源投入もしくはリセット実行時の自己診断の実行を省略するので、その間はシステムの立上げ時間を短くすることができる。
また、もしも長い時間電源の投入やリセットが行われなかった場合には、自己診断の省略回数が指定された回数に達していなくとも自己診断を実行するため、ハードウェアの故障などが発生していた場合でも確実に故障を指摘できるため、システムの信頼性を向上することが可能になる。
As described above, in this embodiment, once self-diagnosis is successful, the execution of self-diagnosis at the time of power-on or reset execution is omitted for a predetermined number of times. Can do.
If the power is not turned on or reset for a long time, the self-diagnosis is executed even if the specified number of self-diagnosis has not been reached. Therefore, it is possible to improve the reliability of the system because the failure can be pointed out reliably.

以上、本実施の形態では、カーナビのように過酷な動作環境で使用することを目的とした組込み装置の電源投入時もしくはリセット実行時の自己診断の実行において、前回の組込み装置の立上げが成功したかどうかを記憶する立上げ成功フラグと、一度立上げが成功した後連続して立上げが成功した回数をカウントする連続立上げ成功回数カウント手段とその閾値を設定するための自己診断非実行回数設定手段、一度立上げが成功した後自己診断を実行しない期間を設定するための自己診断非実行期間設定手段と自己診断非実行期限を設定するための自己診断非実行期限設定手段を設け、一度全ての自己診断の実行が正常に終了すると立上げ成功フラグをセットし、連続立上げ成功回数カウント手段をゼロにクリアし、自己診断が成功した現在の時刻に自己診断非実行期間設定手段に設定された時間を加えた時刻を自己診断非実行期限設定手段に設定することにより、次回以降の電源投入もしくはリセット実行時には、立上げ成功回数カウント手段が自己診断非実行回数設定手段に設定された値を超えるか、電源投入もしくはリセットが実行された時刻が自己診断非実行期限設定手段に設定されている時刻を過ぎるまでは、自己診断を実行せず、連続立上げ成功回数カウント手段を1増やすのみで、通常システムの立上げを開始する組込み装置の自己診断の実行制御方法を説明した。   As described above, in this embodiment, the previous startup of the embedded device succeeded in the self-diagnosis at the time of power-on or reset execution of the embedded device intended for use in a harsh operating environment such as a car navigation system. Startup success flag that stores whether or not it has been successful, continuous startup success count counter that counts the number of successful startups after successful startup, and self-diagnosis non-execution to set the threshold A number setting means, a self-diagnosis non-execution period setting means for setting a period in which self-diagnosis is not executed after successful start-up and a self-diagnosis non-execution deadline setting means for setting a self-diagnosis non-execution deadline are provided, Once all self-diagnostics have been successfully executed, the startup success flag is set, the continuous startup success count counter is cleared to zero, and the self-diagnosis has succeeded. By adding the time set in the self-diagnostic non-execution period setting means to the self-diagnosis non-execution time limit setting means, the next successful power-on count or the reset execution means Self-diagnosis is not executed until the value set in the self-diagnosis non-execution count setting means is exceeded or the time when the power is turned on or reset passes the time set in the self-diagnosis non-execution deadline setting means The execution control method of the self-diagnosis of the built-in device that starts the normal system start-up by only increasing the continuous start-up success count counting means by 1 has been described.

実施の形態2.
以上の実施の形態1では、立上げ成功フラグ10、連続立上げ成功回数カウント部11、自己診断非実行回数設定部12、自己診断非実行期間設定部13、自己診断非実行期限設定部14を個別のハードウェアとして実現するようにしたものであるが、次にこれらを小容量のバッテリバックアップされたRAMに記憶するようにした場合の実施の形態を示す。
図2は、このような場合の組込み装置の構成を示すブロック図である。
バッテリバックアップされたRAM20の決まったアドレスを立上げ成功フラグ10、連続立上げ成功回数カウント部11、自己診断非実行回数設定部12、自己診断非実行期間設定部13、自己診断非実行期限設定部14として割付ける。
なお、図2では、自己診断決定部15もRAM20に格納している例を示している。
自己診断決定部15は、実施の形態1と同様に、自己診断プログラムの一部としてROM2に格納されているようにしてもよい。なお、以降の実施の形態でも同様に自己診断決定部15がRAM20に格納されている例を示しているが、以降の実施の形態でも、自己診断決定部15は自己診断プログラムの一部としてROM2に格納されているようにしてもよい。
動作は実施の形態1の場合と同じある。
つまり、ROM2に格納された自己診断プログラムがCPU1により読み出されるときに、RAM20に格納されている各要素もCPU1により読み出され、動作可能となり、以降は、実施の形態1と同様の手順にて自己診断の要否を決定する。
Embodiment 2. FIG.
In the first embodiment described above, the startup success flag 10, the continuous startup success frequency count unit 11, the self-diagnosis non-execution frequency setting unit 12, the self-diagnosis non-execution period setting unit 13, and the self-diagnosis non-execution time limit setting unit 14 are set. Although implemented as individual hardware, an embodiment in which these are stored in a small-capacity battery-backed RAM will be described next.
FIG. 2 is a block diagram showing the configuration of the embedded device in such a case.
A predetermined address of the battery-backed RAM 20 is set to a successful startup flag 10, a continuous startup success frequency count unit 11, a self-diagnosis non-execution frequency setting unit 12, a self-diagnosis non-execution period setting unit 13, and a self-diagnosis non-execution time limit setting unit Assign as 14.
FIG. 2 shows an example in which the self-diagnosis determination unit 15 is also stored in the RAM 20.
The self-diagnosis determination unit 15 may be stored in the ROM 2 as a part of the self-diagnosis program as in the first embodiment. In the following embodiments, the self-diagnosis determination unit 15 is similarly stored in the RAM 20, but in the following embodiments, the self-diagnosis determination unit 15 is a ROM 2 as a part of the self-diagnosis program. You may make it store in.
The operation is the same as in the first embodiment.
That is, when the self-diagnosis program stored in the ROM 2 is read by the CPU 1, each element stored in the RAM 20 is also read by the CPU 1 and becomes operable. Thereafter, the same procedure as in the first embodiment is performed. Determine whether self-diagnosis is necessary.

本実施の形態によれば、自己診断の実行制御用に記憶すべき情報量が少なくて済み、小容量のRAMを利用して自己診断実行制御を実現できるため、自己診断実行制御のためのハードウェアを低コストで実現できる。さらに、RTCに内蔵されるRAMを利用すれば、自己診断実行制御のために専用に設けるハードウェアが不要となり、組込み装置をさらに低コストで実現することができる。   According to the present embodiment, the amount of information to be stored for self-diagnosis execution control can be reduced, and self-diagnosis execution control can be realized using a small-capacity RAM. Wear can be realized at low cost. Furthermore, if the RAM built in the RTC is used, hardware dedicated for self-diagnosis execution control is not required, and an embedded device can be realized at a lower cost.

以上、本実施の形態では、立上げ成功フラグ、連続立上げ成功回数カウント手段、自己診断非実行回数設定手段、自己診断非実行期間設定手段、自己診断非実行期限設定手段はバッテリバックアップした小規模のRAMやFLASHなどの小規模の不揮発性メモリ、もしくは他の目的で既に実装済のバッテリバックアップしたRAMやFLASHなどの不揮発性メモリの一部を共有して使用する組込み装置の自己診断実行制御方法を説明した。   As described above, in the present embodiment, the startup success flag, the continuous startup success frequency counting means, the self-diagnosis non-execution frequency setting means, the self-diagnosis non-execution period setting means, and the self-diagnosis non-execution deadline setting means are small-scale backed up by a battery. Self-diagnosis execution control method for embedded devices that share and use a part of a small-sized non-volatile memory such as RAM or FLASH, or a battery-backed non-volatile memory such as RAM or FLASH already mounted for other purposes Explained.

実施の形態3.
以上の実施の形態では、電源投入もしくはリセット実行後に自己診断の実行を省略した回数および自己診断が成功してから経過した時間で制御するものであるが、次にこれに加えて組込み装置が動作する環境の温度も自己診断の実行を制御する条件に入れるようにした場合の実施の形態を示す。
Embodiment 3 FIG.
In the above embodiment, control is performed by the number of times the execution of self-diagnosis is omitted after power-on or reset execution and the time elapsed after successful self-diagnosis. An embodiment in which the temperature of the environment to be entered is also included in the conditions for controlling the execution of the self-diagnosis is shown.

図3は、その場合の組込み装置100の構成を示すブロック図である。
図3において、30は温度センサなどの温度測定部、31はその温度を超えるとハードウェアの故障発生率が高くなるような上限温度を設定するための上限温度設定部、32は温度異常発生フラグである。温度測定部30は、動作環境測定部の例である。
また、図3において、図2と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 3 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 3, 30 is a temperature measurement unit such as a temperature sensor, 31 is an upper limit temperature setting unit for setting an upper limit temperature at which the hardware failure rate increases when the temperature is exceeded, and 32 is a temperature abnormality occurrence flag. It is. The temperature measurement unit 30 is an example of an operating environment measurement unit.
In FIG. 3, the same reference numerals as those in FIG. 2 denote the same parts or parts that perform the same function.

次に動作について説明する。
組込み装置100の電源が投入されるか、リセットが実行されると、ROM2に格納された自己診断プログラムがCPU1により読み出され、実行される。また、このとき、RAM20に格納されている各要素もCPU1により読み出され、動作可能となる。
図17はこの時動作を示すフローチャートであり、図17を用いて動作を説明する。
Next, the operation will be described.
When the power of the embedded device 100 is turned on or reset is executed, the self-diagnosis program stored in the ROM 2 is read out and executed by the CPU 1. At this time, each element stored in the RAM 20 is also read out by the CPU 1 and becomes operable.
FIG. 17 is a flowchart showing the operation at this time, and the operation will be described with reference to FIG.

自己診断決定部15は、まず立上げ成功フラグ10の状態を読取る(301)。
そして立上げ成功フラグがセットされているかどうか判断する(302)。
立上げ成功フラグがセットされていなければ、自己診断決定部15は、まだ自己診断が正常終了していないと判断し、立上げ成功フラグ10をクリアし(310)、連続立上げ成功回数カウント部11をクリアする(311)。
さらに、自己診断決定部15は、温度異常発生フラグ32をクリアする(320)。
そして、自己診断プログラムが、ハードウェアの自己診断を実行する(312)。
自己診断実行後、自己診断決定部15は、自己診断でエラーが発生したかどうかをチェックする(313)。
エラーが発生せず正常終了した場合には、自己診断決定部15は、立上げ成功フラグをセットし(314)、RTC4から読み出した時刻に自己診断非実行期間設定部13に設定されている時間を加えた時刻を自己診断非実行期限設定部14にセットする(315)。
そして、自己診断決定部15が連続立上げ成功回数カウント部11の内容を1増やした(316)後、自己診断プログラムの実行を終了し、実システムの立上げを開始する。
もしも、自己診断でエラーが発生した場合には、自己診断決定部15は、立上げ成功フラグ10のセットは行わず、エラー発生の表示を行い(317)、システムの立上げを中止する。
First, the self-diagnosis determination unit 15 reads the state of the startup success flag 10 (301).
Then, it is determined whether the startup success flag is set (302).
If the startup success flag is not set, the self-diagnosis determination unit 15 determines that the self-diagnosis has not ended normally, clears the startup success flag 10 (310), and continuously counts the number of successful startups. 11 is cleared (311).
Further, the self-diagnosis determination unit 15 clears the temperature abnormality occurrence flag 32 (320).
Then, the self-diagnosis program executes hardware self-diagnosis (312).
After executing the self-diagnosis, the self-diagnosis determination unit 15 checks whether an error has occurred in the self-diagnosis (313).
If no error occurs and the process ends normally, the self-diagnosis determination unit 15 sets a startup success flag (314), and the time set in the self-diagnosis non-execution period setting unit 13 at the time read from the RTC 4 Is set in the self-diagnosis non-execution time limit setting unit 14 (315).
Then, after the self-diagnosis determining unit 15 increments the content of the continuous startup success number counting unit 11 by one (316), the execution of the self-diagnosis program is terminated and the start-up of the actual system is started.
If an error occurs in the self-diagnosis, the self-diagnosis determination unit 15 does not set the startup success flag 10 but displays an error occurrence (317) and stops the system startup.

一方、ステップ302において、立上げ成功フラグ10がセットされていれば、自己診断決定部15は、少なくとも1度は自己診断の実行が正常終了したと判断し、連続立上げ成功回数カウント部11の内容と自己診断非実行回数設定部12の内容を比較する(303)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部22の内容を超えていた場合には、既に指定された回数だけ自己診断の実行を省略済なので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(310)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部12の内容を超えていなかった場合には、自己診断決定部15は、RTC4から読み出した時刻と自己診断非実行期限設定部14にセットされていた時刻の比較を行う(304)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていた場合、指定された時間を超えて自己診断を実行していないことになるので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(310)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていなかった場合、自己診断決定部15は、温度異常発生フラグ32をチェックする(305)。
温度異常フラグがセットされていた場合、異常高温が発生しハードウェア故障が発生した可能性があるため、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(310)。
温度異常発生フラグがセットされていなかった場合には、自己診断決定部15は自己診断の省略を決定し、連続立上げ成功回数カウント部11の内容を1増やし(316)、自己診断プログラムの終了と実システムの立上げ開始を行う。
On the other hand, if the startup success flag 10 is set in step 302, the self-diagnosis determination unit 15 determines that the execution of the self-diagnosis has been normally completed at least once, and the continuous startup success count counter 11 The contents are compared with the contents of the self-diagnosis non-execution count setting unit 12 (303).
When the content of the continuous startup success number counting unit 11 exceeds the content of the self-diagnosis non-execution frequency setting unit 22, the self-diagnosis determination unit 15 has omitted the execution of the self-diagnosis by the number of times already specified. After execution of the self-diagnosis is determined and the processing after the startup success flag 10 is cleared, the self-diagnosis program performs self-diagnosis (310).
If the content of the continuous startup success count unit 11 does not exceed the content of the self-diagnosis non-execution number setting unit 12, the self-diagnosis determination unit 15 reads the time read from the RTC 4 and the self-diagnosis non-execution time limit setting unit The time set to 14 is compared (304).
If the time read from the RTC 4 has passed the time set in the self-diagnosis non-execution deadline setting unit 14, the self-diagnosis has not been executed beyond the specified time, so the self-diagnosis determination unit 15 Decides execution of self-diagnosis, and after the processing after clearing the startup success flag 10, the self-diagnosis program performs self-diagnosis (310).
If the time read from the RTC 4 has not passed the time set in the self-diagnosis non-execution time limit setting unit 14, the self-diagnosis determination unit 15 checks the temperature abnormality occurrence flag 32 (305).
If the temperature abnormality flag is set, there is a possibility that an abnormally high temperature has occurred and a hardware failure has occurred. Therefore, the self-diagnosis determination unit 15 decides to execute self-diagnosis, and after the startup success flag 10 is cleared After the processing, the self-diagnosis program performs self-diagnosis (310).
If the temperature abnormality occurrence flag has not been set, the self-diagnosis determination unit 15 decides to omit the self-diagnosis, increments the content of the continuous startup success count unit 11 by 1 (316), and terminates the self-diagnosis program And start up the actual system.

また、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図18に示す温度異常監視1の処理を定期的に行い、温度異常の発生を定期的に監視し、温度が上限温度設定部31に設定した値を超えた場合には温度異常発生フラグ32をセットする。   Further, the self-diagnosis determination unit 15 periodically performs the process of the temperature abnormality monitoring 1 shown in FIG. 18 during the execution of the self-diagnosis and the system operation, periodically monitors the occurrence of the temperature abnormality, and detects the temperature. When the value set in the upper limit temperature setting unit 31 is exceeded, the temperature abnormality occurrence flag 32 is set.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間および上限温度設定部31への上限温度の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The RTC 4 time, the number of self-diagnosis skips to the self-diagnosis non-execution number setting unit 12, the self-diagnosis skip period to the self-diagnosis non-execution period setting unit 13, and the upper limit temperature setting to the upper limit temperature setting unit 31 are self-diagnosis. The user can set in advance by a program setting function or the like.

以上のように、この実施の形態では一度自己診断が成功した後、決めた回数および決めた期間に満たなくても、異常に高い温度の下で動作した場合には、次回の電源投入もしくはリセット実行時に自己診断を実行するため、異常高温によりハードウェアの故障などが発生した場合に確実に故障を指摘できるため、システムの信頼性を向上することが可能になる。   As described above, in this embodiment, after successful self-diagnosis, if it operates under an abnormally high temperature even if it does not reach the determined number of times and the determined period, the next power-on or reset Since the self-diagnosis is executed at the time of execution, it is possible to reliably point out a failure when a hardware failure occurs due to an abnormally high temperature, thereby improving the reliability of the system.

以上、本実施の形態では、動作環境の温度を測定するための温度測定手段およびある温度以上になるとハードウェアの故障発生率が高くなる上限温度を設定するための上限温度設定手段および温度異常発生フラグを設け、温度測定手段による動作中の温度の測定結果が上限温度設定手段に設定された値を超えた場合には、温度異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、温度異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in the present embodiment, the temperature measuring means for measuring the temperature of the operating environment and the upper limit temperature setting means for setting the upper limit temperature at which the hardware failure rate increases when the temperature exceeds a certain temperature and the occurrence of temperature abnormality A flag is provided, and if the temperature measurement result during operation by the temperature measurement means exceeds the value set in the upper limit temperature setting means, a temperature abnormality occurrence flag is set, and at the next power on or reset execution, A self-diagnosis execution control method for an embedded device that performs a self-diagnosis by setting a temperature abnormality occurrence flag even if both the continuous startup success count unit and the self-diagnosis non-execution deadline setting unit satisfy the conditions explained.

実施の形態4.
実施の形態4では、実施の形態3に加えて温度異常が発生した回数を自己診断の実行を制御する条件に入れた場合の実施の形態を示す。
Embodiment 4 FIG.
In the fourth embodiment, in addition to the third embodiment, an embodiment in which the number of occurrences of temperature abnormality is included in the conditions for controlling the execution of self-diagnosis is shown.

図4は、その場合の組込み装置100の構成を示すブロック図である。
図4において、33は温度異常発生回数をカウントする温度異常発生回数カウント部、34は温度異常自己診断実行閾値設定部である。
温度異常発生回数カウント部33は、連続立上げ成功回数カウント部11とともに、回数カウント部の例である。また、温度異常発生回数カウント部33がカウントする温度異常発生回数は異常値連続回数の例である。
また、図4において、図3と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 4 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 4, 33 is a temperature abnormality occurrence count section for counting the temperature abnormality occurrence count, and 34 is a temperature abnormality self-diagnosis execution threshold setting section.
The temperature abnormality occurrence number counting unit 33 is an example of the number counting unit together with the continuous startup success number counting unit 11. Also, the temperature abnormality occurrence count counted by the temperature abnormality occurrence count counting unit 33 is an example of the abnormal value continuous count.
In FIG. 4, the same reference numerals as those in FIG. 3 denote the same parts or parts that perform the same function.

電源投入およびリセット実行後は図19の処理を行う。
図19は図17の処理に、温度異常発生回数カウント部33をクリアするステップ(409)が追加されている点のみが異なり、その他の処理は図17と同じである。
After power-on and reset execution, the processing of FIG. 19 is performed.
FIG. 19 is different from FIG. 17 only in that a step (409) for clearing the temperature abnormality occurrence count section 33 is added, and the other processes are the same as those in FIG.

また、温度異常の発生監視を行うため、自己診断決定部15は。自己診断の実行中およびシステム動作実行中には図20に示す温度異常監視2の処理を定期的に行う。
すなわち、まず、自己診断決定部15は、温度測定部30から温度を読み出す(450)。
読み出した温度と上限温度設定部31に設定された値を比較する(451)。
温度測定部30から読み込んだ温度が上限温度設定部31に設定された温度を超えていない場合、自己診断決定部15は、今回の温度を前回温度として記憶し(456)、温度異常監視2の処理を終了する。
一方、ステップ451において、温度測定部30から読み込んだ温度が上限温度設定部31に設定された温度を超えていた場合、自己診断決定部15は、前回温度をチェックする(452)。
前回温度が上限温度設定部31に設定された温度を超えていた場合には、自己診断決定部15は、高温状態が継続しているものと判断し、今回の温度を前回温度として記憶し(456)、温度異常監視2の処理を終了する。
また、ステップ452において、前回温度が上限温度設定部31に設定された温度を超えていなかった場合には、自己診断決定部15は、新たに温度異常が発生したものと判断し、温度異常発生回数カウント部33を1増やす(453)。
そして、温度異常発生回数カウント部33の値と温度異常自己診断実行閾値設定部34に設定されていた値を比較する(454)。
温度異常発生回数カウント部33の値が温度異常自己診断実行閾値設定部34に設定されていた値を超えていなかった場合、自己診断決定部15は、今回の温度を前回温度として記憶し(456)、温度異常監視2の処理を終了する。
ステップ454において、温度異常発生回数カウント部33の値が温度異常自己診断実行閾値設定部34に設定されていた値を超えた場合、自己診断決定部15は、温度異常発生フラグ32をセットする(455)。
そして、今回の温度を前回温度として記憶し(456)、温度異常監視2の処理を終了する。
In addition, the self-diagnosis determination unit 15 performs monitoring of occurrence of temperature abnormality. While the self-diagnosis is being executed and the system operation is being executed, the temperature abnormality monitoring 2 process shown in FIG. 20 is periodically performed.
That is, first, the self-diagnosis determination unit 15 reads the temperature from the temperature measurement unit 30 (450).
The read temperature is compared with the value set in the upper limit temperature setting unit 31 (451).
When the temperature read from the temperature measurement unit 30 does not exceed the temperature set in the upper limit temperature setting unit 31, the self-diagnosis determination unit 15 stores the current temperature as the previous temperature (456), and the temperature abnormality monitoring 2 End the process.
On the other hand, when the temperature read from the temperature measurement unit 30 exceeds the temperature set in the upper limit temperature setting unit 31 in step 451, the self-diagnosis determination unit 15 checks the previous temperature (452).
When the previous temperature exceeds the temperature set in the upper limit temperature setting unit 31, the self-diagnosis determination unit 15 determines that the high temperature state continues and stores the current temperature as the previous temperature ( 456), the temperature abnormality monitoring 2 process is terminated.
In step 452, if the previous temperature did not exceed the temperature set in the upper limit temperature setting unit 31, the self-diagnosis determination unit 15 determines that a new temperature abnormality has occurred, and a temperature abnormality has occurred. The count section 33 is incremented by 1 (453).
Then, the value of the temperature abnormality occurrence count section 33 is compared with the value set in the temperature abnormality self-diagnosis execution threshold setting section 34 (454).
If the value of the temperature abnormality occurrence count unit 33 does not exceed the value set in the temperature abnormality self-diagnosis execution threshold setting unit 34, the self-diagnosis determination unit 15 stores the current temperature as the previous temperature (456). ) The temperature abnormality monitoring 2 process is terminated.
In step 454, when the value of the temperature abnormality occurrence number counting unit 33 exceeds the value set in the temperature abnormality self-diagnosis execution threshold setting unit 34, the self-diagnosis determination unit 15 sets the temperature abnormality occurrence flag 32 ( 455).
And this temperature is memorize | stored as last temperature (456), and the process of the temperature abnormality monitoring 2 is complete | finished.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間、上限温度設定部31への上限温度および温度異常自己診断実行閾値設定部34への温度異常発生回数閾値の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The time of the RTC 4, the number of times of self-diagnosis omitted to the self-diagnosis non-execution number setting unit 12, the self-diagnosis omission period to the self-diagnosis non-execution period setting unit 13, the upper limit temperature to the upper limit temperature setting unit 31, and the temperature abnormality self-diagnosis The setting of the temperature abnormality occurrence frequency threshold value in the execution threshold value setting unit 34 can be set in advance by the user using a setting function of a self-diagnosis program.

以上のように、この実施の形態では異常に高い温度の下で動作した場合でも、その回数が指定された値を超えなければ電源投入もしくはリセット実行時の自己診断を実行しないので、不必要にシステムの立上げに要する時間が長くなるのを防ぐことが可能になる。   As described above, in this embodiment, even when operating at an abnormally high temperature, if the number of times does not exceed the specified value, self-diagnosis at power-on or reset execution is not executed, so it is unnecessary. It becomes possible to prevent the time required for system startup from becoming long.

以上、本実施の形態では、温度異常発生回数をカウントする温度異常発生回数カウント手段と温度異常自己診断実行閾値設定手段を設け、温度測定手段による動作中の温度の測定結果が上限温度設定手段に設定された値以内からそれを超えた値になった場合には温度異常発生回数カウント手段を1増やし、温度異常発生回数カウント手段の値が温度異常自己診断実行閾値設定手段に設定された値を超えた場合に温度異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、温度異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in the present embodiment, the temperature abnormality occurrence frequency counting means for counting the temperature abnormality occurrence frequency and the temperature abnormality self-diagnosis execution threshold setting means are provided, and the temperature measurement result during operation by the temperature measurement means is the upper limit temperature setting means. When the value exceeds the set value and exceeds it, the temperature abnormality occurrence count counting means is increased by 1, and the value of the temperature abnormality occurrence count counting means is set to the value set in the temperature abnormality self-diagnosis execution threshold setting means. If it exceeds, the temperature abnormality occurrence flag is set, and the next time the power is turned on or reset, a temperature abnormality occurs even if both the continuous startup success count counting means and the self-diagnosis non-execution deadline setting means satisfy both conditions A self-diagnosis execution control method for an embedded device that performs a self-diagnosis by setting a flag has been described.

実施の形態5.
実施の形態5では、自己診断の実行を制御する条件に温度異常が継続した時間を入れた場合の実施の形態を示す。
Embodiment 5 FIG.
In the fifth embodiment, an embodiment in which the time during which the temperature abnormality continues is included in the condition for controlling the execution of the self-diagnosis will be described.

図5は、その場合の組込み装置100の構成を示すブロック図である。
図5において、35は温度異常発生状態になってからの時間を計測するための温度異常発生時間計測部、36は温度異常猶予時間設定部である。
温度異常発生時間計測部35は、RTC4、自己診断非実行期間設定部13及び自己診断非実行期限設定部14とともに計時部の例である。また、温度異常発生時間計測部35が計測する温度異常発生時間は異常値継続時間の例である。
また、図5において、図3と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 5 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 5, reference numeral 35 denotes a temperature abnormality occurrence time measuring unit for measuring the time after the temperature abnormality occurrence state, and 36 denotes a temperature abnormality grace time setting unit.
The temperature abnormality occurrence time measuring unit 35 is an example of a time measuring unit together with the RTC 4, the self-diagnosis non-execution period setting unit 13, and the self-diagnosis non-execution time limit setting unit 14. Further, the temperature abnormality occurrence time measured by the temperature abnormality occurrence time measuring unit 35 is an example of the abnormal value duration.
In FIG. 5, the same reference numerals as those in FIG. 3 denote the same parts or parts that perform the same function.

電源投入およびリセット実行後は図21の処理を行う。
図21は図17の処理に、温度異常発生時間計測部35をクリアするステップ(509)が追加されている点のみが異なり、その他の処理は図17と同じである。
After power-on and reset execution, the processing of FIG. 21 is performed.
FIG. 21 differs from the process of FIG. 17 only in that a step (509) for clearing the temperature abnormality occurrence time measurement unit 35 is added, and the other processes are the same as those in FIG.

また、温度異常の発生監視を行うため、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図22に示す温度異常監視3の処理を定期的に行う。
すなわち、まず、自己診断決定部15は、温度測定部30から温度を読み出す(550)。
次に、自己診断決定部15は、読み出した温度と上限温度設定部31に設定された値を比較する(551)。
温度測定部30から読み込んだ温度が上限温度設定部31に設定された温度を超えていなかった場合、自己診断決定部15は、温度異常監視3の処理を終了する。
一方、ステップ551において、温度測定部30から読み込んだ温度が上限温度設定部31に設定された温度を超えていた場合、温度異常発生時間計測部35を1増やす(552)。
そして、自己診断決定部15は、温度異常発生時間計測部35の値と温度異常猶予時間設定部36に設定されていた値を比較する(553)。
温度異常発生時間計測部35の値が温度異常猶予時間設定部36に設定されていた値を超えていなかった場合、自己診断決定部15は、温度異常監視3の処理を終了する。
また、ステップ553において、温度異常発生時間計測部35の値が温度異常猶予時間設定部36に設定されていた値を超えた場合、自己診断決定部15は、温度異常発生フラグ32をセットする(554)。
そして、温度異常監視3の処理を終了する。
Further, in order to monitor the occurrence of temperature abnormality, the self-diagnosis determination unit 15 periodically performs the process of temperature abnormality monitoring 3 shown in FIG. 22 during the execution of the self-diagnosis and the system operation.
That is, first, the self-diagnosis determination unit 15 reads the temperature from the temperature measurement unit 30 (550).
Next, the self-diagnosis determination unit 15 compares the read temperature with the value set in the upper limit temperature setting unit 31 (551).
When the temperature read from the temperature measurement unit 30 does not exceed the temperature set in the upper limit temperature setting unit 31, the self-diagnosis determination unit 15 ends the temperature abnormality monitoring 3 process.
On the other hand, if the temperature read from the temperature measurement unit 30 exceeds the temperature set in the upper limit temperature setting unit 31 in step 551, the temperature abnormality occurrence time measurement unit 35 is increased by 1 (552).
Then, the self-diagnosis determination unit 15 compares the value of the temperature abnormality occurrence time measurement unit 35 with the value set in the temperature abnormality grace time setting unit 36 (553).
When the value of the temperature abnormality occurrence time measuring unit 35 does not exceed the value set in the temperature abnormality grace time setting unit 36, the self-diagnosis determination unit 15 ends the process of the temperature abnormality monitoring 3.
In step 553, when the value of the temperature abnormality occurrence time measurement unit 35 exceeds the value set in the temperature abnormality grace time setting unit 36, the self-diagnosis determination unit 15 sets the temperature abnormality occurrence flag 32 ( 554).
And the process of the temperature abnormality monitoring 3 is complete | finished.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間、上限温度設定部31への上限温度および温度異常猶予時間設定部36への温度異常発生猶予時間の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The time of the RTC 4, the number of times of self-diagnosis omitted to the self-diagnosis non-execution number setting unit 12, the self-diagnosis omission period to the self-diagnosis non-execution period setting unit 13, the upper limit temperature to the upper limit temperature setting unit 31, and the temperature abnormality grace time The setting of the temperature abnormality occurrence grace time in the setting unit 36 can be set in advance by the user using a setting function of the self-diagnosis program.

以上のように、この実施の形態では異常に高い温度の下で動作した場合でも、その時間の合計が指定された値を超えなければ電源投入もしくはリセット実行時の自己診断を実行しないので、不必要にシステムの立上げに要する時間が長くなるのを防ぐことが可能になる。   As described above, in this embodiment, even when operating at an abnormally high temperature, the self-diagnosis at the time of power-on or reset execution is not executed unless the total time exceeds the specified value. It becomes possible to prevent the time required for starting up the system from becoming long if necessary.

以上、本実施の形態では、温度異常発生状態になってからの時間を計測するための温度異常発生時間計測手段と温度異常時間設定手段を設け、温度測定手段による動作中の温度の測定結果が上限温度設定手段に設定された値を超えた値になった時に温度異常発生時間計測手段による時間の計測を開始させ、温度設定手段に設定された値以内に戻った時に時間の計測を停止させることにより、上限温度設定手段に設定した値を超えた温度異常発生時間の合計が温度異常時間設定手段に設定された値を超えた場合に温度異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、温度異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in this embodiment, the temperature abnormality occurrence time measuring means and the temperature abnormality time setting means for measuring the time after the temperature abnormality occurrence state is provided, and the temperature measurement result during operation by the temperature measurement means is obtained. Start the time measurement by the temperature abnormality occurrence time measurement means when the value exceeds the value set in the upper limit temperature setting means, and stop the time measurement when it returns within the value set in the temperature setting means Therefore, if the total temperature abnormality occurrence time exceeding the value set in the upper limit temperature setting means exceeds the value set in the temperature abnormality time setting means, the temperature abnormality occurrence flag is set and the power is turned on or reset next time When executing the above, the temperature abnormality occurrence flag must be set even if the continuous startup success count counting means and the self-diagnosis non-execution deadline setting means both satisfy the conditions. It described a self-diagnosis execution control method of the embedded device to perform more self diagnosis.

実施の形態6.
以上の実施の形態3〜5では、上限温度設定部31、温度異常発生フラグ32、温度異常発生回数カウント部33、温度異常自己診断実行閾値設定部34、温度異常発生時間計測部35、温度異常猶予時間設定部36を個別のハードウェアとして実現するようにしたものであるが、次にこれらを小容量のバッテリバックアップされたRAMに記憶するようにした場合の実施の形態を示す。
Embodiment 6 FIG.
In the above third to fifth embodiments, the upper limit temperature setting unit 31, the temperature abnormality occurrence flag 32, the temperature abnormality occurrence count unit 33, the temperature abnormality self-diagnosis execution threshold setting unit 34, the temperature abnormality occurrence time measurement unit 35, the temperature abnormality The grace time setting unit 36 is realized as individual hardware. Next, an embodiment in which these are stored in a small-capacity battery-backed RAM will be described.

図6は、このような場合の組込み装置100の構成を示すブロック図である。
バッテリバックアップされたRAM20の決まったアドレスをそれぞれ上限温度設定部31、温度異常発生フラグ32、温度異常発生回数カウント部33、温度異常自己診断実行閾値設定部34、温度異常発生時間計測部35、温度異常猶予時間設定部36として割付ける。
動作は実施の形態3〜5の場合と同じある。
つまり、ROM2に格納された自己診断プログラムがCPU1により読み出されるときに、RAM20に格納されている各要素もCPU1により読み出され、動作可能となり、以降は、実施の形態3〜5と同様の手順にて自己診断の要否を決定する。
FIG. 6 is a block diagram showing a configuration of the embedded device 100 in such a case.
The predetermined addresses of the battery-backed RAM 20 are respectively set to an upper limit temperature setting unit 31, a temperature abnormality occurrence flag 32, a temperature abnormality occurrence count unit 33, a temperature abnormality self-diagnosis execution threshold setting unit 34, a temperature abnormality occurrence time measuring unit 35, and a temperature. Assigned as the abnormal grace time setting unit 36.
The operation is the same as in the third to fifth embodiments.
That is, when the self-diagnosis program stored in the ROM 2 is read by the CPU 1, each element stored in the RAM 20 is also read by the CPU 1 and becomes operable. Thereafter, the same procedure as in the third to fifth embodiments is performed. Determine whether self-diagnosis is necessary.

以上のように、本実施の形態により、自己診断の実行制御用に記憶すべき情報量が少なくて済み、小容量のRAMを利用して自己診断実行制御を実現できるため、自己診断実行制御のためのハードウェアを低コストで実現できる。さらに、RTCに内蔵されるRAMを利用すれば、自己診断実行制御のために専用に設けるハードウェアが不要となり、組込み装置をさらに低コストで実現することができる。   As described above, according to the present embodiment, the amount of information to be stored for self-diagnosis execution control can be reduced, and self-diagnosis execution control can be realized using a small-capacity RAM. Can be realized at low cost. Furthermore, if the RAM built in the RTC is used, hardware dedicated for self-diagnosis execution control is not required, and an embedded device can be realized at a lower cost.

以上、本実施の形態では、上限温度設定手段、温度異常発生回数カウント手段、温度異常自己診断実行閾値設定手段、温度異常発生時間計測手段、温度異常時間設定手段および温度異常発生フラグはバッテリバックアップした小規模のRAMやFLASHなどの小規模の不揮発性メモリ、もしくは他の目的で既に実装済のバッテリバックアップしたRAMやFLASHなどの不揮発性メモリの一部を共有して使用する組込み装置の自己診断実行制御方法を説明した。   As described above, in this embodiment, the upper limit temperature setting means, temperature abnormality occurrence count counting means, temperature abnormality self-diagnosis execution threshold setting means, temperature abnormality occurrence time measuring means, temperature abnormality time setting means, and temperature abnormality occurrence flag are backed up by a battery. Self-diagnosis of embedded devices that share a small amount of non-volatile memory such as RAM or FLASH, or a part of non-volatile memory such as battery-backed RAM or FLASH that has already been installed for other purposes The control method was explained.

実施の形態7.
以上の実施の形態では、電源投入もしくはリセット実行後に自己診断の実行を省略した回数および自己診断が成功してから経過した時間に加えて組込み装置が動作する環境の温度も自己診断の実行を制御する条件に入れるようにした場合の実施の形態を示したが、ここでは温度の代わりに湿度を条件に入れるようにした場合の実施の形態を示す。
Embodiment 7 FIG.
In the above embodiment, the number of times that self-diagnosis execution is omitted after power-on or reset execution and the time elapsed since the self-diagnosis succeeded, as well as the temperature of the environment in which the embedded device operates, control the execution of self-diagnosis. Although the embodiment in the case where it is put in the condition to perform is shown, here the embodiment in the case where the humidity is put in the condition instead of the temperature is shown.

図7は、その場合の組込み装置100の構成を示すブロック図である。
図7において、40は湿度センサなどの湿度測定部、41はその湿度を超えるとハードウェアの故発生率が高くなるような上限湿度を設定するための上限湿度設定部、42は湿度異常発生フラグである。湿度測定部40は、動作環境測定部の例である。
また、図7において、図2と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 7 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 7, reference numeral 40 denotes a humidity measuring unit such as a humidity sensor, 41 denotes an upper limit humidity setting unit for setting an upper limit humidity at which the occurrence rate is increased due to hardware when the humidity is exceeded, and 42 denotes a humidity abnormality occurrence flag. It is. The humidity measuring unit 40 is an example of an operating environment measuring unit.
In FIG. 7, the same reference numerals as those in FIG. 2 indicate the same parts or parts that perform equivalent functions.

次に動作について説明する。
組込み装置100の電源が投入されるか、リセットが実行されると、ROM2に格納された自己診断プログラムがCPU1により読み出され、実行される。また、このとき、RAM20に格納されている各要素もCPU1により読み出され、動作可能となる。
図23はこの時動作を示すフローチャートであり、図23を用いて動作を説明する。
Next, the operation will be described.
When the power of the embedded device 100 is turned on or reset is executed, the self-diagnosis program stored in the ROM 2 is read out and executed by the CPU 1. At this time, each element stored in the RAM 20 is also read out by the CPU 1 and becomes operable.
FIG. 23 is a flowchart showing the operation at this time, and the operation will be described with reference to FIG.

自己診断決定部15は、まず立上げ成功フラグ10の状態を読取る(701)。
そして立上げ成功フラグがセットされているかどうか判断する(702)。
立上げ成功フラグがセットされていなければ、自己診断決定部15は、まだ自己診断が正常終了していないと判断し、立上げ成功フラグ10をクリアし(710)、連続立上げ成功回数カウント部11をクリアする(711)。
さらに、自己診断決定部15は、湿度異常発生フラグ42をクリアする(720)。
そして、自己診断プログラムが、ハードウェアの自己診断を実行する(712)。
自己診断実行後、自己診断決定部15は、自己診断でエラーが発生したかどうかをチェックする(713)。
エラーが発生せず正常終了した場合には、自己診断決定部15は、立上げ成功フラグをセットし(714)、RTC4から読み出した時刻に自己診断非実行期間設定部13に設定されている時間を加えた時刻を自己診断非実行期限設定部14にセットする(715)。
そして、自己診断決定部15が連続立上げ成功回数カウント部11の内容を1増やした(716)後、自己診断プログラムの実行を終了し、実システムの立上げを開始する。
もしも、自己診断でエラーが発生した場合には、自己診断決定部15は、立上げ成功フラグ10のセットは行わず、エラー発生の表示を行い(717)、システムの立上げを中止する。
First, the self-diagnosis determination unit 15 reads the state of the startup success flag 10 (701).
Then, it is determined whether the startup success flag is set (702).
If the startup success flag is not set, the self-diagnosis determination unit 15 determines that the self-diagnosis has not ended normally, clears the startup success flag 10 (710), and continuously counts the number of successful startups. 11 is cleared (711).
Further, the self-diagnosis determination unit 15 clears the humidity abnormality occurrence flag 42 (720).
Then, the self-diagnosis program executes hardware self-diagnosis (712).
After executing the self-diagnosis, the self-diagnosis determination unit 15 checks whether an error has occurred in the self-diagnosis (713).
If no error occurs and the process ends normally, the self-diagnosis determination unit 15 sets a startup success flag (714), and the time set in the self-diagnosis non-execution period setting unit 13 at the time read from the RTC 4 Is set in the self-diagnosis non-execution time limit setting unit 14 (715).
Then, after the self-diagnosis determining unit 15 increments the content of the continuous startup success number counting unit 11 by 1 (716), the execution of the self-diagnosis program is terminated and the real system is started.
If an error occurs in the self-diagnosis, the self-diagnosis determination unit 15 does not set the start-up success flag 10, displays an error occurrence (717), and stops the system start-up.

一方、ステップ702において、立上げ成功フラグがセットされていれば、自己診断決定部15は、少なくとも1度は自己診断の実行が正常終了したと判断し、連続立上げ成功回数カウント部11の内容と自己診断非実行回数設定部12の内容を比較する(703)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部22の内容を超えていた場合には、既に指定された回数だけ自己診断の実行を省略済なので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(710)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部12の内容を超えていなかった場合には、自己診断決定部15は、RTC4から読み出した時刻と自己診断非実行期限設定部14にセットされていた時刻の比較を行う(704)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていた場合、指定された時間を超えて自己診断を実行していないことになるので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(710)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていなかった場合、自己診断決定部15は、湿度異常発生フラグ42をチェックする(705)。
湿度異常フラグがセットされていた場合、異常に高い湿度の状態が発生し、ハードウェア故障が発生した可能性があるため、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(710)。
湿度異常発生フラグ42がセットされていなかった場合には、自己診断決定部15は自己診断の省略を決定し、連続立上げ成功回数カウント部11の内容を1増やし(716)、自己診断プログラムの終了と実システムの立上げ開始を行う。
On the other hand, if the startup success flag is set in step 702, the self-diagnosis determination unit 15 determines that the execution of the self-diagnosis has been normally completed at least once, and the contents of the continuous startup success count unit 11 And the contents of the self-diagnosis non-execution frequency setting unit 12 are compared (703).
When the content of the continuous startup success number counting unit 11 exceeds the content of the self-diagnosis non-execution frequency setting unit 22, the self-diagnosis determination unit 15 has omitted the execution of the self-diagnosis by the number of times already specified. After execution of the self-diagnosis is determined and the processing after the startup success flag 10 is cleared, the self-diagnosis program performs self-diagnosis (710).
If the content of the continuous startup success count unit 11 does not exceed the content of the self-diagnosis non-execution number setting unit 12, the self-diagnosis determination unit 15 reads the time read from the RTC 4 and the self-diagnosis non-execution time limit setting unit The time set in 14 is compared (704).
If the time read from the RTC 4 has passed the time set in the self-diagnosis non-execution deadline setting unit 14, the self-diagnosis has not been executed beyond the specified time, so the self-diagnosis determination unit 15 Decides to execute self-diagnosis, and after the processing after the startup success flag 10 is cleared, the self-diagnosis program performs self-diagnosis (710).
If the time read from the RTC 4 has not passed the time set in the self-diagnosis non-execution time limit setting unit 14, the self-diagnosis determination unit 15 checks the humidity abnormality occurrence flag 42 (705).
If the humidity abnormality flag is set, an abnormally high humidity state may have occurred and a hardware failure may have occurred. Therefore, the self-diagnosis determination unit 15 determines the execution of the self-diagnosis, and the startup success flag After the processing after 10 is cleared, the self-diagnostic program performs self-diagnosis (710).
If the humidity abnormality occurrence flag 42 is not set, the self-diagnosis determination unit 15 determines omission of self-diagnosis, increments the content of the continuous startup success count unit 11 by 1 (716), and the self-diagnosis program End and start up the actual system.

また、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図24に示す湿度異常監視1の処理を定期的に行い、湿度異常の発生を定期的に監視し、湿度が上限湿度設定部41に設定した値を超えた場合には湿度異常発生フラグ42をセットする。   Further, the self-diagnosis determination unit 15 periodically performs the process of the humidity abnormality monitoring 1 shown in FIG. 24 during the execution of the self-diagnosis and the system operation, and periodically monitors the occurrence of the humidity abnormality, When the value set in the upper limit humidity setting unit 41 is exceeded, the humidity abnormality occurrence flag 42 is set.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間および上限湿度設定部41への上限湿度の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The RTC 4 time, the number of self-diagnosis omissions to the self-diagnosis non-execution number setting unit 12, the self-diagnosis omission period to the self-diagnosis non-execution period setting unit 13, and the upper limit humidity setting to the upper limit humidity setting unit 41 are self-diagnosis. The user can set in advance by a program setting function or the like.

以上のように、この実施の形態では一度自己診断が成功した後、決めた回数および決めた期間に満たなくても、異常に高い湿度の下で動作した場合には、次回の電源投入もしくはリセット実行時に自己診断を実行するため、異常に高い湿度の発生によりハードウェアの故障などが発生した場合に確実に故障を指摘できるため、システムの信頼性を向上することが可能になる。   As described above, in this embodiment, after successful self-diagnosis, if it operates under abnormally high humidity even if it does not reach the determined number of times and the determined period, the next power-on or reset Since the self-diagnosis is executed at the time of execution, the failure of the hardware can be surely pointed out when a hardware failure occurs due to the occurrence of abnormally high humidity, so that the reliability of the system can be improved.

以上、本実施の形態では、動作環境の湿度を測定するための湿度測定手段およびある湿度以上になるとハードウェアの故障発生率が高くなる上限湿度を設定するための上限湿度設定手段および湿度異常発生フラグを設け、湿度測定手段による動作中の湿度の測定結果が上限湿度設定手段に設定された値を超えた場合には、湿度異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、湿度異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in the present embodiment, the humidity measuring means for measuring the humidity of the operating environment and the upper limit humidity setting means for setting the upper limit humidity at which the hardware failure rate increases when the humidity exceeds a certain humidity, and the occurrence of abnormal humidity A flag is provided, and if the humidity measurement result during operation by the humidity measurement means exceeds the value set in the upper limit humidity setting means, a humidity abnormality occurrence flag is set, and at the next power on or reset execution, A self-diagnosis execution control method for an embedded device that executes a self-diagnosis when the humidity abnormality occurrence flag is set even if the continuous startup success frequency counting means and the self-diagnosis non-execution deadline setting means both satisfy the conditions explained.

実施の形態8.
実施の形態8では、実施の形態7に加えて湿度異常が発生した回数を自己診断の実行を制御する条件に入れた場合の実施の形態を示す。
Embodiment 8 FIG.
In the eighth embodiment, in addition to the seventh embodiment, an embodiment in which the number of occurrences of humidity abnormality is included in the conditions for controlling the execution of the self-diagnosis is shown.

図8は、その場合の組込み装置100の構成を示すブロック図である。
図8において、43は湿度異常発生回数をカウントする湿度異常発生回数カウント部、44は湿度異常自己診断実行閾値設定部である。
湿度異常発生回数カウント部43は、連続立上げ成功回数カウント部11とともに、回数カウント部の例である。また、湿度異常発生回数カウント部43がカウントする湿度異常発生回数は異常値連続回数の例である。
また、図8において、図7と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 8 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 8, reference numeral 43 is a humidity abnormality occurrence count section for counting the number of occurrences of humidity abnormality, and 44 is a humidity abnormality self-diagnosis execution threshold setting section.
The humidity abnormality occurrence count section 43 is an example of a count count section together with the continuous startup success count section 11. The number of occurrences of humidity abnormality counted by the number of occurrences of humidity abnormality count unit 43 is an example of the number of consecutive abnormal values.
In FIG. 8, the same reference numerals as those in FIG. 7 denote the same parts or parts that perform the same function.

電源投入およびリセット実行後は図25の処理を行う。
図25は図23の処理に、湿度異常発生回数カウント部43をクリアするステップ(809)が追加されている点のみが異なり、その他の処理は図23と同じである。
After power-on and reset execution, the processing of FIG. 25 is performed.
FIG. 25 differs from the process of FIG. 23 only in that a step (809) for clearing the humidity abnormality occurrence count section 43 is added, and the other processes are the same as FIG.

また、湿度異常の発生監視を行うため、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図26に示す湿度異常監視2の処理を定期的に行う。
すなわち、まず、自己診断決定部15は、湿度測定部40から湿度を読み出す(850)。
読み出した湿度と上限湿度設定部41に設定された値を比較する(851)。
湿度測定部40から読み込んだ湿度が上限湿度設定部41に設定された湿度を超えていない場合、自己診断決定部15は、今回の湿度を前回湿度として記憶し(856)、湿度異常監視2の処理を終了する。
湿度測定部40から読み込んだ湿度が上限湿度設定部41に設定された湿度を超えていた場合、前回湿度をチェックする(852)。
前回湿度が上限湿度設定部41に設定された湿度を超えていた場合には、自己診断決定部15は、異常に高い湿度状態が継続しているものと判断し、今回の湿度を前回湿度として記憶し(856)、湿度異常監視2の処理を終了する。
また、ステップ852において、前回湿度が上限湿度設定部41に設定された湿度を超えていなかった場合には、新たに湿度の異常が発生したものと判断し、湿度異常発生回数カウント部43を1増やす(853)。
そして、湿度異常発生回数カウント部43の値と湿度異常自己診断実行閾値設定部44に設定されていた値を比較する(854)。
湿度異常発生回数カウント部43の値が湿度異常自己診断実行閾値設定部44に設定されていた値を超えていなかった場合、自己診断決定部15は、今回の湿度を前回湿度として記憶し(856)、湿度異常監視2の処理を終了する。
ステップ854において、湿度異常発生回数カウント部43の値が湿度異常自己診断実行閾値設定部44に設定されていた値を超えた場合、自己診断決定部15は、湿度異常発生フラグ42をセットする(855)。
そして、今回の湿度を前回湿度として記憶し(856)、湿度異常監視2の処理を終了する。
In addition, in order to monitor the occurrence of humidity abnormality, the self-diagnosis determination unit 15 periodically performs the process of humidity abnormality monitoring 2 shown in FIG. 26 during the execution of the self-diagnosis and the system operation.
That is, first, the self-diagnosis determination unit 15 reads the humidity from the humidity measurement unit 40 (850).
The read humidity is compared with the value set in the upper limit humidity setting unit 41 (851).
When the humidity read from the humidity measuring unit 40 does not exceed the humidity set in the upper limit humidity setting unit 41, the self-diagnosis determination unit 15 stores the current humidity as the previous humidity (856), and the humidity abnormality monitoring 2 End the process.
If the humidity read from the humidity measuring unit 40 exceeds the humidity set in the upper limit humidity setting unit 41, the previous humidity is checked (852).
When the previous humidity exceeds the humidity set in the upper limit humidity setting unit 41, the self-diagnosis determination unit 15 determines that the abnormally high humidity state continues, and uses the current humidity as the previous humidity. Store (856) and end the process of humidity abnormality monitoring 2.
In step 852, if the previous humidity did not exceed the humidity set in the upper limit humidity setting unit 41, it is determined that a new humidity abnormality has occurred, and the humidity abnormality occurrence count counter 43 is set to 1. Increase (853).
Then, the value of the humidity abnormality occurrence count section 43 is compared with the value set in the humidity abnormality self-diagnosis execution threshold setting section 44 (854).
When the value of the humidity abnormality occurrence count unit 43 does not exceed the value set in the humidity abnormality self-diagnosis execution threshold setting unit 44, the self-diagnosis determination unit 15 stores the current humidity as the previous humidity (856). ) The humidity abnormality monitoring 2 process is terminated.
In step 854, when the value of the humidity abnormality occurrence count section 43 exceeds the value set in the humidity abnormality self-diagnosis execution threshold setting unit 44, the self-diagnosis determination unit 15 sets the humidity abnormality occurrence flag 42 ( 855).
Then, the current humidity is stored as the previous humidity (856), and the process of the humidity abnormality monitoring 2 is terminated.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間、上限湿度設定部41への上限湿度および湿度異常自己診断実行閾値設定部44への湿度異常発生回数閾値の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The time of the RTC 4, the number of times of self-diagnosis omitted to the self-diagnosis non-execution number setting unit 12, the self-diagnosis omission period to the self-diagnosis non-execution period setting unit 13, the upper limit humidity to the upper humidity setting unit 41 and the humidity abnormality self-diagnosis The setting of the humidity abnormality occurrence frequency threshold value in the execution threshold value setting unit 44 can be set in advance by the user using a setting function of a self-diagnosis program.

以上のように、この実施の形態では異常に高い湿度の下で動作した場合でも、その回数が指定された値を超えなければ電源投入もしくはリセット実行時の自己診断を実行しないので、不必要にシステムの立上げに要する時間が長くなるのを防ぐことが可能になる。   As described above, in this embodiment, even when operating under abnormally high humidity, self-diagnosis at power-on or reset execution is not executed unless the number of times exceeds the specified value. It becomes possible to prevent the time required for system startup from becoming long.

以上、本実施の形態によれば、湿度異常発生回数をカウントする湿度異常発生回数カウント手段と湿度異常自己診断実行閾値設定手段を設け、湿度測定手段による動作中の湿度の測定結果が上限湿度設定手段に設定された値以内からそれを超えた値になった場合には湿度異常発生回数カウント手段を1増やし、湿度異常発生回数カウント手段の値が湿度異常自己診断実行閾値設定手段に設定された値を超えた場合に湿度異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、湿度異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, according to the present embodiment, the humidity abnormality occurrence frequency counting means for counting the number of occurrences of humidity abnormality and the humidity abnormality self-diagnosis execution threshold setting means are provided, and the humidity measurement result during operation by the humidity measurement means is set to the upper limit humidity setting. When the value is within the value set in the means and exceeds it, the humidity abnormality occurrence count counting means is increased by 1, and the value of the humidity abnormality occurrence count counting means is set in the humidity abnormality self-diagnosis execution threshold setting means. If the value exceeds the value, the humidity abnormality occurrence flag is set, and the next time the power is turned on or reset, even if the continuous startup success count counting means and the self-diagnosis non-execution deadline setting means both satisfy the conditions, the humidity A self-diagnosis execution control method for an embedded device that executes a self-diagnosis by setting an abnormality occurrence flag has been described.

実施の形態9.
実施の形態9では、自己診断の実行を制御する条件に湿度異常が継続した時間を入れた場合の実施の形態を示す。
Embodiment 9 FIG.
In the ninth embodiment, an embodiment in which the time during which the humidity abnormality continues is included in the condition for controlling the execution of the self-diagnosis will be described.

図9は、その場合の組込み装置100の構成を示すブロック図である。
図9において、45は湿度異常発生状態になってからの時間を計測するための湿度異常発生時間計測部、46は湿度異常猶予時間設定部である。
湿度異常発生時間計測部45は、RTC4、自己診断非実行期間設定部13及び自己診断非実行期限設定部14とともに計時部の例である。また、湿度異常発生時間計測部45が計測する湿度異常発生時間は異常値継続時間の例である。
また、図9において、図7と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 9 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 9, 45 is a humidity abnormality occurrence time measuring unit for measuring the time after the humidity abnormality occurrence state, and 46 is a humidity abnormality grace time setting unit.
The humidity abnormality occurrence time measuring unit 45 is an example of a timer unit together with the RTC 4, the self-diagnosis non-execution period setting unit 13, and the self-diagnosis non-execution deadline setting unit 14. The humidity abnormality occurrence time measured by the humidity abnormality occurrence time measuring unit 45 is an example of an abnormal value duration.
In FIG. 9, the same reference numerals as those in FIG. 7 denote the same parts or parts that perform the same function.

電源投入およびリセット実行後は図27の処理を行う。
図27は図23の処理に、湿度異常発生時間計測部45をクリアするステップ(909)が追加されている点のみが異なり、その他の処理は図23と同じである。
After power-on and reset execution, the processing of FIG. 27 is performed.
FIG. 27 differs from the process in FIG. 23 only in that a step (909) for clearing the humidity abnormality occurrence time measurement unit 45 is added, and the other processes are the same as those in FIG.

また、湿度異常の発生監視を行うため、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図28に示す湿度異常監視3の処理を定期的に行う。
すなわち、まず、自己診断決定部15は、湿度測定部40から湿度を読み出す(950)。
次に、自己診断決定部15は、読み出した湿度と上限湿度設定部41に設定された値を比較する(951)。
湿度測定部40から読み込んだ湿度が上限湿度設定部41に設定された湿度を超えていなかった場合、自己診断決定部15は、湿度異常監視3の処理を終了する。
一方、ステップ951において、湿度測定部40から読み込んだ湿度が上限湿度設定部41に設定された湿度を超えていた場合、湿度異常発生時間計測部45を1増やす(952)。
そして、自己診断決定部15は、湿度異常発生時間計測部45の値と湿度異常猶予時間設定部46に設定されていた値を比較する(953)。
湿度異常発生時間計測部45の値が湿度異常猶予時間設定部46に設定されていた値を超えていなかった場合、自己診断決定部15は、湿度異常監視3の処理を終了する。
また、ステップ953において、湿度異常発生時間計測部45の値が湿度異常猶予時間設定部46に設定されていた値を超えた場合、自己診断決定部15は、湿度異常発生フラグ42をセットする(954)。
そして、湿度異常監視3の処理を終了する。
In order to monitor the occurrence of humidity abnormality, the self-diagnosis determination unit 15 periodically performs the process of humidity abnormality monitoring 3 shown in FIG. 28 during the execution of the self-diagnosis and the system operation.
That is, first, the self-diagnosis determination unit 15 reads the humidity from the humidity measurement unit 40 (950).
Next, the self-diagnosis determination unit 15 compares the read humidity with the value set in the upper limit humidity setting unit 41 (951).
If the humidity read from the humidity measuring unit 40 does not exceed the humidity set in the upper limit humidity setting unit 41, the self-diagnosis determination unit 15 ends the process of the humidity abnormality monitoring 3.
On the other hand, if the humidity read from the humidity measuring unit 40 exceeds the humidity set in the upper limit humidity setting unit 41 in step 951, the humidity abnormality occurrence time measuring unit 45 is increased by 1 (952).
Then, the self-diagnosis determination unit 15 compares the value of the humidity abnormality occurrence time measurement unit 45 with the value set in the humidity abnormality grace time setting unit 46 (953).
When the value of the humidity abnormality occurrence time measurement unit 45 does not exceed the value set in the humidity abnormality grace time setting unit 46, the self-diagnosis determination unit 15 ends the process of the humidity abnormality monitoring 3.
In step 953, when the value of the humidity abnormality occurrence time measuring unit 45 exceeds the value set in the humidity abnormality grace time setting unit 46, the self-diagnosis determination unit 15 sets the humidity abnormality occurrence flag 42 ( 954).
And the process of the humidity abnormality monitoring 3 is complete | finished.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間、上限湿度設定部41への上限湿度および湿度異常猶予時間設定部46への湿度異常発生猶予時間の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The time of the RTC 4, the number of times of self-diagnosis omitted to the self-diagnosis non-execution number setting unit 12, the self-diagnosis omission period to the self-diagnosis non-execution period setting unit 13, the upper limit humidity to the upper limit humidity setting unit 41, and an abnormal humidity grace time The setting of the humidity abnormality occurrence grace time in the setting unit 46 can be set in advance by the user using a setting function of the self-diagnosis program.

以上のように、この実施の形態では異常に高い湿度の下で動作した場合でも、その時間の合計が指定された値を超えなければ電源投入もしくはリセット実行時の自己診断を実行しないので、不必要にシステムの立上げに要する時間が長くなるのを防ぐことが可能になる。   As described above, in this embodiment, even when operating under abnormally high humidity, self-diagnosis at power-on or reset execution is not executed unless the total time exceeds the specified value. It becomes possible to prevent the time required for starting up the system from becoming long if necessary.

以上、本実施の形態では、湿度異常発生状態になってからの時間を計測するための湿度異常発生時間計測手段と湿度異常時間設定手段を設け、湿度測定手段による動作中の湿度の測定結果が上限湿度設定手段に設定された値を超えた値になった時に湿度異常発生時間計測手段による時間の計測を開始させ、湿度設定手段に設定された値以内に戻った時に時間の計測を停止させることにより、上限湿度設定手段に設定した値を超えた湿度異常発生時間の合計が湿度異常時間設定手段に設定された値を超えた場合に湿度異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、湿度異常発生フラグがセットされていることにより自己診断を実行する自己診断実行制御方法を説明した。   As described above, in the present embodiment, the humidity abnormality occurrence time measuring means and the humidity abnormality time setting means for measuring the time after the humidity abnormality occurrence state is provided, and the humidity measurement result during operation by the humidity measurement means is obtained. When the value exceeds the value set in the upper limit humidity setting means, the time measurement by the humidity abnormality occurrence time measurement means is started, and the time measurement is stopped when the value returns within the value set in the humidity setting means. As a result, when the total humidity abnormality occurrence time exceeding the value set in the upper limit humidity setting means exceeds the value set in the humidity abnormality time setting means, the humidity abnormality occurrence flag is set and the power is turned on or reset next time. When executing the above, the humidity abnormality occurrence flag must be set even if the continuous startup success frequency counting means and the self-diagnosis non-execution deadline setting means both satisfy the conditions. It described a self-diagnosis execution control method to perform more self diagnosis.

実施の形態10.
以上の実施の形態7〜9では、上限湿度設定部41、湿度異常発生フラグ42、湿度異常発生回数カウント部43、湿度異常自己診断実行閾値設定部44、湿度異常発生時間計測部45、湿度異常猶予時間設定部46を個別のハードウェアとして実現するようにしたものであるが、次にこれらを小容量のバッテリバックアップされたRAMに記憶するようにした場合の実施の形態を示す。
Embodiment 10 FIG.
In the above seventh to ninth embodiments, the upper limit humidity setting unit 41, the humidity abnormality occurrence flag 42, the humidity abnormality occurrence count counter 43, the humidity abnormality self-diagnosis execution threshold setting unit 44, the humidity abnormality occurrence time measurement unit 45, and the humidity abnormality The grace time setting unit 46 is realized as individual hardware. Next, an embodiment in which these are stored in a small-capacity battery-backed RAM will be described.

図10は、その場合の組込み装置100の構成を示すブロック図である。
バッテリバックアップされたRAM20の決まったアドレスをそれぞれ上限湿度設定部41、湿度異常発生フラグ42、湿度異常発生回数カウント部43、湿度異常自己診断実行閾値設定部44、湿度異常発生時間計測部45、湿度異常猶予時間設定部46として割付ける。
動作は実施の形態7〜9の場合と同じある。
つまり、ROM2に格納された自己診断プログラムがCPU1により読み出されるときに、RAM20に格納されている各要素もCPU1により読み出され、動作可能となり、以降は、実施の形態7〜9と同様の手順にて自己診断の要否を決定する。
FIG. 10 is a block diagram showing the configuration of the embedded device 100 in that case.
The predetermined addresses of the battery-backed RAM 20 are respectively set to an upper limit humidity setting unit 41, a humidity abnormality occurrence flag 42, a humidity abnormality occurrence count counter 43, a humidity abnormality self-diagnosis execution threshold setting unit 44, a humidity abnormality occurrence time measurement unit 45, and a humidity. Assigned as the abnormal grace time setting unit 46.
The operation is the same as in the seventh to ninth embodiments.
That is, when the self-diagnosis program stored in the ROM 2 is read by the CPU 1, each element stored in the RAM 20 is also read by the CPU 1 and becomes operable. Thereafter, the same procedure as in the seventh to ninth embodiments is performed. Determine whether self-diagnosis is necessary.

以上のように、本実施の形態により、自己診断の実行制御用に記憶すべき情報量が少なくて済み、小容量のRAMを利用して自己診断実行制御を実現できるため、自己診断実行制御のためのハードウェアを低コストで実現できる。さらに、RTCに内蔵されるRAMを利用すれば、自己診断実行制御のために専用に設けるハードウェアが不要となり、組込み装置をさらに低コストで実現することができる。   As described above, according to the present embodiment, the amount of information to be stored for self-diagnosis execution control can be reduced, and self-diagnosis execution control can be realized using a small-capacity RAM. Can be realized at low cost. Furthermore, if the RAM built in the RTC is used, hardware dedicated for self-diagnosis execution control is not required, and an embedded device can be realized at a lower cost.

以上、本実施の形態では、上限湿度設定手段、湿度異常発生回数カウント手段、湿度異常自己診断実行閾値設定手段、湿度異常発生時間計測手段、湿度異常時間設定手段および湿度異常発生フラグはバッテリバックアップした小規模のRAMやFLASHなどの小規模の不揮発性メモリ、もしくは他の目的で既に実装済のバッテリバックアップしたRAMやFLASHなどの不揮発性メモリの一部を共有して使用する組込み装置の自己診断実行制御方法を説明した。   As described above, in this embodiment, the upper limit humidity setting means, the humidity abnormality occurrence count counting means, the humidity abnormality self-diagnosis execution threshold setting means, the humidity abnormality occurrence time measuring means, the humidity abnormality time setting means, and the humidity abnormality occurrence flag are backed up by the battery. Self-diagnosis of embedded devices that share a small amount of non-volatile memory such as RAM or FLASH, or a part of non-volatile memory such as battery-backed RAM or FLASH that has already been installed for other purposes The control method was explained.

実施の形態11.
以上の実施の形態では、電源投入もしくはリセット実行後に自己診断の実行を省略した回数および自己診断が成功してから経過した時間に加えて組込み装置が動作する環境の湿度も自己診断の実行を制御する条件に入れるようにした場合の実施の形態を示したが、ここでは湿度の代わりに振動を条件に入れるようにした場合の実施の形態を示す。
Embodiment 11 FIG.
In the above embodiment, the number of times the self-diagnosis execution is omitted after power-on or reset execution and the time that has elapsed since the self-diagnosis succeeds, as well as the humidity of the environment in which the embedded device operates, control the execution of the self-diagnosis. However, here, an embodiment in which vibration is put in the condition instead of humidity is shown.

図11は、その場合の組込み装置100の構成を示すブロック図である。
図11において、50は振動センサなどの振動測定部であり、組込み装置100の振動(加速度)を計測する。51は組込み装置100の加速度(振動)を超えるとハードウェアの故発生率が高くなるような上限加速度を設定するための上限加速度設定部であり、52は振動異常発生フラグである。振動測定部50は、動作環境測定部の例である。
また、図11において、図2と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 11 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 11, 50 is a vibration measuring unit such as a vibration sensor, and measures vibration (acceleration) of the embedded device 100. Reference numeral 51 denotes an upper limit acceleration setting unit for setting an upper limit acceleration at which the rate of occurrence increases due to hardware when the acceleration (vibration) of the embedded device 100 is exceeded, and 52 is a vibration abnormality occurrence flag. The vibration measurement unit 50 is an example of an operating environment measurement unit.
In FIG. 11, the same reference numerals as those in FIG. 2 indicate the same parts or parts that perform equivalent functions.

次に動作について説明する。
組込み装置100の電源が投入されるか、リセットが実行されると、ROM2に格納された自己診断プログラムがCPU1により読み出され、実行される。また、このとき、RAM20に格納されている各要素もCPU1により読み出され、動作可能となる。
図29はこの時の動作を示すフローチャートであり、図29を用いて動作を説明する。
Next, the operation will be described.
When the power of the embedded device 100 is turned on or reset is executed, the self-diagnosis program stored in the ROM 2 is read out and executed by the CPU 1. At this time, each element stored in the RAM 20 is also read out by the CPU 1 and becomes operable.
FIG. 29 is a flowchart showing the operation at this time, and the operation will be described with reference to FIG.

自己診断決定部15は、まず立上げ成功フラグ10の状態を読取る(1101)。
そして立上げ成功フラグがセットされているかどうか判断する(1102)。
立上げ成功フラグがセットされていなければ、自己診断決定部15は、まだ自己診断が正常終了していないと判断し、立上げ成功フラグ10をクリアし(1110)、連続立上げ成功回数カウント部11をクリアする(1111)。
さらに、自己診断決定部15は、振動異常発生フラグ52をクリアする(1120)。
そして、自己診断プログラムが、ハードウェアの自己診断を実行する(1112)。
自己診断実行後、自己診断決定部15は、自己診断でエラーが発生したかどうかをチェックする(1113)。
エラーが発生せず正常終了した場合には、自己診断決定部15は、立上げ成功フラグをセットし(1114)、RTC4から読み出した時刻に自己診断非実行期間設定部13に設定されている時間を加えた時刻を自己診断非実行期限設定部14にセットする(1115)。
そして、自己診断決定部15が連続立上げ成功回数カウント部11の内容を1増やした(1116)後、自己診断プログラムの実行を終了し、実システムの立上げを開始する。
もしも、自己診断でエラーが発生した場合には、自己診断決定部15は、立上げ成功フラグ10のセットは行わず、エラー発生の表示を行い(1117)、システムの立上げを中止する。
First, the self-diagnosis determination unit 15 reads the state of the startup success flag 10 (1101).
Then, it is determined whether the startup success flag is set (1102).
If the start-up success flag is not set, the self-diagnosis determination unit 15 determines that the self-diagnosis has not ended normally, clears the start-up success flag 10 (1110), and continuously counts the number of successful start-ups. 11 is cleared (1111).
Further, the self-diagnosis determination unit 15 clears the vibration abnormality occurrence flag 52 (1120).
Then, the self-diagnosis program executes hardware self-diagnosis (1112).
After executing the self-diagnosis, the self-diagnosis determination unit 15 checks whether an error has occurred in the self-diagnosis (1113).
If no error occurs and the process ends normally, the self-diagnosis determination unit 15 sets a startup success flag (1114), and the time set in the self-diagnosis non-execution period setting unit 13 at the time read from the RTC 4 Is set in the self-diagnosis non-execution time limit setting unit 14 (1115).
Then, after the self-diagnosis determination unit 15 increments the content of the continuous startup success number counting unit 11 by 1 (1116), the execution of the self-diagnosis program is terminated and the start-up of the actual system is started.
If an error occurs in the self-diagnosis, the self-diagnosis determination unit 15 does not set the start-up success flag 10, displays an error occurrence (1117), and stops the system start-up.

一方、ステップ1102において、立上げ成功フラグがセットされていれば、自己診断決定部15は、少なくとも1度は自己診断の実行が正常終了したと判断し、連続立上げ成功回数カウント部11の内容と自己診断非実行回数設定部12の内容を比較する(1103)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部22の内容を超えていた場合には、既に指定された回数だけ自己診断の実行を省略済なので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(1110)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部12の内容を超えていなかった場合には、自己診断決定部15は、RTC4から読み出した時刻と自己診断非実行期限設定部14にセットされていた時刻の比較を行う(1104)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていた場合、指定された時間を超えて自己診断を実行していないことになるので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(1110)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていなかった場合、振動異常発生フラグ52をチェックする(1105)。
振動異常フラグがセットされていた場合、異常に強い振動が発生し、ハードウェア故障が発生した可能性があるため、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(1110)。
振動異常発生フラグ52がセットされていなかった場合には、自己診断決定部15は自己診断の省略を決定し、連続立上げ成功回数カウント部11の内容を1増やし(1116)、自己診断プログラムの終了と実システムの立上げ開始を行う。
On the other hand, if the startup success flag is set in step 1102, the self-diagnosis determination unit 15 determines that the execution of the self-diagnosis has been normally completed at least once, and the contents of the continuous startup success count unit 11 And the contents of the self-diagnosis non-execution frequency setting unit 12 are compared (1103).
When the content of the continuous startup success number counting unit 11 exceeds the content of the self-diagnosis non-execution frequency setting unit 22, the self-diagnosis determination unit 15 has omitted the execution of the self-diagnosis by the number of times already specified. After execution of the self-diagnosis is determined and the processing after the startup success flag 10 is cleared, the self-diagnosis program performs self-diagnosis (1110).
If the content of the continuous startup success count unit 11 does not exceed the content of the self-diagnosis non-execution number setting unit 12, the self-diagnosis determination unit 15 reads the time read from the RTC 4 and the self-diagnosis non-execution time limit setting unit The time set to 14 is compared (1104).
If the time read from the RTC 4 has passed the time set in the self-diagnosis non-execution deadline setting unit 14, the self-diagnosis has not been executed beyond the specified time, so the self-diagnosis determination unit 15 Determines execution of self-diagnosis, and after the processing after clearing the startup success flag 10, the self-diagnosis program performs self-diagnosis (1110).
When the time read from the RTC 4 has not passed the time set in the self-diagnosis non-execution time limit setting unit 14, the vibration abnormality occurrence flag 52 is checked (1105).
If the vibration abnormality flag is set, abnormally strong vibration has occurred and a hardware failure may have occurred. Therefore, the self-diagnosis determination unit 15 determines execution of the self-diagnosis, and the startup success flag 10 After the process after clearing, the self-diagnosis program performs self-diagnosis (1110).
If the vibration abnormality occurrence flag 52 is not set, the self-diagnosis determination unit 15 determines that the self-diagnosis is omitted, and increments the content of the continuous startup success count unit 11 by 1 (1116). End and start up the actual system.

また、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図30に示す振動異常監視1の処理を定期的に行い、振動異常の発生を定期的に監視し、振動が上限加速度設定部51に設定した値を超えた場合には振動異常発生フラグ52をセットする。   In addition, the self-diagnosis determination unit 15 periodically performs the vibration abnormality monitoring 1 process shown in FIG. 30 during the self-diagnosis and the system operation, and periodically monitors the occurrence of the vibration abnormality, When the value set in the upper limit acceleration setting unit 51 is exceeded, the vibration abnormality occurrence flag 52 is set.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間および上限加速度設定部51への上限加速度の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The RTC 4 time, the number of self-diagnosis skips to the self-diagnosis non-execution setting unit 12, the self-diagnosis skip period to the self-diagnosis non-execution period setting unit 13, and the upper limit acceleration to the upper limit acceleration setting unit 51 are set by self-diagnosis. The user can set in advance by a program setting function or the like.

以上のように、この実施の形態では一度自己診断が成功した後、決めた回数および決めた期間に満たなくても、異常に強い振動が動作中に発生した場合には、次回の電源投入もしくはリセット実行時に自己診断を実行するため、異常に強い振動の発生によりハードウェアの故障などが発生した場合に確実に故障を指摘できるため、システムの信頼性を向上することが可能になる。   As described above, in this embodiment, after successful self-diagnosis, if abnormally strong vibration occurs during operation even if the determined number of times and the determined period are not satisfied, the next power-on or Since the self-diagnosis is executed at the time of reset execution, it is possible to reliably point out a failure when a hardware failure occurs due to abnormally strong vibrations, thereby improving the reliability of the system.

以上、本実施の形態では、組込み装置に加えられた振動を測定するための振動測定手段およびある加速度以上になるとハードウェアの故障発生率が高くなる上限加速度を設定するための上限家族度設定手段および振動異常発生フラグを設け、振動測定手段による動作中に加えられた振動の測定結果が上限加速度設定手段に設定された値を超えた場合には、振動異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、振動異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in the present embodiment, the vibration measuring means for measuring the vibration applied to the built-in device and the upper limit family degree setting means for setting the upper limit acceleration at which the hardware failure rate increases when the acceleration exceeds a certain acceleration If the vibration measurement result applied during operation by the vibration measurement means exceeds the value set in the upper limit acceleration setting means, the vibration abnormality occurrence flag is set and the next power Built-in device that executes self-diagnosis when the vibration abnormality occurrence flag is set, even if both the continuous startup success count counting means and the self-diagnosis non-execution deadline setting means do not satisfy the conditions at the time of turning on or resetting The self-diagnosis execution control method was explained.

実施の形態12.
実施の形態12では、実施の形態11に加えて振動異常が発生した回数を自己診断の実行を制御する条件に入れた場合の実施の形態を示す。
Embodiment 12 FIG.
In the twelfth embodiment, in addition to the eleventh embodiment, an embodiment in which the number of occurrences of vibration abnormality is included in the conditions for controlling the execution of the self-diagnosis is shown.

図12は、その場合の組込み装置100の構成を示すブロック図である。
図12において、53は振動異常発生回数をカウントする振動異常発生回数カウント部、54は振動異常自己診断実行閾値設定部である。
振動異常発生回数カウント部53は、連続立上げ成功回数カウント部11とともに、回数カウント部の例である。また、振動異常発生回数カウント部53がカウントする振動異常発生回数は異常値連続回数の例である。
また、図12において、図11と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 12 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 12, reference numeral 53 denotes a vibration abnormality occurrence number counting unit for counting the number of vibration abnormality occurrences, and 54 is a vibration abnormality self-diagnosis execution threshold setting unit.
The vibration abnormality occurrence count section 53 is an example of the count section together with the continuous startup success count section 11. Further, the vibration abnormality occurrence number counted by the vibration abnormality occurrence number counting unit 53 is an example of the abnormal value continuous number of times.
In FIG. 12, the same reference numerals as those in FIG. 11 denote the same parts or parts that perform the same function.

電源投入およびリセット実行後は図31の処理を行う。
図31は図29の処理に、振動異常発生回数カウント部53をクリアするステップ(1209)が追加されている点のみが異なり、その他の処理は図29と同じである。
After power-on and reset execution, the processing of FIG. 31 is performed.
FIG. 31 differs from the process of FIG. 29 only in that a step (1209) for clearing the vibration abnormality occurrence count section 53 is added, and the other processes are the same as those in FIG.

また、振動異常の発生監視を行うため、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図32に示す振動異常監視2の処理を定期的に行う。
すなわち、まず、振動測定部50から振動の値である加速度を読み出す(1250)。
読み出した加速度と上限加速度設定部51に設定された値を比較する(1251)。
振動測定部50から読み出した加速度が上限加速度設定部51に設定された値を超えていない場合、今回の加速度を前回加速度として記憶し(1256)、振動異常監視2の処理を終了する。
振動測定部50から読み込んだ加速度が上限加速度設定部51に設定された値を超えていた場合、前回加速度をチェックする(1252)。
前回加速度が上限加速度設定部51に設定された値を超えていた場合には、異常に強い振動が継続しているものと判断し、今回の加速度を前回加速度として記憶し(1256)、振動異常監視2の処理を終了する。前回加速度が上限加速度設定部51に設定された値を超えていなかった場合には、新たに異常振動が発生したものと判断し、振動異常発生回数カウント部53を1増やす(1253)。
そして、振動異常発生回数カウント部53の値と振動異常自己診断実行閾値設定部54に設定されていた値を比較する(1254)。
振動異常発生回数カウント部53の値が振動異常自己診断実行閾値設定部54に設定されていた値を超えていなかった場合、自己診断決定部15は、今回の加速度を前回加速度として記憶し(1256)、振動異常監視2の処理を終了する。
ステップ1254において、振動異常発生回数カウント部53の値が振動異常自己診断実行閾値設定部54に設定されていた値を超えた場合、振動異常発生フラグ52をセットする(1255)。そして、今回の加速度を前回加速度として記憶し(1256)、振動異常監視2の処理を終了する。
Further, in order to monitor the occurrence of vibration abnormality, the self-diagnosis determination unit 15 periodically performs the process of vibration abnormality monitoring 2 shown in FIG. 32 during the execution of the self-diagnosis and the system operation.
That is, first, the acceleration that is the value of the vibration is read from the vibration measuring unit 50 (1250).
The read acceleration is compared with the value set in the upper limit acceleration setting unit 51 (1251).
If the acceleration read from the vibration measuring unit 50 does not exceed the value set in the upper limit acceleration setting unit 51, the current acceleration is stored as the previous acceleration (1256), and the processing of vibration abnormality monitoring 2 is terminated.
When the acceleration read from the vibration measuring unit 50 exceeds the value set in the upper limit acceleration setting unit 51, the previous acceleration is checked (1252).
If the previous acceleration exceeds the value set in the upper limit acceleration setting unit 51, it is determined that abnormally strong vibration continues, the current acceleration is stored as the previous acceleration (1256), and the vibration abnormality The monitoring 2 process is terminated. If the previous acceleration does not exceed the value set in the upper limit acceleration setting unit 51, it is determined that a new abnormal vibration has occurred, and the vibration abnormality occurrence count unit 53 is incremented by 1 (1253).
Then, the value of the vibration abnormality occurrence count section 53 is compared with the value set in the vibration abnormality self-diagnosis execution threshold setting section 54 (1254).
When the value of the vibration abnormality occurrence number counting unit 53 does not exceed the value set in the vibration abnormality self-diagnosis execution threshold setting unit 54, the self-diagnosis determination unit 15 stores the current acceleration as the previous acceleration (1256). ) The vibration abnormality monitoring 2 process is terminated.
In step 1254, if the value of the vibration abnormality occurrence count section 53 exceeds the value set in the vibration abnormality self-diagnosis execution threshold setting section 54, the vibration abnormality occurrence flag 52 is set (1255). Then, the current acceleration is stored as the previous acceleration (1256), and the vibration abnormality monitoring 2 process is terminated.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間、上限加速度設定部51への上限加速度および振動異常自己診断実行閾値設定部54への振動異常発生回数閾値の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The time of the RTC 4, the number of times of self-diagnosis omitted to the self-diagnosis non-execution number setting unit 12, the self-diagnosis omission period to the self-diagnosis non-execution period setting unit 13, the upper limit acceleration to the upper limit acceleration setting unit 51 and the vibration abnormality self-diagnosis The setting of the vibration abnormality occurrence frequency threshold value in the execution threshold value setting unit 54 can be set in advance by the user using a setting function of a self-diagnosis program.

以上のように、この実施の形態では異常に強い振動が動作中に発生した場合でも、その回数が指定された値を超えなければ電源投入もしくはリセット実行時の自己診断を実行しないので、不必要にシステムの立上げに要する時間が長くなるのを防ぐことが可能になる。   As described above, in this embodiment, even if abnormally strong vibration occurs during operation, self-diagnosis at power-on or reset execution is not executed unless the number of times exceeds the specified value. Therefore, it is possible to prevent the time required for system startup from becoming long.

以上、本実施の形態では、振動異常発生回数をカウントする振動異常発生回数カウント手段と振動異常自己診断実行閾値設定手段を設け、振動測定手段による動作中に加えられた振動の測定結果が上限加速度設定手段に設定された値を超えた場合には振動異常発生回数カウント手段を1増やし、振動異常発生回数カウント手段の値が振動異常自己診断実行閾値設定手段に設定された値を超えた場合に振動異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、振動異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in the present embodiment, the vibration abnormality occurrence frequency counting means for counting the number of vibration abnormality occurrences and the vibration abnormality self-diagnosis execution threshold setting means are provided, and the measurement result of vibration applied during the operation by the vibration measurement means is the upper limit acceleration. When the value set in the setting means is exceeded, the vibration abnormality occurrence number counting means is incremented by one, and the value of the vibration abnormality occurrence number counting means exceeds the value set in the vibration abnormality self-diagnosis execution threshold setting means When the vibration abnormality occurrence flag is set and the power is turned on or reset next time, the vibration abnormality occurrence flag is set even if the continuous startup success count counting means and the self-diagnosis non-execution deadline setting means both satisfy the conditions. The self-diagnosis execution control method of the embedded device that executes the self-diagnosis is explained.

実施の形態13.
実施の形態13では、自己診断の実行を制御する条件に異常振動が継続した時間を入れた場合の実施の形態を示す。
Embodiment 13 FIG.
In the thirteenth embodiment, an embodiment in which the time during which abnormal vibration continues is included in the condition for controlling the execution of the self-diagnosis will be described.

図13は、その場合の組込み装置100の構成を示すブロック図である。
図13において、55は振動異常発生状態になってからの時間を計測するための振動異常発生時間計測部、56は振動異常猶予時間設定部である。
振動異常発生時間計測部55は、RTC4、自己診断非実行期間設定部13及び自己診断非実行期限設定部14とともに計時部の例である。また、振動異常発生時間計測部55が計測する振動異常発生時間は異常値継続時間の例である。
また、図13において、図11と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 13 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 13, reference numeral 55 denotes a vibration abnormality occurrence time measuring unit for measuring the time after the vibration abnormality occurrence state, and 56 is a vibration abnormality grace time setting unit.
The vibration abnormality occurrence time measuring unit 55 is an example of a timer unit together with the RTC 4, the self-diagnosis non-execution period setting unit 13 and the self-diagnosis non-execution time limit setting unit 14. Further, the vibration abnormality occurrence time measured by the vibration abnormality occurrence time measuring unit 55 is an example of the abnormal value duration.
In FIG. 13, the same reference numerals as those in FIG. 11 indicate the same portions or portions that perform equivalent functions.

電源投入およびリセット実行後は図33の処理を行う。
図33は図29の処理に、振動異常発生時間計測部55をクリアするステップ(1309)が追加されている点のみが異なり、その他の処理は図29と同じである。
After power-on and reset execution, the processing of FIG. 33 is performed.
FIG. 33 differs from the process of FIG. 29 only in that a step (1309) for clearing the vibration abnormality occurrence time measurement unit 55 is added, and the other processes are the same as those in FIG.

また、異常振動の発生監視を行うため、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図34に示す振動異常監視3の処理を定期的に行う。
すなわち、まず、振動測定部50から振動の値である加速度を読み出す(1350)。
読み出した加速度と上限加速度設定部51に設定された値を比較する(1351)。
振動測定部50から読み込んだ加速度が上限加速度設定部51に設定された値を超えていなかった場合、自己診断決定部15は、振動異常監視3の処理を終了する。
一方、ステップ1351において、振動測定部50から読み込んだ加速度が上限加速度設定部51に設定された値を超えていた場合、振動異常発生時間計測部55を1増やす(1352)。
そして、振動異常発生時間計測部55の値と振動異常猶予時間設定部56に設定されていた値を比較する(1353)。
振動異常発生時間計測部55の値が振動異常猶予時間設定部56に設定されていた値を超えていなかった場合、自己診断決定部15は、振動異常監視3の処理を終了する。
また、ステップ1353において、振動異常発生時間計測部55の値が振動異常猶予時間設定部56に設定されていた値を超えた場合、自己診断決定部15は、振動異常発生フラグ52をセットする(1354)。
そして、振動異常監視3の処理を終了する。
Further, in order to monitor the occurrence of abnormal vibration, the self-diagnosis determination unit 15 periodically performs the process of vibration abnormality monitoring 3 shown in FIG. 34 during the execution of the self-diagnosis and the system operation.
That is, first, the acceleration that is the value of the vibration is read from the vibration measuring unit 50 (1350).
The read acceleration is compared with the value set in the upper limit acceleration setting unit 51 (1351).
If the acceleration read from the vibration measurement unit 50 does not exceed the value set in the upper limit acceleration setting unit 51, the self-diagnosis determination unit 15 ends the processing of the vibration abnormality monitoring 3.
On the other hand, if the acceleration read from the vibration measuring unit 50 exceeds the value set in the upper limit acceleration setting unit 51 in step 1351, the vibration abnormality occurrence time measuring unit 55 is incremented by 1 (1352).
Then, the value of the vibration abnormality occurrence time measuring unit 55 is compared with the value set in the vibration abnormality grace time setting unit 56 (1353).
If the value of the vibration abnormality occurrence time measuring unit 55 does not exceed the value set in the vibration abnormality grace time setting unit 56, the self-diagnosis determination unit 15 ends the processing of the vibration abnormality monitoring 3.
In step 1353, when the value of the vibration abnormality occurrence time measuring unit 55 exceeds the value set in the vibration abnormality grace time setting unit 56, the self-diagnosis determination unit 15 sets the vibration abnormality occurrence flag 52 ( 1354).
And the process of the vibration abnormality monitoring 3 is complete | finished.

なお、RTC4の時刻、自己診断非実行回数設定部12への自己診断省略回数、自己診断非実行期間設定部13への自己診断省略期間、上限加速度設定部51への上限加速度および振動異常猶予時間設定部56への振動異常発生猶予時間の設定は自己診断プログラムの設定機能などにより、ユーザが予め設定しておくことができる。   The time of the RTC 4, the number of times of self-diagnosis omitted to the self-diagnosis non-execution number setting unit 12, the self-diagnosis omission period to the self-diagnosis non-execution period setting unit 13, the upper limit acceleration to the upper limit acceleration setting unit 51, and the vibration abnormality grace time The setting of the vibration abnormality occurrence grace time in the setting unit 56 can be set in advance by the user using a setting function of the self-diagnosis program.

以上のように、この実施の形態では異常に強い振動が動作中に発生した場合でも、その発生時間の合計が指定された値を超えなければ電源投入もしくはリセット実行時の自己診断を実行しないので、不必要にシステムの立上げに要する時間が長くなるのを防ぐことが可能になる。   As described above, in this embodiment, even when abnormally strong vibration occurs during operation, the self-diagnosis at power-on or reset execution is not executed unless the total generation time exceeds the specified value. It is possible to prevent an unnecessarily long time required for starting up the system.

以上、本実施の形態では、振動異常発生状態になってからの時間を計測するための振動異常発生時間計測手段と振動異常時間設定手段を設け、振動測定手段による動作中に加えられた振動の測定結果が上限加速度設定手段に設定された値を超えた時に振動異常発生時間計測手段による時間の計測を開始させ、上限加速度設定手段に設定された値以内に戻った時に時間の計測を停止させることにより、上限加速度設定手段に設定した値を超えた振動異常発生時間の合計が振動異常時間設定手段に設定された値を超えた場合に振動異常発生フラグをセットし、次回の電源投入もしくはリセットの実行時には、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、振動異常発生フラグがセットされていることにより自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in this embodiment, the vibration abnormality occurrence time measuring means and the vibration abnormality time setting means for measuring the time after the vibration abnormality occurrence state is provided, and the vibration applied during the operation by the vibration measurement means is provided. When the measurement result exceeds the value set in the upper limit acceleration setting means, the time measurement by the vibration abnormality occurrence time measuring means is started, and when the measurement result returns within the value set in the upper limit acceleration setting means, the time measurement is stopped. Therefore, when the total vibration abnormality occurrence time exceeding the value set in the upper limit acceleration setting means exceeds the value set in the vibration abnormality time setting means, the vibration abnormality occurrence flag is set and the power is turned on or reset next time. The vibration abnormality occurrence flag is set even if the continuous startup success count counting means and the self-diagnosis non-execution deadline setting means both satisfy the conditions. It described a self-diagnosis execution control method of the embedded device to perform a self-diagnosis by there.

実施の形態14.
以上の実施の形態11〜13では、上限加速度設定部51、振動異常発生フラグ52、振動異常発生回数カウント部53、振動異常自己診断実行閾値設定部54、振動異常発生時間計測部55、振動異常猶予時間設定部56を個別のハードウェアとして実現するようにしたものであるが、次にこれらを小容量のバッテリバックアップされたRAMに記憶するようにした場合の実施の形態を示す。
Embodiment 14 FIG.
In the above-described Embodiments 11 to 13, the upper limit acceleration setting unit 51, the vibration abnormality occurrence flag 52, the vibration abnormality occurrence number counting unit 53, the vibration abnormality self-diagnosis execution threshold setting unit 54, the vibration abnormality occurrence time measuring unit 55, the vibration abnormality The grace time setting unit 56 is realized as individual hardware. Next, an embodiment in which these are stored in a small-capacity battery-backed RAM will be described.

図14は、その場合の組込み装置100の構成を示すブロック図である。
バッテリバックアップされたRAM20の決まったアドレスをそれぞれ上限加速度設定部51、振動異常発生フラグ52、振動異常発生回数カウント部53、振動異常自己診断実行閾値設定部54、振動異常発生時間計測部55、振動異常猶予時間設定部56として割付ける。
FIG. 14 is a block diagram showing the configuration of the embedded device 100 in that case.
The predetermined addresses of the battery-backed RAM 20 are respectively set to an upper limit acceleration setting unit 51, a vibration abnormality occurrence flag 52, a vibration abnormality occurrence count unit 53, a vibration abnormality self-diagnosis execution threshold setting unit 54, a vibration abnormality occurrence time measuring unit 55, and a vibration. Assigned as the abnormal grace time setting unit 56.

動作は実施の形態11〜13の場合と同じある。
つまり、ROM2に格納された自己診断プログラムがCPU1により読み出されるときに、RAM20に格納されている各要素もCPU1により読み出され、動作可能となり、以降は、実施の形態11〜13と同様の手順にて自己診断の要否を決定する。
The operation is the same as in the case of the embodiments 11-13.
That is, when the self-diagnosis program stored in the ROM 2 is read by the CPU 1, each element stored in the RAM 20 is also read by the CPU 1 and becomes operable. Thereafter, the same procedure as in the embodiments 11 to 13 is performed. Determine whether self-diagnosis is necessary.

以上のように、本実施の形態により、自己診断の実行制御用に記憶すべき情報量が少なくて済み、小容量のRAMを利用して自己診断実行制御を実現できるため、自己診断実行制御のためのハードウェアを低コストで実現できる。さらに、RTCに内蔵されるRAMを利用すれば、自己診断実行制御のために専用に設けるハードウェアが不要となり、組込み装置をさらに低コストで実現することができる。   As described above, according to the present embodiment, the amount of information to be stored for self-diagnosis execution control can be reduced, and self-diagnosis execution control can be realized using a small-capacity RAM. Can be realized at low cost. Furthermore, if the RAM built in the RTC is used, hardware dedicated for self-diagnosis execution control is not required, and an embedded device can be realized at a lower cost.

以上、本実施の形態では、上限加速度設定手段、振動異常発生回数カウント手段、振動異常自己診断実行閾値設定手段、振動異常発生時間計測手段、振動異常時間設定手段および振動異常発生フラグはバッテリバックアップした小規模のRAMやFLASHなどの小規模の不揮発性メモリ、もしくは他の目的で既に実装済のバッテリバックアップしたRAMやFLASHなどの不揮発性メモリの一部を共有して使用する組込み装置の自己診断実行制御方法を説明した。   As described above, in this embodiment, the upper limit acceleration setting means, vibration abnormality occurrence count counting means, vibration abnormality self-diagnosis execution threshold setting means, vibration abnormality occurrence time measuring means, vibration abnormality time setting means, and vibration abnormality occurrence flag are backed up by a battery. Self-diagnosis of embedded devices that share a small amount of non-volatile memory such as RAM or FLASH, or a part of non-volatile memory such as battery-backed RAM or FLASH that has already been installed for other purposes The control method was explained.

実施の形態15.
実施の形態15では、電源投入もしくはリセット実行後に自己診断の実行を省略した回数および自己診断が成功してから経過した時間に加えて、組込み装置が動作する環境の温度、湿度および振動の全てを自己診断の実行を制御する条件に入れるようにした場合の実施の形態を示す。
Embodiment 15 FIG.
In the fifteenth embodiment, in addition to the number of times the execution of self-diagnosis is omitted after power-on or reset execution and the time elapsed after successful self-diagnosis, all of the temperature, humidity and vibration of the environment in which the embedded device operates are An embodiment in the case where the conditions for controlling the execution of self-diagnosis are included will be described.

図15は、その場合の組込み装置100の構成を示すブロック図である。
図15において、図1、図6、図10、図14と同じ番号は同一部分もしくは同等な機能を果たす部分を示す。
FIG. 15 is a block diagram showing the configuration of the embedded device 100 in that case.
In FIG. 15, the same reference numerals as those in FIGS. 1, 6, 10, and 14 denote the same or equivalent parts.

次に動作については、電源投入およびリセット実行後に図35に示す処理を行う。
処理の内容としては、実施の形態5では温度異常発生フラグのみ、実施の形態9では湿度異常発生フラグのみ、実施の形態13では振動異常発生フラグのみをそれぞれチェックしていたが、本実施の形態では、温度異常発生フラグのチェック(1505)、湿度異常発生フラグのチェック(1506)および振動異常発生フラグのチェック(1507)を全て行っている。
また、自己診断実行前には温度異常発生時間計測部、湿度異常発生時間計測部および振動異常発生時間計測部を全てクリアしている(1509)点が異なるが、その他については実施の形態5、9、13と同じである。
Next, with respect to the operation, the processing shown in FIG. 35 is performed after power-on and reset execution.
As the contents of the processing, only the temperature abnormality occurrence flag is checked in the fifth embodiment, only the humidity abnormality occurrence flag is checked in the ninth embodiment, and only the vibration abnormality occurrence flag is checked in the thirteenth embodiment. The temperature abnormality occurrence flag check (1505), the humidity abnormality occurrence flag check (1506), and the vibration abnormality occurrence flag check (1507) are all performed.
In addition, the temperature abnormality occurrence time measurement unit, the humidity abnormality occurrence time measurement unit, and the vibration abnormality occurrence time measurement unit are all cleared (1509) before the self-diagnosis is executed, except for the fifth embodiment. 9 and 13 are the same.

また、温度異常、湿度異常、振動異常の発生監視を行うため、自己診断決定部15は、自己診断の実行中およびシステム動作実行中には図36に示す環境異常監視のための処理を定期的に行う。
処理の内容については、実施の形態5、実施の形態9および実施の形態13で説明したものと同じ内容が直列に実行される。
Further, in order to monitor the occurrence of temperature abnormality, humidity abnormality, and vibration abnormality, the self-diagnosis determination unit 15 periodically performs the process for monitoring environmental abnormality shown in FIG. 36 during the execution of the self-diagnosis and the system operation. To do.
About the content of a process, the same content as what was demonstrated in Embodiment 5, Embodiment 9, and Embodiment 13 is performed in series.

以上のように、本実施の形態により、一度自己診断が成功した後、決めた回数および決めた期間に満たなくても、異常な高温、異常に高い湿度、異常に強い振動の何れかが動作中に発生した場合には、次回の電源投入もしくはリセット実行時に自己診断を実行するため、何れかの異常が原因でハードウェアの故障などが発生した場合でも確実に故障を指摘できるため、システムの信頼性を向上することが可能になる。   As described above, according to the present embodiment, after successful self-diagnosis, any one of abnormally high temperature, abnormally high humidity, and abnormally strong vibration can be operated even if the predetermined number of times and the predetermined period are not reached. If this occurs, the self-diagnosis will be performed at the next power-on or reset, so that even if a hardware failure occurs due to any abnormality, the failure can be pointed out reliably. Reliability can be improved.

以上、本実施の形態では、温度測定手段、湿度測定手段、振動測定手段の全てを設け、上限温度設定手段、温度異常発生時間計測手段、温度異常猶予時間設定手段、温度異常発生フラグ、上限湿度設定手段、湿度異常発生時間計測手段、湿度異常猶予時間設定手段、湿度異常発生フラグ、上限加速度設定手段、振動異常発生時間計測手段、振動異常猶予時間設定手段および振動異常発生フラグはバッテリバックアップした小規模のRAMやFLASHなどの小規模の不揮発性メモリ、もしくは他の目的で既に実装済のバッテリバックアップしたRAMやFLASHなどの不揮発性メモリの一部を共有して使用することで、温度異常、湿度異常、振動異常の何れかが発生した場合でも、次回の電源投入もしくはリセットの実行時に、連続立上げ成功回数カウント手段および自己診断非実行期限設定手段が共に条件を満たしていなくても、自己診断を実行する組込み装置の自己診断実行制御方法を説明した。   As described above, in this embodiment, all of the temperature measurement means, the humidity measurement means, and the vibration measurement means are provided, and the upper limit temperature setting means, the temperature abnormality occurrence time measurement means, the temperature abnormality grace time setting means, the temperature abnormality occurrence flag, and the upper limit humidity are provided. Setting means, humidity abnormality occurrence time measurement means, humidity abnormality grace time setting means, humidity abnormality occurrence flag, upper limit acceleration setting means, vibration abnormality occurrence time measurement means, vibration abnormality grace time setting means, and vibration abnormality occurrence flag are backed up by a battery. By using a small-scale non-volatile memory such as RAM or FLASH, or a part of non-volatile memory such as a battery-backed RAM or FLASH that has already been installed for other purposes, temperature abnormalities and humidity Even if either an abnormality or vibration abnormality occurs, it is continuously started up at the next power-on or reset execution. Without meet both conditions Gong number counting means and the self-diagnosis is not executed limit setting means, it has been described a self-diagnosis execution control method of the embedded device to perform a self-diagnosis.

実施の形態16.
実施の形態16では、自己診断の実行開始直前および自己診断実行中にユーザの要求を確認し、要求があった場合には自己診断の実行を中止するようにした場合の実施の形態を示す。
構成は実施の形態2と同じで図2に示される構成である。
Embodiment 16 FIG.
In the sixteenth embodiment, an embodiment in which the user's request is confirmed immediately before the start of the self-diagnosis execution and during the self-diagnosis execution, and when the request is made, the execution of the self-diagnosis is stopped is shown.
The configuration is the same as that of the second embodiment and is shown in FIG.

次に動作について、図37を元に動作を説明する。
電源投入およびリセット実行後、自己診断決定部15は、まず自己診断実行中のメッセージを表示部6表示する(1600)。
次に、自己診断決定部15は、立上げ成功フラグ10の状態を読取る(1601)。
そして、立上げ成功フラグがセットされているかどうか判断する(1602)。
立上げ成功フラグがセットされていなければ、自己診断決定部15は、まだ自己診断が正常終了していないと判断し、立上げ成功フラグ10をクリアし(1610)、連続立上げ成功回数カウント部11をクリアする(1611)。
ここでユーザからの自己診断中止要求が入力部5により入力されたかどうかチェックする(1612)。
中止要求があった場合、自己診断決定部15は、自己診断実行中のメッセージを消去し(1618)、自己診断プログラムの実行を終了し、実システムの立上げを開始する。
中止要求がなかった場合、自己診断プログラムが、ハードウェアの自己診断を実行する(1613)。
また、自己診断決定部15は、自己診断実行中も中止要求があるかどうかのチェックを定期的に行い、中止要求があった場合には自己診断の実行を中止する。自己診断実行後、自己診断決定部15は、まずは自己診断中止要求により中止したかどうかを確認する(1614)。
中止要求による中止だった場合には、自己診断実行中メッセージ消去(1618)からの処理を行う。
中止要求による中止ではなかった場合、自己診断決定部15は、自己診断でエラーが発生したかどうかをチェックする(1615)。
エラーが発生せず正常終了した場合には、自己診断決定部15は、立上げ成功フラグをセットし(1616)、RTC4から読み出した時刻に自己診断非実行期間設定部13に設定されている時間を加えた時刻を自己診断非実行期限設定部14にセットする(1617)。
そして、自己診断決定部15は、連続立上げ成功回数カウント部11の内容を1増やした(1605)後、自己診断実行中のメッセージを消去し(1618)、自己診断プログラムの実行を終了し、実システムの立上げを開始する。
もしも、自己診断でエラーが発生した場合には、立上げ成功フラグ10のセットは行わず、エラー発生の表示を行い(1619)、システムの立上げを中止する。
Next, the operation will be described with reference to FIG.
After power-on and reset execution, the self-diagnosis determination unit 15 first displays a message indicating that self-diagnosis is being executed on the display unit 6 (1600).
Next, the self-diagnosis determination unit 15 reads the state of the startup success flag 10 (1601).
Then, it is determined whether the startup success flag is set (1602).
If the startup success flag is not set, the self-diagnosis determination unit 15 determines that the self-diagnosis has not ended normally, clears the startup success flag 10 (1610), and continuously counts the number of successful startups. 11 is cleared (1611).
Here, it is checked whether a self-diagnosis stop request from the user has been input by the input unit 5 (1612).
If there is a cancel request, the self-diagnosis determination unit 15 deletes the message during execution of the self-diagnosis (1618), ends the execution of the self-diagnosis program, and starts to start up the actual system.
If there is no cancel request, the self-diagnosis program executes hardware self-diagnosis (1613).
Further, the self-diagnosis determination unit 15 periodically checks whether or not there is a cancel request even during execution of the self-diagnosis, and cancels the execution of the self-diagnosis when there is a cancel request. After executing the self-diagnosis, the self-diagnosis determination unit 15 first confirms whether or not the self-diagnosis determination unit 15 has been stopped by a self-diagnosis stop request (1614).
If the cancellation is due to the cancellation request, the processing from the self-diagnosis in-progress message deletion (1618) is performed.
If the cancellation is not due to the cancellation request, the self-diagnosis determination unit 15 checks whether an error has occurred in the self-diagnosis (1615).
If no error occurs and the process ends normally, the self-diagnosis determination unit 15 sets a startup success flag (1616), and the time set in the self-diagnosis non-execution period setting unit 13 at the time read from the RTC 4 Is set in the self-diagnosis non-execution time limit setting unit 14 (1617).
Then, the self-diagnosis determination unit 15 increments the content of the continuous startup success number counting unit 11 by 1 (1605), deletes the message during execution of the self-diagnosis (1618), ends the execution of the self-diagnosis program, Start up the real system.
If an error occurs in the self-diagnosis, the startup success flag 10 is not set, the error occurrence is displayed (1619), and the system startup is stopped.

また、ステップ1602において、立上げ成功フラグがセットされていれば、自己診断決定部15は、少なくとも1度は自己診断の実行が正常終了したと判断し、連続立上げ成功回数カウント部11の内容と自己診断非実行回数設定部12の内容を比較する(1603)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部22の内容を超えていた場合には、既に指定された回数だけ自己診断の実行を省略済なので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(1610)。
連続立上げ成功回数カウント部11の内容が自己診断非実行回数設定部12の内容を超えていなかった場合には、自己診断決定部15は、RTC4から読み出した時刻と自己診断非実行期限設定部14にセットされていた時刻の比較を行う(1604)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていた場合、自己診断決定部15は、指定された時間を超えて自己診断を実行していないことになるので、自己診断決定部15は自己診断の実行を決定し、立上げ成功フラグ10のクリア以降の処理の後、自己診断プログラムが自己診断を行う(1610)。
RTC4から読み出した時刻が自己診断非実行期限設定部14にセットされていた時刻を過ぎていなかった場合、自己診断決定部15は、自己診断の省略を決定し、連続立上げ成功回数カウント部11の内容を1増やし(1605)、自己診断実行中表示を消去し(1618)、自己診断プログラムの終了と実システムの立上げ開始を行う。
In step 1602, if the startup success flag is set, the self-diagnosis determination unit 15 determines that the execution of the self-diagnosis has been normally completed at least once, and the contents of the continuous startup success count unit 11 And the contents of the self-diagnosis non-execution frequency setting unit 12 are compared (1603).
When the content of the continuous startup success number counting unit 11 exceeds the content of the self-diagnosis non-execution frequency setting unit 22, the self-diagnosis determination unit 15 has omitted the execution of the self-diagnosis by the number of times already specified. After execution of the self-diagnosis is determined and the processing after the startup success flag 10 is cleared, the self-diagnosis program performs self-diagnosis (1610).
If the content of the continuous startup success count unit 11 does not exceed the content of the self-diagnosis non-execution number setting unit 12, the self-diagnosis determination unit 15 reads the time read from the RTC 4 and the self-diagnosis non-execution time limit setting unit The time set to 14 is compared (1604).
When the time read from the RTC 4 has passed the time set in the self-diagnosis non-execution time limit setting unit 14, the self-diagnosis determination unit 15 has not performed the self-diagnosis beyond the specified time. Therefore, the self-diagnosis determination unit 15 determines execution of the self-diagnosis, and the self-diagnosis program performs self-diagnosis after processing after the startup success flag 10 is cleared (1610).
When the time read from the RTC 4 has not passed the time set in the self-diagnosis non-execution deadline setting unit 14, the self-diagnosis determination unit 15 determines omission of self-diagnosis, and the continuous startup success frequency counting unit 11 Is incremented by 1 (1605), the self-diagnosis execution display is deleted (1618), the self-diagnosis program is terminated, and the actual system is started.

ここでは、説明を簡単にするために、温度異常、湿度異常、振動異常の発生チェックを行わない実施の形態を説明したが、実施の形態3〜15でも、自己診断開始直前に自己診断実行中の表示ステップと自己診断開始直前および自己診断実行中に本実施の形態で追加したユーザ要求確認ステップおよび自己診断終了前に自己診断実行中メッセージの消去ステップを入れることにより、本実施の形態で実現しているのと同じ効果が得られることは言うまでもない。   Here, in order to simplify the explanation, the embodiment in which the occurrence check of the temperature abnormality, the humidity abnormality, and the vibration abnormality is not performed has been described. However, in the third to fifteenth embodiments, the self-diagnosis is being executed immediately before the start of the self-diagnosis. This step is realized by adding a user request confirmation step added in this embodiment immediately before the start of self-diagnosis and during the execution of self-diagnosis and a step of deleting the self-diagnosis in-execution message before the end of self-diagnosis. Needless to say, the same effect can be obtained.

以上のように、この実施の形態によれば、自己診断の実行をユーザの要求により中止できるので、システムの信頼性よりもシステムの早い立ち上がりを求めるユーザに対してはそうした要求に柔軟に対応できるようになる。   As described above, according to this embodiment, the execution of self-diagnosis can be stopped by a user's request, so that it is possible to flexibly respond to such a request for a user who demands an early start-up of the system rather than the reliability of the system. It becomes like this.

以上、本実施の形態では、自己診断実行中は表示手段に自己診断実行中であり、自己診断を中止する場合にはボタンなどの入力手段を操作することで自己診断を中止する旨の表示を行い、実際にボタン押下げなどの自己診断中断操作が行われた場合には、自己診断の実行を中断し、通常システムの立上げを開始する組込み装置の自己診断実行制御方法を説明した。   As described above, in the present embodiment, the self-diagnosis is being performed on the display means during the self-diagnosis, and when the self-diagnosis is to be stopped, an indication to stop the self-diagnosis is displayed by operating the input means such as a button. A self-diagnosis execution control method for an embedded device that interrupts the execution of the self-diagnosis and starts the normal system startup when a self-diagnosis interruption operation such as button depression is actually performed.

なお、実施の形態1〜16に示す組込み装置100は、前述したように、プログラムを実行するCPU、ROM、RAM、HDD、LCD等の表示部、押しボタン、キーボード等の入力部を備えている。
HDDには、例えば、オペレーティングシステム(OS)、プログラム群、ファイル群が記憶されている。
プログラム群のプログラムは、CPUがオペレーティングシステムを利用しながら実行する。
プログラム群には、実施の形態1〜16においてプログラムであると説明した「〜部」が含まれる。これらプログラムは、CPUにより読み出され実行される。
As described above, the embedded device 100 shown in the first to sixteenth embodiments includes a CPU, a ROM, a RAM, an HDD, an LCD, and other display units that execute programs, and an input unit such as a push button and a keyboard. .
For example, an operating system (OS), a program group, and a file group are stored in the HDD.
The programs in the program group are executed by the CPU using the operating system.
The program group includes “to part” described as a program in the first to sixteenth embodiments. These programs are read and executed by the CPU.

また、RAMには、CPUに実行させるオペレーティングシステムのプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。
また、RAMには、CPUによる処理に必要な各種データが格納される。
The RAM temporarily stores at least part of an operating system program and application programs to be executed by the CPU.
The RAM stores various data necessary for processing by the CPU.

HDDやRAMには、ファイル群として、実施の形態1〜16の説明において、「〜の判断」、「〜の計算」、「〜の比較」、「〜の更新」、「〜の設定」、「〜の登録」、「〜の選択」等として説明している処理の結果を示す情報やデータや信号値や変数値やパラメータが、「〜ファイル」や「〜データベース」の各項目として記憶される。
また、実施の形態1〜16で説明しているフローチャートの矢印の部分は主としてデータや信号の入出力を示し、データや信号値は、RAM、HDDやその他の記録媒体に記録される。また、データや信号は、バスや信号線やケーブルその他の伝送媒体によりオンライン伝送される。
In the HDD and RAM, as the file group, in the description of the first to sixteenth embodiments, “determination of”, “calculation of”, “comparison of”, “update of”, “setting of”, Information, data, signal values, variable values, and parameters indicating the results of the processing described as "Registering", "Selecting", etc. are stored as "~ File" and "~ Database" items. The
The arrows in the flowcharts described in Embodiments 1 to 16 mainly indicate input / output of data and signals, and the data and signal values are recorded in RAM, HDD, and other recording media. Data and signals are transmitted on-line via buses, signal lines, cables, and other transmission media.

また、実施の形態1〜16の説明において「〜部」として説明しているものは、「〜回路」、「〜装置」、「〜機器」であってもよく、また、「〜ステップ」、「〜手順」、「〜処理」であってもよい。すなわち、「〜部」として説明しているものは、ROMに記憶されたファームウェアで実現されていても構わない。或いは、ソフトウェアのみ、或いは、素子・デバイス・基板・配線などのハードウェアのみ、或いは、ソフトウェアとハードウェアとの組み合わせ、さらには、ファームウェアとの組み合わせで実施されても構わない。ファームウェアとソフトウェアは、プログラムとして、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、DVD等の記録媒体に記憶される。   In addition, what is described as “to part” in the description of Embodiments 1 to 16 may be “to circuit”, “to device”, and “to device”, and “to step”, It may be “˜procedure” or “˜processing”. That is, what is described as “˜unit” may be realized by firmware stored in the ROM. Alternatively, it may be implemented only by software, or only by hardware such as elements, devices, substrates, and wirings, by a combination of software and hardware, or by a combination of firmware. Firmware and software are stored as programs in a recording medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, and a DVD.

1 CPU、2 ROM、3 RAM、4 RTC、5 入力部、6 表示部、7 DVD/CD、8 HDD、9 バッテリ、10 立上げ成功フラグ、11 連続立上げ成功回数カウント部、12 自己診断非実行回数設定部、13 自己診断非実行期間設定部、14 自己診断非実行期限設定部、15 自己診断決定部、20 RAM、30 温度測定部、31 上限温度設定部、32 温度異常発生フラグ、33 温度異常発生回数カウント部、34 温度異常自己診断実行閾値設定部、35 温度異常発生時間計測部、36 温度異常猶予時間設定部、40 湿度測定部、41 上限湿度設定部、42 湿度異常発生フラグ、43 湿度異常発生回数カウント部、44 湿度異常自己診断実行閾値設定部、45 湿度異常発生時間計測部、46 湿度異常猶予時間設定部、50 振動測定部、51 上限加速度設定部、52 振動異常発生フラグ、53 振動異常発生回数カウント部、54 振動異常自己診断実行閾値設定部、55 振動異常発生時間計測部、56 振動異常猶予時間設定部、100 組込み装置。   1 CPU, 2 ROM, 3 RAM, 4 RTC, 5 input section, 6 display section, 7 DVD / CD, 8 HDD, 9 battery, 10 startup success flag, 11 continuous startup success count section, 12 self-diagnosis non Number of executions setting unit, 13 Self-diagnosis non-execution period setting unit, 14 Self-diagnosis non-execution time limit setting unit, 15 Self-diagnosis determination unit, 20 RAM, 30 Temperature measurement unit, 31 Upper limit temperature setting unit, 32 Temperature abnormality occurrence flag, 33 Temperature abnormality occurrence count section, 34 Temperature abnormality self-diagnosis execution threshold setting section, 35 Temperature abnormality occurrence time measurement section, 36 Temperature abnormality grace time setting section, 40 Humidity measurement section, 41 Upper limit humidity setting section, 42 Humidity abnormality occurrence flag, 43 Humidity abnormality occurrence count section, 44 Humidity abnormality self-diagnosis execution threshold setting section, 45 Humidity abnormality occurrence time measurement section, 46 Humidity abnormality Grace time setting unit, 50 vibration measurement unit, 51 upper limit acceleration setting unit, 52 vibration abnormality occurrence flag, 53 vibration abnormality occurrence count counter, 54 vibration abnormality self-diagnosis execution threshold setting unit, 55 vibration abnormality occurrence time measurement unit, 56 vibration Abnormal grace time setting unit, 100 embedded device.

Claims (15)

立上げ処理時に自己診断を行うとともに、所定の場合に立上げ処理時の自己診断を省略できる情報処理装置であって、
連続して自己診断が省略された立上げ処理の回数を自己診断省略連続回数としてカウントする回数カウント部と、
継続して自己診断が行われていない時間を自己診断省略継続時間として計時する計時部と、
立上げ処理時において、前記回数カウント部によりカウントされた自己診断省略連続回数が閾値以上であるか否かを判定するとともに、前記計時部により計時された自己診断省略継続時間が閾値以上であるか否かを判定して、当該立上げ処理時において自己診断を行うか否かを決定する自己診断決定部とを有することを特徴とする情報処理装置。
An information processing apparatus capable of performing self-diagnosis during start-up processing and omitting self-diagnosis during start-up processing in a predetermined case,
A count unit that counts the number of start-up processes in which self-diagnosis is omitted continuously as a self-diagnosis skipped continuous number;
A timekeeping unit that counts the time during which self-diagnosis is not performed continuously as self-diagnosis skipping continuation time;
During start-up processing, it is determined whether or not the number of consecutive self-diagnosis skips counted by the number-of-times counting unit is greater than or equal to a threshold value, and whether or not the duration of self-diagnosis skipped time counted by the timing unit is greater than or equal to a threshold value An information processing apparatus comprising: a self-diagnosis determination unit that determines whether or not to perform self-diagnosis during the startup process.
前記自己診断決定部は、
自己診断省略連続回数及び自己診断省略継続時間の少なくともいずれかがそれぞれの閾値以上である場合に、当該立上げ処理時において自己診断を行うよう決定することを特徴とする請求項1に記載の情報処理装置。
The self-diagnosis determination unit
2. The information according to claim 1, wherein when at least one of the number of consecutive self-diagnosis skipping times and the duration of self-diagnosis skipping is equal to or greater than a threshold value, it is determined to perform self-diagnosis at the start-up process. Processing equipment.
前記自己診断決定部は、
前回の立上げ処理時に正常に立上げ処理が完了したか否かを管理しており、前回の立上げ処理時に正常に立上げ処理が完了していない場合は、自己診断省略連続回数と閾値との照合及び自己診断省略継続時間と閾値との照合を行わずに、当該立上げ処理時に自己診断を行うよう決定することを特徴とする請求項1又は2に記載の情報処理装置。
The self-diagnosis determination unit
It manages whether or not the startup process has been completed normally at the previous startup process.If the startup process has not been completed normally at the previous startup process, 3. The information processing apparatus according to claim 1, wherein the self-diagnosis is determined to be performed during the start-up process without performing the comparison between the check time and the self-diagnosis omission duration and the threshold value.
立上げ処理時に自己診断を行うとともに、所定の場合に立上げ処理時の自己診断を省略できる情報処理装置であって、
立上げ処理時における動作環境を測定する動作環境測定部と、
立上げ処理時において前記動作環境測定部により前回の自己診断実行以降に測定された測定値が異常値になったことがあるか否かを判定して、当該立上げ処理時において自己診断を行うか否かを決定する自己診断決定部とを有することを特徴とする情報処理装置。
An information processing apparatus capable of performing self-diagnosis during start-up processing and omitting self-diagnosis during start-up processing in a predetermined case,
An operating environment measurement unit for measuring the operating environment during start-up processing;
During the start-up process, the operating environment measurement unit determines whether or not the measured value measured after the previous self-diagnosis execution has become an abnormal value, and performs the self-diagnosis during the start-up process. An information processing apparatus comprising: a self-diagnosis determination unit that determines whether or not.
前記自己診断決定部は、
立上げ処理時において前記動作環境測定部により前回の自己診断実行以降に測定された測定値が異常値になったことがある場合に、当該立上げ処理時において自己診断を行うよう決定することを特徴とする請求項4に記載の情報処理装置。
The self-diagnosis determination unit
When the measurement value measured after the previous self-diagnosis execution by the operating environment measurement unit has become an abnormal value during the start-up process, it is determined to perform the self-diagnosis during the start-up process. The information processing apparatus according to claim 4.
前記自己診断決定部は、
前回の立上げ処理時に正常に立上げ処理が完了したか否かを管理しており、前回の立上げ処理時に正常に立上げ処理が完了していない場合は、前記動作環境測定部により前回の自己診断実行以降に測定された測定値が異常値になったことがあるか否かの判定を行わずに、当該立上げ処理時に自己診断を行うよう決定することを特徴とする請求項4又は5に記載の情報処理装置。
The self-diagnosis determination unit
It manages whether or not the startup process has been completed normally during the previous startup process.If the startup process has not been completed normally during the previous startup process, the operating environment measurement unit The determination as to whether or not the self-diagnosis is performed at the start-up process without determining whether or not the measured value measured after the execution of the self-diagnosis has become an abnormal value has been made. 5. The information processing apparatus according to 5.
前記情報処理装置は、更に、
連続して自己診断が省略された立上げ処理の回数を自己診断省略連続回数としてカウントする回数カウント部と、
継続して自己診断が行われていない時間を自己診断省略継続時間として計時する計時部とを有し、
前記自己診断決定部は、
立上げ処理時において前記動作環境測定部により前回の自己診断実行以降に測定された測定値が異常値になったことがあるか否かを判定するとともに、前記回数カウント部によりカウントされた自己診断省略連続回数及び前記計時部により計時された自己診断省略継続時間がそれぞれの閾値以上であるか否かを判定して、当該立上げ処理時において自己診断を行うか否かを決定することを特徴とする請求項4〜6のいずれかに記載の情報処理装置。
The information processing apparatus further includes:
A count unit that counts the number of start-up processes in which self-diagnosis is omitted continuously as a self-diagnosis skipped continuous number;
A time keeping unit that keeps the time during which self-diagnosis is not performed continuously as the self-diagnosis omission continuation time,
The self-diagnosis determination unit
During the start-up process, it is determined whether or not the measurement value measured after the previous self-diagnosis execution by the operating environment measurement unit has become an abnormal value, and the self-diagnosis counted by the number-of-times counting unit It is determined whether or not self-diagnosis is performed during the start-up process by determining whether or not the number of consecutive omissions and the self-diagnosis omission continuation time measured by the timing unit are equal to or greater than the respective threshold values. The information processing apparatus according to any one of claims 4 to 6.
前記自己診断決定部は、
立上げ処理時において前記動作環境測定部により前回の自己診断実行以降に測定された測定値が異常値になったことがあった場合、自己診断省略連続回数が閾値未満であり、かつ自己診断省略継続時間が閾値未満であった場合でも、当該立上げ処理時において自己診断を行うよう決定することを特徴とする請求項4〜7のいずれかに記載の情報処理装置。
The self-diagnosis determination unit
If the measured value measured after the previous self-diagnosis by the operating environment measurement unit during the start-up process has become an abnormal value, the number of consecutive self-diagnosis omissions is less than the threshold and the self-diagnosis is omitted. 8. The information processing apparatus according to claim 4, wherein, even if the duration time is less than a threshold value, it is determined to perform a self-diagnosis at the start-up process.
前記動作環境測定部は、
一定周期ごとに、動作環境を測定しており、
前記自己診断決定部は、
前記動作環境測定部により動作環境が測定される度に測定値が異常値であるかを判定し、
前記情報処理装置は、更に、
連続して前記自己診断決定部により測定値が異常値であると判定された回数を異常値連続回数としてカウントする回数カウント部を有し、
前記自己診断決定部は、
立上げ処理時において、前回の自己診断実行以降に前記回数カウント部によりカウントされた異常値連続回数が閾値以上である場合に、当該立上げ処理時において自己診断を行うよう決定することを特徴とする請求項4〜8のいずれかに記載の情報処理装置。
The operating environment measuring unit is
The operating environment is measured at regular intervals.
The self-diagnosis determination unit
Each time the operating environment is measured by the operating environment measuring unit, it is determined whether the measured value is an abnormal value,
The information processing apparatus further includes:
A number counting unit that continuously counts the number of times the measured value is determined to be an abnormal value by the self-diagnosis determination unit as the abnormal value continuous number of times,
The self-diagnosis determination unit
In the start-up process, when the number of consecutive abnormal values counted by the number-of-times counting unit since the previous self-diagnosis execution is equal to or greater than a threshold value, the self-diagnosis is determined to be performed during the start-up process. The information processing apparatus according to any one of claims 4 to 8.
前記動作環境測定部は、
一定周期ごとに、動作環境を測定しており、
前記自己診断決定部は、
前記動作環境測定部により動作環境が測定される度に測定値が異常値であるかを判定し、
前記情報処理装置は、更に、
継続して前記自己診断決定部により測定値が異常値であると判定されている時間を異常値継続時間として計時する計時部を有し、
前記自己診断決定部は、
立上げ処理時において、前回の自己診断実行以降に前記計時部により計時された異常値継続時間が閾値以上である場合に、当該立上げ処理時において自己診断を行うよう決定することを特徴とする請求項4〜9のいずれかに記載の情報処理装置。
The operating environment measuring unit is
The operating environment is measured at regular intervals.
The self-diagnosis determination unit
Each time the operating environment is measured by the operating environment measuring unit, it is determined whether the measured value is an abnormal value,
The information processing apparatus further includes:
Having a timekeeping unit that keeps the time when the measured value is determined to be an abnormal value by the self-diagnosis determining unit as the abnormal value duration time continuously,
The self-diagnosis determination unit
In the start-up process, when the abnormal value continuation time counted by the time measuring unit after the previous self-diagnosis execution is equal to or more than a threshold, it is determined to perform the self-diagnosis in the start-up process The information processing apparatus according to claim 4.
前記動作環境測定部は、
立上げ処理時における動作環境として、温度を測定することを特徴とする請求項4〜10のいずれかに記載の情報処理装置。
The operating environment measuring unit is
The information processing apparatus according to claim 4, wherein temperature is measured as an operating environment during the startup process.
前記動作環境測定部は、
立上げ処理時における動作環境として、湿度を測定することを特徴とする請求項4〜11のいずれかに記載の情報処理装置。
The operating environment measuring unit is
The information processing apparatus according to any one of claims 4 to 11, wherein humidity is measured as an operating environment during start-up processing.
前記動作環境測定部は、
立上げ処理時における動作環境として、情報処理装置の振動量を測定することを特徴とする請求項4〜12のいずれかに記載の情報処理装置。
The operating environment measuring unit is
The information processing apparatus according to claim 4, wherein a vibration amount of the information processing apparatus is measured as an operating environment during the startup process.
前記情報処理装置は、更に、
情報処理装置のユーザから自己診断の省略を指示する自己診断省略指示を入力する入力部を有し、
前記自己診断決定部は、
判定の結果、立上げ処理時に自己診断を行うよう決定した場合であっても、前記入力部がユーザから前記自己診断省略指示を入力した場合には、当該立上げ処理時に自己診断を行わないよう決定することを特徴とする請求項1〜13のいずれかに記載の情報処理装置。
The information processing apparatus further includes:
Having an input unit for inputting a self-diagnosis omission instruction to instruct omission of self-diagnosis from a user of the information processing apparatus;
The self-diagnosis determination unit
Even if it is determined that self-diagnosis is to be performed during start-up processing as a result of determination, if the input unit inputs the self-diagnosis omission instruction from the user, self-diagnosis is not performed during the start-up processing. The information processing apparatus according to claim 1, wherein the information processing apparatus is determined.
前記情報処理装置は、
過酷な環境下で使用される組込み装置であることを特徴とする請求項1〜14のいずれかに記載の情報処理装置。
The information processing apparatus includes:
The information processing apparatus according to claim 1, wherein the information processing apparatus is an embedded apparatus used in a harsh environment.
JP2009004396A 2009-01-13 2009-01-13 Information processor Pending JP2010165007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009004396A JP2010165007A (en) 2009-01-13 2009-01-13 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009004396A JP2010165007A (en) 2009-01-13 2009-01-13 Information processor

Publications (1)

Publication Number Publication Date
JP2010165007A true JP2010165007A (en) 2010-07-29

Family

ID=42581140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009004396A Pending JP2010165007A (en) 2009-01-13 2009-01-13 Information processor

Country Status (1)

Country Link
JP (1) JP2010165007A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012108724A (en) * 2010-11-17 2012-06-07 Nec Access Technica Ltd Information processing device and history output method for information processing device
JP2016019182A (en) * 2014-07-09 2016-02-01 アンリツ株式会社 Network testing device and network testing method
JP2017147514A (en) * 2016-02-15 2017-08-24 日本電信電話株式会社 Communication device, activation method and program
JP2019176529A (en) * 2019-07-18 2019-10-10 日本電信電話株式会社 Communication device, method for activation, and program

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59178552A (en) * 1983-03-30 1984-10-09 Fujitsu Ltd Self diagnosis controlling system
JPS6228842A (en) * 1985-07-31 1987-02-06 Toshiba Corp Hardware test system
JPS62222318A (en) * 1986-03-25 1987-09-30 Toshiba Corp Information processor
JPS6431235A (en) * 1987-07-27 1989-02-01 Hitachi Ltd Initial self-diagnosis control device for data processor
JPH0237432A (en) * 1988-07-27 1990-02-07 Seiko Epson Corp Self-diagnosing method for circuit
JPH08129495A (en) * 1994-11-01 1996-05-21 Toshiba Corp Computer system and self test method therefor
JPH08292897A (en) * 1995-04-20 1996-11-05 Canon Inc Information processor
JP2000099484A (en) * 1998-09-22 2000-04-07 Yokogawa Engineering Service Corp Diagnostic system
JP2000231310A (en) * 1999-02-09 2000-08-22 Ricoh Co Ltd Copying machine
JP2000242514A (en) * 1999-02-18 2000-09-08 Nec Ibaraki Ltd Information processor
JP2001195277A (en) * 2000-01-17 2001-07-19 Internatl Business Mach Corp <Ibm> Method and device for controlling power source of computer and computer
JP2006163687A (en) * 2004-12-06 2006-06-22 Nissan Motor Co Ltd System and method for controlling start of computer
WO2008120309A1 (en) * 2007-03-28 2008-10-09 Fujitsu Limited Electronic apparatus, method for controlling electronic apparatus, program for controlling electronic apparatus
JP2008302711A (en) * 2007-06-05 2008-12-18 Denso Corp Start support device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59178552A (en) * 1983-03-30 1984-10-09 Fujitsu Ltd Self diagnosis controlling system
JPS6228842A (en) * 1985-07-31 1987-02-06 Toshiba Corp Hardware test system
JPS62222318A (en) * 1986-03-25 1987-09-30 Toshiba Corp Information processor
JPS6431235A (en) * 1987-07-27 1989-02-01 Hitachi Ltd Initial self-diagnosis control device for data processor
JPH0237432A (en) * 1988-07-27 1990-02-07 Seiko Epson Corp Self-diagnosing method for circuit
JPH08129495A (en) * 1994-11-01 1996-05-21 Toshiba Corp Computer system and self test method therefor
JPH08292897A (en) * 1995-04-20 1996-11-05 Canon Inc Information processor
JP2000099484A (en) * 1998-09-22 2000-04-07 Yokogawa Engineering Service Corp Diagnostic system
JP2000231310A (en) * 1999-02-09 2000-08-22 Ricoh Co Ltd Copying machine
JP2000242514A (en) * 1999-02-18 2000-09-08 Nec Ibaraki Ltd Information processor
JP2001195277A (en) * 2000-01-17 2001-07-19 Internatl Business Mach Corp <Ibm> Method and device for controlling power source of computer and computer
JP2006163687A (en) * 2004-12-06 2006-06-22 Nissan Motor Co Ltd System and method for controlling start of computer
WO2008120309A1 (en) * 2007-03-28 2008-10-09 Fujitsu Limited Electronic apparatus, method for controlling electronic apparatus, program for controlling electronic apparatus
JP2008302711A (en) * 2007-06-05 2008-12-18 Denso Corp Start support device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012108724A (en) * 2010-11-17 2012-06-07 Nec Access Technica Ltd Information processing device and history output method for information processing device
JP2016019182A (en) * 2014-07-09 2016-02-01 アンリツ株式会社 Network testing device and network testing method
JP2017147514A (en) * 2016-02-15 2017-08-24 日本電信電話株式会社 Communication device, activation method and program
JP2019176529A (en) * 2019-07-18 2019-10-10 日本電信電話株式会社 Communication device, method for activation, and program

Similar Documents

Publication Publication Date Title
US20080104387A1 (en) Hard disk drive self-test system and method
JP2010086364A (en) Information processing device, operation state monitoring device and method
JP2006107430A (en) Method, system and device for identification of no response section of computer program
JPH0850557A (en) Fault recorder of microprocessor
JP2006309760A (en) Monitoring logic and monitoring method for detecting abnormal operation of data processor
JP2010128963A (en) Information processing apparatus and fault symptom decision method
JP2009110156A (en) Log output device and log output program
JP2010165007A (en) Information processor
JP5355049B2 (en) Diagnostic device, computer program, and diagnostic method
JP2004504667A (en) Method and apparatus for measuring the run time of a task in a real-time system
JP2016224883A (en) Fault detection method, information processing apparatus, and fault detection program
JP5529686B2 (en) Computer apparatus abnormality inspection method and computer apparatus using the same
JP2018092333A (en) Failure information management program, boot test method, and parallel processing apparatus
JP2009238211A (en) Information processing apparatus and elapsed time measurement method
JP2008159003A (en) Information processor
JP5627414B2 (en) Action log collection system and program
US7200746B2 (en) Device and method for automatically detecting and announcing error on booting a motherboard
JP2009211625A (en) Start log storage method for information processor
JP4535316B2 (en) Terminal fail-safe system, terminal fail-safe method, and terminal fail-safe program
JP2005031903A (en) Information processor
JP4856023B2 (en) Real-time watch apparatus and method
JP2755159B2 (en) Self-diagnosis method for information processing equipment
JP2009003557A (en) Device start time diagnostic method, diagnostic program, and start time diagnostic device
JP2003122644A (en) Computer and its storage device
KR102275978B1 (en) system and method in stable environment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110902

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121127

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121227

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130326