Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5299261B2 - Electronic control unit - Google Patents
[go: Go Back, main page]

JP5299261B2 - Electronic control unit - Google Patents

Electronic control unit Download PDF

Info

Publication number
JP5299261B2
JP5299261B2 JP2009292493A JP2009292493A JP5299261B2 JP 5299261 B2 JP5299261 B2 JP 5299261B2 JP 2009292493 A JP2009292493 A JP 2009292493A JP 2009292493 A JP2009292493 A JP 2009292493A JP 5299261 B2 JP5299261 B2 JP 5299261B2
Authority
JP
Japan
Prior art keywords
controller
microcomputer
signal
communication bus
reception
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.)
Active
Application number
JP2009292493A
Other languages
Japanese (ja)
Other versions
JP2011131713A (en
Inventor
有里 村田
友久 岸上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2009292493A priority Critical patent/JP5299261B2/en
Publication of JP2011131713A publication Critical patent/JP2011131713A/en
Application granted granted Critical
Publication of JP5299261B2 publication Critical patent/JP5299261B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technology capable of quickly returning to receiving processing even if a receiving controller detects a receiving error by preventing the transmission/reception of an ACK slot from being performed between controllers in an own device. <P>SOLUTION: A received signal supplied from a receiver 62 of a transceiver 60 and a control signal outputted from a transmitting terminal Tx of a CAN controller 34 are inputted to a receiving terminal Rx of the CAN controller 34 at the sub-control microcomputer 30 side by being synthesized by an AND gate 70 so that a low level of the respective signals becomes a preferential level. On the other hand, the received signal supplied from the receiver 62 of the transceiver 60 is directly inputted to the receiving terminal Rx of the CAN controller 24 at the main control microcomputer 20 side. Thus, when the ACK slot and an error plug (signal of low level) are outputted from the transmitting terminal Tx of the CAN controller 34, these signals are preferentially inputted to the receiving terminal RX of the CAN controller 34. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、CANプロトコルによる通信を行う電子制御装置に関する。   The present invention relates to an electronic control device that performs communication using a CAN protocol.

従来より、自動車には、車載機器を制御するために多数の電子制御装置(所謂ECU)が搭載されており、これら各電子制御装置は、制御データを共有したり車両を統合制御したりするために、通信バスを介して互いにデータ通信可能に接続されている。そして、そのデータ通信には、CAN(ドイツ、Robert Bosch社が提案した「Controller Area Network 」)プロトコルが代表的に用いられている。   Conventionally, automobiles have been equipped with a large number of electronic control devices (so-called ECUs) for controlling in-vehicle devices, and these electronic control devices share control data and perform integrated control of vehicles. Further, they are connected to each other via a communication bus so as to be able to perform data communication. For the data communication, a CAN ("Controller Area Network" proposed by Robert Bosch, Germany) protocol is typically used.

また、車両に搭載される電子制御装置の数は、車載機器の高機能化、安全性向上のために増加しつつあり、通信バスに接続される電子制御装置の数も増加しているが、通信バスへの電子制御装置の接続数が増えると、通信配線経路が長くなることから、通信品質を確保するための経路設計が複雑になり、また、通信品質を確保するのも難しくなる。   In addition, the number of electronic control devices mounted on the vehicle is increasing for higher functionality and safety improvement of in-vehicle devices, and the number of electronic control devices connected to the communication bus is also increasing. When the number of electronic control devices connected to the communication bus increases, the communication wiring route becomes longer, so that the route design for ensuring the communication quality becomes complicated, and it becomes difficult to ensure the communication quality.

このため、近年では、車両に搭載する電子制御装置の数を減らすために、従来複数の電子制御装置で実現されていた機能を、一つの電子制御装置に集約することが考えられている。   For this reason, in recent years, in order to reduce the number of electronic control devices mounted on a vehicle, it has been considered to consolidate functions that have been realized by a plurality of electronic control devices in one electronic control device.

ところで、一つの電子制御装置に各種機能を集約する場合、その機能の全てを実現可能なマイクロコンピュータ(マイコン)を新たに設計するようにすると、単に設計(詳しくはソフトウェアの開発)のコストがかかるだけでなく、マイコンの処理負荷が大幅に増大するため、マイコンを、従来のものよりも高速処理可能なものにて構成しなければならない。さらには、処理負荷の増大に伴いマイコンの消費電力が増加するので、放熱対策等の新たな対策も必要になる。   By the way, when various functions are integrated into one electronic control device, if a microcomputer that can realize all of the functions is newly designed, the cost of design (specifically, software development) is simply increased. In addition, since the processing load of the microcomputer is greatly increased, it is necessary to configure the microcomputer so that it can process at a higher speed than the conventional one. Furthermore, since the power consumption of the microcomputer increases as the processing load increases, new measures such as heat dissipation measures are also required.

このため、従来複数の電子制御装置で実現されていた機能を、一つの電子制御装置に集約する際には、多機能のマイコンを新たに設計するのではなく、従来電子制御装置毎に組み込まれた複数のマイコンを、一つの電子制御装置に組み込むようにするとよい。   For this reason, when integrating functions that have been realized by multiple electronic control units in the past into a single electronic control unit, a multi-function microcomputer is not newly designed, but is incorporated into each conventional electronic control unit. It is preferable to incorporate a plurality of microcomputers into one electronic control device.

一方、このように一つの電子制御装置に複数の既存のマイコンを組み込んだ場合、各マイコンは通信機能を有することから、この電子制御装置を、1系統の通信ラインで通信バスに接続できるようにする必要がある。   On the other hand, when a plurality of existing microcomputers are incorporated into one electronic control device in this way, each microcomputer has a communication function, so that this electronic control device can be connected to a communication bus through a single communication line. There is a need to.

そして、このためには、通信バスを介して他の電子制御装置(外部装置)との間で制御データ(制御信号)を送受信する信号変換回路(トランシーバ)を複数のマイコン間で共用できるようにすればよく、そのためには、トランシーバによって通信バスから取り込んだ伝送信号を各マイコンに分配するとよい(例えば、特許文献1参照)。   For this purpose, a signal conversion circuit (transceiver) that transmits and receives control data (control signals) to and from other electronic control devices (external devices) via a communication bus can be shared among a plurality of microcomputers. For this purpose, the transmission signal taken from the communication bus by the transceiver may be distributed to each microcomputer (for example, see Patent Document 1).

特開2007−245891号公報JP 2007-245891 A

しかし、特許文献1に記載の電子制御装置では、複数のマイコン(詳しくはコントローラ)のそれぞれが通信バスを介して制御データを送受信可能に配線されているため、同じ電子制御装置内のあるマイコンAの送信データを別のマイコンBが通信バスを介して正常に受信できた場合、その確認応答がマイコンBから通信バスを介してマイコンAに送信されてしまうという問題があった(図7参照)。   However, in the electronic control device described in Patent Document 1, each of a plurality of microcomputers (specifically, controllers) is wired so that control data can be transmitted and received via a communication bus. When another microcomputer B can normally receive the transmitted data via the communication bus, the confirmation response is transmitted from the microcomputer B to the microcomputer A via the communication bus (see FIG. 7). .

具体的に言うと、CANプロトコルでは、受信ノードが上記の確認応答として、通信バスの優勢レベル(ドミナント)をACK(Acknowledgement)スロットのタイミングで送信ノードに送信するように規定されている。また、このACKスロットは、1ビット長の使用に限定されているため、通信バス上の全ての受信ノードが正常に受信できたかどうかの判断には使用できず、あくまでも、正常に受信できた受信ノードが存在するかどうかの判断材料にしかならない。   Specifically, the CAN protocol stipulates that the receiving node transmits the dominant level (dominant) of the communication bus to the transmitting node at the timing of an ACK (Acknowledgement) slot as the above-described acknowledgment. In addition, since this ACK slot is limited to the use of 1 bit length, it cannot be used to determine whether or not all receiving nodes on the communication bus have received normally, and reception that has been successfully received is only possible. It can only be used to determine whether a node exists.

このため、上記のように同じ電子制御装置内でACKスロットの送受信が行われてしまうと、送信ノードが通信バス上の外部装置から確認応答を受け取る機会を逸してしまうことになり、ACKスロットを、送信データを正常に受信できた外部装置が存在するかどうかの判断材料として用いることができないという問題があった。   For this reason, if transmission / reception of an ACK slot is performed within the same electronic control unit as described above, the transmission node will miss the opportunity to receive an acknowledgment from an external device on the communication bus, and There is a problem that it cannot be used as a material for determining whether or not there is an external device that can normally receive transmission data.

そこで、上記のマイコンAを、通信バスを介して外部装置に制御データを送信する唯一の主制御マイコンとして、上記のマイコンBを、受信用マイコンとしてそれぞれ用いると共に、受信用マイコン側のコントローラの送信用端子を開放することにより、同じ電子制御装置内におけるACKスロットの送受信を禁止することが考えられる(図8参照)。   Therefore, the microcomputer A is used as the only main control microcomputer that transmits control data to the external device via the communication bus, and the microcomputer B is used as the receiving microcomputer. It may be possible to prohibit transmission / reception of an ACK slot in the same electronic control device by opening the trusted terminal (see FIG. 8).

しかし、このように構成された電子制御装置(以下、ACK対応ECUという)では、受信用マイコン側のコントローラの送信用端子が開放されていることによって、このコントローラが、受信エラーを検出した場合に、6ビット長のドミナントからなるエラーフラグを送信するエラー処理を繰り返してしまうという問題がある。   However, in the electronic control device configured as described above (hereinafter referred to as ACK-compatible ECU), when the transmission terminal of the controller on the reception microcomputer side is opened, this controller detects a reception error. There is a problem that error processing for transmitting an error flag composed of a dominant of 6 bits is repeated.

つまり、受信用マイコン側のコントローラは、自身のエラー処理によるエラーフラグが通信バス上に反映されないため、通信バスから受信用端子を介して検出する制御データにリセッシブ(通信バス上の劣勢レベル)が含まれていると、その制御データとエラーフラグとの整合がとれなくなり、これにより送信エラーを検出して、再びエラー処理を開始してしまうのである(図9参照)。   In other words, the controller on the receiving microcomputer side does not reflect the error flag due to its own error processing on the communication bus, so the control data detected from the communication bus via the receiving terminal has a recessive (inferior level on the communication bus). If it is included, the control data and the error flag cannot be matched, thereby detecting a transmission error and starting error processing again (see FIG. 9).

その結果、従来のACK対応ECUでは、受信用マイコン側のコントローラが、エラー処理を繰り返すことにより、通信バス上の制御信号をこのマイコン内のCPUに受け渡す受信処理に復帰できず、外部装置からの制御データを受信できない期間が増大してしまう可能性があるという問題があった。   As a result, in the conventional ACK-compatible ECU, the controller on the receiving microcomputer side cannot return to the receiving process of transferring the control signal on the communication bus to the CPU in the microcomputer by repeating the error process, and from the external device There is a problem that the period during which the control data cannot be received may increase.

本発明は、上記問題点を解決するために、ACKスロットの送受信が自装置内のコントローラ間で行われることを防止すると共に、受信用コントローラが受信エラーを検出しても受信処理に早急に復帰することが可能な技術を提供することを目的とする。   In order to solve the above problems, the present invention prevents the transmission / reception of ACK slots from being performed between the controllers in its own device, and quickly returns to the reception process even if the reception controller detects a reception error. It aims at providing the technology which can be done.

上記目的を達成するためになされた第1発明である請求項1に記載の電子制御装置は、CANプロトコルによる通信を行うための送信用端子および受信用端子が設けられたコントローラを有する複数のマイコンを備え、これら複数のマイコンのうち、一つ(唯一)のマイコンを、外部の通信バスを介して他の電子制御装置に制御データを送信する主制御マイコン、該主制御マイコン以外の一ないし複数のマイコンを、受信用マイコンとして用いるように構成されている。   The electronic control device according to claim 1, which is the first invention made to achieve the above object, includes a plurality of microcomputers having a controller provided with a transmission terminal and a reception terminal for performing communication according to the CAN protocol. A main control microcomputer that transmits control data to another electronic control device via an external communication bus, and one or more of the microcomputers other than the main control microcomputer. This microcomputer is configured to be used as a receiving microcomputer.

また、本発明の電子制御装置は、主制御マイコンのコントローラの送信用端子から出力される制御信号を通信バスに送信するドライバと、その通信バスに流れる伝送信号を複数のマイコンが有する各コントローラに供給するレシーバとを有する一つのトランシーバを備えている。   In addition, the electronic control device of the present invention provides a driver for transmitting a control signal output from the transmission terminal of the controller of the main control microcomputer to the communication bus, and a transmission signal flowing through the communication bus to each controller included in the plurality of microcomputers. A transceiver having a receiving receiver.

ここで、本発明の電子制御装置において、信号合成手段が、レシーバから供給される伝送信号と、受信用マイコン側のコントローラの送信用端子から出力される送信信号とを、通信バスの優勢レベルに対応した信号レベルが優先レベルとなるように合成し、その合成した信号(合成信号)を当該受信用マイコンのコントローラの受信用端子に供給する。   Here, in the electronic control device of the present invention, the signal synthesis means sets the transmission signal supplied from the receiver and the transmission signal output from the transmission terminal of the controller on the receiving microcomputer side to the dominant level of the communication bus. The corresponding signal levels are combined so as to become the priority level, and the combined signal (synthesized signal) is supplied to the receiving terminal of the controller of the receiving microcomputer.

このように構成された電子制御装置では、受信用マイコンのコントローラの送信用端子から出力される送信信号が、信号合成手段を介して合成された後、当該受信用マイコンのコントローラの受信用端子に入力されるため、受信用マイコンのコントローラが、送信信号としてACKスロットを出力しても、そのコントローラ自身に入力され、電子制御装置内の他のマイコンにそのACKスロットが入力されない。   In the electronic control device configured as described above, after the transmission signal output from the transmission terminal of the controller of the receiving microcomputer is synthesized through the signal synthesizing means, the signal is sent to the receiving terminal of the controller of the receiving microcomputer. Therefore, even if the controller of the receiving microcomputer outputs an ACK slot as a transmission signal, it is input to the controller itself, and the ACK slot is not input to other microcomputers in the electronic control unit.

なお、複数のマイコンが有する各コントローラは、CANプロトコルに従って通信を行う既存の構成を有するため、他の電子制御装置(外部装置)に制御データを送信する期間を除いては、通信バスの非優勢レベル(劣勢レベル)に対応した信号レベルを送信信号として、自コントローラの送信用端子から出力する。   In addition, since each controller which a some microcomputer has has the existing structure which communicates according to CAN protocol, except for the period which transmits control data to another electronic control unit (external device), non-dominance of a communication bus A signal level corresponding to the level (inferior level) is output as a transmission signal from the transmission terminal of the own controller.

これにより、受信用マイコンのコントローラは、レシーバから供給される伝送信号が、劣勢レベル(リセッシブ)を示す場合には、合成信号として非優先レベルに対応する信号を受信し、優勢レベル(ドミナント)を示す場合には合成信号として優先レベルに対応するドミナントを受信するため、外部装置から通信バスを介して制御データを正しく受信することができる。   As a result, when the transmission signal supplied from the receiver indicates an inferior level (recessive), the receiving microcomputer controller receives a signal corresponding to the non-priority level as a composite signal and sets the dominant level (dominant). In the case shown, since the dominant corresponding to the priority level is received as the synthesized signal, the control data can be correctly received from the external device via the communication bus.

また、受信用マイコンのコントローラは、例えば一時的なノイズを起因とする受信エラーを検出した場合などに、6ビット長のドミナントからなるエラーフラグを、自コントローラの送信用端子から出力する時にも、合成信号として優先レベルに対応する6ビット長のドミナントを入力するため、エラーフラグを送信する際に送信エラーを検出せずに済み、エラー処理を確実に終了させることができる。   In addition, the controller of the reception microcomputer, for example, when detecting a reception error due to temporary noise, also outputs an error flag consisting of a 6-bit dominant from the transmission terminal of its own controller, Since a 6-bit dominant corresponding to the priority level is input as the composite signal, it is not necessary to detect a transmission error when transmitting the error flag, and the error processing can be reliably terminated.

したがって、本発明の電子制御装置によれば、複数のマイコンのうち、一つのマイコンを、通信バスを介して外部装置に制御データを送信する主制御マイコンとし、他のマイコンを、受信用マイコンとして用いる構成を前提として、ACKスロットの送受信が自装置内のコントローラ間で行われることを防止すると共に、受信用マイコンのコントローラが受信エラーを検出しても受信処理に早急に復帰することができる。   Therefore, according to the electronic control device of the present invention, one of the plurality of microcomputers is a main control microcomputer that transmits control data to an external device via a communication bus, and the other microcomputer is a reception microcomputer. Assuming the configuration to be used, transmission / reception of the ACK slot is prevented from being performed between the controllers in its own apparatus, and even if the controller of the reception microcomputer detects a reception error, it can return to the reception process immediately.

また、本発明の電子制御装置では、信号合成手段が、請求項2に記載のように、受信用マイコンの内部に実装されてもよいし、請求項3に記載のように、トランシーバの内部に実装されてもよい。具体的には、信号合成手段に相当する回路を、コントローラと共に一つの集積回路として構成してもよいし、ドライバ及びレシーバと共に一つの集積回路として構成してもよい。   In the electronic control device of the present invention, the signal synthesizing means may be mounted in the receiving microcomputer as described in claim 2, or in the transceiver as described in claim 3. May be implemented. Specifically, the circuit corresponding to the signal synthesis means may be configured as one integrated circuit together with the controller, or may be configured as one integrated circuit together with the driver and the receiver.

これらの場合、マイコンとトランシーバとの間の配線や端子を削減して、電子制御装置の小型化・低コスト化を図ることができる。
ところで、第1発明の電子制御装置は、複数のマイコンを備えて構成されているが、複数のコントローラを有する一つのマイコンで構成されている場合にも、第1発明と同様の目的を達成することができる。
In these cases, it is possible to reduce the size and cost of the electronic control device by reducing the wiring and terminals between the microcomputer and the transceiver.
By the way, although the electronic control device of the first invention is configured to include a plurality of microcomputers, the same object as that of the first invention is achieved even when the electronic control device is configured by one microcomputer having a plurality of controllers. be able to.

即ち、第2発明の電子制御装置は、CANプロトコルによる通信を行うための送信用端子および受信用端子が設けられた複数のコントローラを有するマイコンを備え、これら複数のコントローラのうち、一つ(唯一)のコントローラを、外部の通信バスを介して他の電子制御装置に制御データを送信する主コントローラ、該主コントローラ以外の一ないし複数のコントローラを、受信用コントローラとして用いるように構成されている。   In other words, the electronic control device of the second invention includes a microcomputer having a plurality of controllers provided with a transmission terminal and a reception terminal for performing communication according to the CAN protocol. ) Is used as a main controller that transmits control data to another electronic control device via an external communication bus, and one or more controllers other than the main controller are used as receiving controllers.

また、第2発明の電子制御装置は、主コントローラの送信用端子から出力される制御信号を通信バスに送信するドライバと、その通信バスに流れる伝送信号を複数のコントローラに供給するレシーバとを有する一つのトランシーバを備えている。   According to a second aspect of the present invention, there is provided an electronic control device comprising: a driver that transmits a control signal output from a transmission terminal of the main controller to a communication bus; and a receiver that supplies a transmission signal flowing through the communication bus to a plurality of controllers. It has one transceiver.

ここで、第2発明の電子制御装置において、信号合成手段が、レシーバから供給される伝送信号と、受信用コントローラの送信用端子から出力される送信信号とを、通信バスの優勢レベルに対応した信号レベルが優先レベルとなるように合成し、その合成した信号(合成信号)を当該受信用コントローラの受信用端子に供給する。   Here, in the electronic control device according to the second aspect of the invention, the signal synthesizing unit corresponds the transmission signal supplied from the receiver and the transmission signal output from the transmission terminal of the reception controller to the dominant level of the communication bus. The signals are combined so that the signal level becomes the priority level, and the combined signal (synthesized signal) is supplied to the receiving terminal of the receiving controller.

したがって、第2発明の電子制御装置によれば、複数のコントローラのうち、一つのコントローラを、通信バスを介して外部装置に制御データを送信する主コントローラとし、他のマイコンを、受信用コントローラとして用いる構成を前提として、ACKスロットの送受信が自装置内のコントローラ間で行われることを防止すると共に、受信用コントローラが受信エラーを検出しても受信処理に早急に復帰することができる。   Therefore, according to the electronic control device of the second invention, one of the plurality of controllers is a main controller that transmits control data to an external device via a communication bus, and the other microcomputer is a reception controller. Assuming the configuration to be used, transmission / reception of the ACK slot is prevented from being performed between the controllers in the own apparatus, and even when the reception controller detects a reception error, it can return to the reception process immediately.

本発明が適用された電子制御装置の全体構成を表すブロック図である。It is a block diagram showing the whole structure of the electronic controller to which this invention was applied. 副制御マイコン側のCANコントローラの動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the CAN controller by the side of a sub control microcomputer. 本発明が適用された電子制御装置の変形例を示す第1の概略図である。It is the 1st schematic diagram showing the modification of the electronic control unit to which the present invention was applied. 本発明が適用された電子制御装置の変形例を示す第2の概略図である。It is a 2nd schematic diagram which shows the modification of the electronic controller to which this invention was applied. 本発明が適用された電子制御装置の変形例を示す第3の概略図である。It is the 3rd schematic diagram which shows the modification of the electronic controller to which this invention was applied. 本発明が適用された電子制御装置の変形例を示す第4の概略図である。It is the 4th schematic diagram showing the modification of the electronic control unit to which the present invention was applied. 従来の電子制御装置の全体構成を表す第1の概略図である。It is the 1st schematic showing the whole electronic control unit composition. 従来の電子制御装置の全体構成を表す第2の概略図である。It is the 2nd schematic diagram showing the whole electronic control unit composition. 従来の受信用マイコン側のCANコントローラの動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the CAN controller by the side of the conventional microcomputer for reception.

以下に、本発明の実施形態を図面と共に説明する。
<全体構成>
図1は、本発明が適用された電子制御装置(以下、単にECUという)の全体構成を表すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings.
<Overall configuration>
FIG. 1 is a block diagram showing an overall configuration of an electronic control device (hereinafter simply referred to as an ECU) to which the present invention is applied.

図1に示すように、ECU1は、自動車に搭載されて、エンジン等の所定の制御対象機器を制御するために用いられるものであり、他の車載機器を制御するECU2,3,…と共に通信バス10に接続され、この通信バス10を介して他のECU2,3,…との間でCANプロトコルによるデータ通信を行うことにより、制御対象機器に必要なデータを交換するように構成されている。なお、通信バス10は、CANプロトコルで使用されるCAN−Hライン及びCAN−Lラインからなる2線式通信ラインにて構成されている。   As shown in FIG. 1, the ECU 1 is mounted on an automobile and used to control a predetermined control target device such as an engine, and is a communication bus together with ECUs 2, 3,... That control other on-vehicle devices. 10 is configured to exchange data necessary for the control target device by performing data communication with the other ECUs 2, 3,... Via the communication bus 10 by the CAN protocol. The communication bus 10 is constituted by a two-wire communication line including a CAN-H line and a CAN-L line used in the CAN protocol.

また、本実施形態のECU1には、制御対象機器を制御するための制御回路として、主制御回路としてのマイクロコンピュータ(主制御マイコン)20と、主制御マイコン20からの指示に従い動作する副制御回路としてのマイクロコンピュータ(副制御マイコン)30とが設けられており、各制御マイコン20,30が内部バス11に接続されている。   Further, the ECU 1 of the present embodiment includes a microcomputer (main control microcomputer) 20 as a main control circuit and a sub control circuit that operates in accordance with instructions from the main control microcomputer 20 as control circuits for controlling the control target equipment. A microcomputer (sub-control microcomputer) 30 is provided, and the control microcomputers 20 and 30 are connected to the internal bus 11.

なお、ECU1には、各制御マイコン20,30に対して、制御対象機器の動作状態を検出する各種センサ・スイッチ類からの検出信号を入力するための入力回路21,31、及び、各制御マイコン20,30から出力された指令信号を、制御対象機器の各部に設けられた各種電気負荷(アクチュエータ等)に出力するための出力回路22,32が設けられている。   Note that the ECU 1 has input circuits 21 and 31 for inputting detection signals from various sensors and switches for detecting the operation state of the control target device to the control microcomputers 20 and 30, and the control microcomputers. Output circuits 22 and 32 are provided for outputting the command signals output from 20 and 30 to various electric loads (actuators and the like) provided in each part of the control target device.

各制御マイコン20,30は、入力回路21,31を介して入力されるセンサ・スイッチ類からの検出信号に基づき、制御対象機器を目標状態に制御するのに必要な各種電気負荷の制御量を演算し、その制御量に対応した指令信号を出力回路22,32に出力することにより、制御対象機器を制御する。   Each of the control microcomputers 20 and 30 determines the control amounts of various electric loads necessary to control the control target device to the target state based on the detection signals from the sensors and switches input via the input circuits 21 and 31. By calculating and outputting a command signal corresponding to the controlled variable to the output circuits 22 and 32, the control target device is controlled.

また、各制御マイコン20,30は、それぞれ、各種制御演算を行うCPU23,33、通信バス10を介して外部装置との間でCANプロトコルによるデータ通信を行うための通信制御回路(CANコントローラ)24,34を有して構成されている。   Each of the control microcomputers 20 and 30 includes a CPU 23 and 33 for performing various control calculations, and a communication control circuit (CAN controller) 24 for performing data communication with an external device via the communication bus 10 according to the CAN protocol. , 34.

なお、各制御マイコン20,30は、図示を省略するが、CPU23,33が実行する制御プログラムやそのプログラムの実行に必要なデータが記憶されたメモリや、入力回路21,31から各種検出信号を取り込むための入力インターフェース(I/O)、出力回路22,32に各種指令信号を出力するための出力インターフェース(I/O)等も備えている。   Although not shown in the drawings, the control microcomputers 20 and 30 receive various detection signals from a control program executed by the CPUs 23 and 33 and a memory storing data necessary for the execution of the programs and input circuits 21 and 31. An input interface (I / O) for capturing, an output interface (I / O) for outputting various command signals to the output circuits 22 and 32, and the like are also provided.

そして、主制御マイコン20は、CANコントローラ24を介して、他のECU2,3,…との間で制御データの送受信を行うと共に、内部バス11を介して、副制御マイコン30から制御データの送受信を行うことにより、各種制御データを取得し、制御量の演算等に利用するように構成されている。   The main control microcomputer 20 transmits / receives control data to / from other ECUs 2, 3,... Via the CAN controller 24, and transmits / receives control data from the sub-control microcomputer 30 via the internal bus 11. By performing the above, various control data are acquired and used for control amount calculation and the like.

また、副制御マイコン30は、CANコントローラ34を介して、他のECU2,3,…(及び主制御マイコン20)から制御データの受信を行うと共に、内部バス11を介して、主制御マイコン20との間で制御データを送受信することにより、各種制御データを取得し、制御量の演算等に利用するように構成されている。   The sub-control microcomputer 30 receives control data from the other ECUs 2, 3,... (And the main control microcomputer 20) via the CAN controller 34, and communicates with the main control microcomputer 20 via the internal bus 11. Various control data are acquired by transmitting / receiving control data between them, and are used for control amount calculation or the like.

つまり、主制御マイコン20は、通信バス10を介して外部装置との間で制御データを送受信可能な送受信用マイコンとして、副制御マイコン30は、通信バス10を介して外部装置(及び主制御マイコン20)から制御データを受信可能な受信用マイコンとして用いられている。   That is, the main control microcomputer 20 is a transmission / reception microcomputer capable of transmitting / receiving control data to / from an external device via the communication bus 10, and the sub-control microcomputer 30 is connected to the external device (and the main control microcomputer via the communication bus 10). 20) is used as a receiving microcomputer capable of receiving control data.

また、各CANコントローラ24,34としては、送信用端子Txと受信用端子Rxとを有し、CANプロトコルに従って、各種処理を行う周知の構成のものが用いられている。例えば、各CANコントローラ24,34は、CPU23,33にて生成された制御データに基づく信号を、送信用端子Txを介して出力する送信処理や、通信バス10に流れる伝送信号を、受信用端子Rxを介して入力してCPU23,33に供給する受信処理を行うものである。   Each of the CAN controllers 24 and 34 has a transmission terminal Tx and a reception terminal Rx, and has a known configuration that performs various processes according to the CAN protocol. For example, each of the CAN controllers 24 and 34 transmits a signal based on the control data generated by the CPUs 23 and 33 via the transmission terminal Tx, or transmits a transmission signal flowing through the communication bus 10 as a reception terminal. The receiving process is performed via Rx and supplied to the CPUs 23 and 33.

また、各CANコントローラ24,34は、受信用端子Rxを介して入力した信号に基づいて、ビットスタッフルール違反やCRCエラー等の受信エラーを検出した場合に、6ビット長からなるエラーフラグを、送信用端子Txを介して出力するエラー処理を行ったり、受信エラーが検出されなかった(データを正常に受信できた)場合に、1ビット長からなるACKスロットを、送信用端子Txを介して出力する確認処理を行ったりするものである。   Each CAN controller 24, 34, when detecting a reception error such as a bit stuff rule violation or a CRC error based on a signal input via the reception terminal Rx, displays an error flag having a 6-bit length, When error processing is performed via the transmission terminal Tx or when a reception error is not detected (data can be received normally), an ACK slot consisting of 1-bit length is transmitted via the transmission terminal Tx. The confirmation process to output is performed.

なお、エラーフラグ及びACKスロットは、通信バス10上の優勢レベル(ドミナント)に対応した信号レベルで出力される。そして、各CANコントローラ24,34は、これらの出力時に、受信用端子Rxを介して入力した信号から、通信バス10上の劣勢レベル(リセッシブ)に対応した信号レベルを検出すると、入力信号と出力信号とが一致しないことによる送信エラーを検出し、再びエラー処理を行うように構成されている。   The error flag and the ACK slot are output at a signal level corresponding to the dominant level (dominant) on the communication bus 10. When each of the CAN controllers 24 and 34 detects a signal level corresponding to the inferior level (recessive) on the communication bus 10 from the signal input via the reception terminal Rx at the time of these outputs, the input signal and the output A transmission error due to a mismatch with the signal is detected, and error processing is performed again.

また、ECU1には、通信バス10に接続されて外部からのサージの侵入を防止する保護回路40と、通信バス10から保護回路40を介して入力される信号の波形を整えるチョークコイル50と、各制御マイコン20,30とチョークコイル50との間の通信経路上に配置された信号変換回路(CANトランシーバ)60と、後述するANDゲート70(本発明の信号合成手段に相当する)とが設けられている。   Further, the ECU 1 includes a protection circuit 40 that is connected to the communication bus 10 and prevents external surges from entering, a choke coil 50 that adjusts the waveform of a signal input from the communication bus 10 via the protection circuit 40, A signal conversion circuit (CAN transceiver) 60 disposed on a communication path between the control microcomputers 20 and 30 and the choke coil 50 and an AND gate 70 (corresponding to the signal synthesis means of the present invention) described later are provided. It has been.

トランシーバ60は、主制御マイコン20側のCANコントローラ24の送信用端子Txから出力される送信信号を、チョークコイル50および保護回路40を介して通信バス10に出力するドライバ61と、通信バス10に流れる伝送信号を、チョークコイル50および保護回路40を介して取り込むレシーバ62とを有して構成されている。   The transceiver 60 outputs a transmission signal output from the transmission terminal Tx of the CAN controller 24 on the main control microcomputer 20 side to the communication bus 10 via the choke coil 50 and the protection circuit 40, and the communication bus 10 It has a receiver 62 that captures a flowing transmission signal through the choke coil 50 and the protection circuit 40.

なお、ドライバ61は、通信バス10のCAN−HラインとCAN−Lラインとの電圧差を変化させることによって、通信バス10上の優勢レベル(ドミナント)に対応する論理値0と、通信バス10上の劣勢レベル(リセッシブ)に対応する論理値1とからなる制御データを、外部装置に送信するように構成されている。   The driver 61 changes the voltage difference between the CAN-H line and the CAN-L line of the communication bus 10 to change the logical value 0 corresponding to the dominant level (dominant) on the communication bus 10 and the communication bus 10. Control data including a logical value 1 corresponding to the upper inferior level (recessive) is transmitted to an external device.

また、レシーバ62は、通信バス10のCAN−HラインとCAN−Lラインとの電圧差を検出することによって、通信バス10上のドミナントに対応するローレベルの信号(論理値0)と、通信バス10上のリセッシブに対応するハイレベルの信号(論理値1)とを生成し、その生成した信号を受信信号として、主制御マイコン20側のCANコントローラの受信用端子RxとANDゲート70とに出力するように構成されている。   The receiver 62 detects a voltage difference between the CAN-H line and the CAN-L line of the communication bus 10, thereby communicating with a low level signal (logic value 0) corresponding to a dominant on the communication bus 10. A high level signal (logical value 1) corresponding to recessive on the bus 10 is generated, and the generated signal is received as a reception signal to the reception terminal Rx and the AND gate 70 of the CAN controller on the main control microcomputer 20 side. It is configured to output.

ここで、ANDゲート70は、レシーバ62から供給される受信信号と、副制御マイコン30側のCANコントローラ34の送信用端子Txから出力される送信信号とを、各信号のローレベルが優先レベルとなるように合成し、その合成した信号(合成信号)を、CANコントローラ34の受信用端子Rxに出力するように構成されている。   Here, the AND gate 70 uses the reception signal supplied from the receiver 62 and the transmission signal output from the transmission terminal Tx of the CAN controller 34 on the sub-control microcomputer 30 side, with the low level of each signal as the priority level. And the synthesized signal (synthesized signal) is output to the receiving terminal Rx of the CAN controller 34.

つまり、ANDゲート70は、受信信号および送信信号が共にハイレベルの信号(論理値1)である場合に限り、ハイレベルの信号(論理値1)を合成信号としてCANコントローラ34の受信用端子Rxに出力し、受信信号または送信信号のいずれかがローレベルの信号(論理値0)であれば、ローレベルの信号(論理値0)を合成信号としてCANコントローラ34の受信用端子Rxに出力する。   That is, the AND gate 70 receives the reception terminal Rx of the CAN controller 34 using the high level signal (logic value 1) as a combined signal only when the reception signal and the transmission signal are both high level signals (logic value 1). If either the reception signal or the transmission signal is a low level signal (logic value 0), the low level signal (logic value 0) is output to the reception terminal Rx of the CAN controller 34 as a composite signal. .

<副制御マイコン側のCANコントローラの動作>
このように構成されたECU1では、CANコントローラ34の送信用端子Txからは、ACKスロットやエラーフラグ(ローレベルの信号)が出力される期間を除いて、ハイレベルの信号(論理値1)が出力される。そして、この状態において、レシーバ62から供給される受信信号が、ハイレベルの信号(論理値1)であれば、ANDゲート70で合成された後、ハイレベルの信号(論理値1)がCANコントローラ34の受信用端子Rxに入力され、ローレベルの信号(論理値0)であれば、ANDゲート70で合成された後、ローレベルの信号(論理値0)がCANコントローラ34の受信用端子Rxに入力される。
<Operation of CAN controller on sub-control microcomputer side>
In the ECU 1 configured as described above, a high level signal (logical value 1) is output from the transmission terminal Tx of the CAN controller 34 except for a period in which an ACK slot and an error flag (low level signal) are output. Is output. In this state, if the reception signal supplied from the receiver 62 is a high level signal (logic value 1), after being synthesized by the AND gate 70, the high level signal (logic value 1) is converted into a CAN controller. 34, if the signal is a low level signal (logical value 0), after being synthesized by the AND gate 70, the low level signal (logical value 0) is received by the receiving terminal Rx of the CAN controller 34. Is input.

