JP7825268B2 - Task monitoring system and task monitoring program - Google Patents
Task monitoring system and task monitoring programInfo
- Publication number
- JP7825268B2 JP7825268B2 JP2022100175A JP2022100175A JP7825268B2 JP 7825268 B2 JP7825268 B2 JP 7825268B2 JP 2022100175 A JP2022100175 A JP 2022100175A JP 2022100175 A JP2022100175 A JP 2022100175A JP 7825268 B2 JP7825268 B2 JP 7825268B2
- Authority
- JP
- Japan
- Prior art keywords
- task
- executed
- control variable
- computer
- tasks
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、個別の周期タイマを有する複数のタスクを実行するコンピューターにおいて、各前記タスクが異常なく確実に実行されているか否かを監視するためのタスク監視システム及びタスク監視プログラムに関し、特に組み込み系マイクロコンピューターに適する。 The present invention relates to a task monitoring system and task monitoring program for monitoring whether each task is being executed correctly and without abnormalities in a computer that executes multiple tasks each having its own periodic timer, and is particularly suitable for embedded microcomputers.
従来から、複数の異なる周期タイマを有するタスクを実行するコンピューター(演算・記憶・入出力などの機能を少数の集積回路に集約したマイクロコンピューターを含む。以下、単に「コンピューター」という)において、各前記タスクが異常なく確実に実行されているか否かを監視するためのソフトウェアまたはハードウェアによる監視システムを備えることで、異常を識別するとともに正常状態へ復帰させる対処を可能にしている。 Conventionally, computers (including microcomputers that consolidate functions such as calculation, storage, and input/output into a small number of integrated circuits; hereafter simply referred to as "computers") that execute tasks using multiple different periodic timers have been equipped with software or hardware monitoring systems that monitor whether each of the tasks is being executed reliably and without abnormalities, making it possible to identify abnormalities and take measures to return the system to a normal state.
そして、前記監視システムの従来例としてハードウェアであるウォッチドッグタイマ(以下「WDT」という)による監視システムが旧くから知られている。 A traditional example of such a monitoring system is a hardware-based monitoring system using a watchdog timer (hereinafter referred to as "WDT"), which has long been known.
このWDTによる監視システムは、コンピューターとWDTを内部的または外部的に接続しておき、特定のタスク完了時に所定の周期以内に発生させるコンピューターからの信号(ウォッチドッグ信号)がタイムアウト時間内にWDTに入力されることでトラップやリセット発生を抑制されることを利用してシステムが正常に動作し続けていることを判断するものであり、タイムアウト時間を超えてウォッチドッグ信号が入力されなかった場合、コンピューターに異常が発生したと判断してリセット信号を発信することでコンピューターにリセットを掛け、コンピューターの異常動作を防止するものが一般的である。 This WDT-based monitoring system determines whether the system is continuing to operate normally by connecting the computer and WDT internally or externally, and using the fact that a signal (watchdog signal) from the computer, which is generated within a specified cycle upon completion of a specific task, is input to the WDT within a timeout period, preventing traps and resets.If the watchdog signal is not input after the timeout period has elapsed, the WDT will determine that an abnormality has occurred in the computer and send a reset signal to reset the computer and prevent abnormal computer operation.
ところで、前記従来のWDTによる監視システムは、例えば図5の例に示したように互いに異なる周期タイマ(例えば1ms,5ms,10ms)を有する3種類のタスクについて、実行周期が短い順に優先度の高い割り込みで動作を実行する場合に、図6に示したように、最小(実行誤差を含まない)時間に対し、最長周期タイマ(10ms)で実行されるタスクに合わせた一つのウォッチドッグ信号を出力させて図7に示すような内部WDT監視システム、若しくは図8に示すような外部WDT監視システムで監視するものが一般的である。 In the case of a conventional WDT-based monitoring system, for example, as shown in the example of Figure 5, when three types of tasks with different periodic timers (e.g., 1 ms, 5 ms, 10 ms) are executed by interrupts with the shortest execution period, the highest priority, a watchdog signal is output for the task executed with the longest periodic timer (10 ms) for the minimum time (not including execution error), as shown in Figure 6, and monitoring is typically performed by an internal WDT monitoring system as shown in Figure 7 or an external WDT monitoring system as shown in Figure 8.
即ち、従来方式のWDTによる監視システムは最長の周期タイマのみに着目するもののため、周期タイマが短い順に優先度の高い割り込みで動作を実行する場合、割込処理が所定回数実行する間に最長の周期タイマで実行されるタスクよりも短い周期タイマで実行されるタスクが実行されなかったとしてもコンピューターからの信号(ウォッチドッグ信号)はタイムアウト時間内にWDTに入力されるため、WDTがコンピューターのリセットを行なえず、短い周期タイマで実行されるタスクの異常動作を防止できない場合が生じる。 In other words, because conventional WDT-based monitoring systems focus only on the longest period timer, when operations are executed using high-priority interrupts with shortest period timers, even if a task executed with a shorter period timer than the task executed with the longest period timer is not executed during the specified number of interrupt processing executions, a signal from the computer (watchdog signal) is input to the WDT within the timeout period, so the WDT cannot reset the computer and may not be able to prevent abnormal operation of a task executed with a short period timer.
周期タイマの割込み優先度と、各周期タイマで考慮される最大実行時間を見積り、全体の最大実行時間に対し、余裕を持った閾値を超えてないかを監視してコンピューターを確実にリセットすることができるWDT監視システムが、例えば、特開昭51-052256号公報(特許文献1)に掲示されている。 For example, Japanese Patent Laid-Open Publication No. 51-052256 (Patent Document 1) discloses a WDT monitoring system that estimates the interrupt priority of periodic timers and the maximum execution time considered for each periodic timer, monitors whether the overall maximum execution time exceeds a threshold with a margin, and can reliably reset the computer.
また、モジュール化されたプログラムを実行した際にその識別情報を記憶し、その情報が不一致(異常)と判定した際に異常終結させるプログラム暴走防止手法が、例えば、特開昭62-298844号公報(特許文献2)に掲示されている。 In addition, a method for preventing program runaway is disclosed, for example, in Japanese Patent Laid-Open Publication No. 62-298844 (Patent Document 2), in which identification information for a modularized program is stored when it is executed, and the program is terminated abnormally if the information is determined to be inconsistent (abnormal).
しかしながら、両者共前述の最も実行優先度が低く、周期タスクが長くなる可能性がある周期タイマやプログラムの集合であるモジュール処理に着目し、監視を実施するものであることから、より実行優先度が高く、短い周期タイマで実行されるタスクが毎回個々に確実に実行されているかを確認することができないという問題点があった。 However, both of these methods focus on and monitor module processing, which is a collection of periodic timers and programs that have the lowest execution priority and can potentially have long periodic tasks. This creates the problem that it is not possible to confirm whether tasks that have higher execution priority and are executed by short-period timers are being executed individually each time.
本発明は、異なる周期タイマを有する複数のタスクを実行するコンピューターにおいて、従来方式の監視システムと異なる方法によって、短い周期タイマで実行されるタスクの確実な監視も可能とした監視システムを提供することを課題とする。 The objective of the present invention is to provide a monitoring system that, in a computer that executes multiple tasks with different periodic timers, can reliably monitor tasks executed with short periodic timers using a method different from conventional monitoring systems.
前記課題を解決するためになされた本発明であるタスク監視システムは、個別の周期タイマを有する複数のタスクを実行するコンピューターと、前記コンピューターの内部または外部に設けられた監視手段とからなり、各前記タスクが異常なく実行されていることを確認するための監視システムであって、前記監視手段は、前記タスクの実行状態に応じて変動する管理変数を前記タスク毎に有し、前記管理変数の値によって当該タスクの監視を行うことを特徴とする。 The task monitoring system of the present invention, developed to solve the above problems, comprises a computer that executes multiple tasks, each with its own periodic timer, and monitoring means provided inside or outside the computer. It is a monitoring system for verifying that each task is being executed without any abnormalities. The monitoring means has a management variable for each task that fluctuates depending on the task's execution status, and monitors the task based on the value of the management variable.
本発明によれば、個別の周期タイマを有する複数のタスクを備えたコンピューターにおいて、従来方式のように時間的管理ではなく、周期の長短やタスクの優先度と関係無しに各前記タスクを個別に監視することが可能な監視システムを提供可能となる。 This invention makes it possible to provide a monitoring system for a computer equipped with multiple tasks each having its own periodic timer, which can monitor each task individually, regardless of the length of the period or the priority of the task, rather than managing the tasks based on time as in conventional methods.
殊に、前記管理変数は、初期値が設定された後、前記タスク毎に実行時のデクリメントと終了時のインクリメントにより変動する場合、前記管理変数をタスク実行・終了時のタイミングで変動させることにより、前記管理変数の値によって各タスクが正常に実行・終了できているかどうかの監視を行うことができる。 In particular, if the control variable is set to an initial value and then varies for each task by being decremented when the task is executed and incremented when the task is completed, by varying the control variable at the timing of task execution and completion, it is possible to monitor whether each task is being executed and completed normally based on the value of the control variable.
また、前記管理変数を合計した値である管理変数和を用いて全ての前記タスクの監視を行う場合、個々の管理変数を用いるよりも効率的に全てのタスクの監視を可能とすることができる。 Furthermore, when all of the tasks are monitored using the sum of the control variables, which is the total value of the control variables, it is possible to monitor all tasks more efficiently than using individual control variables.
更に、前記コンピューターがDAC(デジタル アナログ コンバーター)を備え、前記監視手段がコンパレータ回路およびオープンコレクタ回路を備えており、前記DAC(デジタル アナログ コンバーター)によって前記管理変数をアナログ電圧に変換した判定用信号として出力し、前記コンパレータ回路により前記判定用信号を閾値と比較して正常か異常かを判定し、前記オープンコレクタ回路により前記判定の結果を出力する場合、出力された判定の結果を用いて、例えば外部のハードウェアチェック機構により、コンピューターのリセット、アクチュエーターの停止、エラーの報知などを行うことなどができる。 Furthermore, if the computer is equipped with a DAC (digital-analog converter), the monitoring means is equipped with a comparator circuit and an open-collector circuit, the DAC (digital-analog converter) converts the control variable into an analog voltage and outputs it as a judgment signal, the comparator circuit compares the judgment signal with a threshold value to determine whether it is normal or abnormal, and the open-collector circuit outputs the judgment result, the output judgment result can be used, for example, by an external hardware check mechanism to reset the computer, stop an actuator, or notify of an error.
更にまた、個別の周期タイマを有する複数のタスクを実行するコンピューターにおいて各前記タスクが異常なく実行されていることを確認するためのタスク監視プログラムであって、前記タスク毎に用意されて各前記タスクの実行状態に応じて変動する管理変数の初期値を設定するステップと、前記管理変数を、前記タスク毎に実行時のデクリメントと終了時のインクリメントにより変動させるステップと、前記管理変数と閾値とを比較すること、または、前記管理変数を合計した値である管理変数和と閾値とを比較することで前記管理変数に係るタスクまたは全てのタスクの実行が正常か異常かを判定するステップと、前記判定の結果を出力するステップとを実行する場合、コンピューターで実行されるプログラム上でタスク監視を行うことができる。 Furthermore, a task monitoring program for verifying that each task is being executed normally on a computer that executes multiple tasks each having its own periodic timer, includes the steps of: setting an initial value for a control variable that is prepared for each task and varies depending on the execution status of each task; varying the control variable for each task by decrementing it during execution and incrementing it at completion; comparing the control variable with a threshold value, or by comparing the sum of the control variables, which is the total value of the control variables, with a threshold value, to determine whether the execution of the task related to the control variable or all tasks is normal or abnormal; and outputting the results of the determination. This enables task monitoring to be performed on a program executed by a computer.
本発明によると、個別の周期タイマを有する複数のタスクを実行するコンピューターにおいて、各タスクの実行状態に応じて変動する管理変数を用いることによって、短い周期タイマで実行されるタスクの確実な監視もすることができる。 According to the present invention, in a computer that executes multiple tasks with individual periodic timers, tasks executed with short periodic timers can also be reliably monitored by using a management variable that changes depending on the execution status of each task.
以下に、図面に基づいて本発明の好ましい実施の形態について説明する。 The following describes a preferred embodiment of the present invention with reference to the drawings.
図1は、本発明であるタスク監視システムの好ましい実施の形態において個別かつ互いに異なる周期タイマ(例えば3つの周期1ms,5ms,10ms)を有する各タスクを実行するコンピューターにおける全てのタスクが正常に実行された場合の実行スケジュールであり、本実施の形態では、各タスクの実行状態を時間的管理によらない変数による管理手法により各前記タスクがそれぞれ異常なく実行されていることを確認するものであって、このように各タスクの実行状態を変数化したことを本発明の特徴とする。 Figure 1 shows an execution schedule for a computer that executes tasks with individual and mutually different periodic timers (e.g., three periods: 1 ms, 5 ms, and 10 ms) in a preferred embodiment of the task monitoring system of the present invention, where all tasks are executed normally. In this embodiment, the execution status of each task is managed using a variable-based management method that does not rely on time management, and it is confirmed that each task is being executed without any abnormalities. This variableization of the execution status of each task is a feature of the present invention.
以下に示した表1は、本実施の形態について各タスクの実行状態を管理変数(2ビット、4値管理)として変数化したものと、その状態を示す表であり、前記図1における周期タイマ1msであるタスクの管理変数をA、周期タイマ5msであるタスクの管理変数をB、周期タイマ10msであるタスクの管理変数をCとした。 Table 1 below shows the execution status of each task in this embodiment, expressed as a control variable (2 bits, 4-value control), and its status. In Figure 1 above, the control variable for the task with a periodic timer of 1 ms is A, the control variable for the task with a periodic timer of 5 ms is B, and the control variable for the task with a periodic timer of 10 ms is C.
そして、本実施の形態は、図1に示したように、互いに異なる周期タイマのタスク毎に、制御1周期の開始・終了を前記表1に示した管理変数を用いて監視するものである。 In this embodiment, as shown in Figure 1, the start and end of one control cycle for each task of a different periodic timer is monitored using the management variables shown in Table 1.
詳細に説明すると、図2に示すように、先ず管理変数の初期値である2(10)の数値をセットした後、タスク毎の管理変数を、タスク実行時にデクリメント(-1)、タスク終了時にインクリメント(+1)する。 In more detail, as shown in Figure 2, the initial value of the control variable is first set to 2 (10), and then the control variable for each task is decremented (-1) when the task is executed and incremented (+1) when the task ends.
このとき、特定の周期タイマのタスクにおいてタスク実行と次のタスク実行までの時間は当該周期タイマに基づいており(黒矢印)、タスク実行とタスク終了までの時間は特に定められていない。 In this case, for a task with a specific periodic timer, the time between task execution and the next task execution is based on that periodic timer (black arrow), and the time between task execution and task completion is not specifically specified.
このように、管理変数A,B,Cのそれぞれがとる値は0,1,2,3の4つであって、正常値は1または2であり(前記表1参照)、正常にタスクが実行されている場合、タスク実行時のデクリメント(-1)と、タスク終了時のインクリメント(+1)によって管理変数A,B,Cの値は1と2とを行き来する。 As such, the control variables A, B, and C each take on four values: 0, 1, 2, and 3, with the normal value being 1 or 2 (see Table 1 above).When a task is being executed normally, the values of control variables A, B, and C will fluctuate between 1 and 2 due to a decrement (-1) when the task is executed and an increment (+1) when the task ends.
すなわち、本実施の形態において管理変数A,B,Cの値が1または2である場合、各管理変数に対応するタスクの実行状態は正常であることが判定できる。 In other words, in this embodiment, when the values of control variables A, B, and C are 1 or 2, it can be determined that the execution status of the task corresponding to each control variable is normal.
反対に、図3に示したように、各タスクそれぞれについて、タスク実行時のデクリメント(-1)と、タスク終了時のインクリメント(+1)とを順番に(n-1番目、n番目のタスク…と順に行う)ところ、n-1番目の終了若しくは次のn番目の実行処理がなされない場合には、加算若しくは減算によって管理変数が正常値範囲から外れ、値が0または3となるので、管理変数の値によりタスクの実行異常が確認できる。 On the other hand, as shown in Figure 3, for each task, a decrement (-1) is made when the task is executed and an increment (+1) is made when the task ends (for the n-1th task, the nth task, etc.). If the n-1th task does not end or the next nth task is not executed, the addition or subtraction will cause the control variable to fall outside the normal range and become 0 or 3, so abnormal task execution can be confirmed by the value of the control variable.
また、本実施の形態に示した3種の各タスクにおける管理変数A,B,Cを合計した値である管理変数和Xを用いることで、各タスクが正常に実行,終了しているか否かを確認することができる。 In addition, by using the control variable sum X, which is the sum of the control variables A, B, and C for each of the three types of tasks shown in this embodiment, it is possible to check whether each task is running and completing normally.
管理変数A,B,Cおよび管理変数和Xを用いて、各タスクの実行状態の正常または異常を判定する手段について説明する。以下の表2は、管理変数A,B,Cのそれぞれがとる値と管理変数和Xとの関係を示す。 We will explain how to determine whether the execution status of each task is normal or abnormal using control variables A, B, C and the sum of control variables X. Table 2 below shows the relationship between the values of control variables A, B, C and the sum of control variables X.
このように、管理変数A,B,Cのそれぞれがとる値は0,1,2,3の4つであって、正常値は1または2であるため(前記表1参照)、合計した値である管理変数和Xとした際に、値が3~6であれば正常範囲となり、各タスクの実行状態は正常と判定することができる。 As such, the control variables A, B, and C each have four possible values: 0, 1, 2, and 3, with the normal value being 1 or 2 (see Table 1 above). Therefore, when the sum of these values is taken as the control variable sum X, a value between 3 and 6 falls within the normal range, and the execution status of each task can be determined to be normal.
しかしながら、管理変数和Xが正常範囲である3~6の外にある場合、すなわち管理変数和Xが0~2または7~9である場合には、異常値となり、各タスクの実行状態は異常と判定することができる。 However, if the control variable sum X is outside the normal range of 3 to 6, i.e., if the control variable sum X is 0 to 2 or 7 to 9, it is an abnormal value, and the execution status of each task can be determined to be abnormal.
尚、本実施の形態では、4状態について管理変数を示したが、4状態以外にも状態ビット桁数を増やすことで、より細やかな閾値設定が可能となり、異常検出の強化や緩和を図ることができる。 In this embodiment, the control variables are shown for four states, but by increasing the number of state bit digits beyond these four states, it becomes possible to set more precise thresholds, thereby strengthening or mitigating abnormality detection.
前記管理変数または前記管理変数和を用いた各タスクの実行状態の判定の結果は出力されるため、例えば、判定の結果が異常だった場合にコンピューターのリセット、アクチュエーターの停止、エラーの報知などを行うことなどができる。 The results of the judgment of the execution status of each task using the control variable or the sum of the control variables are output, so that if the judgment result is abnormal, it is possible to reset the computer, stop the actuator, or notify an error, for example.
更に、図4は、図1に示した実施の形態における各タスクの管理変数を信号として用いて外部監視を行うためのハードウェアインターフェース回路(アナログ監視回路)を示すものであり、コンピューターに備えたDAC(デジタル アナログ コンバーター、以下単に「DAC」という)から出力される信号を処理する、コンパレータ回路(COMP)と、ラッチ回路(自己保持回路)と、オープンコレクタ回路とを有している。 Furthermore, Figure 4 shows a hardware interface circuit (analog monitoring circuit) for external monitoring using the control variables of each task in the embodiment shown in Figure 1 as signals. It has a comparator circuit (COMP), a latch circuit (self-holding circuit), and an open-collector circuit that process signals output from a DAC (digital-to-analog converter, hereafter simply referred to as "DAC") provided in the computer.
先ず、図1に示した実施形態において用いられる管理変数を、前記DACによりアナログ電圧に変換した判定用信号として出力する。 First, the control variable used in the embodiment shown in Figure 1 is converted to an analog voltage by the DAC and output as a judgment signal.
下記表3は前記図1に示した実施の形態における3種のタスクについての管理変数A,B,Cを合計した値である管理変数和Xを前記DACにより判定用信号として0~5Vのアナログ電圧を出力する場合の、デジタル値とアナログ電圧値との相関を示すものである。尚、DACは5V×管理変数和X÷MAX値としてそのまま管理変数和Xを使用することができる。 Table 3 below shows the correlation between digital values and analog voltage values when the control variable sum X, which is the sum of the control variables A, B, and C for the three tasks in the embodiment shown in Figure 1, is output as an analog voltage of 0 to 5 V by the DAC as a judgment signal. The DAC can also use the control variable sum X as it is, as 5 V x control variable sum X ÷ MAX value.
次いで、前記出力された判定用信号であるアナログ電圧値に対してコンパレータ回路(COMP)により閾値と比較して正常か異常かを判定する。 Then, the analog voltage value of the output judgment signal is compared with a threshold value by a comparator circuit (COMP) to determine whether it is normal or abnormal.
前記表3に示したように、本実施の形態では、上側の閾値と下側の閾値を設定しており、前記上側の閾値と前記下側の閾値の間を正常範囲とし、前記上側の閾値よりも上および前記下側の閾値よりも下を異常値としている。 As shown in Table 3, in this embodiment, an upper threshold and a lower threshold are set, and the range between the upper threshold and the lower threshold is considered to be the normal range, while values above the upper threshold and below the lower threshold are considered to be abnormal values.
詳細な数値として、前記上側の閾値として3.61Vを、前記下側の閾値として1.39Vを適用しており、各閾値は、正常範囲と異常値の境目の中間値としているが、これに限られるものではない。 Specific numerical values are 3.61V as the upper threshold and 1.39V as the lower threshold, with each threshold being set to the midpoint between the normal range and the abnormal value, but are not limited to this.
このとき、前記コンパレータ回路(COMP)から出力される判定の結果をラッチ回路(自己保持回路)に入力することにより、異常状態解除信号が入力されるまでは異常状態を保持することができる。 At this time, the judgment result output from the comparator circuit (COMP) is input to a latch circuit (self-holding circuit), which allows the abnormal state to be maintained until an abnormal state cancellation signal is input.
そして、前記コンパレータ回路から出力される判定の結果を前記オープンコレクタ回路により外部に出力することで、例えばコンピューターのリセット回路を用いたリセット操作、アクチュエーター駆動回路の停止回路を用いた停止操作、警告表示灯による報知、などのハードウェアチェック機構による監視を行うことができる。 Then, by outputting the judgment result from the comparator circuit to the outside via the open collector circuit, monitoring can be performed using a hardware check mechanism, such as a reset operation using the computer's reset circuit, a stop operation using the actuator drive circuit's stop circuit, or an alarm using a warning indicator light.
尚、本発明において、タスクの数および個別の周期タイマの数は本実施の形態に示した3つに限られるものではなく、任意の数とすることができる。 Note that in the present invention, the number of tasks and the number of individual periodic timers are not limited to three as shown in this embodiment, but can be any number.
また、本発明のタスク監視システムは、コンピューター上で実行されるタスク監視プログラムとしても実現可能である。 The task monitoring system of the present invention can also be realized as a task monitoring program executed on a computer.
すなわち、本発明であるタスク監視プログラムは、個別の周期タイマを有する複数のタスクを実行するコンピューターにおいて各前記タスクが異常なく実行されていることを確認するためのタスク監視プログラムであって、前記タスク毎に用意されて各前記タスクの実行状態に応じて変動する管理変数の初期値を設定するステップと、前記管理変数を、前記タスク毎に実行時のデクリメントと終了時のインクリメントにより変動させるステップと、前記管理変数と閾値とを比較すること、または、前記管理変数を合計した値である管理変数和と閾値とを比較することで前記管理変数に係るタスクまたは全てのタスクの実行が正常か異常かを判定するステップと、前記判定の結果を出力するステップとを実行するものである。 In other words, the task monitoring program of the present invention is a task monitoring program for verifying that each task, each having its own periodic timer, is being executed without abnormalities in a computer that executes multiple tasks. The program executes the following steps: setting an initial value for a management variable that is prepared for each task and varies depending on the execution status of each task; varying the management variable for each task by decrementing it during execution and incrementing it at completion; comparing the management variable with a threshold value, or by comparing the sum of the management variables, which is the total value of the management variables, with a threshold value, to determine whether the execution of the task related to the management variable or all tasks is normal or abnormal; and outputting the results of the determination.
以上の通り、本発明によると、個別の周期タイマを有する複数のタスクを実行するコンピューターにおいて、各タスクの実行状態に応じて変動する管理変数を用いることによって、短い周期タイマで実行されるタスクの確実な監視もすることができる。 As described above, according to the present invention, in a computer that executes multiple tasks with individual periodic timers, by using a management variable that changes depending on the execution status of each task, it is possible to reliably monitor tasks executed with short periodic timers.
Claims (3)
前記監視手段は、前記タスクの実行状態に応じて変動する管理変数を前記タスク毎に有し、前記管理変数の値によって当該タスクの監視を行うものであり、
前記管理変数は、初期値が設定された後、前記タスク毎に実行時のデクリメントと終了時のインクリメントにより変動することを特徴とするタスク監視システム。 A monitoring system comprising a computer that executes a plurality of tasks, each having a periodic timer, and a monitoring means provided inside or outside the computer, for confirming that each of the tasks is being executed without an error,
the monitoring means has a control variable for each task that varies depending on the execution state of the task, and monitors the task based on the value of the control variable ;
A task monitoring system characterized in that the management variable is set to an initial value and then varies for each task by being decremented when the task is executed and incremented when the task is completed .
前記監視手段がコンパレータ回路およびオープンコレクタ回路を備えており、
前記DAC(デジタル アナログ コンバーター)によって前記管理変数をアナログ電圧に変換した判定用信号として出力し、前記コンパレータ回路により前記判定用信号を閾値と比較して正常か異常かを判定し、前記オープンコレクタ回路により前記判定の結果を出力することを特徴とする請求項1記載のタスク監視システム。 the computer is equipped with a DAC (digital-to-analog converter);
the monitoring means includes a comparator circuit and an open collector circuit;
The task monitoring system according to claim 1, characterized in that the DAC (digital-analog converter) converts the management variable into an analog voltage and outputs it as a judgment signal, the comparator circuit compares the judgment signal with a threshold value to determine whether it is normal or abnormal, and the open collector circuit outputs the result of the judgment.
前記タスク毎に用意されて各前記タスクの実行状態に応じて変動する管理変数の初期値を設定するステップと、
前記管理変数を、前記タスク毎に実行時のデクリメントと終了時のインクリメントにより変動させるステップと、
前記管理変数と閾値とを比較することで前記管理変数に係るタスクの実行が正常か異常かを判定するステップと、
前記判定の結果を出力するステップと、
を実行することを特徴とするタスク監視プログラム。 1. A task monitoring program for verifying that each task is being executed normally in a computer that executes a plurality of tasks each having an individual periodic timer, the program comprising:
setting an initial value of a control variable that is prepared for each task and that varies depending on the execution state of each task;
fluctuating the control variable by decrementing it when the task is executed and incrementing it when the task is completed;
a step of comparing the control variable with a threshold value to determine whether execution of a task related to the control variable is normal or abnormal;
outputting a result of the determination;
A task monitoring program that executes the above steps.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022100175A JP7825268B2 (en) | 2022-06-22 | 2022-06-22 | Task monitoring system and task monitoring program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022100175A JP7825268B2 (en) | 2022-06-22 | 2022-06-22 | Task monitoring system and task monitoring program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2024001493A JP2024001493A (en) | 2024-01-10 |
| JP7825268B2 true JP7825268B2 (en) | 2026-03-06 |
Family
ID=89455054
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022100175A Active JP7825268B2 (en) | 2022-06-22 | 2022-06-22 | Task monitoring system and task monitoring program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7825268B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009271833A (en) | 2008-05-09 | 2009-11-19 | Nikon Corp | Controller for automatic machine |
-
2022
- 2022-06-22 JP JP2022100175A patent/JP7825268B2/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009271833A (en) | 2008-05-09 | 2009-11-19 | Nikon Corp | Controller for automatic machine |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2024001493A (en) | 2024-01-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8689050B2 (en) | Restarting event and alert analysis after a shutdown in a distributed processing system | |
| EP1650662B1 (en) | Method and system for testing software program based upon states of program execution instability | |
| US9378048B2 (en) | Interruption of chip component managing tasks | |
| US7089450B2 (en) | Apparatus and method for process recovery in an embedded processor system | |
| CN105988884A (en) | Method and apparatus for controlling watchdog | |
| US20100185903A1 (en) | Failure Repetition Avoidance | |
| CA1236583A (en) | Device for improving detection of unoperational states in non-attended driven processor | |
| JP7825268B2 (en) | Task monitoring system and task monitoring program | |
| US20100180156A1 (en) | Intelligent dump suppression | |
| CN101027647B (en) | Method for executing a computer program on a computer system | |
| JP2009129463A (en) | Method for handling temporary error in real-time system of vehicle control apparatus | |
| CN112612636B (en) | Control method of hardware watchdog and watchdog system | |
| US20080133975A1 (en) | Method for Running a Computer Program on a Computer System | |
| CN100538644C (en) | Method for executing computer program, computing device | |
| JP2016066139A (en) | Vehicle control unit | |
| EP0423773A2 (en) | Emergency resumption processing apparatus for an information processing system | |
| CN113535448A (en) | Multiple watchdog control method and control system thereof | |
| US20240320041A1 (en) | Co-Operative Scheduler with Detection of Task Executing Longer than an Expected Execution Time Without Interrupting Execution of the Task | |
| CN109783210B (en) | Multitasking method, apparatus, computer device and storage medium | |
| JP2017043166A (en) | Vehicle control device | |
| CN110968448A (en) | Method for monitoring multitask running state | |
| US20160292027A1 (en) | Systems and methods for managing task watchdog status register entries | |
| US20220415405A1 (en) | Memory-control circuit and method for controlling erasing operation of flash memory | |
| JPH10269110A (en) | A method for avoiding a hang-up of a computer system and a computer system using the method. | |
| CN113971100A (en) | Method for monitoring at least one computing unit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20240329 |
|
| RD07 | Notification of extinguishment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7427 Effective date: 20240412 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20250508 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20251125 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20251225 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20260127 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20260216 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7825268 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |