JP2017091214A - Electronic controller - Google Patents

Electronic controller Download PDF

Info

Publication number
JP2017091214A
JP2017091214A JP2015220546A JP2015220546A JP2017091214A JP 2017091214 A JP2017091214 A JP 2017091214A JP 2015220546 A JP2015220546 A JP 2015220546A JP 2015220546 A JP2015220546 A JP 2015220546A JP 2017091214 A JP2017091214 A JP 2017091214A
Authority
JP
Japan
Prior art keywords
domain
processing
application
control application
electronic control
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
JP2015220546A
Other languages
Japanese (ja)
Other versions
JP6477430B2 (en
Inventor
敏彦 武田
Toshihiko Takeda
敏彦 武田
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 JP2015220546A priority Critical patent/JP6477430B2/en
Priority to DE102016222091.8A priority patent/DE102016222091A1/en
Publication of JP2017091214A publication Critical patent/JP2017091214A/en
Application granted granted Critical
Publication of JP6477430B2 publication Critical patent/JP6477430B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W20/00Control systems specially adapted for hybrid vehicles
    • B60W20/50Control strategies for responding to system failures, e.g. for fault diagnosis, failsafe operation or limp mode
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0001Details of the control system
    • B60W2050/0002Automatic control, details of type of controller or control system architecture
    • B60W2050/0004In digital systems, e.g. discrete-time systems involving sampling
    • B60W2050/0006Digital architecture hierarchy
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0062Adapting control system settings
    • B60W2050/0075Automatic parameter input, automatic initialising or calibrating means
    • B60W2050/009Priority selection
    • B60W2050/0094Priority selection of control units

Abstract

PROBLEM TO BE SOLVED: To provide an electronic controller that can conduct a control with another electronic controller and a control independently from other electronic controllers, appropriately and efficiently.SOLUTION: When a master ECU40 receives a processing request from cooperation control applications 41a and 41b and from a single control application 41c at the same time, it determines which processing to prioritize based on the contents of the processing, and ensures the resources of a micro-controller 48 required for executing processing in the order of descending priorities, and allocates the resources to the corresponding processing.SELECTED DRAWING: Figure 2

Description

本発明は、他の電子制御装置と連携した制御と、他の電子制御装置とは独立して、単独での制御とを行う電子制御装置に関する。   The present invention relates to an electronic control device that performs control in cooperation with another electronic control device and independent control independently of the other electronic control device.

例えば特許文献1には、車両に搭載された複数のECU間での機能連携のための情報を、各ECUの車両制御用アプリケーションが使用するよりも事前に共有可能とした車載用情報処理装置が記載されている。   For example, Patent Document 1 discloses an in-vehicle information processing apparatus that can share information for function cooperation between a plurality of ECUs mounted on a vehicle in advance rather than being used by a vehicle control application of each ECU. Have been described.

この車両用情報処理装置では、例えば、ナビゲーション用のアプリケーションプログラムを実行する第1ECUと、トランスミッション制御用のアプリケーションプログラムを実行する第2ECUとが、車載LANを介して接続される。   In this vehicle information processing apparatus, for example, a first ECU that executes an application program for navigation and a second ECU that executes an application program for transmission control are connected via an in-vehicle LAN.

第1ECUは、地図探索用のプログラムである地図探索用アプリケーションや、データベースに記憶されている地図情報を用いてナビゲーションに表示する地図データを描画する描画アプリケーションなどを実行する。第1ECUにおいて、地図探索用アプリケーションが実行されている場合に、車両の前方に険しく曲がりくねった坂道があることが検出されたとき、燃費向上のためには、道路の勾配、カーブに従って自動的にトランスミッションのシフト変更を適切に行うことが効果的となる。   The first ECU executes a map search application that is a map search program, a drawing application that draws map data to be displayed in navigation using map information stored in a database, and the like. When the first ECU detects that there is a steep and winding slope in front of the vehicle when the map search application is executed, the transmission is automatically performed according to the road gradient and curve in order to improve fuel efficiency. It is effective to appropriately change the shift.

このため、第2ECUは、機能連携のために第1ECU200とデータを共有する。具体的には、第2ECUがトランスミッション制御を実行する前に、予め第1ECUが第2ECUに地図データを送信しておく。これにより、第2ECUが、トランスミッション制御を行うとき、即座に詳細な地図情報を参照することが可能としている。   For this reason, 2nd ECU shares data with 1st ECU200 for function cooperation. Specifically, before the second ECU executes transmission control, the first ECU transmits map data to the second ECU in advance. Thus, the second ECU can immediately refer to detailed map information when performing transmission control.

特開2011−14033号公報JP 2011-14033 A

上述した例のように、第1ECUと第2ECUとが連携した制御を行う場合、例えば、第1ECUでは、第2ECUと連携した制御を行うための連携制御用アプリケーション(例えば、地図探索用アプリケーション)と、単独での制御を行うための単独制御用アプリケーション(例えば、描画アプリケーション)とを同時期に実行することが必要となることがある。   When performing control in which the first ECU and the second ECU cooperate with each other as in the example described above, for example, in the first ECU, a cooperation control application (for example, a map search application) for performing control in cooperation with the second ECU; In some cases, it is necessary to execute a single control application (for example, a drawing application) for performing single control at the same time.

この際、連携制御用アプリケーションに含まれる処理であるか、それとも単独制御用アプリケーションに含まれる処理であるかをなんら考慮することなく、第1のECUが、単に、それぞれの処理を行うことが必要となった時期に応じて順番に処理することとすると、それぞれの処理を適切に処理できない状況が生じたり、また、効率的な処理を行い得ない虞がある。   At this time, it is necessary for the first ECU to simply perform each process without considering whether the process is included in the cooperative control application or the process included in the single control application. If the processing is performed in order according to the time when it becomes, there is a possibility that the respective processing may not be appropriately processed or that efficient processing cannot be performed.

本発明は、上述した点に鑑みてなされたものであり、他の電子制御装置と連携した制御と、他の電子制御装置とは独立して単独での制御とを行う場合に、それぞれの制御処理を適切かつ効率的に行い得る電子制御装置を提供することを目的とする。   The present invention has been made in view of the above-described points. When performing control in cooperation with another electronic control device and independent control independently of the other electronic control device, each control is performed. An object of the present invention is to provide an electronic control device that can perform processing appropriately and efficiently.

上記目的を達成するために、本発明による電子制御装置は、
アプリケーションソフトを記憶する記憶部(41)と、
そのアプリケーションソフトには、他の電子制御装置と連携した制御を行うための連携制御用アプリケーション(41a、41b)と、他の電子制御装置とは独立して、単独で制御を行うための単独制御用アプリケーション(41c)とが含まれており、
連携制御用アプリケーションに含まれる処理及び単独制御用アプリケーションに含まれる処理をそれぞれ実行するものであり、リソースとして、少なくともマイクロプロセッシングユニットとキャッシュメモリとを備えたマイクロコントローラ(48)と、
連携制御用アプリケーションに含まれる処理と、単独制御用アプリケーションに含まれる処理とを同時期に実行する必要が生じたとき、それぞれの処理の内容に基づき、いずれを優先するべきかを決定する決定部(S120)と、
決定部によって決定された優先順位に従い、優先順位が高い処理から、その処理の実行に必要なリソースを確保して、該当する処理に割り付けるリソース割付部(S130)と、を備える。
In order to achieve the above object, an electronic control device according to the present invention provides:
A storage unit (41) for storing application software;
The application software includes a cooperative control application (41a, 41b) for performing control in cooperation with another electronic control device, and a single control for performing control independently of the other electronic control device. Application (41c) is included,
A microcontroller (48) that executes processing included in the cooperative control application and processing included in the single control application, respectively, and includes, as resources, at least a microprocessing unit and a cache memory;
When it becomes necessary to execute the process included in the application for cooperative control and the process included in the single control application at the same time, the decision unit determines which should be prioritized based on the contents of each process (S120),
According to the priority determined by the determination unit, a resource allocation unit (S130) that secures resources necessary for execution of the process from a process with a higher priority and allocates it to the corresponding process.

連携制御用アプリケーションと、単独制御用アプリケーションとは、互いに依存関係にはなく、一方の処理の終了後に他方の処理を開始する必要はない。換言すれば、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とは、マイクロコントローラにおいて、並行処理を行うことが可能である。ただし、マイクロコントローラの処理能力の制約から、常に、連携用制御用アプリケーションの処理と、単独制御用アプリケーションの処理とを並行処理することができるとは限らない。   The cooperative control application and the single control application are not dependent on each other, and it is not necessary to start the other process after the end of one process. In other words, the processing of the cooperative control application and the processing of the single control application can be performed in parallel in the microcontroller. However, the processing of the cooperation control application and the processing of the single control application cannot always be performed in parallel due to restrictions on the processing capability of the microcontroller.

そこで、本発明の電子制御装置では、それぞれの処理内容に基づき、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とのいずれを優先すべきか決定する決定部と、決定部によって決定された優先順位に従い、優先順位が高い処理から、その処理の実行に必要なリソースを確保して、該当する処理に割り付けるリソース割付部とを設けた。   Therefore, in the electronic control device of the present invention, the determination unit that determines which of the cooperative control application process and the single control application process should be prioritized is determined by the determination unit based on the processing contents. In accordance with the priority order, a resource allocation unit is provided that secures resources necessary for executing the process from the process with the highest priority order and allocates the resource to the corresponding process.

このように構成したため、同時期に実行する処理のそれぞれの負荷が小さければ、それぞれの処理に対してリソースを確保して割り付けることができ、各処理を並行処理することができる。従って、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とを効率的に実行することができる。一方、同時期に実行する処理の負荷の合計が、マイクロコントローラの処理能力を超え、並行処理することができない場合には、優先順位の高い処理から順に、リソースを確保して割り付けを行っているので、より早期に処理する必要性の高い処理から確実に実行することができる。このように、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とのいずれかしか実行できない状況において、適切な順序で、処理を実行することが可能となる。   Since it comprised in this way, if each load of the process performed simultaneously is small, a resource can be ensured and allocated with respect to each process, and each process can be processed in parallel. Accordingly, it is possible to efficiently execute the processing of the cooperation control application and the processing of the single control application. On the other hand, if the total processing load executed at the same time exceeds the processing capacity of the microcontroller and parallel processing cannot be performed, resources are allocated and allocated in order from the highest priority processing. Therefore, it is possible to surely execute the processing that is highly necessary to be processed earlier. As described above, in a situation where only one of the process of the cooperative control application and the process of the single control application can be executed, the processes can be executed in an appropriate order.

上記括弧内の参照番号は、本発明の理解を容易にすべく、後述する実施形態における具体的な構成との対応関係の一例を示すものにすぎず、なんら本発明の範囲を制限することを意図したものではない。   The reference numerals in the parentheses merely show an example of a correspondence relationship with a specific configuration in an embodiment described later in order to facilitate understanding of the present invention, and are intended to limit the scope of the present invention. Not intended.

また、上述した特徴以外の、特許請求の範囲の各請求項に記載した技術的特徴に関しては、後述する実施形態の説明及び添付図面から明らかになる。   Further, the technical features described in the claims of the claims other than the features described above will become apparent from the description of embodiments and the accompanying drawings described later.

第1実施形態に係る制御システムの構成を示す構成図である。It is a block diagram which shows the structure of the control system which concerns on 1st Embodiment. マスタECU及びスレーブECUのソフトウエア構造と、マスタECUとスレーブECU間の接続関係を示す図である。It is a figure which shows the software structure of master ECU and slave ECU, and the connection relation between master ECU and slave ECU. マスタECUにおけるドメイン抽象化層の役割を説明するための図である。It is a figure for demonstrating the role of the domain abstraction layer in master ECU. ドメイン抽象化層において実行される処理を示すフローチャートである。It is a flowchart which shows the process performed in a domain abstraction layer. 図4のフローチャートにおける、優先順位の決定処理を詳細に示すフローチャートである。5 is a flowchart showing in detail a priority order determination process in the flowchart of FIG. 4. 他の実施形態に係る電子制御装置のソフトウエア構造を示す図である。It is a figure which shows the software structure of the electronic control apparatus which concerns on other embodiment.

以下、本発明の実施形態に係る電子制御装置について、図面を参照しつつ説明する。なお、以下には、本実施形態に係る電子制御装置を車両の制御システムに適用した例について説明する。   Hereinafter, an electronic control device according to an embodiment of the present invention will be described with reference to the drawings. Hereinafter, an example in which the electronic control device according to the present embodiment is applied to a vehicle control system will be described.

車両の制御システムは、例えば、図1に示すように、走行駆動源として、エンジンと電動モータ(モータジェネレータ)とを有するハイブリッド車両に適用され、このハイブリッド車両に搭載された各種の車載装置を制御するために用いられる。しかし、制御システムは、ハイブリッド車両における車載装置の制御に適用されることに限られる訳ではなく、エンジンのみを有する通常の車両や、電動モータのみを有する電動車両の車載装置の制御に適用されても良い。   For example, as shown in FIG. 1, the vehicle control system is applied to a hybrid vehicle having an engine and an electric motor (motor generator) as a travel drive source, and controls various in-vehicle devices mounted on the hybrid vehicle. Used to do. However, the control system is not limited to being applied to control of an in-vehicle device in a hybrid vehicle, but is applied to control of an in-vehicle device of an ordinary vehicle having only an engine or an electric vehicle having only an electric motor. Also good.

図1は、上述したハイブリッド車両における複数の車載装置を制御するために、制御システム1が有する各種機能の一例を機能ブロック図として表したものである。ただし、図1には、制御システム1が有する機能の全てが示されている訳ではない。これは、説明の便宜のため、図1には、本実施形態に係る制御システム1の構成の一例しか示していないためである。   FIG. 1 is a functional block diagram illustrating an example of various functions of the control system 1 in order to control a plurality of in-vehicle devices in the hybrid vehicle described above. However, FIG. 1 does not show all the functions of the control system 1. This is because, for convenience of explanation, FIG. 1 shows only an example of the configuration of the control system 1 according to the present embodiment.

図1において、制御システム1は、車載装置としての冷却機構30,エンジン31,トランスミッション(TM)32、モータジェネレータ(MG)33、ブレーキ装置34、及びステアリング装置35などを制御するための機能を有する。しかしながら、上述したように、制御システム1は、さらに、例えば、サスペンション、高圧バッテリ、エアコン装置などのその他の車載装置を制御するための機能を有していても良い。   In FIG. 1, the control system 1 has a function for controlling a cooling mechanism 30, an engine 31, a transmission (TM) 32, a motor generator (MG) 33, a brake device 34, a steering device 35, and the like as in-vehicle devices. . However, as described above, the control system 1 may further have a function for controlling other in-vehicle devices such as a suspension, a high voltage battery, and an air conditioner.

図1に示すように、制御システム1は、各種の車載装置30〜35を制御するための機能が予め複数の論理ブロック(機能ブロック)12〜16、22〜26に区分けされ、それら複数の論理ブロック12〜16、22〜26間の連結関係を規定することによって構成されている。すなわち、制御システム1における各種の車載装置30〜35を制御するための論理構造が、論理ブロック12〜16、22〜26と、それら論理ブロック12〜16、22〜26間の連結関係によって規定されている。そして、制御システム1は、複数の論理ブロック12〜16、22〜26が、規定された連結関係に従って連携して動作することにより、各種の車載装置30〜35を制御する。   As shown in FIG. 1, in the control system 1, functions for controlling various on-vehicle devices 30 to 35 are divided into a plurality of logical blocks (functional blocks) 12 to 16 and 22 to 26 in advance, and the plurality of logics are controlled. It is configured by defining the connection relationship between the blocks 12-16 and 22-26. That is, the logical structure for controlling various vehicle-mounted devices 30 to 35 in the control system 1 is defined by the logical blocks 12 to 16 and 22 to 26 and the connection relationship between the logical blocks 12 to 16 and 22 to 26. ing. And the control system 1 controls the various vehicle-mounted apparatuses 30-35, when several logic blocks 12-16, 22-26 operate | move in cooperation according to the defined connection relation.

なお、図1には示していないが、各論理ブロック12〜16、22〜26は、少なくとも1つ、通常は多数の制御ブロックを有している。各論理ブロック12〜16、22〜26は、それら多数の制御ブロックにおける演算処理を適宜組み合わせることにより、それぞれの機能(役割)を発揮する。   Although not shown in FIG. 1, each of the logical blocks 12 to 16 and 22 to 26 has at least one, usually a large number of control blocks. Each logic block 12-16, 22-26 exhibits each function (role) by combining suitably the arithmetic processing in these many control blocks.

例えば、論理ブロックとしてのエンジン制御部24は、エンジン31の運転状態を検出すべく、各種のセンサからのセンサ信号を入力して、論理ブロック内で取り扱うことができる信号に変換する制御ブロックを有する。また、センサ信号から把握されるエンジン31の運転状態から現状の発生トルクを算出するとともに、上位の論理ブロック(パワートレインコーディネータ(PTC)22)から指示された指令トルクと差異がある場合に、その差異をなくすための目標とするエンジン運転状態を算出する制御ブロックを有する。さらに、目標エンジン運転状態を達成するためのスロットルバルブ開度、燃料噴射量と燃料噴射時期、及び点火時期を算出する制御ブロックを有する。ただし、これらは単なる例示であって、エンジン制御部24は、その機能を発揮するために必要な、その他の演算処理を行う制御ブロックを有する場合もあり得る。また、例示された制御ブロックを含め、エンジン制御部24内の制御ブロックは、適宜、統合されたり、逆に、細分化されたりすることが可能なものである。   For example, the engine control unit 24 as a logic block has a control block that inputs sensor signals from various sensors and converts them into signals that can be handled in the logic block in order to detect the operating state of the engine 31. . Further, the current generated torque is calculated from the operation state of the engine 31 grasped from the sensor signal, and when there is a difference from the command torque instructed from the upper logical block (powertrain coordinator (PTC) 22), A control block for calculating a target engine operating state for eliminating the difference is provided. Furthermore, a control block for calculating a throttle valve opening, a fuel injection amount and fuel injection timing, and an ignition timing for achieving the target engine operating state is provided. However, these are merely examples, and the engine control unit 24 may include a control block that performs other arithmetic processing necessary to exhibit the function. In addition, the control blocks in the engine control unit 24 including the exemplified control blocks can be appropriately integrated or, on the contrary, can be subdivided.

制御システム1は、実際には、各論理ブロック12〜16、22〜26を、プログラムやデータベースなどの制御ソフトとして、複数の電子制御装置に振り分けて実装することにより具現化される。この場合、複数の電子制御装置は、論理ブロック12〜16、22〜26の連結関係を維持できるように、個別の通信線を介して接続されたり、各電子制御装置が共通のネットワークに接続され、連結関係に従う所望の電子制御装置同士が通信可能に構成されたりする。なお、必ずしも各論理ブロック12〜16、22〜26をそれぞれ別個の電子制御装置に実装する必要はなく、幾つかの論理ブロックを共通の電子制御装置に実装しても良い。   The control system 1 is actually realized by distributing and mounting each of the logical blocks 12 to 16 and 22 to 26 as a control software such as a program or a database on a plurality of electronic control devices. In this case, the plurality of electronic control devices are connected via individual communication lines, or each electronic control device is connected to a common network so that the connection relationship of the logic blocks 12 to 16 and 22 to 26 can be maintained. The desired electronic control devices according to the connection relationship may be configured to communicate with each other. Note that it is not always necessary to mount each of the logic blocks 12 to 16 and 22 to 26 on separate electronic control devices, and some logic blocks may be mounted on a common electronic control device.

本実施形態に係る制御システム1は、複数の車載装置30〜35の機能に応じて予め複数のドメインに区分けされている。別の表現をすれば、各論理ブロック12〜16、22〜26が果たすべき機能のまとまりに応じて、予め複数のドメイン10、20に区分けされている。   The control system 1 according to the present embodiment is divided into a plurality of domains in advance according to the functions of the plurality of in-vehicle devices 30 to 35. In other words, the logical blocks 12 to 16 and 22 to 26 are divided into a plurality of domains 10 and 20 in advance according to a group of functions to be performed.

複数の車載装置30〜35は、いずれかのドメイン10、20に割り振られる。そして、割り振られたドメイン10、20に属するドメイン制御部11、21が、各車載装置30〜35の制御目標値を算出して、車載装置30に直接出力したり、車載装置31〜35の制御を司る車載装置制御部15、16、24〜26へ出力したりする。なお、図1に示すように、各ドメイン制御部11、21は、少なくとも1つの論理ブロックから構成される。   The plurality of in-vehicle devices 30 to 35 are allocated to any one of the domains 10 and 20. Then, the domain control units 11 and 21 belonging to the allocated domains 10 and 20 calculate control target values of the in-vehicle devices 30 to 35 and directly output them to the in-vehicle devices 30 or control the in-vehicle devices 31 to 35. Output to the in-vehicle device control units 15, 16, 24 to 26. As shown in FIG. 1, each domain control unit 11, 21 is composed of at least one logical block.

具体的には、図1に示す例では、制御システム1は、運動ドメイン10とエネルギードメイン20とに区分けされている。そして、運動ドメイン10には、前後方向及び横方向における車両の挙動を制御する機能を担う運動ドメイン制御部11が設けられている。また、エネルギードメイン20には、車両を加速させたり、減速させたり、あるいは速度を一定に保つように、車両の動力を制御する機能を担うエネルギードメイン制御部21が設けられている。   Specifically, in the example illustrated in FIG. 1, the control system 1 is divided into a motion domain 10 and an energy domain 20. The motion domain 10 is provided with a motion domain control unit 11 having a function of controlling the behavior of the vehicle in the front-rear direction and the lateral direction. The energy domain 20 is provided with an energy domain control unit 21 that has a function of controlling the power of the vehicle so as to accelerate or decelerate the vehicle or keep the speed constant.

また、本実施形態に係る制御システム1では、図1に示すように、各ドメイン制御部11、21の下に、対応するドメイン制御部11、21からの指令(制御目標値)に従い、各車載装置31〜35の動作状態を制御する車載装置制御部15、16、24〜26が設けられている。これら車載装置制御部15、16、24〜26は、各車載装置31〜35の動作状態をドメイン制御部11、21からの制御目標値に近づけるための制御信号を生成し、各車載装置31〜35に出力する。   Further, in the control system 1 according to the present embodiment, as shown in FIG. 1, each vehicle-mounted vehicle is placed under each domain control unit 11, 21 according to a command (control target value) from the corresponding domain control unit 11, 21. Car-mounted device control units 15, 16, and 24 to 26 that control the operation states of the devices 31 to 35 are provided. These in-vehicle device control units 15, 16, 24 to 26 generate control signals for bringing the operation state of each of the in-vehicle devices 31 to 35 close to the control target value from the domain control units 11, 21. 35.

具体的には、図1に示す例では、運動ドメイン制御部11の下に、ブレーキ装置34を制御するブレーキ制御部15及びステアリング装置35を制御するステアリング制御部16が設けられている。また、エネルギードメイン制御部21の下に、エンジン31を制御するエンジン制御部24、トランスミッション32を制御するトランスミッション(TM)制御部25、及びモータジェネレータ33を制御するMG制御部26が設けられている。   Specifically, in the example illustrated in FIG. 1, a brake control unit 15 that controls the brake device 34 and a steering control unit 16 that controls the steering device 35 are provided below the motion domain control unit 11. Further, an engine control unit 24 that controls the engine 31, a transmission (TM) control unit 25 that controls the transmission 32, and an MG control unit 26 that controls the motor generator 33 are provided below the energy domain control unit 21. .

なお、モータジェネレータ33は、車両の減速時などに回生エネルギーを発生する。MG制御部26の上位の論理ブロックであるモータジェネレータコーディネータ(MGC)23は、その回生エネルギーの生成も管理する。このエネルギーは、インバータによってDC変換され、図示しない高圧バッテリに蓄電される。   The motor generator 33 generates regenerative energy when the vehicle is decelerated. A motor generator coordinator (MGC) 23 which is a logical block higher than the MG control unit 26 also manages the generation of the regenerative energy. This energy is DC converted by an inverter and stored in a high voltage battery (not shown).

ここで、図1に論理ブロック12〜16、22〜26として例示した、制御システム1が有する各種の機能について詳しく説明する。   Here, various functions of the control system 1 exemplified as the logic blocks 12 to 16 and 22 to 26 in FIG. 1 will be described in detail.

制御システム1には、各論理ブロック12〜16、22〜26が与えられた機能を発揮するために必要な各種の情報が入力される。例えば、図示しない各種のセンサによって、ハイブリッド車両の運転のため、運転者によって操作される各種の操作部(アクセルペダル、ブレーキペダル、シフトレバー、ステアリングホイールなど)の操作が検出され、その操作検出信号が制御システム1に入力される。また、車両の走行状態(例えば、速度、加速度、ヨーレートなど)や、各種の車載装置30〜35の動作状態(例えば、エンジン温度、エンジン回転数、トランスミッション変速比、インバータ温度、モータ回転数、ブレーキ油圧、操舵角など)を検出するセンサからの動作検出信号も、制御システム1に入力される。   Various types of information necessary for the logical blocks 12 to 16 and 22 to 26 to perform their assigned functions are input to the control system 1. For example, various sensors (not shown) detect various operation parts (accelerator pedal, brake pedal, shift lever, steering wheel, etc.) operated by the driver for driving the hybrid vehicle, and the operation detection signal Is input to the control system 1. Further, the running state of the vehicle (for example, speed, acceleration, yaw rate, etc.) and the operating state of various on-vehicle devices 30 to 35 (for example, engine temperature, engine speed, transmission gear ratio, inverter temperature, motor speed, brake) An operation detection signal from a sensor that detects a hydraulic pressure, a steering angle, and the like is also input to the control system 1.

上述した各種の信号は、制御システム1の各ドメイン制御部11、21や車載装置制御部15、16、24〜26に与えられる。   The various signals described above are given to the domain controllers 11 and 21 and the in-vehicle device controllers 15, 16, and 24 to 26 of the control system 1.

例えば、運動ドメイン制御部11には、運転者による各種の操作部の操作を示す操作検出信号、及び車両の走行状態を検出するセンサからの動作検出信号が入力される。そして、運動ドメイン制御部11は、原則として、車両が運転者による操作部の操作に応じた挙動を示すように、ブレーキ装置34及びステアリング装置35の制御目標値を算出する。
具体的には、車両挙動制御部12が、車両の挙動を安定させつつ、運転者の操作に対応するように車両の挙動を制御すべく、前後挙動制御部13に対して前後方向の目標加速度(目標減速度)を与えるとともに、左右挙動制御部14に対して左右方向の目標加速度を与える。前後挙動制御部13は、与えられた前後方向の目標加速度(目標減速度)を実現すべく、エネルギードメイン制御部21のパワートレインコーディネータ(PTC)22に対して目標駆動トルク(加速トルク又は制動トルク)を出力するとともに、ブレーキ制御部15に対して、ブレーキ装置34の制御目標値である目標制動トルクを出力する。また、左右挙動制御部14は、与えられた左右方向の目標加速度を実現すべく、ステアリング制御部16に対して、ステアリング装置35の制御目標値である目標アシストトルクを出力する。
For example, the motion domain control unit 11 receives an operation detection signal indicating operation of various operation units by the driver and an operation detection signal from a sensor that detects the running state of the vehicle. In principle, the motion domain control unit 11 calculates the control target values of the brake device 34 and the steering device 35 so that the vehicle behaves according to the operation of the operation unit by the driver.
More specifically, the vehicle behavior control unit 12 stabilizes the behavior of the vehicle and controls the vehicle behavior so as to respond to the driver's operation. (Target deceleration) is given, and a left-right target acceleration is given to the left-right behavior control unit 14. The front / rear behavior control unit 13 applies a target drive torque (acceleration torque or braking torque) to the power train coordinator (PTC) 22 of the energy domain control unit 21 in order to realize a given target acceleration (target deceleration) in the front / rear direction. ) And a target braking torque that is a control target value of the brake device 34 is output to the brake control unit 15. Further, the left / right behavior control unit 14 outputs a target assist torque, which is a control target value of the steering device 35, to the steering control unit 16 in order to realize the given target acceleration in the left / right direction.

なお、例えば、運動ドメイン制御部11に、車両の走行車線を区画する白線の認識情報や、先行車両や障害物の情報など、車両の外部環境に関する情報を与えるようにしてもよい。これにより、運動ドメイン制御部11において、例えば、白線によって区画される走行車線を逸脱しないように、ステアリング装置35のアシスト力を調整する(レーンキープコントロール)ように制御目標値を算出することが可能となる。また、運動ドメイン制御部11にて、例えば、先行車両や障害物との衝突を避けるように、ブレーキ装置34やステアリング装置35の制御目標値を算出することが可能となる。   For example, the motion domain control unit 11 may be provided with information related to the external environment of the vehicle, such as recognition information of a white line that divides the traveling lane of the vehicle, information on a preceding vehicle, and an obstacle. Thereby, in the motion domain control unit 11, for example, it is possible to calculate the control target value so as to adjust the assist force of the steering device 35 (lane keep control) so as not to deviate from the traveling lane defined by the white line. It becomes. In addition, the motion domain control unit 11 can calculate the control target values of the brake device 34 and the steering device 35 so as to avoid a collision with a preceding vehicle or an obstacle, for example.

また、エネルギードメイン制御部21には、例えば、図示しない高圧バッテリの電圧や電流を検出するセンサ信号や、車両の走行状態を示すセンサ信号などが入力される。エネルギードメイン制御部21のMGC23は、それらのセンサ信号に基づいて、高圧バッテリの蓄電量を算出する。さらに、MGC23は、主として、高圧バッテリの蓄電量に基づいて、モータジェネレータ33が発生可能な最大MGトルクを算出して、PTC22に与える。PTC22は、運動ドメイン制御部11から与えられた目標駆動トルク(加速トルク)を最も効率良く実現するために、モータジェネレータ33が発生可能な最大MGトルクや、車両の走行状態を考慮しつつ、エンジン31が発生すべき目標エンジントルク、トランスミッション32が実現すべき目標変速比、及びモータジェネレータ33が発生すべき目標MGトルクを算出する。算出された目標エンジントルク、目標変速比、及び目標MGトルクは、それぞれ、制御目標値として、エンジン制御部24、TM制御部25、及びMGC23に与えられる。また、TM制御部25に対しては、クラッチの動作に関する制御目標値(クラッチの接続開始時期や、クラッチの接続完了までの時間など)も与えられる。   In addition, for example, a sensor signal for detecting a voltage or current of a high voltage battery (not shown), a sensor signal indicating a running state of the vehicle, or the like is input to the energy domain control unit 21. The MGC 23 of the energy domain control unit 21 calculates the charged amount of the high voltage battery based on those sensor signals. Further, the MGC 23 calculates the maximum MG torque that can be generated by the motor generator 33 mainly based on the amount of charge stored in the high-voltage battery, and gives it to the PTC 22. The PTC 22 considers the maximum MG torque that can be generated by the motor generator 33 and the running state of the vehicle in order to achieve the target drive torque (acceleration torque) given from the motion domain control unit 11 most efficiently. A target engine torque to be generated by 31, a target gear ratio to be realized by the transmission 32, and a target MG torque to be generated by the motor generator 33 are calculated. The calculated target engine torque, target gear ratio, and target MG torque are respectively supplied to the engine control unit 24, the TM control unit 25, and the MGC 23 as control target values. The TM control unit 25 is also given control target values related to the operation of the clutch (clutch connection start timing, time until clutch connection completion, etc.).

さらに、エネルギードメイン制御部21のMGC23は、車両の減速時等において、主として、高圧バッテリの蓄電量に基づいてモータジェネレータ33が発生可能な回生電力量を算出する。この回生電力量に対応する回生制動トルクに関する情報は、MGC23から、PTC22を介して運動ドメイン制御部11の前後挙動制御部13に与えられる。   Further, the MGC 23 of the energy domain control unit 21 calculates the amount of regenerative power that can be generated by the motor generator 33 mainly based on the amount of power stored in the high-voltage battery when the vehicle is decelerated. Information on the regenerative braking torque corresponding to the regenerative electric energy is given from the MGC 23 to the front / rear behavior control unit 13 of the motion domain control unit 11 via the PTC 22.

前後挙動制御部13は、車両挙動制御部12から目標減速度が与えられた場合、その目標減速度を実現するための目標制動トルクを算出する。そして、モータジェネレータ33が回生制動トルクを発生可能である場合には、極力、その回生制動トルクを活用するように、ブレーキ装置34による目標制動トルクと、回生ブレーキによる目標回生制動トルクとを定める。この目標回生制動トルクは、制御目標値として、PTC22を介して、エネルギードメイン制御部21のMGC23に与えられる。   When the target deceleration is given from the vehicle behavior control unit 12, the front / rear behavior control unit 13 calculates a target braking torque for realizing the target deceleration. When the motor generator 33 can generate the regenerative braking torque, the target braking torque by the brake device 34 and the target regenerative braking torque by the regenerative braking are determined so as to utilize the regenerative braking torque as much as possible. This target regenerative braking torque is given to the MGC 23 of the energy domain control unit 21 via the PTC 22 as a control target value.

また、PTC22は、上述した運動ドメイン10における前後挙動制御部13と協調したドメイン間連携制御、及び、MGC23、エンジン制御部24、並びにTM制御部25と協調したドメイン内連携制御に加え、他の論理ブロック(電子制御装置)とは独立した単独制御である、冷却機構30を用いた温度調節制御を実行する。   In addition to the inter-domain linkage control coordinated with the front-rear behavior control unit 13 in the motion domain 10 and the intra-domain linkage control coordinated with the MGC 23, the engine control unit 24, and the TM control unit 25, the PTC 22 The temperature adjustment control using the cooling mechanism 30, which is independent control independent of the logic block (electronic control unit), is executed.

冷却機構30は、ハイブリッド車両において、エンジン31の冷却系と、MG33のインバータの冷却系とを共通化し、同じ冷却水が、エンジン31及びMG33のインバータとを循環するように構成されたものである。冷却機構30は、温められた冷却水を空気と熱交換して冷却するためのラジエータの他、冷却水を循環させるためのポンプ、冷却水の温度を検出する水温センサ、冷却水の循環経路を切り換える3方弁などの流路切換弁などを備える。   In the hybrid vehicle, the cooling mechanism 30 is configured so that the cooling system of the engine 31 and the cooling system of the inverter of the MG 33 are shared, and the same cooling water is circulated through the engine 31 and the inverter of the MG 33. . The cooling mechanism 30 includes a radiator for cooling the heated cooling water by exchanging heat with air, a pump for circulating the cooling water, a water temperature sensor for detecting the temperature of the cooling water, and a circulation path for the cooling water. A flow path switching valve such as a three-way valve for switching is provided.

PTC22には、例えば、冷却水温度、エンジン温度及びインバータ温度が入力される。そして、PTC22が、冷却水温度、エンジン温度及びインバータ温度に基づき、冷却機構30のポンプ及び流路切換弁の制御目標値を算出するとともに、それぞれの動作状態が制御目標値に近づくように、ポンプ及び流路切り換え弁を制御する。具体的には、PTC22は、エンジン31及びMG33のインバータの温度調節(冷却等)の必要性に応じて、冷却水がいずれも循環しない状態、冷却水がエンジン31だけを循環する状態、冷却水がMG33のインバータだけを循環する状態、及び冷却水がエンジン31及びインバータの双方を循環する状態のいずれかに切り換える。また、PTC22は、冷却水温度、エンジン温度及びインバータ温度に基づいて、ポンプの回転数により冷却水の流量を制御する。これにより、PTC22は、エンジン31及び/又はインバータの発熱温度を適切に調節することが可能となる。   For example, the coolant temperature, the engine temperature, and the inverter temperature are input to the PTC 22. Then, the PTC 22 calculates the control target values of the pump of the cooling mechanism 30 and the flow path switching valve based on the coolant temperature, the engine temperature, and the inverter temperature, and the pumps so that each operation state approaches the control target value. And controls the flow path switching valve. Specifically, the PTC 22 is a state in which none of the cooling water circulates, a state in which the cooling water circulates only in the engine 31, or the cooling water, depending on the necessity of temperature adjustment (cooling or the like) of the inverter of the engine 31 and the MG 33 Is switched to either the state in which only the inverter of MG33 is circulated, or the state in which cooling water circulates both the engine 31 and the inverter. Moreover, PTC22 controls the flow volume of a cooling water with the rotation speed of a pump based on a cooling water temperature, an engine temperature, and an inverter temperature. As a result, the PTC 22 can appropriately adjust the heat generation temperature of the engine 31 and / or the inverter.

ブレーキ制御部15は、前後挙動制御部13から与えられたブレーキ装置34の制御目標値である目標制動トルクに従い、ブレーキ装置34を制御する。より具体的には、ブレーキ制御部15は、ブレーキ装置34が目標制動トルクを発生するようにブレーキフルード圧を制御するための制御信号を出力する。また、ステアリング制御部16も、ステアリング装置35が左右挙動制御部14から与えられた目標アシストトルクを発生するように制御信号を出力して、ステアリング装置35によるアシストトルクを制御する。   The brake control unit 15 controls the brake device 34 according to a target braking torque that is a control target value of the brake device 34 given from the front-rear behavior control unit 13. More specifically, the brake control unit 15 outputs a control signal for controlling the brake fluid pressure so that the brake device 34 generates the target braking torque. The steering control unit 16 also outputs a control signal so that the steering device 35 generates the target assist torque given from the left / right behavior control unit 14 to control the assist torque by the steering device 35.

エンジン制御部24は、PTC22から与えられた目標エンジントルクを実現するための制御信号をエンジン31に出力する。より詳細には、エンジン制御部24は、エンジン31の運転状態を検出する各種のセンサ(回転数、温度、空気流量等)からのセンサ信号を入力する。そして、センサ信号から把握されるエンジンの運転状態から現状の発生トルクを算出する。エンジン制御部24は、現状の発生トルクを目標エンジントルクに近づけるためのエンジン運転状態を算出し、その算出したエンジン運転状態を達成するための燃料噴射量と燃料噴射時期、及び点火時期を求め、これらに応じた噴射制御信号及び点火制御信号をエンジン31に出力する。   The engine control unit 24 outputs a control signal for realizing the target engine torque given from the PTC 22 to the engine 31. More specifically, the engine control unit 24 inputs sensor signals from various sensors (rotation speed, temperature, air flow rate, etc.) that detect the operating state of the engine 31. Then, the current generated torque is calculated from the engine operating state grasped from the sensor signal. The engine control unit 24 calculates an engine operating state for bringing the current generated torque close to the target engine torque, obtains a fuel injection amount, a fuel injection timing, and an ignition timing for achieving the calculated engine operating state, The injection control signal and the ignition control signal corresponding to these are output to the engine 31.

TM制御部25も、PTC22から目標変速比が与えられ、この与えられた目標変速比を実現するための制御信号をトランスミッション32に出力する。また、TM制御部25は、トランスミッション32において変速比を変更する場合、クラッチの動作に関する制御目標値に従って、クラッチの動作を制御するための制御信号も出力する。   The TM control unit 25 is also given a target gear ratio from the PTC 22 and outputs a control signal to the transmission 32 for realizing the given target gear ratio. Further, when changing the gear ratio in the transmission 32, the TM control unit 25 also outputs a control signal for controlling the operation of the clutch according to the control target value related to the operation of the clutch.

MG制御部26は、MGC23から目標MGトルクが与えられた場合には、その目標MGトルクを発生させるように、モータジェネレータ33のインバータへ制御信号を出力する。一方、MG制御部26は、MGC23から目標回生制動トルクが与えられた場合には、その目標回生制動トルクに相当する制動力をモータジェネレータ33が車軸に対して付与するように、モータジェネレータ33のインバータへ制御信号を出力する。   When the target MG torque is given from the MGC 23, the MG control unit 26 outputs a control signal to the inverter of the motor generator 33 so as to generate the target MG torque. On the other hand, when the target regenerative braking torque is applied from the MGC 23, the MG control unit 26 controls the motor generator 33 so that the motor generator 33 applies a braking force corresponding to the target regenerative braking torque to the axle. A control signal is output to the inverter.

上述した制御システム1におけるPTC22のように、制御システム1のドメイン制御部11,21に適用される電子制御装置には、他の電子制御装置と連携した制御(ドメイン間連携制御、ドメイン内連携制御)を行うための連携制御用アプリケーションと、他の電子制御装置とは独立して、単独で制御(温度調節制御)を行うための単独制御用アプリケーションとを含むものがある。このため、状況によっては、電子制御装置は、マイクロコントローラにおいて、連携制御用アプリケーションと、単独制御用アプリケーションとを同時期に実行することが必要となることがある。なお、PTC22以外のドメイン制御部11、21に属するECUも、車載装置制御部を介することなく、単独で制御を行うべき車載装置が割り当てられた場合、同様の状況が発生し得る。   Like the PTC 22 in the control system 1 described above, the electronic control device applied to the domain control units 11 and 21 of the control system 1 includes control linked with other electronic control devices (inter-domain linkage control, intra-domain linkage control). ) And a single control application for performing control (temperature adjustment control) independently from other electronic control devices. For this reason, depending on the situation, the electronic control device may need to execute the cooperative control application and the single control application at the same time in the microcontroller. The ECUs belonging to the domain control units 11 and 21 other than the PTC 22 can also generate the same situation when an in-vehicle device to be controlled independently is assigned without using the in-vehicle device control unit.

