JP2008259124A - On-vehicle communication system and electronic control unit - Google Patents

On-vehicle communication system and electronic control unit Download PDF

Info

Publication number
JP2008259124A
JP2008259124A JP2007101931A JP2007101931A JP2008259124A JP 2008259124 A JP2008259124 A JP 2008259124A JP 2007101931 A JP2007101931 A JP 2007101931A JP 2007101931 A JP2007101931 A JP 2007101931A JP 2008259124 A JP2008259124 A JP 2008259124A
Authority
JP
Japan
Prior art keywords
ecu
communication data
abnormality
communication
processing
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
JP2007101931A
Other languages
Japanese (ja)
Inventor
Osamu Hirashima
理 平嶋
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2007101931A priority Critical patent/JP2008259124A/en
Publication of JP2008259124A publication Critical patent/JP2008259124A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an on-vehicle communication system and an electronic control unit which can transmit and receive communication data between buses even when abnormality occurs in a gateway apparatus, without increasing cost. <P>SOLUTION: In the on-vehicle communication system 10 with which a communication data mediation device 14 mediates communication data A from a first communication bus 11 to a second communication bus 12, an electronic control unit 13B for processing communication data A connected to the first communication bus 11 and the second communication bus 12 is provided with an abnormality detection means 15 for detecting abnormality of the communication data mediation device 14, a substituting means 16 for executing the function instead of the communication data mediation device when the abnormality detection means detects abnormality, and a processing control means 17 for stopping processing for communication data or controlling processing when the abnormality detection means detects abnormality. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、車載通信システム及び電子制御ユニットに関し、特に、第1の通信バスから第2の通信バスに通信データを仲介する車載通信システム及び電子制御ユニットに関する。   The present invention relates to an in-vehicle communication system and an electronic control unit, and particularly to an in-vehicle communication system and an electronic control unit that mediate communication data from a first communication bus to a second communication bus.

車両では各種のセンサが搭載されセンサにより検出された信号に基づく運転支援や走行制御など車載装置の制御が行われている。この制御のため、制御対象や信号処理に適した複数の電子制御ユニット(ECU)が搭載されており、また、センサにより検出された信号やあるECUが処理したデータを他のECUが利用することが多く、ECU間で信号及びデータ(以下、単に、通信データという)の共有が必要とされている。   Various types of sensors are mounted on the vehicle, and on-vehicle devices such as driving support and travel control based on signals detected by the sensors are controlled. For this control, a plurality of electronic control units (ECUs) suitable for objects to be controlled and signal processing are mounted, and other ECUs use signals detected by sensors and data processed by certain ECUs. In many cases, it is necessary to share signals and data (hereinafter simply referred to as communication data) between ECUs.

このため、各ECUを車載LANに接続すると共に、通信データを車載LAN上に流通させ、各ECUが必要な通信データを抽出することで通信データの共有を実現している。   For this reason, each ECU is connected to the in-vehicle LAN, the communication data is distributed on the in-vehicle LAN, and the communication data is shared by the ECUs extracting necessary communication data.

ところで、こうした車載LANは、例えば、エンジン、自動変速機、ブレーキ等を制御する制御装置間を接続する制御系、ドアのロック・アンロック、空調装置等を制御する制御装置間を接続するボデー系、というように、車両に搭載される各種制御を機能・系統別に区分し、その区分した各グループ毎、すなわち複数のバスに渡り構築される場合が多い。また、車載LANの1つのバスに接続できるECUの数には上限が設けられることがあるため、この要請に従い、車載LANは複数のバスにわたり構築される。   By the way, such an in-vehicle LAN includes, for example, a control system that connects control devices that control engines, automatic transmissions, brakes, and the like, a body system that connects control devices that control door locking / unlocking, air conditioning devices, and the like. In many cases, the various controls mounted on the vehicle are classified according to function / system, and are constructed for each group, that is, across a plurality of buses. In addition, since there may be an upper limit on the number of ECUs that can be connected to one bus of the in-vehicle LAN, the in-vehicle LAN is constructed over a plurality of buses in accordance with this request.

しかしながら、異なるバスに接続されたECUが同じ通信データを必要とする場合があるため、各系統のバスには通信データの中継機能を有するゲートウェイ装置が接続され、各バスに共通の通信データをバス間で送受信できるようにされている。   However, since the ECUs connected to different buses may require the same communication data, a gateway device having a communication data relay function is connected to each system bus, and the common communication data is sent to each bus. You can send and receive between them.

このため、ゲートウェイ装置の故障等が生じると、一方のバスから他方のバスに通信データが送信不能となり、別のバスのECUが通信データを共有できなくなるという問題があった。そこで、バス間の接続の信頼性を向上するため、2系統のバスに接続されたいずれかのECUに送受信不良が生じた場合、2系統のバスに接続された他のECUによりバス間の通信データを送受信する車両通信システムが提案されている(例えば、特許文献1参照。)。特許文献1記載の車両通信システムによれば、2系統のバスに接続されたECUにゲートウェイの機能を持たせ、当該ECUが通信データを送受信できない場合は、他のECUが一方のバスから他方のバスに通信データを送受信する。
特開2006−333007号公報
For this reason, when a failure or the like of the gateway device occurs, there is a problem that communication data cannot be transmitted from one bus to the other bus, and the ECU of another bus cannot share the communication data. Therefore, in order to improve the reliability of connection between the buses, when a transmission / reception failure occurs in any ECU connected to the two buses, communication between the buses is performed by another ECU connected to the two buses. A vehicle communication system that transmits and receives data has been proposed (see, for example, Patent Document 1). According to the vehicle communication system described in Patent Document 1, when an ECU connected to two buses has a gateway function and the ECU cannot transmit and receive communication data, the other ECU is connected from one bus to the other. Send / receive communication data to / from the bus.
JP 2006-333007 A

しかしながら、特許文献1記載の車両通信システムでは、2系統のバスに接続されたECUにゲートウェイの機能を持たせるため、当該ECUの処理負荷が増大してしまうという問題がある。通常、ECUはコストや車載スペースの制約から処理能力の余裕が小さいことが多く、車載装置の制御の他にゲートウェイとしての処理を要求することは困難である。すなわち、ゲートウェイとしての機能のため、処理能力に余裕を設けた設計をするとコスト増となってしまう。   However, in the vehicle communication system described in Patent Document 1, since the ECU connected to the two buses has a gateway function, there is a problem that the processing load of the ECU increases. In general, ECUs often have a small processing capacity due to cost and in-vehicle space constraints, and it is difficult to request processing as a gateway in addition to control of in-vehicle devices. In other words, because of the function as a gateway, a design with a margin for processing capacity increases costs.

本発明は、上記課題に鑑み、コストを増加させずに、ゲートウェイ装置に異常が生じてもバス間の通信データの送受信を可能とする車載通信システム及び電子制御ユニットを提供することを目的とする。   In view of the above problems, an object of the present invention is to provide an in-vehicle communication system and an electronic control unit that enable transmission and reception of communication data between buses even when an abnormality occurs in a gateway device without increasing costs. .

上記課題に鑑み、本発明は、通信データ仲介装置(例えば、ゲートウェイ装置14)が第1の通信バス(例えば、バス11)から第2の通信バス(例えば、バス12)に通信データを仲介する車載通信システムにおいて、第1の通信バス及び第2の通信バスに接続された通信データを処理する電子制御ユニット(例えば、ECU13B)が、通信データ仲介装置の異常を検出する異常検出手段(例えば、ゲートウェイ異常検出手段15)と、異常検出手段が異常を検出した場合、通信データ仲介装置の機能を代行する代行手段(例えば、ゲートウェイ代行手段16)と、異常検出手段が異常を検出した場合、通信データの処理を停止するか又は処理を制限する処理制限手段と、を有することを特徴とする。   In view of the above problems, according to the present invention, a communication data mediating device (for example, gateway device 14) mediates communication data from a first communication bus (for example, bus 11) to a second communication bus (for example, bus 12). In the in-vehicle communication system, an electronic control unit (e.g., ECU 13B) that processes communication data connected to the first communication bus and the second communication bus detects an abnormality in the communication data mediating device (e.g., an abnormality detection unit). If the gateway abnormality detecting means 15) and the abnormality detecting means detect an abnormality, the proxy means (for example, the gateway proxy means 16) acting on behalf of the function of the communication data mediating apparatus and the abnormality detecting means detect the abnormality And processing restriction means for stopping the data processing or restricting the processing.

本発明によれば、通信データの処理を停止するか処理を制限した電子制御ユニットが、通信データ仲介装置の機能を代行するので、電子制御ユニットの処理に余裕を持たせる必要がなくコストを増加させずにゲートウェイ装置の異常に対応できる。   According to the present invention, since the electronic control unit that stops processing of communication data or restricts processing substitutes for the function of the communication data mediating apparatus, it is not necessary to provide a margin for processing of the electronic control unit and increase costs. It is possible to cope with the abnormality of the gateway device without doing so.

また、本発明の一形態において、電子制御ユニットは、車両の安全走行、快適走行など運転支援に係る処理を実行する、ことを特徴とする。   In one embodiment of the present invention, the electronic control unit executes processing related to driving support such as safe driving and comfortable driving of the vehicle.

本発明によれば、通信データ仲介装置を代行する電子制御ユニットは、処理を停止又は制限しても走行まで不能にしないで、走行に係る機能低下を最低限に抑制して通信データを仲介することができる。   According to the present invention, the electronic control unit acting on behalf of the communication data mediating apparatus mediates the communication data while minimizing the functional deterioration related to traveling without disabling the traveling even if the processing is stopped or restricted. be able to.

コストを増加させずに、ゲートウェイ装置に異常が生じてもバス間の通信データの送受信を可能とする車載通信システム及び電子制御ユニットを提供することを目的とする。   An object of the present invention is to provide an in-vehicle communication system and an electronic control unit that can transmit and receive communication data between buses even if an abnormality occurs in a gateway device without increasing costs.

以下、本発明を実施するための最良の形態について、図面を参照しながら説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

図1は、車載通信システム10の構成図の一例を示す。電子制御ユニット(以下、ECUという)であるECU13Aはバス11に、ECU13Cはバス12に、ゲートウェイ装置14とECU13Bは2つのバス11、12の両方に接続されている。2つのバス11,12の両方に接続しているECU13Bは、優先度の低い処理、例えば当該制御があれば快適な走行が可能であったり、乗り心地がよくなったり、より安全な運転支援が可能となる処理を実行する電子制御ユニットである。本実施形態の車両通信システム10では、ゲートウェイ装置14に何らかの異常が生じた場合、ECU13Bが優先度の低い処理を停止又は制限し、ゲートウェイ装置14の代わりに通信データAの中継を代行する。ECU13Bはゲートウェイ異常のために増設されるものでないので、コスト増をもたらすことなく、ゲートウェイ装置14の異常に対処することができる。   FIG. 1 shows an example of a configuration diagram of an in-vehicle communication system 10. The ECU 13A, which is an electronic control unit (hereinafter referred to as ECU), is connected to the bus 11, the ECU 13C is connected to the bus 12, and the gateway device 14 and the ECU 13B are connected to both the two buses 11 and 12. The ECU 13B connected to both of the two buses 11 and 12 can perform a low-priority process, for example, if the control is performed, allows comfortable driving, improves riding comfort, and provides safer driving assistance. It is an electronic control unit that performs processing that becomes possible. In the vehicle communication system 10 according to the present embodiment, when any abnormality occurs in the gateway device 14, the ECU 13 </ b> B stops or restricts the low-priority processing and performs the relay of the communication data A instead of the gateway device 14. Since the ECU 13B is not added due to an abnormality in the gateway, the abnormality of the gateway device 14 can be dealt with without increasing the cost.

ECU13A、13B及び13Cは、それぞれ制御する車載装置及び機能が異なるが、いずれもプログラムを実行するCPU、プログラム実行の作業領域となりまた一時的にデータを記憶するメモリ(RAM)、ブートプログラムやBIOSを記憶するROM、及び、プログラムやファイルを記憶するメモリ及びバス11,12を介してデータを入出力する入出力部、が内部バスにより接続されたコンピュータである。   The ECUs 13A, 13B, and 13C have different in-vehicle devices and functions to be controlled, but all have a CPU that executes a program, a work area for program execution, and a memory (RAM) that temporarily stores data, a boot program, and a BIOS. This is a computer in which a ROM that stores data, a memory that stores programs and files, and an input / output unit that inputs and outputs data via buses 11 and 12 are connected via an internal bus.

ECU13Bは、CPUがプログラムを実行することで実現される、ゲートウェイ装置14の異常を検出するゲートウェイ異常検出手段15、ゲートウェイ装置14の機能を代行するゲートウェイ代行手段16、優先度の低い処理を制限する処理制限手段17、を備える。   The ECU 13B limits the gateway low-priority detection unit 15 that detects a failure of the gateway device 14, the gateway proxy unit 16 that performs the function of the gateway device 14, and low-priority processing, which is realized by the CPU executing the program. The process restriction means 17 is provided.

バス11,12は、ECU13A、13B、13Cを電気的に接続し、所定のプロトコル(例えば、CAN(Controller Area Network)プロトコルやLIN(Local Interconnect Network)プロトコル等)に基づき車内LANを構成する。なお、プロトコルはバス11,12毎に定めることができ、バス11とバス12のプロトコルは同じであってもよいし異なっていてもよい。   The buses 11 and 12 electrically connect the ECUs 13A, 13B, and 13C, and configure an in-vehicle LAN based on a predetermined protocol (for example, a CAN (Controller Area Network) protocol, a LIN (Local Interconnect Network) protocol, or the like). The protocol can be determined for each of the buses 11 and 12, and the protocol of the bus 11 and the bus 12 may be the same or different.

例えばCANプロトコルは、1Mbpsまでの高速通信,マルチマスター方式によるバスアクセス制御,送信異常時のバスオフ機能などを有する通信プロトコルで、次のようなデータフォーマット「SOF;調停フィールド;制御フィールド;データフィールド;CRCフィールド;ACKフィールド;EOF」を一フレームにして通信データAをバス11,12に送出する。   For example, the CAN protocol is a communication protocol having high-speed communication up to 1 Mbps, bus access control by a multi-master system, a bus-off function at the time of transmission abnormality, and the like, and the following data format “SOF; arbitration field; control field; data field; The communication data A is sent to the buses 11 and 12 with the CRC field; ACK field; EOF "as one frame.

SOFはCANフレームの開始を表すビットを格納する領域、調停フィールドはフレームを識別するためのID番号を格納する領域、制御フィールドはデータ長などを格納する領域、データフィールドはデータを格納する領域(0〜8バイト)、CRCフィールドはエラーチェック用の符号を格納する領域、ACKフィールドはデータ受信したECUが受信したことを伝える領域、EOFはフレームの終了を表すビット列を格納する領域、である。   SOF is an area for storing a bit indicating the start of a CAN frame, an arbitration field is an area for storing an ID number for identifying the frame, a control field is an area for storing a data length, and a data field is an area for storing data ( (0 to 8 bytes), the CRC field is an area for storing a code for error check, the ACK field is an area for transmitting that data is received by the ECU, and EOF is an area for storing a bit string indicating the end of the frame.

バス11,12上の通信データAにはIDと呼ばれる優先順位(IDが低いほど優先順位が高い)を決めるためのユニークな番号が割り当てられ,各ECU13A〜13CはこのID を参照して受信するかどうかを判断する。   The communication data A on the buses 11 and 12 is assigned a unique number for determining a priority order called ID (the lower the ID, the higher the priority order), and each ECU 13A to 13C receives the reference by referring to this ID. Determine whether or not.

ゲートウェイ装置14も同様にコンピュータとして構成され、CPUがプログラムを実行することで、バス11,12間の通信データAの仲介を実行する。ゲートウェイ装置14は、車載通信システム10を複数のネットワークに分割することによって、バス11,12等における配線長や通信データAの通信量がもたらす負荷を緩和する。ゲートウェイ装置14は、一方のバス11(12)から他方のバス12(11)に、フィルタリングルール及び変換ルールに則って通信データAを仲介する。別のプロトコルのバスに通信データAを仲介する場合、ゲートウェイ装置14はプロトコルを変換する。   Similarly, the gateway device 14 is also configured as a computer, and the CPU executes the program to mediate the communication data A between the buses 11 and 12. The gateway device 14 divides the in-vehicle communication system 10 into a plurality of networks, thereby reducing the load caused by the wiring length of the buses 11 and 12 and the communication amount of the communication data A. The gateway device 14 mediates the communication data A from one bus 11 (12) to the other bus 12 (11) according to the filtering rule and the conversion rule. When mediating the communication data A to a bus of another protocol, the gateway device 14 converts the protocol.

例えば、ゲートウェイ装置14は、接続された一方のバス11(12)から他方のバス12(11)に仲介すべき通信データAのデータリストを記憶しており、フレームのIDとデータリストに基づき他方のバス12(11)に仲介する通信データAを選択する。   For example, the gateway device 14 stores a data list of communication data A to be mediated from one connected bus 11 (12) to the other bus 12 (11), and the other is based on the frame ID and the data list. The communication data A that mediates to the bus 12 (11) is selected.

したがって、例えば、ECU13Aが通信データAをバス11に送出した場合、通信データAはバス11上を流通すると共に、ゲートウェイ装置14が通信データAを仲介してバス12にも通信データAを流通させる。これにより、ECU13AとECU13Cが通信データAを共有することができる。   Therefore, for example, when the ECU 13A sends the communication data A to the bus 11, the communication data A circulates on the bus 11, and the gateway device 14 distributes the communication data A to the bus 12 via the communication data A. . As a result, the ECU 13A and the ECU 13C can share the communication data A.

ECU13A〜13CはどのようなECUであってもよいが、例えば、ボデー系の車載LANの場合、エアコンECU、メータECU、ボデーECU、照合ECU、などである。エアコンECUは、車載されたエアコンの送風温度、吐出口、風量などを制御するものであり、メータECUは、車速、エンジン回転数、ドアの開閉状態、変速機のシフトレンジ等、車両の各種状態を運転席前方のインストルメントパネルに表示し、ボデーECUは、キーレスエントリーシステムや照合ECUと連携してドアのロック・アンロック等を制御し、照合ECUは、運転者が所持する電子キーと無線通信して認証が成立した場合にボデーECUにドアのロック・アンロックを指示したり、エンジンの始動を許可する。   The ECUs 13A to 13C may be any ECU. For example, in the case of a body-based in-vehicle LAN, they are an air conditioner ECU, a meter ECU, a body ECU, a verification ECU, and the like. The air conditioner ECU controls the air temperature, discharge port, air volume, etc. of the air conditioner mounted on the vehicle, and the meter ECU controls various vehicle conditions such as vehicle speed, engine speed, door open / close state, transmission shift range, etc. Is displayed on the instrument panel in front of the driver's seat, and the body ECU controls the locking / unlocking of the door in cooperation with the keyless entry system and the verification ECU. When authentication is established through communication, the body ECU is instructed to lock / unlock the door, or the engine is allowed to start.

例えば、ECU13AがメータECU、ECU13CがボデーECUとした場合、車輪速センサが検出して所定のECUにより送出された(車輪速データ)を、ゲートウェイ装置14が仲介してバス11、12に流出させる。この場合、通信データAはバス11から仲介されてもバス12から仲介されてもよい。メータECUは車輪速データに応じてインストルメントパネルの速度メータを表示し、ボデーECUは車速が所定以上の場合にドアを自動的にロックする。ECU13Bは、ゲートウェイ装置14が接続した2つのバス11、12のいずれにも接続されたECUであって、かつ、比較的優先度の低い処理を実行するECU、例えば、照合ECUである。   For example, when the ECU 13A is a meter ECU and the ECU 13C is a body ECU, the gateway device 14 mediates the flow (wheel speed data) detected by the wheel speed sensor and sent out to the buses 11 and 12 through the predetermined ECU. . In this case, the communication data A may be mediated from the bus 11 or from the bus 12. The meter ECU displays a speed meter on the instrument panel according to the wheel speed data, and the body ECU automatically locks the door when the vehicle speed is greater than or equal to a predetermined value. The ECU 13B is an ECU that is connected to either of the two buses 11 and 12 to which the gateway device 14 is connected, and is an ECU that executes processing with a relatively low priority, for example, a verification ECU.

また、制御系の車載LANの場合、ECU13A〜13Cは、エンジンECU、ESC(electronic stability control)ECU、エアサスECU、LKA(Lane Keeping Assist)ECU、ACC(Adaptive Cruise Control)ECU、などである。エンジンECUは、車両の動力源であるエンジンの回転数や燃料噴射量を制御するためのものであり、ESC・ECUは車両のオーバステア、アンダーステアなど横滑りを防止して姿勢制御を行うものであり、エアサスECUはエアサスペンションのエア圧力を制御して車高やロール、乗り心地を調整するものであり、LKA・ECUは、走行車線を区切る白線の認識結果である白線情報に基づき操舵制御して車両が車線を逸脱することなく走行するよう支援を行うものであり、ACC・ECUはエンジンECU等と連携して定速素行又は先行車両に追従走行するものである。   In the case of a control-system in-vehicle LAN, the ECUs 13A to 13C are an engine ECU, an ESC (electronic stability control) ECU, an air suspension ECU, an LKA (Lane Keeping Assist) ECU, an ACC (Adaptive Cruise Control) ECU, and the like. The engine ECU is for controlling the rotational speed and fuel injection amount of the engine, which is the power source of the vehicle, and the ESC / ECU is for posture control by preventing side slip such as oversteer and understeer of the vehicle, The air suspension ECU controls the air pressure of the air suspension to adjust the vehicle height, roll, and riding comfort. The LKA / ECU performs steering control based on the white line information that is the recognition result of the white line that divides the traveling lane, The ACC / ECU cooperates with the engine ECU or the like to travel following a constant speed or preceding vehicle.

例えば、ECU13AがACC・ECU、ECU13CがLKA・ECUとした場合、車輪速センサが検出して所定のECUにより送出された通信データ(車輪速データ)Aを、ゲートウェイ装置14が仲介してバス11、12に流出させる。定速走行している場合、ACC・ECUは車輪速データに応じてエンジンECUにスロットル開度等の制御を要求し、LKA・ECUは車速に応じて警報タイミングを可変に制御する。ECU13Bは、ゲートウェイ装置14が接続した2つのバス11、12のいずれにも接続されたECUであって、かつ、比較的優先度の低い処理を実行するECU、例えば、ESC・ECUである。   For example, when the ECU 13A is an ACC / ECU and the ECU 13C is an LKA / ECU, the gateway device 14 mediates communication data (wheel speed data) A detected by a wheel speed sensor and transmitted by a predetermined ECU. , 12 to drain. When traveling at a constant speed, the ACC / ECU requests the engine ECU to control the throttle opening degree according to the wheel speed data, and the LKA / ECU variably controls the alarm timing according to the vehicle speed. The ECU 13B is an ECU that is connected to either of the two buses 11 and 12 to which the gateway device 14 is connected, and is an ECU that executes processing with relatively low priority, for example, an ESC / ECU.

このように、ECU13Bは、ECU13A及びECU13Cに影響されず、2つのバス11,12に流通する通信データAを利用するECUであって、優先度の低い処理を実行するECUが相当する。優先度が低い処理を実行するECUであるので、ECU13Bが処理を停止しても車両は走行可能である。したがって、ゲートウェイ装置14に異常が生じた場合、ECU13Bがゲートウェイ機能を代行することができる。   As described above, the ECU 13B is an ECU that uses the communication data A distributed to the two buses 11 and 12 without being influenced by the ECU 13A and the ECU 13C, and corresponds to an ECU that executes a process with low priority. Since the ECU executes a process with low priority, the vehicle can travel even if the ECU 13B stops the process. Therefore, when an abnormality occurs in the gateway device 14, the ECU 13B can substitute for the gateway function.

ECU13Bは2つのバス11,12に接続されているため、ゲートウェイ異常検出手段15は、ゲートウェイ装置14を介して2つのバス11、12に共通に流通させられる通信データAを監視し、バス11又は12のいずれか一方にのみ通信データAが流通している場合に、ゲートウェイ装置14の異常を検出する。   Since the ECU 13B is connected to the two buses 11 and 12, the gateway abnormality detection means 15 monitors the communication data A distributed in common to the two buses 11 and 12 via the gateway device 14, and the bus 11 or When the communication data A is distributed only to any one of 12, the abnormality of the gateway device 14 is detected.

ゲートウェイ代行手段16は、ゲートウェイ装置14に代わり、2つのバス11,12を仲介すべき通信データAのデータリスト、フィルタリングルール又は変換ルールに則って、一方のバス11(12)から他方のバス12(11)に通信データAを仲介し、必要であればプロトコルを変換する。   Instead of the gateway device 14, the gateway agent 16 replaces the one bus 11 (12) with the other bus 12 in accordance with the data list, filtering rule or conversion rule of the communication data A to be mediated through the two buses 11, 12. The communication data A is mediated in (11), and the protocol is converted if necessary.

ECU13Bがゲートウェイ機能を代行する場合、処理制限手段17は、それまでECU13Bが実行していた優先度の低い処理を停止するか、又は、処理を制限した上で継続する(以下、単に処理負荷の制限と称す)。ECU13Bの本来の処理に割り当てられる処理負荷を制限するので、ECU13Bの処理負荷に余裕を持たせる必要がなく、コスト増となることがない。   When the ECU 13B performs the gateway function, the process restriction unit 17 stops the low-priority process executed by the ECU 13B until then, or continues the process after limiting the process (hereinafter simply referred to as processing load). Called limit). Since the processing load assigned to the original processing of the ECU 13B is limited, it is not necessary to provide a margin for the processing load of the ECU 13B and the cost is not increased.

ECU13Bはゲートウェイ機能の代行処理を優先して実行するので、処理制限手段17は、例えば、ECU13BのCPU負荷率を監視しCPU負荷率に応じてどの程度を処理負荷を制限するかを決定する。例えば、CPU負荷率が所定の閾値以下の場合にのみ本来の処理である優先度の低い処理を許可するなどが設定により定められている。この閾値を低めに設定すれば、ECU13Bが実行していた処理は停止され、この閾値を高めに設定すれば、ゲートウェイ機能の代行の処理負荷が小さい場合にのみECU13Bが実行していた処理を実行することができるようになる。   Since the ECU 13B preferentially executes the proxy function of the gateway function, the process restriction unit 17 monitors, for example, the CPU load factor of the ECU 13B and determines how much the process load is restricted according to the CPU load factor. For example, the setting defines that the low priority processing that is the original processing is permitted only when the CPU load factor is equal to or less than a predetermined threshold. If this threshold value is set low, the processing executed by the ECU 13B is stopped, and if this threshold value is set high, the processing executed by the ECU 13B is executed only when the processing load acting on behalf of the gateway function is small. Will be able to.

また、ECU13Bがいくつかに分離できる複数の処理を実行している場合、処理制限手段17はそのうち優先度の低い処理を停止してもよい。例えば、ESC・ECUの場合、ESCよりも処理負荷の小さいABS(Anti-Lock Brake System)制御も可能であるので、ESC制御のうちABS制御のみを実行することで処理負荷を制限できる。   In addition, when the ECU 13B is performing a plurality of processes that can be separated into several, the process restriction unit 17 may stop the process with the lower priority. For example, in the case of an ESC / ECU, ABS (Anti-Lock Brake System) control with a processing load smaller than that of the ESC is also possible. Therefore, the processing load can be limited by executing only the ABS control in the ESC control.

