JP2006151000A - Control device for automobile - Google Patents

Control device for automobile Download PDF

Info

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
Application number
JP2004340098A
Other languages
Japanese (ja)
Other versions
JP4446169B2 (en
Inventor
Masaya Hirota
雅也 廣田
Koichiro Yokoyama
耕一郎 横山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2004340098A priority Critical patent/JP4446169B2/en
Publication of JP2006151000A publication Critical patent/JP2006151000A/en
Application granted granted Critical
Publication of JP4446169B2 publication Critical patent/JP4446169B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a control device for an automobile capable of normalizing the activation sequence of application according to a factor of waking up when ECU is waked up after sleeping. <P>SOLUTION: When the factor of waking up of ECU is generated based on operation request from the outside relative to at least one of a plurality of applications, resource of the application is set in preferential to resource of second kind application. Thereafter, since the first kind application is activated without setting the resource of the second kind application, the activation of the application with request of action can be made early by a degree that setting of the resource of the application particularly not receiving the request of action is canceled. Further, the application with no request of operation can be transferred to a sleep mode without performing waste resource setting and a time until it nextly sleeps can be shortened. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は自動車用制御装置に関する。   The present invention relates to an automobile control device.

特開2002−41141号公報JP 2002-411141 A 特開2003−318924号公報JP 2003-318924 A

自動車には、各種機器(被制御要素)を制御するために、マイクロプロセッサ(ハードウェア制御主体)からなる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, Patent Document 1 and Patent Document 2). Specifically, the sleep mode is a standby mode in which the oscillator that constitutes the ECU is stopped, a slow clock mode that operates with a low-frequency oscillator different from the normal operation, or an intermittent mode in which the CPU is intermittently operated at regular intervals. It means that it is in the low current consumption mode. In particular, as in the keyless entry method, when the user who owns the portable device detects wirelessly that the user has approached the vehicle via the portable device and wants to automatically control operations such as door lock release and engine start, this control is performed. The controlling ECU must always continue to operate even when parking or when the engine is stopped. Especially when the parking time is extended for a long time, if the ECU is continuously operated in the normal operation mode, the battery voltage is lowered and the vehicle cannot be started. Therefore, the sleep control of the ECU has recently become important from the viewpoint of battery protection. It is increasing.

スリープモードからのウェイクアップには、特定のアプリケーションに対する外部からの動作要求に基づき、割り込み処理により不定期にウェイクアップする場合(以下、外部要因ウェイクアップという)と、タイマー制御により定期的にスリープとウェイクアップとを繰り返す場合(以下、タイマーウェイクアップという)との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.

課題を解決するための手段及び発明の効果Means for Solving the Problems and Effects of the Invention

上記の課題を解決するために、本発明の自動車用制御装置の第一の構成は、
自動車上の複数の被制御要素の電気的動作を制御するために被制御要素に対応して設けられた複数の制御手段を、同一のハードウェア制御主体上でそれぞれ実行される、各制御手段に対応した複数のアプリケーションにより機能実現するとともに、制御手段の動作モードが、通常動作モードと、該通常動作モードよりも消費電力量が少ないスリープモードとの間で切り替え可能に構成された自動車用制御装置であって、
ハードウェア制御主体は、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 ECU 1 includes a microprocessor in which a CPU 3, a ROM 5, a RAM 4, and an input / output unit (I / O port) 2 are connected by a bus. In the present embodiment, the ECU 1 is configured as a body system ECU that controls the body system of the automobile, and FIG. 2 shows a schematic architecture thereof. The software installed on the hardware control entity composed of a microprocessor is a platform and an application for realizing a body function that operates on the platform. In addition, in order to distinguish a some application, it attached | subjected and shown with the symbol of 1-n. The platform is for giving a common operating environment to each application even when the base hardware is different. In addition to the basic software (OS) for the application, the platform is linked with the application and hardware. Although it is configured to include an interface program and the like, it is a well-known part conceptually and will not be described in detail.

