[go: up one dir, main page]

JP2013199180A - On-vehicle control device - Google Patents

On-vehicle control device Download PDF

Info

Publication number
JP2013199180A
JP2013199180A JP2012068049A JP2012068049A JP2013199180A JP 2013199180 A JP2013199180 A JP 2013199180A JP 2012068049 A JP2012068049 A JP 2012068049A JP 2012068049 A JP2012068049 A JP 2012068049A JP 2013199180 A JP2013199180 A JP 2013199180A
Authority
JP
Japan
Prior art keywords
processing
unit
request
processing units
units
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012068049A
Other languages
Japanese (ja)
Inventor
Atsushi Miki
敦志 三木
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
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 Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2012068049A priority Critical patent/JP2013199180A/en
Publication of JP2013199180A publication Critical patent/JP2013199180A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

【課題】複数の処理部の動作状態を変更して消費電力を低減し、処理要求に応じて処理能力を高めることができる車載制御装置を提供する。
【解決手段】複数の処理部からなる処理回路部により車載機器の制御処理を行うECUにおいて、車載機器に対する処理要求に基づいて、車載機器に対する制御処理を行う処理部の数を増加させるか否かを判定する(S3)。IGスイッチがオン状態である場合に処理回路部の全ての処理部を動作状態とする変更を行い(S4)、IGスイッチがオフ状態である場合に処理回路部の一部の処理部を動作状態とし、処理回路部の残りの処理部を非動作状態とする変更を行う(S6)。また、IGスイッチがオフ状態であり、制御処理を行う処理部の数を増加させると判定した場合に動作状態とする処理部の数を増加させる(S4)。
【選択図】図5
A vehicle-mounted control device is provided that can reduce the power consumption by changing the operating states of a plurality of processing units and increase the processing capability in response to a processing request.
Whether or not to increase the number of processing units that perform control processing for an in-vehicle device based on a processing request for the in-vehicle device in an ECU that performs control processing of the in-vehicle device by a processing circuit unit including a plurality of processing units Is determined (S3). When the IG switch is on, all the processing units of the processing circuit unit are changed to the operating state (S4), and when the IG switch is off, some processing units of the processing circuit unit are operating. The remaining processing unit of the processing circuit unit is changed to a non-operating state (S6). Further, when the IG switch is in the off state and it is determined that the number of processing units that perform the control process is increased, the number of processing units that are in the operating state is increased (S4).
[Selection] Figure 5

Description

本発明は、複数の被制御機器に対する制御処理を行う車載制御装置に関する。   The present invention relates to an in-vehicle control device that performs control processing for a plurality of controlled devices.

近年、自動車の分野においては、車輌の高機能化が益々進んでおり、多種多様な機器が車輌に搭載され、これら車載機器を制御するための制御装置、所謂ECU(Electronic Control Unit)が多数搭載されている。例えば、ユーザのスイッチ操作などに応じてドアの開閉、ドアロックの施錠/開錠、ヘッドライトのオン/オフ、並びにワイパーのオン/オフ及び間欠駆動等の制御を行うボディ系ECU、エンジンの制御を行うエンジン制御ECU、運転席近傍に配設されるメータ類の動作を制御するメータ系ECU、並びにカーナビゲーションシステムの制御を行うナビECU等の種々のECUが車輌には搭載されている。   In recent years, in the field of automobiles, higher functions of vehicles have been increasingly advanced, and a wide variety of devices are mounted on vehicles, and a large number of so-called ECUs (Electronic Control Units) for controlling these on-vehicle devices are mounted. Has been. For example, a body ECU that controls the opening / closing of a door, locking / unlocking of a door lock, turning on / off of a headlight, turning on / off of a wiper, and intermittent driving according to a user's switch operation, etc. The vehicle includes various ECUs such as an engine control ECU that performs the above, a meter system ECU that controls the operation of meters disposed near the driver's seat, and a navigation ECU that controls the car navigation system.

ECUは、マイクロコンピュータ等の演算処理装置によって構成されており、制御プログラムを読み込んで実行することにより、車載機器の各種制御が実現される。昨今では、車輌を高機能化するために、処理能力の高いマイクロコンピュータが使用される傾向にあり、特にマルチコアと呼ばれる複数の処理部を備え、並列的な制御処理を車輌に応用する技術の研究開発が盛んに行われている。   The ECU is configured by an arithmetic processing unit such as a microcomputer, and various controls of the in-vehicle devices are realized by reading and executing a control program. In recent years, microcomputers with high processing capabilities tend to be used to enhance the functionality of vehicles, and in particular, research on technology that has multiple processing units called multi-cores and applies parallel control processing to vehicles. Development is actively underway.

一般的に、処理能力の高いマイクロコンピュータは消費電力が大きいため、限られた電源バッテリにとっては大きな負荷になる。特に車輌のイグニッションスイッチ(以下、IGスイッチと表記する。)がオフ位置又はアクセサリ位置にあってエンジンが動作していない状態では、バッテリ電力は回生されないため、消費電力を抑えながらも特定の機能を確保するような状態にしておく必要がある。   In general, a microcomputer with high processing capacity consumes a large amount of power, and therefore a heavy load is imposed on a limited power source battery. In particular, when the vehicle ignition switch (hereinafter referred to as IG switch) is in the off position or accessory position and the engine is not operating, battery power is not regenerated. It needs to be in a state to ensure.

例えば、特許文献1には、制御処理を行う複数の処理部を備えるエンジン制御用のECUが開示されている。このエンジン制御ECUでは、エンジン制御中は複数のCPUコア(処理部)を全て使用して最大処理能力が発揮できるエンジン制御モードを選択する。一方、IGスイッチがオフ位置にある場合には単一のCPUコアのみを動作させ、制御プログラムの書換えのためにIGスイッチがアクセサリ位置に変化したときに複数のCPUコアを動作させるようにしてある。特許文献1に開示されているエンジン制御ECUは、動作させるCPUコアの数をIGスイッチの位置によって変更することにより消費電力を効果的に低減できるとしている。   For example, Patent Document 1 discloses an ECU for engine control including a plurality of processing units that perform control processing. In the engine control ECU, during engine control, an engine control mode in which a plurality of CPU cores (processing units) are all used and the maximum processing capacity can be exhibited is selected. On the other hand, when the IG switch is in the OFF position, only a single CPU core is operated, and a plurality of CPU cores are operated when the IG switch is changed to the accessory position for rewriting the control program. . The engine control ECU disclosed in Patent Document 1 is able to effectively reduce power consumption by changing the number of CPU cores to be operated according to the position of the IG switch.

特開2008−269487号公報JP 2008-269487 A

しかしながら、特許文献1に記載のECUでは、単一の処理部によって動作している場合に、実行する制御処理が追加されて処理負荷が増大しても、動作させる処理部の数を増加させることができない。このため、例えば、定期的な自己診断処理のように処理数の多い制御処理が発生するような場合では、ECUに接続された車載機器等との間の入出力処理、処理部における比較演算処理等が増加し、単一の処理部のみでは処理時間が長くなってしまうという問題点があった。   However, in the ECU described in Patent Document 1, when the operation is performed by a single processing unit, the number of processing units to be operated is increased even if the control processing to be executed is added to increase the processing load. I can't. For this reason, for example, when a control process with a large number of processes occurs, such as a periodic self-diagnosis process, an input / output process with an in-vehicle device or the like connected to the ECU, a comparison calculation process in the processing unit Etc., and the processing time becomes long with only a single processing unit.

また、ボディ系ECUのように接続されている車載機器の数が他のECUに比べて多いECUでは、他のECUからの処理要求に応じて接続されている車載機器の情報を取得し、通知する処理などが数多く発生する可能性があり、単一の処理部のみでは処理が間に合わなくなるという問題点もあった。   In addition, in an ECU in which the number of in-vehicle devices connected as in the body system ECU is larger than in other ECUs, information on the in-vehicle devices connected in response to processing requests from other ECUs is acquired and notified. There is a possibility that a large number of processes are generated, and there is a problem that the process cannot be performed in time with only a single processing unit.

本発明は、斯かる事情に鑑みてなされたものであって、その目的とするところは、複数の処理部の動作状態を変更して消費電力を低減し、処理要求に応じて処理能力を高めることができる車載制御装置を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to reduce the power consumption by changing the operation state of a plurality of processing units and to increase the processing capacity in response to a processing request. It is providing the vehicle-mounted control apparatus which can be performed.

本発明に係る車載制御装置は、車輌に搭載された複数の被制御機器に対する制御処理を複数の処理部により行う車載制御装置において、イグニッションスイッチのオン/オフの状態を取得する取得手段と、前記被制御機器に対する処理要求を受け付ける要求受付手段と、該要求受付手段が受け付けた処理要求に基づいて、前記被制御機器に対する制御処理を行う処理部の数を増加させるか否かを判定する判定手段と、前記取得手段がオン状態を取得した場合に前記複数の処理部の全てを動作状態とする変更を行い、前記取得手段がオフ状態を取得した場合に前記複数の処理部の一部を動作状態とし、前記複数の処理部の残部を非動作状態とする変更を行い、前記取得手段がオフ状態を取得し、前記判定手段が制御処理を行う処理部の数を増加させると判定した場合に動作状態とする処理部の数を増加させる動作変更手段とを備えること特徴とする。   The in-vehicle control device according to the present invention is an in-vehicle control device that performs control processing for a plurality of controlled devices mounted on a vehicle by a plurality of processing units, an acquisition unit that acquires an on / off state of an ignition switch, A request receiving unit that receives a processing request for the controlled device, and a determination unit that determines whether or not to increase the number of processing units that perform control processing for the controlled device based on the processing request received by the request receiving unit. And when the acquisition unit acquires an on state, changes all of the plurality of processing units to an operating state, and when the acquisition unit acquires an off state, operates a part of the plurality of processing units. And changing the rest of the plurality of processing units to the non-operating state, the acquisition unit acquires an off state, and the determination unit increases the number of processing units that perform control processing. Wherein further comprising an operation changing means of increasing the number of processing units and operating state when it is determined that cause.

本発明にあっては、車載制御装置は、車輌に搭載された複数の被制御機器に対する制御処理を複数の処理部により行う。取得手段により、イグニッションスイッチのオン/オフの状態を取得し、判定手段により、被制御機器に対する処理要求に基づいて、被制御機器に対する制御処理を行う処理部の数を増加させるか否かを判定する。動作変更手段は、取得手段がオン状態を取得した場合に複数の処理部の全てを動作状態とする変更を行い、取得手段がオフ状態を取得した場合に複数の処理部の一部を動作状態とし、複数の処理部の残部を非動作状態とする変更を行う。また、動作変更手段は、取得手段がオフ状態を取得し、判定手段が制御処理を行う処理部の数を増加させると判定した場合に動作状態とする処理部の数を増加させる。これにより、イグニッションスイッチがオフ状態で、複数の処理部の一部を動作状態とし、残部を非動作状態として消費電力を低減する動作モードから、被制御機器に対する処理要求に応じて処理部の数を増加させる変更を行い、処理能力を高めることができる。   In the present invention, the in-vehicle control device performs control processing for a plurality of controlled devices mounted on a vehicle by a plurality of processing units. The acquisition unit acquires the on / off state of the ignition switch, and the determination unit determines whether to increase the number of processing units that perform control processing for the controlled device based on the processing request for the controlled device. To do. The operation changing unit changes all of the plurality of processing units to the operating state when the acquiring unit acquires the on state, and when the acquiring unit acquires the off state, some of the plurality of processing units are in the operating state. And changing the remaining portions of the plurality of processing units to the non-operating state. In addition, the operation changing unit increases the number of processing units that are in the operating state when the acquiring unit acquires the off state and the determination unit determines to increase the number of processing units that perform control processing. As a result, from the operation mode in which the ignition switch is in an off state, a part of the plurality of processing units is set in the operating state, and the remaining part is set in the non-operating state to reduce power consumption, Can be changed to increase the processing capacity.

本発明に係る車載制御装置は、前記要求受付手段が受け付けた処理要求に基づく処理の数を計数する計数手段を備え、前記判定手段は、前記計数手段により計数した処理数が所定値以上である場合に、制御処理を行う処理部の数を増加させると判定することを特徴とする。   The in-vehicle control device according to the present invention includes a counting unit that counts the number of processes based on the processing request received by the request receiving unit, and the determination unit has a processing number counted by the counting unit equal to or greater than a predetermined value. In this case, it is determined that the number of processing units that perform control processing is increased.

本発明にあっては、計数手段により、処理要求に基づく処理の数を計数し、判定手段は、計数手段により計数した処理数が所定値以上である場合に、制御処理を行う処理部の数を増加させると判定する。計数手段によって処理要求に基づく処理数を確実に計数し、処理数が所定値以上に増大した場合に処理部の数を増加させることができる。   In the present invention, the counting unit counts the number of processes based on the processing request, and the determining unit counts the number of processing units that perform control processing when the number of processes counted by the counting unit is equal to or greater than a predetermined value. Is determined to increase. The number of processes based on the processing request can be reliably counted by the counting means, and the number of processing units can be increased when the number of processes increases to a predetermined value or more.

本発明に係る車載制御装置は、特定の高負荷処理要求を記憶する記憶手段を備え、前記判定手段は、前記要求受付手段が受け付けた処理要求が前記記憶手段に記憶してある特定の高負荷処理要求と一致する場合に、制御処理を行う処理部の数を増加させると判定することを特徴とする。   The in-vehicle control device according to the present invention includes a storage unit that stores a specific high load processing request, and the determination unit includes a specific high load in which the processing request received by the request reception unit is stored in the storage unit. In the case where it matches the processing request, it is determined that the number of processing units that perform control processing is increased.

本発明にあっては、記憶手段に特定の高負荷処理要求を記憶しておき、判定手段は、処理要求が記憶してある特定の高負荷処理要求と一致する場合に、制御処理を行う処理部の数を増加させると判定する。高負荷処理要求は、例えばセキュリティ処理、外部故障診断処理、自己診断処理等であり、入出力処理等の処理が高負荷となる状況が発生することが予測される制御処理を要求する処理要求である。高負荷処理要求が受け付けられ、高負荷処理が必要であることに対応して処理部の数を増加させることができる。   In the present invention, a specific high load processing request is stored in the storage unit, and the determination unit performs a process of performing a control process when the processing request matches a specific high load processing request stored in the storage unit. It is determined that the number of copies is increased. The high load processing request is, for example, a security process, an external failure diagnosis process, a self-diagnosis process, etc., and a process request for requesting a control process that is predicted to cause a high load on the input / output process. is there. The number of processing units can be increased in response to the fact that a high load processing request is accepted and high load processing is required.

本発明に係る車載制御装置は、前記特定の高負荷処理要求が、前記被制御機器が所定の順序で動作しているか否かを確認する複数の処理を要求する処理要求であることを特徴とする。   The in-vehicle control device according to the present invention is characterized in that the specific high load processing request is a processing request for requesting a plurality of processes for confirming whether or not the controlled device is operating in a predetermined order. To do.

本発明にあっては、特定の高負荷処理要求が、被制御機器が所定の順序で動作しているか否かを確認する複数の処理を要求する処理要求である場合に対応して処理部の数を増加させることができる。例えば、セキュリティ処理を実行中である場合、複数の車載機器が所定の順序で正しく動作しているかを確認するための複数の処理が、1つの車載機器からの入力信号をトリガにして発生する状況が予測され、このような処理に対して、処理部の数を増加させて対応することができる。   In the present invention, in response to a case where the specific high load processing request is a processing request for requesting a plurality of processes for confirming whether or not the controlled device is operating in a predetermined order, The number can be increased. For example, when security processing is being executed, a situation in which a plurality of processes for confirming whether a plurality of in-vehicle devices are operating correctly in a predetermined order is triggered by an input signal from one in-vehicle device Therefore, it is possible to cope with such processing by increasing the number of processing units.

本発明に係る車載制御装置は、前記特定の高負荷処理要求が、前記被制御機器に故障が生じているか否かを確認する複数の処理を要求する処理要求であることを特徴とする。   The in-vehicle control device according to the present invention is characterized in that the specific high load processing request is a processing request for requesting a plurality of processes for confirming whether or not a failure has occurred in the controlled device.

本発明にあっては、特定の高負荷処理要求が、被制御機器に故障が生じているか否かを確認する複数の処理を要求する処理要求である場合に対応して処理部の数を増加させることができる。例えば、外部故障診断処理、自己診断処理では、複数の車載機器に故障が生じていないかを確認するための複数の処理が発生する状況となることが診断処理シーケンス上で予定されており、このような処理に対して、処理部の数を増加させて対応することができる。   In the present invention, the number of processing units is increased in response to a case where a specific high-load processing request is a processing request for requesting a plurality of processes for checking whether or not a failure occurs in the controlled device. Can be made. For example, in the external failure diagnosis process and the self-diagnosis process, it is planned on the diagnosis process sequence that a plurality of processes for confirming whether or not a plurality of in-vehicle devices have a failure will occur. Such processing can be dealt with by increasing the number of processing units.

本発明に係る車載制御装置は、前記要求受付手段により受け付ける処理要求に基づく処理を前記被制御機器へ制御信号を出力する出力処理、及び該出力処理の実行前に処理要求に基づき前記処理部で実行する出力前処理に分類して前記複数の処理部に割り当てる処理割当手段を備え、前記複数の処理部が同時的に出力前処理及び出力処理を行うようにしてあることを特徴とする。   The in-vehicle control device according to the present invention includes: an output process for outputting a control signal to the controlled device based on a process request received by the request receiving unit; and the processing unit based on the process request before executing the output process. A process allocating unit that is classified into output pre-processing to be executed and assigned to the plurality of processing units is provided, and the plurality of processing units simultaneously perform pre-output processing and output processing.

本発明にあっては、処理割当手段により、処理要求に基づく処理を被制御機器へ制御信号を出力する出力処理、及び該出力処理の実行前に処理要求に基づき処理部で実行する出力前処理に分類して複数の処理部に割り当て、複数の処理部が同時的に出力前処理及び出力処理を行うようにしてある。これにより、複数の処理部が同時に処理を進めることができ、処理能力を高めることができる。   In the present invention, an output process for outputting a control signal to a controlled device by a process allocation unit, based on the process request, and an output pre-process executed by the processing unit based on the process request before the execution of the output process Are assigned to a plurality of processing units, and the plurality of processing units simultaneously perform pre-output processing and output processing. Thereby, a some processing part can advance a process simultaneously, and a processing capability can be improved.

本発明に係る車載制御装置は、前記処理割当手段が、出力前処理及び出力処理毎に前記複数の処理部における処理負荷が略均等となるように前記複数の処理部に処理を割り当てることを特徴とする。   The in-vehicle control device according to the present invention is characterized in that the process allocating unit allocates processes to the plurality of processing units so that processing loads in the plurality of processing units are substantially equal for each output pre-processing and output process. And

本発明にあっては、処理割当手段が、出力前処理及び出力処理毎に複数の処理部における処理負荷が略均等となるように複数の処理部に処理を割り当てる。これにより、複数の処理部での処理待ち時間を低減することができ、処理能力を高めることができる。   In the present invention, the process assigning means assigns processes to the plurality of processing units so that the processing loads in the plurality of processing units become substantially equal for each pre-output process and output process. Thereby, the processing waiting time in a some processing part can be reduced, and processing capacity can be improved.

本発明によれば、車載制御装置は、車輌に搭載された複数の被制御機器に対する制御処理を複数の処理部により行う。取得手段により、イグニッションスイッチのオン/オフの状態を取得し、判定手段により、被制御機器に対する処理要求に基づいて、前記被制御機器に対する制御処理を行う処理部の数を増加させるか否かを判定する。動作変更手段には、取得手段がオン状態を取得した場合に複数の処理部の全てを動作状態とする変更を行い、取得手段がオフ状態を取得した場合に複数の処理部の一部を動作状態とし、複数の処理部の残部を非動作状態とする変更を行う。また、動作変更手段は、取得手段がオフ状態を取得し、判定手段が制御処理を行う処理部の数を増加させると判定した場合に動作状態とする処理部の数を増加させる。このため、イグニッションスイッチがオフ状態で、複数の処理部の一部を動作状態とし、残部を非動作状態として消費電力を低減する動作モードから、被制御機器に対する処理要求に応じて処理部の数を増加させる変更を行い、処理能力を高めることができる。   According to the present invention, the in-vehicle control device performs control processing for a plurality of controlled devices mounted on a vehicle by a plurality of processing units. The acquisition means acquires the on / off state of the ignition switch, and the determination means determines whether to increase the number of processing units that perform control processing for the controlled device based on a processing request for the controlled device. judge. When the acquisition unit acquires the on state, the operation change unit changes all of the plurality of processing units to the operation state, and when the acquisition unit acquires the off state, some of the plurality of processing units operate. The state is changed, and the rest of the plurality of processing units is changed to the non-operating state. In addition, the operation changing unit increases the number of processing units that are in the operating state when the acquiring unit acquires the off state and the determination unit determines to increase the number of processing units that perform control processing. For this reason, from the operation mode in which the ignition switch is in the off state, a part of the plurality of processing units is in the operating state, and the remaining part is in the non-operating state to reduce the power consumption, the number of processing units in accordance with the processing request to the controlled device Can be changed to increase the processing capacity.

本発明の実施の形態に係る車輌制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the vehicle control apparatus which concerns on embodiment of this invention. 処理回路部の動作モードについて説明するための模式図である。It is a schematic diagram for demonstrating the operation mode of a processing circuit part. 処理回路部におけるソフトウェアによる機能を説明するための模式図である。It is a schematic diagram for demonstrating the function by the software in a processing circuit part. 動作モード設定部での処理機能を説明するための模式図である。It is a schematic diagram for demonstrating the processing function in an operation mode setting part. 処理回路部の動作モード設定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the operation mode setting process of a processing circuit part. 高負荷ポートデータ処理の種類を記述したテーブルを示す図表である。It is a chart which shows the table which described the kind of high load port data processing. 処理割当部による割当処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the allocation process by a process allocation part. 処理割当テーブルの一例について説明するための模式図である。It is a schematic diagram for demonstrating an example of a process allocation table. ポート処理数Nと処理部使用数との対応関係を示す図表である。It is a chart which shows the correspondence of port processing number N and processing part use number.

(実施の形態1)
以下、本発明をその実施の形態を示す図面に基づき具体的に説明する。図1は、本発明の実施の形態に係る車輌制御装置1(以下、「ECU1」と表記する)の構成を示すブロック図である。ECU1は、例えばボディ系の車載機器(被制御機器)を制御する制御装置であり、車輌に搭載されたヘッドライト80、ターンハザード81、ワイパー82、ドアロック機構83等の車載機器を制御する。即ち、ECU1は、ユーザの操作を受け付けて、ヘッドライト80及びターンハザード81の点灯/消灯、ワイパー82のオン/オフ又は間欠動作等を制御し、さらにドアロック機構83の施錠/解錠を制御するものである。
(Embodiment 1)
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof. FIG. 1 is a block diagram showing a configuration of a vehicle control device 1 (hereinafter referred to as “ECU1”) according to an embodiment of the present invention. The ECU 1 is a control device that controls, for example, a body-based in-vehicle device (controlled device), and controls in-vehicle devices such as a headlight 80, a turn hazard 81, a wiper 82, and a door lock mechanism 83 mounted on the vehicle. That is, the ECU 1 receives a user operation, controls the turning on / off of the headlight 80 and the turn hazard 81, the on / off or intermittent operation of the wiper 82, and the locking / unlocking of the door lock mechanism 83. To do.

ECU1は、処理回路部2、ROM3、RAM4、入出力ポート5及びCAN通信I/F6等を備えて構成されている。上記のヘッドライト80、ターンハザード81、ワイパー82、ドアロック機構83等の車載機器は、ECU1の入出力ポート5にケーブルなどを介して接続されている。入出力ポート5は、これらの車載機器との間で信号の入出力を行うことができ、処理回路部2から与えられた動作命令などを各車載機器へ出力すると共に、各車載機器から入力された情報を処理回路部2へ与える。   The ECU 1 includes a processing circuit unit 2, a ROM 3, a RAM 4, an input / output port 5, a CAN communication I / F 6, and the like. In-vehicle devices such as the headlight 80, the turn hazard 81, the wiper 82, and the door lock mechanism 83 are connected to the input / output port 5 of the ECU 1 via a cable or the like. The input / output port 5 can input / output signals to / from these in-vehicle devices, and outputs an operation command or the like given from the processing circuit unit 2 to each in-vehicle device and is input from each in-vehicle device. The information is given to the processing circuit unit 2.

処理回路部2は、複数の処理部を有して並列処理するマルチコアCPU又はマイクロコンピュータ、単一の処理部を有する複数のCPUにより並列処理する処理ユニット等であり、第1処理部21、第2処理部22、第3処理部23、第4処理部24を備える。処理回路部2は、ROM3に予め記憶されたアプリケーションプログラムを読み出して実行することにより、入出力I/F5に接続された車載機器の制御処理を行う。また処理回路部2は、制御処理を行う過程の演算などで発生した一時的なデータをRAM4に記憶しながら処理を進める。ROM3は、例えばEEPROM(Electrically Erasable Programmable ROM)等の不揮発性のメモリ素子で構成され、アプリケーションプログラム、データテーブル等が予め記憶されている。RAM4は、SRAM(Static RAM)又はDRAM(Dynamic RAM)等のメモリ素子で構成されており、処理回路部2の処理過程で発生する種々のデータ等を一時的に記憶する。   The processing circuit unit 2 includes a multi-core CPU or microcomputer that includes a plurality of processing units and performs parallel processing, a processing unit that performs parallel processing using a plurality of CPUs having a single processing unit, and the like. 2 processing part 22, 3rd processing part 23, and 4th processing part 24 are provided. The processing circuit unit 2 reads out and executes an application program stored in advance in the ROM 3 to perform control processing of the in-vehicle device connected to the input / output I / F 5. In addition, the processing circuit unit 2 advances the processing while storing temporary data generated in the process of performing the control processing in the RAM 4. The ROM 3 is composed of a nonvolatile memory element such as an EEPROM (Electrically Erasable Programmable ROM), and stores application programs, data tables, and the like in advance. The RAM 4 is configured by a memory element such as SRAM (Static RAM) or DRAM (Dynamic RAM), and temporarily stores various data generated in the processing process of the processing circuit unit 2.

CAN通信I/F6は、車輌に搭載された他のECUに車載LANを介して接続されており、CAN(Controller Area Network)プロトコルに従って他のECUとデータの送受信を行う。CAN通信I/F6は、処理回路部2から与えられたデータを送信し、他のECUから受信したデータを処理回路部2へ与える。これによりECU1は、他のECUに接続された車載機器から得られる情報をCAN通信I/F6の通信によって取得することができると共に、他のECUに接続された車載機器への動作命令などを送信して制御することができる。   The CAN communication I / F 6 is connected to another ECU mounted on the vehicle via an in-vehicle LAN, and transmits / receives data to / from another ECU according to a CAN (Controller Area Network) protocol. The CAN communication I / F 6 transmits data given from the processing circuit unit 2 and gives data received from other ECUs to the processing circuit unit 2. Thereby, the ECU 1 can acquire information obtained from the in-vehicle device connected to the other ECU through the communication of the CAN communication I / F 6 and transmits an operation command to the in-vehicle device connected to the other ECU. Can be controlled.

入出力ポート5にはIGスイッチ信号が入力されている。IGスイッチは、例えば、車輌のキーを差し込む差込穴を有し、キーを差し込んだ状態で運転者が回動操作を行うことによってエンジンを始動させる回動式のスイッチであってもよいし、運転者がボタンを押下することによってエンジンを始動させる押しボタン式のスイッチ等であってもよい。IGスイッチは、オフ位置、アクセサリ位置、オン位置、及びエンジン始動位置に段階的に切り替えられる。一般的に、オフ位置ではヘッドライト80等の照明装置が動作可能であり、アクセサリ位置では図示しないオーディオ装置、カーナビゲーション装置及びミラー駆動装置等が動作可能となる。このように、オフ位置及びアクセサリ位置では一部の車載機器のみが動作可能である。   An IG switch signal is input to the input / output port 5. The IG switch may be, for example, a rotary switch that has an insertion hole into which a vehicle key is inserted, and starts the engine when the driver performs a rotation operation with the key inserted, It may be a push button type switch that starts the engine when the driver presses the button. The IG switch is switched in stages to an off position, an accessory position, an on position, and an engine start position. In general, an illuminating device such as the headlight 80 can operate in the off position, and an audio device, a car navigation device, a mirror driving device, and the like (not shown) can operate in the accessory position. In this way, only some in-vehicle devices can operate at the off position and the accessory position.

一方、オン位置ではターンハザード81、ワイパー82、ドアロック機構83、図示しないメータ機器、空気調和装置等の多くの車載機器が動作可能となる。さらにエンジン始動位置では点火プラグに点火してエンジンを始動し、エンジン始動後はオン位置に戻る。本発明に係るECU1においては、IGスイッチがオフ位置又はアクセサリ位置にある場合をオフ状態といい、IGスイッチがオン位置又はエンジン始動位置にある場合をオン状態という。また、IGスイッチの状態変化について、オフ状態からオン状態への操作をオン操作といい、オン状態からオフ状態への操作をオフ操作という。ECU1は、入出力ポート5に入力されるIGスイッチ信号によって、IGスイッチがオン状態となっているか否かを検出することができる。   On the other hand, in the ON position, many on-vehicle devices such as the turn hazard 81, the wiper 82, the door lock mechanism 83, a meter device (not shown), and an air conditioner can operate. Further, at the engine start position, the spark plug is ignited to start the engine, and after the engine is started, the engine is returned to the on position. In the ECU 1 according to the present invention, a case where the IG switch is in the off position or the accessory position is referred to as an off state, and a case where the IG switch is in the on position or the engine start position is referred to as an on state. Regarding the state change of the IG switch, an operation from the off state to the on state is referred to as an on operation, and an operation from the on state to the off state is referred to as an off operation. The ECU 1 can detect whether or not the IG switch is in an ON state based on the IG switch signal input to the input / output port 5.

図2は、処理回路部2の動作モードについて説明するための模式図である。処理回路部2は、IGスイッチの状態、及び制御処理の処理量に応じて、単一処理部動作モードと複数処理部動作モードとに切り替えられる。単一処理部動作モードは、第1処理部21のみを動作させ、第2処理部22、第3処理部23、第4処理部24を非動作とするモードである。非動作とする処理部は、電力供給を停止する設定、又は電力供給は行うが内部回路(例えばクロック生成回路等)を部分的に停止する等の設定とし、電力消費を低減する。複数処理部動作モードは、第1処理部21、第2処理部22、第3処理部23、第4処理部24を複数動作させるモードであり、簡便には全ての処理部を動作させる。後述するように処理回路部2での処理量を段階的に評価して、第1処理部21及び第2処理部22を動作させ、第3処理部23及び第4処理部24を非動作としてもよい。同様に、第1処理部21、第2処理部22及び第3処理部23を動作させ、第4処理部24を非動作とすることもできる。また、単一処理部動作モードについては、各処理部の処理能力によっては、第1処理部21及び第2処理部22を動作させ、第3処理部23及び第4処理部24を非動作とするように、各処理部のうち一部を動作させるモードであってもよい。   FIG. 2 is a schematic diagram for explaining an operation mode of the processing circuit unit 2. The processing circuit unit 2 is switched between the single processing unit operation mode and the multiple processing unit operation mode according to the state of the IG switch and the processing amount of the control processing. The single processing unit operation mode is a mode in which only the first processing unit 21 is operated and the second processing unit 22, the third processing unit 23, and the fourth processing unit 24 are not operated. The non-operation processing unit is configured to stop power supply or to perform power supply but partially stop an internal circuit (for example, a clock generation circuit) to reduce power consumption. The multiple processing unit operation mode is a mode in which a plurality of first processing units 21, second processing unit 22, third processing unit 23, and fourth processing unit 24 are operated. For convenience, all the processing units are operated. As will be described later, the processing amount in the processing circuit unit 2 is evaluated step by step, the first processing unit 21 and the second processing unit 22 are operated, and the third processing unit 23 and the fourth processing unit 24 are not operated. Also good. Similarly, the first processing unit 21, the second processing unit 22, and the third processing unit 23 may be operated, and the fourth processing unit 24 may be disabled. Further, in the single processing unit operation mode, depending on the processing capability of each processing unit, the first processing unit 21 and the second processing unit 22 are operated, and the third processing unit 23 and the fourth processing unit 24 are not operated. As described above, a mode in which a part of each processing unit is operated may be used.

図3は、処理回路部2におけるソフトウェアによる機能を説明するための模式図である。図3にはECU1の処理回路部2がROM3に記憶されたアプリケーションプログラムを実行した場合の構成が示されている。第1処理部21は、動作モード設定部21a、処理割当部21b、処理実行部21cとして機能する。第2処理部22、第3処理部23、第4処理部24はそれぞれ処理実行部22a、処理実行部23a、処理実行部24aとして機能する。動作モード設定部21aは、入力される情報をもとに処理回路部2の動作モードを単一処理部動作モード及び複数処理部動作モードのいずれとするかを判定する。入力情報は、IGスイッチ信号、ポート入力信号及びCAN入力信号である。処理割当部21bは、ROM3に記憶した処理割当テーブル31に予め登録してある割り当て基準に基づいて、第1処理部21から第4処理部24までのいずれの処理部において処理を実行するかを決定する。割り当て基準は、処理要求に基づく制御処理の種類と、各制御処理における各処理の分類(外部入力処理、演算処理、出力処理による分類)とに基づいて、処理回路部2の各処理部への処理の割り当てを決める規則を定めるものである。   FIG. 3 is a schematic diagram for explaining functions of the processing circuit unit 2 by software. FIG. 3 shows a configuration when the processing circuit unit 2 of the ECU 1 executes an application program stored in the ROM 3. The first processing unit 21 functions as an operation mode setting unit 21a, a process allocation unit 21b, and a process execution unit 21c. The second processing unit 22, the third processing unit 23, and the fourth processing unit 24 function as a processing execution unit 22a, a processing execution unit 23a, and a processing execution unit 24a, respectively. The operation mode setting unit 21a determines whether the operation mode of the processing circuit unit 2 is the single processing unit operation mode or the multiple processing unit operation mode based on the input information. The input information is an IG switch signal, a port input signal, and a CAN input signal. The processing allocation unit 21b determines in which processing unit from the first processing unit 21 to the fourth processing unit 24 the processing is executed based on the allocation criteria registered in advance in the processing allocation table 31 stored in the ROM 3. decide. The allocation criterion is based on the type of control process based on the process request and the classification of each process in each control process (classification by external input process, arithmetic process, and output process). Rules that determine the allocation of processing are defined.

