JP2023106156A - Electronic control apparatus and communication system - Google Patents

Electronic control apparatus and communication system Download PDF

Info

Publication number
JP2023106156A
JP2023106156A JP2022007315A JP2022007315A JP2023106156A JP 2023106156 A JP2023106156 A JP 2023106156A JP 2022007315 A JP2022007315 A JP 2022007315A JP 2022007315 A JP2022007315 A JP 2022007315A JP 2023106156 A JP2023106156 A JP 2023106156A
Authority
JP
Japan
Prior art keywords
control
information
network
electronic control
failure
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
JP2022007315A
Other languages
Japanese (ja)
Inventor
偉斌 王
Weibin Wang
大介 手島
Daisuke Tejima
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Astemo 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 Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2022007315A priority Critical patent/JP2023106156A/en
Publication of JP2023106156A publication Critical patent/JP2023106156A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

To properly execute control processing after recovery of communication when a failure occurs on a two-wire communication line connected to an electronic control apparatus.SOLUTION: An electronic control apparatus having terminal resistors equipped at both ends to perform two-wire communication, connected to another electronic control apparatus over a network, having a communication interface which establishes a communication over the network, and configured to execute control processing while communicating with the another electronic control apparatus, includes recovery information including control information associated with failure location information identifying a location of a failure which may occur on the network and device information identifying the another electronic control apparatus. When receiving a notification on the failure location information identifying a location of a failure detected on the network, the electronic control apparatus refers to the recovery information, acquires the control information associated with failure location information and the device information from the recovery information, and establishes a communication with the another electronic control apparatus on the basis of the control information in control processing after recovery of the network.SELECTED DRAWING: Figure 1

Description

本発明は、電子制御装置及び通信システムに関する。 The present invention relates to electronic control units and communication systems.

電子制御機器間の通信において用いられている通信プロトコルの1つに、CAN(Controller Area Network)がある。CANを用いた通信に関連する技術の一例として、2線式通信ラインを介した複数の通信局を有する通信装置において、2線式通信ラインに異常が検出されたときに、当該2線式通信ラインに接続可能な抵抗を制御することにより、通信を復旧させる技術が提案されている。 One of communication protocols used in communication between electronic control devices is CAN (Controller Area Network). As an example of technology related to communication using CAN, in a communication device having a plurality of communication stations via a two-wire communication line, when an abnormality is detected in the two-wire communication line, the two-wire communication Techniques have been proposed for restoring communication by controlling the resistance that can be connected to the line.

特開2019-83471号公報JP 2019-83471 A

かかる従来技術においては、2線式通信ラインに故障が発生した場合に、物理的に通信を復旧させることが可能である。ここで、このようにネットワークが復旧した後においては、復旧後のシステム状態に応じ、通常処理とは異なるデータを用いた制御処理を行うことが望ましい場合がある。しかし、前述の従来技術では、復旧後の制御処理をどのように行うべきかについて言及されておらず、適切な制御処理が実現できない可能性がある。 In such conventional technology, it is possible to physically restore communication when a failure occurs in the two-wire communication line. Here, after the network is restored in this way, it may be desirable to perform control processing using data different from normal processing according to the system state after restoration. However, in the conventional technology described above, there is no mention of how control processing should be performed after restoration, and there is a possibility that appropriate control processing cannot be realized.

そこで、本発明の1つの態様では、電子制御装置が接続された2線式通信ラインに故障が発生した場合において、通信の復旧後に適切な制御処理を行うことができるようにすることを目的とする。 Accordingly, it is an object of one aspect of the present invention to enable appropriate control processing to be performed after communication is restored when a failure occurs in a two-wire communication line to which an electronic control unit is connected. do.

本発明の1つの態様では、終端抵抗を両端に備える2線式通信を行うネットワークを介して他の電子制御装置と接続されるとともに、プロセッサ及びメモリ並びに前記ネットワークを介した通信を実現する通信インタフェースを備え、前記他の電子制御装置と通信しつつ制御処理を行う電子制御装置において、前記メモリが、前記ネットワークにおいて発生し得る故障個所を識別する故障個所情報及び前記他の電子制御装置を識別する装置情報に対応付けられた制御情報を含む復旧情報を備え、前記プロセッサが、前記ネットワークにおいて検出された故障個所を識別する故障個所情報の通知を受けたときに、前記復旧情報を参照して、当該故障個所情報及び前記装置情報に対応付けられた前記制御情報を当該復旧情報から取得し、前記ネットワークの復旧後の制御処理において、当該制御情報に基づいて前記他の電子制御装置との通信を行う。 In one aspect of the present invention, a communication interface that is connected to another electronic control device via a network that performs two-wire communication with termination resistors at both ends, and that realizes communication via a processor, a memory, and the network. wherein the memory stores failure location information for identifying failure locations that may occur in the network and identifies the other electronic control device. recovery information including control information associated with device information, and referring to the recovery information when the processor receives notification of failure location information identifying a failure location detected in the network; The control information associated with the failure location information and the device information is acquired from the restoration information, and communication with the other electronic control device is performed based on the control information in control processing after restoration of the network. conduct.

本発明の1つの態様によれば、電子制御装置が接続された2線式通信ラインに故障が発生した場合において、通信の復旧後に適切な制御処理を行うことができるようになる。 According to one aspect of the present invention, when a failure occurs in a two-wire communication line to which an electronic control unit is connected, appropriate control processing can be performed after communication is restored.

本発明の一実施形態に係る制御システムの一例を示す説明図である。It is an explanatory view showing an example of a control system concerning one embodiment of the present invention. 本発明の一実施形態におけるECU(メイン以外)の機能構成及びデータ構成を示すブロック図である。FIG. 2 is a block diagram showing the functional configuration and data configuration of an ECU (other than main) in one embodiment of the present invention; 本発明の一実施形態におけるECU(メイン)の機能構成及びデータ構成を示すブロック図である。3 is a block diagram showing the functional configuration and data configuration of an ECU (main) in one embodiment of the present invention; FIG. 本発明の一実施形態における復旧情報マトリックスの一例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of a restoration information matrix in one embodiment of the present invention; 本発明の一実施形態におけるECU(メイン)による断線箇所の特定及び復旧処理の一例を示すフローチャートである。4 is a flow chart showing an example of disconnection point identification and restoration processing by an ECU (main) in one embodiment of the present invention. 本発明の一実施形態における断線復旧時の制御情報の選定及び当該制御情報に基づく制御処理の一例を示すフローチャートである。6 is a flow chart showing an example of selection of control information at the time of recovery from disconnection and an example of control processing based on the control information in one embodiment of the present invention. 本発明の一実施形態における復旧処理が実行される際の故障個所及び終端抵抗の具体例を示す説明図である。FIG. 4 is an explanatory diagram showing a specific example of a failure location and a terminating resistor when restoration processing is executed in one embodiment of the present invention; 本発明の一実施形態における復旧処理が実行される際の故障個所及び終端抵抗の具体例を示す説明図である。FIG. 4 is an explanatory diagram showing a specific example of a failure location and a terminating resistor when restoration processing is executed in one embodiment of the present invention; 本発明の一実施形態における復旧情報マトリックスのサブテーブルの一例を示す説明図であり、(A)は制御グループテーブル、(B)は制御情報テーブルを示す。FIG. 4 is an explanatory diagram showing an example of sub-tables of a recovery information matrix in one embodiment of the present invention, where (A) shows a control group table and (B) shows a control information table;

以下、図面を参照しつつ、本発明の実施形態について説明する。なお、本明細書に記載する実施形態によって本発明が限定されるものではなく、異なる実施形態やその変形例は、適宜組み合わせることも可能である。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. It should be noted that the present invention is not limited by the embodiments described in this specification, and different embodiments and modifications thereof can be appropriately combined.

[制御システムの全体構成]
図1は、本実施形態に係る制御システム10の一例を示す。本制御システム10は、自動車等の車両に搭載され、車両の走行等に関連する各種装置の制御を行う。制御システム10は、例えば、制御対象の車載装置の種類により、エンジン制御等のパワートレイン制御系、電動パワーステアリング、ブレーキ制御等の車両制御系、エアバッグや周辺監視等のボディ制御系、ナビゲーションシステムやGPS(Global Positioning System)等の情報系に分類され得る。制御システム10は、車載装置を制御するECU(Electronic Control Unit)20(第1ECU20A、第2ECU20B、第3ECU20C、第4ECU20D、第5ECU20E)を備える。なお、以降の説明において、第1ECU20A~第5ECU20E全てについて共通する説明やこれらのうちの任意の1つ又は複数に該当する説明を行う場合にはECU20と称し、個別の説明をする場合には、第1ECU20A~第5ECU20Eのそれぞれで称する。他の構成要素についても同様である。制御システム10は、これらのECU20のそれぞれに接続され、CANプロトコルを用いて信号を送受信するネットワーク30を備える。ネットワーク30は、2線式通信を構成するCAN_H31及びCAN_L32のバスを備える。
[Overall configuration of control system]
FIG. 1 shows an example of a control system 10 according to this embodiment. The control system 10 is mounted on a vehicle such as an automobile, and controls various devices related to running of the vehicle. The control system 10 includes, for example, a powertrain control system such as engine control, a vehicle control system such as electric power steering and brake control, a body control system such as airbags and surrounding monitoring, and a navigation system, depending on the type of in-vehicle device to be controlled. and GPS (Global Positioning System). The control system 10 includes an ECU (Electronic Control Unit) 20 (1ECU 20A, 2ECU 20B, 3ECU 20C, 4ECU 20D, 5ECU 20E) that controls the in-vehicle device. In the following description, the ECU 20 will be referred to when describing a description common to all of the 1st ECU 20A to the 5th ECU 20E or when describing any one or more of them, and when describing individually. Each of the first ECU 20A to the fifth ECU 20E will be referred to. The same applies to other constituent elements. The control system 10 comprises a network 30 connected to each of these ECUs 20 and transmitting and receiving signals using the CAN protocol. The network 30 comprises CAN_H 31 and CAN_L 32 buses that constitute a two-wire communication.

ECU20は、マイクロコンピュータを構成するCPU(Central Processing Unit)21(21A~21E)、及び通信インタフェース22(22A~22E)を備える。また、ECU20は、CAN_H31及びCAN_L32に接続されたスイッチ41(41A~41E)と、CAN_H31及びCAN_L32による2線式通信の終端抵抗となり得る抵抗42(42A~42E)を備える。 The ECU 20 includes a CPU (Central Processing Unit) 21 (21A to 21E) that constitutes a microcomputer, and a communication interface 22 (22A to 22E). The ECU 20 also includes switches 41 (41A to 41E) connected to CAN_H31 and CAN_L32, and resistors 42 (42A to 42E) that can serve as terminating resistors for two-wire communication by CAN_H31 and CAN_L32.

CPU21は、メモリ(図1では図示省略)に格納されたプログラムをロードして実行することにより、ECU20が制御対象とする車載装置の制御処理を行う。また、CAN_H31及びCAN_L32を介して他のECU20と通信を行うための通信制御処理を行う。 The CPU 21 loads and executes a program stored in a memory (not shown in FIG. 1), thereby performing control processing of an in-vehicle device to be controlled by the ECU 20 . Also, communication control processing for communicating with other ECUs 20 via CAN_H31 and CAN_L32 is performed.

通信インタフェース22は、例えばCAN(Controller Area Network)トランシーバ等で構成され、バスに送信する電圧の発生や調整、動作電流の確保等を行い、ネットワーク30に接続する機能を提供する。通信インタフェース22は、CAN_H31及びCAN_L32に対し、CPU21から送信されるデータの値に応じて異なる電圧の信号(差動信号)を送信する。また、通信インタフェース22は、CAN_H31及びCAN_L32から信号を受信したときには、CAN_H31及びCAN_L32における信号の電圧差に基づき、受信した信号が示すデータの値を識別する。 The communication interface 22 is composed of, for example, a CAN (Controller Area Network) transceiver or the like, and provides a function of generating and adjusting a voltage to be transmitted to the bus, securing an operating current, and the like, and connecting to the network 30 . The communication interface 22 transmits signals (differential signals) of different voltages according to the values of data transmitted from the CPU 21 to the CAN_H 31 and CAN_L 32 . Further, when receiving signals from CAN_H31 and CAN_L32, the communication interface 22 identifies the data value indicated by the received signal based on the voltage difference between the signals in CAN_H31 and CAN_L32.

スイッチ41は、トランジスタなどの半導体素子からなり、CPU21による制御に基づいてオン/オフされる。
抵抗42は、スイッチ41がオンになると、CAN_H31及びCAN_L32に接続され、ネットワーク30における終端抵抗(例えば120Ωの抵抗値)として機能する。図1に示すシステム例では、第1ECU20Aが備えるスイッチ41Aと第5ECU20Eが備えるスイッチ41Eとがオンになっている。このため、第1ECU20Aが備える抵抗42Aと第5ECU20Eが備える抵抗42EとがそれぞれCAN_H31及びCAN_L32における2線式通信の終端抵抗となっている。
The switch 41 is made of a semiconductor element such as a transistor, and is turned on/off under the control of the CPU 21 .
Resistor 42 is connected to CAN_H 31 and CAN_L 32 when switch 41 is turned on, and acts as a terminating resistor (eg, 120Ω resistance) in network 30 . In the system example shown in FIG. 1, the switch 41A provided in the 1ECU20A and the switch 41E provided in the 5ECU20E are turned on. Therefore, the resistance 42A provided in the 1ECU 20A and the resistance 42E provided in the 5ECU 20E serve as terminating resistances for two-wire communication in CAN_H31 and CAN_L32, respectively.

図1に示す制御システム10では、第1ECU20A~第5ECU20Eのうち、第5ECU20Eが、ネットワーク30における通信管理機能(メイン機能)を有する。換言すれば、第5ECU20Eが備えるCPU21Eが、ネットワーク30におけるメインCPUとして機能する。以下、第1ECU20A~第4ECU20Dと、通信管理機能を有する第5ECU20Eとに分けて、それぞれにおける機能構成及びデータ構成について説明する。なお、第5ECU20Eが第1の電子制御装置の具体例であり、第1ECU20A~第4ECU20Dが、第2の電子制御装置の具体例である。 In the control system 10 shown in FIG. 1, among the 1ECU 20A to the 5ECU 20E, the 5ECU 20E has a communication management function (main function) in the network 30. In other words, the CPU 21E provided in the 5ECU 20E functions as the main CPU in the network 30. Hereinafter, the functional configuration and data configuration of each of the 1ECU20A to 4ECU20D and the 5ECU20E having a communication management function will be described. The 5ECU 20E is a specific example of a first electronic control device, and the 1ECU 20A to 4ECU 20D are specific examples of a second electronic control device.

[ECUの機能構成及びデータ構成]
図2は、第1ECU20A~第4ECU20Dのそれぞれの機能構成及びデータ構成を示すブロック図である。第1ECU20A~第4ECU20Dのそれぞれは、マイクロコンピュータを構成するCPU21においてそれぞれプログラムが実行されることによってその機能が実現される制御部50として、信号送信部51と、制御処理部52とを備える。また、第1ECU20A~第4ECU20Dのそれぞれのマイクロコンピュータは、メモリ60を備え、メモリ60には、復旧情報マトリックス61が格納されている。なお、メモリ60には、第1ECU20A~第4ECU20Dにおける通常の制御処理に用いるデータも格納されているが、本実施形態では図示及び説明を省略する。
[ECU functional configuration and data configuration]
FIG. 2 is a block diagram showing the functional configuration and data configuration of each of the 1ECU 20A to 4ECU 20D. Each of the first ECU 20A to the fourth ECU 20D includes a signal transmission unit 51 and a control processing unit 52 as a control unit 50 whose function is realized by executing a program in the CPU 21 constituting a microcomputer. Each microcomputer of the 1ECU 20A to 4ECU 20D has a memory 60 in which a recovery information matrix 61 is stored. The memory 60 also stores data used for normal control processing in the first ECU 20A to the fourth ECU 20D, but illustration and description thereof are omitted in this embodiment.

信号送信部51は、所定時間ごとに、自装置が正常に動作していることを示すハートビート信号を、通信管理機能を備える第5ECU20Eに対して送信する。
制御処理部52は、車載装置に対する通常の制御処理を行う。また、制御処理部52は、通信管理機能を備える第5ECU20Eの故障個所通知部55からネットワーク30における故障個所を示す故障個所コードが通知されたときに、メモリ60に格納された復旧情報マトリックス61を参照し、当該故障個所コード、及び制御処理において通信を行う相手先のECU20のそれぞれを識別する装置情報に対応付けられた制御情報を取得する。そして、制御処理部52は、当該制御情報に基づいて、ネットワーク30の復旧後における制御処理を行う。
The signal transmission unit 51 transmits a heartbeat signal indicating that its own device is operating normally to the 5ECU 20E having a communication management function at predetermined time intervals.
The control processing unit 52 performs normal control processing for the in-vehicle device. In addition, when the control processing unit 52 is notified of a failure location code indicating a failure location in the network 30 from the failure location notification unit 55 of the 5ECU 20E having a communication management function, the recovery information matrix 61 stored in the memory 60 By referring to it, the control information associated with the device information for identifying each of the ECUs 20 with which communication is performed in the relevant failure location code and the control process is acquired. Then, the control processing unit 52 performs control processing after restoration of the network 30 based on the control information.

図3は、通信管理機能を有する第5ECU20Eの機能構成及びデータ構成を示すブロック図である。第5ECU20Eは、第1ECU20A~第4ECU20Dと同じく、制御部50の制御処理部52、及びメモリ60の復旧情報マトリックス61を備える。また、第5ECU20Eは、第1ECU20A~第4ECU20Dにおける信号送信部51の代わりに、故障検出部53と、終端制御部54と、故障個所通知部55とをさらに備える。 FIG. 3 is a block diagram showing the functional configuration and data configuration of the 5ECU 20E having a communication management function. The 5ECU 20E includes a control processing unit 52 of the control unit 50 and a recovery information matrix 61 of the memory 60, like the 1ECU 20A to the 4th ECU 20D. Further, the 5ECU20E further includes a failure detection unit 53, a termination control unit 54, and a failure location notification unit 55 instead of the signal transmission unit 51 in the 1ECU20A to the 4th ECU20D.

故障検出部53は、ネットワーク30における故障の発生個所を特定する。具体的には、故障検出部53は、第1ECU20A~第4ECU20Dからのハートビート信号が途絶したことを検出すると、第1ECU20A~第4ECU20Dに対してブロードバンド送信を行う。そして、故障検出部53は、ブロードバンド送信に対する第1ECU20A~第4ECU20Dからの応答信号の有無に基づいて、故障個所を特定する。 The fault detection unit 53 identifies the location of the fault in the network 30 . Specifically, when the failure detection unit 53 detects that the heartbeat signals from the first ECU 20A to the fourth ECU 20D are interrupted, it performs broadband transmission to the first ECU 20A to the fourth ECU 20D. Then, the failure detection unit 53 identifies the location of the failure based on the presence or absence of response signals from the first ECU 20A to the fourth ECU 20D to the broadband transmission.

終端制御部54は、特定されたネットワーク30の故障個所に応じて、第1ECU20A~第4ECU20Dのいずれかが備えるスイッチ41をオンに切り替え、抵抗42をネットワーク30に接続する。これにより、ネットワーク30の2線式通信における終端抵抗の位置を変えることができ、ネットワーク30を物理的に復旧させることができる。 The termination control unit 54 turns on the switch 41 provided in any one of the 1ECU 20A to the 4th ECU 20D and connects the resistor 42 to the network 30 according to the specified failure location of the network 30 . Thereby, the position of the terminating resistor in the two-wire communication of the network 30 can be changed, and the network 30 can be physically restored.

故障個所通知部55は、検出されたネットワーク30の故障個所を識別する故障個所コードを、第1ECU20A~第5ECU20Eの制御処理部52に通知する。この故障個所コードは、例えば、2進数コード「00000000」~「11111111」の間で、ネットワーク30において発生し得る故障個所ごとに任意に対応付けて設定しておくことができる。
制御部50の制御処理部52、メモリ60の復旧情報マトリックス61については、第1ECU20A~第4ECU20Dと同様であるため、説明を省略する。
なお、当該第5ECU20Eは、制御処理部52や復旧情報マトリックス61を備えず、通信管理機能に関連する構成要素のみを備えるように構成されていてもよい。
The failure location notification unit 55 notifies the control processing units 52 of the 1ECU 20A to the 5ECU 20E of a failure location code that identifies the detected failure location of the network 30. FIG. This fault location code can be set, for example, between binary codes “00000000” to “11111111” in association with each possible failure location in the network 30 .
Since the control processing unit 52 of the control unit 50 and the restoration information matrix 61 of the memory 60 are the same as those of the first ECU 20A to the fourth ECU 20D, description thereof will be omitted.
The 5ECU 20E may be configured to include only components related to the communication management function without including the control processing unit 52 and the recovery information matrix 61.

[復旧情報マトリックスの構成]
ここで、ECU20のそれぞれが備える復旧情報マトリックス61の一例を図4に示す。復旧情報マトリックス61は、ネットワーク30において発生し得る故障個所を識別する故障個所コード(故障個所情報)、及び制御処理において通信を行う相手先となるECU20を識別する装置情報に対応付けられた制御情報を示すテーブルである。例えば、図4は、第4ECU20Dが保持している復旧情報マトリックス61の具体例を示している。当該復旧情報マトリックス61では、故障個所コード「1(2進数コードで00000001)」と、通信する相手先である第3ECU20Cとに対応付けられている制御情報が「異常時設定値」である。これは、当該復旧情報マトリックス61を備える第4ECU20Dの制御処理部52が、第5ECU20Eの故障個所通知部55から故障個所コード「1」の通知を受けたとき、すなわち、ネットワーク30において、第1ECU20A及び第2ECU20Bの間で故障が発生しているときに、第3ECU20Cとの間の通信において所定の「異常時設定値」を用いて制御を行うことを示している。一方で、第5ECU20Eとの間の通信においては、故障が発生する前に送受信した「前回値」を用いて制御を継続することを示している。なお、当該「前回値」については、ECU20のそれぞれのメモリ60において当該値を保持していることを前提とする。なお、復旧情報マトリックス61に示すデータ例のうち、「送受信値」は、復旧後に送受信することが可能なデータの値をそのまま用いる(すなわち、通常処理を行う)ことを示す。また、このような「異常時設定値」、「前回値」、「送受信値」等は、制御情報の一例に過ぎない。
[Structure of recovery information matrix]
Here, FIG. 4 shows an example of the restoration information matrix 61 provided in each of the ECUs 20. As shown in FIG. The recovery information matrix 61 includes control information associated with failure location codes (failure location information) that identify possible failure locations in the network 30, and device information that identifies the ECU 20 that communicates with in control processing. is a table showing For example, FIG. 4 shows a specific example of the restoration information matrix 61 held by the fourth ECU 20D. In the recovery information matrix 61, the control information associated with the fault location code "1 (00000001 in binary code)" and the 3ECU20C, which is the other party to communicate with, is the "abnormal set value". This is when the control processing unit 52 of the 4ECU20D having the recovery information matrix 61 receives a notification of the failure location code "1" from the failure location notification unit 55 of the 5ECU20E, that is, in the network 30, the 1ECU20A and When a failure occurs between the 2ECU20B, it indicates that the control is performed using a predetermined "abnormal set value" in communication with the 3ECU20C. On the other hand, in the communication with the 5ECU 20E, it indicates that the control is continued using the "previous value" transmitted and received before the failure occurred. It should be noted that it is assumed that the "previous value" is held in each memory 60 of the ECU 20 . Among the data examples shown in the restoration information matrix 61, the "transmission value" indicates that the value of data that can be transmitted and received after restoration is used as it is (that is, normal processing is performed). Also, such "abnormal setting value", "previous value", "transmission/reception value" and the like are merely examples of control information.

[故障発生時における各ECUによる復旧処理]
次に、ECU20において実行される処理について詳細に説明する。
まず、通信管理機能を有する第5ECU20Eの故障検出部53、終端制御部54及び故障個所通知部55が実行する処理について、図5に示すフローチャートを参照しながら説明する。
[Recovery processing by each ECU when failure occurs]
Next, processing executed in the ECU 20 will be described in detail.
First, processing executed by the failure detection unit 53, the termination control unit 54, and the failure location notification unit 55 of the 5ECU 20E having a communication management function will be described with reference to the flowchart shown in FIG.

ステップ101(図ではS101と示している。以下同様)で、故障検出部53は、所定期間内にECU20A~20Dからのハートビート信号を受信したか否かを判定する。受信した場合にはステップ101の処理を継続して行い(Yes)、受信していない場合にはステップ102に進む(No)。
ステップ102で、終端制御部54は、自装置(第5ECU20E)が備えるスイッチ41Eをオンにし、抵抗42Eをネットワーク30に接続する。
ステップ103で、故障検出部53は、第1ECU20A~第4ECU20Dに対して、応答信号を要求するためのブロードバンド送信を行う。
At step 101 (indicated as S101 in the figure, the same applies hereinafter), the failure detection unit 53 determines whether or not a heartbeat signal has been received from the ECUs 20A to 20D within a predetermined period. If received, the process of step 101 is continued (Yes), and if not received, the process proceeds to step 102 (No).
At step 102 , the termination control unit 54 turns on the switch 41E provided in its own device (the 5ECU 20E) and connects the resistor 42E to the network 30 .
At step 103, the failure detection unit 53 performs broadband transmission to request a response signal from the first ECU 20A to the fourth ECU 20D.

ステップ104で、故障検出部53は、第4ECU20Dから応答信号を受信したか否かを判定する。受信していない場合にはステップ105に進み(No)、受信した場合にはステップ107に進む(Yes)。
ステップ105で、故障検出部53は、ネットワーク30の故障個所が第4ECU20Dと第5ECU20Eとの間であると特定する。このとき、故障検出部53は、故障個所コードを「4(00000100)」とする。
ステップ106で、故障検出部53は、第3ECU20Cから応答信号を受信したか否かを判定する。受信していない場合にはステップ107に進み(No)、受信した場合にはステップ108に進む(Yes)。
ステップ107で、故障検出部53は、ネットワーク30の故障個所が第3ECU20Cと第4ECU20Dとの間であると特定する。このとき、故障検出部53は、故障個所コードを「3(00000011)」とする。
At step 104, the failure detection unit 53 determines whether or not a response signal has been received from the fourth ECU 20D. If not received, proceed to step 105 (No), and if received, proceed to step 107 (Yes).
At step 105, the failure detection unit 53 identifies that the failure location of the network 30 is between the 4ECU 20D and the 5ECU 20E. At this time, the failure detection unit 53 sets the failure location code to "4 (00000100)".
In step 106, the failure detection unit 53 determines whether or not it has received a response signal from the 3ECU20C. If not received, proceed to step 107 (No), and if received, proceed to step 108 (Yes).
At step 107, the failure detection unit 53 identifies that the failure location of the network 30 is between the 3ECU20C and the 4ECU20D. At this time, the failure detection unit 53 sets the failure location code to "3 (00000011)".

ステップ108で、故障検出部53は、第2ECU20Bから応答信号を受信したか否かを判定する。受信していない場合にはステップ109に進み(No)、受信した場合にはステップ110に進む(Yes)。
ステップ109で、故障検出部53は、ネットワーク30の故障個所が第2ECU20Bと第3ECU20Cとの間であると特定する。このとき、故障検出部53は、故障個所コードを「2(00000010)」とする。
ステップ110で、故障検出部53は、第1ECU20Aから応答信号を受信したか否かを判定する。受信していない場合にはステップ111に進み(No)、受信した場合にはステップ112に進む(Yes)。
ステップ111で、故障検出部53は、ネットワーク30の故障個所が第1ECU20Aと第2ECU20Bとの間であると特定する。このとき、故障検出部53は、故障個所コードを「1(00000001)」とする。
At step 108, the failure detection unit 53 determines whether or not a response signal has been received from the second ECU 20B. If not received, proceed to step 109 (No), and if received, proceed to step 110 (Yes).
At step 109, the failure detection unit 53 identifies that the failure location of the network 30 is between the second 2ECU20B and the second 3ECU20C. At this time, the failure detection unit 53 sets the failure location code to "2 (00000010)".
At step 110, the failure detection unit 53 determines whether or not a response signal has been received from the first ECU 20A. If not received, proceed to step 111 (No), and if received, proceed to step 112 (Yes).
At step 111, the failure detection unit 53 identifies that the failure location of the network 30 is between the 1ECU 20A and the 2ECU 20B. At this time, the failure detection unit 53 sets the failure location code to "1 (00000001)".