アプリケーションは、車両利用者による車両各部の操作に係る機能であるボデー系機能を実現するものである。このボデー系機能とは、具体的には、ドア開閉に伴う制御、窓開閉に伴う制御、ライトスイッチのオン/オフに伴う制御、キーレスエントリ方式等に採用されるワイヤレスドアロック機構の制御、・・・といったものをいう。具体的には、以下のようなものを例示できる:
・運転席ドア、助手席ドア、後部右側座席ドア、後部左側座席ドア、ルーフなどのロック/ロック解除、パワーウィンドウ動作など。
・エアコン、カーオーディオ、カーナビゲーションシステムなどの電源動作など。
・ルームランプ、コックピットランプ、ヘッドライト、スモールランプ、ハザードランプ、テールランプなどのスイッチ点灯制御など。
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 application 1, 2,... Is stored in the ROM 5, and is executed by the CPU 3 on a work area corresponding to each application in the RAM 4. If it is not premised on version upgrade or addition / deletion of the applications 1, 2,..., The ROM 5 can be configured with a non-rewritable mask ROM. On the other hand, when version upgrade, addition / deletion, etc. are assumed, it is configured by an electrically rewritable ROM such as EEPROM 5 or flash ROM (of course, a mask ROM and an electrically rewritable ROM) Can be used in combination. In this type of rewritable ROM, the driving voltage at the time of reading and the driving voltage at the time of writing / erasing are set to different values, and unlike the RAM, writing / erasing cannot be performed with the same control voltage as at the time of reading.