この際、連携制御用アプリケーションに含まれる処理であるか、それとも単独制御用アプリケーションに含まれる処理であるかをなんら考慮することなく、電子制御装置が、単に、それぞれの処理を行うことが必要となった時期に応じて順番に処理することとすると、それぞれの処理を適切に処理できない状況が生じたり、また、効率的な処理を行い得ない虞が生じる。例えば、より重要な処理が後回しになってしまい、その重要な処理に関連する制御全体に遅れが生じてしまったり、一方の処理が終了するまで、他方の処理を待機することで、マイクロコントローラの能力を十分に活用できず、全体として処理の実行が非効率になってしまったり、といった問題が生じる虞がある。   At this time, it is necessary for the electronic control device to simply perform each process without considering whether the process is included in the cooperative control application or the process included in the single control application. If the processing is performed in order according to the time when it becomes, there may occur a situation where the respective processing cannot be appropriately performed, or the efficient processing cannot be performed. For example, a more important process is postponed, delaying the overall control related to the important process, or waiting for the other process until one process is completed. There is a possibility that problems such as inability to fully utilize the capability and inefficient execution of processing as a whole.

ここで、連携制御用アプリケーションと、単独制御用アプリケーションとは、互いに依存関係にはなく、一方の処理の終了後に他方の処理を開始する必要はない。換言すれば、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とは、電子制御装置のマイクロコントローラにおいて、並行処理を行うことが可能である。ただし、マイクロコントローラの処理能力の制約から、常に、連携用制御用アプリケーションの処理と、単独制御用アプリケーションの処理とを並行処理することができるとは限らない。   Here, the cooperative control application and the single control application are not dependent on each other, and it is not necessary to start the other process after the end of one process. In other words, the process of the cooperative control application and the process of the single control application can be performed in parallel in the microcontroller of the electronic control device. However, the processing of the cooperation control application and the processing of the single control application cannot always be performed in parallel due to restrictions on the processing capability of the microcontroller.

そこで、本実施形態の電子制御装置では、それぞれの処理内容に基づき、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とのいずれを優先すべきか決定し、その決定された優先順位に従い、優先順位が高い処理から、その処理の実行に必要なマイクロコントローラのリソースを確保して、該当する処理に割り付けることとした。これにより、同時期に実行する処理のそれぞれの負荷が小さければ、それぞれの処理に対してマイクロコントローラのリソースを確保して割り付けることができ、各処理を並行処理することができる。従って、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とを効率的に実行することができる。一方、同時期に実行する処理の負荷の合計が、マイクロコントローラの処理能力を超え、並行処理することができない場合には、優先順位の高い処理から順に、リソースを確保して割り付けを行っているので、より早期に処理すべき重要性の高い処理から確実に実行することができる。このように、連携制御用アプリケーションの処理と、単独制御用アプリケーションの処理とのいずれかしか実行できない状況において、適切な順序で処理を実行することが可能となる。   Therefore, in the electronic control device according to the present embodiment, based on each processing content, it is determined which of the cooperative control application process and the single control application process should be prioritized, and according to the determined priority order, From the processing with the highest priority, the microcontroller resources necessary for the execution of the processing are secured and assigned to the corresponding processing. Thereby, if the load of each process executed at the same time is small, the resources of the microcontroller can be secured and allocated to each process, and each process can be processed in parallel. Accordingly, it is possible to efficiently execute the processing of the cooperation control application and the processing of the single control application. On the other hand, if the total processing load executed at the same time exceeds the processing capacity of the microcontroller and parallel processing cannot be performed, resources are allocated and allocated in order from the highest priority processing. Therefore, it is possible to surely execute processing from a highly important process that should be processed earlier. As described above, in a situation where only one of the process of the cooperative control application and the process of the single control application can be executed, the processes can be executed in an appropriate order.

以下、このような機能を備えた電子制御装置について、図2〜図5に基づき、さらに詳細に説明する。なお、以後の説明において、連携制御用アプリケーションと単独制御用アプリケーションを実行する電子制御装置をマスタECUと呼び、同じドメイン内において、マスタECUから指示された制御目標値に従って車載装置を制御する電子制御装置をスレーブECUと呼ぶ。   Hereinafter, the electronic control device having such a function will be described in more detail with reference to FIGS. In the following description, the electronic control device that executes the cooperative control application and the single control application is referred to as a master ECU, and in the same domain, the electronic control that controls the in-vehicle device according to the control target value instructed from the master ECU. The device is called a slave ECU.

図2は、主として、マスタECU40及びスレーブECU50a、50bのソフトウエア構造と、マスタECU40とスレーブECU50a、50b間の接続を示しており、制御対象となる車載装置などの、その他の構成は省略している。マスタECU40及びスレーブECU50a、50bは、各々、メモリを有しており、図2に示す構造のソフトウエアを、それぞれのメモリに記憶している。   FIG. 2 mainly shows the software structure of the master ECU 40 and the slave ECUs 50a and 50b and the connection between the master ECU 40 and the slave ECUs 50a and 50b, and omits other components such as the in-vehicle device to be controlled. Yes. Each of the master ECU 40 and the slave ECUs 50a and 50b has a memory, and software having a structure shown in FIG. 2 is stored in each memory.

マスタECU40及びスレーブECU50a、50bは、図2に示すように、いわゆるAUTOSAR(AUTomotive Open System Architecture)に準拠するソフトウエア構造を有している。以下、マスタECU40を例として、ソフトウエア構造について説明する。なお、マスタECU40とスレーブECU50a、50bとのソフトウエア構造は、基本的には類似しているが、後述するドメイン抽象化層44は、マスタECU40のみに設けられ、スレーブECU50a、50bには設けられない点で相違している。スレーブECU50a、50bでは、ドメイン間連携制御用アプリケーション41aやドメイン内連携制御用アプリケーション41bは実行されず、これらのアプリケーション41a、41bの処理との調停を図る必要がないので、ドメイン抽象化層は設けられないためである。   As shown in FIG. 2, the master ECU 40 and the slave ECUs 50 a and 50 b have a software structure that conforms to the so-called AUTOSAR (AUTomotive Open System Architecture). Hereinafter, the software structure will be described using the master ECU 40 as an example. The software structures of the master ECU 40 and the slave ECUs 50a and 50b are basically similar, but the domain abstraction layer 44 described later is provided only in the master ECU 40, and is provided in the slave ECUs 50a and 50b. There are no differences. In the slave ECUs 50a and 50b, the inter-domain cooperation control application 41a and the intra-domain cooperation control application 41b are not executed, and there is no need to mediate the processing of these applications 41a and 41b. It is because it is not possible.

マスタECU40では、図2に示すように、ハードウエアであるマイクロコントローラ48に、ソフトウエアが搭載され、そのソフトウエアは、大きくは、基本ソフトウエア43〜47、ランタイム環境(RTE)42、及び、アプリケーション層41に含まれるアプリケーションソフトウエア41a〜41cに分けられる。また、マイクロコントローラ48は、少なくとも1セットのマイクロプロセッシングユニットとキャッシュメモリとを備えている。   In the master ECU 40, as shown in FIG. 2, software is installed in a microcontroller 48 that is hardware, and the software is mainly composed of basic software 43 to 47, a runtime environment (RTE) 42, and It is divided into application software 41a to 41c included in the application layer 41. The microcontroller 48 includes at least one set of microprocessing units and a cache memory.

基本ソフトウエア43〜47は、マイクロコントローラ抽象化層43、ドメイン抽象化層44、ECU抽象化層45、サービス層46に階層化され、階層が高くなるほど、抽象化度合が強くなり、各種のハードウエアから独立するようになっている。また、基本ソフトウエア43〜47は、複合ドライバ47を含む。   The basic software 43 to 47 is hierarchized into a microcontroller abstraction layer 43, a domain abstraction layer 44, an ECU abstraction layer 45, and a service layer 46. The higher the hierarchy, the higher the degree of abstraction and the various hardware. It has become independent from the wear. The basic software 43 to 47 includes a composite driver 47.

マイクロコントローラ抽象化層43は、基本ソフトウエア43〜47の最下層に位置し、マイクロコントローラドライバ、メモリドライバ、通信ドライバ、I/Oドライバなどを有する。このマイクロコントローラ抽象化層43は、マイクロコントローラ48のハードウエア構成に依存する部分であるが、このマイクロコントローラ抽象化層43によって、マイクロコントローラ48とその周辺機器とが抽象化されるため、これより上位の階層は、マイクロコントローラ48及び周辺機器から独立することになる。   The microcontroller abstraction layer 43 is located in the lowest layer of the basic software 43 to 47, and includes a microcontroller driver, a memory driver, a communication driver, an I / O driver, and the like. The microcontroller abstraction layer 43 is a part that depends on the hardware configuration of the microcontroller 48. The microcontroller abstraction layer 43 abstracts the microcontroller 48 and its peripheral devices. The upper layer is independent of the microcontroller 48 and peripheral devices.

ドメイン抽象化層44は、マイクロコントローラ抽象化層43の上位に位置している。このドメイン抽象化層44は、連携制御用アプリケーション(ドメイン間連携制御用アプリケーション41a、ドメイン内連携制御用アプリケーション41b)に含まれる処理と、単独制御用アプリケーション41cに含まれる処理とをそれぞれ受け付けて、それらの処理を同時期に実行する必要が生じたとき、それぞれの処理の内容に基づき、いずれを優先するべきかを決定する機能を有する。さらに、ドメイン抽象化層44は、決定された優先順位に従い、優先順位が高い処理から、その処理の実行に必要なリソースを確保して、該当する処理に割り付ける機能を有する。ドメイン抽象化層44に関しては、後に詳細に説明する。   The domain abstraction layer 44 is located above the microcontroller abstraction layer 43. The domain abstraction layer 44 receives the processing included in the cooperation control application (inter-domain cooperation control application 41a, intra-domain cooperation control application 41b) and the processing included in the single control application 41c, respectively. When these processes need to be executed at the same time, it has a function of determining which one should be given priority based on the contents of each process. Further, the domain abstraction layer 44 has a function of allocating resources necessary for executing the processes from the processes with higher priority according to the determined priorities and allocating them to the corresponding processes. The domain abstraction layer 44 will be described later in detail.

ECU抽象化層45は、ドメイン抽象化層44の上位に位置しており、マスタECU40の基本コンポーネントを抽象化することにより、上位のソフトウエア層を、マスタECU40のハードウエアから独立させるものである。このECU抽象化層45は、搭載機器抽象化、メモリハードウエア抽象化、通信ハードウエア抽象化、I/Oハードウエア抽象化などを含む。   The ECU abstraction layer 45 is located above the domain abstraction layer 44 and abstracts the basic components of the master ECU 40 to make the upper software layer independent of the hardware of the master ECU 40. . The ECU abstraction layer 45 includes onboard equipment abstraction, memory hardware abstraction, communication hardware abstraction, I / O hardware abstraction, and the like.

サービス層46は、その一部が、ECU抽象化層45の上位に位置し、アプリケーションのための基本的なサービスを提供するためのものである。具体的には、サービス層46は、OS、車両ネットワークの通信と管理、メモリサービス、診断サービス、ECU状態管理などのサービスを提供する。このサービス層46は、大部分がハードウエアから独立しているが、OSなどマイクロコントローラ48に依存する部分も有している。   A part of the service layer 46 is located above the ECU abstraction layer 45, and provides a basic service for an application. Specifically, the service layer 46 provides services such as OS, vehicle network communication and management, memory service, diagnostic service, and ECU state management. The service layer 46 is largely independent of hardware, but also has a part that depends on a microcontroller 48 such as an OS.

複合ドライバ47は、複雑なセンサやアクチュエータを操作するための特殊な機能やタイミング要求を満たすような、他のレイヤにはない複雑な機能が必要な場合に使用されるものである。この複合ドライバ47は、例えば、燃料を噴射するインジェクタを駆動制御する場合などに使用される。   The composite driver 47 is used when a complicated function that does not exist in other layers and satisfies a special function and timing requirements for operating a complicated sensor or actuator is required. The composite driver 47 is used, for example, when driving and controlling an injector that injects fuel.

そして、RTE42は、上述した各層からなる基本ソフトウエア43〜47の上位に位置し、アプリケーション層41に含まれる各種のアプリケーション41a〜41cが、マスタECU40に依存しないようにするためのものである。そのため、RTE42は、アプリケーション41a〜41c間の通信や、アプリケーション41a〜41cと基本ソフトウエア43〜47との通信を提供する。   The RTE 42 is positioned above the basic software 43 to 47 including the above-described layers, so that the various applications 41 a to 41 c included in the application layer 41 do not depend on the master ECU 40. Therefore, the RTE 42 provides communication between the applications 41a to 41c and communication between the applications 41a to 41c and the basic software 43 to 47.

このように、AUTOSARに準拠したソフトウエア構造を採用することで、アプリケーション41a〜41cは、マイクロコントローラ48やマスタECU40のハードウエアに依存せずに済むので、アプリケーション41a〜41cの再利用性を高めることができる。   In this way, by adopting the software structure conforming to AUTOSAR, the applications 41a to 41c do not depend on the hardware of the microcontroller 48 or the master ECU 40, so that the reusability of the applications 41a to 41c is improved. be able to.

次に、ドメイン抽象化層44について、詳しく説明する。図2、図3に示すように、ドメイン抽象化層44は、ドメイン間抽象化層44aとドメイン内抽象化層44bとを有している。ドメイン間抽象化層44aは、ドメイン間連携制御用アプリケーション41aからの処理要求を受け付ける。また、ドメイン内抽象化層44bは、ドメイン内連携制御用アプリケーション41bからの処理要求を受け付ける。一方、単独制御用アプリケーション41cからの処理要求は、従来通り、サービス層46、ECU抽象化層45を介して、ドメイン抽象化層44に与えられる。   Next, the domain abstraction layer 44 will be described in detail. As shown in FIGS. 2 and 3, the domain abstraction layer 44 includes an inter-domain abstraction layer 44a and an intra-domain abstraction layer 44b. The inter-domain abstraction layer 44a receives a processing request from the inter-domain cooperation control application 41a. The intra-domain abstraction layer 44b accepts a processing request from the intra-domain cooperation control application 41b. On the other hand, the processing request from the single control application 41c is given to the domain abstraction layer 44 through the service layer 46 and the ECU abstraction layer 45 as usual.

このように、ドメイン抽象化層44は、これらのアプリケーション41a〜41cからの処理要求を受け付けて、マイクロコントローラ抽象化層43に対して、各処理へのマイクロコントローラ48のリソース(マイクロプロセッシングユニット、キャッシュメモリなど)の割り付けを指示する。具体的には、単一のアプリケーション41a〜41cのみから処理要求を受け付けた場合、ドメイン抽象化層44は、その要求を受け付けた処理の実行に必要なリソースの割合を決定し、その決定した割合のリソースを、該当する処理に割り付けるよう、マイクロコントローラ抽象化層43に指示する。また、複数の種類のアプリケーション41a〜41cから同時期に処理要求を受け付けた場合には、ドメイン抽象化層44は、まず、それぞれの処理の内容に基づき、いずれを優先するべきかを決定する、次いで、ドメイン抽象化層44は、決定された優先順位に従い、優先順位が高い処理から順番に、該当する処理の実行に必要なリソースの割合を決定して、その決定した割合のリソースを、該当する処理に割り付けるよう、マイクロコントローラ抽象化層43に指示する。   In this manner, the domain abstraction layer 44 receives processing requests from these applications 41a to 41c, and sends the resources of the microcontroller 48 (microprocessing unit, cache, etc.) to each processing to the microcontroller abstraction layer 43. Instructs the allocation of memory). Specifically, when a processing request is received only from a single application 41a to 41c, the domain abstraction layer 44 determines the ratio of resources necessary for executing the processing that has received the request, and the determined ratio The microcontroller abstraction layer 43 is instructed to allocate these resources to the corresponding processing. When processing requests are received from a plurality of types of applications 41a to 41c at the same time, the domain abstraction layer 44 first determines which one should be given priority based on the contents of each processing. Next, the domain abstraction layer 44 determines the ratio of resources necessary for executing the corresponding process in order from the process with the highest priority according to the determined priority, and assigns the resource of the determined ratio to the corresponding The microcontroller abstraction layer 43 is instructed to be assigned to the processing to be performed.

この際、ドメイン抽象化層44は、相対的に優先順位が低い処理の実行に必要なリソースの割合を決定したときに、その優先順位が低い処理を実行するために必要なリソースが残されていないと判断した場合には、リソースが利用可能となるまで、マイクロコントローラ抽象化層43にリソースの割り付けの指示を行わない。このため、相対的に優先順位が高い処理に多くのリソースが必要で、その結果、相対的に優先順位が低い処理についてリソース不足が発生した場合には、リソースが利用可能となるまで、相対的に優先順位が低い処理の実行が待機される。あるいは、相対的に重要度の低い処理が既に実行開始されている場合には、その実行が一時中断される。   At this time, when the domain abstraction layer 44 determines the ratio of the resources necessary for executing the processing having a relatively low priority, the resources necessary for executing the processing having the low priority are left. If it is determined that there is no resource, the microcontroller abstraction layer 43 is not instructed to allocate the resource until the resource becomes available. For this reason, many resources are required for a process with a relatively high priority, and as a result, when a resource shortage occurs for a process with a relatively low priority, a relative resource is available until the resource becomes available. The execution of a process with a lower priority is awaited. Alternatively, when a process with relatively low importance has already been started, the execution is temporarily suspended.

さらに、ドメイン抽象化層44は、相対的に優先順位の低い処理についてリソース不足が判明した時点で、その優先順位の低い処理を、より少ないリソースにて処理可能なサブ処理に分割し、その分割したサブ処理に対してリソースを確保して割り付けるようにしても良い。   Further, the domain abstraction layer 44 divides the low-priority process into sub-processes that can be processed with fewer resources when the resource shortage is found for the relatively low-priority process. Resources may be secured and allocated to the sub-processes performed.

ここで、ドメイン抽象化層44による、各処理に対するリソースの割り振りについて説明する。ドメイン抽象化層44は、例えば、該当する処理を実行するために必要なリソースの割合を、単位時間におけるマイクロプロセッシングユニットの使用時間を示す使用率によって定めることができる。つまり、キャッシュメモリの使用容量は、マイクロプロセッシングユニットの使用率と相関する傾向にあるため、マイクロプロセッシングユニット及びキャッシュメモリ含むリソースについて、マイクロプロセッシングユニットの使用率から、該当処理の実行に必要なリソースの割合を定めることができる。あるいは、ドメイン抽象化層44は、マイクロプロセッシングユニットと、キャッシュメモリとで別個に定めても良い。この場合、例えば、該当する処理を実行するために必要なリソース割合を、マイクロプロセッシングユニットに関しては見込まれる使用率によって定め、キャッシュメモリに関しては見込まれる使用容量によって定めることができる。   Here, resource allocation for each process by the domain abstraction layer 44 will be described. The domain abstraction layer 44 can determine, for example, the ratio of resources necessary to execute the corresponding process by the usage rate indicating the usage time of the microprocessing unit per unit time. In other words, since the usage capacity of the cache memory tends to correlate with the usage rate of the microprocessing unit, the resources including the microprocessing unit and the cache memory are determined based on the usage rate of the microprocessing unit. The ratio can be determined. Alternatively, the domain abstraction layer 44 may be defined separately for the microprocessing unit and the cache memory. In this case, for example, the resource ratio required to execute the corresponding processing can be determined by the expected usage rate for the microprocessing unit and can be determined by the expected usage capacity for the cache memory.

そして、相対的に優先順位が低い処理を実行するために必要なリソースが残されているか否かは、少なくともマイクロプロセッシングユニットに関しては、単位時間におけるマイクロプロセッシングユニットの未使用率と、相対的に優先順位が低い処理によるマイクロプロセッシングユニットの見込み使用率とに基づいて判断することができる。   Whether or not the resources necessary for executing the processing with a relatively low priority level are left, at least for the microprocessing unit, is relatively prioritized with the unused rate of the microprocessing unit per unit time. The determination can be made based on the expected usage rate of the microprocessing unit by the processing with the lower rank.

また、マイクロコントローラ48が、複数のマイクロプロセッシングユニットを含む場合には、ドメイン抽象化層44は、相対的に優先順位が低い処理を実行するために必要なリソースが残されているか否かを、処理が割り付けられていないマイクロプロセッシングユニットが残されているか否かに基づき判断するようにしても良い。   Further, when the microcontroller 48 includes a plurality of microprocessing units, the domain abstraction layer 44 determines whether or not resources necessary for executing a process with a relatively low priority are left. You may make it judge based on whether the microprocessing unit to which processing is not allocated is left.

次に、ドメイン抽象化層44における具体的な処理内容について、図4及び図5のフローチャートを参照して説明する。   Next, specific processing contents in the domain abstraction layer 44 will be described with reference to the flowcharts of FIGS. 4 and 5.

まず、図4のフローチャートのステップS100では、各種のアプリケーション41a〜41cからの処理要求を受け付ける。続くステップS110では、受け付けた処理要求が複数種類のアプリケーション41a〜41cからによるものであるか否かを判定する。ステップS110において、複数種類のアプリケーション41a〜41cから処理要求を受け付けたと判定した場合には、ステップS120の処理に進み、単一のアプリケーション41a〜41cから処理要求を受け付けた又は処理要求の受付は無かったと判定した場合には、ステップS140の処理に進む。   First, in step S100 of the flowchart of FIG. 4, processing requests from various applications 41a to 41c are accepted. In a succeeding step S110, it is determined whether or not the received processing request is from a plurality of types of applications 41a to 41c. If it is determined in step S110 that a processing request has been received from a plurality of types of applications 41a to 41c, the process proceeds to step S120, and a processing request has been received from a single application 41a to 41c, or no processing request has been received. If it is determined that the process has been performed, the process proceeds to step S140.

ステップS120では、複数種類のアプリケーション41a〜41cから受け付けた各処理の内容に基づいて、各処理の優先順位を決定する。この優先順位の決定方法は、後に、図5のフローチャートに基づき詳細に説明する。続くステップS130では、決定された優先順位に従い、優先順位が高い処理から順番に、該当する処理の実行に必要なリソースを割り付ける。その実行後、処理は、再びステップS100に戻る。これにより、マイクロコントローラ48において、割り付けられたリソースを用いて、該当する処理が実行される。   In step S120, the priority of each process is determined based on the contents of each process received from the multiple types of applications 41a to 41c. This priority determination method will be described later in detail based on the flowchart of FIG. In subsequent step S130, according to the determined priority order, resources necessary for execution of the corresponding process are allocated in order from the process having the highest priority order. After the execution, the process returns to step S100 again. Thereby, in the microcontroller 48, the corresponding process is executed using the allocated resource.

ステップS140では、ステップS100において、単一のアプリケーション41a〜41cからの処理要求を受け付けたか、それとも、処理要求の受付は無かったかを判定する。この際、単一のアプリケーション41a〜41cから処理要求を受け付けたと判定した場合には、ステップS150に進み、該当する処理の実行に必要なリソースの割合を決定し、その決定した割合のリソースを、該当する処理に割り付ける。これにより、マイクロコントローラ48において、割り付けられたリソースを用いて、該当する処理が実行される。一方、ステップS140において、処理要求の受付は無かったと判定した場合には、ステップS100の処理に戻る。   In step S140, it is determined in step S100 whether a processing request from a single application 41a to 41c has been received or no processing request has been received. At this time, if it is determined that a processing request has been received from a single application 41a to 41c, the process proceeds to step S150, the ratio of resources necessary for executing the corresponding process is determined, and the determined ratio of resources is Assign to the appropriate process. Thereby, in the microcontroller 48, the corresponding process is executed using the allocated resource. On the other hand, if it is determined in step S140 that no processing request has been received, the process returns to step S100.

次に、図5のフローチャートに基づき、複数種類のアプリケーション41a〜41cから同時期に処理要求を受け付けた場合における、各処理の優先順位の決定方法について説明する。   Next, based on the flowchart of FIG. 5, a method for determining the priority of each process when a process request is received from a plurality of types of applications 41 a to 41 c at the same time will be described.

まず、ステップS200では、複数種類のアプリケーション41a〜41cから受け付けた処理要求に、単独制御用アプリケーション41cからの処理要求が含まれているか否かを判定する。この判定処理において、単独制御用アプリケーション41cからの処理要求が含まれていると判定した場合には、ステップS240の処理に進み、単独制御用アプリケーション41cからの処理要求が含まれていないと判定した場合には、ステップS210の処理に進む。   First, in step S200, it is determined whether or not a processing request received from a plurality of types of applications 41a to 41c includes a processing request from the single control application 41c. In this determination process, when it is determined that the processing request from the single control application 41c is included, the process proceeds to step S240, and it is determined that the processing request from the single control application 41c is not included. In that case, the process proceeds to step S210.

ステップS210に処理が進んだ場合、複数の処理要求は、ドメイン間連携制御用アプリケーション41aからの処理要求と、ドメイン内連携制御用アプリケーション41bからの処理要求とを含んでいる。ステップS210では、ドメイン内連携制御用アプリケーション41bから要求された処理が、即時に実行することが必要な処理であるか否かを判定する。例えば、本実施形態に係る電子制御装置が、図1のPTC22に適用された場合、PTC22が、エンジン31が所定回転角度変化する毎に、エンジン制御部24に対して、制御目標値を指示するドメイン内連携処理を実施する場合がある。このような場合、PTC22は、エンジンの回転角度変化に応答して、遅滞なく、制御目標値を出力する必要があるので、PTCは、このドメイン内連携処理を最優先で処理する必要がある。また、例えば、エンジン31の回転角度に応じたトルク変動を抑制するためのトルク補正をMG33に発生させる場合も、PTC22は、エンジン回転角度に応じて遅滞無くMGC23に対してトルク補正量を指示するドメイン内連携処理を実施する必要がある。ステップS210では、ドメイン内連携制御用アプリケーション41bの処理が、このような即時に実行する必要がある処理であるか否かを判定する。そして、即時に実行する必要がある処理と判定した場合にはステップS220の処理に進み、即時に実行する必要がある処理ではないと判定した場合にはステップS230の処理に進む。   When the process proceeds to step S210, the plurality of processing requests include a processing request from the inter-domain cooperation control application 41a and a processing request from the intra-domain cooperation control application 41b. In step S210, it is determined whether or not the process requested from the intra-domain cooperation control application 41b is a process that needs to be executed immediately. For example, when the electronic control device according to the present embodiment is applied to the PTC 22 in FIG. 1, the PTC 22 instructs the control target value to the engine control unit 24 every time the engine 31 changes by a predetermined rotation angle. Intra-domain linkage processing may be performed. In such a case, the PTC 22 needs to output the control target value without delay in response to the change in the rotation angle of the engine. Therefore, the PTC needs to process the intra-domain cooperation processing with the highest priority. Further, for example, when the MG 33 generates torque correction for suppressing torque fluctuation according to the rotation angle of the engine 31, the PTC 22 instructs the MGC 23 on the torque correction amount without delay according to the engine rotation angle. It is necessary to implement intra-domain linkage processing. In step S210, it is determined whether the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately. If it is determined that the process needs to be executed immediately, the process proceeds to step S220. If it is determined that the process does not need to be executed immediately, the process proceeds to step S230.

ステップS220では、ドメイン内連携制御用アプリケーション41bの処理に最も高い優先順位を付与する。そして、ドメイン間連携制御用アプリケーション41aの処理に対して、ドメイン内連携制御用アプリケーション41bよりも低い優先順位を付与する。一方、ステップS230では、ドメイン間連携制御用アプリケーション41aの処理に最も高い優先順位を付与する。そして、ドメイン内連携制御用アプリケーション41bの処理に対しては、ドメイン間連携制御用アプリケーション41aよりも低い優先順位を付与する。   In step S220, the highest priority is assigned to the processing of the intra-domain cooperation control application 41b. Then, a lower priority than the intra-domain cooperation control application 41b is given to the processing of the inter-domain cooperation control application 41a. On the other hand, in step S230, the highest priority is assigned to the processing of the inter-domain cooperation control application 41a. Then, a lower priority than the inter-domain cooperation control application 41a is given to the processing of the intra-domain cooperation control application 41b.

このように、ドメイン間連携制御用アプリケーション41aの処理と、ドメイン内連携制御用アプリケーション41bの処理とに関しては、原則として、ドメイン間連携制御用アプリケーション41aの処理に対して、より高い優先順位を付与する。上述したように、ドメイン間連携制御用アプリケーション41aの処理の結果として、それぞれのドメイン10、20に割り当てられた車載装置31〜35の制御目標値が決定される。このため、時々刻々と変化する車両の状況に応じた適切な制御を行うためには、ドメイン内連携制御用アプリケーション41bの処理よりも、ドメイン間連携制御用アプリケーション41aの処理を優先して行うべきだからである。   As described above, in principle, higher priority is given to the processing of the interdomain cooperation control application 41a with respect to the processing of the interdomain cooperation control application 41a and the processing of the intradomain cooperation control application 41b. To do. As described above, the control target values of the in-vehicle devices 31 to 35 assigned to the respective domains 10 and 20 are determined as a result of the processing of the inter-domain cooperation control application 41a. For this reason, in order to perform appropriate control according to the situation of the vehicle changing from moment to moment, the processing of the inter-domain linkage control application 41a should be prioritized over the processing of the intra-domain linkage control application 41b. That's why.

ただし、ドメイン内連携制御用アプリケーション41bの処理には、上述したように、即時に実行することが必要な処理が含まれることがある。このように即時に実行することが必要な処理に関しては、ドメイン間連携制御用アプリケーション41aの処理よりも優先して実行することが望ましい。そのため、本実施形態では、ドメイン内連携制御用アプリケーション41bの処理が、即時に実行することが必要な処理であるか否かを判定する。そして、即時に実行することが必要な処理と判定したときに限り、ドメイン内連携制御用アプリケーション41bの処理の優先順位を、ドメイン間連携制御用アプリケーション41aの優先順位よりも高くしているのである。   However, as described above, the processing of the intra-domain cooperation control application 41b may include processing that needs to be executed immediately. As for the processing that needs to be executed immediately in this way, it is preferable to execute the processing in preference to the processing of the inter-domain linkage control application 41a. Therefore, in this embodiment, it is determined whether the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately. Only when it is determined that the processing needs to be executed immediately, the processing priority of the intra-domain cooperation control application 41b is set higher than the priority of the inter-domain cooperation control application 41a. .

一方、複数種類のアプリケーション41a〜41cから受け付けた処理要求に、単独制御用アプリケーション41cからの処理要求が含まれていると判定した場合に実行されるステップS240では、単独制御用アプリケーション41cから要求された処理が、割込みにて実行することが必要な割込処理や、ある事象に同期して実行することが必要な同期処理であるか否かを判定する。例えば、図1に示す例では、上述したように、PTC22は、冷却水温度、エンジン温度及びインバータ温度に基づき、冷却機構30のポンプ及び流路切換弁を制御する。この場合、例えば、エンジン温度或いはインバータ温度が所定の上限温度を超えたことが検出された場合、PTC22は、それ以上の温度上昇を防ぐため、即座に、その上限温度を超えた装置を対象として、最大の流量にて冷却水を循環させるようポンプ及び流路切換弁を制御する。また、例えば、温度センサ、ポンプ、流路切換弁の異常を検出した場合なども、PTC22は、即座に、その異常の発生を運転者に報知するとともに、他の制御部に対して、温度上昇を抑制するため、退避走行や、出力制限などを指示する。これらの処理は、異常発生時において、最優先で処理すべきものであるため、割込処理や同期処理として実行される。ステップS240において、単独制御用アプリケーション41cの処理が、割込処理又は同期処理であると判定した場合には、ステップS250の処理に進む。一方、単独制御用アプリケーション41cの処理が、割込処理又は同期処理ではないと判定した場合には、ステップS270に進む。   On the other hand, in step S240 executed when it is determined that the processing request received from the multiple types of applications 41a to 41c includes the processing request from the single control application 41c, the single control application 41c is requested. It is determined whether the process is an interrupt process that needs to be executed by an interrupt or a synchronous process that needs to be executed in synchronization with a certain event. For example, in the example shown in FIG. 1, as described above, the PTC 22 controls the pump and the flow path switching valve of the cooling mechanism 30 based on the cooling water temperature, the engine temperature, and the inverter temperature. In this case, for example, when it is detected that the engine temperature or the inverter temperature exceeds a predetermined upper limit temperature, the PTC 22 immediately targets a device that exceeds the upper limit temperature in order to prevent further temperature rise. The pump and the flow path switching valve are controlled to circulate the cooling water at the maximum flow rate. In addition, for example, when an abnormality is detected in the temperature sensor, the pump, or the flow path switching valve, the PTC 22 immediately notifies the driver of the occurrence of the abnormality and increases the temperature to other control units. In order to suppress this, instructing evacuation traveling, output restriction, etc. Since these processes are to be processed with the highest priority when an abnormality occurs, they are executed as an interrupt process or a synchronous process. If it is determined in step S240 that the process of the single control application 41c is an interrupt process or a synchronous process, the process proceeds to step S250. On the other hand, if it is determined that the process of the single control application 41c is not an interrupt process or a synchronous process, the process proceeds to step S270.

ステップS250では、単独制御用アプリケーション41cに加え、ドメイン間連携制御用アプリケーション41aとドメイン内連携制御用アプリケーション41bとの両方からも処理要求を受け付けたか否かを判定する。ステップS250において、ドメイン間連携制御用アプリケーション41aとドメイン内連携制御用アプリケーション41bとの両方から処理要求を受け付けたと判定した場合、ステップS290の処理に進む。一方、いずれか一方のみから処理要求を受け付けたと判定した場合、ステップS260の処理に進む。   In step S250, it is determined whether processing requests have been received from both the inter-domain cooperation control application 41a and the intra-domain cooperation control application 41b in addition to the single control application 41c. If it is determined in step S250 that a processing request has been received from both the inter-domain cooperation control application 41a and the intra-domain cooperation control application 41b, the process proceeds to step S290. On the other hand, if it is determined that the processing request has been received from only one of them, the process proceeds to step S260.

ステップS260では、単独制御用アプリケーション41cの処理に最も高い優先順位を付与する。また、処理要求を受け付けたドメイン間連携制御用アプリケーション41aとドメイン内連携制御用アプリケーション41bとの一方の処理に対しては、それよりも低い優先順位を付与する。上述したように、単独制御用アプリケーション41cの処理が、例えば異常発生時の処理として、最優先で実行されることが望ましいためである。   In step S260, the highest priority is assigned to the processing of the single control application 41c. Further, a lower priority order is given to one process of the inter-domain cooperation control application 41a and the intra-domain cooperation control application 41b that has received the processing request. This is because, as described above, it is desirable that the process of the single control application 41c be executed with the highest priority, for example, as a process when an abnormality occurs.

ステップS290では、ステップS210の処理と同様に、ドメイン内連携制御用アプリケーション41bの処理が、即時に実行することが必要な処理であるか否かを判定する。この判定処理において、ドメイン内連携制御用アプリケーション41bの処理が、即時に実行することが必要な処理であると判定した場合、ステップS300の処理に進む。一方、即時に実行することが必要な処理ではないと判定した場合、ステップS310の処理に進む。   In step S290, similarly to the process in step S210, it is determined whether or not the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately. In this determination process, when it is determined that the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately, the process proceeds to step S300. On the other hand, if it is determined that the process is not required to be executed immediately, the process proceeds to step S310.

ステップS300では、単独制御用アプリケーション41cの処理に最も高い優先順位を付与する。ドメイン内連携制御用アプリケーション41bの処理に次に高い優先順位を付与する。そして、ドメイン間連携制御用アプリケーション41aの処理に対して、最も低い優先順位を付与する。一方、ステップS310では、単独制御用アプリケーション41cの処理に最も高い優先順位を付与する。ドメイン間連携制御用アプリケーション41aの処理に次に高い優先順位を付与する。そして、ドメイン内連携制御用アプリケーション41bの処理に対して、最も低い優先順位を付与する。   In step S300, the highest priority is assigned to the processing of the single control application 41c. The next highest priority is given to the processing of the intra-domain cooperation control application 41b. Then, the lowest priority is assigned to the processing of the inter-domain cooperation control application 41a. On the other hand, in step S310, the highest priority is assigned to the processing of the single control application 41c. The next highest priority is given to the processing of the inter-domain linkage control application 41a. Then, the lowest priority is assigned to the processing of the intra-domain cooperation control application 41b.

ステップS300、S310の優先順位付けの理由は、以下の通りである。まず、単独制御用アプリケーション41cの処理に最も高い優先順位を付与する理由は、単独制御用アプリケーション41cの処理が、異常発生時の処理として、最優先で実行されることが望ましいためである。また、ドメイン内連携制御用アプリケーション41bの処理が即時に実行することが必要な処理である場合、ドメイン間連携制御用アプリケーション41aの処理よりも優先されることが望ましい。そのため、ステップS300では、ドメイン内連携制御用アプリケーション41bの処理の優先順位を、ドメイン間連携制御用アプリケーション41aよりも高くしている。一方、ドメイン内連携制御用アプリケーション41bの処理が、即時に実行することが必要な処理以外の処理である場合には、ドメイン間連携制御用アプリケーション41aの処理を優先することが望ましい。そのため、ステップS310では、ドメイン間連携制御用アプリケーション41aの処理の優先順位を、ドメイン内連携制御用アプリケーション41bよりも高くしている。   The reason for prioritizing steps S300 and S310 is as follows. First, the reason why the highest priority is given to the process of the single control application 41c is that the process of the single control application 41c is preferably executed with the highest priority as the process when an abnormality occurs. Further, when the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately, it is desirable to give priority to the process of the inter-domain cooperation control application 41a. Therefore, in step S300, the priority of processing of the intra-domain cooperation control application 41b is set higher than that of the inter-domain cooperation control application 41a. On the other hand, when the process of the intra-domain cooperation control application 41b is a process other than the process that needs to be executed immediately, the process of the inter-domain cooperation control application 41a is preferably prioritized. Therefore, in step S310, the processing priority of the inter-domain cooperation control application 41a is set higher than that of the intra-domain cooperation control application 41b.

一方、単独制御用アプリケーション41cの処理が、割込処理又は同期処理ではないと判定した場合に実行されるステップS270では、ステップS250と同様に、単独制御用アプリケーション41cに加え、ドメイン間連携制御用アプリケーション41aとドメイン内連携制御用アプリケーション41bとの両方から処理要求を受け付けたか否かを判定する。ステップS270において、ドメイン間連携制御用アプリケーション41aとドメイン内連携制御用アプリケーション41bとの両方から処理要求を受け付けたと判定した場合、ステップS320の処理に進む。一方、いずれか一方のみから処理要求を受け付けたと判定した場合、ステップS280の処理に進む。   On the other hand, in step S270 executed when it is determined that the process of the single control application 41c is not an interrupt process or a synchronous process, in addition to the single control application 41c, the inter-domain linkage control It is determined whether processing requests have been received from both the application 41a and the intra-domain cooperation control application 41b. If it is determined in step S270 that processing requests have been received from both the inter-domain cooperation control application 41a and the intra-domain cooperation control application 41b, the process proceeds to step S320. On the other hand, if it is determined that the processing request has been received from only one of them, the process proceeds to step S280.

ステップS280では、処理要求を受け付けたドメイン間連携制御用アプリケーション41aとドメイン内連携制御用アプリケーション41bとの一方の処理に最も高い優先順位を付与する。そして、単独制御用アプリケーション41cの処理に、それよりも低い優先順位を付与する。   In step S280, the highest priority is assigned to one of the inter-domain cooperation control application 41a and the intra-domain cooperation control application 41b that has received the processing request. Then, a lower priority is given to the processing of the single control application 41c.

ステップS320でも、ステップS210及びS290の処理と同様に、ドメイン内連携制御用アプリケーション41bの処理が、即時に実行することが必要な処理であるか否かを判定する。この判定処理において、ドメイン内連携制御用アプリケーション41bの処理が、即時に実行することが必要な処理であると判定した場合、ステップS330の処理に進む。一方、即時に実行することが必要な処理ではないと判定した場合、ステップS340の処理に進む。   Also in step S320, as in the processes in steps S210 and S290, it is determined whether or not the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately. In this determination process, when it is determined that the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately, the process proceeds to step S330. On the other hand, if it is determined that the process is not required to be executed immediately, the process proceeds to step S340.

