JP2021013135A - Electronic control device for vehicle - Google Patents

Electronic control device for vehicle Download PDF

Info

Publication number
JP2021013135A
JP2021013135A JP2019127563A JP2019127563A JP2021013135A JP 2021013135 A JP2021013135 A JP 2021013135A JP 2019127563 A JP2019127563 A JP 2019127563A JP 2019127563 A JP2019127563 A JP 2019127563A JP 2021013135 A JP2021013135 A JP 2021013135A
Authority
JP
Japan
Prior art keywords
communication
transceiver
microcomputer
signal
diagnostic
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
JP2019127563A
Other languages
Japanese (ja)
Inventor
祐太 田中
Yuta Tanaka
祐太 田中
文博 大澤
Fumihiro Osawa
文博 大澤
靖宏 岡部
Yasuhiro Okabe
靖宏 岡部
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 Automotive Systems 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 Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2019127563A priority Critical patent/JP2021013135A/en
Publication of JP2021013135A publication Critical patent/JP2021013135A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide an electronic control device for vehicles, capable of performing a diagnosis on communication by an own station alone and identifying the abnormal part of the own station in more detail than before.SOLUTION: An embodiment of the present invention relates to an electronic control device 1A for vehicles which controls the operation of a controlled object using a communication network for vehicles. The electronic control device 1A for vehicles includes: a transceiver 4 which transmits/receives data signals to/from a transmission line 9 constituting the communication network for vehicles; a microcomputer 2 which transmits/receives data signals to/from the transceiver 4; and a cut-off circuit 5 which is provided between the transceiver 4 and the transmission line 9, and which switches to a communication cut-off state cutting off communication with the transmission line 9 or a communication connection state enabling communication with the transmission line 9. The microcomputer 2 switches the cut-off circuit 5 to the communication cut-off state to diagnose the transceiver 4.SELECTED DRAWING: Figure 1

Description

本発明は、車両用電子制御装置に関し、特に車両用電子制御装置を診断する技術に係る。 The present invention relates to an electronic control device for a vehicle, and more particularly to a technique for diagnosing an electronic control device for a vehicle.

近年、自動車等の車両においては、エンジン制御、ブレーキ制御、トランスミッション制御、ドア制御、エアコン制御などを行うために多数の電子制御装置(ECU:Electronic Control Unit)が搭載されている。各ECUは、通信回路を内蔵したマイクロコンピュータ(以下「マイコン」と略記する。)とトランシーバ(ドライバ/レシーバ)とを備えており、車両に設置された伝送路とともに車両用LANを構成している。また、自動車等の車両においては、CAN(Controller Area Network)と称されるバス型の通信ネットワークシステムが採用されている。 In recent years, vehicles such as automobiles are equipped with a large number of electronic control units (ECUs) for performing engine control, brake control, transmission control, door control, air conditioner control, and the like. Each ECU is equipped with a microcomputer with a built-in communication circuit (hereinafter abbreviated as "microcomputer") and a transceiver (driver / receiver), and constitutes a vehicle LAN together with a transmission line installed in the vehicle. .. Further, in vehicles such as automobiles, a bus-type communication network system called CAN (Controller Area Network) is adopted.

また、ECUに不具合が生じて正常な通信ができない場合、車両の異常走行などを防止するフェールセーフ処理としてECUの通信処理を停止させることがある。通信停止の方法としては、マイコン内の通信回路を制御するソフトウェアによる通信停止、トランシーバの電源遮断や通信モード切替えなどハードウェア上で通信を停止する方法がある。これらの通信停止を実行するにあたり、通信停止を確実に実行可能な状態であるかどうかを診断する必要がある。通信回路の正常/異常を診断する方法として、特許文献1のようにループバックテストが用いられている。 Further, when a malfunction occurs in the ECU and normal communication cannot be performed, the communication process of the ECU may be stopped as a fail-safe process for preventing abnormal running of the vehicle. As a method of stopping communication, there is a method of stopping communication on hardware such as communication stop by software that controls a communication circuit in a microcomputer, power cutoff of a transceiver, and communication mode switching. In executing these communication suspensions, it is necessary to diagnose whether or not the communication suspension can be reliably executed. As a method of diagnosing normality / abnormality of a communication circuit, a loopback test is used as in Patent Document 1.

特許文献1で用いられているループバックテストでは、ループバックテストの実行要求がない場合にあっては、マイコン内の通信回路から送信された信号は、閉状態に制御された開閉手段及びトランシーバを介して外部伝送路に出力されるとともに、マイコン内の通信回路に戻されるようになっている。マイコンは、通信回路における送信データと受信データとを比較することにより、通信エラーの原因が自局側にあるか否かを診断し、その診断結果をダイアグ情報として保存するようになっている。 In the loopback test used in Patent Document 1, when there is no request to execute the loopback test, the signal transmitted from the communication circuit in the microcomputer uses an opening / closing means and a transceiver controlled in a closed state. It is output to the external transmission line via the system and returned to the communication circuit in the microcomputer. The microcomputer diagnoses whether or not the cause of the communication error is on the own station side by comparing the transmission data and the reception data in the communication circuit, and saves the diagnosis result as diagnostic information.

また、特許文献1に記載の通信装置のループバックテストでは、ループバックテストの実行要求がある場合にあっては、通信回路内の送信手段から出力されたデータ信号は、開状態に制御された開閉手段により遮断されて外部伝送路に出力されず、信号選択手段により選択されて受信手段に送られる。これにより、通信装置の内部に限ったループバックテストを実行できる。 Further, in the loopback test of the communication device described in Patent Document 1, when there is a request to execute the loopback test, the data signal output from the transmission means in the communication circuit is controlled to the open state. It is blocked by the opening / closing means and is not output to the external transmission line, but is selected by the signal selection means and sent to the receiving means. This makes it possible to execute a loopback test limited to the inside of the communication device.

特開2003−244169号公報JP-A-2003-244169

しかしながら、特許文献1に記載されたループバックテストでは、以下のような不都合がある。CANバス上には複数のECUが接続されており、自局側の診断の前提条件として他局側のECUが全て正常でなければならず、通信異常が発生している状態においては、自局側の異常なのか、他局側の異常なのかを、車両制御信号のみでは区別することができない。そこで、自局側の異常なのか他局側の異常なのかを区別するために、車両制御とは別に診断専用メッセージを定義して自局側と他局側との間で相互診断を実施することも考えられる。この場合、車両制御をする上で不要な診断専用メッセージ(テストデータ)をCANバス上に送出する必要があるが、送出された診断専用メッセージと他局の送信データとの衝突が発生し易くなり、通信速度の低下などが生じてしまう。 However, the loopback test described in Patent Document 1 has the following inconveniences. Multiple ECUs are connected on the CAN bus, and as a prerequisite for diagnosis on the own station side, all ECUs on the other station side must be normal, and in a state where a communication abnormality has occurred, the own station It is not possible to distinguish between an abnormality on the side and an abnormality on the other station side only by the vehicle control signal. Therefore, in order to distinguish between an abnormality on the own station side and an abnormality on the other station side, a diagnosis-only message is defined separately from the vehicle control, and mutual diagnosis is carried out between the own station side and the other station side. It is also possible. In this case, it is necessary to send a diagnostic message (test data) that is unnecessary for vehicle control on the CAN bus, but a collision between the sent diagnostic message and the transmission data of another station is likely to occur. , Communication speed will drop.

また、一般に車両に搭載されている複数のECUは、単独メーカーではなく、複数のメーカーにより製造されているため、あるメーカーが単独で診断仕様を決定することは不可能である。 Further, since a plurality of ECUs mounted on a vehicle are generally manufactured by a plurality of manufacturers, not by a single manufacturer, it is impossible for a certain manufacturer to independently determine diagnostic specifications.

さらに、特許文献1においては、開閉手段を閉状態にして自局の通信装置内をループバック診断している。このため、実際の通信異常発生時において、自局の通信装置が正常であった場合に異常として考えられるのは、自局のトランシーバ又は他局側の異常であり、この診断のみでは異常発生個所を特定できない。 Further, in Patent Document 1, a loopback diagnosis is performed in the communication device of the own station with the opening / closing means closed. For this reason, when an actual communication abnormality occurs, if the communication device of the own station is normal, the abnormality can be considered as an abnormality on the transceiver of the own station or the other station side, and the location where the abnormality occurs only by this diagnosis. Cannot be identified.

本発明は上記事情に鑑みてなされたものであり、車両用通信ネットワークに診断用信号を送信することなく自局単独で通信診断を実施し、自局の異常箇所を従来よりも詳しく特定できる車両用電子制御装置を提供することを目的とする。 The present invention has been made in view of the above circumstances, and is a vehicle capable of performing a communication diagnosis by the own station alone without transmitting a diagnostic signal to the vehicle communication network and identifying an abnormal part of the own station in more detail than before. It is an object of the present invention to provide an electronic control device for use.

上記課題を解決するために、本発明の一態様の車両用電子制御装置は、車両用通信ネットワークを利用して制御対象の動作を制御する車両用電子制御装置であって、車両用通信ネットワークを構成する伝送路に対してデータ信号を送受信するトランシーバと、そのトランシーバとデータ信号の送受信を行うマイクロコンピュータと、トランシーバと伝送路との間に設けられ、伝送路との通信を遮断する通信遮断状態又は伝送路との通信を可能にする通信接続状態に切り替わる遮断回路と、を備え、マイクロコンピュータは、遮断回路を通信遮断状態に切り替えてトランシーバを診断する。 In order to solve the above problems, the vehicle electronic control device of one aspect of the present invention is a vehicle electronic control device that controls the operation of a controlled object by using a vehicle communication network, and is a vehicle communication network. A communication cutoff state provided between a transceiver that sends and receives data signals to and from a constituent transmission line, a microcomputer that sends and receives data signals between the transceiver, and the transceiver and the transmission line, and blocks communication with the transmission line. Alternatively, the microcomputer includes a cutoff circuit that switches to a communication connection state that enables communication with the transmission line, and the microcomputer switches the cutoff circuit to the communication cutoff state to diagnose the transceiver.

本発明の少なくとも一態様によれば、マイクロコンピュータが、車両用通信ネットワークを構成する伝送路とトランシーバとの間に設けられた遮断回路を通信遮断状態に切り替えて、トランシーバを診断する。これにより、車両用通信ネットワークに診断用信号を送信することなく自局単独で通信診断を実施し、自局の異常箇所を従来よりも詳しく特定することができる。
上記した以外の課題、構成及び効果は、以下の実施形態の説明により明らかにされる。
According to at least one aspect of the present invention, the microcomputer diagnoses the transceiver by switching the cutoff circuit provided between the transmission line constituting the vehicle communication network and the transceiver to the communication cutoff state. As a result, the communication diagnosis can be performed by the own station independently without transmitting the diagnostic signal to the vehicle communication network, and the abnormal part of the own station can be identified in more detail than before.
Issues, configurations and effects other than those described above will be clarified by the following description of the embodiments.

本発明の第1の実施形態に係る車両用電子制御装置(単独トランシーバー)の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electronic control device (single transceiver) for a vehicle which concerns on 1st Embodiment of this invention. 本発明の第1の実施形態に係るマイクロコンピュータのハードウェア構成例を示すブロック図である。It is a block diagram which shows the hardware configuration example of the microcomputer which concerns on 1st Embodiment of this invention. 本発明の第1の実施形態に係るコントローラの診断機能例を示すブロック図である。It is a block diagram which shows the diagnostic function example of the controller which concerns on 1st Embodiment of this invention. 本発明の第1の実施形態に係る車両用電子制御装置におけるループバック診断時のデータフローの一例を示す図である。It is a figure which shows an example of the data flow at the time of loopback diagnosis in the electronic control device for a vehicle which concerns on 1st Embodiment of this invention. 本発明の第1の実施形態に係る車両用電子制御装置の通信診断処理の手順例を示すフローチャートである。It is a flowchart which shows the procedure example of the communication diagnosis processing of the electronic control device for a vehicle which concerns on 1st Embodiment of this invention. 図5におけるトランシーバ診断処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the transceiver diagnostic processing in FIG. 本発明の第2の実施形態に係る車両用電子制御装置(複数トランシーバー)の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electronic control device (a plurality of transceivers) for a vehicle which concerns on 2nd Embodiment of this invention. 本発明の第2の実施形態に係る車両用電子制御装置におけるループバック診断時のデータフローの一例を示す図である。It is a figure which shows an example of the data flow at the time of loopback diagnosis in the electronic control device for a vehicle which concerns on 2nd Embodiment of this invention. 本発明の第2の実施形態に係るトランシーバ診断処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the transceiver diagnostic processing which concerns on 2nd Embodiment of this invention. 図9におけるチャネル診断処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the channel diagnosis processing in FIG. 本発明の第2の実施形態に係るトランシーバ診断真理値表を示す図である。It is a figure which shows the transceiver diagnostic truth table which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施形態の第1例(受信専用モード)に係る車両用電子制御装置(単独トランシーバ)の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electronic control device (single transceiver) for a vehicle which concerns on 1st example (reception only mode) of 3rd Embodiment of this invention. 本発明の第3の実施形態の第2例(通信停止モード)に係る車両用電子制御装置(複数トランシーバ)の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electronic control device (a plurality of transceivers) for a vehicle which concerns on 2nd example (communication stop mode) of 3rd Embodiment of this invention.

以下、本発明を実施するための形態の例について、添付図面を参照して説明する。本明細書及び添付図面において実質的に同一の機能又は構成を有する構成要素については、同一の符号を付して重複する説明を省略する。 Hereinafter, an example of a mode for carrying out the present invention will be described with reference to the accompanying drawings. In the present specification and the accompanying drawings, components having substantially the same function or configuration are designated by the same reference numerals, and duplicate description will be omitted.

<1.第1の実施形態>
[車両用電子制御装置の全体構成]
まず、本発明の第1の実施形態に係る車両用電子制御装置(単独トランシーバ)の構成について説明する。
図1は、第1の実施形態に係る車両用電子制御装置(単独トランシーバ)の構成例を示すブロック図である。本実施形態は、車両用電子制御装置としてのECU1A,1B,1Cが、CAN通信を行うシステムであり、各ECUが一個のトランシーバ(CANトランシーバ)を備える。
<1. First Embodiment>
[Overall configuration of electronic control device for vehicles]
First, the configuration of the electronic control device for vehicles (single transceiver) according to the first embodiment of the present invention will be described.
FIG. 1 is a block diagram showing a configuration example of an electronic control device for a vehicle (single transceiver) according to the first embodiment. In this embodiment, ECUs 1A, 1B, and 1C as electronic control devices for vehicles are systems that perform CAN communication, and each ECU includes one transceiver (CAN transceiver).

車両制御用に採用されるCAN(車両用通信ネットワークの一例)は、伝送路9を介してECU1A(エンジンECU)、ECU1B(ブレーキECU)、ECU1C(トランスミッションECU)等の複数の制御ユニット間を相互に接続するものであり、それら制御ユニット間で、各種の車載センサやアクチュエータ等のデータを共有する。以下、ECU1A,1B,1Cを区別しない場合には、ECU1と記述する。 A CAN (an example of a vehicle communication network) adopted for vehicle control is used between a plurality of control units such as ECU 1A (engine ECU), ECU 1B (brake ECU), and ECU 1C (transmission ECU) via a transmission path 9. It is connected to, and data of various in-vehicle sensors, actuators, etc. is shared between these control units. Hereinafter, when ECU 1A, 1B, and 1C are not distinguished, they are described as ECU 1.

一般にECU1は、マイクロコンピュータ(以下「マイコン」)2を備えている。マイコン2は、コントローラ(いわゆるCANコントローラ)20や、タイマ回路26、A/D変換回路27等を一体的に内蔵したワンチップマイコンから構成されている(詳細は図2参照)。このコントローラ20を内蔵したマイコン2には、多数個の接続端子(入出力端子)が設けられ、そのうちの2個が、診断用メッセージM(診断用信号の一例)を送信する送信端子TX、及び診断用メッセージMに対する返信メッセージ(返信信号の一例)を受信する受信端子RXである。 Generally, the ECU 1 includes a microcomputer (hereinafter referred to as “microcomputer”) 2. The microcomputer 2 is composed of a one-chip microcomputer in which a controller (so-called CAN controller) 20, a timer circuit 26, an A / D conversion circuit 27, and the like are integrally built (see FIG. 2 for details). The microcomputer 2 incorporating the controller 20 is provided with a large number of connection terminals (input / output terminals), two of which are a transmission terminal TX for transmitting a diagnostic message M (an example of a diagnostic signal) and a transmission terminal TX. It is a receiving terminal RX that receives a reply message (an example of a reply signal) to the diagnostic message M.

また、マイコン2は、診断用リレー信号S1(切替信号の一例)が出力される出力端子Ry1、出力端子Ry1から出力された診断用リレー信号が入力されるモニタ端子Rm1、サブマイコン3の出力端子Ry2から出力された診断用リレー信号S2(切替信号の一例)が入力されるモニタ端子Rm2、及び、診断用リレー信号を受信した遮断回路5から出力されるモニタ信号(状態信号の一例)が入力されるモニタ端子Cmを備える。さらに、マイコン2は、トランシーバ4の送受信モード(例えば通信停止モードや受信専用モードなど)を切り替えるモード切替信号が出力される出力端子Swを備える。 Further, the microcomputer 2 has an output terminal Ry1 to which the diagnostic relay signal S1 (an example of a switching signal) is output, a monitor terminal Rm1 to which the diagnostic relay signal output from the output terminal Ry1 is input, and an output terminal of the sub-microcomputer 3. The monitor terminal Rm2 to which the diagnostic relay signal S2 (example of switching signal) output from Ry2 is input and the monitor signal (example of status signal) output from the cutoff circuit 5 that received the diagnostic relay signal are input. The monitor terminal Cm is provided. Further, the microcomputer 2 includes an output terminal Sw that outputs a mode switching signal for switching the transmission / reception mode (for example, communication stop mode, reception-only mode, etc.) of the transceiver 4.

また、各ECU1には、データ通信処理を実行するトランシーバ4が設けられており、各ECU1は、このトランシーバ4を介してツイストペア線からなる伝送路9(いわゆるCANバス)に接続される。トランシーバ4は、ドライバ(送信用回路部)とレシーバ(受信用回路部)からなる。 Further, each ECU 1 is provided with a transceiver 4 that executes data communication processing, and each ECU 1 is connected to a transmission line 9 (so-called CAN bus) composed of twisted pair lines via the transceiver 4. The transceiver 4 includes a driver (transmission circuit section) and a receiver (reception circuit section).

各ECU1は電源回路8を備え、マイコン2の指示により電源回路8からECU1内の各部に電力が供給される。 Each ECU 1 includes a power supply circuit 8, and power is supplied from the power supply circuit 8 to each part in the ECU 1 according to an instruction from the microcomputer 2.

また、ECU1には、図1のように、マイコン2の正常/異常を診断するサブマイコン3を備えている場合もある。マイコン2とサブマイコン3は相互に状態監視を行う。そのため、例えば一方のマイコンから例題となるメッセージを出題し、他方のマイコンがその例題に対して回答し、期待通りの回答であれば正常であると診断する(一般に例題演算診断と言われている)機能を備えている。例題演算診断で異常状態と診断されると、一方のマイコンが、例えば電源遮断処理や通信停止処理を実施するなど、車両制御上安全な状態へと遷移させる機能(フェールセーフ)を備えている場合もある。サブマイコン3は基本的にマイコン2と同様の構成であり、出力端子Ry1に相当する出力端子Ry2を備える。 Further, as shown in FIG. 1, the ECU 1 may include a sub-microcomputer 3 for diagnosing normality / abnormality of the microcomputer 2. The microcomputer 2 and the sub-microcomputer 3 mutually monitor the status. Therefore, for example, one microcomputer gives an example message, the other microcomputer answers the example, and if the answer is as expected, it is diagnosed as normal (generally called example arithmetic diagnosis). ) It has a function. Example When an abnormal state is diagnosed by arithmetic diagnosis, one of the microcomputers has a function (fail safe) to transition to a safe state in terms of vehicle control, such as performing power cutoff processing or communication stop processing. There is also. The sub-microcomputer 3 has basically the same configuration as the microcomputer 2, and includes an output terminal Ry2 corresponding to the output terminal Ry1.

また、マイコン2は、そのハードウェア構成及びソフトウェア構成により、CANプロトコルに従って、送信データや受信データを通信信号に変換する処理等を実行し、トランシーバ4及び伝送路9を介した他のECU1との通信制御を行う。これと共に、マイコン2は、ビット・エラー、ビット・スタッフ・エラー、CRCエラー、フォーム・エラー、ACKエラーといった通信上の複数種類のエラー検出のためにモニタリングを実行する。そして、エラーを検出した場合には、送信端子TXからエラーデータを送信して他のECU1にエラー発生を通知する等のエラー処理を行う。したがって、マイコン2は、エラー検出手段及びエラーデータ送信手段の機能を備えている。 Further, the microcomputer 2 executes a process of converting transmission data and reception data into a communication signal according to the CAN protocol according to its hardware configuration and software configuration, and with another ECU 1 via the transceiver 4 and the transmission line 9. Perform communication control. At the same time, the microcomputer 2 performs monitoring for detecting a plurality of types of communication errors such as a bit error, a bit staff error, a CRC error, a form error, and an ACK error. Then, when an error is detected, error processing such as transmitting error data from the transmission terminal TX and notifying another ECU 1 of the occurrence of the error is performed. Therefore, the microcomputer 2 has the functions of an error detecting means and an error data transmitting means.

ところで、車両に何らかの異常が発生した際、車両運行上安全に退避させる目的で、あるECU1の通信を停止させる場合がある。その手法としては、マイコン2やサブマイコン3から出力された信号により、トランシーバ4の電源遮断や送受信モード切替えを制御する手法がある(詳細は図示しない)。CAN通信を上記手法にて停止させることを確実に実行するため、上述したマイコン2のエラー検出手段及びエラーデータ送信手段の機能を使用する。 By the way, when some abnormality occurs in the vehicle, the communication of a certain ECU 1 may be stopped for the purpose of safely evacuating the vehicle in operation. As the method, there is a method of controlling the power cutoff and transmission / reception mode switching of the transceiver 4 by the signal output from the microcomputer 2 and the sub-microcomputer 3 (details are not shown). In order to ensure that the CAN communication is stopped by the above method, the functions of the error detecting means and the error data transmitting means of the microcomputer 2 described above are used.

本実施形態では、図1に示すように、トランシーバ4と伝送路9の間に遮断回路5を設置している。遮断回路5には、サブマイコン3又はマイコン2から出力される診断用リレー信号(診断用信号の一例)が入力される。遮断回路5は、診断用リレー信号がオン状態(以下「オン」)のとき、トランシーバ4と伝送路9との接続を遮断するための通信切替回路6を備える。 In the present embodiment, as shown in FIG. 1, a cutoff circuit 5 is installed between the transceiver 4 and the transmission line 9. A diagnostic relay signal (an example of a diagnostic signal) output from the sub-microcomputer 3 or the microcomputer 2 is input to the cutoff circuit 5. The cutoff circuit 5 includes a communication switching circuit 6 for cutting off the connection between the transceiver 4 and the transmission line 9 when the diagnostic relay signal is in the on state (hereinafter, “on”).

通信切替回路6は、サブマイコン3又はマイコン2から出力される状態切り替えを指示する診断用リレー信号に応じて、伝送路9との通信を遮断する通信遮断状態又は伝送路9との通信を可能にする通信接続状態に切り替わる。通信切替回路6によりトランシーバ4と伝送路9との接続は遮断されるが、遮断回路5内に終端抵抗を設置することで、自局のマイコン2から送信したデータ信号が、トランシーバ4及び遮断回路5を介してそのまま自局のマイコン2で受信可能となる。 The communication switching circuit 6 is capable of communicating with a communication cutoff state or a transmission line 9 that cuts off communication with the transmission line 9 in response to a diagnostic relay signal instructing state switching output from the sub-microcomputer 3 or the microcomputer 2. Switch to the communication connection status. The connection between the transceiver 4 and the transmission line 9 is cut off by the communication switching circuit 6, but by installing a terminating resistor in the cutoff circuit 5, the data signal transmitted from the microcomputer 2 of the own station can be sent to the transceiver 4 and the cutoff circuit. It becomes possible to receive the signal as it is by the microcomputer 2 of the own station via 5.

また、ECU1は、OR回路(論理和回路)7を備える。サブマイコン3を搭載した構成のECU1の場合、図1に示すように、サブマイコン3とマイコン2から出力される診断用リレー信号がOR回路7に入力され、OR回路7の出力信号が遮断回路5に入力される構成としてもよい。 Further, the ECU 1 includes an OR circuit (OR circuit) 7. In the case of the ECU 1 having the configuration in which the sub-microcomputer 3 is mounted, as shown in FIG. 1, the diagnostic relay signal output from the sub-microcomputer 3 and the microcomputer 2 is input to the OR circuit 7, and the output signal of the OR circuit 7 is a cutoff circuit. The configuration may be input to 5.

[マイクロコンピュータの構成]
次に、マイコン2のハードウェア構成について説明する。
図2は、マイコン2のハードウェア構成例を示すブロック図である。マイコン2は、システムバス24を介して相互に接続された、コントローラ20、不揮発性メモリ25、タイマ回路26、A/D(Analog/digital)変換回路27、及び通信回路28を備える。
[Microcomputer configuration]
Next, the hardware configuration of the microcomputer 2 will be described.
FIG. 2 is a block diagram showing a hardware configuration example of the microcomputer 2. The microcomputer 2 includes a controller 20, a non-volatile memory 25, a timer circuit 26, an A / D (Analog / digital) conversion circuit 27, and a communication circuit 28, which are connected to each other via a system bus 24.

コントローラ20は、CPU(central processing unit)21、ROM(Read Only Memory)22、及びRAM(Random Access Memory)23より構成されている。CPU21がROM22に記録された制御プログラムを実行することにより、本実施形態におけるコントローラ20の各機能が実現される。なお、プロセッサにCPUを用いたが、MPU(micro processing unit)等の他のプロセッサを用いてもよい。不揮発性メモリ25は、半導体メモリ等からなる補助記憶装置であり、この不揮発性メモリ25に制御プログラムが格納されていてもよい。 The controller 20 is composed of a CPU (central processing unit) 21, a ROM (Read Only Memory) 22, and a RAM (Random Access Memory) 23. When the CPU 21 executes the control program recorded in the ROM 22, each function of the controller 20 in the present embodiment is realized. Although a CPU is used as the processor, another processor such as an MPU (micro processing unit) may be used. The non-volatile memory 25 is an auxiliary storage device including a semiconductor memory or the like, and a control program may be stored in the non-volatile memory 25.

タイマ回路26は、時間を計測する回路であり、例えばコントローラ20の指示により基準時点からの経過時間を計測し、計測データをコントローラ20に出力する。A/D(Analog/digital)変換回路27は、入力されたアナログ信号をデジタル信号に変換してコントローラ20へ出力する。 The timer circuit 26 is a circuit for measuring time. For example, the timer circuit 26 measures the elapsed time from the reference time point according to the instruction of the controller 20, and outputs the measurement data to the controller 20. The A / D (Analog / digital) conversion circuit 27 converts the input analog signal into a digital signal and outputs it to the controller 20.

通信回路28は、車両用LANの伝送路を介して、ECU1内の他ブロックや他ECUと通信を行う。通信回路28が、A/D変換回路27の機能を備え、各センサや各アクチュエータの入出力信号を処理する構成としてもよい。
てもよい。
The communication circuit 28 communicates with other blocks in the ECU 1 and other ECUs via the transmission line of the vehicle LAN. The communication circuit 28 may have the function of the A / D conversion circuit 27 and may be configured to process the input / output signals of each sensor and each actuator.
You may.

[コントローラの診断機能]
次に、コントローラ20の診断機能について説明する。
図3は、コントローラ20の診断機能例を示すブロック図である。CPU21がROM22に記録された制御プログラムを実行することにより、図3の各ブロックの機能が実現される。
[Controller diagnostic function]
Next, the diagnostic function of the controller 20 will be described.
FIG. 3 is a block diagram showing an example of a diagnostic function of the controller 20. When the CPU 21 executes the control program recorded in the ROM 22, the function of each block shown in FIG. 3 is realized.

コントローラ20は、図3に示すように、診断部31、診断前処理部32、モード切替信号出力部33、及びフェールセーフ処理部34を有する。 As shown in FIG. 3, the controller 20 includes a diagnosis unit 31, a pre-diagnosis processing unit 32, a mode switching signal output unit 33, and a fail-safe processing unit 34.

診断部31は、遮断回路5が通信遮断状態において、伝送路9と通信するための機能を診断する処理部である。例えば診断部31は、ECU1内の対象ブロック(例えばトランシーバ4)を介した通信や各ブロックの正常/異常を診断する。診断部31は、トランシーバ4を介して診断用メッセージを遮断回路5へ送信した後、遮断回路5から診断用メッセージに対する返信メッセージを受信し、診断用メッセージと返信メッセージを比較した結果に基づいて、トランシーバ4を含む通信機能を診断する。 The diagnosis unit 31 is a processing unit that diagnoses a function for communicating with the transmission line 9 when the cutoff circuit 5 is in a communication cutoff state. For example, the diagnosis unit 31 diagnoses communication via a target block (for example, transceiver 4) in the ECU 1 and normality / abnormality of each block. After transmitting the diagnostic message to the cutoff circuit 5 via the transceiver 4, the diagnostic unit 31 receives a reply message to the diagnostic message from the cutoff circuit 5, and based on the result of comparing the diagnostic message and the reply message, Diagnose the communication function including the transceiver 4.

診断前処理部32は、診断部31が診断を行う前に前処理として、遮断回路5における伝送路9との通信を遮断する通信遮断機能を診断する処理部である。 The diagnosis pre-processing unit 32 is a processing unit that diagnoses a communication cutoff function that cuts off communication with the transmission line 9 in the cutoff circuit 5 as pre-processing before the diagnosis unit 31 makes a diagnosis.

切替信号出力部33は、診断部31の指示に従い、遮断回路5に対し通信遮断状態又は通信接続状態への切り替えを指示する診断用リレー信号を出力する処理部である。 The switching signal output unit 33 is a processing unit that outputs a diagnostic relay signal instructing the cutoff circuit 5 to switch to the communication cutoff state or the communication connection state in accordance with the instruction of the diagnosis unit 31.

フェールセーフ処理部34は、診断部31の診断結果を受けて、機能縮退や電源オフなどのフェールセーフ処理を実施する処理部である。 The fail-safe processing unit 34 is a processing unit that receives the diagnosis result of the diagnosis unit 31 and performs fail-safe processing such as functional degradation and power off.

[ループバック診断時のデータフロー]
次に、ECU1Aにおけるループバック診断について説明する。
図4は、ECU1Aにおけるループバック診断時のデータフローの一例を示す図である。本実施形態におけるループバック診断には、内部ループバック診断と外部ループバック診断がある。図4には、外部ループバック診断時のデータフローLb1が示されている。また、遮断回路5に入力された診断用リレー信号に対してモニタ信号を返信する際(通信遮断機能診断時)のデータフローLb2も示されている。
[Data flow during loopback diagnosis]
Next, the loopback diagnosis in the ECU 1A will be described.
FIG. 4 is a diagram showing an example of a data flow at the time of loopback diagnosis in the ECU 1A. The loopback diagnosis in the present embodiment includes an internal loopback diagnosis and an external loopback diagnosis. FIG. 4 shows the data flow Lb1 at the time of external loopback diagnosis. Further, the data flow Lb2 when returning the monitor signal to the diagnostic relay signal input to the cutoff circuit 5 (during the communication cutoff function diagnosis) is also shown.

内部ループバック診断では、マイコン2のコントローラ20において、CPU21が診断用メッセージを出力し、これをCPU21が受信することにより、コントローラ20の自己診断を行う。あるいは、マイコン2のコントローラ20が診断用メッセージを出力し、これをコントローラ20が通信回路28を介して受信するようにしてもよい。内部ループバック診断は、マイコン2の機能として標準で実装されている場合もある。 In the internal loopback diagnosis, in the controller 20 of the microcomputer 2, the CPU 21 outputs a diagnostic message, and the CPU 21 receives the message to perform a self-diagnosis of the controller 20. Alternatively, the controller 20 of the microcomputer 2 may output a diagnostic message, which may be received by the controller 20 via the communication circuit 28. The internal loopback diagnosis may be implemented as a standard function of the microcomputer 2.

外部ループバック診断では、遮断回路5が通信遮断状態において、マイコン2が送信端子TXからトランシーバ4を介して、診断用メッセージMを遮断回路5に送信する。トランシーバ4及び遮断回路5が正常である場合、遮断回路5が、トランシーバ4を介して診断用メッセージMを受信し、診断用メッセージMに対する返信メッセージをマイコン2に送信する。そして、マイコン2が受信端子RXで返信メッセージ受信する。 In the external loopback diagnosis, the microcomputer 2 transmits a diagnostic message M from the transmission terminal TX to the cutoff circuit 5 via the transceiver 4 while the cutoff circuit 5 is in the communication cutoff state. When the transceiver 4 and the cutoff circuit 5 are normal, the cutoff circuit 5 receives the diagnostic message M via the transceiver 4 and transmits a reply message to the diagnostic message M to the microcomputer 2. Then, the microcomputer 2 receives the reply message at the reception terminal RX.

また、通信遮断機能診断では、マイコン2又はサブマイコン3が出力した診断用リレー信号S1又はS2がOR回路7を介して遮断回路5に入力される。遮断回路5が正常である場合、遮断回路5がマイコン2にモニタ信号を返信し、マイコン2が返信されたモニタ信号をモニタ端子Cmで受信する。モニタ信号は、遮断回路5の現状の状態(通信遮断状態又は通信接続状態)を示す。 Further, in the communication cutoff function diagnosis, the diagnostic relay signal S1 or S2 output by the microcomputer 2 or the sub-microcomputer 3 is input to the cutoff circuit 5 via the OR circuit 7. When the cutoff circuit 5 is normal, the cutoff circuit 5 returns a monitor signal to the microcomputer 2, and the microcomputer 2 receives the returned monitor signal at the monitor terminal Cm. The monitor signal indicates the current state (communication cutoff state or communication connection state) of the cutoff circuit 5.

[通信診断処理]
次に、ECU1Aの通信診断処理の手順を説明する。
図5は、ECU1Aの通信診断処理の手順例を示すフローチャートである。この図5に示すECU1の通信診断処理の手順例は、後述する第2の実施形態のECU101(図7)と共通である。以下では、ECU1Aの通信診断処理について説明するが他のECU1B,1Cでも同じである。
[Communication diagnostic processing]
Next, the procedure of the communication diagnosis processing of the ECU 1A will be described.
FIG. 5 is a flowchart showing a procedure example of the communication diagnosis process of the ECU 1A. The procedure example of the communication diagnosis processing of the ECU 1 shown in FIG. 5 is common to the ECU 101 (FIG. 7) of the second embodiment described later. The communication diagnosis process of the ECU 1A will be described below, but the same applies to the other ECUs 1B and 1C.

まず、コントローラ20の診断部31は、診断要求を受信したか否かを判定し(S1)、診断要求を受信しなかった場合(S1のNO)、コントローラ20はエンジン始動など通常処理を行う(S7)。例えば、この通信診断処理はエンジン始動前に実行される。コントローラ20に診断要求が入力されるタイミングは、例えばECU1Aの電源が投入されるとき(イグニッションキーがオン)などである。ステップS7の処理後、本フローチャートの処理を終了する。 First, the diagnosis unit 31 of the controller 20 determines whether or not the diagnosis request has been received (S1), and if the diagnosis request is not received (NO in S1), the controller 20 performs normal processing such as starting the engine (NO). S7). For example, this communication diagnostic process is executed before the engine is started. The timing at which the diagnosis request is input to the controller 20 is, for example, when the power of the ECU 1A is turned on (the ignition key is turned on). After the process of step S7, the process of this flowchart ends.

一方、診断部31は、診断要求を受信した場合(S1のYES)、以降の通信診断処理を実施する。診断要求があった場合、診断部31は、切替信号出力部33に指示して診断用リレー信号S1を遮断回路5へ出力する。そして、診断前処理部32は、診断部31の指示により診断用リレー信号S1の出力後、ウェイト処理を実施する(S2)。診断用リレー信号は、マイコン2ではなく、サブマイコン3から出力してもよい。マイコン2又はサブマイコン3のいずれから診断用リレー信号を出力するかを、予め各コントローラ20に設定しておく。 On the other hand, when the diagnosis unit 31 receives the diagnosis request (YES in S1), the diagnosis unit 31 executes the subsequent communication diagnosis process. When a diagnosis request is made, the diagnosis unit 31 instructs the switching signal output unit 33 to output the diagnosis relay signal S1 to the cutoff circuit 5. Then, the pre-diagnosis processing unit 32 performs wait processing after outputting the diagnostic relay signal S1 according to the instruction of the diagnostic unit 31 (S2). The diagnostic relay signal may be output from the sub-microcomputer 3 instead of the microcomputer 2. Whether to output the diagnostic relay signal from the microcomputer 2 or the sub-microcomputer 3 is set in advance in each controller 20.

そして、診断前処理部32は、タイマ回路26(図2参照)のタイマ信号に基づいて規定時間が経過したことを検知すると(診断用リレー信号がオン状態となるまでの時間が経過後)、該当マイコンから診断用リレー信号が出力されていることと、遮断回路5から出力されるモニタ信号が正常であることを判定する(S3)。 Then, when the pre-diagnosis processing unit 32 detects that the specified time has elapsed based on the timer signal of the timer circuit 26 (see FIG. 2) (after the time until the diagnostic relay signal is turned on), It is determined that the diagnostic relay signal is output from the corresponding microcomputer and that the monitor signal output from the cutoff circuit 5 is normal (S3).

遮断回路5において該当マイコンから診断用リレー信号が出力されていることと、遮断回路5から出力されるモニタ信号が正常であることを確認できない場合、すなわち通信切替回路6により遮断回路5と伝送路9との通信を正常に遮断できない場合には(S3のNO)、診断前処理部32は、通信遮断機能が異常であると判断してフェールセーフ処理部34にフェールセーフ処理を実行させる(S8)。ステップS8の処理後、本フローチャートの処理を終了する。 When it cannot be confirmed that the diagnostic relay signal is output from the corresponding microcomputer in the cutoff circuit 5 and the monitor signal output from the cutoff circuit 5 is normal, that is, the cutoff circuit 5 and the transmission line are connected by the communication switching circuit 6. If the communication with 9 cannot be normally blocked (NO in S3), the pre-diagnosis processing unit 32 determines that the communication blocking function is abnormal and causes the fail-safe processing unit 34 to execute the fail-safe processing (S8). ). After the process of step S8, the process of this flowchart ends.

次いで、遮断回路5の通信遮断機能が正常である(正常に通信遮断が可能である)場合には、診断部31は、診断前処理部32の診断結果を受けてトランシーバ診断処理を実行し(S4)、トランシーバ4が正常であるか否かを判定する(S5)。ステップS4のトランシーバ診断処理の詳細については、図5を用いて後述する。 Next, when the communication cutoff function of the cutoff circuit 5 is normal (communication cutoff is possible normally), the diagnostic unit 31 receives the diagnosis result of the pre-diagnosis processing unit 32 and executes the transceiver diagnostic process ( S4), it is determined whether or not the transceiver 4 is normal (S5). The details of the transceiver diagnostic process in step S4 will be described later with reference to FIG.

ここで、診断部31は、トランシーバ4が正常であると判定した場合(S5のYES)、トランシーバ4が正常であると判断して図5の通信診断処理を終了する(S6)。一方、診断部31が、トランシーバ4が正常ではないと判定した場合(S5のNO)、フェールセーフ処理部34は、トランシーバ4又はコントローラ20に異常が発生していると判断してフェールセーフ処理を実行する(S9)。 Here, when the diagnostic unit 31 determines that the transceiver 4 is normal (YES in S5), the diagnostic unit 31 determines that the transceiver 4 is normal and ends the communication diagnosis process of FIG. 5 (S6). On the other hand, when the diagnostic unit 31 determines that the transceiver 4 is not normal (NO in S5), the fail-safe processing unit 34 determines that an abnormality has occurred in the transceiver 4 or the controller 20 and performs fail-safe processing. Execute (S9).

コントローラ20は、ステップS6又はS9の処理が終了後、図5の通信診断処理を終了する。このようにコントローラ20は、ステップS4のトランシーバ診断処理の結果、トランシーバ4が正常であると判断できなかった場合にはフェールセーフ処理を実行し、トランシーバ4が正常であれば通信診断処理を終了する。 The controller 20 ends the communication diagnosis process of FIG. 5 after the process of step S6 or S9 is completed. As described above, the controller 20 executes the fail-safe process when the transceiver 4 cannot be determined to be normal as a result of the transceiver diagnosis process in step S4, and ends the communication diagnosis process when the transceiver 4 is normal. ..

[トランシーバ診断処理のサブルーチン]
ここで、図5のステップS4におけるトランシーバ診断処理のサブルーチンについて説明する。
図6は、ステップS4におけるトランシーバ診断処理のサブルーチンを示すフローチャートである。図1のようなECU1Aが接続される伝送路が一つ(伝送路9)のシステムにおいては、ステップS4のトランシーバ診断処理は、図6で示される手順を実行する。
[Subroutine for transceiver diagnostic processing]
Here, the subroutine of the transceiver diagnostic processing in step S4 of FIG. 5 will be described.
FIG. 6 is a flowchart showing a subroutine of the transceiver diagnostic processing in step S4. In a system such as FIG. 1 in which the transmission line to which the ECU 1A is connected is one (transmission line 9), the transceiver diagnosis process in step S4 executes the procedure shown in FIG.

まず、コントローラ20の診断部31は、内部ループバック診断処理を実行する(S11)。このステップS1の内部ループバック診断処理では、従来手法のコントローラ診断が実施される。 First, the diagnostic unit 31 of the controller 20 executes the internal loopback diagnostic process (S11). In the internal loopback diagnosis process of step S1, the controller diagnosis of the conventional method is performed.

次いで、診断部31は、内部ループバック診断の結果が正常であるか否かを判定する(S12)。内部ループバック診断の結果が異常である場合(S12のNO)、コントローラ20に異常が発生しているため、フェールセーフ処理部34がフェールセーフ処理を実行する(S16)。 Next, the diagnosis unit 31 determines whether or not the result of the internal loopback diagnosis is normal (S12). When the result of the internal loopback diagnosis is abnormal (NO in S12), since the controller 20 has an abnormality, the fail-safe processing unit 34 executes the fail-safe processing (S16).

一方、内部ループバック診断の結果が正常である場合(S12のYES)、診断部31は、外部ループバック診断処理を実行する(S13)。まず、切替信号出力部33が遮断回路5に診断用リレー信号を出力し、遮断回路5を通信遮断状態にする。次いで、遮断回路5が通信遮断状態において、診断部31は、マイコン2の送信端子TX及びトランシーバ4を介して、遮断回路5へ診断用メッセージMを出力する。そして、診断部31は、トランシーバ4及び受信端子RXを介して返信メッセージを受信し、診断用メッセージMと返信メッセージを比較した結果に基づいて、トランシーバを診断する On the other hand, when the result of the internal loopback diagnosis is normal (YES in S12), the diagnosis unit 31 executes the external loopback diagnosis process (S13). First, the switching signal output unit 33 outputs a diagnostic relay signal to the cutoff circuit 5, and puts the cutoff circuit 5 into a communication cutoff state. Next, when the cutoff circuit 5 is in the communication cutoff state, the diagnostic unit 31 outputs a diagnostic message M to the cutoff circuit 5 via the transmission terminal TX of the microcomputer 2 and the transceiver 4. Then, the diagnostic unit 31 receives the reply message via the transceiver 4 and the reception terminal RX, and diagnoses the transceiver based on the result of comparing the diagnostic message M and the reply message.

次いで、診断部31は、外部ループバック診断の結果が正常であるか否かを判定する(S14)。ここで、診断部31は、外部ループバック診断の結果が正常である場合、すなわち診断用メッセージMと返信メッセージが一致した場合(S14のYES)、コントローラ20及びトランシーバ4が正常であると判断する(S15)。返信メッセージが診断用メッセージと一致する場合の他、返信メッセージが想定した内容である場合にも外部ループバック診断を正常と判断する構成としてもよい。 Next, the diagnosis unit 31 determines whether or not the result of the external loopback diagnosis is normal (S14). Here, the diagnostic unit 31 determines that the controller 20 and the transceiver 4 are normal when the result of the external loopback diagnosis is normal, that is, when the diagnostic message M and the reply message match (YES in S14). (S15). In addition to the case where the reply message matches the diagnostic message, the external loopback diagnosis may be judged to be normal even when the reply message has the expected contents.

一方、診断部31は、外部ループバック診断の結果が正常ではない場合、すなわち診断用メッセージMと返信メッセージが不一致である場合(S14のNO)、トランシーバ4が異常であると判断する(S17)。そして、診断部31の判断を受けて、フェールセーフ処理部34がフェールセーフ処理を実行する。ステップS15,S16又はS17の処理後、図6のトランシーバ診断処理を終了する。 On the other hand, when the result of the external loopback diagnosis is not normal, that is, when the diagnostic message M and the reply message do not match (NO in S14), the diagnostic unit 31 determines that the transceiver 4 is abnormal (S17). .. Then, upon receiving the determination of the diagnosis unit 31, the fail-safe processing unit 34 executes the fail-safe processing. After the processing of steps S15, S16 or S17, the transceiver diagnostic processing of FIG. 6 is terminated.

以上のとおり、第1の実施形態における車両用通信ネットワークを利用して制御対象の動作を制御する車両用電子制御装置(ECU1A)は、車両用通信ネットワークを構成する伝送路(伝送路9)に対してデータ信号を送受信するトランシーバ(トランシーバ4)と、トランシーバとデータ信号の送受信を行うマイクロコンピュータ(マイコン2)と、トランシーバと伝送路との間に設けられ、伝送路との通信を遮断する通信遮断状態又は伝送路との通信を可能にする通信接続状態に切り替わる遮断回路(遮断回路5)と、を備える。そして、マイクロコンピュータは、遮断回路を通信遮断状態に切り替えてトランシーバを診断する。 As described above, the vehicle electronic control device (ECU 1A) that controls the operation of the controlled object by using the vehicle communication network according to the first embodiment is set in the transmission line (transmission line 9) constituting the vehicle communication network. Communication that is provided between a transceiver (transceiver 4) that transmits and receives data signals, a microcomputer (microcomputer 2) that transmits and receives data signals between the transceiver, and the transceiver and a transmission line, and blocks communication with the transmission line. It is provided with a cutoff circuit (cutoff circuit 5) that switches to a cutoff state or a communication connection state that enables communication with a transmission line. Then, the microcomputer switches the cutoff circuit to the communication cutoff state to diagnose the transceiver.

上記構成の第1実施形態によれば、マイクロコンピュータが、車両用通信ネットワークを構成する伝送路とトランシーバとの間に設けられた遮断回路を通信遮断状態に切り替えて、トランシーバを診断する。このように、車両用通信ネットワークに診断用信号を送信しないことで、他局の状態に関わらず自局単独で通信診断を実施することができる。また、トランシーバと伝送路との間に遮断回路を配置したことで、通信診断時に自局が故障している場合には自局の異常箇所を従来よりも詳しく特定することができる。さらに、マイクロコンピュータが、通信診断前に遮断回路を通信遮断状態に切り替えることで、不要な診断用信号が伝送路に送出することを防止できる。 According to the first embodiment of the above configuration, the microcomputer switches the cutoff circuit provided between the transmission line constituting the vehicle communication network and the transceiver to the communication cutoff state, and diagnoses the transceiver. In this way, by not transmitting the diagnostic signal to the vehicle communication network, the communication diagnosis can be performed independently by the own station regardless of the state of the other station. Further, by arranging the cutoff circuit between the transceiver and the transmission line, if the own station is out of order at the time of communication diagnosis, the abnormal part of the own station can be identified in more detail than before. Further, the microcomputer can prevent unnecessary diagnostic signals from being transmitted to the transmission line by switching the cutoff circuit to the communication cutoff state before the communication diagnosis.

また、以上のとおり、本実施形態における車両用電子制御装置(ECU1A)では、マイクロコンピュータ(マイコン2)は、遮断回路(遮断回路5)が通信遮断状態において、トランシーバ(トランシーバ4)を介して遮断回路へ診断用信号(診断用メッセージM)を出力し、遮断回路は、トランシーバを介して入力された診断用信号に対する返信信号(返信メッセージ)をトランシーバへ出力し、マイクロコンピュータは、そのトランシーバを介して返信信号を受信し、受信した診断用信号と返信信号を比較した結果に基づいて、トランシーバを診断する。 Further, as described above, in the vehicle electronic control device (ECU 1A) of the present embodiment, the microcomputer (microcomputer 2) is cut off via the transceiver (transceiver 4) when the cutoff circuit (cutoff circuit 5) is in the communication cutoff state. A diagnostic signal (diagnostic message M) is output to the circuit, the cutoff circuit outputs a reply signal (reply message) to the diagnostic signal input via the transceiver to the transceiver, and the microcomputer outputs the reply signal (reply message) to the transceiver via the transceiver. The transceiver signal is received, and the transceiver is diagnosed based on the result of comparing the received diagnostic signal with the reply signal.

上記構成によれば、他局の状態に関わらず自局単独で通信診断を実施することができる。また、マイクロコンピュータからトランシーバを介して遮断回路へ診断用信号を出力し、遮断回路で診断用信号に対する返信信号をトランシーバへ返信する構成とすることで、自局が故障している場合には自局の異常箇所を従来よりも詳しく特定することができる。 According to the above configuration, the communication diagnosis can be performed by the own station independently regardless of the state of the other station. In addition, by outputting a diagnostic signal from the microcomputer to the transceiver circuit via the transceiver and returning the reply signal to the diagnostic signal to the transceiver in the interrupt circuit, if the own station is out of order, it will be self-sufficient. It is possible to identify the abnormal part of the station in more detail than before.

また、以上のとおり、本実施形態における車両用電子制御装置(ECU1A)では、マイクロコンピュータ(マイコン2)は、通信遮断状態又は通信接続状態への切り替えを指示する切替信号(診断用リレー信号S1又はS2)を遮断回路(遮断回路5)へ出力し、遮断回路は、受信した切替信号に応じて通信遮断状態又は通信接続状態に切り替わり、通信遮断状態又は通信接続状態を示す状態信号(モニタ信号)をマイクロコンピュータへ出力する処理を行う。 Further, as described above, in the vehicle electronic control device (ECU 1A) of the present embodiment, the microcomputer (microcomputer 2) has a switching signal (diagnostic relay signal S1 or) for instructing switching to a communication cutoff state or a communication connection state. S2) is output to the cutoff circuit (cutoff circuit 5), and the cutoff circuit switches to the communication cutoff state or the communication connection state according to the received switching signal, and the state signal (monitor signal) indicating the communication cutoff state or the communication connection state. Is output to the microcomputer.

上記構成によれば、遮断回路の正常/異常を診断することでき、それにより、遮断回路(車両用電子制御装置)と伝送路との間の通信の遮断状態及び接続状態をモニタリング可能となる。通信診断前に遮断回路が通信遮断状態に切り替わったことを示す状態信号を確認することで、通信診断時に診断用信号が伝送路に送出することを防止できる。 According to the above configuration, it is possible to diagnose the normality / abnormality of the cutoff circuit, and thereby it is possible to monitor the cutoff state and the connection state of the communication between the cutoff circuit (electronic control device for a vehicle) and the transmission line. By confirming the status signal indicating that the cutoff circuit has been switched to the communication cutoff state before the communication diagnosis, it is possible to prevent the diagnosis signal from being sent to the transmission line at the time of the communication diagnosis.

また、以上のとおり、本実施形態における車両用電子制御装置(ECU1A)では、マイクロコンピュータとして、第1のマイクロコンピュータ(マイコン2)と、第1のマイクロコンピュータを監視する第2のマイクロコンピュータ(サブマイコン3)と、を有し、第1のマイクロコンピュータ又は第2のマイクロコンピュータは、遮断回路(遮断回路5)に切替信号(診断用リレー信号S1又はS2)を出力して、遮断回路から状態信号(モニタ信号)を受信し、第1のマイクロコンピュータが、診断用信号(診断用メッセージM)の出力及び返信信号の受信を行い、トランシーバ(トランシーバ4)を診断する。 Further, as described above, in the vehicle electronic control device (ECU 1A) in the present embodiment, as the microcomputer, the first microcomputer (microcomputer 2) and the second microcomputer (sub) that monitors the first microcomputer are used. The first microcomputer or the second microcomputer has a microcomputer 3) and outputs a switching signal (diagnostic relay signal S1 or S2) to the breaking circuit (breaking circuit 5), and states from the breaking circuit. Upon receiving the signal (monitor signal), the first microcomputer outputs the diagnostic signal (diagnosis message M) and receives the reply signal to diagnose the transceiver (transceiver 4).

上記構成によれば、第1のマイクロコンピュータに異常が生じて遮断回路に通信遮断を指令できない場合に、第2のマイクロコンピュータが通信遮断を指令することが可能となる。 According to the above configuration, when an abnormality occurs in the first microcomputer and the communication cutoff cannot be instructed to the cutoff circuit, the second microcomputer can instruct the communication cutoff.

<2.第2の実施形態>
第1の実施形態におけるECU1は、一つのトランシーバ4(単独トランシーバ)を備えていたが、第2の実施形態では、一つのECUが複数のトランシーバを備える例である。
<2. Second embodiment>
The ECU 1 in the first embodiment includes one transceiver 4 (single transceiver), but in the second embodiment, one ECU includes a plurality of transceivers.

[車両用電子制御装置の全体構成]
以下、第2の実施形態に係る車両用電子制御装置(複数トランシーバ)の構成について説明する。
図7は、第2の実施形態に係る車両用電子制御装置(複数トランシーバー)の構成例を示すブロック図である。本実施形態は、車両用電子制御装置としてのECU101A,101B,101Cが、CAN通信を行うシステムであり、各ECUが複数個(図7では4個)のトランシーバを備える。ここでは、ECU101Aについて説明するが、ECU101B,101Cについても同様である。以下、ECU101A,101B,101Cを区別しない場合には、ECU101と記述する。
[Overall configuration of electronic control device for vehicles]
Hereinafter, the configuration of the vehicle electronic control device (plurality of transceivers) according to the second embodiment will be described.
FIG. 7 is a block diagram showing a configuration example of the vehicle electronic control device (plurality of transceivers) according to the second embodiment. In this embodiment, the ECUs 101A, 101B, and 101C as electronic control devices for vehicles are systems that perform CAN communication, and each ECU includes a plurality of transceivers (four in FIG. 7). Here, the ECU 101A will be described, but the same applies to the ECUs 101B and 101C. Hereinafter, when the ECUs 101A, 101B, and 101C are not distinguished, they are described as the ECU 101.

ECU101Aは、マイコン102、サブマイコン103、トランシーバ104a〜104d、遮断回路105、OR回路7、及び電源回路8を備える。マイコン102は、複数のコントローラ20a〜20dを備える。また、遮断回路105は、通信切替回路106a〜106dと内部伝送路109を備える。 The ECU 101A includes a microcomputer 102, a sub-microcomputer 103, transceivers 104a to 104d, a cutoff circuit 105, an OR circuit 7, and a power supply circuit 8. The microcomputer 102 includes a plurality of controllers 20a to 20d. Further, the cutoff circuit 105 includes communication switching circuits 106a to 106d and an internal transmission line 109.

マイコン102、サブマイコン103、トランシーバ104a〜104d、及び遮断回路105は、図1に示したマイコン2、サブマイコン3、トランシーバ4、及び遮断回路5に対応するものである。また、マイコン102の複数のコントローラ20a〜20dは、マイコン2のコントローラ20に対応し、遮断回路105の通信切替回路106a〜106dは、遮断回路5の通信切替回路6に対応するものである。 The microcomputer 102, the sub-microcomputer 103, the transceivers 104a to 104d, and the breaking circuit 105 correspond to the microcomputer 2, the sub-microcomputer 3, the transceiver 4, and the breaking circuit 5 shown in FIG. Further, the plurality of controllers 20a to 20d of the microcomputer 102 correspond to the controllers 20 of the microcomputer 2, and the communication switching circuits 106a to 106d of the breaking circuit 105 correspond to the communication switching circuit 6 of the breaking circuit 5.

図7に示すシステムでは、複数の系統の伝送路9a〜9dを用いて車両用通信ネットワークが構成されている。例えば伝送路9aにはECU101BとECU101C、伝送路9bにはECU101DとECU101E、伝送路9cにはECU101FとECU101G、並びに伝送路9dにはECU101HとECU101Iが接続されている。トランシーバ104a〜104dはそれぞれ異なる伝送路9a〜9dに接続され、各伝送路9a〜9d上に通信切替回路106a〜106dが配置されている。 In the system shown in FIG. 7, a vehicle communication network is configured by using transmission lines 9a to 9d of a plurality of systems. For example, ECU 101B and ECU 101C are connected to the transmission line 9a, ECU 101D and ECU 101E are connected to the transmission line 9b, ECU 101F and ECU 101G are connected to the transmission line 9c, and ECU 101H and ECU 101I are connected to the transmission line 9d. The transceivers 104a to 104d are connected to different transmission lines 9a to 9d, and communication switching circuits 106a to 106d are arranged on the transmission lines 9a to 9d.

マイコン102は、基本的には第1の実施形態におけるマイコン2と同様の構成である。ただし、マイコン102は、4個のトランシーバ104a〜104dに対応して4個のコントローラ20a〜20dを備える。また、対をなす送信端子TXと受信端子RXがトランシーバの数に対応して設けられている。すなわち、マイコン102は、トランシーバ104aに対応するコントローラ20aと接続された送信端子TX1及び受信端子RX1、並びに、トランシーバ104bに対応するコントローラ20bと接続された送信端子TX2及び受信端子RX2を備える。さらに、マイコン102は、トランシーバ104cに対応するコントローラ20cと接続された送信端子TX3及び受信端子RX3、並びに、トランシーバ104dに対応するコントローラ20dと接続された送信端子TX4及び受信端子RX4を備える。 The microcomputer 102 basically has the same configuration as the microcomputer 2 in the first embodiment. However, the microcomputer 102 includes four controllers 20a to 20d corresponding to the four transceivers 104a to 104d. Further, a pair of transmission terminal TX and reception terminal RX are provided according to the number of transceivers. That is, the microcomputer 102 includes a transmission terminal TX1 and a reception terminal RX1 connected to the controller 20a corresponding to the transceiver 104a, and a transmission terminal TX2 and a reception terminal RX2 connected to the controller 20b corresponding to the transceiver 104b. Further, the microcomputer 102 includes a transmission terminal TX3 and a reception terminal RX3 connected to the controller 20c corresponding to the transceiver 104c, and a transmission terminal TX4 and a reception terminal RX4 connected to the controller 20d corresponding to the transceiver 104d.

また、マイコン102は、第1の実施形態と同様に、出力端子Ry1、モニタ端子Rm1、モニタ端子Rm2、モニタ端子Cm、及び、各トランシーバ104a〜104dの送受信モードを切り替えるモード切替信号が出力される出力端子Sw1〜Sw4を備える。サブマイコン103もこれと同様の構成であり、出力端子Ry1に相当する出力端子Ry2を備える。 Further, the microcomputer 102 outputs a mode switching signal for switching the transmission / reception mode of the output terminal Ry1, the monitor terminal Rm1, the monitor terminal Rm2, the monitor terminal Cm, and the transceivers 104a to 104d, as in the first embodiment. The output terminals Sw1 to Sw4 are provided. The sub-microcomputer 103 has the same configuration as this, and includes an output terminal Ry2 corresponding to the output terminal Ry1.

コントローラ20a〜20dは、基本的に図3に示された機能を備える。ただし、主たるコントローラ例えばコントローラ20aのみが、切替信号出力部33を備えていてもよい。図7では、4個のコントローラ20a〜20dを例示したが、コントローラの数は4個に限らず1個又は任意の複数個とすることができる。 The controllers 20a to 20d basically have the functions shown in FIG. However, only the main controller, for example, the controller 20a may include the switching signal output unit 33. In FIG. 7, four controllers 20a to 20d are illustrated, but the number of controllers is not limited to four, and may be one or any number of controllers.

遮断回路105の通信切替回路106a〜106dは、第1の実施形態(図1参照)と同様に、サブマイコン103又はマイコン102から出力される診断用リレー信号S1により、トランシーバ104a〜104dと伝送路9a〜9dとの接続を遮断する。遮断回路105内には終端抵抗を備え、さらに通信切替回路106a〜106dは、診断用リレー信号がオンのとき、トランシーバ104a〜104dが一つの内部伝送路109上に接続されるように切り替える回路を有する。 Similar to the first embodiment (see FIG. 1), the communication switching circuits 106a to 106d of the cutoff circuit 105 are connected to the transceivers 104a to 104d by the diagnostic relay signal S1 output from the sub-microcomputer 103 or the microcomputer 102. The connection with 9a to 9d is cut off. A terminating resistor is provided in the cutoff circuit 105, and the communication switching circuits 106a to 106d are circuits that switch the transceivers 104a to 104d so that they are connected on one internal transmission line 109 when the diagnostic relay signal is on. Have.

このような構成とすることで、図1のシステムと同様に、自局のマイコン102から送信したデータ信号が、各トランシーバ104a〜104d及び通信切替回路106a〜106dを介してそのまま自局のマイコン102で受信可能となる。さらに、ECU101A内に内部伝送路109を構成するため、ECU101Aが外部のECU101B〜101Iから遮断された状態での診断が可能となる。それゆえ、車両内で何らかの通信異常が発生した際に、異常となっているECU101の特定や故障箇所の特定がより詳細に可能となる。 With such a configuration, the data signal transmitted from the microcomputer 102 of the own station is directly transmitted to the microcomputer 102 of the own station via the transceivers 104a to 104d and the communication switching circuits 106a to 106d, as in the system of FIG. It becomes possible to receive at. Further, since the internal transmission line 109 is configured in the ECU 101A, it is possible to make a diagnosis in a state where the ECU 101A is cut off from the external ECUs 101B to 101I. Therefore, when some kind of communication abnormality occurs in the vehicle, it is possible to identify the abnormal ECU 101 and the faulty part in more detail.

なお、図7のシステムでは、車両用通信ネットワークを構成する伝送路9a〜9d(系統の数)に対応して4個の通信切替回路106a〜106dを備えているが、例えば通信切替回路は一つでもよく、機能上の重要度に応じた構成や組合せとしてもよい。以下の説明において、伝送路9aの系統をch1(第1チャネル)とし、また伝送路9b〜9dの系統をそれぞれch2(第2チャネル)〜ch4(第4チャネル)とする。例えば、伝送路9aを利用してデータ信号を送受信するトランシーバ104aを「ch1のトランシーバ104a」のように表現する。 The system of FIG. 7 includes four communication switching circuits 106a to 106d corresponding to the transmission lines 9a to 9d (the number of systems) constituting the vehicle communication network. For example, the communication switching circuit has one. It may be any of them, and it may be configured or combined according to the importance of function. In the following description, the system of the transmission line 9a is referred to as ch1 (first channel), and the systems of the transmission lines 9b to 9d are referred to as ch2 (second channel) to ch4 (fourth channel), respectively. For example, the transceiver 104a for transmitting and receiving data signals using the transmission line 9a is expressed as "transceiver 104a of ch1".

[ループバック診断時のデータフロー]
次に、ECU101Aにおけるループバック診断について説明する。
図8は、ECU101Aにおけるループバック診断時のデータフローの一例を示す図である。図8には、外部ループバック診断時のデータフローLb1が示されている。ここでは、マイコン102の送信端子TX1から診断用メッセージM1が出力されたものとする。
[Data flow during loopback diagnosis]
Next, the loopback diagnosis in the ECU 101A will be described.
FIG. 8 is a diagram showing an example of a data flow at the time of loopback diagnosis in the ECU 101A. FIG. 8 shows the data flow Lb1 at the time of external loopback diagnosis. Here, it is assumed that the diagnostic message M1 is output from the transmission terminal TX1 of the microcomputer 102.

外部ループバック診断時、マイコン102又はサブマイコン103から出力された診断用リレー信号が遮断回路105に入力され、遮断回路105の通信切替回路106a〜106dがそれぞれ通信遮断状態に切り替わり伝送路9a〜9dとの通信を遮断する。そして、マイコン102のコントローラ20aが、送信端子TX1から診断用メッセージM1を出力すると、ECU101Aが正常な場合には、診断用メッセージM1は、トランシーバ104aを介して遮断回路105の通信切替回路106aに入力される。 At the time of external loopback diagnosis, the diagnostic relay signal output from the microcomputer 102 or the sub-microcomputer 103 is input to the cutoff circuit 105, and the communication switching circuits 106a to 106d of the cutoff circuit 105 are switched to the communication cutoff state, respectively, and the transmission lines 9a to 9d. Block communication with. Then, when the controller 20a of the microcomputer 102 outputs the diagnostic message M1 from the transmission terminal TX1, if the ECU 101A is normal, the diagnostic message M1 is input to the communication switching circuit 106a of the cutoff circuit 105 via the transceiver 104a. Will be done.

通信切替回路106aは、トランシーバ104aを介して診断用メッセージM1に対する返信メッセージをマイコン102に返信する。これと並行して、通信切替回路106aは、内部伝送路109を介して診断用メッセージM1を通信切替回路106b〜105dに転送する。通信切替回路106b〜105dはそれぞれ、通信切替回路106aから転送された診断用メッセージM1に対する返信メッセージを、トランシーバ104b〜104dを介してマイコン102へ送信する。そして、コントローラ20a〜20dはそれぞれ、各通信切替回路106a〜105dが送信した返信メッセージを、受信端子RX1〜RX4により受信する。 The communication switching circuit 106a returns a reply message to the diagnostic message M1 to the microcomputer 102 via the transceiver 104a. In parallel with this, the communication switching circuit 106a transfers the diagnostic message M1 to the communication switching circuits 106b to 105d via the internal transmission line 109. The communication switching circuits 106b to 105d each transmit a reply message to the diagnostic message M1 transferred from the communication switching circuit 106a to the microcomputer 102 via the transceivers 104b to 104d. Then, the controllers 20a to 20d each receive the reply message transmitted by the communication switching circuits 106a to 105d by the receiving terminals RX1 to RX4.

仮に送信端子TX1(ch1)を起点とする外部ループバックの経路上に異常があれば、マイコン102の受信端子RX1〜RX4のいずれか又はすべてで、診断用メッセージM1が受信されない。このように、ch1〜ch4のそれぞれのトランシーバ104a〜14dを経由する外部ループバック診断を適宜実施することで、ch1〜ch4のトランシーバ104a〜104d等の異常を判定することができる。 If there is an abnormality on the path of the external loopback starting from the transmission terminal TX1 (ch1), the diagnostic message M1 is not received by any or all of the reception terminals RX1 to RX4 of the microcomputer 102. In this way, by appropriately performing the external loopback diagnosis via the transceivers 104a to 14d of ch1 to ch4, it is possible to determine the abnormality of the transceivers 104a to 104d of ch1 to ch4.

トランシーバ104a〜104dの各々における内部ループバック時のデータフローと、診断用リレー信号及びモニタ信号のデータフローは、第1の実施形態の場合と同様であり、図示及び説明を省略する。 The data flow at the time of internal loopback and the data flow of the diagnostic relay signal and the monitor signal in each of the transceivers 104a to 104d are the same as in the case of the first embodiment, and illustration and description thereof will be omitted.

[トランシーバ診断処理のサブルーチン]
図7のECU101Aにおいても、図4に示した通信診断処理を実施する。ECU101Aが接続される伝送路が複数(伝送路9a〜9d)のシステムにおいては、図4のトランシーバ診断処理(S4)は、図9及び図10で示される手順を実行する。
[Subroutine for transceiver diagnostic processing]
Also in the ECU 101A of FIG. 7, the communication diagnosis process shown in FIG. 4 is performed. In a system having a plurality of transmission lines (transmission lines 9a to 9d) to which the ECU 101A is connected, the transceiver diagnostic process (S4) of FIG. 4 executes the procedure shown in FIGS. 9 and 10.

図9は、ステップS4におけるトランシーバ診断処理のサブルーチンを示すフローチャートである。まず、コントローラ20の診断部31は、ch1診断処理を行う(S21)。ステップS21のch1診断処理は、図10で示される手順を実行する。ここで、ステップS21,S24,S27,S30におけるチャネル診断処理のサブルーチンについて説明する。 FIG. 9 is a flowchart showing a subroutine of the transceiver diagnosis process in step S4. First, the diagnostic unit 31 of the controller 20 performs ch1 diagnostic processing (S21). The ch1 diagnostic process in step S21 executes the procedure shown in FIG. Here, the subroutine of the channel diagnosis processing in steps S21, S24, S27, and S30 will be described.

(チャネル診断処理のサブルーチン)
図10は、ステップS21,S24,S27,S30におけるチャネル診断処理のサブルーチンを示すフローチャートである。ここで、ch1〜ch4はそれぞれ、図7に示すトランシーバ104a〜104d、及びこれらトランシーバ104a〜104dが接続された各伝送路9a〜9dの系統に対応している。
(Subroutine of channel diagnostic processing)
FIG. 10 is a flowchart showing a subroutine of channel diagnosis processing in steps S21, S24, S27, and S30. Here, ch1 to ch4 correspond to the transceivers 104a to 104d shown in FIG. 7, and the systems of the transmission lines 9a to 9d to which these transceivers 104a to 104d are connected, respectively.

まず、コントローラ20aの診断部31(ch1)は、マイコン102の送信端子TX1からトランシーバ104aに診断用メッセージM1を送信する処理と受信待ちウェイト処理を行う(S41)。送信端子TX1から送信された診断用メッセージは、トランシーバ104aを介して遮断回路105の通信切替回路106aに入力された後、通信切替回路106b〜106dに転送される。そして、通信切替回路106a〜106dから送信される返信メッセージを、トランシーバ104a〜104dを介してマイコン102の受信端子RX1〜RX4にて受信する。 First, the diagnostic unit 31 (ch1) of the controller 20a performs a process of transmitting a diagnostic message M1 from the transmission terminal TX1 of the microcomputer 102 to the transceiver 104a and a reception wait wait process (S41). The diagnostic message transmitted from the transmission terminal TX1 is input to the communication switching circuit 106a of the cutoff circuit 105 via the transceiver 104a, and then transferred to the communication switching circuits 106b to 106d. Then, the reply message transmitted from the communication switching circuits 106a to 106d is received by the receiving terminals RX1 to RX4 of the microcomputer 102 via the transceivers 104a to 104d.

次いで、コントローラ20bの診断部31は、受信端子RX2でch2の診断用メッセージを受信したかどうかを判定する(S42)。診断部31は、マイコン102の送信端子TX1から送信した診断用メッセージM1と受信端子RX2にて受信した返信メッセージの一致性を確認する。そして、診断部31は、診断用メッセージM1と返信メッセージが一致した場合(S42のYES)にはch2を正常と判定し(S43)、不一致の場合(S42のNO)にはch2を仮異常と判定する(S44)。 Next, the diagnostic unit 31 of the controller 20b determines whether or not the diagnostic message of ch2 has been received at the reception terminal RX2 (S42). The diagnostic unit 31 confirms the consistency between the diagnostic message M1 transmitted from the transmission terminal TX1 of the microcomputer 102 and the reply message received at the reception terminal RX2. Then, when the diagnostic message M1 and the reply message match (YES in S42), the diagnostic unit 31 determines that ch2 is normal (S43), and when they do not match (NO in S42), ch2 is regarded as a temporary abnormality. Judgment (S44).

次いで、コントローラ20cの診断部31は、受信端子RX3でch3の診断用メッセージを受信したかどうかを判定する(S45)。診断部31は、マイコン102の送信端子TX1から送信した診断用メッセージM1と受信端子RX3にて受信した返信メッセージの一致性を確認する。そして、診断部31は、診断用メッセージM1と返信メッセージが一致した場合(S45のYES)にはch3を正常と判定し(S46)、不一致の場合(S45のNO)にはch3を仮異常と判定する(S47)。 Next, the diagnostic unit 31 of the controller 20c determines whether or not the diagnostic message of ch3 has been received at the reception terminal RX3 (S45). The diagnostic unit 31 confirms the consistency between the diagnostic message M1 transmitted from the transmission terminal TX1 of the microcomputer 102 and the reply message received at the reception terminal RX3. Then, when the diagnostic message M1 and the reply message match (YES in S45), the diagnosis unit 31 determines that ch3 is normal (S46), and when they do not match (NO in S45), ch3 is regarded as a temporary abnormality. Judgment (S47).

次いで、コントローラ20dの診断部31は、受信端子RX4でch4の診断用メッセージを受信したかどうかを判定する(S48)。診断部31は、マイコン102の送信端子TX1から送信した診断用メッセージM1と受信端子RX3にて受信した返信メッセージの一致性を確認する。そして、診断部31は、診断用メッセージM1と返信メッセージが一致した場合(S48のYES)にはch4を正常と判定し(S49)、不一致の場合(S48のNO)にはch4を仮異常と判定する(S50)。ステップS49又はS50でch4の状態を判定後、図9のステップS22に移行する。 Next, the diagnostic unit 31 of the controller 20d determines whether or not the diagnostic message of ch4 has been received at the reception terminal RX4 (S48). The diagnostic unit 31 confirms the consistency between the diagnostic message M1 transmitted from the transmission terminal TX1 of the microcomputer 102 and the reply message received at the reception terminal RX3. Then, the diagnosis unit 31 determines that ch4 is normal (S49) when the diagnostic message M1 and the reply message match (YES in S48), and sets ch4 as a temporary abnormality when they do not match (NO in S48). Judgment (S50). After determining the state of ch4 in step S49 or S50, the process proceeds to step S22 of FIG.

受信端子RX2〜RX4の全てで診断用メッセージM1と返信メッセージが不一致であった場合は、ch1のトランシーバ104aに異常が発生している可能性がある。そのため、図10では、ステップS44,S47及びS50に記載のように、ch2〜ch4の状態を仮異常としておく。 If the diagnostic message M1 and the reply message do not match in all of the receiving terminals RX2 to RX4, there is a possibility that an abnormality has occurred in the transceiver 104a of ch1. Therefore, in FIG. 10, as described in steps S44, S47 and S50, the states of ch2 to ch4 are set as temporary abnormalities.

図9のトランシーバ診断処理の説明に戻る。コントローラ20aは、ステップS21の診断処理後、図10のチャネル診断処理により得られた結果を基に、ch1のトランシーバ104aの異常判定を実施する(S22)。ここで、コントローラ20aの診断部31は、送信端子TX1から送信した診断用メッセージM1に対して、受信端子RX2〜RX4の全てで返信メッセージを未受信、かつ受信端子RX1で返信メッセージを未受信である場合には(S22のYES)、ch1を異常と判定する(S23)。 Returning to the description of the transceiver diagnostic process of FIG. After the diagnosis process in step S21, the controller 20a performs an abnormality determination of the transceiver 104a of ch1 based on the result obtained by the channel diagnosis process of FIG. 10 (S22). Here, the diagnostic unit 31 of the controller 20a has not received the reply message at all of the reception terminals RX2 to RX4 and has not received the reply message at the reception terminal RX1 with respect to the diagnostic message M1 transmitted from the transmission terminal TX1. In some cases (YES in S22), ch1 is determined to be abnormal (S23).

一方、トランシーバ104b〜104dのうち一つでも正常(送信端子TX1からの診断用メッセージM1に対する返信メッセージを受信し、かつ診断用メッセージM1と返信メッセージが一致している)である場合(S22のNO)、図10のステップS44,S47,S50で判定した仮異常状態を異常状態と確定する(S33)。この状態は、送信端子TX1から送信した診断用メッセージM1がトランシーバ104aを介して正常に送信されたと判断できるため、トランシーバ104aの診断も正常と判定して診断を終了する。 On the other hand, when even one of the transceivers 104b to 104d is normal (the reply message to the diagnostic message M1 from the transmission terminal TX1 is received, and the diagnostic message M1 and the reply message match) (NO in S22). ), The temporary abnormal state determined in steps S44, S47, and S50 of FIG. 10 is determined as an abnormal state (S33). In this state, since it can be determined that the diagnostic message M1 transmitted from the transmission terminal TX1 is normally transmitted via the transceiver 104a, the diagnosis of the transceiver 104a is also determined to be normal and the diagnosis is terminated.

ステップS22においてch2〜ch4が全て仮異常の場合、トランシーバ104aの異常が考えられる。この場合、ch2〜ch4すなわちトランシーバ104b〜104dの診断が実施されていないことを意味するため、ステップS24のch2診断処理を実行する。 If all of ch2 to ch4 are provisionally abnormal in step S22, it is considered that the transceiver 104a is abnormal. In this case, since it means that the diagnosis of ch2 to ch4, that is, the transceivers 104b to 104d has not been performed, the ch2 diagnosis process of step S24 is executed.

ステップS24のch2診断処理の詳細は図10と同様であり、送信端子TX2から送信した診断用メッセージM2がch1,ch3,ch4の受信端子RX1,RX3,RX4で正常に受信したかどうかを判定し、トランシーバ104a〜104dの健全性を診断する。ステップS24以降におけるch2〜ch4の診断手法及び判定手法は、ch1の場合と同様のため説明を省略する。ステップS32〜S36で各chの状態を判定後、図5のステップS5に移行する。 The details of the ch2 diagnostic process in step S24 are the same as those in FIG. 10, and it is determined whether or not the diagnostic message M2 transmitted from the transmission terminal TX2 is normally received at the reception terminals RX1, RX3, RX4 of ch1, ch3, ch4. , Diagnose the health of transceivers 104a-104d. Since the diagnostic method and the determination method for ch2 to ch4 in step S24 and subsequent steps are the same as those for ch1, the description thereof will be omitted. After determining the state of each channel in steps S32 to S36, the process proceeds to step S5 of FIG.

図5のステップS4のトランシーバ診断処理を実施後、マイコン102(例えばコントローラ20a)は、図9で判定したch1〜ch4の状態を参照してch1〜ch4が正常かどうかを判定する(S5)。そして、ch1〜ch4のうちどれか一つでも異常であった場合には(S5のNO)、フェールセーフ処理部34はステップS9のフェールセーフ処理を実行し、すべて正常であった場合には(S5のYES)、図5の通信診断処理を終了する。 After performing the transceiver diagnosis process in step S4 of FIG. 5, the microcomputer 102 (for example, the controller 20a) determines whether or not ch1 to ch4 are normal with reference to the states of ch1 to ch4 determined in FIG. 9 (S5). Then, when any one of ch1 to ch4 is abnormal (NO in S5), the fail-safe processing unit 34 executes the fail-safe processing in step S9, and when all are normal (NO). YES in S5), the communication diagnosis process of FIG. 5 is terminated.

図9及び図10では、マイコン102内部のコントローラ20a〜20dの異常か、トランシーバ104a〜104dの異常かを特定する診断はないが、次の方法により異常個所を特定することが可能である。異常個所を特定するには、例えばトランシーバ診断処理(図5のS4)を実行後に、異常と診断されたchについて、図6のような内部ループバック診断(S11)を実施することで、より詳細な異常箇所を特定することが可能である。または、図7のシステムにおいて、予め各chに対して図6のような内部ループバック診断を実施しておき、マイコン102内部のコントローラ20a〜20dの機能の有効性を診断しておく構成としてもよい。 In FIGS. 9 and 10, there is no diagnosis for identifying an abnormality in the controllers 20a to 20d inside the microcomputer 102 or an abnormality in the transceivers 104a to 104d, but the abnormality portion can be specified by the following method. In order to identify the abnormal part, for example, after executing the transceiver diagnosis process (S4 in FIG. 5), the internal loopback diagnosis (S11) as shown in FIG. 6 is performed on the channel diagnosed as abnormal in more detail. It is possible to identify an abnormal location. Alternatively, in the system of FIG. 7, the internal loopback diagnosis as shown in FIG. 6 is performed in advance for each channel, and the effectiveness of the functions of the controllers 20a to 20d inside the microcomputer 102 is diagnosed. Good.

[トランシーバ診断真理値表]
次に、トランシーバ診断真理値表について説明する。
図11は、トランシーバ診断真理値表を示す。図11には、ECU101Aのマイコン102の送信端子TX1(ch1)から診断用メッセージM1を送信したときの各チャネル(受信端子RX1〜RX4)の受信状況と、その受信状況に応じた処理の内容とが示されており、このトランシーバ診断真理値表は図9及び図10の診断結果と等価である。
[Transceiver diagnosis truth table]
Next, the transceiver diagnostic truth table will be described.
FIG. 11 shows a transceiver diagnostic truth table. FIG. 11 shows the reception status of each channel (reception terminals RX1 to RX4) when the diagnostic message M1 is transmitted from the transmission terminal TX1 (ch1) of the microcomputer 102 of the ECU 101A, and the content of processing according to the reception status. Is shown, and this transceiver diagnostic truth table is equivalent to the diagnostic results of FIGS. 9 and 10.

例えば、図11において、No.1〜No.8の状態は、図9のステップS33の状態に対応し、No.9の状態は、図9のステップS23の状態に対応している。なお、送信端子TX2〜TX4(ch2〜ch4)から診断用メッセージM2〜M4を送信した場合(図9のS24,S27,S30)については、送信端子TX1(ch1)から診断用メッセージM1を送信した場合と考え方は同様であるため、詳細は図示してない。このトランシーバ真理値表は、チャネルごとに作成され、RAM23又は不揮発性メモリ25に記憶される。 For example, in FIG. 11, No. 1 to No. The state of No. 8 corresponds to the state of step S33 of FIG. The state of 9 corresponds to the state of step S23 of FIG. When the diagnostic messages M2 to M4 are transmitted from the transmission terminals TX2 to TX4 (ch2 to ch4) (S24, S27, S30 in FIG. 9), the diagnostic message M1 is transmitted from the transmission terminals TX1 (ch1). The details are not shown because the idea is the same as the case. This transceiver truth table is created for each channel and stored in the RAM 23 or the non-volatile memory 25.

なお、図9及び図10では、ch1,ch2,ch3,ch4の順番に診断しているが、診断するチャネルの順番はこの例に限らない。例えば、マイコン2が、複数のトランシーバ104a〜104d(ch1〜ch4)を故障しにくい順に診断してもよい。各トランシーバは、通信に利用する伝送路(系統)に接続されたECU101の数や各ECU101の制御対象などによって、故障しやすさが異なると推測される。このような各トランシーバの故障しやすさの指標、又は故障しやすさと関連する情報を、予め不揮発性メモリ25に記憶しておく。 In FIGS. 9 and 10, the diagnosis is made in the order of ch1, ch2, ch3, ch4, but the order of the channels to be diagnosed is not limited to this example. For example, the microcomputer 2 may diagnose the plurality of transceivers 104a to 104d (ch1 to ch4) in the order in which they are less likely to fail. It is presumed that each transceiver has different susceptibility to failure depending on the number of ECUs 101 connected to the transmission line (system) used for communication, the control target of each ECU 101, and the like. The failure susceptibility index of each transceiver or the information related to the failure susceptibility is stored in the non-volatile memory 25 in advance.

例えば一つの伝送路に接続されたECU101の数が多い場合、自局のECU101が他局のECU101と送受信するデータ信号の数が多くなり、各ECU101の負荷が大きくなる。また、ある伝送路に接続されたECU101の制御対象の種類によっては、当該伝送路において送受信されるデータ信号の数が他の伝送路より多いこともある。また、同じ車両内でも比較的温度が高い場所などの厳しい状況下に設置されたECU101は、他のECU101よりも故障しやすい可能性がある。 For example, when the number of ECUs 101 connected to one transmission line is large, the number of data signals transmitted and received by the ECU 101 of the own station to and from the ECU 101 of another station increases, and the load on each ECU 101 increases. Further, depending on the type of control target of the ECU 101 connected to a certain transmission line, the number of data signals transmitted / received on the transmission line may be larger than that of other transmission lines. Further, the ECU 101 installed under severe conditions such as a place where the temperature is relatively high even in the same vehicle may be more likely to break down than other ECU 101s.