本実施形態では、ボデー系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 body system ECU 1, and work areas 41, 42, 43, and 44 are respectively secured in the RAM 4 and predetermined resources are allocated.
(1) Light system application (work area 41): an operation control application of the headlight lighting unit 71 and the tail lamp lighting unit 72 (that is, the main light) that is lit in conjunction with the headlight lighting unit 71. Are set in the resource setting area 41R.
(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 headlight lighting unit 71;
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 work area 42.
(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 window drive unit 73.

(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 resource setting area 43R in the work area 43. This application is required when an electric door is installed.
(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 closing unit 74.

(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 portable device 164. Resources are set in the resource setting area 44R in the work area 44. This application is required when an electric door is installed.
(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 portable device 164 and outputs a control signal for opening / closing the lock (lock opening / closing request signal));
(Output system: Resource area for door lock mechanism)
A lock / unlock control output port for the door lock mechanism 75.

各リソース設定領域のメモリ構造は、例えば図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 / output unit 2, the specific information of the corresponding assigned application, and the setting of the port requested by the assigned application The state is stored in association with each other. When waking up from the sleep mode, it is necessary to rewrite from the port setting state in the sleep state to a setting state necessary for starting the application after wakeup (these are determined uniquely for each application). . The rewriting process is a resource setting process at the time of wake-up, and will be handled by a wake-up control program (which is a part of the sleep management control software 55 in FIG. 1; incorporated in the platform in FIG. 2). Then, the wake-up control program realizes the function realizing means of the resource setting means, the application starting means, and the sleep transition means described in the claims of the present invention by execution on the CPU 3.

上記ライト系アプリケーション以外の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 storage areas 52 to 54 in the ROM 5, and Corresponding work areas 42 to 44 of the RAM 4 are defined as the second type memory areas 4S and 5S.

ECU1は、上記のごとく外部からのスイッチやセンサからの入力信号等を参照しつつ、各アプリケーションの実行により、前述した各種ボデー系の制御対象機器(被制御要素)の動作制御を司る。また、ECU1は、全てのアプリケーションが動作終了し、次の動作開始のための待機状態になっている場合に、低消費電力モードであるスリープモード(ECUを構成する発振器を停止したスタンバイモードや、通常動作と異なる低周波数の発振器で動作するスロークロックモード、あるいは一定時間ごとにCPUを間欠的に動作させる間欠モードなど)へ移行する。その制御は図2のプラットフォーム部分が担うこととなる(図1のROM5に搭載されているが、記載は省略している)。   As described above, the ECU 1 controls the operation of the various types of body-based control target devices (controlled elements) by executing each application while referring to input signals from external switches and sensors. In addition, the ECU 1 is a sleep mode that is a low power consumption mode (standby mode in which an oscillator that constitutes the ECU is stopped, A slow clock mode in which a low frequency oscillator different from the normal operation is operated, or an intermittent mode in which the CPU is intermittently operated at regular intervals). The platform portion of FIG. 2 is responsible for the control (installed in the ROM 5 of FIG. 1 but not shown).

ECU1は、ネットワークバスを介して他のハードウェア制御主体(例えば他のECU)と接続されており、該ネットワークバスを介した通信により、リセット指示又はウェイクアップ要因を判断すると動作を開始する。図10は、その処理の概略を示すフローチャートであり、リセット指示があった場合はリセット時のシステム設定を行ない(S100)、その後、S120へ移行する。一方、ウェイクアップ要因を判断した場合、ウェイクアップ時のシステム設定を行ない(S110)、その後、S120へ移行する。S120では、各アプリケーションによる制御が行われる。ここでは、複数のアプリケーションの状態が判定され、所定条件成立時にスリープ時のシステム設定を行ない(S130)、その後、スリープする。この判定を含めたECU1のスリープ状態への移行、及びウェイクアップのための準備制御などを統括的に司るのが、図1のスリープ管理・制御ソフト81である。スリープ管理・制御ソフト81は、以下の各機能実現手段をCPU3上にて実現するものである。
・スリープ制御情報取得手段:複数のアプリケーションソフトウェアが要求するスリープ期間の開始時刻及び終了時刻を直接的又は間接的に特定するためのスリープ制御情報を、それら複数のアプリケーションソフトウェアから要求スリープ制御情報として個別に取得する;
・有効スリープ期間算出手段:取得された各アプリケーションソフトウェアの要求スリープ制御情報が各々規定する複数の要求スリープ期間に、共通に含まれる期間を有効スリープ期間として算出する;
・スリープ移行手段:算出された有効スリープ期間の開始時刻が到来することにより、複数のアプリケーションソフトウェアの実行を一元的に司るハードウェア制御主体をスリープモードに移行させ、該有効スリープ期間が経過することにより、ハードウェア制御主体をスリープモードから通常動作モードにウェイクアップさせる。
ソフトウェア構造上は、図1のプラットフォームの一部をなすものとして把握できる。その詳細については、後述する。
The ECU 1 is connected to another hardware control entity (for example, another ECU) via a network bus, and starts operation when a reset instruction or a wake-up factor is determined by communication via the network bus. FIG. 10 is a flowchart showing an outline of the processing. When there is a reset instruction, system setting at the time of resetting is performed (S100), and then the process proceeds to S120. On the other hand, if the wake-up factor is determined, the system setting at the time of wake-up is performed (S110), and then the process proceeds to S120. In S120, control by each application is performed. Here, the states of a plurality of applications are determined, the system setting during sleep is performed when a predetermined condition is satisfied (S130), and then sleep is performed. The sleep management / control software 81 shown in FIG. 1 performs overall control of the ECU 1 including the determination, such as transition to the sleep state and preparation control for wake-up. The sleep management / control software 81 implements the following function implementation means on the CPU 3.
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 applications 1, 2,... N are sequentially started by a scheduler formed as a part of the platform function is shown. At this time, the state management program in the platform collectively manages the state of a series of applications, and determines the control state and performs state transition processing. FIG. 4 is an explanatory diagram showing state transition processing by the state management program. The state management program defines three states as an application state, that is, a preparation state α, a control state β, and a control start monitoring state γ. For each series of startup processing by the scheduler shown in FIG. Based on the signal from the application, the state is changed as necessary.

すなわち、リセット指示によって動作を開始している場合、最初は準備状態αとし、一方、ウェイクアップ要因を判断して動作を開始している場合、最初は制御開始監視状態γとする。そして、準備状態αにある場合、各アプリケーションから準備完了の通知があると、次に制御状態βへ状態を遷移させる(記号(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 / control software 81 obtains sleep control information for directly or indirectly specifying the start time and end time of the requested sleep period that differs for each application software. If sleep control information is acquired from all applications, the state transitions to the control start monitoring state γ (symbol (2)).

各アプリケーションは、要求するスリープ期間をタイマー設定し、スリープとウェイクアップとを定期的に繰り返すようにプログラミングされている。例えば、キーレスエントリ方式が採用される場合、図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 ECU 1 is performed so that the standby period is the normal mode period and is repeated alternately with the sleep period.

他方、アプリケーションの一部又は全部は、上記のスリープサイクルとは無関係に、外部の操作信号(ライト点灯、ドアロック解除指令など)をトリガーとした割り込み処理指令(つまり、外部からの動作指令である)を受けた場合も、これをウェイクアップ要因として随時ウェイクアップするようになっている。そして、その後一定期間ウェイクアップ要因がなければ要求スリープ期間が再設定され、スリープに移行する。従って、各アプリケーションの要求スリープ期間の、時間軸上の相対関係は、上記の不定期ウェイクアップ要因により様々に変化する。さらに、タイマーにより規定される要求スリープ期間はアプリケーションによってまちまちである。本実施形態においては、取得された各アプリケーションソフトウェアの要求スリープ制御情報が各々規定する複数の要求スリープ期間に、共通に含まれる期間を有効スリープ期間として算出する。そして、制御開始監視状態γにおいては、有効スリープ期間の開始タイミングが到来すれば、ウェイクアップ用のスリープタイマー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 wakeup sleep timer 7T, and the state shifts to the sleep state. The sleep timer 7T transmits a wake-up signal when the effective sleep period expires, causing the ECU 1 to wake up.

要求スリープ制御情報は各アプリケーション中に記述されており、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 RAM 4. The sleep management / control software 81 can voluntarily access this address to obtain the requested sleep control information. However, when the memory address to which the application program is loaded is converted into a relative address, the sleep management / control software 81 The write address of the sleep control information becomes indefinite, and an extra step is required to specify the requested sleep control information (considering the write address from the application side to the sleep management / control software 81 may be considered). In order to eliminate such trouble, as shown in FIG. 1, the RAM 4 of the ECU 1 displays a registration memory commonly used in a plurality of application software (in the figure, “timer registration memory 82” is displayed as a subordinate concept). Each application software voluntarily writes its own sleep control information into this memory so that it can be registered (sleep control information registration). means). In this embodiment, the correspondence between IDs (numbers) of a plurality of timers and applications is determined in advance, and thereafter, the sleep start / end time set in the timer of the requested ID (application) (Request sleep control information) is read and used (that is, “stored in association with an application” means “stored in a state in which the correspondence with the application can be specified) And the application itself is not stored in the registration memory).

図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 / control software 81 in this case. The application number k is initialized in S51, and the requested sleep period Td is written from the application of number k in S52. Check if it was done. If written, the requested sleep start time tsk corresponding to the writing time is registered in S53.

この場合、スリープ管理・制御ソフト81には、図1に示すように管理タイマー81Tを設けておき、書き込みのあったときの管理タイマー81Tの値から時刻把握することができる。アプリケーションからは、実際にスリープに入りたい時刻に対して、一定時間Δtだけ前倒しで要求スリープ期間Tdkが書き込まれるようにしておき、書き込みのあった時刻をtsk’とすれば、tsk’+Δtを要求スリープ開始時刻tskとして登録することができる。要求スリープ期間Tdkは、例えば前回スリープからのウェイクアップ時に、次回スリープのために後述のスリープタイマー7Tにセットすることができる。この場合、Δtは、ウェイクアップ後の次回スリープの条件となる、外部要求ウェイクアップ要因(例えば、ドア開閉、ドアロック、ランプ点灯などのユーザーによる操作信号)の不発生継続時間(アイドリング期間)として定めることができる。   In this case, the sleep management / control software 81 is provided with a management timer 81T as shown in FIG. 1, and the time can be grasped from the value of the management timer 81T when writing is performed. From the application, the requested sleep period Tdk is written in advance by a predetermined time Δt with respect to the time when the user actually wants to go to sleep, and if the written time is tsk ′, tsk ′ + Δt is requested. It can be registered as the sleep start time tsk. The requested sleep period Tdk can be set in a sleep timer 7T described later for the next sleep, for example, at the time of wakeup from the previous sleep. In this case, Δt is a non-occurrence duration (idling period) of an external request wakeup factor (for example, an operation signal by a user such as door opening / closing, door lock, lamp lighting), which is a condition for the next sleep after wakeup. Can be determined.

要求スリープ開始時刻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 ECU 1 to sleep. For this purpose, the required sleep start time tsk is required to determine the start time (tsc) of the effective sleep period Tdc, and the required sleep end time twk is required to determine the end time (twc). is there. As shown by a one-dot chain line in FIG. 1, if the ECU 1 is provided with a clock 6 for grasping the absolute time, a registration method as shown in FIGS. That is, by reading the clock 6 on the application side, B registers the requested sleep start time tsk and the requested sleep period Tdk. In C, the requested sleep end time twk and the requested sleep period Tdk are registered. In D, the requested sleep start time tsk and the requested sleep period Tdk are registered.

有効スリープ期間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 sleep timer 7T (timer wake-up: in this embodiment, the wake-up signal generation unit 7 accordingly inputs a wake-up signal to the wake-up port INT. The other is wakeup (external request wakeup) caused by an internal processing interrupt caused by an operation request from the outside. The main point of the present invention is that these two types of wakeup factors are clearly detected and distinguished, and the flow of application activation processing after wakeup is also different.

図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 / taillight lighting units 71 and 72, power window driving unit) is detected. 73, the door opening / closing unit 74 or the door lock mechanism 75) is controlled by the corresponding application. That is, from the input state change of the first type input port, it is possible to easily determine whether or not there is an operation request for the application to which the port is assigned. If an effective state change appears in any of the first type input ports, the wakeup in this case is an external factor wakeup, and it is possible to grasp which application operation is requested from the type of the port. On the other hand, if an effective state change appears in the second type port, it can be understood that the wakeup in this case is a timer wakeup.

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 management timer 81T in FIG. It is confirmed whether the start time tsc has arrived. If it has arrived, the process proceeds to S109, where the effective sleep period Tdc is set in the sleep timer 7T of the wake-up signal generation unit 7 in FIG. 1, and the ECU 1 is shifted to the sleep state.

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 signal generation unit 7 of FIG. 1 receives the above processing flow, and when the effective sleep period Tdc elapses, the wakeup signal generation unit 7 enters the wakeup port INT that is one of the interrupt ports. A wakeup signal is input (that is, it functions as a timer wakeup control means). In response to this, the ECU 1 wakes up from the sleep mode by interrupt processing (the above timer 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 applications 1 to 3 having a relatively high operation frequency, the application 4 having a very low operation frequency is accidentally operated at all times, and the application 4 is added. When the re-arbitration becomes necessary, the sleep control information of the application 4 is added and the effective sleep period Tdc is updated as indicated by the broken line.

また、アプリケーション1〜3がバージョンアップ等により書き換えられた場合も、アプリケーション1〜3に要求スリープ制御情報の登録機能が備わっている限り、図9のスリープ制御情報の登録処理や、図11のウェイク制御処理のプログラムには何ら変化は生じず、図6の登録内容もバージョンアップに対応した形で自発的に書き換えられ、スリープ調停のためのプログラムの手直し等は一切不要である。この事情は、もともと存在していなかったアプリケーションが、機能追加により新たにROM5(図1)に書き加えられた場合においても同様である。   Further, when the applications 1 to 3 are rewritten due to version upgrade or the like, as long as the applications 1 to 3 have a registration function of the requested sleep control information, the sleep control information registration process of FIG. 9 and the wake of FIG. There is no change in the control processing program, and the registration content in FIG. 6 is also rewritten spontaneously in a form corresponding to the version upgrade, and there is no need to modify the program for sleep arbitration. This situation is the same even when an application that did not originally exist is newly written to the ROM 5 (FIG. 1) by adding a function.

次に、図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 ECU 1 in accordance with the effective sleep period Tdc calculated as an arbitration result of the requested sleep period. However, in the internal processing of each application, as shown in FIG. 1, the requested sleep control information is given by an individual timer having the requested sleep period Td as a set time. The application itself does not start unless the requested sleep end time specified by each timer arrives. This is shown in FIG. In this case, as shown in a to c, the activation timing of the application is not constant depending on the setting state of the effective sleep period. For example, when the requested sleep period deviates later in time with respect to the effective sleep period Tdc, even if there is no external operation request for the application, the timing of entering the next sleep by the delay of the activation However, there is a problem that leads to an increase in dark current. Therefore, as shown in d, only when there is no external operation request for any application after wakeup, an interrupt higher than the sleep timer is forcibly generated by the execution of software prepared separately, and the execution of the application is started It can be controlled to advance the time. Thereby, it is possible to reduce the dark current.

本発明の自動車用制御装置を構成するECUの一例を示すブロック図。The block diagram which shows an example of ECU which comprises the control apparatus for motor vehicles of this invention. 図1のシステムのアーキテクチャを示す模式図。FIG. 2 is a schematic diagram showing an architecture of the system of FIG. 1. スケジューラによる複数アプリケーションの実行サイクルの概念を模式的に示す図。The figure which shows typically the concept of the execution cycle of the some application by a scheduler. リセット及びスリープに係る状態遷移の模式図。The schematic diagram of the state transition which concerns on reset and sleep. 各アプリケーションの要求スリープ制御情報の登録形態を各種例示して示す図。The figure which shows various examples of the registration form of the request sleep control information of each application. タイマー登録メモリの内容を示す模式図。The schematic diagram which shows the content of the timer registration memory. スリープ調停の第一例を示す概念図。The conceptual diagram which shows the 1st example of sleep arbitration. 同じく第二例を示す概念図。The conceptual diagram which shows a 2nd example similarly. 要求スリープ制御情報の登録処理の一例を示すフローチャート。The flowchart which shows an example of the registration process of request | requirement sleep control information. リセット、スリープ及びウェイクアップに係る概略の処理流れを示すフローチャート。The flowchart which shows the general | schematic process flow which concerns on reset, sleep, and wakeup. 本発明の要部をなすウェイクアップ制御処理の一例を示すフローチャート。The flowchart which shows an example of the wake-up control process which makes the principal part of this invention. リソース設定領域のメモリ構造を示す概念図。The conceptual diagram which shows the memory structure of a resource setting area | region. 本発明の効果を従来例と比較して示すタイミング図。The timing diagram which shows the effect of this invention compared with a prior art example. 参考技術の概要を示すタイミング図。The timing diagram which shows the outline | summary of reference technology.

符号の説明Explanation of symbols

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記載の自動車用制御装置。 2. The automotive control device according to claim 1, wherein the application activation unit is configured to activate the second type application together with the first type application in a state where resource setting for the second type application is not performed. 前記ハードウェア制御主体がウェイクアップした後、前記複数のアプリケーションに対する外部からの作動要求が途絶してから一定のアイドリング期間が経過した場合に、該ハードウェア制御主体を前記スリープモードに移行させるスリープ移行手段を有するとともに、前記リソース設定手段は、前記アイドリング期間中に前記第二種アプリケーションのいずれに対しても前記外部からの作動要求がなされなかった場合に、該第二種アプリケーションへのリソース設定を行なわず、前記スリープ移行手段は該第二種アプリケーションへのリソース設定を行なわないまま前記スリープモードへ移行させるものである請求項1又は請求項2に記載の自動車用制御装置。 After the hardware control entity wakes up, a sleep transition that causes the hardware control entity to transition to the sleep mode when a certain idling period has elapsed since the external operation request for the plurality of applications is interrupted And the resource setting means performs resource setting for the second type application when no external operation request is made to any of the second type applications during the idling period. The vehicle control device according to claim 1 or 2, wherein the sleep shift means shifts to the sleep mode without setting a resource for the second type application. 前記リソース設定手段は、前記アイドリング期間中に前記第二種アプリケーションのいずれかに対して前記外部からの作動要求がなされた場合に、その作動要求のあった第二種アプリケーションについてのみ追加してリソース設定を行なう請求項3記載の自動車用制御装置。 The resource setting means adds a resource only for the second type application for which the operation request is made when an external operation request is made to any of the second type applications during the idling period. 4. The vehicle control device according to claim 3, wherein the setting is performed. 前記ハードウェア制御主体が前記スリープモードへ移行後、スリープタイマーが計測する予め定められたスリープ期間が経過した場合に、該ハードウェア制御主体をウェイクアップさせるタイマーウェイクアップ制御手段を有するとともに、
前記アプリケーション起動手段は、前記ウェイクアップの要因が、前記タイマーウェイクアップ制御手段によるウェイクアップ要求に基づいて発生する場合において、当該ウェイクアップに際して前記アプリケーションを、そのリソース設定を行なうことなく起動する請求項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:
前記ハードウェア制御主体がウェイクアップした後、前記複数のアプリケーションに対する外部からの作動要求が途絶してから一定のアイドリング期間が経過した場合には、該ハードウェア制御主体を前記スリープモードに移行させるとともに、前記アイドリング期間中に前記複数のアプリケーションのいずれに対しても前記外部からの作動要求がなされなかった場合に、該アプリケーションへのリソース設定を行なわないまま前記スリープモードへ移行させるスリープ移行手段を有する請求項5又は請求項6に記載の自動車用制御装置。 After the hardware control entity wakes up, when a certain idling period has elapsed since an external operation request for the plurality of applications is interrupted, the hardware control entity is shifted to the sleep mode. And a sleep transition means for transitioning to the sleep mode without performing resource setting for any of the plurality of applications during the idling period without any external operation request. The automobile control device according to claim 5 or 6. 前記アイドリング期間中に前記複数のアプリケーションのいずれかに対して前記外部からの作動要求がなされた場合に、その作動要求のあったアプリケーションについてリソース設定を行なうリソース設定手段を有する請求項7記載の自動車用制御装置。 8. The vehicle according to claim 7, further comprising resource setting means for setting a resource for an application for which an operation request has been made when an operation request from the outside is made to any of the plurality of applications during the idling period. Control device.
JP2004340098A 2004-11-25 2004-11-25 Automotive control device Expired - Fee Related JP4446169B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (5)

* Cited by examiner, † Cited by third party
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