ステップS330では、ドメイン内連携制御用アプリケーション41bの処理に最も高い優先順位を付与する。ドメイン間連携制御用アプリケーション41aの処理に次に高い優先順位を付与する。そして、単独制御用アプリケーション41cの処理に最も低い優先順位を付与する。一方、ステップS340では、ドメイン間連携制御用アプリケーション41aの処理に最も高い優先順位を付与する。ドメイン内連携制御用アプリケーション41bの処理に次に高い優先順位を付与する。そして、単独制御用アプリケーション41cの処理に、最も低い優先順位を付与する。   In step S330, the highest priority is assigned to the processing of the intra-domain cooperation control application 41b. The next highest priority is given to the processing of the inter-domain linkage control application 41a. Then, the lowest priority is assigned to the processing of the single control application 41c. On the other hand, in step S340, the highest priority is assigned to the processing of the inter-domain cooperation control application 41a. The next highest priority is given to the processing of the intra-domain cooperation control application 41b. Then, the lowest priority is given to the processing of the single control application 41c.

ステップS330、S340の優先順位付けの理由は、以下の通りである。まず、単独制御用アプリケーション41cの処理が、異常発生時の処理として、最優先で実行される割込処理や同期処理以外の処理である場合、通常、その実行に、高い応答性は求められない。そのため、ステップS330、S340では、単独制御用アプリケーション41cの処理に最も低い優先順位を付与している。また、ドメイン内連携制御用アプリケーション41bの処理が即時に実行することが必要な処理である場合、ドメイン間連携制御用アプリケーション41aの処理よりも優先されることが望ましい。そのため、ステップS330では、ドメイン内連携制御用アプリケーション41bの処理の優先順位を最上位にしている。一方、ドメイン内連携制御用アプリケーション41bの処理が、即時に実行することが必要な処理以外の処理である場合には、ドメイン間連携制御用アプリケーション41aの処理を優先することが望ましい。そのため、ステップS340では、ドメイン間連携制御用アプリケーション41aの処理の優先順位を最上位にしている。   The reason for prioritizing steps S330 and S340 is as follows. First, when the process of the single control application 41c is a process other than an interrupt process or a synchronous process that is executed with the highest priority as a process when an abnormality occurs, normally, high responsiveness is not required for the execution. . Therefore, in steps S330 and S340, the lowest priority is assigned to the processing of the single control application 41c. Further, when the process of the intra-domain cooperation control application 41b is a process that needs to be executed immediately, it is desirable to give priority to the process of the inter-domain cooperation control application 41a. For this reason, in step S330, the processing priority of the intra-domain cooperation control application 41b is set to the highest. On the other hand, when the process of the intra-domain cooperation control application 41b is a process other than the process that needs to be executed immediately, the process of the inter-domain cooperation control application 41a is preferably prioritized. Therefore, in step S340, the priority of processing of the inter-domain linkage control application 41a is set to the highest.

以上、本発明の好ましい実施形態について説明したが、本発明は、上述した実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することが可能である。   The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention. .

例えば、上述した実施形態では、マスタECU40に、ドメイン抽象化層44を設け、このドメイン抽象化層44において、複数種類のアプリケーション41a〜41cから同時期に処理要求を受け付けた場合に、各処理の優先順位の決定、及びマイクロコントローラ48のリソースの割り付けを行った。しかしながら、図6に示すように、ドメイン抽象化層44ではなく、サービス層46のオペレーティングシステムを用いて、各処理の優先順位の決定、及びマイクロコントローラ48のリソースの割り付けを行うことも可能である。   For example, in the above-described embodiment, when the domain abstraction layer 44 is provided in the master ECU 40 and processing requests are received from a plurality of types of applications 41 a to 41 c at the same time in the domain abstraction layer 44, Priorities were determined and the resources of the microcontroller 48 were allocated. However, as shown in FIG. 6, it is possible to determine the priority of each process and allocate resources of the microcontroller 48 using the operating system of the service layer 46 instead of the domain abstraction layer 44. .

以下、サービス層46のオペレーティングシステムによって、優先順位の決定及びリソースの割り付けを行う場合の一例を、図6に基づき説明する。図6に示すように、サービス層46には、オペレーティングシステムとして、マイクロプロセッシングユニット毎に設けられ、各マイクロプロセッシングユニットにおける処理をスケジューリングする個別オペレーティングシステム46c、46eと、個別オペレーティングシステム46c、46eの処理を統括する統合オペレーティングシステム46aを有する。   Hereinafter, an example in which priority is determined and resources are allocated by the operating system of the service layer 46 will be described with reference to FIG. As shown in FIG. 6, the service layer 46 is provided as an operating system for each microprocessing unit, and the individual operating systems 46c and 46e for scheduling the processing in each microprocessing unit, and the processing of the individual operating systems 46c and 46e. Has an integrated operating system 46a.

このような構成において、統合オペレーティングシステム46aが、各処理の優先順位を決定し、その決定した各処理の優先順位に基づき、各個別オペレーティングシステムに対して実行すべき処理を指示することにより、上述した実施形態と同様の作用効果を奏することができる。   In such a configuration, the integrated operating system 46a determines the priority of each process, and instructs each individual operating system to execute the process based on the determined priority of each process. The same operational effects as those of the embodiment described above can be obtained.

なお、図6において、統合ステートマネージャ46bは、統合オペレーティングシステム46aの起動、停止を制御し、個別ステートマネージャ46d,46fは、個別オペレーティングシステム46c、46eの起動、停止を制御する。   In FIG. 6, the integrated state manager 46b controls the start and stop of the integrated operating system 46a, and the individual state managers 46d and 46f control the start and stop of the individual operating systems 46c and 46e.

また、サービス層46のオペレーティングシステムと、ドメイン抽象化層44とが協働して、各処理の優先順位の決定及びリソースの割り付けを行うように構成することも可能である。この場合、オペレーティングシステムとドメイン抽象化層44とに、図4及び図5のフローチャートに示した各機能を、適宜、割り振れば良い。例えば、ドメイン抽象化層44が、優先順位の高い処理に対してリソースを割り付けた場合におけるマイクロプロセッシングユニットの未使用率を算出する。そして、オペレーティングシステムが、その未使用率と、次に優先順位が低い処理の見込使用率とに基づいて、当該優先順位の低い処理の実行に必要なリソースが確保可能か否かを判定するようにしても良い。   The operating system of the service layer 46 and the domain abstraction layer 44 can cooperate to determine the priority of each process and allocate resources. In this case, the functions shown in the flowcharts of FIGS. 4 and 5 may be appropriately allocated to the operating system and the domain abstraction layer 44. For example, the domain abstraction layer 44 calculates the unused rate of the microprocessing unit when resources are allocated to a process with a high priority. Then, the operating system determines whether it is possible to secure resources necessary for executing the process with the lower priority based on the unused ratio and the expected usage ratio of the process with the next lower priority. Anyway.

より具体的な例を説明すると、例えば、優先順位の高い処理を、複数のマイクロプロセッシングユニットに分散させて処理する場合、1つのマイクロプロセッシングユニットにおける処理結果を、他のマイクロプロセッシングユニットにおける処理に用いることもあり得る。この場合、マイクロプロセッシングユニット間で処理結果の受渡しが必要になり、他のマイクロプロセッシングユニットにおける待ち時間発生の原因にもなる。このようなマイクロプロセッシングユニットにおける待ち時間(未使用率)をドメイン抽象化層44にて把握する。ドメイン抽象化層44は、マイクロプロセッシングユニットの待ち時間(未使用率)を簡単に把握することができる。そして、オペレーティングシステムにより、優先順位が低い処理が、そのマイクロプロセッシングユニットにおける待ち時間(未使用率)に収まるかどうかを判定する。オペレーティングシステムは、このような判定処理を簡単に行うことができる。このようにすれば、ドメイン抽象化層44とオペレーティングシステムとの特徴を活かしつつ、各処理の優先順位の決定及びリソースの割り付けを行うことが可能となる。   To explain a more specific example, for example, when processing with high priority is distributed to a plurality of microprocessing units, the processing result in one microprocessing unit is used for processing in another microprocessing unit. It can happen. In this case, it is necessary to pass processing results between the microprocessing units, which may cause a waiting time in other microprocessing units. The domain abstraction layer 44 grasps the waiting time (unused rate) in such a microprocessing unit. The domain abstraction layer 44 can easily grasp the waiting time (unused rate) of the microprocessing unit. Then, the operating system determines whether or not a process with a low priority falls within the waiting time (unused rate) in the microprocessing unit. The operating system can easily perform such a determination process. In this way, it is possible to determine the priority of each process and allocate resources while utilizing the characteristics of the domain abstraction layer 44 and the operating system.

また、上述した実施形態では、制御システム1が複数のドメイン10、20に区分された例について説明したが、制御システム1は、必ずしも複数のドメイン10、20に区分されたものである必要はない。単一のドメインしか有さない場合、ドメイン間連携制御用アプリケーション41aは設けられないため、マスタECU40は、ドメイン内連携制御用アプリケーション41bの処理と、単独制御用アプリケーション41cの処理との優先順位付け、及びリソースの割り付けを行うことになる。   Moreover, although embodiment mentioned above demonstrated the example in which the control system 1 was divided into the some domains 10 and 20, the control system 1 does not necessarily need to be divided into the some domains 10 and 20. . When there is only a single domain, the inter-domain linkage control application 41a is not provided, so the master ECU 40 prioritizes the processing of the intra-domain linkage control application 41b and the processing of the single control application 41c. And allocation of resources.

1 制御システム、11 運動ドメイン制御部、12 車両挙動制御部、13 前後挙動制御部、14 左右挙動制御部、15 ブレーキ制御部、16 ステアリング制御部、21 エネルギードメイン制御部、22 パワートレインコーディネータ、23 モータジェネレータコーディネータ、24 エンジン制御部、25 TM制御部、26 MG制御部、30 冷却機構、31 エンジン、32 トランスミッション、33 モータジェネレータ、34 ブレーキ装置、35 ステアリング装置 DESCRIPTION OF SYMBOLS 1 Control system, 11 Motion domain control part, 12 Vehicle behavior control part, 13 Front-rear behavior control part, 14 Left-right behavior control part, 15 Brake control part, 16 Steering control part, 21 Energy domain control part, 22 Powertrain coordinator, 23 Motor generator coordinator, 24 engine control unit, 25 TM control unit, 26 MG control unit, 30 cooling mechanism, 31 engine, 32 transmission, 33 motor generator, 34 brake device, 35 steering device

Claims (13)

