JP2006151000A - Control device for automobile - Google Patents
Control device for automobile Download PDFInfo
- Publication number
- JP2006151000A JP2006151000A JP2004340098A JP2004340098A JP2006151000A JP 2006151000 A JP2006151000 A JP 2006151000A JP 2004340098 A JP2004340098 A JP 2004340098A JP 2004340098 A JP2004340098 A JP 2004340098A JP 2006151000 A JP2006151000 A JP 2006151000A
- Authority
- JP
- Japan
- Prior art keywords
- application
- sleep
- control
- resource
- setting
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
この発明は自動車用制御装置に関する。 The present invention relates to an automobile control device.
自動車には、各種機器(被制御要素)を制御するために、マイクロプロセッサ(ハードウェア制御主体)からなるECUが搭載されている。ECUは、ある条件で、例えば、車両が駐車状態にある場合、又はあるスイッチ操作がない場合にスリープモードに移行するようにしている(例えば、特許文献1、特許文献2)。具体的にはスリープモードとは、ECUを構成する発振器を停止したスタンバイモードや、通常動作と異なる低周波数の発振器で動作するスロークロックモード、あるいは一定時間ごとにCPUを間欠的に動作させる間欠モードなどであり、低消費電流モードにあることをいう。特に、キーレスエントリ方式のように、携帯器を保有したユーザーが自動車に接近したことを上記携帯器を介して無線検知し、ドアロック解除やエンジン始動などの動作を自動制御したい場合、この制御を司るECUは、駐車中あるいはエンジン停止中であっても動作を常時継続していなければならない。特に駐車時間が長期に渡る場合、通常動作モードでECUを作動させつづけるとバッテリー電圧低下を招き、自動車を始動できなくなる問題を生ずるので、ECUのスリープ制御は、バッテリー保護の観点から近年重要性を増しつつある。
In order to control various devices (controlled elements), an automobile is equipped with an ECU composed of a microprocessor (hardware control main body). The ECU shifts to the sleep mode under certain conditions, for example, when the vehicle is parked or when there is no switch operation (for example,
スリープモードからのウェイクアップには、特定のアプリケーションに対する外部からの動作要求に基づき、割り込み処理により不定期にウェイクアップする場合(以下、外部要因ウェイクアップという)と、タイマー制御により定期的にスリープとウェイクアップとを繰り返す場合(以下、タイマーウェイクアップという)との2種類がある。タイマーウェイクアップにおいては、例えばキーレスエントリシステムのように、ユーザーの携帯器からの信号受信スタンバイ期間を、スリープ期間を介して断続的に生じさせ、節電を図る目的に活用されている。 The wake-up from the sleep mode is based on an external operation request for a specific application, when wakes up irregularly by interrupt processing (hereinafter referred to as external factor wake-up), or when the sleep is periodically performed by timer control. There are two types when repeating wake-up (hereinafter referred to as timer wake-up). In the timer wakeup, for example, as in a keyless entry system, a signal reception standby period from a user's portable device is intermittently generated through a sleep period, and is used for the purpose of power saving.
自動車制御装置がスリープ状態からウェイクアップし、アプリケーションを起動するには、各アプリケーションに割り当てられたリソース(例えば、入出力のポート、割り込みの番号など)を適切な状態に設定することが必要である。しかし、このリソースの設定が必要となる状況は、上記の外部要因ウェイクアップ、つまり、被制御要素の具体的な動作制御のため、外部から当該アプリケーションへの動作要求が発生している場合(つまり、アプリケーション要部に対する実行要請が生じている場合)に限られる。他方、タイマーウェイクアップにおいては、アプリケーションは、特に外部からの動作要求が存在しない場合は、起動処理を行なったあとは待機状態となるから、アプリケーション要部は実行されず、仮にリソースの設定を行なっても使われないままタイムアップして、次のスリープに入ってしまうこともありえる。 In order for the vehicle control device to wake up from the sleep state and start the application, it is necessary to set resources assigned to each application (for example, input / output ports, interrupt numbers, etc.) to an appropriate state. . However, the situation where this resource setting is necessary is the case where an external operation wakeup, that is, when an operation request from the outside to the application is generated for the specific operation control of the controlled element (that is, , Only when there is a request for execution of the application main part). On the other hand, in the timer wakeup, the application is in a standby state after performing the startup process, particularly when there is no operation request from the outside, so that the main part of the application is not executed and the resource is set temporarily. However, it is possible that the time is up without being used and the next sleep is entered.
しかし、従来の自動車制御装置においては、発生したウェイクアップ要因が、上記外部要因ウェイクアップとタイマーウェイクアップとのいずれに該当するのか、さらには、外部要因ウェイクアップであっても、動作要求を受けたのがどのアプリケーションであるか、などについては特に判断せず、全てのアプリケーションのリソース設定を一律に行なってから各アプリケーションを立ち上げるようにしていた。このため、動作要求を特に受けていないアプリケーションについて余分なリソース設定がされるので、動作要求のある肝心のアプリケーションの起動が遅れてしまう問題がある。また、動作要求のないアプリケーションのリソース設定が介在する分だけ、ウェイクアップしてから次にスリープするまでの時間も長くなりがちであり、暗電流が増大する欠点があった。 However, in the conventional automobile control device, whether the generated wake-up factor corresponds to the above-mentioned external factor wake-up or timer wake-up, and even if it is an external factor wake-up, an operation request is received. It was not particularly determined which application was the application, and all the applications were set up after setting the resources for all applications uniformly. For this reason, since an extra resource is set for an application that has not received an operation request, there is a problem that activation of an important application having an operation request is delayed. In addition, there is a disadvantage that the dark current increases because the time from wake-up to the next sleep tends to be longer by the amount of application resource setting without an operation request.
本発明の課題は、複数の機能の制御を担うハードウェア制御主体(ECU)が、スリープ後ウェイクアップするときに、そのウェイクアップ要因に応じてアプリケーションの起動シーケンスの適正化を図ることができる自動車用制御装置を提供することにある。 SUMMARY OF THE INVENTION An object of the present invention is to provide an automobile capable of optimizing an application activation sequence according to a wake-up factor when a hardware control entity (ECU) responsible for controlling a plurality of functions wakes up after sleep. It is to provide a control device.
上記の課題を解決するために、本発明の自動車用制御装置の第一の構成は、
自動車上の複数の被制御要素の電気的動作を制御するために被制御要素に対応して設けられた複数の制御手段を、同一のハードウェア制御主体上でそれぞれ実行される、各制御手段に対応した複数のアプリケーションにより機能実現するとともに、制御手段の動作モードが、通常動作モードと、該通常動作モードよりも消費電力量が少ないスリープモードとの間で切り替え可能に構成された自動車用制御装置であって、
ハードウェア制御主体は、CPUと、アプリケーションを格納するROMと、CPU上にて複数のアプリケーションを実行するためのワークエリアとなるRAMとを有し、RAM上には、ハードウェア制御主体の各アプリケーションに割り当てられるリソースの設定領域がアプリケーション毎に個別に設けられ、
ハードウェア制御主体がスリープモードから通常モードに切り替わるウェイクアップの要因が、複数のアプリケーションの少なくとも1つに対する外部からの作動要求に基づいて発生する場合において、複数のアプリケーションのうち、当該作動要求のあったアプリケーションを第一種アプリケーション、残余のアプリケーションを第二種アプリケーションとして定めたとき、前記ウェイクアップに際して第一種アプリケーションのリソースを、第二種アプリケーションのリソースに優先してRAM上の対応する設定領域に設定するリソース設定手段と、
第一種アプリケーションのリソースを設定後に、第二種アプリケーションのリソースを設定することなく第一種アプリケーションを起動するアプリケーション起動手段と、を有することを特徴とする。
In order to solve the above problems, the first configuration of the automotive control device of the present invention is:
A plurality of control means provided corresponding to the controlled elements for controlling the electrical operation of the plurality of controlled elements on the vehicle are respectively executed on the same hardware control entity. A control apparatus for an automobile configured to realize a function by a plurality of corresponding applications and to be able to switch between an operation mode of the control means between a normal operation mode and a sleep mode in which power consumption is lower than that of the normal operation mode Because
The hardware control entity includes a CPU, a ROM that stores applications, and a RAM that serves as a work area for executing a plurality of applications on the CPU, and each application of the hardware control entity is provided on the RAM. A setting area for resources allocated to each application is provided separately for each application.
In the case where the wake-up factor that causes the hardware control subject to switch from the sleep mode to the normal mode is generated based on an external operation request for at least one of the plurality of applications, among the plurality of applications, When the first application is defined as the first type application and the remaining application is defined as the second type application, the resource of the first type application is given priority over the resource of the second type application during the wakeup, and the corresponding setting area on the RAM Resource setting means to set to,
Application launching means for launching the first type application without setting the resource of the second type application after setting the resource of the first type application.
上記構成によると、ハードウェア制御主体のウェイクアップの要因が、複数のアプリケーションの少なくとも1つに対する外部からの作動要求に基づいて発生する場合において、当該アプリケーション(つまり、第一種アプリケーション)のリソースを第二種アプリケーションのリソースに優先して設定し、その後、第二種アプリケーションのリソースを設定することなく第一種アプリケーションを起動するようにしたから、動作要求を特に受けていないアプリケーションのリソース設定が省略される分、動作要求のあるアプリケーションの起動を早めることができる。 According to the above configuration, when the cause of the wakeup of the hardware control subject is generated based on an external operation request for at least one of the plurality of applications, the resource of the application (that is, the first type application) is reduced. The resource type of the application that has not received the operation request is set because the first type application is started without setting the resource of the second type application. By omitting it, it is possible to speed up the activation of an application having an operation request.
アプリケーション起動手段は、第二種アプリケーションに対するリソース設定を行なわない状態で、第一種アプリケーションとともに該第二種アプリケーションも合せて起動するものとすることができる。このようにすると、第一種アプリケーションの起動後に、第二種アプリケーション(が司る機能)についても新たに動作要求が生じた場合に、該第二種アプリケーションが既に立ち上がっていることで、その要部の実行処理に素早く移行することができる。 The application activation means may activate the second type application together with the first type application in a state where the resource setting for the second type application is not performed. In this way, when a new operation request is made for the second type application (functions controlled by it) after the first type application is started, the main part of the second type application has already been started. It is possible to move quickly to the execution process.
次に、本発明の自動車用制御装置の第一には、ハードウェア制御主体がウェイクアップした後、複数のアプリケーションに対する外部からの作動要求が途絶してから一定のアイドリング期間が経過した場合に、該ハードウェア制御主体をスリープモードに移行させるスリープ移行手段を設けることができる。この場合、前記のリソース設定手段は、アイドリング期間中に第二種アプリケーションのいずれに対しても外部からの作動要求がなされなかった場合に、該第二種アプリケーションへのリソース設定を行なわず、スリープ移行手段は該第二種アプリケーションへのリソース設定を行なわないままスリープモードへ移行させるものとすることができる。これにより、当該のウェイクアップ→スリープのサイクルにおいて、作動要求のなかったアプリケーションについて無駄なリソース設定を行なわないままスリープモードへ移行できるので、ウェイクアップしてから次にスリープするまでの時間を短縮でき、暗電流軽減を図ることができる。この場合、リソース設定手段は、アイドリング期間中に第二種アプリケーションのいずれかに対して外部からの作動要求がなされた場合に、その作動要求のあった第二種アプリケーションについてのみ追加してリソース設定を行なうように構成すると、第二種アプリケーションについて作動要求が追加発生したときも必要最小限のリソース設定を補うだけでよく、効率的である。 Next, in the first aspect of the automotive control device of the present invention, after the hardware control entity wakes up, when a certain idling period has elapsed since the external operation request for a plurality of applications is interrupted, Sleep transition means for transitioning the hardware control subject to the sleep mode can be provided. In this case, the resource setting means does not perform resource setting for the second type application and does not perform the resource setting for any of the second type application during the idling period. The shift means can shift to the sleep mode without setting resources for the second type application. This makes it possible to shift to the sleep mode without performing unnecessary resource settings for applications that have not been requested for operation in the wake-up to sleep cycle, so the time from wake-up to next sleep can be shortened. , Dark current can be reduced. In this case, when an external operation request is made to one of the second type applications during the idling period, the resource setting means adds only the second type application for which the operation request has been made and sets the resource. If an operation request is additionally generated for the second type application, it is only necessary to supplement the necessary minimum resource setting, and this is efficient.
また、本発明の自動車用制御装置の第一においては、ハードウェア制御主体がスリープモードへ移行後、スリープタイマーが計測する予め定められたスリープ期間が経過した場合に、該ハードウェア制御主体をウェイクアップさせるタイマーウェイクアップ制御手段を設けることができる。この場合、前述のアプリケーション起動手段は、ウェイクアップの要因が、タイマーウェイクアップ制御手段によるウェイクアップ要求に基づいて発生する場合において、当該ウェイクアップに際してアプリケーションを、そのリソース設定を行なうことなく起動するものとして構成することができる。 In the first aspect of the automotive control device of the present invention, the hardware control entity is woken when a predetermined sleep period measured by the sleep timer elapses after the hardware control entity enters the sleep mode. Timer wake-up control means for increasing the speed can be provided. In this case, when the wake-up factor is generated based on a wake-up request from the timer wake-up control unit, the application activation unit described above activates the application without setting the resource at the time of the wake-up. Can be configured.
また、本発明の自動車用制御装置の第二は、
自動車上の複数の被制御要素の電気的動作を制御するために被制御要素に対応して設けられた複数の制御手段を、同一のハードウェア制御主体上でそれぞれ実行される、各制御手段に対応した複数のアプリケーションにより機能実現するとともに、制御手段の動作モードが、通常動作モードと、該通常動作モードよりも消費電力量が少ないスリープモードとの間で切り替え可能に構成された自動車用制御装置であって、
ハードウェア制御主体がスリープモードへ移行後、スリープタイマーが計測する予め定められたスリープ期間が経過した場合に、該ハードウェア制御主体をウェイクアップさせるタイマーウェイクアップ制御手段と、
ハードウェア制御主体がスリープモードから通常モードに切り替わるウェイクアップの要因が、タイマーウェイクアップ制御手段によるウェイクアップ要求に基づいて発生する場合において、当該ウェイクアップに際してアプリケーションを、そのリソース設定を行なうことなく起動するアプリケーション起動手段と、を有することを特徴とする。
The second of the control devices for automobiles of the present invention is:
A plurality of control means provided corresponding to the controlled elements for controlling the electrical operation of the plurality of controlled elements on the vehicle are respectively executed on the same hardware control entity. A control apparatus for an automobile configured to realize a function by a plurality of corresponding applications and to be able to switch between an operation mode of the control means between a normal operation mode and a sleep mode in which power consumption is lower than that of the normal operation mode Because
A timer wakeup control means for waking up the hardware control subject when a predetermined sleep period measured by the sleep timer has elapsed after the hardware control subject enters the sleep mode;
When the wakeup factor that causes the hardware control subject to switch from the sleep mode to the normal mode is generated based on a wakeup request by the timer wakeup control means, the application is started without setting the resource at the time of the wakeup Application launching means.
上記の構成によると、特定アプリケーションに対する外部からの動作要求とは無関係に、スリープタイマーにより定期的に発生するウェイクアップ要因については、これに基づくウェイクアップに際して、複数のアプリケーションを、そのリソース設定を行なうことなく起動するようにしたので、ウェイクアップからアプリケーション起動までの時間を短縮することができる。 According to the above configuration, regarding the wake-up factor periodically generated by the sleep timer regardless of the external operation request for the specific application, the resources are set for a plurality of applications at the time of wake-up based on the cause. Since it started without any problems, the time from wakeup to application startup can be shortened.
この場合、ハードウェア制御主体がウェイクアップした後、複数のアプリケーションに対する外部からの作動要求が途絶してから一定のアイドリング期間が経過した場合には、該ハードウェア制御主体をスリープモードに移行させるとともに、アイドリング期間中に複数のアプリケーションのいずれに対しても外部からの作動要求がなされなかった場合に、該アプリケーションへのリソース設定を行なわないままスリープモードへ移行させるスリープ移行手段を設けることができる。外部からの作動要求がない場合に、リソース設定を全く行なわずに再びスリープモードに復帰するので、スリープタイマーによりウェイクアップしてから次にスリープするまでの時間を大幅に短縮でき、暗電流軽減を図ることができる。 In this case, after the hardware control entity wakes up, when a certain idling period has elapsed since the external operation request for a plurality of applications is interrupted, the hardware control entity is shifted to the sleep mode. In addition, when an operation request from the outside is not made to any of the plurality of applications during the idling period, it is possible to provide a sleep transition unit that shifts to the sleep mode without setting resources for the application. When there is no operation request from the outside, it returns to sleep mode again without any resource setting, so the time from wakeup to the next sleep by the sleep timer can be greatly shortened, and dark current can be reduced. Can be planned.
また、アイドリング期間中に複数のアプリケーションのいずれかに対して外部からの作動要求がなされた場合に、その作動要求のあったアプリケーションについてリソース設定を行なうリソース設定手段を設けることもできる。これにより、スリープタイマーによるウェイクアップ後に、特定のアプリケーションについて作動要求が追加発生した場合は、そのアプリケーションについてのみ、必要最小限のリソース設定を補うだけでよいので、効率的である。 Further, when an external operation request is made to any of a plurality of applications during the idling period, resource setting means for setting a resource for the application that has requested the operation can be provided. Thus, when an operation request is additionally generated for a specific application after wake-up by the sleep timer, it is efficient because only the necessary minimum resource setting needs to be supplemented for that application.
以下、本発明の実施の形態を、図面を参照して説明する。
図1は、本発明の自動車用制御装置を構成するECUの電気的な構成図である。ECU1は、CPU3、ROM5、RAM4及び入出力部(I/Oポート)2がバス接続されたマイクロプロセッサからなる。ECU1は、本実施形態では自動車のボデー系の制御を司るボデー系ECUとして構成され、図2はその概略アーキテクチャを示すものである。マイクロプロセッサからなるハードウェア制御主体上に搭載されるソフトウェアは、プラットフォームと、そのプラットフォーム上で動作する、ボデー系機能を実現するためのアプリケーションである。なお、複数のアプリケーションを区別するために、1〜nの記号を付して示した。プラットフォームは、ベースとなるハードウェアが相違する場合にも、各アプリケーションに共通の動作環境を与えるためのものであり、該アプリケーションに対する基本ソフト(OS)のほか、アプリケーションやハードウェアとの連携を図るインターフェースプログラムなどを含んで構成されるが、概念的には周知の部分なので説明の詳細は省略する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is an electrical configuration diagram of an ECU constituting the automobile control apparatus of the present invention. The
アプリケーションは、車両利用者による車両各部の操作に係る機能であるボデー系機能を実現するものである。このボデー系機能とは、具体的には、ドア開閉に伴う制御、窓開閉に伴う制御、ライトスイッチのオン/オフに伴う制御、キーレスエントリ方式等に採用されるワイヤレスドアロック機構の制御、・・・といったものをいう。具体的には、以下のようなものを例示できる:
・運転席ドア、助手席ドア、後部右側座席ドア、後部左側座席ドア、ルーフなどのロック/ロック解除、パワーウィンドウ動作など。
・エアコン、カーオーディオ、カーナビゲーションシステムなどの電源動作など。
・ルームランプ、コックピットランプ、ヘッドライト、スモールランプ、ハザードランプ、テールランプなどのスイッチ点灯制御など。
The application realizes a body function that is a function related to operation of each part of the vehicle by the vehicle user. Specifically, the body system functions include control associated with opening / closing of a door, control associated with opening / closing of a window, control associated with turning on / off a light switch, control of a wireless door lock mechanism employed in a keyless entry system, etc.・ ・ Etc. Specific examples include the following:
-Driver door, passenger door, rear right seat door, rear left seat door, roof lock / unlock, power window operation, etc.
・ Power supply operation for air conditioners, car audio systems, car navigation systems, etc.
-Switch lighting control for room lamp, cockpit lamp, headlight, small lamp, hazard lamp, tail lamp, etc.
図1に戻り、各アプリケーション1、2、‥はROM5に記憶されており、RAM4の各アプリケーションに対応したワークエリア上でCPU3により実行される。アプリケーション1、2‥のバージョンアップや追加/削除などを前提としない場合は、ROM5は書き換え不能なマスクROMで構成することができる。他方、バージョンアップや追加/削除などを前提とする場合は、電気的な書き換えが可能なROM、例えばEEPROM5やフラッシュROMで構成しておく(もちろん、マスクROMと電気的な書き換えが可能なROMとを併用することも可能である)。この種の書き換え可能なROMは、読み出し時の駆動電圧と書き込み消去時の駆動電圧が異なる値に設定され、RAMと異なって、読み出し時と同じ制御電圧では書き込み消去が不能となっている。
Returning to FIG. 1, each
本実施形態では、ボデー系ECU1が実行を司るアプリケーションとして、次の4つを例示しており、各々そのワークエリア41、42、43及び44がRAM4内に確保され、所定のリソースが割り当てられる。
(1)ライト系アプリケーション(ワークエリア41):ヘッドライトの点灯ユニット71及びそれと連動点灯されるテールランプの点灯ユニット72(つまり、メインライト)の動作制御アプリケーションであり、以下のリソースがワークエリア41内のリソース設定領域41Rに設定される。
(入力系:ライトスイッチ/センサ用リソース領域)
・イグニッションスイッチSW1の入力ポート(共有リソース);イグニッションスイッチSW1がOFFの場合は、手動スイッチ操作によるメインライトの点灯/消灯のみ可能;
・ライトコントロールスイッチSW2(ロービーム、ハイビーム、ハイフラッシュ点灯などの点灯モード切替、及びマニュアル点灯/消灯、及び自動点灯/消灯の切替え)からの操作信号の入力ポート;
・ライトセンサ(照度センサ)61からの照度検出情報の入力ポート;
(出力系:ライト出力制御用リソース領域)
・ヘッドライト点灯ユニット71に対する、ロービーム点灯、ハイビーム点灯、ハイフラッシュ点灯及び消灯の切替え制御出力ポート;
・テールライト点灯ユニット72に対する点灯及び消灯の切替え制御出力ポート。
In the present embodiment, the following four applications are illustrated as applications that are executed by the
(1) Light system application (work area 41): an operation control application of the
(Input system: light switch / sensor resource area)
-Input port of the ignition switch SW1 (shared resource); when the ignition switch SW1 is OFF, only the main light can be turned on / off by the manual switch operation;
-Input port for operation signals from the light control switch SW2 (switching of lighting modes such as low beam, high beam, and high flash lighting, manual lighting / extinguishing, and automatic lighting / extinction switching);
-Input port for illuminance detection information from the light sensor (illuminance sensor) 61;
(Output system: Resource area for write output control)
-Control output port for switching the low beam lighting, high beam lighting, high flash lighting and extinguishing for the
A switching control output port for turning on and off the taillight lighting unit 72.
上記ライト系アプリケーションは、メインライトの自動点灯制御を司るものであり、車外光量を検出するライトセンサ61(照度センサ:図1)からの照度情報を取得するとともに、該照度情報が示す車外光量が規定値より小さい場合にメインライトを自動点灯させ、該車外光量が規定値より大きい場合にメインライトを自動消灯させる。 The light system application controls automatic lighting of the main light. The light application acquires illuminance information from a light sensor 61 (illuminance sensor: FIG. 1) that detects the amount of light outside the vehicle, and the amount of light outside the vehicle indicated by the illuminance information is The main light is automatically turned on when it is smaller than the prescribed value, and the main light is automatically turned off when the amount of light outside the vehicle is larger than the prescribed value.
(2)パワーウィンドウ制御アプリケーション(ワークエリア42):パワーウィンドウの動作制御アプリケーションであり、以下のリソースがワークエリア42内のリソース設定領域42Rに設定される。
(入力系:パワーウィンドウスイッチ用リソース領域)
・イグニッションスイッチSW1の入力ポート(共有リソース);イグニッションスイッチSW1がOFFの場合は、パワーウィンドウの動作禁止;
・パワーウィンドウスイッチユニット62(ウィンドウ上昇/下降切替え、昇降モードの断続/オート切替えなど))からの操作信号の入力ポート;
(出力系:パワーウィンドウ出力制御用リソース領域)
・パワーウィンドウ駆動ユニット73に対する、ウィンドウ上昇/下降、及び昇降モードの断続/オート切替えなどの駆動モード切替えの制御出力ポート。
(2) Power window control application (work area 42): This is a power window operation control application, and the following resources are set in the resource setting area 42R in the
(Input system: Resource area for power window switch)
-Input port (shared resource) of ignition switch SW1; power window operation prohibited when ignition switch SW1 is OFF;
An input port for operation signals from the power window switch unit 62 (window up / down switching, lift mode intermittent / auto switching, etc.);
(Output system: Resource area for power window output control)
A control output port for driving mode switching such as window raising / lowering and intermittent / auto switching of the raising / lowering mode for the power
(3)ドア開閉アプリケーション(ワークエリア43):ドア開閉ユニットの動作制御アプリケーションであり、以下のリソースがワークエリア43内のリソース設定領域43Rに設定される。電動式ドアが搭載される場合に必要となるアプリケーションである。
(入力系:ドア操作スイッチ用リソース領域)
・ドア操作スイッチユニット63からの操作信号の入力ポート;
(出力系:ドア開閉機構用リソース領域)
・ドア開閉ユニット74に対するドア開閉の制御出力ポート。
(3) Door opening / closing application (work area 43): This is an operation control application of the door opening / closing unit, and the following resources are set in the
(Input system: Resource area for door operation switches)
An input port for operation signals from the door operation switch unit 63;
(Output system: Door open / close mechanism resource area)
A control output port for opening and closing the door for the door opening and
(4)ワイヤレスドアロック制御アプリケーション(ワークエリア44):ユーザーが所持する無線キーあるいは携帯器164により、無線遠隔操作でドアを施錠/開錠するワイヤレスドアロック機構の動作制御アプリケーションであり、以下のリソースがワークエリア44内のリソース設定領域44Rに設定される。電動式ドアが搭載される場合に必要となるアプリケーションである。
(入力系:無線受信機用リソース領域)
・無線受信機用コントロールユニット64(携帯器164と無線通信し、ロック開閉のための制御信号(ロック開閉要求信号)を出力する)からのロック開閉要求信号の入力ポート;
(出力系:ドアロック機構用リソース領域)
・ドアロック機構75に対する施錠/開錠の制御出力ポート。
(4) Wireless door lock control application (work area 44): An operation control application of a wireless door lock mechanism that locks / unlocks a door by wireless remote operation using a wireless key possessed by a user or a
(Input system: Resource area for wireless receivers)
An input port for a lock opening / closing request signal from the wireless receiver control unit 64 (which wirelessly communicates with the
(Output system: Resource area for door lock mechanism)
A lock / unlock control output port for the
各リソース設定領域のメモリ構造は、例えば図12に示すごとくであり、入出力部2に設けられた各ポートのアドレスと、対応する割当アプリケーションの特定情報、及び割当アプリケーションが要求するそのポートの設定状態とを互いに対応付けて記憶するものである。スリープモードからウェイクアップする場合には、スリープ状態でのポート設定状態から、ウェイクアップ後、アプリケーションの起動に必要な設定状態(これらはアプリケーション毎に固有に定められるものである)に書き換える必要がある。その書き換え処理がウェイクアップに際してリソース設定処理であり、後述のウェイクアップ制御プログラム(図1のスリープ管理制御ソフト55の一部をなす:図2のプラットフォームに組み入れられている)が担うこととなる。そして、該ウェイクアップ制御プログラムが、本発明の特許請求の範囲に記載した、リソース設定手段、アプリケーション起動手段及びスリープ移行手段の各機能実現手段を、CPU3上での実行により実現する。
The memory structure of each resource setting area is as shown in FIG. 12, for example. The address of each port provided in the input /
上記ライト系アプリケーション以外の3つのアプリケーションは、リセット/再起動時に、第一種アプリケーションに対してその起動が後回しにされる第二種アプリケーションとして定められ、ROM5の対応する格納領域52〜54、及びRAM4の対応するワークエリア42〜44が第二種メモリ領域4S,5Sとして定められている。
The three applications other than the light application are defined as second-type applications whose activation is postponed with respect to the first-type application at the time of reset / restart, and corresponding
ECU1は、上記のごとく外部からのスイッチやセンサからの入力信号等を参照しつつ、各アプリケーションの実行により、前述した各種ボデー系の制御対象機器(被制御要素)の動作制御を司る。また、ECU1は、全てのアプリケーションが動作終了し、次の動作開始のための待機状態になっている場合に、低消費電力モードであるスリープモード(ECUを構成する発振器を停止したスタンバイモードや、通常動作と異なる低周波数の発振器で動作するスロークロックモード、あるいは一定時間ごとにCPUを間欠的に動作させる間欠モードなど)へ移行する。その制御は図2のプラットフォーム部分が担うこととなる(図1のROM5に搭載されているが、記載は省略している)。
As described above, the
ECU1は、ネットワークバスを介して他のハードウェア制御主体(例えば他のECU)と接続されており、該ネットワークバスを介した通信により、リセット指示又はウェイクアップ要因を判断すると動作を開始する。図10は、その処理の概略を示すフローチャートであり、リセット指示があった場合はリセット時のシステム設定を行ない(S100)、その後、S120へ移行する。一方、ウェイクアップ要因を判断した場合、ウェイクアップ時のシステム設定を行ない(S110)、その後、S120へ移行する。S120では、各アプリケーションによる制御が行われる。ここでは、複数のアプリケーションの状態が判定され、所定条件成立時にスリープ時のシステム設定を行ない(S130)、その後、スリープする。この判定を含めたECU1のスリープ状態への移行、及びウェイクアップのための準備制御などを統括的に司るのが、図1のスリープ管理・制御ソフト81である。スリープ管理・制御ソフト81は、以下の各機能実現手段をCPU3上にて実現するものである。
・スリープ制御情報取得手段:複数のアプリケーションソフトウェアが要求するスリープ期間の開始時刻及び終了時刻を直接的又は間接的に特定するためのスリープ制御情報を、それら複数のアプリケーションソフトウェアから要求スリープ制御情報として個別に取得する;
・有効スリープ期間算出手段:取得された各アプリケーションソフトウェアの要求スリープ制御情報が各々規定する複数の要求スリープ期間に、共通に含まれる期間を有効スリープ期間として算出する;
・スリープ移行手段:算出された有効スリープ期間の開始時刻が到来することにより、複数のアプリケーションソフトウェアの実行を一元的に司るハードウェア制御主体をスリープモードに移行させ、該有効スリープ期間が経過することにより、ハードウェア制御主体をスリープモードから通常動作モードにウェイクアップさせる。
ソフトウェア構造上は、図1のプラットフォームの一部をなすものとして把握できる。その詳細については、後述する。
The
Sleep control information acquisition means: Sleep control information for directly or indirectly specifying the start time and end time of the sleep period required by a plurality of application software is individually requested as the requested sleep control information from the plurality of application software To get on;
Valid sleep period calculation means: calculates a period commonly included in a plurality of requested sleep periods respectively defined by the acquired requested sleep control information of each application software as an effective sleep period;
-Sleep transition means: When the start time of the calculated effective sleep period arrives, the hardware control entity that centrally manages the execution of a plurality of application software is shifted to the sleep mode, and the effective sleep period elapses Thus, the hardware control subject is woken up from the sleep mode to the normal operation mode.
In terms of software structure, it can be grasped as a part of the platform of FIG. Details thereof will be described later.
図10の、S120における各アプリケーションによる制御を示すのが図3の説明図である。ここには、プラットフォームの機能の一部として形成されたスケジューラによって、複数のアプリケーション1,2‥nが順次起動される様子が示されている。このとき、プラットフォーム内の状態管理プログラムが、一連のアプリケーションの状態をまとめて管理するようになっており、制御状態を判定して状態遷移処理を行なう。状態管理プログラムによる状態遷移処理を示すのが、図4の説明図である。状態管理プログラムは、アプリケーションの状態として3つの状態、すなわち準備状態α、制御状態β、そして、制御開始監視状態γを定義しており、図3に示したスケジューラによる一連の起動処理毎に、各アプリケーションからの信号に基づき、必要に応じて状態を遷移させる。
FIG. 3 is an explanatory diagram of FIG. 3 showing control by each application in S120 of FIG. Here, a state in which a plurality of
すなわち、リセット指示によって動作を開始している場合、最初は準備状態αとし、一方、ウェイクアップ要因を判断して動作を開始している場合、最初は制御開始監視状態γとする。そして、準備状態αにある場合、各アプリケーションから準備完了の通知があると、次に制御状態βへ状態を遷移させる(記号(1))。また、制御状態βにある場合、前述のスリープ管理・制御ソフト81は、アプリケーションソフトウェア毎に異なる要求スリープ期間の開始時刻及び終了時刻を直接的又は間接的に特定するためのスリープ制御情報を取得し、全てのアプリケーションからスリープ制御情報を取得すれば、制御開始監視状態γへ状態が遷移する(記号(2))。
That is, when the operation is started by the reset instruction, the preparation state α is initially set. On the other hand, when the operation is started by determining the wake-up factor, the control start monitoring state γ is initially set. Then, in the preparation state α, when there is a notification of preparation completion from each application, the state is then shifted to the control state β (symbol (1)). In the control state β, the sleep management /
各アプリケーションは、要求するスリープ期間をタイマー設定し、スリープとウェイクアップとを定期的に繰り返すようにプログラミングされている。例えば、キーレスエントリ方式が採用される場合、図1の「スイッチ/センサ等の入力」として、ユーザー携帯器からの無線信号が受信入力され、キーレスエントリ方式に対応したドアロック制御アプリケーションは、その受信スタンバイ期間を通常モード期間として、スリープ期間と交互に繰り返すようにECU1の作動制御を行なうこととなる。
Each application is programmed to set a requested sleep period as a timer and periodically repeat sleep and wakeup. For example, when the keyless entry method is adopted, a radio signal from the user portable device is received and input as “input of switch / sensor, etc.” in FIG. 1, and the door lock control application corresponding to the keyless entry method receives the received signal. The operation control of the
他方、アプリケーションの一部又は全部は、上記のスリープサイクルとは無関係に、外部の操作信号(ライト点灯、ドアロック解除指令など)をトリガーとした割り込み処理指令(つまり、外部からの動作指令である)を受けた場合も、これをウェイクアップ要因として随時ウェイクアップするようになっている。そして、その後一定期間ウェイクアップ要因がなければ要求スリープ期間が再設定され、スリープに移行する。従って、各アプリケーションの要求スリープ期間の、時間軸上の相対関係は、上記の不定期ウェイクアップ要因により様々に変化する。さらに、タイマーにより規定される要求スリープ期間はアプリケーションによってまちまちである。本実施形態においては、取得された各アプリケーションソフトウェアの要求スリープ制御情報が各々規定する複数の要求スリープ期間に、共通に含まれる期間を有効スリープ期間として算出する。そして、制御開始監視状態γにおいては、有効スリープ期間の開始タイミングが到来すれば、ウェイクアップ用のスリープタイマー7Tにその有効スリープ期間をセットし、スリープ状態に移行する。スリープタイマー7Tは有効スリープ期間がタイムアップすればウェイクアップ信号を送信し、ECU1をウェイクアップさせる。
On the other hand, part or all of the application is an interrupt processing command (that is, an operation command from the outside) triggered by an external operation signal (light lighting, door lock release command, etc.) regardless of the above sleep cycle. ) Is waked up from time to time as a wakeup factor. After that, if there is no wake-up factor for a certain period, the requested sleep period is reset and the process shifts to sleep. Therefore, the relative relationship on the time axis of the requested sleep period of each application varies depending on the above irregular wakeup factors. Furthermore, the requested sleep period defined by the timer varies depending on the application. In the present embodiment, a period that is commonly included in a plurality of requested sleep periods defined by the obtained requested sleep control information of each application software is calculated as an effective sleep period. Then, in the control start monitoring state γ, when the start timing of the effective sleep period arrives, the effective sleep period is set in the
要求スリープ制御情報は各アプリケーション中に記述されており、RAM4の対応するワークエリアの指定されたアドレスに書き込まれる。スリープ管理・制御ソフト81は、このアドレスに自発的にアクセスして要求スリープ制御情報を取得することも可能であるが、アプリケーションプログラムがロードされるメモリアドレスが相対アドレス化されている場合に、要求スリープ制御情報の書き込みアドレスが不定となり、要求スリープ制御情報を特定するために余分なステップが必要となる(アプリケーション側からスリープ管理・制御ソフト81に書き込みアドレスを報知することなどが考えられる)。このような面倒をなくすため、図1に示すように、ECU1のRAM4には、複数のアプリケーションソフトウェアにて共通に使用される登録メモリ(図中では下位概念にて「タイマー登録メモリ82」と表示している)が設けられており、各プリケーションソフトウェアが、自身に設定されているスリープ制御情報を自発的にこのメモリに書き込むことにより、これが登録されるようになっている(スリープ制御情報登録手段)。なお、本実施形態では、複数のタイマーのID(番号)とアプリケーションとの対応関係が予め定められており、以降は、要求のあったID(アプリケーション)のタイマーに設定されたスリープ開始/終了時間(要求スリープ制御情報)が読み出されて使用されるようになっている(つまり、「アプリケーションと対応付けて記憶されている」とは、「アプリケーションとの対応関係が特定可能な状態で記憶されている」との意味であり、アプリケーションそのものが登録メモリに記憶されているわけではない)。
The requested sleep control information is described in each application, and is written at a designated address in the corresponding work area of the
図5に示すように、要求スリープ制御情報の与え方は種々考えられる。まず、Aは最も簡単な方式であり、アプリケーションはスリープを開始したい時刻に要求スリープ期間Td(つまり、タイマー登録データ)を登録メモリ(つまり、タイマー登録メモリ82)に登録する。図9は、その場合のスリープ管理・制御ソフト81によるタイマー登録処理の流れを示すフローチャートの例であり、S51でアプリケーションの番号kを初期化し、S52では番号kのアプリケーションから要求スリープ期間Tdが書き込まれたかどうかを確認する。書き込まれれば、そS53で、その書き込み時間に対応する要求スリープ開始時刻tskを登録する。
As shown in FIG. 5, there are various ways of providing the requested sleep control information. First, A is the simplest method, and the application registers the requested sleep period Td (that is, timer registration data) in the registration memory (that is, the timer registration memory 82) at the time when the application wants to start sleep. FIG. 9 is an example of a flowchart showing the flow of the timer registration process by the sleep management /
この場合、スリープ管理・制御ソフト81には、図1に示すように管理タイマー81Tを設けておき、書き込みのあったときの管理タイマー81Tの値から時刻把握することができる。アプリケーションからは、実際にスリープに入りたい時刻に対して、一定時間Δtだけ前倒しで要求スリープ期間Tdkが書き込まれるようにしておき、書き込みのあった時刻をtsk’とすれば、tsk’+Δtを要求スリープ開始時刻tskとして登録することができる。要求スリープ期間Tdkは、例えば前回スリープからのウェイクアップ時に、次回スリープのために後述のスリープタイマー7Tにセットすることができる。この場合、Δtは、ウェイクアップ後の次回スリープの条件となる、外部要求ウェイクアップ要因(例えば、ドア開閉、ドアロック、ランプ点灯などのユーザーによる操作信号)の不発生継続時間(アイドリング期間)として定めることができる。
In this case, the sleep management /
要求スリープ開始時刻tskが算出できれば、書き込まれた要求スリープ期間Tdkから、要求スリープ終了時刻twkをtsk+Tdkにて算出し、登録する(S55,S56)。以上の処理を全てのアプリケーションについて繰り返すと、登録メモリの内容は図6のような状態となる。すなわち、各アプリケーションの要求スリープ制御情報の内容が、アプリケーションと対応付けて記憶されている。 If the requested sleep start time tsk can be calculated, the requested sleep end time twk is calculated by tsk + Tdk from the written requested sleep period Tdk and registered (S55, S56). When the above process is repeated for all applications, the contents of the registration memory are as shown in FIG. That is, the contents of the requested sleep control information for each application are stored in association with the application.
そして、ここでの処理の最終的な目的は、複数のアプリケーションの要求スリープ期間Tdkを調停し、共通に含まれる期間を、ECU1を実際にスリープさせる有効スリープ期間Tdcとして決定することにある。このためには、有効スリープ期間Tdcの開始時刻(tsc)を決定するために要求スリープ開始時刻tskが必要であり、また、終了時刻(twc)を決定するために要求スリープ終了時刻twkが必要である。図1に一点鎖線で示すように、ECU1に絶対時刻把握のための時計6が設けられていれば、図5のB〜Dのような登録方式も可能である。すなわち、アプリケーション側で時計6を読み取ることにより、Bでは要求スリープ開始時刻tskと要求スリープ期間Tdkとを登録する。また、Cでは、要求スリープ終了時刻twkと要求スリープ期間Tdkとを登録する。そしてDでは、要求スリープ開始時刻tskと要求スリープ期間Tdkとを登録する。
The final purpose of the processing here is to arbitrate the requested sleep periods Tdk of a plurality of applications, and to determine the period that is included in common as the effective sleep period Tdc that actually causes the
有効スリープ期間Tdcを含むスリープ条件の設定は、例えば、以下のような手順で行なうことができる。まず、登録された要求スリープ開始時刻tskのうち最も遅く到来するもの(第二種限界時刻)を有効スリープ開始了時刻tscとして算出し、図5に示すごとく登録する。ただし、スリープ処理の時間的マージンを見込んで、第二種限界時刻に一定期間δtを加算して有効スリープ開始時刻tscを設定してもよい。 The sleep condition including the effective sleep period Tdc can be set, for example, by the following procedure. First, among the registered requested sleep start times tsk, the latest arrival time (second type limit time) is calculated as the effective sleep start end time tsc and registered as shown in FIG. However, the effective sleep start time tsc may be set by adding a certain period δt to the second type limit time in consideration of the time margin of the sleep process.
また、登録された要求スリープ終了時刻twkのうち、最も早く到来するもの(第一種限界時刻)を有効スリープ終了時刻twcとして算出し、図5に示すごとく登録する。ただし、ウェイクアップ処理の時間的マージンを見込んで、第一種限界時刻から一定期間δtを減算して有効スリープ終了時刻twcを設定してもよい。そして、有効スリープ期間Tdcをtwc−twsにより算出する。 Also, among the registered requested sleep end times twk, the earliest arrival time (first type limit time) is calculated as the effective sleep end time twc and registered as shown in FIG. However, the effective sleep end time twc may be set by subtracting a certain period δt from the first type limit time in consideration of the time margin of the wake-up process. Then, the effective sleep period Tdc is calculated by twc-tws.
図7と図8は、上記の処理のタイミングチャート的に図示したものであり、図7では、全てのアプリケーションの要求スリープ開始時刻tskが一致する場合の例を示している。この場合、要求スリープ終了時刻twkが最も早く到来するアプリケーションの要求スリープ期間(図ではTd2)が、有効スリープ終了時刻twcと等価となる。全てのアプリケーションの要求スリープ開始時刻tskが常時一致することが予めわかっている場合は、スリープ制御情報として要求スリープ期間Tdkか要求スリープ終了時刻twkのみを登録することも考えられる。 FIGS. 7 and 8 are timing charts of the above processing. FIG. 7 shows an example in which the requested sleep start times tsk of all the applications match. In this case, the requested sleep period (Td2 in the figure) of the application in which the requested sleep end time twk arrives earliest is equivalent to the effective sleep end time twc. If it is known in advance that the requested sleep start times tsk of all applications always coincide, it is possible to register only the requested sleep period Tdk or the requested sleep end time twk as sleep control information.
一方、図8は、要求スリープ開始時刻tskがアプリケーション間で不一致となる場合である。登録された要求スリープ開始時刻tskのうち最も遅く到来するもの(第二種限界時刻)と、登録された要求スリープ終了時刻twkのうち、最も早く到来するもの(第一種限界時刻)との間に、有効スリープ期間Tdcが設定されていることが明らかである。 On the other hand, FIG. 8 shows a case where the requested sleep start time tsk does not match between applications. Between the registered request sleep start time tsk that arrives latest (second type limit time) and the registered request sleep end time twk that arrives earliest (first type limit time) It is clear that the effective sleep period Tdc is set.
さて、以上説明したごとく、スリープモードからのウェイクアップに関しては、その要因が2種類あることは明らかである。その一方は、スリープタイマー7Tのタイムアップを要因とするウェイクアップ(タイマーウェイクアップ:本実施形態では、それに伴いウェイクアップ信号発生部7がウェイクアップ信号をウェイクアップポートINTに入力することにより実行される割り込み処理である)、他方は外部からの動作要求による内部処理的な割り込みを要因とするウェイクアップ(外部要求ウェイクアップ)である。本発明の要点は、この二種のウェイクアップ要因を明確に検出・区別し、ウェイクアップ後のアプリケーション起動処理の流れも異なるものとしていることにある。
As described above, it is clear that there are two types of factors related to wakeup from the sleep mode. One of them is a wake-up caused by the time-up of the
図11は、その具体的な処理を司る、前述のウェイクアップ制御処理の流れを示すフローチャートである。まず、S101ではウェイクアップ要因の監視を行なう。具体的には、イグニッションスイッチSW1、ライトコントロールスイッチSW2、ライトセンサ61(以上、ライト制御アプリケーション用)、パワーウィンドウスイッチユニット63(パワーウィンドウ制御アプリケーション用)、ドア操作スイッチユニット63(ドア開閉制御アプリケーション用)、無線受信機64(ワイヤレスドアロック制御アプリケーション用)などの、各信号入力ポート(第一種入力ポートという)の状態と、タイマーウェイクアップ用のポートINT(第二種入力ポートという)の状態を監視する。上記の各入力デバイスからの入力状態は、ユーザーによる操作によって変化するものであり、その変化を検出して、対応する被制御要素(ヘッドライト/テールライトの点灯ユニット71,72、パワーウィンドウ駆動ユニット73、ドア開閉ユニット74あるいはドアロック機構75)が対応するアプリケーションにより動作制御される。つまり、第一種入力ポートの入力状態変化から、そのポートが割り当てられたアプリケーションに対する動作要求の有無を容易に判断することができる。また、第一種入力ポートのどれかに有効な状態変化が現れれば、この場合のウェイクアップが外部要因ウェイクアップであり、そのポートの種別からどのアプリケーションの動作が要求されたかを把握できる。他方、第二種ポートに有効な状態変化が現れれば、この場合のウェイクアップがタイマーウェイクアップであることを把握できる。
FIG. 11 is a flowchart showing a flow of the above-described wake-up control process that controls the specific process. First, in S101, a wake-up factor is monitored. Specifically, an ignition switch SW1, a light control switch SW2, a light sensor 61 (above, for a light control application), a power window switch unit 63 (for a power window control application), a door operation switch unit 63 (for a door opening / closing control application) ) State of each signal input port (referred to as first type input port) such as wireless receiver 64 (for wireless door lock control application) and state of port INT for timer wakeup (referred to as second type input port) To monitor. The input state from each of the input devices is changed by an operation by the user. The change is detected, and the corresponding controlled element (headlight /
S102でウェイクアップ要因が検出されれば、S103に進んで初期設定処理となる。この処理は、周辺レジスタの内容設定等の他、前述のスリープ条件tsc、twc、Tdcの算出・設定処理も含む。そして、S104では、ウェイクアップがタイマーウェイクアップであるかどうかが判断される。もし、タイマーウェイクアップでなければ、それは外部要因ウェイクアップであるからS113に進み、ウェイクアップ要因に関与するアプリケーションがどれであるかを、信号変化のあったポートの種別から判定する。そして、そのアプリケーションを第一種アプリケーションとして、該第一種アプリケーションに割り当てられたリソースのみ、ウェイクアップに必要な状態に設定する(本発明の第一におけるリソース設定手段の機能が実現している)。次に、S114に進み、上記第一種アプリケーションと、残余の第二種アプリケーションとの全てを起動する(本発明の第一におけるアプリケーション起動手段の機能が実現している)。この後のアプリケーションの処理流れは、図11には表れていないが、第一種アプリケーションは外部から動作要求に従い、対応する被制御要素が所望の動作を行なうように、その要部(メインプログラム)が実行動作に移される。他方、第二種アプリケーションは、外部から動作要求がないので、動作要求があるまで待機状態となる。このあとS106に進む。 If a wake-up factor is detected in S102, the process proceeds to S103 and an initial setting process is performed. This processing includes calculation and setting processing of the sleep conditions tsc, twc, and Tdc as well as setting of peripheral register contents. In S104, it is determined whether the wakeup is a timer wakeup. If it is not the timer wake-up, it is an external factor wake-up, so the process proceeds to S113, and which application is involved in the wake-up factor is determined from the type of the port where the signal has changed. Then, the application is set as a first type application, and only the resources allocated to the first type application are set to a state necessary for wakeup (the function of the resource setting means in the first of the present invention is realized). . Next, the process proceeds to S114, in which all of the first type application and the remaining second type application are activated (the function of the application activation means in the first of the present invention is realized). The subsequent processing flow of the application is not shown in FIG. 11, but the main part (main program) of the first type application is so that the corresponding controlled element performs a desired operation in accordance with an operation request from the outside. Is moved to the execution operation. On the other hand, since there is no operation request from the outside, the second type application is in a standby state until there is an operation request. Thereafter, the process proceeds to S106.
一方、タイマーウェイクアップであった場合はS104からS105に進む。この場合は、どのアプリケーションについても外部から動作要求がない状態であるから、アプリケーションのリソース設定を全く行なわない状態で、全てのアプリケーションを起動させる(本発明の第二におけるアプリケーション起動手段の機能が実現している)。 On the other hand, if the timer wakes up, the process proceeds from S104 to S105. In this case, there is no operation request for any application from outside, so that all applications are started without any application resource setting (the function of the application starting means in the second of the present invention is realized) is doing).
S106以下は、上記2種のウェイクアップについて共通の処理となる。まず、S106では、算出された有効スリープ期間Tdcが基準値Tdminよりも小さいかどうかを判定し、小さくなければS107に進んで、図1の管理タイマー81Tにより現在時刻を読み取るとともに、S108で有効スリープ開始時刻tscが到来しているかどうかを確認する。到来していればS109に進み、図1のウェイクアップ信号発生部7のスリープタイマー7Tに有効スリープ期間Tdcをセットして、ECU1をスリープ状態に移行させる。
The processes after S106 are common to the two types of wakeup. First, in S106, it is determined whether or not the calculated effective sleep period Tdc is shorter than the reference value Tdmin. If not, the process proceeds to S107, the current time is read by the
S114からの流れでこの処理に移行した場合、スリープタイマーが計測する一定のアイドリング期間がタイムアップするまで、第二種アプリケーションのどれにも動作要求がなかったことを意味し、結局、第二種アプリケーションについてはリソース設定が行なわれないままスリープモードへ移行することになる(図13のパターンB)。他方、S105からの流れでこの処理に移行した場合は、アイドリング期間中に複数のアプリケーションのいずれに対しても外部からの作動要求がなされなかった場合に、該アプリケーションへのリソース設定を行なわないままスリープモードへ移行することになる(図13のパターンC)。それぞれ、本発明の第一及び第二におけるスリープ移行手段の機能が実現していることが明らかである。そして、いずれの場合も、図13のパターンAに示すごとく、ウェイクアップ要因の区別なく全アプリケーションのリソース設定を行なってからアプリケーションを起動する従来の方式と比較して、アプリケーションが起動するまでの時間が大幅に短縮され、かつ、次のスリープに移行するまでの時間ひいては暗電流の通電時間も短くなっていることがわかる。 When the process proceeds to S114, this means that none of the second type applications have requested an operation until a certain idling period measured by the sleep timer has expired. The application shifts to the sleep mode without setting resources (pattern B in FIG. 13). On the other hand, when the process proceeds to S105 from the flow of S105, if no external operation request is made to any of the plurality of applications during the idling period, resource setting for the application is not performed. A transition is made to the sleep mode (pattern C in FIG. 13). It is clear that the functions of the sleep transition means in the first and second aspects of the present invention are realized, respectively. In any case, as shown in pattern A in FIG. 13, the time until the application is started as compared to the conventional method of starting the application after setting the resources of all the applications without distinguishing the wake-up factor. It can be seen that the time until the transition to the next sleep and the dark current application time are also shortened.
図11のフローチャートには表れていないが、図1のウェイクアップ信号発生部7は、上記の処理流れを受け、有効スリープ期間Tdcが経過すれば割り込みポートの1つであるウェイクアップ用ポートINTにウェイクアップ信号を入力する(つまり、タイマーウェイクアップ制御手段として機能する)。ECU1は、これを受けて割り込み処理により、スリープモードからウェイクアップする(上記のタイマーウェイクアップである)。
Although not shown in the flowchart of FIG. 11, the wakeup
図11のウェイクアップ制御処理は、一定の周期で繰り返し実行される。例えば、S108で有効スリープ開始時刻tscが到来していないようであれば、S110はスキップされ、スリープモードに入ることなくスリープ制御処理のその実行サイクルは終了し、移行の実行サイクルで有効スリープ開始時刻tscが到来したときスリープモードに移行することとなる。 The wake-up control process in FIG. 11 is repeatedly executed at a constant cycle. For example, if the effective sleep start time tsc does not arrive in S108, S110 is skipped, and the execution cycle of the sleep control process ends without entering the sleep mode, and the effective sleep start time in the transition execution cycle When tsc arrives, the sleep mode is entered.
なお、この途上のS111では、再び第一種ポート群の入力状態をスキャンし、特定アプリケーションに対する動作要求を示す有効な状態変化が新たに生じていないかを確認する。状態変化が生じていれば、そのアプリケーションを特定して、直ちにそのアプリケーションのリソースを設定する(S112)。他方、有効な状態変化が生じていなければS112はスキップされる。つまり、ウェイクアップ制御処理の反復に伴い、動作要求を示す有効な状態変化が検出されれば、これに対応するアプリケーションについてのみリソースの設定が追加される。これにより、無駄なリソース設定処理が反復されて非スリープ期間が侵食され、暗電流が増大する不具合をより効果的に抑制できる。ただし、S112の処理に代え、何らかのアプリケーションに対する外部動作要求があった場合は、全てのアプリケーションのリソース設定を行ない、その後、再度アプリケーションを起動しなおす処理を行なうようにしてもよい(図13のパターンD)。 In S111 on the way, the input state of the first-type port group is scanned again to check whether a valid state change indicating an operation request for the specific application has occurred. If a state change has occurred, the application is identified and the application resource is immediately set (S112). On the other hand, if there is no effective state change, S112 is skipped. That is, if an effective state change indicating an operation request is detected as the wake-up control process is repeated, the resource setting is added only for the application corresponding to the change. As a result, it is possible to more effectively suppress the problem that the wasteful resource setting process is repeated, the non-sleep period is eroded, and the dark current increases. However, instead of the process of S112, when there is an external operation request for some application, the resource setting of all applications may be performed, and then the process of restarting the application may be performed again (pattern of FIG. 13). D).
なお、S103のスリープ条件設定(調停)処理は、実行サイクル毎に各アプリケーションの状態を監視する役割も果たしており、もしスリープ制御情報の登録内容に変化があれば、有効スリープ期間の設定内容も更新される。例えば、図8において、動作頻度の比較的高いアプリケーション1〜3の間で、一旦スリープ調停された後、常時は動作頻度の非常に低いアプリケーション4が偶然動作して、そのアプリケーション4を追加した形での再調停が必要となった場合は、破線で示すように、そのアプリケーション4のスリープ制御情報が追加され、有効スリープ期間Tdcが更新される。
Note that the sleep condition setting (arbitration) process of S103 also plays a role of monitoring the state of each application for each execution cycle. If there is a change in the registered content of the sleep control information, the setting content of the effective sleep period is also updated. Is done. For example, in FIG. 8, after the sleep arbitration is temporarily performed between the
また、アプリケーション1〜3がバージョンアップ等により書き換えられた場合も、アプリケーション1〜3に要求スリープ制御情報の登録機能が備わっている限り、図9のスリープ制御情報の登録処理や、図11のウェイク制御処理のプログラムには何ら変化は生じず、図6の登録内容もバージョンアップに対応した形で自発的に書き換えられ、スリープ調停のためのプログラムの手直し等は一切不要である。この事情は、もともと存在していなかったアプリケーションが、機能追加により新たにROM5(図1)に書き加えられた場合においても同様である。
Further, when the
次に、図7及び図8に示すように、各アプリケーションのハードウェア的なスリープ/ウェイクアップは、要求スリープ期間の調停結果として算出される有効スリープ期間Tdcに従って、ECU1を単位として実行される。しかし、個々のアプリケーションの内部処理においては、図1に示すごとく、要求スリープ制御情報が、要求スリープ期間Tdを設定時間とする個別のタイマーにより与えられており、ECU1がウェイクアップしても、個々のアプリケーションは各タイマーが規定する要求スリープ終了時刻が到来しなければ、アプリケーション自体は起動しない。この様子を図14に示している。この場合、a〜cに示すように、有効スリープ期間の設定状況によりアプリケーションの起動タイミングも一定しないことになる。例えば有効スリープ期間Tdcに対して、要求スリープ期間が時間的に後に乖離している場合は、当該アプリケーションへの外部動作要求が存在していなくとも、その起動が遅れる分だけ次のスリープに入るタイミングも遅れ、暗電流の増大につながる問題がある。そこで、dに示すように、ウェイクアップ後にどのアプリケーションについても外部動作要求が存在しない場合に限り、スリープタイマーよりも上位の割り込みを別途用意したソフトウェアの実行により強制的に発生させ、アプリケーションの実行開始時刻を前倒しするように制御することができる。これにより、暗電流の低減を図ることができる。
Next, as shown in FIGS. 7 and 8, hardware sleep / wake-up of each application is executed in units of
1 ECU(ハードウェア制御主体:自動車用制御装置) 1 ECU (Hardware control subject: Automotive control device)
Claims (8)
前記ハードウェア制御主体は、CPUと、前記アプリケーションを格納するROMと、前記CPU上にて前記複数のアプリケーションを実行するためのワークエリアとなるRAMとを有し、前記RAM上には、前記ハードウェア制御主体の各アプリケーションに割り当てられるリソースの設定領域がアプリケーション毎に個別に設けられ、
前記ハードウェア制御主体が前記スリープモードから前記通常モードに切り替わるウェイクアップの要因が、前記複数のアプリケーションの少なくとも1つに対する外部からの作動要求に基づいて発生する場合において、前記複数のアプリケーションのうち、当該作動要求のあったアプリケーションを第一種アプリケーション、残余のアプリケーションを第二種アプリケーションとして定めたとき、前記ウェイクアップに際して前記第一種アプリケーションのリソースを、前記第二種アプリケーションのリソースに優先して前記RAM上の対応する設定領域に設定するリソース設定手段と、
前記第一種アプリケーションのリソースを設定後に、前記第二種アプリケーションのリソースを設定することなく前記第一種アプリケーションを起動するアプリケーション起動手段と、
を有することを特徴とする自動車用制御装置。 Each control means, each of which is executed on the same hardware control entity, with a plurality of control means provided corresponding to the controlled elements to control the electrical operation of the controlled elements on the automobile The function is realized by a plurality of applications corresponding to the above, and the operation mode of the control means is configured to be switchable between a normal operation mode and a sleep mode that consumes less power than the normal operation mode. A control device,
The hardware control entity includes a CPU, a ROM that stores the application, and a RAM that serves as a work area for executing the plurality of applications on the CPU. A setting area for resources allocated to each application of the hardware control entity is provided for each application individually.
In the case where the cause of the wakeup in which the hardware control subject switches from the sleep mode to the normal mode is generated based on an operation request from the outside for at least one of the plurality of applications, When the application that requested the operation is defined as a first type application and the remaining applications are defined as a second type application, the first type application resource is given priority over the second type application resource during the wakeup. Resource setting means for setting a corresponding setting area on the RAM;
Application starting means for starting the first type application without setting the resource of the second type application after setting the resource of the first type application;
A control apparatus for an automobile, comprising:
前記アプリケーション起動手段は、前記ウェイクアップの要因が、前記タイマーウェイクアップ制御手段によるウェイクアップ要求に基づいて発生する場合において、当該ウェイクアップに際して前記アプリケーションを、そのリソース設定を行なうことなく起動する請求項1ないし請求項4のいずれか1項に記載の自動車用制御装置。 A timer wakeup control means for waking up the hardware control subject when a predetermined sleep period measured by a sleep timer has elapsed after the hardware control subject enters the sleep mode;
The application activation unit activates the application without performing resource setting when the wake-up factor is generated based on a wake-up request from the timer wake-up control unit. The control apparatus for motor vehicles of any one of Claim 1 thru | or 4.
前記ハードウェア制御主体が前記スリープモードへ移行後、スリープタイマーが計測する予め定められたスリープ期間が経過した場合に、該ハードウェア制御主体をウェイクアップさせるタイマーウェイクアップ制御手段と、
前記ハードウェア制御主体が前記スリープモードから前記通常モードに切り替わるウェイクアップの要因が、前記タイマーウェイクアップ制御手段によるウェイクアップ要求に基づいて発生する場合において、当該ウェイクアップに際して前記アプリケーションを、そのリソース設定を行なうことなく起動するアプリケーション起動手段と、
を有することを特徴とする自動車用制御装置。 Each control means, each of which is executed on the same hardware control entity, with a plurality of control means provided corresponding to the controlled elements to control the electrical operation of the controlled elements on the automobile The function is realized by a plurality of applications corresponding to the above, and the operation mode of the control means is configured to be switchable between a normal operation mode and a sleep mode that consumes less power than the normal operation mode. A control device,
Timer wakeup control means for waking up the hardware control subject when a predetermined sleep period measured by a sleep timer has elapsed after the hardware control subject has entered the sleep mode;
In the case where the wake-up factor for the hardware control subject to switch from the sleep mode to the normal mode is generated based on a wake-up request by the timer wake-up control means, the resource setting of the application is performed during the wake-up. Application starting means for starting without performing,
A control apparatus for an automobile, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004340098A JP4446169B2 (en) | 2004-11-25 | 2004-11-25 | Automotive control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004340098A JP4446169B2 (en) | 2004-11-25 | 2004-11-25 | Automotive control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006151000A true JP2006151000A (en) | 2006-06-15 |
JP4446169B2 JP4446169B2 (en) | 2010-04-07 |
Family
ID=36629823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004340098A Expired - Fee Related JP4446169B2 (en) | 2004-11-25 | 2004-11-25 | Automotive control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4446169B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9549369B2 (en) | 2014-03-27 | 2017-01-17 | Denso Corporation | Communication device |
CN107856538A (en) * | 2017-11-14 | 2018-03-30 | 华晨汽车集团控股有限公司 | A kind of electric drive system for electric vehicles operating mode switching control method |
JP2019053405A (en) * | 2017-09-13 | 2019-04-04 | 株式会社デンソー | Vehicle control device |
CN114655016A (en) * | 2021-03-23 | 2022-06-24 | 北京新能源汽车股份有限公司 | Wake-up circuit, vehicle control unit, power-on and power-off control method and device |
-
2004
- 2004-11-25 JP JP2004340098A patent/JP4446169B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9549369B2 (en) | 2014-03-27 | 2017-01-17 | Denso Corporation | Communication device |
JP2019053405A (en) * | 2017-09-13 | 2019-04-04 | 株式会社デンソー | Vehicle control device |
CN107856538A (en) * | 2017-11-14 | 2018-03-30 | 华晨汽车集团控股有限公司 | A kind of electric drive system for electric vehicles operating mode switching control method |
CN114655016A (en) * | 2021-03-23 | 2022-06-24 | 北京新能源汽车股份有限公司 | Wake-up circuit, vehicle control unit, power-on and power-off control method and device |
CN114655016B (en) * | 2021-03-23 | 2024-01-30 | 北京新能源汽车股份有限公司 | Wake-up circuit, whole vehicle controller, power-on and power-off control method and device |
Also Published As
Publication number | Publication date |
---|---|
JP4446169B2 (en) | 2010-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4548601B2 (en) | Automotive control unit | |
EP1717664B1 (en) | Computer circuit | |
US9798307B2 (en) | Startup control of devices | |
US20200162273A1 (en) | Communication system for vehicle and method for controlling the same | |
CN106218550B (en) | Control method, electronic control unit, system and the vehicle of electronic control unit | |
CN111698107B (en) | Vehicle network management method, device and system and computer equipment | |
CN110271503B (en) | AVN-based power management mode switching control method and device | |
CN112208470B (en) | Method for realizing low power consumption of equipment and vehicle-mounted terminal | |
CN105353864A (en) | Static power consumption management method and system for electronic device | |
JP2008107914A (en) | Microcomputer, program and electronic control device for vehicle | |
JP2008102830A (en) | Microcomputer, program and electronic control device for vehicle | |
JP4446169B2 (en) | Automotive control device | |
JP4446168B2 (en) | Automotive control device | |
JP2007022355A (en) | Control unit for automobile | |
US10863441B2 (en) | Bluetooth low power node latency optimization | |
JP2006290162A (en) | Control unit for automobile | |
JP2007001420A (en) | Control unit for vehicle | |
JP5319388B2 (en) | Remote control system and remote control method | |
JP4446170B2 (en) | Automotive sleep control system | |
JP6315416B2 (en) | Vehicle communication device and vehicle communication system | |
JP4419192B2 (en) | Automotive control device | |
JP2006128807A (en) | Vehicle-mounted information communication apparatus | |
CN114083984A (en) | New energy vehicle static power supply control method and system | |
JP2018202940A (en) | Software update system | |
CN117002427A (en) | Commercial vehicle power management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070209 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090806 |
|
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: 20091224 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100106 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130129 Year of fee payment: 3 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4446169 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140129 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |