JP2009113618A - Electric power steering device - Google Patents
Electric power steering device Download PDFInfo
- Publication number
- JP2009113618A JP2009113618A JP2007288281A JP2007288281A JP2009113618A JP 2009113618 A JP2009113618 A JP 2009113618A JP 2007288281 A JP2007288281 A JP 2007288281A JP 2007288281 A JP2007288281 A JP 2007288281A JP 2009113618 A JP2009113618 A JP 2009113618A
- Authority
- JP
- Japan
- Prior art keywords
- task
- executed
- program
- execution
- execution state
- 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
Links
Images
Abstract
Description
本発明は、操舵制御を行うためのプログラムの異常な実行状態の検知を行う電動パワーステアリング装置に関するものである。 The present invention relates to an electric power steering apparatus that detects an abnormal execution state of a program for performing steering control.
乗用車やトラック等の車両の操舵力を軽減するため、操舵補助モータによって操舵を補助する、いわゆる電動パワーステアリング(EPS:Electric Power Steering)装置がある。EPS装置では、操舵補助モータの駆動力を、減速機を介してギヤまたはベルト等の伝送機構により、ステアリングシャフトまたはラック軸に補助力を付与するようになっている。 In order to reduce the steering force of vehicles such as passenger cars and trucks, there is a so-called electric power steering (EPS) device that assists steering by a steering assist motor. In the EPS device, the driving force of the steering assist motor is applied to the steering shaft or the rack shaft by a transmission mechanism such as a gear or a belt via a speed reducer.
EPS装置は、車両操舵という重要な役割を担うため、自動車を構成する部品のなかでも安全性、信頼性への配慮が特に必要である。そのため、EPS装置の制御を行うコントロールユニットの制御プログラムについても、異常な操舵補助を実行してしまう状態に至る前に対処できるよう、設計された実行周期でプログラムが実行されていない状態や、極端な場合ではプログラムの暴走状態など、プログラムの異常な実行状態を検出する手法が求められている。 Since the EPS device plays an important role of vehicle steering, it is particularly necessary to consider safety and reliability among the parts constituting the automobile. For this reason, the control unit control program that controls the EPS device can be dealt with before it reaches a state where abnormal steering assistance is executed. In such a case, a method for detecting an abnormal execution state of the program such as a program runaway state is required.
このようなプログラムの異常な実行状態を検出するために、従来は、WDT(Watch Dog Timer)が利用されている。WDTとは、タイムアウトが発生しないようにプログラムからリセットされるタイマーであり、アプリケーションが正しく動かずWDTのリセットが行われなかった場合のタイムアウトを利用することによって、プログラムの異常な実行状態を検出することができる。例えば、特許文献1によれば、WDTを利用してシステムの障害に対応する手法が紹介されている。 In order to detect such an abnormal execution state of a program, WDT (Watch Dog Timer) is conventionally used. WDT is a timer that is reset from the program so that a timeout does not occur, and detects an abnormal execution state of the program by using the timeout when the application does not operate correctly and WDT is not reset. be able to. For example, according to Patent Document 1, a technique for dealing with a system failure using WDT is introduced.
しかしながら、上記従来のような、プログラムの異常な実行状態をWDTを利用して検知する手法では、プログラムが異常な実行状態になっているにもかかわらずWDTが定期的にリセットされる場合には異常は検知されない。つまり、WDTを利用した手法では、限られた部分の異常しか検知されないという問題があった。 However, in the conventional method for detecting an abnormal execution state of a program using WDT, when the WDT is periodically reset even though the program is in an abnormal execution state, Abnormality is not detected. That is, the technique using WDT has a problem that only a limited part of the abnormality is detected.
本発明は、上記に鑑みてなされたものであって、制御プログラムの実行状態を厳密に監視して、異常な実行状態を正確に検出することが可能な電動パワーステアリング装置を提供することを目的とする。 The present invention has been made in view of the above, and it is an object of the present invention to provide an electric power steering apparatus capable of accurately monitoring an execution state of a control program and accurately detecting an abnormal execution state. And
上述した課題を解決し、目的を達成するために、本発明は、操舵補助用の電動モータと、複数のタスクを順番に実行することによって前記操舵補助用の電動モータを駆動制御して車両の操舵制御を実行する制御部とを備える電動パワーステアリング装置において、前記制御部は、夫々のタスクの終了時間を計測し、計測した各タスクの終了時間に基づいてプログラムの異常な実行状態の検知を行うことを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention relates to an electric motor for assisting steering and a drive control of the electric motor for assisting steering by sequentially executing a plurality of tasks. In the electric power steering apparatus including a control unit that executes steering control, the control unit measures an end time of each task, and detects an abnormal execution state of the program based on the measured end time of each task. It is characterized by performing.
また、本発明の好ましい態様によれば、前記制御部は、計測した各タスクの終了時間に基づいてタスクの実行順番を判定し、判定した実行順番が予め設定された所定の順番で実行されていない場合に、プログラムの異常な実行状態として検出することを特徴とする。 According to a preferred aspect of the present invention, the control unit determines the execution order of tasks based on the measured end time of each task, and the determined execution order is executed in a predetermined order. If not, the program is detected as an abnormal execution state.
また、本発明の好ましい態様によれば、前記制御部は、計測した各タスクの終了時間に基づいて所定のプロセス周期中に、所要の複数のタスクが全て実行されているか否かを判定し、所定のプロセス周期中に所要の複数のタスクが全て実行されていない場合に、プログラムの異常な実行状態として検出することを特徴とする。 Further, according to a preferred aspect of the present invention, the control unit determines whether or not a plurality of required tasks are all executed during a predetermined process cycle based on the measured end time of each task, It is characterized in that an abnormal execution state of a program is detected when all of a plurality of required tasks are not executed during a predetermined process cycle.
また、本発明の好ましい態様によれば、前記制御部は、計測した各タスクの終了時間に基づいて各タスクが所定の時間内に終了しているかを判断し、各タスクが設計された所定の時間内に終了していない場合に、プログラムの異常な実行状態として検出することを特徴とする。 Further, according to a preferred aspect of the present invention, the control unit determines whether each task is completed within a predetermined time based on the measured end time of each task, and determines the predetermined task for which each task is designed. If the program is not finished in time, it is detected as an abnormal execution state of the program.
この発明によれば、夫々のタスクの終了時間を計測し、計測した各タスクの終了時間に基づいてプログラムの異常な実行状態の検知を行うので、制御プログラムの実行状態を厳密に監視することができ、これによりウォッチドッグタイマによって検出不可能なプログラムの異常な実行状態を正確に検出することができる。 According to this invention, since the end time of each task is measured and the abnormal execution state of the program is detected based on the measured end time of each task, the execution state of the control program can be strictly monitored. This makes it possible to accurately detect an abnormal execution state of a program that cannot be detected by the watchdog timer.
以下に、本発明にかかる電動パワーステアリング(EPS)装置の実施例を図面に基づいて詳細に説明する。なお、この実施例によりこの発明が限定されるものではない。 Embodiments of an electric power steering (EPS) device according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.
図1は、電動パワーステアリング(EPS)装置100の一般的な構成を示す図である。図1において、操向ハンドル1のコラム軸2は減速ギア3、ユニバーサルジョイント4aおよび4b、ピニオンラック機構5を経て操向車輪のタイロッド6に連結されている。コラム軸2には、操向ハンドル1の操舵トルクTを検出するトルクセンサ10が設けられており、操向ハンドル1の操舵力を補助する操舵補助モータ20が、減速ギア3を介してコラム軸2に連結されている。ここで、操舵補助モータ20は、例えば、ブラシレスモータやブラシモータである。電動パワーステアリング装置を制御するコントロールユニット(ECU)30には、バッテリ14から内蔵の電源リレー13を経て電力が供給され、イグニションキー11からイグニション信号が供給される。また、コントロールユニット30は、トルクセンサ10で検出された操舵トルクTと車速センサ12で検出された車両速度(車速)Vとに基づいて、操舵補助モータ20の電流指令値を演算し、操舵補助モータ20の電流検出値と電流指令値とに基づいて、操舵補助モータ20の電流検出値が電流指令値に追従するように操舵補助モータ20を駆動制御する。
FIG. 1 is a diagram illustrating a general configuration of an electric power steering (EPS)
図2は、図1のコントロールユニット30のハードウェア構成を示す図である。コントロールユニット30は、図2に示すように、電源リレー13と、MCU(マイクロコントロールユニット)110と、モータ駆動回路108と、電流検出回路120と、位置検出回路130等を備えている。
FIG. 2 is a diagram showing a hardware configuration of the
MCU110は、CPU101、ROM102、RAM103、EEPROM104、インターフェース(I/F)105、A/D変換器106、PWMコントローラ107などを備え、これらがバス接続されている。CPU101は、ROM102に格納された制御プログラムを実行して電動パワーステアリング装置を制御する。
The
ROM102は操舵補助モータ20の制御プログラムを記憶するためのメモリとして使用され、RAM103は当該プログラムを動作させるためのワークメモリとして使用される。EEPROM104は電源遮断後においても記憶内容を保持可能なメモリであり、制御プログラムが入出力する制御データなどが格納される。
The
A/D変換器106は、トルクセンサ10からの操舵トルクT、電流検出回路120からの操舵補助モータ20の電流検出値Im、および位置検出回路130からのモータ回転角信号θ等を入力し、デジタル信号に変換する。インターフェース105は、CANなどの車載ネットワークに接続されており、車速センサ12からの車速信号V(車速パルス)を受け付けるためのものである。
The A /
PWMコントローラ107は操舵補助モータ20の電流指令値に基づきUVW各相のPWM制御信号を出力する。モータ駆動回路108は、インバータ回路などにより構成され、PWMコントローラ107から出力された信号に基づき操舵補助モータ20を駆動する。電流検出回路120は操舵補助モータ20の電流値を検出し、電流検出値ImをA/D変換器106に出力する。位置検出回路130は、レゾルバなどの位置センサ25からの出力信号をモータ回転角信号θとして、A/D変換器106に出力する。
The
つぎに、本実施例1の要部について説明する。図3は、図2に示したMCU110内の各部の協働により実現される機能の構成図である。 Next, the main part of the first embodiment will be described. FIG. 3 is a configuration diagram of functions realized by the cooperation of the respective units in the MCU 110 illustrated in FIG.
図3において、MCU110内に、制御機能1101、タイマー機能1102、異常検出機能1103、記憶機能1104、およびインターフェース機能1105が実現される。制御機能1101は、制御プログラムがCPU101により読み込まれて実行されることにより実現する機能であり、コントロールユニット30を通じてEPS装置100の動作を制御するための機能である。制御機能1101は、実際にはいくつかのプロセスを実行されることにより動作している。
In FIG. 3, a
図4は、プロセスが制御機能1101内で実行されている例を説明する図である。プロセスとは、操舵トルクTと車速Vに基づいて操舵補助トルク指令値を算出するトルク制御プロセス、操舵補助トルク指令値に基づいて操舵補助モータ20を駆動する電流制御プロセス、MCU110内の各部の通信をコントロールする通信プロセス、およびEPS装置100の自己診断を行う診断プロセスなどである。各プロセスは、ひとつまたは複数のタスクを周期的に実行する。例えば図4におけるプロセス1は、タスク11〜16までを実行するとしているが、これらのタスクを直列に順次実行し、リターンされると再びプロセス1がタスク11から実行される。ここで、プロセスの数およびひとつのプロセスに含まれるタスクの数は、図4に示す例と異なっていても問題ない。
FIG. 4 is a diagram illustrating an example in which a process is executed in the
各タスクは、タスク終了時に当該タスクの終了時刻を示すタイムスタンプを更新する。タイムスタンプは、例えばフリーラン・カウンタなどを設置して取得するように設計してよい。図5は、図4におけるタスク11の処理フローを説明する図である。図4に示す各タスクは、図5に示すように、リターンの直前にタイムスタンプを更新し、タスクが終了する時間を記録する。終了したタスク(タスクID)と、更新された当該タスクのタイムスタンプとを含むタスクの実行履歴は記憶機能1104に保持される。
Each task updates a time stamp indicating the end time of the task when the task ends. The time stamp may be designed to be acquired by installing a free-run counter or the like, for example. FIG. 5 is a diagram for explaining the processing flow of the
図3において、タイマー機能1102は、各プロセス実行に所定の実行周期で割り込みをかけ、記憶機能1104に保持されているタスクの実行履歴を取得する。そして異常検出機能1103は、取得したタスクの実行履歴から、プロセスが設計どおり正常に実行されているか否かを判断し、正常に実行されていない場合、プログラムのリセットや停止などの異常処理を行う。このとき、タイマー機能1102はソフトウェアタイマーにより実現されるものであってもよいが、プログラムの異常実行状態を検出するためのものであるので、ハードウェアにより実現されるタイマー機能であることが望ましい。
In FIG. 3, the
記憶機能1104は、ROM102、RAM103、およびEEPROM104による機能であり、前述のタイムスタンプを保持する。それ以外には、CPU101に読み込まれて各機能を実現するための制御プログラムや、制御プログラムにより使用されるデータを保持する。
A
インターフェース機能1105は、インターフェース105、A/D変換器106により実現される、インターフェース機能1105は、トルクセンサ10、車速センサ12、モータ駆動回路108、電流検出回路120、および位置検出回路130と通信を行う。
The
以上の構成で実行される本発明の実施例1にかかる各プロセスの異常実行状態の検出動作を説明する。図6は、各プロセスの異常実行状態を検出する動作を説明するフローチャートである。 An operation for detecting an abnormal execution state of each process according to the first embodiment of the present invention executed in the above configuration will be described. FIG. 6 is a flowchart for explaining the operation of detecting the abnormal execution state of each process.
図6においては、タイマー機能1102による割り込みは、割り込みがかけられるプロセスの実行周期の1/2の周期で実行されるとしている。まず該プロセスが実行されると、同時にタイマー機能1102がカウントを開始し、プロセスの設計上の実行時間の半分が経過したときに一回目の割り込みが発生する(ステップS61)。異常検出機能1103は各タスクにより記憶機能1104に記録されたタスクの実行履歴を取得し、このプロセスの実行周期の半分が経過した時点でタスクが設計された所定の順番で実行されているか否かを判断する。設計された順番で実行されていない場合(ステップS61、No)、異常監視機能1103はこのプロセスは異常な実行状態にあると判断し、ステップS64に移行して、プログラムのリセットなどの異常処理を行う。設計された順番でタスクが実行されている場合(ステップS61、Yes)、異常監視機能1103はこのプロセスは今のところ正常に実行されていると判断し、ステップS62に移行する。
In FIG. 6, the interruption by the
続いて、タイマー機能1102による割り込みはこのプロセスの1/2の周期で実行されるので、プロセスの設計上のリターン時に2回目の割り込みが実行される(ステップS62)。ステップS62では、異常検出機能1103は、この時点におけるタスクの実行履歴を再び取得し、設計上のプロセスの実行周期が経過した時点で各タスクが設計どおりの順番で実行されたかどうかを判断する。異常検出機能1103が、設計どおりの順番で各タスクが実行されなかったと判断する場合(ステップS62、No)、このプロセスは異常な実行状態にあると判断し、異常処理が行われ(ステップS64)、正常に実行されたと判断する場合(ステップS62、Yes)、ステップS63に移行する。ステップS63に移行すると、異常検出機能1103は記憶機能1104に保持される各タスクのタイムスタンプをリセットする。そしてステップS61に移行する。
Subsequently, since the interruption by the
このように、各タスクが設計どおりの順番で実行されていない場合に異常として検出することにより、プログラムの異常な実行状態を検出することができる。 As described above, the abnormal execution state of the program can be detected by detecting the abnormalities when the tasks are not executed in the designed order.
次に、実施例1にかかる各プロセスの異常実行状態の検出動作により、どのような事例が異常実行状態として検出されるかを、より具体的な例を用いて説明する。図8は、具体例を説明するための図である。 Next, what case is detected as an abnormal execution state by the abnormal execution state detection operation of each process according to the first embodiment will be described using a more specific example. FIG. 8 is a diagram for explaining a specific example.
図8では、図4において例として説明したプロセス1を取り上げている。図8において、プロセス1は、図8の最上段に示されるように、20msの実行周期で動作し、タスク11を1ms、タスク12を3ms、タスク13を4ms、タスク14を3ms、タスク15を4ms、タスク16を4msで実行し、さらに1msのブランクを置くように設計されているとする。つづいて、実際に図8の上から2段目に示すように、なんらかのトラブルにより、タスク12とタスク13が逆転して動いたような例を考える。このときステップS61での一回目の割り込みの時点では、タスクの実行履歴は、タスク11、タスク13、タスク12の順となっている。異常検出機能1103によるチェックにより、これは設計された順番で実行されていない、異常な実行状態であると判断されることとなる。
In FIG. 8, the process 1 described as an example in FIG. 4 is taken up. In FIG. 8, as shown in the uppermost part of FIG. 8, process 1 operates at an execution cycle of 20 ms,
また、図8の上から三段目に示されている実行例2のケースでは、各タスクの順番は正常であるが、タスク11およびタスク15において設計上の実行時間を1msオーバーして動作している。結果としてプロセス1は設計上の実行周期である20msをオーバーしている。このとき、ステップS61の一回目の割り込みの時点ではタスクの順番は正しいので異常と検出されないが、ステップS62の二回目の割り込みによるチェックの時点では、各タスクのタイムスタンプから判断されるタスクの実行の履歴は、タスク11、タスク12、タスク13、タスク14、タスク15となっており、タスク16のタイムスタンプ記録が未だ完了していない。したがって、このケースでは、異常検出機能1103は、所定のプロセス周期中に、当該プロセスに含まれる所要の複数のタスクが全て実行されているか否かを判定し、これら所要の複数のタスクが全て実行されていない場合に、プログラムの異常な実行状態として検出することとなる。
Further, in the case of execution example 2 shown in the third row from the top in FIG. 8, the order of each task is normal, but
因みに、WDT(ウォッチドッグタイマ)を利用する異常検出方法では、何れかのタスクにWDTのリセット信号を出力させるように構成されるが、実行例1および実行例2のケースでは、一応すべてのタスクが実行されているので、異常を検出することはできない。 Incidentally, the abnormality detection method using WDT (watchdog timer) is configured to cause any task to output a WDT reset signal, but in the cases of execution example 1 and execution example 2, all tasks Is executed, so it is not possible to detect anomalies.
ところで、実施例1においては、タスクの順番の確認をひとつのプロセスに属するタスクについてのみ実行するとして説明したが、タスクの実行の順番が確定している場合は異なるプロセスに渡ってタスクの順番を確認し、設計どおりの順番で異なるプロセスに渡ってタスクが実行されていない場合に異常と判断するようにしてもかまわない。 By the way, in the first embodiment, it has been described that the confirmation of the task order is executed only for the tasks belonging to one process. However, when the task execution order is fixed, the task order is changed over different processes. Confirmation may be made as abnormal when a task is not executed over different processes in the order as designed.
また、タイマー機能1102および異常検出機能1103による割り込みと異常検出動作は、プロセスの実行周期の1/2の実行周期で実行されるとして説明したが、1/n(nは正の整数)であればどのように設定されてもかまわない。このとき、nの値が大きくなるにつれて異常検出の速度は向上するが、CPUへの負荷が大きくなるので、設計段階で適切に設定される必要がある。
In addition, it has been described that the interrupt and the abnormality detection operation by the
また、異常が検出された場合、単にステップS64にて異常処理を行うとしたが、異常処理がリセットの場合、タイムスタンプもリセットして再びステップS61に移行するように構築されてもよい。 Further, when an abnormality is detected, the abnormality process is simply performed in step S64. However, when the abnormality process is reset, the time stamp may be reset and the process may proceed to step S61 again.
このように、実施例1では、計測した各タスクの終了時間に基づいてタスクの実行順番を判定し、判定した実行順番が予め設定された所定の順番で実行されていない場合に、プログラムの異常な実行状態として検出するとともに、計測した各タスクの終了時間に基づいて所定のプロセス周期中に、所要の複数のタスクが全て実行されているか否かを判定し、所定のプロセス周期中に所要の複数のタスクが全て実行されていない場合に、プログラムの異常な実行状態として検出するようにしているので、制御プログラムの実行状態を厳密に監視することができ、これによりウォッチドッグタイマによって検出不可能なプログラムの異常な実行状態を正確に検出することができる。 As described above, in the first embodiment, the task execution order is determined based on the measured end time of each task, and if the determined execution order is not executed in a predetermined order, a program error is detected. And detecting whether or not all the required tasks are being executed during the predetermined process cycle based on the measured end time of each task. When all of the tasks are not executed, it is detected as an abnormal execution state of the program, so the execution state of the control program can be strictly monitored, and cannot be detected by the watchdog timer. It is possible to accurately detect an abnormal execution state of a simple program.
実施例1では、異常検出機能1103は、各タスク終了時のタイムスタンプを取得し、各タスクが設計されたとおりの順番で動作しているかと、所定のプロセス周期中に所要の複数のタスクが全て実行されているかをチェックすることにより、プロセスが正常に実行されているかどうかを判断した。実施例2においては、異常検出機能1103は、各タスクのタイムスタンプから各タスクの動作期間を算出し、各タスクが設計されている動作期間どおりに実行されているかどうかも合わせてチェックし、プロセスが正常に実行されているかどうかを判断する。実施例2の電動パワーステアリング装置の構成は、実施例1による電動パワーステアリング装置と同等であるので、ここでは実施例1と異なる部分であるプロセスの異常実行状態の検出動作のみを説明する。
In the first embodiment, the
図7は、実施例2にかかるプロセスの異常実行状態の検出動作を説明するフローチャートである。ここでは、実施例1の説明と同じく、タイマー機能1102による割り込みは、割り込みがかけられるプロセスの実行周期の1/2の周期で実行されるとしている。まず該プロセスが実行されると、同時にタイマー機能1102がカウントを開始し、プロセスの設計上の実行時間の半分が経過したときに一回目の割り込みが発生する(ステップS71)。異常検出機能1103は各タスクにより記憶機能1104に記録された各タスクのタイムスタンプを取得し、このプロセスの実行周期の半分が経過した時点でタスクが設計された順番で実行されているかを判断する。設計された順番で実行されていないと判断される場合(ステップS71、No)、異常検出機能1103はプロセスの実行状態に異常があると判断し、ステップS76に移行して、プログラムのリセットなどの異常処理を行う。設計された順番でタスクが実行されていると判断される場合(ステップS71、Yes)、ステップS72に移行する。
FIG. 7 is a flowchart for explaining the detection operation of the abnormal execution state of the process according to the second embodiment. Here, as in the description of the first embodiment, the interrupt by the
ステップS72においては、異常検出機能1103は、取り込んだタイムスタンプから各タスクの実行時間を導出し、設計どおりの実行時間で各タスクが実行されているかどうかを判断する。このプロセスの実行周期の半分が経過した時点で、異常検出機能1103が設計どおりの実行時間で実行されていないタスクを発見した場合(ステップS72、No)、プロセスの実行状態に異常があると判断し、異常処理を実行する(ステップS76)。すべて設計どおりの実行時間で実行されている場合(ステップS72、Yes)、ステップS73に移行する。
In step S72, the
続いて、タイマー機能1102による割り込みはこのプロセスの1/2の周期で実行されるので、ステップS73において、設計上のプロセスの実行周期が経過したタイミングで2回目の割り込みが実行される。ステップS73では、異常検出機能1103は、各タスクのタイムスタンプを再び取得し、各タスクが設計どおりの順番で実行されたかどうかを判断する。異常検出機能1103が、設計どおりの順番で各タスクが実行されなかったと判断する場合(ステップS73、No)、プロセスの実行状態に異常があると判断し、異常処理を実行し(ステップS76)、正常に実行されたと判断する場合(ステップS73、Yes)、ステップS74に移行する。
Subsequently, since the interrupt by the
ステップS74においては、異常検出機能1103は、取り込んだ各タスクのタイムスタンプから各タスクの実行時間を導出し、設計どおりの実行時間で各タスクが実行されているかどうかを判断する。このプロセスの設計上の実行周期が経過した時点で、異常検出機能1103が設計どおりの実行時間で実行されていないタスクを発見した場合(ステップS74、No)、異常検出機能1103はプロセスの実行状態に異常があると判断し、異常処理を実行する(ステップS76)。すべて設計どおりの実行時間で実行されている場合(ステップS74、Yes)、ステップS75に移行する。
In step S74, the
ステップS75においては、これまでなんの異常も見られなかったので、タイムスタンプをリセットし、ステップS71に移行する。 In step S75, since no abnormality has been seen so far, the time stamp is reset, and the process proceeds to step S71.
このように、実施例2においては、タスクの実行順序の他に、各タスクの実行時間をも確認し、プログラムの実行状態の異常を検出する。 As described above, in the second embodiment, in addition to the task execution order, the execution time of each task is also confirmed, and an abnormality in the execution state of the program is detected.
次に、実施例2にかかる各プロセスの異常実行状態の検出動作により、どのような事例が異常実行状態として検出されるかを、図8を用いてより具体的に説明する。 Next, what case is detected as an abnormal execution state by the abnormal execution state detection operation of each process according to the second embodiment will be described more specifically with reference to FIG.
本実施例は、実施例1による各プロセスの異常実行状態の検出動作をも包含しているので、図8における実行例1および実行例2のケースは、異常として検出することができる。実行例3は、設計されたプロセス1の動作に比べて、タスク11の動作が1msだけ長くかかっている。このケースでは、実施例1における二回の割り込み時の検出動作では異常は検出されない。しかし、本実施例における検出動作では、各タスクの実行時間をも設計上の実行時間と比較するので、実行例3のケースにおいても異常を検出することができる。
Since the present embodiment also includes the operation of detecting the abnormal execution state of each process according to the first embodiment, the cases of execution example 1 and execution example 2 in FIG. 8 can be detected as abnormal. In the execution example 3, the operation of the
ところで、実施例2においても、タスクの実行の順番が確定している場合は異なるプロセスに渡ってタスクの順番を確認し、設計どおりの順番で異なるプロセスに渡ってタスクが実行されていない場合に異常と判断するようにしてもかまわない。 By the way, also in the second embodiment, when the task execution order is fixed, the task order is confirmed over different processes, and the task is not executed over different processes in the designed order. You may make it judge that it is abnormal.
また、タイマー機能1102および異常検出機能1103による割り込みと異常検出動作は、プロセスの実行周期の1/2の実行周期で実行されるとして説明したが、1/n(nは正の整数)であればどのように設定されてもかまわない。
In addition, the interrupt and the abnormality detection operation by the
また、異常が検出された場合、単にステップS76にて異常処理を行うとしたが、異常処理がリセットの場合、タイムスタンプもリセットして再びステップS71に移行するように構築されてもよい。 Further, when abnormality is detected, the abnormality process is simply performed in step S76. However, when the abnormality process is reset, the time stamp may be reset and the process may proceed to step S71 again.
このように、実施例2では、各タスクの終了時間を計測し、該終了時間から各タスクの実行された順番と、所定のプロセス周期中に所要の複数のタスクが全て実行されているかと、各タスクの実行時間とを確認し、設計どおりに実行されていない場合に異常と判断するので、実施例1による電動パワーステアリング装置による効果に加えて、タスクの実行時間の微小な遅れをも異常として検知することができる、という効果を奏する。 As described above, in the second embodiment, the end time of each task is measured, the order in which the tasks are executed from the end time, and whether a plurality of required tasks are all executed during a predetermined process cycle, The execution time of each task is confirmed, and if it is not executed as designed, it is determined that there is an abnormality. Therefore, in addition to the effect of the electric power steering device according to the first embodiment, a minute delay in the task execution time is also abnormal. It is possible to detect as
なお、上記実施例1では、各タスクの実行順番を確認する第1の処理と、所定のプロセス周期中に所要の複数のタスクが全て実行されているかを確認する第2の処理とを実行し、実施例2では、第1及び第2の処理の他に、各タスクの実行時間を確認する第3の処理をさせるようにしたが、これら第1〜第3の処理を単独で行うようにしてもよい。更に、計測した各タスクの終了時間に基づいて第1〜第3の処理以外の他の異常なタスクの実行状態を検出するようにしてもよい。すなわち、本発明では、夫々のタスクの終了時間を計測し、計測した各タスクの終了時間に基づいてプログラムの異常な実行状態の検知を行う。 In the first embodiment, the first process for confirming the execution order of each task and the second process for confirming whether a plurality of required tasks are all executed during a predetermined process cycle are executed. In the second embodiment, in addition to the first and second processes, the third process for checking the execution time of each task is performed. However, the first to third processes are performed independently. May be. Furthermore, an abnormal task execution state other than the first to third processes may be detected based on the measured end time of each task. That is, in the present invention, the end time of each task is measured, and an abnormal execution state of the program is detected based on the measured end time of each task.
以上のように、本発明にかかる電動パワーステアリング装置は、プログラムの実行状態の異常を検知する電動パワーステアリング装置に適用して好適である。 As described above, the electric power steering apparatus according to the present invention is suitable for application to an electric power steering apparatus that detects an abnormality in the execution state of a program.
1 操向ハンドル
2 コラム軸
3 減速ギア
4a,4b ユニバーサルジョイント
5 ピニオンラック機構
6 タイロッド
10 トルクセンサ
11 イグニションキー
12 車速センサ
13 電源リレー
14 バッテリ
20 操舵補助モータ
25 位置センサ
30 コントロールユニット
100 EPS装置
110 MCU
101 CPU
102 ROM
103 RAM
104 EEPROM
105 インターフェース
106 A/D変換器
107 PWMコントローラ
108 モータ駆動回路
120 電流検出回路
130 位置検出回路
1101 制御機能
1102 タイマー機能
1103 異常検出機能
1104 記憶機能
1105 インターフェース機能
DESCRIPTION OF SYMBOLS 1 Steering handle 2
101 CPU
102 ROM
103 RAM
104 EEPROM
105 Interface 106 A /
Claims (4)
前記制御部は、夫々のタスクの終了時間を計測し、計測した各タスクの終了時間に基づいてプログラムの異常な実行状態の検知を行うことを特徴とする電動パワーステアリング装置。 In an electric power steering apparatus comprising: an electric motor for steering assistance; and a control unit that drives and controls the electric motor for steering assistance by executing a plurality of tasks in order,
The control unit measures an end time of each task, and detects an abnormal execution state of the program based on the measured end time of each task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007288281A JP2009113618A (en) | 2007-11-06 | 2007-11-06 | Electric power steering device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007288281A JP2009113618A (en) | 2007-11-06 | 2007-11-06 | Electric power steering device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009113618A true JP2009113618A (en) | 2009-05-28 |
Family
ID=40781253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007288281A Pending JP2009113618A (en) | 2007-11-06 | 2007-11-06 | Electric power steering device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009113618A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013089210A1 (en) * | 2011-12-16 | 2013-06-20 | 株式会社オートネットワーク技術研究所 | Controller and process monitoring method |
KR20150012782A (en) * | 2013-07-26 | 2015-02-04 | 현대모비스 주식회사 | Apparatus and Method for timing control of Motor Driven Power Steering Electronic Control Unit |
WO2016046931A1 (en) | 2014-09-25 | 2016-03-31 | 日本精工株式会社 | Vehicle-mounted electronic device control device and control method |
JP2016071903A (en) * | 2015-11-25 | 2016-05-09 | 日本精工株式会社 | Control device for on-vehicle electronic apparatus and control method |
JP6020765B2 (en) * | 2014-09-25 | 2016-11-02 | 日本精工株式会社 | Control device and control method for in-vehicle electronic device |
US9889881B2 (en) | 2014-09-25 | 2018-02-13 | Nsk Ltd. | Control apparatus and control method of on-vehicle electronic equipment |
US10017205B2 (en) | 2014-09-25 | 2018-07-10 | Nsk Ltd. | Control apparatus and control method of on-vehicle electronic equipment |
JP2018129059A (en) * | 2018-03-09 | 2018-08-16 | 日本精工株式会社 | Control device and control method for on-vehicle electronic equipment |
JP2018139112A (en) * | 2018-03-09 | 2018-09-06 | 日本精工株式会社 | Control apparatus and control method for on-vehicle electronic device |
CN113650569A (en) * | 2021-07-29 | 2021-11-16 | 广州文远知行科技有限公司 | Vehicle equipment control method and device, vehicle and storage medium |
JP7379875B2 (en) | 2019-06-14 | 2023-11-15 | 富士電機株式会社 | Control device and its maintenance support device |
-
2007
- 2007-11-06 JP JP2007288281A patent/JP2009113618A/en active Pending
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9690269B2 (en) | 2011-12-16 | 2017-06-27 | Autonetworks Technologies, Ltd. | Controller and process monitoring method including monitoring of process execution sequence |
JP2013127674A (en) * | 2011-12-16 | 2013-06-27 | Auto Network Gijutsu Kenkyusho:Kk | Control device and processing monitoring method |
CN104011688A (en) * | 2011-12-16 | 2014-08-27 | 株式会社自动网络技术研究所 | Controller And Process Monitoring Method |
WO2013089210A1 (en) * | 2011-12-16 | 2013-06-20 | 株式会社オートネットワーク技術研究所 | Controller and process monitoring method |
KR20150012782A (en) * | 2013-07-26 | 2015-02-04 | 현대모비스 주식회사 | Apparatus and Method for timing control of Motor Driven Power Steering Electronic Control Unit |
KR102045869B1 (en) * | 2013-07-26 | 2019-11-18 | 현대모비스 주식회사 | Apparatus and Method for timing control of Motor Driven Power Steering Electronic Control Unit |
US9796415B2 (en) | 2014-09-25 | 2017-10-24 | Nsk Ltd. | Control apparatus and control method of on-vehicle electronic equipment |
JP6020765B2 (en) * | 2014-09-25 | 2016-11-02 | 日本精工株式会社 | Control device and control method for in-vehicle electronic device |
US9889881B2 (en) | 2014-09-25 | 2018-02-13 | Nsk Ltd. | Control apparatus and control method of on-vehicle electronic equipment |
US9896125B2 (en) | 2014-09-25 | 2018-02-20 | Nsk Ltd. | Control apparatus and control method of on-vehicle electronic equipment |
US10017205B2 (en) | 2014-09-25 | 2018-07-10 | Nsk Ltd. | Control apparatus and control method of on-vehicle electronic equipment |
WO2016046931A1 (en) | 2014-09-25 | 2016-03-31 | 日本精工株式会社 | Vehicle-mounted electronic device control device and control method |
JP2016071903A (en) * | 2015-11-25 | 2016-05-09 | 日本精工株式会社 | Control device for on-vehicle electronic apparatus and control method |
JP2018129059A (en) * | 2018-03-09 | 2018-08-16 | 日本精工株式会社 | Control device and control method for on-vehicle electronic equipment |
JP2018139112A (en) * | 2018-03-09 | 2018-09-06 | 日本精工株式会社 | Control apparatus and control method for on-vehicle electronic device |
JP7379875B2 (en) | 2019-06-14 | 2023-11-15 | 富士電機株式会社 | Control device and its maintenance support device |
CN113650569A (en) * | 2021-07-29 | 2021-11-16 | 广州文远知行科技有限公司 | Vehicle equipment control method and device, vehicle and storage medium |
CN113650569B (en) * | 2021-07-29 | 2022-10-11 | 广州文远知行科技有限公司 | Vehicle equipment control method and device, vehicle and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2009113618A (en) | Electric power steering device | |
JP6350723B2 (en) | Control device and control method for in-vehicle electronic device | |
JP6350724B2 (en) | Control device and control method for in-vehicle electronic device | |
JP6709326B2 (en) | Vehicle control device | |
JP5846342B1 (en) | Control device and control method for in-vehicle electronic device | |
JP2013182477A (en) | Microprocessor external monitoring circuit, electronic controller and electrically-driven power steering device | |
JP2013159120A (en) | Electronic control device and electric power steering device using the same | |
JP5182101B2 (en) | Electric power steering device | |
JP6311693B2 (en) | Control device and control method for in-vehicle electronic device | |
JP2010188796A (en) | Electric power steering device | |
JP6481788B2 (en) | Control device and control method for in-vehicle electronic device | |
JP6481789B2 (en) | Control device and control method for in-vehicle electronic device | |
JP5310009B2 (en) | Electric power steering device | |
JP2010184609A (en) | Electric power steering device | |
JP5338060B2 (en) | Electric power steering device | |
JP5181713B2 (en) | Electric power steering device | |
JP5472199B2 (en) | Electric power steering device | |
JP2011178252A (en) | Electric power steering device | |
JP2009012637A (en) | Control device for electric power steering device |