ステップ112で、故障検出部53は、第1ECU20A~第4ECU20Dの全てから応答信号が受信されているため、ハートビート信号が途絶した原因が断線故障等ではないと特定する。具体的には、故障検出部53は、終端抵抗を有するECU20におけるソフトウェアリセットや、終端抵抗の不安定動作等によって一時的にハートビート信号が途絶したものであると特定する。このとき、故障検出部53は、故障個所コードを「0(00000000)」とする。 At step 112, the failure detection unit 53 determines that the cause of the interruption of the heartbeat signal is not a disconnection failure or the like, since response signals have been received from all of the first ECU 20A to the fourth ECU 20D. Specifically, the failure detection unit 53 determines that the heartbeat signal has been temporarily interrupted due to a software reset in the ECU 20 having a terminating resistor, an unstable operation of the terminating resistor, or the like. At this time, the failure detection unit 53 sets the failure location code to "0 (00000000)".

ステップ113で、終端制御部54は、故障検出部53により特定された故障個所に応じて、第1ECU20A~第5ECU20Eのいずれかの抵抗42をネットワーク30に接続し、終端抵抗の個所を変更する。図1に示した制御システム10の場合における具体例を挙げると、ネットワーク30の故障個所が第2ECU20Bと第3ECU20Cとの間である場合、終端制御部54は、第3ECU20Cに対し、抵抗42Cをネットワーク30に接続する指示を送信する。これに応じ、第3ECU20Cでは、スイッチ41Cをオンに切り替え、抵抗42Cをネットワーク30に接続する。その結果、第3ECU20Cの抵抗42Cがネットワーク30の終端抵抗となり、少なくとも第3ECU20C~第5ECU20Eの間で通信が復旧し得る。
ステップ114で、終端制御部54は、自装置(第5ECU20E)が備えるスイッチ41Eをオフにし、抵抗42Eのネットワーク30への接続を解除する。
In step 113, the termination control unit 54 connects the resistor 42 of any one of the 1ECU 20A to the 5ECU 20E to the network 30 according to the failure location specified by the failure detection unit 53, and changes the location of the termination resistance. To give a specific example in the case of the control system 10 shown in FIG. 1, when the failure point of the network 30 is between the 2ECU20B and the 3ECU20C, the termination control unit 54 connects the resistor 42C to the 3ECU20C to the network 30 to send an instruction to connect. Accordingly, in the second 3ECU20C, the switch 41C is switched on and the resistor 42C is connected to the network 30. As a result, the resistor 42C of the 3ECU20C becomes the terminating resistor of the network 30, and communication can be restored at least between the 3ECU20C and the 5ECU20E.
In step 114, the termination control unit 54 turns off the switch 41E provided in its own device (the 5ECU 20E), and disconnects the resistor 42E from the network 30.

ステップ115で、故障個所通知部55は、ステップ112の処理によってネットワーク30が物理的に復旧した結果、現時点で通信可能なECU20に対し、ステップ105、107、109、111又は112の処理によって決定した故障個所コードを通知する。具体的には、故障個所通知部55は、第1ECU20A~第4ECU20Dのうち、通信可能なECU20の制御処理部52に対し、ネットワーク30を介して故障個所コードを送信する。また、自装置である第5ECU20E内の制御処理部52に対しても、当該故障個所コードを受け渡す。 In step 115, the fault location notification unit 55 determines the ECU 20 that can communicate at the present time as a result of the physical restoration of the network 30 by the processing of step 112. Notify the failure location code. Specifically, the failure location notification unit 55 transmits the failure location code via the network 30 to the control processing unit 52 of the ECU 20 with which communication is possible among the first ECU 20A to the fourth ECU 20D. Also, the failure location code is passed to the control processing unit 52 in the 5ECU 20E, which is the own device.

次に、第1ECU20A~第5ECU20Eの制御処理部52が実行する処理について、図6に示すフローチャートを参照しながら説明する。
ステップ211で、制御処理部52は、第5ECU20Eの故障個所通知部55から故障個所コードの通知があったか否かを判定する。通知があった場合にはステップ212に進み(Yes)、通知がない場合にはステップ211の処理を継続して行う(No)。
ステップ212で、制御処理部52は、受信した故障個所コードが「1(00000001)」、「2(00000010)」、「3(00000011)」、「4(00000100)」、「0(00000000)」のいずれであるかを判定する。そして、制御処理部52は、ステップ213~217において、それぞれの故障個所コードに応じた処理を行う。
Next, the processing executed by the control processing units 52 of the 1ECU 20A to the 5ECU 20E will be described with reference to the flowchart shown in FIG.
At step 211, the control processing unit 52 determines whether or not the failure location code has been notified from the failure location notification unit 55 of the 5ECU 20E. If there is a notification, the process proceeds to step 212 (Yes), and if there is no notification, the process of step 211 is continued (No).
At step 212, the control processing unit 52 determines that the received fault location code is "1 (00000001)", "2 (00000010)", "3 (00000011)", "4 (00000100)", "0 (00000000)". It is determined whether it is any of Then, in steps 213 to 217, the control processing unit 52 performs processing corresponding to each fault location code.

ステップ213で、制御処理部52は、復旧情報マトリックス61を参照し、故障個所コード「1」と、制御処理において通信する相手先のECU20のそれぞれとに対応付けられた制御情報を取得する。
ステップ214で、制御処理部52は、復旧情報マトリックス61を参照し、故障個所コード「2」と、制御処理において通信する相手先のECU20のそれぞれとに対応付けられた制御情報を取得する。
ステップ215で、制御処理部52は、復旧情報マトリックス61を参照し、故障個所コード「3」と、制御処理において通信する相手先のECU20のそれぞれとに対応付けられた制御情報を取得する。
ステップ216で、制御処理部52は、復旧情報マトリックス61を参照し、故障個所コード「4」と、制御処理において通信する相手先のECU20のそれぞれとに対応付けられた制御情報を取得する。
ステップ217で、制御処理部52は、復旧情報マトリックス61を参照し、故障個所コード「0」と、制御処理において通信する相手先のECU20のそれぞれとに対応付けられた制御情報を取得する。
At step 213, the control processing unit 52 refers to the recovery information matrix 61 and acquires the control information associated with each of the failure location code "1" and each of the ECUs 20 with which communication is performed in the control process.
At step 214, the control processing unit 52 refers to the recovery information matrix 61 and acquires the control information associated with each of the failure location code "2" and each of the ECUs 20 with which it communicates in the control process.
At step 215, the control processing unit 52 refers to the restoration information matrix 61 and acquires the control information associated with each of the failure location code "3" and each of the ECUs 20 with which it communicates in the control process.
At step 216, the control processing unit 52 refers to the recovery information matrix 61 and acquires control information associated with each of the failure location code "4" and each of the ECUs 20 with which it communicates in the control process.
At step 217, the control processing unit 52 refers to the restoration information matrix 61 and acquires the control information associated with each of the failure location code "0" and each of the ECUs 20 with which it communicates in the control process.

ステップ218で、制御処理部52は、ステップ213~217のいずれかで取得した制御情報に基づいて、制御処理において通信する相手先のECU20のそれぞれとの制御に用いるデータを決定し、当該データを用いて制御処理を行う。 At step 218, the control processing unit 52 determines data to be used for control with each of the ECUs 20 that are communication partners in the control processing based on the control information acquired at any one of steps 213 to 217, and uses the data. Control processing is performed using

次に、このような復旧処理の具体例について、図7及び図8を参照しながら説明する。 図7は、第1ECU20Aと第2ECU20Bとの間で断線故障が発生した状態を示している。この場合、通信管理機能を有する第5ECU20Eの故障検出部53が、第1ECU20A、第2ECU20B、第3ECU20C、第4ECU20Dに対してブロードバンド送信を行う。その結果、第1ECU20Aからの応答信号が受信できないため、第5ECU20Eの故障検出部53は、第1ECU20Aと第2ECU20Bとの間で断線故障が発生したと特定する。そして、第5ECU20Eの終端制御部54は、第2ECU20Bに対し、抵抗42Bをネットワーク30に接続する指示を送信する。これに応じ、第2ECU20Bでは、スイッチ41Bをオンに切り替え、抵抗42Bをネットワーク30に接続する。その結果、第2ECU20Bの抵抗42Bがネットワーク30の終端抵抗となり、少なくとも、図7において破線で囲われた第2ECU20B~第5ECU20Eの間で通信を復旧させることができる。 Next, a specific example of such restoration processing will be described with reference to FIGS. 7 and 8. FIG. FIG. 7 shows a state in which a disconnection failure has occurred between the 1ECU 20A and the 2ECU 20B. In this case, the failure detection unit 53 of the 5ECU20E having a communication management function performs broadband transmission to the 1ECU20A, the 2ECU20B, the 3ECU20C, and the 4ECU20D. As a result, since the response signal from the 1ECU 20A cannot be received, the failure detection unit 53 of the 5ECU 20E specifies that a disconnection failure has occurred between the 1ECU 20A and the 2ECU 20B. Then, the termination control unit 54 of the 5ECU 20E transmits an instruction to connect the resistor 42B to the network 30 to the 2ECU 20B. In response, the second ECU 20B turns on the switch 41B and connects the resistor 42B to the network 30 . As a result, the resistor 42B of the 2ECU 20B becomes a terminating resistor of the network 30, and communication can be restored at least between the 2ECU 20B to the 5ECU 20E surrounded by the dashed lines in FIG.

そして、第5ECU20Eの故障個所通知部55は、当該故障個所を識別する故障個所コードである「1(00000001)」を、第2ECU20B~第5ECU20Eのそれぞれの制御処理部52に通知する。一方で、当該故障個所コード「1」の通知を受けた第2ECU20B~第5ECU20Eのそれぞれの制御処理部52は、復旧情報マトリックス61を参照し、当該故障個所コード「1」に対応付けられた制御情報を取得して、当該制御情報に基づいて制御を行う。例えば、図4に示した復旧情報マトリックス61の例を第4ECU20Dが保持している場合、第4ECU20Dの制御処理部52は、復旧後に第3ECU20Cとの間で送受信するデータを、予め設定しておいた「異常時設定値」とする。一方で、第5ECU20Eとの間で送受信するデータについては、故障が発生する直前の処理において用いた値である「前回値」とする。 Then, the failure location notification unit 55 of the 5ECU 20E notifies the control processing unit 52 of each of the 2ECU 20B to the 5ECU 20E of the failure location code "1 (00000001)" that identifies the failure location. On the other hand, the control processing unit 52 of each of the 2ECU20B to the 5ECU20E that has received the notification of the failure location code "1" refers to the restoration information matrix 61, and controls associated with the failure location code "1". Information is acquired and control is performed based on the control information. For example, when the 4ECU20D holds the example of the recovery information matrix 61 shown in FIG. "Abnormal setting value". On the other hand, the data transmitted/received to/from the 5ECU 20E is set as the "previous value" which is the value used in the process immediately before the failure occurs.

ここで、さらに、第2ECU20Bと第3ECU20Cとの間で断線故障が発生した状態を図8に示す。この場合、通信管理機能を有する第5ECU20Eがブロードバンド送信を行った結果、第2ECU20Bからの応答信号が受信できないため、第5ECU20Eの故障検出部53は、第2ECU20Bと第3ECU20Cとの間で断線故障が発生したと特定する。そして、第5ECU20Eの終端制御部54は、第3ECU20Cに対し、抵抗42Cをネットワーク30に接続する指示を送信する。これに応じ、第3ECU20Cでは、スイッチ41Cをオンに切り替え、抵抗42Cをネットワーク30に接続する。その結果、第3ECU20Cの抵抗42Cがネットワーク30の終端抵抗となり、少なくとも、図8において破線で囲われた第3ECU20C~第5ECU20Eの間で通信を復旧させることができる。 Here, further, FIG. 8 shows a state in which a disconnection failure has occurred between the 2ECU20B and the 3ECU20C. In this case, as a result of broadband transmission by the 5ECU20E having a communication management function, the response signal from the 2ECU20B cannot be received, so the failure detection unit 53 of the 5ECU20E detects that there is a disconnection failure between the 2ECU20B and the 3ECU20C. identify it as occurring. Then, the termination control unit 54 of the 5ECU20E transmits an instruction to connect the resistor 42C to the network 30 to the 3ECU20C. Accordingly, in the second 3ECU20C, the switch 41C is switched on and the resistor 42C is connected to the network 30. As a result, the resistor 42C of the 3ECU20C becomes the terminating resistor of the network 30, and at least communication can be restored between the 3ECU20C to the 5ECU20E surrounded by the dashed lines in FIG.

そして、ECU20Eの故障個所通知部55は、当該故障個所を識別する故障個所コードである「2(00000010)」を、第3ECU20C~第5ECU20Eのそれぞれの制御処理部52に通知する。一方で、当該故障個所コード「2」の通知を受けた第3ECU20C~第5ECU20Eのそれぞれの制御処理部52は、復旧情報マトリックス61を参照し、当該故障個所コード「2」に対応付けられた制御情報を取得して、当該制御情報に基づいて通信を行う。例えば、図4に示した復旧情報マトリックス61の例を第4ECU20Dが保持している場合、第3ECU20Cとの間で送受信するデータを、故障が発生する直前の処理において用いた値である「前回値」とする一方で、第5ECU20Eとの間で送受信するデータについては、所定の「異常時設定値」とする。このように、故障個所が変化したことによって、復旧後の制御処理における通信に用いるデータの値も変わり得る。 Then, the failure location notification unit 55 of the ECU 20E notifies the control processing unit 52 of each of the 3ECU20C to the 5ECU20E, "2 (00000010)", which is a failure location code that identifies the failure location. On the other hand, the control processing unit 52 of each of the 3ECU20C to the 5ECU20E that has received the notification of the failure location code "2" refers to the restoration information matrix 61 and controls associated with the failure location code "2" Information is acquired and communication is performed based on the control information. For example, if the 4ECU20D holds the example of the recovery information matrix 61 shown in FIG. ”, the data to be transmitted and received with the 5ECU 20E is set to a predetermined “abnormal setting value”. In this way, the value of data used for communication in control processing after restoration may also change due to a change in the failure location.