図2は、ECU13Bが、ゲートウェイ装置14に異常が生じた場合に、ゲートウェイ機能を代行する手順を示すフローチャート図である。図2のフローチャート図は、例えば、イグニッションオンの後所定のサイクル時間毎に繰り返して実行される。   FIG. 2 is a flowchart showing a procedure in which the ECU 13B performs the gateway function when an abnormality occurs in the gateway device 14. The flowchart of FIG. 2 is repeatedly executed at predetermined cycle times after the ignition is turned on, for example.

ゲートウェイ異常検出手段15は、通信データAが2つのバス11,12に流通するか否かによりゲートウェイ装置14の異常が検出されるか否かを判定する(S10)。なお、例えば、ゲートウェイ装置14との通信が不能になる等により検出してもよい。異常が検出されなければ、そのまま処理を終了しサイクル時間毎に繰り返す。
ゲートウェイ装置14の異常が検出された場合(S10のYes)、ゲートウェイ代行手段16はゲートウェイ装置14の機能を代行し(S20)、処理制限手段17は優先的にゲートウェイ機能を代行できるようECU13B本来の優先度の低い処理については処理負荷を制限する。
The gateway abnormality detection means 15 determines whether or not an abnormality of the gateway device 14 is detected depending on whether or not the communication data A is distributed to the two buses 11 and 12 (S10). For example, the detection may be performed when communication with the gateway device 14 becomes impossible. If no abnormality is detected, the process is terminated and repeated every cycle time.
When an abnormality is detected in the gateway device 14 (Yes in S10), the gateway agent means 16 substitutes for the function of the gateway device 14 (S20), and the processing restriction means 17 allows the gateway function to be preferentially substituted for the gateway function. The processing load is limited for low priority processing.