図4は動作モード設定部21aでの処理機能を説明するための模式図である。動作モード設定部21aは、IGスイッチ信号検出処理部71、ポート入力処理要求検出処理部72、CAN処理要求検出処理部73、動作モード判定処理部74、動作モード変更処理部75を備える。IGスイッチ信号検出処理部71は、IGスイッチがオフ状態からオン状態へ変化したこと、及びオン状態からオフ状態へ変化したことを検出する。ポート入力処理要求検出処理部72は、ユーザによるスイッチ操作信号が入出力ポート5に入力されたときに該スイッチ操作信号を検知し、スイッチ操作信号による処理要求を検出する。ポート入力処理要求検出処理部72は、実行中のポート処理の処理数を計数している。CAN処理要求検出処理部73は、CANからの入力信号による処理要求を検出する。動作モード判定処理部74は、IGスイッチ信号検出処理部71、ポート入力処理要求検出処理部72、及びCAN処理要求検出処理部73により検出される処理要求に基づいて、動作モードを単一処理部動作モード及び複数処理部動作モードのいずれに設定するかを判定し、判定結果を出力する。動作モード変更処理部75は、判定結果が示す設定すべき動作モードと現在の動作モードとが異なる場合には、設定すべき動作モードに処理回路部2の各処理部を設定し、設定すべき動作モードと現在の動作モードとが一致する場合には、現在の動作モードを維持する。   FIG. 4 is a schematic diagram for explaining processing functions in the operation mode setting unit 21a. The operation mode setting unit 21a includes an IG switch signal detection processing unit 71, a port input processing request detection processing unit 72, a CAN processing request detection processing unit 73, an operation mode determination processing unit 74, and an operation mode change processing unit 75. The IG switch signal detection processing unit 71 detects that the IG switch has changed from the off state to the on state, and that the IG switch has changed from the on state to the off state. The port input processing request detection processing unit 72 detects a switch operation signal when a user's switch operation signal is input to the input / output port 5 and detects a processing request based on the switch operation signal. The port input process request detection processing unit 72 counts the number of port processes being executed. The CAN processing request detection processing unit 73 detects a processing request based on an input signal from the CAN. The operation mode determination processing unit 74 sets the operation mode to a single processing unit based on the processing requests detected by the IG switch signal detection processing unit 71, the port input processing request detection processing unit 72, and the CAN processing request detection processing unit 73. It is determined whether the operation mode or the multiple processing unit operation mode is set, and the determination result is output. When the operation mode to be set indicated by the determination result is different from the current operation mode, the operation mode change processing unit 75 sets each processing unit of the processing circuit unit 2 to the operation mode to be set and should set it. If the operation mode matches the current operation mode, the current operation mode is maintained.

図5は処理回路部2の動作モード設定処理の手順を示すフローチャートである。まず、第1処理部21における動作モード設定部21aは、IGスイッチがオン状態となっているか否かを判定する(ステップS1)。IGスイッチがオン状態であると判定された場合(S1:YES)、IGスイッチはオン位置又はエンジン始動位置にあり、他の多くのECUが定常動作しているため、CANからの処理要求、及び入出力ポート5からのポート入力信号による処理要求が多数発生する可能性があり、ステップS4に移行して、複数処理部動作モードに設定する処理を行う。   FIG. 5 is a flowchart showing the procedure of the operation mode setting process of the processing circuit unit 2. First, the operation mode setting unit 21a in the first processing unit 21 determines whether or not the IG switch is turned on (step S1). When it is determined that the IG switch is in the on state (S1: YES), the IG switch is in the on position or the engine start position, and many other ECUs are in steady operation. There is a possibility that many processing requests by the port input signal from the input / output port 5 may occur, and the process proceeds to step S4 to perform processing for setting the operation mode to the multiple processing unit.

ステップS4では、動作モード設定部21aは、判定結果に基づいて設定するべき複数処理部動作モードと現在のモードとが一致する場合、現在のモードを維持し、一致していない場合、動作モード変更処理部75により、第2処理部22、第3処理部23、第4処理部24を動作状態に変更する処理を行う。複数処理部動作モードでは、処理割当部21bは各処理部への制御処理の割り当てを処理割当テーブル31に基づいて実行する。   In step S4, the operation mode setting unit 21a maintains the current mode when the multiple processing unit operation mode to be set based on the determination result matches the current mode, and changes the operation mode when they do not match. The processing unit 75 performs processing for changing the second processing unit 22, the third processing unit 23, and the fourth processing unit 24 to the operating state. In the multiple processing unit operation mode, the process allocation unit 21 b executes the allocation of the control process to each processing unit based on the process allocation table 31.

IGスイッチがオン状態ではないと判定された場合(S1:NO)、動作モード設定部21aはCANによる通信中であるか否かを判定する(ステップS2)。CAN通信中であると判定された場合(S2:YES)、CAN入力信号が要求する制御処理によって入出力ポート5における入出力処理が多数生起している可能性がある。ポート入力処理要求検出処理部72が計数する実行中のポート処理の処理数に基づいて、動作モード判定処理部74は、入出力ポート5を介するポート処理(入出力処理)の処理数が所定値以上であるか否かによりポート処理が所定量以上であるか否かを判定する(ステップS3)。ポート処理の処理数が所定値以上であり、ポート処理が所定量以上であると判定された場合(S3:YES)、ステップS4に移行して、複数処理部動作モードに設定する処理を行う。   When it is determined that the IG switch is not in the on state (S1: NO), the operation mode setting unit 21a determines whether or not communication by CAN is being performed (step S2). If it is determined that the CAN communication is being performed (S2: YES), a large number of input / output processes in the input / output port 5 may be caused by the control process requested by the CAN input signal. Based on the number of port processes being executed counted by the port input process request detection processor 72, the operation mode determination processor 74 determines that the number of port processes (input / output processes) via the input / output port 5 is a predetermined value. It is determined whether or not the port processing is greater than or equal to a predetermined amount depending on whether or not it is above (step S3). When it is determined that the number of port processes is greater than or equal to a predetermined value and the port processes are greater than or equal to a predetermined amount (S3: YES), the process proceeds to step S4, and a process of setting to the multiple processing unit operation mode is performed.

ステップS2でCAN通信中でないと判定された場合(S2:NO)、及びステップS3でポート処理が所定量以上ではないと判定された場合(S3:NO)、高負荷ポートデータ処理が必要であるか否かを判定する(ステップS5)。図6は高負荷ポートデータ処理の種類を記述したテーブルを示す図表であり、該テーブルをROM3に記憶させておく。高負荷ポートデータ処理は、例えばセキュリティ処理、外部故障診断処理、自己診断処理等であり、入出力ポート5におけるデータの入出力処理が高負荷となる状況が発生することが予測される制御処理である。処理回路部2においてセキュリティ処理を実行中である場合、複数の車載機器が所定の順序で正しく動作しているかを確認するための複数の処理が、1つの車載機器からの入力信号をトリガにして発生する状況が予測される。また、外部故障診断処理及び自己診断処理では、複数の車載機器に故障が生じていないかを確認するための複数の処理が発生する状況となることが、診断処理シーケンス上で予定されている。高負荷ポートデータ処理が必要であると判定された場合(S5:YES)、ステップS4に移行して、複数処理部動作モードに設定する処理を行う。   If it is determined in step S2 that the CAN communication is not being performed (S2: NO), and if it is determined in step S3 that the port processing is not equal to or greater than the predetermined amount (S3: NO), high-load port data processing is required. Is determined (step S5). FIG. 6 is a chart showing a table describing types of high-load port data processing, and the table is stored in the ROM 3. The high-load port data processing is, for example, security processing, external failure diagnosis processing, self-diagnosis processing, and the like, and is control processing that is predicted to cause a high load on data input / output processing at the input / output port 5. is there. When security processing is being executed in the processing circuit unit 2, a plurality of processes for confirming whether a plurality of in-vehicle devices are operating correctly in a predetermined order are triggered by an input signal from one in-vehicle device. The situation that occurs is predicted. In the external failure diagnosis process and the self-diagnosis process, it is scheduled on the diagnosis process sequence that a plurality of processes for confirming whether or not a failure has occurred in a plurality of in-vehicle devices occurs. When it is determined that high load port data processing is necessary (S5: YES), the process proceeds to step S4, and processing for setting the multiple processing unit operation mode is performed.

ステップS5で高負荷ポートデータ処理が必要でないと判定された場合(S5:NO)、ステップS6で単一処理部動作モードに設定する処理を行う。ステップS6では、動作モード設定部21aは、上述の各判定結果に基づいて設定するべき単一処理部動作モードと現在のモードとが一致する場合、現在のモードを維持し、一致していない場合、動作モード変更処理部75により、第2処理部22、第3処理部23、第4処理部24を非動作状態に変更する処理を行う。複数処理部動作モードでは、処理割当部21bは各処理部への制御処理の割り当てを処理割当テーブル31に基づいて実行する。なお、単一処理部動作モードは、各処理部の処理能力によっては、処理回路部2の各処理部のうち一部を動作させるモードであってもよい。   If it is determined in step S5 that high load port data processing is not required (S5: NO), processing for setting the single processing unit operation mode is performed in step S6. In step S6, the operation mode setting unit 21a maintains the current mode when the single processing unit operation mode to be set based on the above determination results matches the current mode, and does not match The operation mode change processing unit 75 performs processing for changing the second processing unit 22, the third processing unit 23, and the fourth processing unit 24 to the non-operation state. In the multiple processing unit operation mode, the process allocation unit 21 b executes the allocation of the control process to each processing unit based on the process allocation table 31. The single processing unit operation mode may be a mode in which a part of each processing unit of the processing circuit unit 2 is operated depending on the processing capability of each processing unit.

ステップS4による複数処理部動作モードへの設定処理、及びステップS6による単一処理部動作モードへの設定処理の後、動作モード設定処理を終了し、スタートに戻る。   After the setting process to the multiple processing unit operation mode in step S4 and the setting process to the single processing unit operation mode in step S6, the operation mode setting process is terminated and the process returns to the start.

次に複数処理部動作モードにおける処理割当部21bによる割当処理について説明する。図7は処理割当部21bによる割当処理の手順を示すフローチャートである。まず、ステップS10において、処理割当部21bは、処理要求に基づく制御処理における新規処理の起動要求があるか否かを判定する。新規処理の起動要求がないと判定された場合(S10:NO)、ステップS10の判定を繰り返す。新規処理の起動要求があると判定された場合(S10:YES)、ステップS11により、処理割当部21bは、処理割当テーブル31に基づいて、新規処理を割り当てる処理部(第1処理部21、第2処理部22、第3処理部23、第4処理部24のいずれか)を決定し、該新規処理を決定した処理部に割り当てる。ステップS11で新規処理を割り当てた後、ステップS10に戻る。   Next, allocation processing by the processing allocation unit 21b in the multiple processing unit operation mode will be described. FIG. 7 is a flowchart showing the procedure of allocation processing by the processing allocation unit 21b. First, in step S10, the process allocation unit 21b determines whether there is a request for starting a new process in the control process based on the process request. When it is determined that there is no request for starting a new process (S10: NO), the determination in step S10 is repeated. If it is determined that there is a request for starting a new process (S10: YES), the process allocation unit 21b allocates a new process based on the process allocation table 31 (first processing unit 21, first process) in step S11. Any one of the two processing units 22, the third processing unit 23, and the fourth processing unit 24) and assigns the new processing to the determined processing unit. After assigning a new process in step S11, the process returns to step S10.

図8は処理割当テーブル31の一例について説明するための模式図である。処理割当テーブル31は、処理要求に基づく制御処理の種類と、制御処理における各処理の目的(数種に分類した目的)とによって、処理回路部2の各処理部への処理の割り当てを決める規則を定めている。図8中、処理要求に基づく制御処理の種類は、例えば、ドアロックSW(スイッチ)、オートドアロック、ターンハザード等で分類されるように、車載機器の各種機能に対応している。また、各処理はその性質上、車載機器への制御信号を出力する出力処理と、該出力処理の実行前に処理要求に基づき処理回路部2で実行する出力前処理に大別される。さらに出力前処理は、外部入力を受け付ける外部入力処理と、外部入力に基づき処理回路部2で行う演算処理とに種別できる。総合すると、各処理はその性質上、外部入力処理、演算処理、出力処理に分類される。   FIG. 8 is a schematic diagram for explaining an example of the process allocation table 31. The process allocation table 31 is a rule that determines the allocation of processes to each processing unit of the processing circuit unit 2 according to the type of control process based on the process request and the purpose of each process in the control process (purpose classified into several types). Is stipulated. In FIG. 8, the types of control processing based on the processing request correspond to various functions of the in-vehicle device so as to be classified by door lock SW (switch), automatic door lock, turn hazard, and the like. Each process is roughly divided into an output process for outputting a control signal to the in-vehicle device and an output pre-process executed by the processing circuit unit 2 based on the processing request before the output process is executed. Further, the pre-output processing can be classified into an external input process that accepts an external input and an arithmetic process that is performed by the processing circuit unit 2 based on the external input. Overall, each process is classified into an external input process, an arithmetic process, and an output process due to its nature.

処理割当テーブル31は、制御処理の種類と、各処理の種別(外部入力処理、演算処理、出力処理)とによって分類し、分類ごとに処理回路部2の各処理部に割り当ててある。図8に示す例では、例えば、第1処理部21に対して、出力前処理に関しては、外部入力処理にドアロックSW入力制御を、演算処理にオートドアロック制御及びフロントフォグ制御を割り当て、出力処理に関してはドアロック出力制御を割り当てている。処理割当部21bは、新規処理が処理割当テーブル31における処理の分類のいずれに該当するかを検索し、該当する分類を有する処理部を、該新規処理を割り当てる処理部とする決定を行う。   The process allocation table 31 is classified according to the type of control process and the type of each process (external input process, arithmetic process, output process), and is allocated to each processing unit of the processing circuit unit 2 for each classification. In the example illustrated in FIG. 8, for example, with respect to the first processing unit 21, regarding the output preprocessing, the door lock SW input control is assigned to the external input processing, and the automatic door lock control and the front fog control are assigned to the arithmetic processing. The door lock output control is assigned. The process allocating unit 21b searches which of the process classifications in the process allocation table 31 corresponds to the new process, and determines that the process unit having the corresponding class is a process unit to which the new process is allocated.

処理割当部21bによって処理が割り当てられた各処理部は、同時的に出力前処理を行い、その後、同時的に出力処理を行う。また、処理回路部2の各処理部は、同時的に外部入力処理を行い、その後、同時的に演算処理を行い、さらに同時的に出力処理を行うようにしてもよい。このような並列処理を行うためには、出力前処理(又は外部入力処理、演算処理)、出力処理毎に分類される各処理間で相互依存関係が無いことが必要条件となる。また、出力前処理(又は外部入力処理、演算処理)、出力処理毎に分類される各処理部毎に処理負荷が略均等となるようにすれば、処理の待ち時間を低減化し、全体の処理速度が向上する。例えば、第2処理部22の演算処理に割り当てられるターンハザード制御に要する時間が3msとしたときに、第1処理部21の演算処理に、処理時間が夫々1.4msであるオートドアロック制御及びフロントフォグ制御を割り当てて第1処理部21の処理時間を2.8msとし、各処理部の処理負荷の均等化を図る。   Each processing unit to which processing is allocated by the processing allocation unit 21b performs pre-output processing at the same time, and then performs output processing at the same time. Further, each processing unit of the processing circuit unit 2 may perform external input processing at the same time, then perform arithmetic processing at the same time, and perform output processing at the same time. In order to perform such parallel processing, it is a necessary condition that there is no interdependency between the output preprocessing (or external input processing and arithmetic processing) and the processes classified for each output process. In addition, if the processing load is made substantially equal for each processing unit classified for each output processing (or external input processing, arithmetic processing) and output processing, the processing waiting time is reduced and the overall processing is reduced. Increases speed. For example, when the time required for the turn hazard control assigned to the calculation processing of the second processing unit 22 is 3 ms, the calculation processing of the first processing unit 21 includes the automatic door lock control and the front processing time of 1.4 ms. By assigning fog control, the processing time of the first processing unit 21 is set to 2.8 ms so as to equalize the processing load of each processing unit.