アプリケーションソフトを記憶する記憶部(41)と、
前記アプリケーションソフトには、他の電子制御装置と連携した制御を行うための連携制御用アプリケーション(41a、41b)と、前記他の電子制御装置とは独立して、単独で制御を行うための単独制御用アプリケーション(41c)とが含まれており、
前記連携制御用アプリケーションに含まれる処理及び前記単独制御用アプリケーションに含まれる処理をそれぞれ実行するものであり、リソースとして、少なくともマイクロプロセッシングユニットを備えたマイクロコントローラ(48)と、
前記連携制御用アプリケーションに含まれる処理と、前記単独制御用アプリケーションに含まれる処理とを同時期に実行する必要が生じたとき、それぞれの処理の内容に基づき、いずれを優先するべきかを決定する決定部(S120)と、
前記決定部によって決定された優先順位に従い、優先順位が高い処理から、その処理の実行に必要な前記リソースを確保して、該当する処理に割り付けるリソース割付部(S130)と、を備える電子制御装置。
A storage unit (41) for storing application software;
The application software includes a cooperative control application (41a, 41b) for performing control in cooperation with another electronic control device, and a single for performing control independently of the other electronic control device. Control application (41c) is included,
A microcontroller (48) including at least a microprocessing unit as a resource for executing the processing included in the cooperative control application and the processing included in the single control application,
When it becomes necessary to execute the process included in the cooperative control application and the process included in the single control application at the same time, it determines which one should be given priority based on the contents of each process. A determination unit (S120);
An electronic control device comprising: a resource allocation unit (S130) that secures the resources necessary for execution of a process from a higher priority process according to the priority determined by the determination unit and allocates the resource to the corresponding process .
前記リソース割付部は、単位時間における前記マイクロプロセッシングユニットの未使用率と、優先順位が低い処理の見込使用率とに基づいて、当該優先順位の低い処理の実行に必要な前記リソースが確保可能か否かを判定する請求項1に記載の電子制御装置。   Whether the resource allocation unit can secure the resources necessary for execution of the low priority processing based on the unused rate of the microprocessing unit per unit time and the expected usage rate of the low priority processing The electronic control device according to claim 1, which determines whether or not. 前記マイクロコントローラは、複数のマイクロプロセッシングユニットを含み、
前記リソース割付部は、処理が割り付けられていないマイクロプロセッシングユニットが残されているか否かに基づき、優先順位が低い処理の実行に必要な前記リソースが確保可能か否かを判定する請求項1に記載の電子制御装置。
The microcontroller includes a plurality of microprocessing units;
The resource allocation unit determines whether or not the resource necessary for execution of a process with a low priority can be secured based on whether or not there remains a microprocessing unit to which no process is allocated. The electronic control device described.
前記リソース割付部により前記リソースが確保できない処理は、前記リソースが利用可能となるまで、実行が待機される請求項2又は3に記載の電子制御装置。   The electronic control device according to claim 2, wherein execution of the process in which the resource cannot be secured by the resource allocation unit is waited until the resource becomes available. 前記リソース割付部は、前記リソースが確保できない処理を、より少ないリソースにて処理可能なサブ処理に分割し、その分割したサブ処理に対して前記リソースを確保して割りつける請求項2に記載の電子制御装置。   3. The resource allocation unit according to claim 2, wherein the resource allocation unit divides a process in which the resource cannot be secured into sub-processes that can be processed with fewer resources, and secures and allocates the resource to the divided sub-processes. Electronic control device. ソフトウエア構造として、
前記電子制御装置の基本動作を実現する基本ソフトウエア(43〜47)と、当該基本ソフトウエアと前記アプリケーションソフト間の通信を提供するランタイム環境(42)とを有し、
前記基本ソフトウエアは、前記マイクロコントローラを抽象化するマイクロコントローラ抽象化層(43)と、前記マイクロコントローラ抽象化層の上位に位置付けられ、前記電子制御装置の基本コンポーネントを抽象化するECU抽象化層(45)と、オペレーティングシステムを含むサービス層(46)とを含み、
前記マイクロコントローラ抽象化層とECU抽象化層との間に、前記決定部及び前記リソース割付部として機能するドメイン抽象化層(44)を設けた請求項1乃至5のいずれかに記載の電子制御装置。
As software structure,
Basic software (43 to 47) for realizing the basic operation of the electronic control device, and a runtime environment (42) for providing communication between the basic software and the application software,
The basic software includes a microcontroller abstraction layer (43) that abstracts the microcontroller and an ECU abstraction layer that is positioned above the microcontroller abstraction layer and abstracts the basic components of the electronic control unit. (45) and a service layer (46) including an operating system,
The electronic control according to any one of claims 1 to 5, wherein a domain abstraction layer (44) functioning as the determination unit and the resource allocation unit is provided between the microcontroller abstraction layer and the ECU abstraction layer. apparatus.
前記ドメイン抽象化層(44)は、前記オペレーティングシステムと協働して、前記決定部及び前記リソース割付部として機能するものであって、前記ドメイン抽象化層が、優先順位の高い処理に対して前記リソースを割り付けた場合における前記マイクロプロセッシングユニットの未使用率を算出し、前記オペレーティングシステムが、その未使用率と、優先順位が低い処理の見込使用率とに基づいて、当該優先順位の低い処理の実行に必要な前記リソースが確保可能か否かを判定する請求項6に記載の電子制御装置。   The domain abstraction layer (44) functions as the determining unit and the resource allocating unit in cooperation with the operating system, and the domain abstraction layer performs processing with a high priority. When the resource is allocated, the unused rate of the microprocessing unit is calculated, and the operating system performs processing with the lower priority based on the unused rate and the expected usage rate of the process with lower priority. The electronic control device according to claim 6, wherein it is determined whether or not the resource necessary for execution of the resource can be secured. ソフトウエア構造として、
前記電子制御装置の基本動作を実現する基本ソフトウエア(43〜47)と、当該基本ソフトウエアと前記アプリケーションソフト間の通信を提供するランタイム環境(42)とを有し、
前記基本ソフトウエアは、前記マイクロコントローラを抽象化するマイクロコントローラ抽象化層(43)と、前記電子制御装置の基本コンポーネントを抽象化するECU抽象化層(45)と、オペレーティングシステム(46a、46c、46e)を含むサービス層(46)とを含み、
前記サービス層のオペレーティングシステムが、前記決定部及び前記リソース割付部としての機能を含む請求項1乃至5のいずれかに記載の電子制御装置。
As software structure,
Basic software (43 to 47) for realizing the basic operation of the electronic control device, and a runtime environment (42) for providing communication between the basic software and the application software,
The basic software includes a microcontroller abstraction layer (43) that abstracts the microcontroller, an ECU abstraction layer (45) that abstracts basic components of the electronic control device, an operating system (46a, 46c, 46e) including a service layer (46),
The electronic control device according to claim 1, wherein an operating system of the service layer includes functions as the determination unit and the resource allocation unit.
前記オペレーティングシステムは、前記マイクロプロセッシングユニット毎に設けられ、各マイクロプロセッシングユニットにおける処理をスケジューリングする個別オペレーティングシステム(46c、46e)と、前記個別オペレーティングシステムの処理を統括する統合オペレーティングシステム(46a)とを有し、
統合オペレーティングシステムが、各処理の優先順位に基づき、前記個別オペレーティングシステムに対して実行すべき処理を指示する請求項8に記載の電子制御装置。
The operating system is provided for each microprocessing unit, and includes an individual operating system (46c, 46e) that schedules processing in each microprocessing unit, and an integrated operating system (46a) that supervises the processing of the individual operating system. Have
The electronic control device according to claim 8, wherein the integrated operating system instructs the individual operating system to execute a process based on the priority of each process.
前記電子制御装置は、車両に搭載された複数の車載装置(30〜35)を制御する制御システム(1)に適用されるものであり、
前記制御システムは、前記複数の車載装置の機能に応じて予め複数のドメイン(10、20)に区分けされ、それら複数のドメインにおいて、それぞれ、前記車載装置を制御するためのスレーブECU(15、16、24〜26)と、前記スレーブECUを統括するマスタECU(13,14、22、23)とに階層化され、
前記電子制御装置は、各ドメインのマスタECUとして利用されるものである請求項1乃至9のいずれかに記載の電子制御装置。
The electronic control device is applied to a control system (1) for controlling a plurality of in-vehicle devices (30 to 35) mounted on a vehicle,
The control system is divided into a plurality of domains (10, 20) in advance according to the functions of the plurality of in-vehicle devices, and slave ECUs (15, 16) for controlling the in-vehicle devices in the plurality of domains, respectively. 24 to 26) and a master ECU (13, 14, 22, 23) that supervises the slave ECU,
The electronic control device according to claim 1, wherein the electronic control device is used as a master ECU of each domain.
前記連携制御用アプリケーションは、同じドメインに属するスレーブECUへの制御指令値を作成して出力するためのドメイン内連携制御用アプリケーション(41b)と、異なるドメインに属するマスタECUとの間で協調制御を行うためのドメイン間連携制御用アプリケーション(41a)とを含み、
前記決定部は、前記ドメイン内連携制御用アプリケーションに含まれる処理と、前記ドメイン間連携制御用アプリケーションに含まれる処理とを同時期に実行する必要が生じたとき、原則として、前記ドメイン間連携制御用アプリケーションに含まれる処理を優先すべきと決定する請求項10に記載の電子制御装置。
The cooperative control application performs cooperative control between an intra-domain cooperative control application (41b) for creating and outputting a control command value to a slave ECU belonging to the same domain, and a master ECU belonging to a different domain. Application for inter-domain linkage control (41a) for performing
When the determination unit needs to execute the process included in the intra-domain cooperation control application and the process included in the inter-domain cooperation control application at the same time, in principle, the inter-domain cooperation control The electronic control device according to claim 10, wherein it is determined that the process included in the application for use should be prioritized.
前記決定部は、前記ドメイン内連携制御用アプリケーションに含まれる処理が、即時に実行することが必要な種類の処理である場合には、前記ドメイン内連携制御用アプリケーションに含まれる処理を優先すべきと決定する請求項11に記載の電子制御装置。   The determination unit should give priority to the process included in the intra-domain cooperation control application when the process included in the intra-domain cooperation control application is a type of process that needs to be executed immediately. The electronic control device according to claim 11, which is determined as follows. 前記単独制御用アプリケーションは、割込み処理と同期処理との少なくとも一方の処理を含み、
前記決定部は、前記単独制御用アプリケーションに含まれる処理と、前記連携制御用アプリケーションに含まれる処理とを同時期に実行する必要が生じたとき、前記単独制御用アプリケーションに含まれる処理が、前記割込み処理又は前記同期処理である場合、前記単独制御用アプリケーションに含まれる処理を優先すべきと決定し、前記割込み処理又は前記同期処理以外の処理である場合、前記連携制御用アプリケーションに含まれる処理を優先すべきと決定する請求項1乃至請求項12のいずれかに記載の電子制御装置。
The single control application includes at least one of interrupt processing and synchronization processing,
When the determination unit needs to execute the process included in the single control application and the process included in the cooperative control application at the same time, the process included in the single control application When it is an interrupt process or the synchronous process, it is determined that the process included in the single control application should be prioritized, and when it is a process other than the interrupt process or the synchronous process, the process included in the cooperative control application The electronic control device according to claim 1, wherein it is determined that priority should be given.
JP2015220546A 2015-11-10 2015-11-10 Electronic control unit Active JP6477430B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015220546A JP6477430B2 (en) 2015-11-10 2015-11-10 Electronic control unit
DE102016222091.8A DE102016222091A1 (en) 2015-11-10 2016-11-10 ELECTRONIC CONTROL UNIT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015220546A JP6477430B2 (en) 2015-11-10 2015-11-10 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2017091214A true JP2017091214A (en) 2017-05-25
JP6477430B2 JP6477430B2 (en) 2019-03-06

Family

ID=58585450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015220546A Active JP6477430B2 (en) 2015-11-10 2015-11-10 Electronic control unit

Country Status (2)

Country Link
JP (1) JP6477430B2 (en)
DE (1) DE102016222091A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021506002A (en) * 2017-12-08 2021-02-18 京東方科技集團股▲ふん▼有限公司Boe Technology Group Co.,Ltd. Resource processing methods and systems, storage media, electronic devices
KR20210088486A (en) * 2018-10-18 2021-07-14 도요타지도샤가부시키가이샤 Vehicular arbitration system
US11558218B2 (en) 2018-06-06 2023-01-17 Renesas Electronics Corporation Semiconductor device and information processing method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943957B (en) * 2018-09-21 2022-04-15 郑州信大捷安信息技术股份有限公司 Safety communication system and method for vehicle intranet
CN112445546B (en) * 2019-08-31 2022-10-18 比亚迪股份有限公司 Electric vehicle, process management method and device thereof, storage medium and electronic equipment
CN111290313B (en) * 2020-02-20 2021-06-01 浙江大学 CAN bus communication delay solving method and system for AUTOSAR network management
US20230261961A1 (en) * 2020-08-25 2023-08-17 Siemens Industry Software Inc. System and method for simulation and testing of multiple virtual ecus
DE102021104977B8 (en) 2021-03-02 2022-06-23 Audi Aktiengesellschaft Method for operating a motor vehicle and motor vehicle

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006142994A (en) * 2004-11-19 2006-06-08 Denso Corp Network system for vehicle and electronic control device
JPWO2008062512A1 (en) * 2006-11-21 2010-03-04 富士通株式会社 Multiprocessor system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011014033A (en) 2009-07-03 2011-01-20 Toyota Motor Corp On-board information processing apparatus, and vehicle control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006142994A (en) * 2004-11-19 2006-06-08 Denso Corp Network system for vehicle and electronic control device
JPWO2008062512A1 (en) * 2006-11-21 2010-03-04 富士通株式会社 Multiprocessor system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021506002A (en) * 2017-12-08 2021-02-18 京東方科技集團股▲ふん▼有限公司Boe Technology Group Co.,Ltd. Resource processing methods and systems, storage media, electronic devices
JP7313351B2 (en) 2017-12-08 2023-07-24 京東方科技集團股▲ふん▼有限公司 Resource processing method and system, storage medium, electronic device
US11558218B2 (en) 2018-06-06 2023-01-17 Renesas Electronics Corporation Semiconductor device and information processing method
KR20210088486A (en) * 2018-10-18 2021-07-14 도요타지도샤가부시키가이샤 Vehicular arbitration system
KR102395759B1 (en) * 2018-10-18 2022-05-10 도요타지도샤가부시키가이샤 Vehicular arbitration system
KR20220061067A (en) * 2018-10-18 2022-05-12 도요타지도샤가부시키가이샤 Vehicular arbitration system
US11570252B2 (en) 2018-10-18 2023-01-31 Toyota Jidosha Kabushiki Kaisha Vehicular arbitration system
KR102551126B1 (en) 2018-10-18 2023-07-05 도요타지도샤가부시키가이샤 Vehicular arbitration system

Also Published As

Publication number Publication date
DE102016222091A1 (en) 2017-05-11
JP6477430B2 (en) 2019-03-06

Similar Documents

Publication Publication Date Title
JP6477430B2 (en) Electronic control unit
JP7230945B2 (en) Control device, manager, system, control method and vehicle
US11697415B2 (en) Braking force control system, device, and method
US20070142987A1 (en) Vehicle integrated control system
JP6504065B2 (en) Vehicle control system
JP6500672B2 (en) Control system
CN113276837B (en) Control device, manager, method, non-transitory storage medium, actuator system, and vehicle
JP2018085686A (en) Vehicular control system
JP6551239B2 (en) Vehicle control system
JP2017105362A (en) Control system
CN110217221B (en) Cruise control method and device, vehicle control unit, vehicle and readable storage medium
JP2024009286A (en) Control device, braking/driving force control system, method and program
JPWO2019069409A1 (en) Vehicle control method and control device
JP2016190505A (en) Control system
JP6900163B2 (en) Control system
JP7107358B2 (en) Control device, manager, system, control method and vehicle
JP2019109744A (en) Automobile electronic controller
JP6406082B2 (en) Control system
US20220355785A1 (en) Control Unit and Method for Operating an Electric Machine of a Hybrid Drive
JP2021045987A (en) Control system for vehicle
JP7243788B2 (en) Control device, manager, system, control method, program and vehicle
JP7243787B2 (en) Control device, manager, system, control method, program and vehicle
JP7243786B2 (en) Control device, manager, system, control method, program and vehicle
JP7243790B2 (en) Control device, manager, system, control method, program and vehicle
JP7243789B2 (en) Control device, manager, system, control method, program and vehicle

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181023

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181126

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: 20190108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190121

R151 Written notification of patent or utility model registration

Ref document number: 6477430

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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