つまり、CANコントローラ34の受信用端子Rxには、CANコントローラ34の送信用端子Txからローレベルの信号(論理値0)が出力されない限り、レシーバ62およびANDゲート70を介して通信バス10の信号レベルが反映された信号が入力される。一方、主制御マイコン20側のCANコントローラ24の受信用端子Rxには、ANDゲート70を介することなくレシーバ62から通信バス10の信号レベルが反映された信号が直接入力される。   In other words, unless a low level signal (logical value 0) is output from the transmission terminal Tx of the CAN controller 34 to the reception terminal Rx of the CAN controller 34, the signal of the communication bus 10 via the receiver 62 and the AND gate 70. A signal reflecting the level is input. On the other hand, a signal reflecting the signal level of the communication bus 10 is directly input from the receiver 62 to the reception terminal Rx of the CAN controller 24 on the main control microcomputer 20 side without passing through the AND gate 70.

また、副制御マイコン30側のCANコントローラ34は、CANコントローラ34の受信用端子Rxに入力された受信信号について、CANプロトコルに従い、ビットスタッフルール違反やCRCエラー等の受信エラーがないかどうかをチェックする監視処理を行う。そして、監視処理にて受信エラーが検出されなかった場合、その受信信号に基づく制御データをCPU23,33に供給する受信処理を行うと共に、CANコントローラ34の送信用端子TxからACKスロットを出力する。   In addition, the CAN controller 34 on the sub-control microcomputer 30 side checks whether there is a reception error such as a bit stuff rule violation or a CRC error according to the CAN protocol for the reception signal input to the reception terminal Rx of the CAN controller 34. Perform monitoring processing. If a reception error is not detected in the monitoring process, a reception process for supplying control data based on the received signal to the CPUs 23 and 33 is performed, and an ACK slot is output from the transmission terminal Tx of the CAN controller 34.

即ち、副制御マイコン30側のCANコントローラ34が、通信バス10を介してECU2,3,…または主制御マイコン20から制御データを正常に受信できた場合に、ACKスロットとしてローレベルの信号が、当該CANコントローラ34の送信用端子Txから出力され、ANDゲート70で合成された後、ローレベルの信号が、CANコントローラ34の受信用端子Rxに入力される。   That is, when the CAN controller 34 on the sub-control microcomputer 30 side can normally receive control data from the ECU 2, 3,... Or the main control microcomputer 20 via the communication bus 10, a low-level signal as an ACK slot is After being output from the transmission terminal Tx of the CAN controller 34 and synthesized by the AND gate 70, a low level signal is input to the reception terminal Rx of the CAN controller 34.

一方、図2に示すように、副制御マイコン30側のCANコントローラ34が、監視処理にて受信エラーを検出すると、エラーフラグとして6ビット長のローレベルの信号が、CANコントローラ34の送信用端子Txから出力され、ANDゲート70で合成された後、6ビット長のローレベルの信号が、CANコントローラ34の受信用端子Rxに入力される。   On the other hand, as shown in FIG. 2, when the CAN controller 34 on the sub-control microcomputer 30 side detects a reception error in the monitoring process, a 6-bit low level signal is sent as an error flag to the transmission terminal of the CAN controller 34. After being output from Tx and synthesized by the AND gate 70, a 6-bit low level signal is input to the receiving terminal Rx of the CAN controller 34.

つまり、副制御マイコン30側のCANコントローラ34は、エラーフラグ(ローレベルの信号)を出力しても、ANDゲート70を介してCANコントローラ34の受信用端子Rxにローレベルの信号が優先的に入力されるため、これらの入力信号と出力信号とが一致することになる。このため、エラーフラグにエラーデリミタとして8ビット長のハイレベルの信号を加えたエラーフレームの出力を完了すると、監視処理を再開して受信処理に復帰することができる。   That is, even if the CAN controller 34 on the side of the sub-control microcomputer 30 outputs an error flag (low level signal), the low level signal is given priority to the receiving terminal Rx of the CAN controller 34 via the AND gate 70. Since these signals are input, these input signals and output signals match. For this reason, when the output of the error frame obtained by adding an 8-bit high level signal as an error delimiter to the error flag is completed, the monitoring process can be resumed to return to the reception process.

<本実施形態の効果>
以上説明したように、本実施形態のECU1には、主制御マイコン20と副制御マイコン30との二つのマイコンが設けられており、更に、通信バス10に接続された外部装置(ECU2,3,…)に対して、主制御マイコン20がデータの送受信を行い、副制御マイコン30がデータの受信を行うことができるように、トランシーバ60が設けられている。
<Effect of this embodiment>
As described above, the ECU 1 of the present embodiment is provided with two microcomputers, the main control microcomputer 20 and the sub-control microcomputer 30, and further external devices (ECUs 2, 3, ECUs) connected to the communication bus 10. ..)), A transceiver 60 is provided so that the main control microcomputer 20 can transmit and receive data and the sub-control microcomputer 30 can receive data.

そして、副制御マイコン30側のCANコントローラ34の受信用端子Rxには、トランシーバ60のレシーバ62から供給される受信信号と、副制御マイコン30側のCANコントローラ34の送信用端子Txから出力される制御信号とが、各信号のローレベルが優先レベルとなるようにANDゲート70で合成されて入力される。一方、主制御マイコン20側のCANコントローラ24の受信用端子Rxには、トランシーバ60のレシーバ62から供給される受信信号が直接入力される。   A reception signal supplied from the receiver 62 of the transceiver 60 and a transmission terminal Tx of the CAN controller 34 on the sub-control microcomputer 30 side are output to the reception terminal Rx of the CAN controller 34 on the sub-control microcomputer 30 side. The control signal is combined and input by the AND gate 70 so that the low level of each signal becomes the priority level. On the other hand, the reception signal supplied from the receiver 62 of the transceiver 60 is directly input to the reception terminal Rx of the CAN controller 24 on the main control microcomputer 20 side.

このため、本実施形態のECU1では、副制御マイコン30側のCANコントローラ34がACKスロットを出力しても、この出力信号が、CANコントローラ34自身に入力され、主制御マイコン20に入力されることがない。また、CANコントローラ34は、エラーフラグ(ローレベルの信号)を出力しても、この出力信号とCANコントローラ34への入力信号(合成信号)とが一致するため、エラーフラグの出力時に送信エラーを検出することがなく、エラー処理を確実に終了させることが可能になる。   Therefore, in the ECU 1 of this embodiment, even if the CAN controller 34 on the sub control microcomputer 30 side outputs the ACK slot, this output signal is input to the CAN controller 34 itself and input to the main control microcomputer 20. There is no. Even if the CAN controller 34 outputs an error flag (low level signal), the output signal and the input signal (composite signal) to the CAN controller 34 match, so a transmission error is output when the error flag is output. It is possible to reliably end error processing without detection.

したがって、本実施形態のECU1によれば、通信バス10を介して外部装置との間でデータを送受信する主制御マイコン20と受信用の副制御マイコン30との二つのマイコンを用いる構成を前提として、ACKスロットの送受信が自装置内のマイコン間で行われることを防止すると共に、副制御マイコン30側のCANコントローラ34が受信エラーを検出しても受信処理に早急に復帰することができる。   Therefore, according to the ECU 1 of the present embodiment, on the premise of a configuration using two microcomputers, that is, the main control microcomputer 20 that transmits / receives data to / from an external device via the communication bus 10 and the reception sub-control microcomputer 30. Thus, transmission / reception of the ACK slot is prevented from being performed between the microcomputers in the own apparatus, and even if the CAN controller 34 on the sub-control microcomputer 30 side detects a reception error, it can return to the reception process immediately.

また、本実施形態のECU1では、主制御マイコン20と副制御マイコン30とが協調して一つの制御対象機器を制御するため、各制御マイコン20,30が異なる制御対象機器を制御する場合と比較して、CPU23,33の処理負荷を軽減することができる。   Further, in the ECU 1 of the present embodiment, the main control microcomputer 20 and the sub control microcomputer 30 control one control target device in cooperation with each other, and therefore, compared with a case where each control microcomputer 20, 30 controls different control target devices. Thus, the processing load on the CPUs 23 and 33 can be reduced.

さらに、本実施形態のECU1では、ANDゲート70を増設する以外は、各CANコントローラ24,34やトランシーバ60といったCAN通信を行うための既存の構成が用いられるため、設計変更に伴うコストを抑制することができる。   Further, in the ECU 1 of the present embodiment, the existing configuration for performing CAN communication such as the CAN controllers 24 and 34 and the transceiver 60 is used except that the AND gate 70 is added. be able to.

[他の実施形態]
以上、本発明の実施形態について説明したが、本発明は上記実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において、様々な態様にて実施することが可能である。
[Other Embodiments]
As mentioned above, although embodiment of this invention was described, this invention is not limited to the said embodiment, In the range which does not deviate from the summary of this invention, it is possible to implement in various aspects.

例えば、上記実施形態のECU1には、主制御マイコン20と副制御マイコン30との二つのマイコンが設けられているが、副制御マイコン30は一つに限定されるものではなく、複数設けられてもよい。例えば、図3に示すように、ECU1が二つの副制御マイコン30を備えて構成される場合、各副制御マイコン30に対して、上記実施形態と同様にANDゲート70を配置させてもよい。   For example, the ECU 1 of the above embodiment is provided with two microcomputers, ie, the main control microcomputer 20 and the sub control microcomputer 30, but the sub control microcomputer 30 is not limited to one, and a plurality of microcomputers are provided. Also good. For example, as shown in FIG. 3, when the ECU 1 includes two sub-control microcomputers 30, an AND gate 70 may be arranged for each sub-control microcomputer 30 as in the above embodiment.

また、上記実施形態のECU1では、ANDゲート70が、副制御マイコン30およびトランシーバ60と別体に設けられているが、これに限定されずに、副制御マイコン30の内部に実装されてもよいし(図4参照)、トランシーバ60の内部に実装されてもよい(図5参照)。具体的には、ANDゲート70を、副制御マイコン30のCANコントローラ34およびCPU33と共に一つの集積回路として構成してもよいし、トランシーバ60のドライバ61およびレシーバ62と共に一つの集積回路として構成してもよい。   In the ECU 1 of the above embodiment, the AND gate 70 is provided separately from the sub-control microcomputer 30 and the transceiver 60. However, the present invention is not limited to this and may be mounted inside the sub-control microcomputer 30. However, it may be mounted inside the transceiver 60 (see FIG. 5). Specifically, the AND gate 70 may be configured as one integrated circuit together with the CAN controller 34 and the CPU 33 of the sub-control microcomputer 30, or may be configured as one integrated circuit together with the driver 61 and the receiver 62 of the transceiver 60. Also good.

これらの場合、副制御マイコン30とトランシーバ60との間の配線や端子を削減して、ECU1の小型化・低コスト化を図ることができる。
また、上記実施形態のECU1では、主制御マイコン20と副制御マイコン30とが協調して一つの制御対象機器を制御するように構成されているが、これに限らず、各制御マイコン20,30が異なる制御対象機器を制御するように構成されてもよい。なお、この場合、主制御マイコン20と副制御マイコン30とが、必ずしも内部バス11を介して接続されなくてよい。
In these cases, the wiring and terminals between the sub-control microcomputer 30 and the transceiver 60 can be reduced, and the ECU 1 can be reduced in size and cost.
Moreover, in ECU1 of the said embodiment, although the main control microcomputer 20 and the sub control microcomputer 30 are comprised so that one control object apparatus may be controlled in cooperation, not only this but each control microcomputer 20,30. May be configured to control different control target devices. In this case, the main control microcomputer 20 and the sub control microcomputer 30 do not necessarily have to be connected via the internal bus 11.

ところで、上記実施形態のECU1は、複数のマイコン20,30を備えて構成されているが、複数のコントローラを有する一つのマイコン20で構成されてもよい。例えば、図6に示すように、一つのマイコン20内における二つのCANコントローラのうち、一方のCANコントローラを、外部の通信バスを介して他のECU2,3に制御データを送信する主コントローラ24、他方のCANコントローラを受信用コントローラ34として用いるように構成する。なお、各CANコントローラ24,34は一つのCPU23に接続される。   By the way, although ECU1 of the said embodiment is comprised including the some microcomputers 20 and 30, you may be comprised by the one microcomputer 20 which has a some controller. For example, as shown in FIG. 6, a main controller 24 that transmits control data to one of the two CAN controllers in one microcomputer 20 to the other ECUs 2 and 3 via an external communication bus, The other CAN controller is configured to be used as the reception controller 34. Each CAN controller 24, 34 is connected to one CPU 23.

この場合、ANDゲート70は、レシーバ62から供給される受信信号と、受信用コントローラ34の送信用端子Txから出力される送信信号とを、各信号のローレベルが優先レベルとなるように合成し、その合成した信号(合成信号)を、受信用CANコントローラ34の受信用端子Rxに出力するように構成される。   In this case, the AND gate 70 combines the reception signal supplied from the receiver 62 and the transmission signal output from the transmission terminal Tx of the reception controller 34 so that the low level of each signal becomes the priority level. The synthesized signal (synthesized signal) is output to the receiving terminal Rx of the receiving CAN controller 34.

このように構成されたECU1によれば、一つのマイコン内に既存の複数のCANコントローラ24,34を集約して用いることができ、これにより、マイコン20の受信容量を増加させることができる。   According to the ECU 1 configured as described above, a plurality of existing CAN controllers 24 and 34 can be used together in one microcomputer, and thereby the reception capacity of the microcomputer 20 can be increased.

なお、上記実施形態のECU1は、自動車に搭載される電子制御装置であるものとして説明したが、これに限らず、CANプロトコルによる通信を行う電子制御装置であれば、どのようなものであっても適用できる。   In addition, although ECU1 of the said embodiment was demonstrated as what is an electronic control apparatus mounted in a motor vehicle, not only this but what kind of thing should just be an electronic control apparatus which performs communication by a CAN protocol. Is also applicable.

1…ECU、10…通信バス、20…主制御マイコン、24…CANコントローラ、30…副制御マイコン、34…CANコントローラ、60…トランシーバ、61…ドライバ、62…レシーバ、70…ANDゲート、Rx…受信用端子、Tx…送信用端子。   DESCRIPTION OF SYMBOLS 1 ... ECU, 10 ... Communication bus, 20 ... Main control microcomputer, 24 ... CAN controller, 30 ... Sub control microcomputer, 34 ... CAN controller, 60 ... Transceiver, 61 ... Driver, 62 ... Receiver, 70 ... AND gate, Rx ... Reception terminal, Tx: Transmission terminal.

Claims (4)

CANプロトコルによる通信を行うための送信用端子および受信用端子が設けられたコントローラを有する複数のマイコンと、
前記複数のマイコンのうち、外部の通信バスを介して他の電子制御装置に制御データを送信する唯一のマイコンを主制御マイコン、該主制御マイコン以外の一ないし複数のマイコンを受信用マイコンとして、
該主制御マイコンのコントローラの前記送信用端子から出力される送信信号を前記通信バスに出力するドライバと、該通信バスに流れる伝送信号を前記複数のマイコンが有する各コントローラに供給するレシーバとを有する一つのトランシーバと、
を備える電子制御装置において、
前記レシーバから供給される前記伝送信号と、前記受信用マイコンのコントローラの前記送信用端子から出力される送信信号とを、前記通信バスの優勢レベルに対応した信号レベルが優先レベルとなるように合成し、その合成した信号を該受信用マイコンのコントローラの前記受信用端子に供給する信号合成手段を備えたことを特徴とする電子制御装置。
A plurality of microcomputers having a controller provided with a transmission terminal and a reception terminal for performing communication according to the CAN protocol;
Among the plurality of microcomputers, the only microcomputer that transmits control data to another electronic control device via an external communication bus is a main control microcomputer, and one or more microcomputers other than the main control microcomputer are used as receiving microcomputers.
A driver for outputting a transmission signal output from the transmission terminal of the controller of the main control microcomputer to the communication bus; and a receiver for supplying a transmission signal flowing through the communication bus to each controller included in the plurality of microcomputers. One transceiver,
In an electronic control device comprising:
The transmission signal supplied from the receiver and the transmission signal output from the transmission terminal of the controller of the receiving microcomputer are combined so that a signal level corresponding to the dominant level of the communication bus becomes a priority level. And an electronic control unit comprising signal synthesis means for supplying the synthesized signal to the reception terminal of the controller of the reception microcomputer.
前記信号合成手段は、前記受信用マイコンの内部に実装されていることを特徴とする請求項1に記載の電子制御装置。   The electronic control device according to claim 1, wherein the signal synthesizing unit is mounted inside the receiving microcomputer. 前記信号合成手段は、前記トランシーバの内部に実装されていることを特徴とする請求項1に記載の電子制御装置。   The electronic control device according to claim 1, wherein the signal synthesizing unit is mounted inside the transceiver. CANプロトコルによる通信を行うための送信用端子および受信用端子が設けられた複数のコントローラを有するマイコンと、
前記複数のコントローラのうち、外部の通信バスを介して他の電子制御装置に制御データを送信する唯一のコントローラを主コントローラ、該主制御マイコン以外の一ないし複数のコントローラを受信用コントローラとして、
該主コントローラの前記送信用端子から出力される送信信号を前記通信バスに出力するドライバと、該通信バスに流れる伝送信号を前記複数のコントローラに供給するレシーバとを有する一つのトランシーバと、
を備える電子制御装置であって、
前記レシーバから供給される前記伝送信号と、前記受信用コントローラの前記送信用端子から出力される送信信号とを、前記通信バスの優勢レベルに対応した信号レベルが優先レベルとなるように合成し、その合成した信号を該受信用コントローラの前記受信用端子に供給する信号合成手段を備えたことを特徴とする電子制御装置。
A microcomputer having a plurality of controllers provided with a transmission terminal and a reception terminal for performing communication according to the CAN protocol;
Among the plurality of controllers, the only controller that transmits control data to another electronic control unit via an external communication bus is a main controller, and one or more controllers other than the main control microcomputer are used as receiving controllers.
A transceiver having a driver for outputting a transmission signal output from the transmission terminal of the main controller to the communication bus, and a receiver for supplying a transmission signal flowing through the communication bus to the plurality of controllers;
An electronic control device comprising:
The transmission signal supplied from the receiver and the transmission signal output from the transmission terminal of the reception controller are combined so that a signal level corresponding to the dominant level of the communication bus is a priority level, An electronic control device comprising signal synthesizing means for supplying the synthesized signal to the receiving terminal of the receiving controller.
JP2009292493A 2009-12-24 2009-12-24 Electronic control unit Active JP5299261B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009292493A JP5299261B2 (en) 2009-12-24 2009-12-24 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009292493A JP5299261B2 (en) 2009-12-24 2009-12-24 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2011131713A JP2011131713A (en) 2011-07-07
JP5299261B2 true JP5299261B2 (en) 2013-09-25

Family

ID=44344932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009292493A Active JP5299261B2 (en) 2009-12-24 2009-12-24 Electronic control unit

Country Status (1)

Country Link
JP (1) JP5299261B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5892391B2 (en) 2013-12-09 2016-03-23 株式会社デンソー Communication control method
JP6600542B2 (en) * 2015-11-27 2019-10-30 ボッシュ株式会社 Control apparatus and control method
JP6717104B2 (en) 2016-08-04 2020-07-01 株式会社デンソー Electronic control unit
CN218703089U (en) * 2022-07-31 2023-03-24 株式会社扩展商事 Start-stop control system based on automobile LIN bus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004172979A (en) * 2002-11-20 2004-06-17 Fujitsu Ten Ltd Method of driving can driver and drive control method
JP2007001360A (en) * 2005-06-22 2007-01-11 Auto Network Gijutsu Kenkyusho:Kk Electronic control unit backup system
JP4984582B2 (en) * 2006-03-15 2012-07-25 株式会社デンソー In-vehicle control device

Also Published As

Publication number Publication date
JP2011131713A (en) 2011-07-07

Similar Documents

Publication Publication Date Title
JP4788804B2 (en) Electronic control unit
JP4974706B2 (en) In-vehicle communication device and in-vehicle communication system
CN210120567U (en) Vehicle-mounted composite gateway and vehicle
US20120290753A1 (en) Connection method for bus controllers and communication system
WO2012018033A1 (en) Processing system, processing device and power supply control method
JP2014072673A (en) Relay device
JP5299261B2 (en) Electronic control unit
US7743273B2 (en) Serial communication system and method for transmitting and receiving data in synchronization with a clock signal
JP5192353B2 (en) Communication circuit, communication device, communication system, and communication device aggregation device
JP2007336267A (en) In-vehicle communication system
CN103116349A (en) Debug system, electronic control unit, information processing unit, semiconductor package, and transceiver circuit
US8605744B2 (en) Semiconductor integrated circuit device
US20180254918A1 (en) Vehicle electronic computer compatible with the can-fd communication protocol
JP4984582B2 (en) In-vehicle control device
JP6337783B2 (en) In-vehicle network system
CN107800599B (en) Vehicle control device
JP2011055112A (en) Communication system and communication device
JP2012114724A (en) Electronic control device
JP2009065412A (en) In-vehicle communication system
JP2006192970A (en) In-vehicle communication connection device and in-vehicle communication system
JP7410085B2 (en) Communication system and upper control device
JP2008135840A (en) Communication system and electronic control device
JP5434683B2 (en) CAN controller
JP2005335622A (en) In-vehicle device and communication device
JP2012054688A (en) On-vehicle communication system, input output device, and on-vehicle apparatus control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120210

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130510

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130521

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130603

R151 Written notification of patent or utility model registration

Ref document number: 5299261

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250