上述の実施形態においては、複数処理部動作モードでは、全ての処理部を動作させる例を示したが、ポート処理の処理数を段階的に評価して、処理回路部2で動作させる処理部の数を設定するようにしてもよい。図9は、ポート処理数Nと処理部使用数との対応関係を示す図表である。ポート処理数NがN1未満であれば、動作させる処理部の数を1つとし、ポート処理数NがN1以上N2未満であれば、動作させる処理部の数を2つとし、ポート処理数NがN2以上であれば、動作させる処理部の数を処理回路部2内の全てとする。図5のフローチャートでは、ステップS3による判定の所定値をN1としておき、ポート処理数NがN1以上であればポート処理が所定量以上であるとしてステップS4に移行し、複数処理部動作モードの設定時に、予めROM3等に記憶しておいたポート処理数Nと処理部使用数との対応関係に基づいて、動作させる処理部の数を求めるようにすればよい。   In the above-described embodiment, an example in which all the processing units are operated in the multiple processing unit operation mode has been shown. However, the processing unit that operates the processing circuit unit 2 by evaluating the number of port processing steps in stages. The number may be set. FIG. 9 is a chart showing the correspondence between the port processing count N and the processing unit usage count. If the port processing number N is less than N1, the number of processing units to be operated is one. If the port processing number N is N1 or more and less than N2, the number of processing units to be operated is two. Is equal to or greater than N2, the number of processing units to be operated is all within the processing circuit unit 2. In the flowchart of FIG. 5, the predetermined value of the determination in step S3 is set to N1, and if the port processing number N is equal to or greater than N1, the process proceeds to step S4 assuming that the port processing is equal to or greater than the predetermined amount, and the multiple processing unit operation mode setting Sometimes, the number of processing units to be operated may be obtained based on the correspondence between the port processing number N and the processing unit usage number stored in advance in the ROM 3 or the like.

以上のとおり、本実施形態によれば、ECU1は、車輌に搭載された複数の車載機器に対する制御処理を複数の処理部からなる処理回路部2により行う。IGスイッチ信号検出処理部71により、IGスイッチのオン/オフ状態を取得し、動作モード判定処理部74により、車載機器に対する処理要求に基づいて、車載機器に対する制御処理を行う処理部の数を増加させるか否かを判定する。動作モード変更処理部75は、IGスイッチがオン状態である場合に処理回路部2の全ての処理部を動作状態とする変更を行い、IGスイッチがオフ状態である場合に処理回路部2の一部の処理部を動作状態とし、処理回路部2の残りの処理部を非動作状態とする変更を行う。また、動作モード変更処理部75は、IGスイッチがオフ状態であり、動作モード判定処理部74が制御処理を行う処理部の数を増加させると判定した場合に動作状態とする処理部の数を増加させる。これにより、IGスイッチがオフ状態で、処理回路部2の一部の処理部を動作状態とし、処理回路部2の残りの処理部を非動作状態として消費電力を低減する単一処理部動作モードから、車載機器に対する処理要求に応じて処理部の数を増加させる変更を行い、処理能力を高めることができる。   As described above, according to the present embodiment, the ECU 1 performs the control process for the plurality of in-vehicle devices mounted on the vehicle by the processing circuit unit 2 including the plurality of processing units. The IG switch signal detection processing unit 71 acquires the on / off state of the IG switch, and the operation mode determination processing unit 74 increases the number of processing units that perform control processing for the in-vehicle device based on the processing request for the in-vehicle device. It is determined whether or not to perform. The operation mode change processing unit 75 changes all the processing units of the processing circuit unit 2 to the operating state when the IG switch is in the on state, and one of the processing circuit units 2 when the IG switch is in the off state. The processing unit is set to the operating state, and the remaining processing units of the processing circuit unit 2 are changed to the non-operating state. In addition, the operation mode change processing unit 75 determines the number of processing units to be in the operation state when the IG switch is in the off state and the operation mode determination processing unit 74 determines to increase the number of processing units performing the control process. increase. As a result, a single processing unit operation mode in which a part of the processing units of the processing circuit unit 2 is set in an operating state and the remaining processing units of the processing circuit unit 2 are set in a non-operating state while the IG switch is turned off to reduce power consumption Therefore, it is possible to increase the processing capability by making a change to increase the number of processing units in response to a processing request for the in-vehicle device.

また、本実施形態によれば、ポート入力処理要求検出処理部72により、処理要求に基づくポート処理の処理数を計数し、動作モード判定処理部74は、ポート入力処理要求検出処理部72により計数した処理数が所定値以上である場合に、制御処理を行う処理部の数を増加させると判定する。ポート入力処理要求検出処理部72によって処理要求に基づく処理数を確実に計数し、処理数が所定値以上に増大した場合に処理部の数を増加させることができる。   Further, according to the present embodiment, the port input processing request detection processing unit 72 counts the number of port processings based on the processing request, and the operation mode determination processing unit 74 counts the port input processing request detection processing unit 72. When the number of processes performed is equal to or greater than a predetermined value, it is determined that the number of processing units that perform control processing is increased. The port input processing request detection processing unit 72 can reliably count the number of processes based on the processing request, and can increase the number of processing units when the number of processes increases to a predetermined value or more.

また、本実施形態によれば、ROM3に特定の高負荷ポートデータ処理を記憶しておき、動作モード判定処理部74は、処理要求に係る処理が記憶してある特定の高負荷ポートデータ処理と一致する場合に、制御処理を行う処理部の数を増加させると判定する。高負荷ポートデータ処理は、例えばセキュリティ処理、外部故障診断処理、自己診断処理等であり、入出力処理等の処理が高負荷となる状況が発生することが予測される制御処理を要求する処理要求である。高負荷処理要求が受け付けられ、高負荷処理が必要であることに対応して処理部の数を増加させることができる。   In addition, according to the present embodiment, specific high load port data processing is stored in the ROM 3, and the operation mode determination processing unit 74 performs specific high load port data processing in which processing related to the processing request is stored. If they match, it is determined to increase the number of processing units that perform control processing. High-load port data processing is, for example, security processing, external failure diagnosis processing, self-diagnosis processing, etc., and a processing request for requesting a control processing that is predicted to cause a high-load situation such as input / output processing. It is. The number of processing units can be increased in response to the fact that a high load processing request is accepted and high load processing is required.

また、本実施形態によれば、特定の高負荷ポートデータ処理が、車載機器が所定の順序で動作しているか否かを確認する複数の処理を要求する処理要求である場合に対応して処理部の数を増加させることができる。例えば、セキュリティ処理を実行中である場合、複数の車載機器が所定の順序で正しく動作しているかを確認するための複数の処理が、1つの車載機器からの入力信号をトリガにして発生する状況が予測され、このような処理に対して、処理部の数を増加させて対応することができる。   In addition, according to the present embodiment, the specific high load port data processing is performed in response to a processing request for requesting a plurality of processes for confirming whether or not the in-vehicle device is operating in a predetermined order. The number of parts can be increased. For example, when security processing is being executed, a situation in which a plurality of processes for confirming whether a plurality of in-vehicle devices are operating correctly in a predetermined order is triggered by an input signal from one in-vehicle device Therefore, it is possible to cope with such processing by increasing the number of processing units.

また、本実施形態によれば、特定の高負荷ポートデータ処理が、車載機器に故障が生じているか否かを確認する複数の処理を要求する処理要求である場合に対応して処理部の数を増加させることができる。例えば、外部故障診断処理、自己診断処理では、複数の車載機器に故障が生じていないかを確認するための複数の処理が発生する状況となることが診断処理シーケンス上で予定されており、このような処理に対して、処理部の数を増加させて対応することができる。   Further, according to the present embodiment, the number of processing units corresponding to the case where the specific high-load port data processing is a processing request for requesting a plurality of processing for confirming whether or not a failure has occurred in the in-vehicle device. Can be increased. For example, in the external failure diagnosis process and the self-diagnosis process, it is planned on the diagnosis process sequence that a plurality of processes for confirming whether or not a plurality of in-vehicle devices have a failure will occur. Such processing can be dealt with by increasing the number of processing units.

また、本実施形態によれば、処理割当部21bにより、処理要求に基づく処理を車載機器へ制御信号を出力する出力処理、及び該出力処理の実行前に処理要求に基づき処理部で実行する出力前処理に分類して複数の処理部に割り当て、複数の処理部よりなる処理回路部2が同時的に出力前処理及び出力処理を行うようにしてある。これにより、処理回路部2が同時に処理を進めることができ、処理能力を高めることができる。   Further, according to the present embodiment, the process allocating unit 21b outputs the process based on the process request to the in-vehicle device and outputs the control signal to the in-vehicle device, and the output executed by the processor based on the process request before the output process is executed. The preprocessing is classified and assigned to a plurality of processing units, and the processing circuit unit 2 including the plurality of processing units simultaneously performs the output preprocessing and output processing. As a result, the processing circuit unit 2 can simultaneously perform processing, and the processing capability can be increased.

また、本実施形態によれば、処理割当部21bが、出力前処理及び出力処理毎に複数の処理部よりなる処理回路部2における処理負荷が略均等となるように処理回路部2に処理を割り当てる。これにより、処理回路部2での処理待ち時間を低減することがで、処理能力を高めることができる。   In addition, according to the present embodiment, the processing allocation unit 21b processes the processing circuit unit 2 so that the processing load in the processing circuit unit 2 including a plurality of processing units is substantially equal for each of the output preprocessing and the output processing. assign. As a result, the processing waiting time in the processing circuit unit 2 can be reduced, and the processing capability can be increased.