そこで、故障しやすいトランシーバの故障しやすさを表す指標を、故障しにくいトランシーバのものよりも大きい値に設定する。そして、マイコン2が、複数のトランシーバ(トランシーバ104a〜104d)を故障しやすさを表す指標が小さい順、すなわち故障しにくい順に診断する構成とする。このようにした場合、図9のトランシーバ診断処理において異常なchを早期に特定し、トランシーバ診断処理を完了するまでの時間を短縮できる可能性がある。これにより、マイコン102は、図5の通信診断処理を早期に完了し、速やかに次の制御(例えばエンジン始動、フェールセーフ処理など)に移行できる。 Therefore, the index indicating the susceptibility of the transceiver that is prone to failure is set to a value larger than that of the transceiver that is difficult to fail. Then, the microcomputer 2 diagnoses the plurality of transceivers (transceivers 104a to 104d) in ascending order of susceptibility to failure, that is, in order of resistance to failure. In this case, there is a possibility that the abnormal channel can be identified at an early stage in the transceiver diagnosis process of FIG. 9 and the time until the transceiver diagnosis process is completed can be shortened. As a result, the microcomputer 102 can complete the communication diagnosis process of FIG. 5 at an early stage and quickly move to the next control (for example, engine start, fail-safe process, etc.).

以上のとおり、第2の実施形態における車両用電子制御装置(ECU101A)では、トランシーバとして、車両用通信ネットワークを構成する複数の伝送路(伝送路9a〜9d)のそれぞれに対応して設けられた複数のトランシーバ(トランシーバ104a〜104d)を備え、遮断回路(遮断回路105)は、通信遮断状態において複数のトランシーバを相互に通信可能に接続し、複数のトランシーバが接続された状態で、一つのトランシーバ(例えばトランシーバ104a)から診断用信号(診断用メッセージM1)を受信した場合に、診断用信号に対する返信信号を、診断用信号を出力したトランシーバと他のトランシーバ(トランシーバ104b〜104d)へ出力する処理を行う。 As described above, in the vehicle electronic control device (ECU 101A) of the second embodiment, the transceiver is provided corresponding to each of the plurality of transmission lines (transmission lines 9a to 9d) constituting the vehicle communication network. A plurality of transceivers (transceivers 104a to 104d) are provided, and a break circuit (break circuit 105) connects a plurality of transceivers so as to be able to communicate with each other in a communication cutoff state, and one transceiver in a state where a plurality of transceivers are connected. When a diagnostic signal (diagnostic message M1) is received from (for example, transceiver 104a), a process of outputting a reply signal to the diagnostic signal to the transceiver that outputs the diagnostic signal and other transceivers (transceivers 104b to 104d). I do.

例えば、上記の複数トランシーバを有する車両用電子制御装置(ECU101A)は、以下のように構成される。
車両用電子制御装置において、遮断回路(遮断回路105)は、複数のトランシーバ(トランシーバ104a〜104d)と複数の伝送路(伝送路9a〜9d)との間に、切替信号(診断用リレー信号)に応じて通信遮断状態又は通信接続状態に切り替わるとともに、通信遮断状態において複数のトランシーバを相互に通信可能に接続するように構成された複数の通信切替回路(通信切替回路106a〜106d)を備える。
そして、マイクロコンピュータ(マイコン102)は、遮断回路に切替信号を出力して複数の通信切替回路を通信遮断状態にし、複数のトランシーバが接続された状態で、一つのトランシーバ(例えばトランシーバ104a)を介して一つの通信切替回路(通信切替回路106a)に診断用信号(診断用メッセージM1)を出力する。次いで、診断用信号を受信した通信切替回路が、診断用信号を他の通信切替回路(通信切替回路106b〜106d)へ転送する処理を行い、複数の通信切替回路(通信切替回路106a〜106d)の各々は、診断用信号に対する返信信号を、対応する複数のトランシーバ(トランシーバ104a〜104d)の各々へ出力する。そして、マイクロコンピュータは、診断用信号を出力したトランシーバ(例えばトランシーバ104a)と他のトランシーバ(トランシーバ104b〜104d)からの返信信号の受信状況に基づいて、複数のトランシーバを診断する。
For example, the vehicle electronic control device (ECU 101A) having the above-mentioned plurality of transceivers is configured as follows.
In the electronic control device for vehicles, the interruption circuit (interruption circuit 105) is a switching signal (diagnosis relay signal) between a plurality of transceivers (transceivers 104a to 104d) and a plurality of transmission lines (transmission lines 9a to 9d). A plurality of communication switching circuits (communication switching circuits 106a to 106d) configured to switch to a communication cutoff state or a communication connection state and to connect a plurality of transceivers to each other so as to be able to communicate with each other in the communication cutoff state are provided.
Then, the microcomputer (microcomputer 102) outputs a switching signal to the cutoff circuit to put the plurality of communication switching circuits in the communication cutoff state, and with the plurality of transceivers connected, via one transceiver (for example, transceiver 104a). A diagnostic signal (diagnosis message M1) is output to one communication switching circuit (communication switching circuit 106a). Next, the communication switching circuit that has received the diagnostic signal performs a process of transferring the diagnostic signal to another communication switching circuit (communication switching circuits 106b to 106d), and a plurality of communication switching circuits (communication switching circuits 106a to 106d). Each of the above outputs a reply signal to the diagnostic signal to each of the corresponding plurality of transceivers (transceivers 104a to 104d). Then, the microcomputer diagnoses a plurality of transceivers based on the reception status of the reply signals from the transceiver (for example, transceiver 104a) that outputs the diagnostic signal and the other transceivers (transceivers 104b to 104d).

上記構成の第2の実施形態によれば、第1の実施形態と同様の効果の他に、次のような効果がある。すなわち、第2の実施形態によれば、複数の伝送路に接続された車両用電子制御装置において、伝送路ごとに設置されたトランシーバの状態を、一つの診断用信号で一度に診断することが可能である。それにより、車両用電子制御装置の診断効率を向上させることができる。 According to the second embodiment of the above configuration, in addition to the same effect as that of the first embodiment, there are the following effects. That is, according to the second embodiment, in the electronic control device for vehicles connected to a plurality of transmission lines, the state of the transceiver installed in each transmission line can be diagnosed at once with one diagnostic signal. It is possible. Thereby, the diagnostic efficiency of the electronic control device for the vehicle can be improved.

また、以上のとおり、本実施形態における車両用電子制御装置(ECU101A)では、マイクロコンピュータ(マイコン102)は、診断用信号(診断用メッセージM1〜M4)を複数のトランシーバ(トランシーバ104a〜104d)へ順に出力し、診断用信号を出力したトランシーバと他のトランシーバからの返信信号の受信状況に基づいて、複数のトランシーバを診断する。 Further, as described above, in the vehicle electronic control device (ECU 101A) of the present embodiment, the microcomputer (microcomputer 102) transmits the diagnostic signals (diagnostic messages M1 to M4) to the plurality of transceivers (transceivers 104a to 104d). It outputs in order, and diagnoses a plurality of transceivers based on the reception status of the return signal from the transceiver that outputs the diagnostic signal and the other transceivers.

上記構成によれば、車両用電子制御装置は、伝送路に接続されたすべてのトランシーバを順次診断することができる。 According to the above configuration, the electronic control device for the vehicle can sequentially diagnose all the transceivers connected to the transmission line.

<3.第3の実施形態>
上述した第1の実施形態のトランシーバ4(図1参照)、及び、第2の実施形態のトランシーバ104a〜104d(図7参照)の送受信モード切り替え機能が正常に動作するかどうかを診断することも可能である。
<3. Third Embodiment>
It is also possible to diagnose whether or not the transmission / reception mode switching function of the transceiver 4 (see FIG. 1) of the first embodiment and the transceivers 104a to 104d (see FIG. 7) of the second embodiment described above operates normally. It is possible.

[第1例:受信専用モードの診断]
はじめに、第3の実施形態の第1例として、トランシーバの動作モードを受信専用モードとした場合の診断について説明する。
図12は、第3の実施形態の第1例に係る車両用電子制御装置(単独トランシーバ)の構成例を示すブロック図である。例えば、ECU1Aのマイコン2の出力端子Swからモード切替信号を出力してトランシーバ4の動作モードを受信専用モードにするとともに、遮断回路5に診断用リレー信号S1又はS2を出力して遮断回路5による伝送路9との通信を遮断した状態で、診断用メッセージMをマイコン2の送信端子TXから送信する。
[First example: Diagnosis of receive-only mode]
First, as a first example of the third embodiment, a diagnosis when the operation mode of the transceiver is set to the receive-only mode will be described.
FIG. 12 is a block diagram showing a configuration example of an electronic control device for a vehicle (single transceiver) according to the first example of the third embodiment. For example, a mode switching signal is output from the output terminal Sw of the microcomputer 2 of the ECU 1A to set the operation mode of the transceiver 4 to the reception-only mode, and a diagnostic relay signal S1 or S2 is output to the cutoff circuit 5 by the cutoff circuit 5. The diagnostic message M is transmitted from the transmission terminal TX of the microcomputer 2 in a state where communication with the transmission line 9 is cut off.

この場合、トランシーバ4は送信機能を停止しているため、診断用メッセージM1がトランシーバ4から遮断回路5へ送信されない。したがって、マイコン2の受信端子RXは診断用メッセージMに対する返信メッセージを受信できない。このようにして、トランシーバ4の受信専用モードが正常に動作していることを確認できる。同様に、図7のトランシーバ104a(ch1)〜104d(ch4)についても受信専用モードを診断することができる。 In this case, since the transceiver 4 has stopped the transmission function, the diagnostic message M1 is not transmitted from the transceiver 4 to the cutoff circuit 5. Therefore, the receiving terminal RX of the microcomputer 2 cannot receive the reply message to the diagnostic message M. In this way, it can be confirmed that the receive-only mode of the transceiver 4 is operating normally. Similarly, the receive-only mode can be diagnosed for the transceivers 104a (ch1) to 104d (ch4) of FIG.

[第2例:通信停止モードの診断]
次に、第3の実施形態の第2例として、トランシーバの動作モードを通信停止モードとした場合の診断について説明する。
図13は、第4の実施形態に係る車両用電子制御装置(複数トランシーバ)の構成例を示すブロック図である。例えば、ECU101Aのマイコン102の出力端子Swからモード切替信号を出力してトランシーバ104a(ch1)の動作モードを通信停止モード(CAN通信しないモード)にするとともに、遮断回路105による通信を遮断した状態で、診断用メッセージM1をマイコン102の送信端子TX1から送信する。
[Second example: Diagnosis of communication stop mode]
Next, as a second example of the third embodiment, a diagnosis when the operation mode of the transceiver is set to the communication stop mode will be described.
FIG. 13 is a block diagram showing a configuration example of the vehicle electronic control device (plurality of transceivers) according to the fourth embodiment. For example, a mode switching signal is output from the output terminal Sw of the microcomputer 102 of the ECU 101A to set the operation mode of the transceiver 104a (ch1) to the communication stop mode (mode in which CAN communication is not performed), and the communication by the cutoff circuit 105 is cut off. , The diagnostic message M1 is transmitted from the transmission terminal TX1 of the microcomputer 102.

この場合、トランシーバ104aは送信機能を停止しているため、診断用メッセージM1がトランシーバ104aから遮断回路105へ送信されない。したがって、マイコン102の受信端子RX2〜RX4は診断用メッセージM1に対する返信メッセージを受信できない。 In this case, since the transceiver 104a has stopped the transmission function, the diagnostic message M1 is not transmitted from the transceiver 104a to the cutoff circuit 105. Therefore, the receiving terminals RX2 to RX4 of the microcomputer 102 cannot receive the reply message to the diagnostic message M1.

さらに、マイコン102の送信端子TX2から診断用メッセージM2を送信した場合、トランシーバ104aは受信機能も停止しているため、マイコン102の受信端子RX1は診断用メッセージM2に対する返信メッセージを受信できない。このようにして、トランシーバ104aの通信停止モードが正常に動作していることを確認できる。同様に、トランシーバ104b(ch2)〜104d(ch4)の通信停止モードを診断することができる。なお、通信停止モードでは、トランシーバへの電源供給を遮断することで、トランシーバの通信を停止してもよい。 Further, when the diagnostic message M2 is transmitted from the transmission terminal TX2 of the microcomputer 102, the receiving terminal RX1 of the microcomputer 102 cannot receive the reply message to the diagnostic message M2 because the receiving function of the transceiver 104a is also stopped. In this way, it can be confirmed that the communication stop mode of the transceiver 104a is operating normally. Similarly, the communication stop mode of the transceivers 104b (ch2) to 104d (ch4) can be diagnosed. In the communication stop mode, the communication of the transceiver may be stopped by cutting off the power supply to the transceiver.

<4.その他>
上述した第2の実施形態(図7)及び第3の実施形態の第2例(図13)において、車両用通信ネットワークのチャネル数(伝送路数)が4つの構成を前提としているが、チャネル数はこれに限定するものではない。
<4. Others>
In the second embodiment (FIG. 7) and the second example (FIG. 13) of the third embodiment described above, it is assumed that the number of channels (number of transmission lines) of the vehicle communication network is four, but the channels The number is not limited to this.

また、図5に示した通信診断処理の実施タイミングは、自局のECUと他局のECUとの通信が成立する前のECU起動時、又は他局のECUとの通信が終了した自局のECUのシャットダウン時に実施することが望ましいが、通常制御時においても要求があれば実施は可能である。 Further, the execution timing of the communication diagnosis process shown in FIG. 5 is when the ECU is started before the communication between the ECU of the own station and the ECU of the other station is established, or when the communication with the ECU of the other station is completed. It is desirable to carry out when the ECU is shut down, but it is possible to carry out even during normal control if requested.

また、診断対象のECUは、通信診断処理時のみ通常制御時よりも診断用メッセージ等のビットレートを上げて実施し、診断終了後は、他ECUとの通信時のビットレートに戻すことで、診断時間を短縮することが可能である。 In addition, the diagnosis target ECU is executed by raising the bit rate of diagnostic messages and the like only during communication diagnosis processing compared to during normal control, and after the diagnosis is completed, the bit rate is returned to that during communication with other ECUs. It is possible to shorten the diagnosis time.

また、第2の実施形態(図7)及び第3の実施形態の第2例(図13)において複数の系統(チャネル)のすべてを診断してもよいし、複数の系統のうち遮断回路105により一部の通信を遮断した系統のみを診断してもよい。 Further, in the second embodiment (FIG. 7) and the second example (FIG. 13) of the third embodiment, all of the plurality of systems (channels) may be diagnosed, and the interruption circuit 105 of the plurality of systems may be diagnosed. It is possible to diagnose only the system which interrupted a part of communication by.