図3は、ECU13Bがゲートウェイ機能を代行した車載通信システム10の構成図の一例を示す。なお、図3において図1と同一構成部分には同一の符号を付しその説明は省略する。図3に示すように、ゲートウェイ装置14に異常が生じても、ECU13Bがゲートウェイ機能を代行するので、通信データAはバス11,12に流通させられることができる。また、ECU13Bは優先順位の低い処理を実行しているので、その処理を停止しても少なくとも走行は可能であり、また、ECU13Bに処理の余裕を設ける必要もないのでコスト増となることもない。   FIG. 3 shows an example of a configuration diagram of the in-vehicle communication system 10 in which the ECU 13B performs the gateway function. In FIG. 3, the same components as those in FIG. As shown in FIG. 3, even if an abnormality occurs in the gateway device 14, the communication data A can be distributed to the buses 11 and 12 because the ECU 13 </ b> B performs the gateway function. Further, since the ECU 13B executes a process with a low priority, even if the process is stopped, at least traveling is possible, and it is not necessary to provide a margin for the process in the ECU 13B, so there is no increase in cost. .

車載通信システムの構成図の一例である。It is an example of the block diagram of a vehicle-mounted communication system. ECU13Bが、ゲートウェイ装置に異常が生じた場合に、ゲートウェイ機能を代行する手順を示すフローチャート図である。It is a flowchart figure which shows the procedure in which ECU13B substitutes for a gateway function when abnormality arises in a gateway apparatus. ECU13Bがゲートウェイ機能を代行した車載通信システムの構成図の一例である。It is an example of the block diagram of the vehicle-mounted communication system in which ECU13B performed the gateway function.

符号の説明Explanation of symbols

10 車載通信システム
11、12 バス
13 電子制御ユニット(ECU)
14 ゲートウェイ装置
15 ゲートウェイ異常検出手段
16 ゲートウェイ代行手段
17 処理制限手段

10 On-vehicle communication system 11, 12 Bus 13 Electronic control unit (ECU)
DESCRIPTION OF SYMBOLS 14 Gateway apparatus 15 Gateway abnormality detection means 16 Gateway proxy means 17 Processing restriction means

Claims (3)

通信データ仲介装置が第1の通信バスから第2の通信バスに通信データを仲介する車載通信システムにおいて、
第1の通信バス及び第2の通信バスに接続された前記通信データを処理する電子制御ユニットが、
前記通信データ仲介装置の異常を検出する異常検出手段と、
前記異常検出手段が異常を検出した場合、前記通信データ仲介装置の機能を代行する代行手段と、
前記異常検出手段が異常を検出した場合、前記通信データの処理を停止するか又は処理を制限する処理制限手段と、を有する、
ことを特徴とする請求項1記載の車載通信システム。
In the in-vehicle communication system in which the communication data mediating device mediates communication data from the first communication bus to the second communication bus.
An electronic control unit for processing the communication data connected to the first communication bus and the second communication bus;
An abnormality detecting means for detecting an abnormality of the communication data mediating device;
If the abnormality detecting means detects an abnormality, a proxy means acting on behalf of the function of the communication data mediating device;
When the abnormality detection unit detects an abnormality, the processing of the communication data is stopped or a processing restriction unit that restricts the processing is included.
The in-vehicle communication system according to claim 1.
前記電子制御ユニットは、車両の安全走行、快適走行など運転支援に係る処理を実行する、
ことを特徴とする請求項1記載の車載通信システム。
The electronic control unit executes processing related to driving support such as safe driving and comfortable driving of a vehicle,
The in-vehicle communication system according to claim 1.
第1の通信バス及び第2の通信バスに接続された電子制御ユニットにおいて、
第1の通信バスから第2の通信バスに通信データを仲介する通信データ仲介装置の異常を検出する異常検出手段と、
前記異常検出手段が異常を検出した場合、前記通信データ仲介装置の機能を代行する代行手段と、
前記異常検出手段が異常を検出した場合、前記通信データの処理を停止するか又は処理を制限する処理制限手段と、
を有することを特徴とする電子制御ユニット。