なお、開示された実施の形態は、全ての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上述の説明ではなく特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内での全ての変更が含まれることが意図される。   The disclosed embodiments should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 ECU(車載制御装置)
2 処理回路部
21 第1処理部(処理部)
21b 処理割当部(処理割当手段)
22 第2処理部(処理部)
23 第3処理部(処理部)
24 第4処理部(処理部)
3 ROM(記憶手段)
71 IGスイッチ信号検出処理部(取得手段)
72 ポート入力処理要求検出処理部(要求受付手段、計数手段)
73 CAN処理要求検出処理部(要求受付手段)
74 動作モード判定処理部(判定手段)
75 動作モード変更処理部(動作変更手段)
1 ECU (on-vehicle controller)
2 Processing Circuit Unit 21 First Processing Unit (Processing Unit)
21b Process allocation unit (process allocation means)
22 Second processing unit (processing unit)
23 Third processing unit (processing unit)
24 4th processing part (processing part)
3 ROM (storage means)
71 IG switch signal detection processing unit (acquisition means)
72 Port input processing request detection processing unit (request receiving means, counting means)
73 CAN processing request detection processing unit (request receiving means)
74 Operation mode determination processing unit (determination means)
75 Operation mode change processing unit (operation change means)

Claims (7)

車輌に搭載された複数の被制御機器に対する制御処理を複数の処理部により行う車載制御装置において、
イグニッションスイッチのオン/オフの状態を取得する取得手段と、
前記被制御機器に対する処理要求を受け付ける要求受付手段と、
該要求受付手段が受け付けた処理要求に基づいて、前記被制御機器に対する制御処理を行う処理部の数を増加させるか否かを判定する判定手段と、
前記取得手段がオン状態を取得した場合に前記複数の処理部の全てを動作状態とする変更を行い、前記取得手段がオフ状態を取得した場合に前記複数の処理部の一部を動作状態とし、前記複数の処理部の残部を非動作状態とする変更を行い、前記取得手段がオフ状態を取得し、前記判定手段が制御処理を行う処理部の数を増加させると判定した場合に動作状態とする処理部の数を増加させる動作変更手段と
を備えること特徴とする車載制御装置。
In an in-vehicle control device that performs control processing for a plurality of controlled devices mounted on a vehicle by a plurality of processing units,
Obtaining means for obtaining an on / off state of the ignition switch;
Request accepting means for accepting a processing request for the controlled device;
A determination unit that determines whether to increase the number of processing units that perform control processing on the controlled device based on the processing request received by the request receiving unit;
When the acquisition unit acquires the on state, the change is performed so that all of the plurality of processing units are in the operating state, and when the acquisition unit acquires the off state, some of the plurality of processing units are set as the operating state. , When the remaining of the plurality of processing units is changed to a non-operating state, the acquisition unit acquires an off state, and the determination unit determines to increase the number of processing units performing the control process. An in-vehicle control device comprising: an operation changing unit that increases the number of processing units.
前記要求受付手段が受け付けた処理要求に基づく処理の数を計数する計数手段を備え、
前記判定手段は、前記計数手段により計数した処理数が所定値以上である場合に、制御処理を行う処理部の数を増加させると判定することを特徴とする請求項1に記載の車載制御装置。
A counting unit that counts the number of processes based on the processing request received by the request receiving unit;
The in-vehicle control device according to claim 1, wherein the determination unit determines to increase the number of processing units that perform control processing when the number of processes counted by the counting unit is equal to or greater than a predetermined value. .
特定の高負荷処理要求を記憶する記憶手段を備え、
前記判定手段は、前記要求受付手段が受け付けた処理要求が前記記憶手段に記憶してある特定の高負荷処理要求と一致する場合に、制御処理を行う処理部の数を増加させると判定することを特徴とする請求項1又は請求項2に記載の車載制御装置。
A storage means for storing a specific high-load processing request;
The determination unit determines to increase the number of processing units that perform control processing when the processing request received by the request reception unit matches a specific high load processing request stored in the storage unit. The in-vehicle control device according to claim 1 or 2, characterized by the above-mentioned.
前記特定の高負荷処理要求は、前記被制御機器が所定の順序で動作しているか否かを確認する複数の処理を要求する処理要求であることを特徴とする請求項3に記載の車載制御装置。   The in-vehicle control according to claim 3, wherein the specific high-load processing request is a processing request for requesting a plurality of processes for confirming whether or not the controlled device is operating in a predetermined order. apparatus. 前記特定の高負荷処理要求は、前記被制御機器に故障が生じているか否かを確認する複数の処理を要求する処理要求であることを特徴とする請求項3に記載の車載制御装置。   The in-vehicle control device according to claim 3, wherein the specific high load processing request is a processing request for requesting a plurality of processes for confirming whether or not a failure has occurred in the controlled device. 前記要求受付手段により受け付ける処理要求に基づく処理を前記被制御機器へ制御信号を出力する出力処理、及び該出力処理の実行前に処理要求に基づき前記処理部で実行する出力前処理に分類して前記複数の処理部に割り当てる処理割当手段を備え、前記複数の処理部が同時的に出力前処理及び出力処理を行うようにしてあることを特徴とする請求項1から請求項5のいずれか1つに記載の車載制御装置。   The processing based on the processing request received by the request receiving means is classified into output processing for outputting a control signal to the controlled device, and pre-output processing executed by the processing unit based on the processing request before execution of the output processing. 6. The method according to claim 1, further comprising a process allocating unit that allocates the plurality of processing units, wherein the plurality of processing units simultaneously perform pre-output processing and output processing. The vehicle-mounted control apparatus as described in one. 前記処理割当手段は、出力前処理及び出力処理毎に前記複数の処理部における処理負荷が略均等となるように前記複数の処理部に処理を割り当てることを特徴とする請求項6に記載の車載制御装置。   The on-vehicle device according to claim 6, wherein the process allocating unit allocates processes to the plurality of processing units so that processing loads in the plurality of processing units are substantially equal for each of output pre-processing and output processing. Control device.
JP2012068049A 2012-03-23 2012-03-23 On-vehicle control device Pending JP2013199180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012068049A JP2013199180A (en) 2012-03-23 2012-03-23 On-vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012068049A JP2013199180A (en) 2012-03-23 2012-03-23 On-vehicle control device

Publications (1)

Publication Number Publication Date
JP2013199180A true JP2013199180A (en) 2013-10-03

Family

ID=49519763

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012068049A Pending JP2013199180A (en) 2012-03-23 2012-03-23 On-vehicle control device

Country Status (1)

Country Link
JP (1) JP2013199180A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022239334A1 (en) * 2021-05-14 2022-11-17 日立Astemo株式会社 Program execution device, analysis method, and execution method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022239334A1 (en) * 2021-05-14 2022-11-17 日立Astemo株式会社 Program execution device, analysis method, and execution method

Similar Documents

Publication Publication Date Title
US11740937B2 (en) Parallel process apparatus, parallel process system, and parallel processing method for parallelizing multiple processes in accordance with multiple process requests
JP6954422B2 (en) Concurrency device, concurrency method and concurrency system
US20210065478A1 (en) Electronic control unit and non-transitory computer readable medium storing session establishment program
JP4624448B2 (en) Control device, control system, and computer program
JP2004161255A (en) Vehicular electronic control device, electronic control unit, program, and recording medium
JP2022013187A (en) Vehicle control unit
US10764372B2 (en) Vehicular communication device
JP2016124455A (en) In-vehicle relay device and relay method
JP6643210B2 (en) Vehicle data reading device and vehicle data reading method
WO2013081096A1 (en) On-board control system
WO2014061696A1 (en) Vehicle control system
JP2021157465A (en) In-vehicle ECU, program and information processing method
WO2015045507A1 (en) Vehicular control device
JP2013199180A (en) On-vehicle control device
US20090234514A1 (en) Method and Device for Executing Prioritized Control Processes
JP2013084219A (en) Information processing device and abnormality determination method
JP4934113B2 (en) Control device and computer program
EP4601264A1 (en) Communication interaction method and apparatus, device, and storage medium
JP5407211B2 (en) Processing apparatus, clock frequency determination method, and computer program
JP2009059305A (en) Control device and electronic control device of vehicle
JP2015171853A (en) Vehicle electronic control unit
JP2017204286A (en) Vehicle control device
JP2012114724A (en) Electronic control device
JP2019009678A (en) On-vehicle communication network system
US9740584B2 (en) Method and device for testing a computer core in a processor having at least two computer cores