[本実施形態による効果等]
本実施形態では、以上のような構成を有することにより、2線式通信のCANネットワークにおいて断線等の故障が発生したときに、次のような効果を奏する。すなわち、本実施形態によれば、通信復旧後の制御情報が故障個所及び制御処理において通信する相手先のECUのそれぞれに対応付けられて格納された復旧情報マトリックスが予め設けられている。そして、当該復旧情報マトリックスの制御情報を参照することにより、通信復旧後に、通信相手先のECUのそれぞれとの間で故障個所に応じたデータを送受信しつつ制御処理を行うことができる。したがって、単に物理的に通信を復旧させるだけでなく、復旧後の制御処理をより適切に行うことが可能となる。また、このような故障が段階的に複数生じた場合においても、その都度故障個所が特定され、直近の故障個所に対応したデータを用いた制御処理を行うことができる。
[Effects of this embodiment, etc.]
With the configuration as described above, the present embodiment has the following effects when a failure such as disconnection occurs in the CAN network for two-wire communication. That is, according to the present embodiment, a restoration information matrix is provided in advance, in which the control information after the communication is restored is stored in association with each of the failure points and the partner ECUs with which communication is performed in the control process. By referring to the control information in the recovery information matrix, control processing can be performed while transmitting/receiving data corresponding to the failure point to/from each of the communication partner ECUs after the communication is restored. Therefore, it is possible not only to physically restore communication, but also to perform control processing after restoration more appropriately. Also, even if a plurality of such failures occur in stages, the location of the failure can be identified each time, and control processing can be performed using data corresponding to the location of the most recent failure.

[本実施形態の変形例]
ここで、本実施形態の変形例について説明する。本変形例においては、前述したECU20のそれぞれが、メモリ60において、復旧情報マトリックス61に加え、さらにサブテーブルである制御グループテーブル61A及び制御情報テーブル61Bを備える。
[Modification of this embodiment]
Here, a modified example of this embodiment will be described. In this modification, each of the ECUs 20 described above has a control group table 61A and a control information table 61B, which are sub-tables, in addition to the restoration information matrix 61 in the memory 60 .

図9(A)は、制御グループテーブル61Aであり、CAN_IDと制御グループとの情報を含む。CAN_IDは、ECU20のそれぞれにおいて実行される制御処理に応じて付与されている制御識別子であり、制御処理において送受信されるデータは当該制御識別子を含む。一方、制御グループは、制御処理の内容(機能や種別、例えば、制御内容に要求される安全性のレベル等)に応じて予め定められた分類を示す。
図9(B)は、制御情報テーブル61Bであり、制御グループと制御情報との情報を含む。制御グループは、前述した制御グループテーブル61Aに格納されている制御グループに対応する。制御情報は、それぞれの制御グループに対応付けられた制御情報を示す。
FIG. 9A is the control group table 61A, which includes information on CAN_IDs and control groups. CAN_ID is a control identifier assigned according to control processing executed in each of the ECUs 20, and data transmitted and received in the control processing includes the control identifier. On the other hand, the control group indicates a predetermined classification according to the contents of control processing (functions and types, for example, the level of safety required for the contents of control, etc.).
FIG. 9B is the control information table 61B, which includes information on control groups and control information. The control group corresponds to the control group stored in the aforementioned control group table 61A. The control information indicates control information associated with each control group.

これらの制御グループテーブル61A及び制御情報テーブル61Bは、故障個所及び制御処理において通信する相手先のECU20のそれぞれに対応させて別個に設けられてもよいし、例えば、複数の相手先のECU20について、共通する制御グループテーブル61A及び制御情報テーブル61Bが設けられてもよい。 These control group table 61A and control information table 61B may be separately provided corresponding to each of the partner ECUs 20 with which communication is performed in the failure location and the control process. A common control group table 61A and control information table 61B may be provided.

当該変形例では、ECU20の制御処理部52は、前述したステップ213~217の処理において、復旧情報マトリックス61を参照する際に、制御処理において通信する相手先のECU20と、当該制御処理に応じて付与されているCAN_IDとを識別する。そして、制御処理部52は、制御グループテーブル61Aを参照し、当該CAN_IDに対応付けられた制御グループを特定する。さらに、制御処理部52は、制御情報テーブル61Bを参照し、特定した制御グループに対応付けられた制御情報を取得する。例えば、図9に示すデータの具体例の場合、制御グループテーブル61Aを参照すると、制御処理のCAN_IDが「0x222」であれば、制御グループが「B」である。このため、制御処理部52は、制御情報テーブル61Bを参照し、制御情報として「異常時設定値」を取得して、当該制御情報に基づいて制御処理を行う。 In the modification, the control processing unit 52 of the ECU 20, when referring to the recovery information matrix 61 in the processing of steps 213 to 217 described above, communicates with the ECU 20 with which it communicates in the control processing, and Identifies the given CAN_ID. Then, the control processing unit 52 refers to the control group table 61A and identifies the control group associated with the CAN_ID. Further, the control processing unit 52 refers to the control information table 61B and acquires control information associated with the specified control group. For example, in the case of the specific example of the data shown in FIG. 9, referring to the control group table 61A, if the CAN_ID of the control process is "0x222", the control group is "B". Therefore, the control processing unit 52 refers to the control information table 61B, acquires the "abnormal setting value" as control information, and performs control processing based on the control information.

当該変形例によれば、CANネットワークの復旧後の制御処理において、故障個所及び通信相手先のECUに加え、さらに具体的な制御内容に応じた制御情報を取得することが可能となる。このため、CANネットワークの復旧後に、制御内容に応じたより適切なデータを用いて制御処理を行うことができる。 According to this modified example, in the control process after restoration of the CAN network, it is possible to acquire control information according to more specific control contents in addition to the failure location and communication partner ECU. Therefore, after restoration of the CAN network, it is possible to perform control processing using more appropriate data according to the content of control.

[その他]
なお、本実施形態では、車両の制御システムにおける適用例について説明したが、CANネットワークは産業用の設備や医療関係の機器など多くの分野でも採用されており、本発明の適用対象となるシステムは、車両の制御システムに限定されるものではない。本実施形態におけるECUは、様々な制御を行う電子制御装置の一例に過ぎない。
また、以上に説明した本発明の実施形態は、本発明の技術的範囲で考え得る実施態様の一部に過ぎず、本発明の例示として開示されるものであって、本発明の技術的範囲を制限するものではない。また、各実施形態における機能的構成及び物理的構成は、前述の態様に限定されるものではなく、例えば、各機能や物理的資源を統合して実装したり、逆に、さらに分散して実装したり、さらには、構成の一部について他の構成の追加、削除、置換等をすることも可能である。
[others]
In this embodiment, an example of application in a vehicle control system has been described, but the CAN network is also used in many fields such as industrial equipment and medical equipment, and the system to which the present invention is applied is , but not limited to vehicle control systems. The ECU in this embodiment is merely an example of an electronic control device that performs various controls.
In addition, the embodiments of the present invention described above are only a part of possible embodiments within the technical scope of the present invention, and are disclosed as examples of the present invention. does not limit In addition, the functional configuration and physical configuration in each embodiment are not limited to the aspects described above. Furthermore, it is also possible to add, delete, replace, etc. other configurations with respect to a part of the configuration.

10…制御システム、20…ECU、21…CPU、22…通信インタフェース、30…ネットワーク、41…スイッチ、42…抵抗、51…信号送信部、52…制御処理部、53…故障検出部、54…終端制御部、55…故障個所通知部、61…復旧情報マトリックス DESCRIPTION OF SYMBOLS 10... Control system 20... ECU 21... CPU 22... Communication interface 30... Network 41... Switch 42... Resistance 51... Signal transmission part 52... Control process part 53... Failure detection part 54... Termination control unit, 55... Failure point notification unit, 61... Restoration information matrix