さらに、本発明は上述した各実施形態に限られるものではなく、特許請求の範囲に記載した本発明の要旨を逸脱しない限りにおいて、その他種々の応用例、変形例を取り得ることは勿論である。 Furthermore, the present invention is not limited to the above-described embodiments, and it goes without saying that various other application examples and modifications can be taken as long as the gist of the present invention described in the claims is not deviated. ..

例えば、上述した実施形態は本発明を分かりやすく説明するために車両用電子制御装置の構成を詳細かつ具体的に説明したものであり、必ずしも説明した全ての構成要素を備えるものに限定されない。また、ある実施形態の構成の一部を他の実施形態の構成要素に置き換えることは可能である。また、ある実施形態の構成に他の実施形態の構成要素を加えることも可能である。また、各実施形態の構成の一部について、他の構成要素の追加、削除、置換をすることも可能である。 For example, the above-described embodiment describes the configuration of the electronic control device for a vehicle in detail and concretely in order to explain the present invention in an easy-to-understand manner, and is not necessarily limited to the one including all the components described. It is also possible to replace a part of the configuration of one embodiment with a component of another embodiment. It is also possible to add components of another embodiment to the configuration of one embodiment. It is also possible to add, delete, or replace other components with respect to a part of the configuration of each embodiment.

また、上記の各構成、機能、処理部等は、それらの一部又は全部を、例えば集積回路で設計するなどによりハードウェアで実現してもよい。また、上記の各構成要素、機能等は、プロセッサがそれぞれの機能を実現するプログラムを解釈し、実行することによりソフトウェアで実現してもよい。各機能を実現するプログラム、テーブル、ファイル等の情報は、半導体メモリ、SSD(Solid State Drive)等の記録装置、又はICカード、SDカード等の記録媒体に置くことができる。 In addition, each of the above configurations, functions, processing units, and the like may be realized by hardware, for example, by designing a part or all of them with an integrated circuit. Further, each of the above-mentioned components, functions, and the like may be realized by software by the processor interpreting and executing a program that realizes each function. Information such as programs, tables, and files that realize each function can be placed in a semiconductor memory, a recording device such as an SSD (Solid State Drive), or a recording medium such as an IC card or an SD card.

また、本明細書において、時系列的な処理を記述する処理ステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理(例えば、並列処理あるいはオブジェクトによる処理)をも含むものである。 Further, in the present specification, the processing steps for describing the time-series processing are not necessarily the processing performed in the time-series according to the described order, but are parallel or individual. It also includes processing executed in (for example, parallel processing or processing by an object).

1A〜1C…ECU、 2…マイクロコンピュータ(マイコン)、 3…サブマイコン、 4…トランシーバ、 5…遮断回路、 6…通信切替回路、 9,9a〜9d…伝送路、 20,20a〜20d…コントローラ、 28…通信回路、 31…診断部、 32…診断前処理部、 33…切替信号出力部、 34…フェールセーフ処理部、 101A〜101I…ECU、 102…マイコン、 103…サブマイコン、 104a〜104d…トランシーバ(ch1〜ch4)、 105…遮断回路、 106a〜106d…通信切替回路、 109…内部伝送路、 M,M1〜M4…診断用メッセージ、 S1,S2…診断用リレー信号、 TX,TX1〜TX4…送信端子、 RX,RX1〜RX4…受信端子 1A to 1C ... ECU, 2 ... Microcomputer (microcomputer), 3 ... Submicrocomputer, 4 ... Transceiver, 5 ... Break circuit, 6 ... Communication switching circuit, 9,9a to 9d ... Transmission line, 20,20a to 20d ... Controller , 28 ... Communication circuit, 31 ... Diagnosis unit, 32 ... Diagnosis pre-processing unit, 33 ... Switching signal output unit, 34 ... Fail-safe processing unit, 101A-101I ... ECU, 102 ... Microcomputer, 103 ... Sub-microcomputer, 104a-104d ... Transceiver (ch1 to ch4), 105 ... Break circuit, 106a to 106d ... Communication switching circuit, 109 ... Internal transmission line, M, M1 to M4 ... Diagnostic message, S1, S2 ... Diagnostic relay signal, TX, TX1 to TX4 ... Transmit terminal, RX, RX1-RX4 ... Receive terminal

Claims (8)

車両用通信ネットワークを利用して制御対象の動作を制御する車両用電子制御装置であって、
前記車両用通信ネットワークを構成する伝送路に対してデータ信号を送受信するトランシーバと、
前記トランシーバとデータ信号の送受信を行うマイクロコンピュータと、
前記トランシーバと前記伝送路との間に設けられ、前記伝送路との通信を遮断する通信遮断状態又は前記伝送路との通信を可能にする通信接続状態に切り替わる遮断回路と、を備え、
前記マイクロコンピュータは、前記遮断回路を前記通信遮断状態に切り替えて前記トランシーバを診断する
車両用電子制御装置。
An electronic control device for vehicles that controls the operation of a controlled object using a communication network for vehicles.
A transceiver that sends and receives data signals to and from the transmission lines that make up the vehicle communication network.
A microcomputer that sends and receives data signals to and from the transceiver,
A break circuit provided between the transceiver and the transmission line and switched to a communication cutoff state for cutting off communication with the transmission line or a communication connection state for enabling communication with the transmission line is provided.
The microcomputer is an electronic control device for a vehicle that diagnoses the transceiver by switching the interruption circuit to the communication interruption state.
前記マイクロコンピュータは、前記遮断回路が前記通信遮断状態において、前記トランシーバを介して前記遮断回路へ診断用信号を出力し、
前記遮断回路は、前記トランシーバを介して入力された前記診断用信号に対する返信信号を前記トランシーバへ出力し、
前記マイクロコンピュータは、前記トランシーバを介して前記返信信号を受信し、前記診断用信号と前記返信信号を比較した結果に基づいて、前記トランシーバを診断する
請求項1に記載の車両用電子制御装置。
The microcomputer outputs a diagnostic signal to the break circuit via the transceiver when the break circuit is in the communication cut state.
The break circuit outputs a reply signal to the diagnostic signal input via the transceiver to the transceiver.
The electronic control device for a vehicle according to claim 1, wherein the microcomputer receives the reply signal via the transceiver and diagnoses the transceiver based on the result of comparing the diagnostic signal with the reply signal.
前記マイクロコンピュータは、前記通信遮断状態又は前記通信接続状態への切り替えを指示する切替信号を前記遮断回路へ出力し、
前記遮断回路は、前記切替信号に応じて前記通信遮断状態又は前記通信接続状態に切り替わり、前記通信遮断状態又は前記通信接続状態を示す状態信号を前記マイクロコンピュータへ出力する処理を行う
請求項2に記載の車両用電子制御装置。
The microcomputer outputs a switching signal instructing switching to the communication cutoff state or the communication connection state to the cutoff circuit.
According to claim 2, the cutoff circuit switches to the communication cutoff state or the communication connection state according to the switching signal, and outputs a state signal indicating the communication cutoff state or the communication connection state to the microcomputer. The vehicle electronic control device described.
前記トランシーバとして、前記車両用通信ネットワークを構成する複数の前記伝送路のそれぞれに対応して設けられた複数の前記トランシーバを備え、
前記遮断回路は、前記通信遮断状態において複数の前記トランシーバを相互に通信可能に接続し、複数の前記トランシーバが接続された状態で、一つの前記トランシーバから前記診断用信号を受信した場合に、前記診断用信号に対する前記返信信号を、前記診断用信号を出力した前記トランシーバと他の前記トランシーバへ出力する処理を行う
請求項2又は3のいずれか一項に記載の車両用電子制御装置。
As the transceiver, a plurality of the transceivers provided corresponding to each of the plurality of transmission lines constituting the vehicle communication network are provided.
The break circuit connects a plurality of the transceivers to each other in a communication cutoff state, and receives the diagnostic signal from one of the transceivers in a state where the plurality of transceivers are connected. The electronic control device for a vehicle according to any one of claims 2 or 3, wherein the reply signal to the diagnostic signal is output to the transceiver that outputs the diagnostic signal and the other transceiver.
前記マイクロコンピュータは、前記診断用信号を複数の前記トランシーバへ順に出力し、前記診断用信号を出力した前記トランシーバと他の前記トランシーバからの前記返信信号の受信状況に基づいて、複数の前記トランシーバを診断する
請求項4に記載の車両用電子制御装置。
The microcomputer outputs the diagnostic signal to the plurality of transceivers in order, and based on the reception status of the reply signal from the transceiver and the other transceivers that output the diagnostic signal, the plurality of the transceivers. The electronic control device for a vehicle according to claim 4 for diagnosis.
前記マイクロコンピュータは、複数の前記トランシーバを故障しにくい順に診断する
請求項5に記載の車両用電子制御装置。
The electronic control device for a vehicle according to claim 5, wherein the microcomputer diagnoses a plurality of the transceivers in order of resistance to failure.
前記遮断回路は、複数の前記トランシーバと複数の前記伝送路との間に、前記切替信号に応じて前記通信遮断状態又は前記通信接続状態に切り替わるとともに、前記通信遮断状態において複数の前記トランシーバを相互に通信可能に接続するように構成された複数の通信切替回路を備え、
前記マイクロコンピュータは、前記遮断回路に前記切替信号を出力して複数の前記通信切替回路を前記通信遮断状態にし、複数の前記トランシーバが接続された状態で、一つの前記トランシーバを介して一つの前記通信切替回路に前記診断用信号を出力し、
前記診断用信号を受信した前記通信切替回路が、前記診断用信号を他の前記通信切替回路へ転送する処理を行い、複数の前記通信切替回路の各々は、前記診断用信号に対する前記返信信号を、対応する複数の前記トランシーバの各々へ出力し、
前記マイクロコンピュータは、前記診断用信号を出力した前記トランシーバと他の前記トランシーバからの前記返信信号の受信状況に基づいて、複数の前記トランシーバを診断する
請求項4乃至6のいずれか一項に記載の車両用電子制御装置。
The break circuit switches between the plurality of transceivers and the plurality of transmission lines in the communication cutoff state or the communication connection state according to the switching signal, and in the communication cutoff state, the plurality of transceivers are mutually switched. Equipped with multiple communication switching circuits configured to connect communicably to
The microcomputer outputs the switching signal to the cutoff circuit to put the plurality of the communication switching circuits into the communication cutoff state, and in a state where the plurality of the transceivers are connected, one said one via one said transceiver. The diagnostic signal is output to the communication switching circuit,
The communication switching circuit that has received the diagnostic signal performs a process of transferring the diagnostic signal to the other communication switching circuit, and each of the plurality of communication switching circuits sends the reply signal to the diagnostic signal. , Output to each of the corresponding plurality of transceivers,
The invention according to any one of claims 4 to 6, wherein the microcomputer diagnoses a plurality of the transceivers based on the reception status of the transceiver that outputs the diagnostic signal and the reply signal from the other transceivers. Electronic control device for vehicles.
前記マイクロコンピュータとして、第1のマイクロコンピュータと、前記第1のマイクロコンピュータを監視する第2のマイクロコンピュータと、を有し、
前記第1のマイクロコンピュータ又は前記第2のマイクロコンピュータは、前記遮断回路に前記切替信号を出力して、前記遮断回路から前記状態信号を受信し、
前記第1のマイクロコンピュータが、前記診断用信号の出力及び前記返信信号の受信を行い、前記トランシーバを診断する
請求項3に記載の車両用電子制御装置。
The microcomputer includes a first microcomputer and a second microcomputer that monitors the first microcomputer.
The first microcomputer or the second microcomputer outputs the switching signal to the breaking circuit and receives the state signal from the breaking circuit.
The electronic control device for a vehicle according to claim 3, wherein the first microcomputer outputs the diagnostic signal and receives the reply signal to diagnose the transceiver.
JP2019127563A 2019-07-09 2019-07-09 Electronic control device for vehicle Pending JP2021013135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019127563A JP2021013135A (en) 2019-07-09 2019-07-09 Electronic control device for vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019127563A JP2021013135A (en) 2019-07-09 2019-07-09 Electronic control device for vehicle

Publications (1)

Publication Number Publication Date
JP2021013135A true JP2021013135A (en) 2021-02-04

Family

ID=74226914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019127563A Pending JP2021013135A (en) 2019-07-09 2019-07-09 Electronic control device for vehicle

Country Status (1)

Country Link
JP (1) JP2021013135A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023106091A1 (en) * 2021-12-09 2023-06-15 株式会社オートネットワーク技術研究所 On-board device, connection switching method, and connection switching program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023106091A1 (en) * 2021-12-09 2023-06-15 株式会社オートネットワーク技術研究所 On-board device, connection switching method, and connection switching program

Similar Documents

Publication Publication Date Title
JP6714611B2 (en) Method and apparatus for providing redundancy in a vehicle electronic control system
CN105745871B (en) Vehicle having an ethernet bus system and method for operating such a bus system
JP5283651B2 (en) Control device for vehicle
US8930036B2 (en) Reconfigurable interface-based electrical architecture
CN111971934B (en) Gateway device
CN107229534A (en) Mix dual duplexed failure mode of operation and the general introduction to any number of failure
JP4572730B2 (en) Vehicle USB system and in-vehicle wireless communication device
KR20060084639A (en) A transfer communication system of unity control unit and method thereof
JP2007139478A (en) Vehicle diagnosis device and vehicle diagnosis system
EP3968574B1 (en) Processing device, communication system, and non-transitory storage medium
JP2021013135A (en) Electronic control device for vehicle
WO2011034052A1 (en) Vehicle electronic control device
JP2022108108A (en) Electronic control device for vehicle
EP1359057B1 (en) Vehicle data transmission system with link redundancy
US11482060B2 (en) Method for diagnosing a slave computer communicating with a master computer
JP3716796B2 (en) Fault diagnosis device for vehicles
CN115441896A (en) Transceiver device
JP4661624B2 (en) Fault diagnosis apparatus and program
JP2004318498A (en) Fail-safe system
KR101006680B1 (en) Apparatus for mornitoring transmission controll unit
WO2020255787A1 (en) Control device and control method
JP2017114406A (en) Network system
WO2022201596A1 (en) In-vehicle control device
JP2013107602A (en) Vehicle control device
JP2003140704A (en) Process controller