In an electronic control unit connected to the first communication bus and the second communication bus,
An abnormality detecting means for detecting an abnormality of the communication data mediating apparatus that mediates communication data from the first communication bus to the second communication bus;
If the abnormality detecting means detects an abnormality, a proxy means acting on behalf of the function of the communication data mediating device;
When the abnormality detection means detects an abnormality, processing restriction means for stopping the processing of the communication data or restricting the processing;
An electronic control unit comprising:




JP2007101931A 2007-04-09 2007-04-09 On-vehicle communication system and electronic control unit Pending JP2008259124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007101931A JP2008259124A (en) 2007-04-09 2007-04-09 On-vehicle communication system and electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007101931A JP2008259124A (en) 2007-04-09 2007-04-09 On-vehicle communication system and electronic control unit

Publications (1)

Publication Number Publication Date
JP2008259124A true JP2008259124A (en) 2008-10-23

Family

ID=39982221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007101931A Pending JP2008259124A (en) 2007-04-09 2007-04-09 On-vehicle communication system and electronic control unit

Country Status (1)

Country Link
JP (1) JP2008259124A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010136286A (en) * 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2010147936A (en) * 2008-12-19 2010-07-01 Toyota Motor Corp Relay apparatus, relay method to be executed by the same, and relay system comprised of the same
JP2017098801A (en) * 2015-11-26 2017-06-01 日立オートモティブシステムズ株式会社 Network relay system
US10411950B2 (en) 2016-02-22 2019-09-10 Renesas Electronics Corporation On-vehicle system, program, and controller
JP2019179964A (en) * 2018-03-30 2019-10-17 株式会社Subaru aircraft
US10581682B2 (en) 2017-01-25 2020-03-03 Renesas Electronics Corporation In-vehicle communication system, domain master, and firmware update method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010136286A (en) * 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2010147936A (en) * 2008-12-19 2010-07-01 Toyota Motor Corp Relay apparatus, relay method to be executed by the same, and relay system comprised of the same
JP2017098801A (en) * 2015-11-26 2017-06-01 日立オートモティブシステムズ株式会社 Network relay system
US10411950B2 (en) 2016-02-22 2019-09-10 Renesas Electronics Corporation On-vehicle system, program, and controller
US10581682B2 (en) 2017-01-25 2020-03-03 Renesas Electronics Corporation In-vehicle communication system, domain master, and firmware update method
JP2019179964A (en) * 2018-03-30 2019-10-17 株式会社Subaru aircraft
US11643188B2 (en) 2018-03-30 2023-05-09 Subaru Corporation Aircraft

Similar Documents

Publication Publication Date Title
US11165851B2 (en) System and method for providing security to a communication network
JP4134672B2 (en) Vehicle control system
JP6201962B2 (en) In-vehicle communication system
JP4225025B2 (en) Integrated vehicle control system
US20070021885A1 (en) System and method for personalizing motor vehicle ride or handling characteristics
JP2008259124A (en) On-vehicle communication system and electronic control unit
US10320911B2 (en) Vehicle network implementing XCP protocol policy and method
US11394726B2 (en) Method and apparatus for transmitting a message sequence over a data bus and method and apparatus for detecting an attack on a message sequence thus transmitted
JPH0662012A (en) Multiple transmitter
WO2020085330A1 (en) Electronic control device, electronic control method, and program
JP7037748B2 (en) Electronic control unit and connection authentication method
JP4934627B2 (en) Information filtering method and in-vehicle gateway device
JP4032779B2 (en) CAN communication system
JP2012006446A (en) In-vehicle network system
US11405233B2 (en) Relay device system
JP2008283386A (en) Data relaying device, and on-vehicle communication system
JP2019209961A (en) Information processor, monitoring method, program, and gateway device
CN114128222B (en) Relay device system
JP2009194733A (en) Vehicular communication control device, onboard network, and policy information generation method
JP4698632B2 (en) Gateway device and control method thereof
KR101835783B1 (en) Power train control unit for vehicle
JP7251685B2 (en) IN-VEHICLE COMPUTER, COMPUTER PROGRAM, COMPUTER-READABLE RECORDING MEDIUM, AND SECURITY SETTING METHOD
WO2023013337A1 (en) Vehicle system
CN111332227B (en) Integrated sensor device for a motor vehicle
US20240129301A1 (en) Vehicle network security