Claims (4)

終端抵抗を両端に備える2線式通信を行うネットワークを介して他の電子制御装置と接続されるとともに、プロセッサ及びメモリ並びに前記ネットワークを介した通信を実現する通信インタフェースを備え、前記他の電子制御装置と通信しつつ制御処理を行う電子制御装置であって、
前記メモリが、前記ネットワークにおいて発生し得る故障個所を識別する故障個所情報及び前記他の電子制御装置を識別する装置情報に対応付けられた制御情報を含む復旧情報を備え、
前記プロセッサが、
前記ネットワークにおいて検出された故障個所を識別する故障個所情報の通知を受けたときに、前記復旧情報を参照して、当該故障個所情報及び前記装置情報に対応付けられた前記制御情報を当該復旧情報から取得し、前記ネットワークの復旧後の制御処理において、当該制御情報に基づいて前記他の電子制御装置との通信を行う、
電子制御装置。
It is connected to another electronic control device via a network that performs two-wire communication with termination resistors at both ends, and has a processor, a memory, and a communication interface that realizes communication via the network, and the other electronic control device. An electronic control device that performs control processing while communicating with a device,
The memory comprises recovery information including control information associated with failure location information identifying failure locations that may occur in the network and device information identifying the other electronic control devices,
the processor
When receiving notification of the failure location information identifying the failure location detected in the network, the recovery information is referred to, and the control information associated with the failure location information and the device information is transferred to the recovery information. and communicates with the other electronic control unit based on the control information in the control process after the network is restored,
electronic controller.
前記制御処理において通信されるデータは、当該制御処理に応じて付与されている制御識別子を含み、
前記復旧情報は、制御処理の制御内容に応じて前記制御識別子が分類された情報及び当該分類に対応付けられた制御情報をさらに備え、
前記プロセッサは、前記制御情報を前記復旧情報から取得するときに、前記ネットワークの復旧後の制御処理に対応する前記制御識別子を特定し、当該制御識別子が属する分類に対応付けられた前記制御情報を取得する、請求項1記載の電子制御装置。
The data communicated in the control process includes a control identifier assigned according to the control process,
The recovery information further includes information in which the control identifier is classified according to the control content of the control process and control information associated with the classification,
The processor, when acquiring the control information from the restoration information, identifies the control identifier corresponding to the control process after restoration of the network, and retrieves the control information associated with the classification to which the control identifier belongs. 2. The electronic control unit of claim 1, wherein:
前記制御情報は、前記制御処理において故障が発生する前に前記他の電子制御装置と通信を行った前回値又は所定の異常時設定値を用いて前記他の電子制御装置との通信を行うことを示す情報である、請求項1又は2に記載の電子制御装置。 The control information is communicated with the other electronic control unit using a previous value or a predetermined abnormal set value that was communicated with the other electronic control unit before a failure occurred in the control process. 3. The electronic control unit according to claim 1, wherein the information indicates 終端抵抗を両端に備える2線式通信を行うネットワークを介して複数の電子制御装置が接続され、前記複数の電子制御装置のそれぞれが、プロセッサ及びメモリ並びに前記ネットワークを介した通信を実現する通信インタフェースを備え、相互に通信しつつ制御処理を行う通信システムであって、
前記ネットワークにおいて故障が発生したときに、前記複数の電子制御装置のうちの第1の電子制御装置が故障個所を検出し、前記終端抵抗の位置を変更して前記ネットワークの通信を復旧するとともに、当該故障個所を識別する故障個所情報を第2の電子制御装置に通知し、
前記第2の電子制御装置は、当該故障個所情報の通知を受けたときに、前記メモリに格納された、前記ネットワークにおいて発生し得る故障個所を識別する故障個所情報及び他の電子制御装置を識別する装置情報に対応付けられた制御情報を含む復旧情報を参照し、当該故障個所情報及び前記装置情報に対応付けられた前記制御情報を当該復旧情報から取得し、当該制御情報に基づいて前記他の電子制御装置との通信を行う、
通信システム。
A plurality of electronic control devices are connected via a network that performs two-wire communication with termination resistors at both ends, and each of the plurality of electronic control devices has a processor and a memory, and a communication interface that realizes communication via the network. A communication system that performs control processing while communicating with each other,
When a failure occurs in the network, a first electronic control unit among the plurality of electronic control units detects the location of the failure and changes the position of the terminating resistor to restore communication of the network, notifying the second electronic control unit of failure location information identifying the failure location;
When the second electronic control unit receives the notification of the failure location information, the second electronic control unit identifies failure location information for identifying a possible failure location in the network and other electronic control devices stored in the memory. By referring to recovery information including control information associated with the device information, the failure location information and the control information associated with the device information are acquired from the recovery information, and based on the control information, the other communicates with the electronic controller of
Communications system.
JP2022007315A 2022-01-20 2022-01-20 Electronic control apparatus and communication system Pending JP2023106156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022007315A JP2023106156A (en) 2022-01-20 2022-01-20 Electronic control apparatus and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022007315A JP2023106156A (en) 2022-01-20 2022-01-20 Electronic control apparatus and communication system

Publications (1)

Publication Number Publication Date
JP2023106156A true JP2023106156A (en) 2023-08-01

Family

ID=87473093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022007315A Pending JP2023106156A (en) 2022-01-20 2022-01-20 Electronic control apparatus and communication system

Country Status (1)

Country Link
JP (1) JP2023106156A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023105105A (en) * 2020-05-29 2023-07-28 株式会社三洋物産 game machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023105105A (en) * 2020-05-29 2023-07-28 株式会社三洋物産 game machine

Similar Documents

Publication Publication Date Title
JP3965410B2 (en) Redundant vehicle control device
EP1353477B1 (en) Communications system of two-wire line enhancing fail-safe performance
US10924331B2 (en) Controller area network communication system
CN107953890B (en) Method for processing data for an automated vehicle
KR20040066889A (en) Multi-core redundant control computer system, computer network for applications that are critical with regard to safety in motor vehicles, and use thereof
US9031713B2 (en) Safe operation of a motor vehicle
JP2018078396A (en) On-vehicle network system
US7478174B2 (en) Systems and methods for maintaining network stability
CN104503350A (en) Dual-redundancy CAN (controller area network) bus realizing method and controller
JP2023106156A (en) Electronic control apparatus and communication system
CN111108725A (en) Method for monitoring communication on a communication bus and electronic device for connection to a communication bus
CN113434168A (en) Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power
CN113895379B (en) Automatic drive-by-wire system of vehicle
US6446201B1 (en) Method and system of sending reset signals only to slaves requiring reinitialization by a bus master
US20030184158A1 (en) Method for operating a distributed safety-relevant system
KR20160117811A (en) Vehicle network system and protocol communication method thereof
US11258634B2 (en) Electronic control unit
JP2013235481A (en) Failure detection device
US20020107664A1 (en) Service element in dispersed systems
US20190356507A1 (en) Method for performing a data communication
US11764995B2 (en) Transceiver device
KR102029371B1 (en) Power Supply system and method for ethernet communication network in vehicle
CN108650101B (en) Data transmission method and equipment
JP2017114406A (en) Network system
KR100974404B1 (en) Ieee 1451 based smart module with redundant structure for controller area network