JP6010207B2 - Communications system - Google Patents

Communications system Download PDF

Info

Publication number
JP6010207B2
JP6010207B2 JP2015234141A JP2015234141A JP6010207B2 JP 6010207 B2 JP6010207 B2 JP 6010207B2 JP 2015234141 A JP2015234141 A JP 2015234141A JP 2015234141 A JP2015234141 A JP 2015234141A JP 6010207 B2 JP6010207 B2 JP 6010207B2
Authority
JP
Japan
Prior art keywords
ecu
communication
electronic control
message
communication protocol
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
JP2015234141A
Other languages
Japanese (ja)
Other versions
JP2016048958A (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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics 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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2015234141A priority Critical patent/JP6010207B2/en
Publication of JP2016048958A publication Critical patent/JP2016048958A/en
Application granted granted Critical
Publication of JP6010207B2 publication Critical patent/JP6010207B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信ネットワークにおける電源管理技術に関し、特に、CAN(Controller Area Network)バスを介して通信する通信ネットワークシステムに用いられる半導体集積回路装置の低消費電力化に有効な技術に関する。   The present invention relates to a power management technique in a communication network, and more particularly to a technique effective in reducing power consumption of a semiconductor integrated circuit device used in a communication network system that communicates via a CAN (Controller Area Network) bus.

自動車には、ナビゲーションシステムやオーディオなどの情報系、エンジンやシャーシなどのパワートレイン系、あるいはエアコンやヘッドライト、ドアロックなどのボディ系などの各種制御を司るECU(Electric Control Unit)が多数搭載されている。   Cars are equipped with many ECUs (Electric Control Units) that control various information systems such as navigation systems and audio, powertrain systems such as engines and chassis, and body systems such as air conditioners, headlights, and door locks. ing.

これらECUを接続する通信ネットワークのプロトコルとして、たとえば、CANが広く用いられている。自動車に搭載されるECUは、たとえば、エンジン、ブレーキ、エアバッグなどの常に制御が実行されるECUと、たとえば、サンルーフの開閉などイベントが発生したときのみに動作が必要なECUとに分けられるが、CANでは、自動車がエンジンを始動すると、それ以降、すべてのECUがON状態となる仕様となっている。   For example, CAN is widely used as a communication network protocol for connecting these ECUs. ECUs mounted on automobiles are classified into ECUs that are always controlled, such as engines, brakes, and airbags, and ECUs that need to be operated only when an event such as opening / closing of a sunroof occurs. In the CAN, when the automobile starts the engine, all ECUs are turned on thereafter.

また、この種の通信ネットワークにおけるデータ伝搬技術としては、たとえば、データを記憶、あるいは診断を実施するためにCANプロトコルを使用することなくCANバスを使用するもの(特許文献1参照)や、有線LANの通信プロトコルにかかわらず、UART(Universal Asynchronous Receiver Transmitter)によるデータ通信を可能とするもの(特許文献2参照)などが知られている。   Further, as a data propagation technique in this type of communication network, for example, a method of storing data or using a CAN bus without using a CAN protocol for performing diagnosis (see Patent Document 1), a wired LAN, or the like. Regardless of the communication protocol, there is known one that enables data communication by UART (Universal Asynchronous Receiver Transmitter) (see Patent Document 2).

特表2004−535742号公報JP-T-2004-535742 特開2006−20038号公報JP 2006-20038 A

ところが、上記のような通信ネットワークプロトコルによる通信技術では、次のような問題点があることが本発明者により見い出された。   However, the present inventor has found that the communication technology using the communication network protocol as described above has the following problems.

自動車に搭載されるECUは、たとえば、エンジン、ブレーキ、エアバッグなどの常に制御が実行される(メッセージ送受信を行うべきイベントの発生頻度が相対的に多い)ECUと、たとえば、サンルーフの開閉などイベントが発生したときのみに動作が必要な(メッセージ送受信を行うべきイベントの発生頻度が相対的に少ない)ECUとに分けられる。   ECUs mounted on automobiles are, for example, ECUs that are constantly controlled (engines, brakes, airbags, etc. are constantly controlled) (for example, events such as opening / closing of sunroofs) It is divided into ECUs that need to be operated only when the event occurs (the occurrence frequency of events to be transmitted and received messages is relatively low).

イベントが発生した際にのみ動作が必要なECUの場合には、該イベントが発生した場合のみECUの電源を入れれば、消費電力を抑えることができる。しかしながら、前述したように、エンジンが始動した以降は、すべてのECUがON状態となってしまい、常に多くのECUが電力を消費してしまうことになる。   In the case of an ECU that requires operation only when an event occurs, power consumption can be reduced by turning on the ECU only when the event occurs. However, as described above, after the engine is started, all the ECUs are turned on, and many ECUs always consume power.

自動車で使用される電気は、エンジンの力でまわっているオルタネータ(交流発電器)で作られているため、消費電力が少なければ、オルタネータへの負荷が減り、ガソリンの消費も減ることになるが、消費電力が大きくなることにより、自動車の発電負荷が大きくなり、自動車の燃費が低下してしまうという問題がある。   Electricity used in automobiles is made with an alternator (alternator) that is powered by the power of the engine, so if the power consumption is low, the load on the alternator will decrease, and gasoline consumption will also decrease. As power consumption increases, there is a problem that the power generation load of the automobile increases and the fuel efficiency of the automobile decreases.

自動車に搭載されるECUの個数は年々増加しており、これらのECUが消費する電力も増加する一方であり、自動車の燃費がより大きく低下してしまう恐れが生じてしまうことになる。   The number of ECUs mounted on automobiles is increasing year by year, and the electric power consumed by these ECUs is also increasing. As a result, there is a risk that the fuel consumption of the automobile will be greatly reduced.

また一方で、エンジン、ブレーキ等の自動車を安全に運行するのに必要とされるECUは通信ネットワークを介して相対的に頻繁に通信を行っており、かかる通信を阻害することは自動車の安全な運行に支障をきたすことにもなる。かかる観点からも、不急のECUからの通信を抑制する一方で、そのようなECUへの通信を行う場合に自動車の安全な運行に支障を来たさないような通信を行う必要がある。   On the other hand, ECUs required for safe operation of automobiles such as engines and brakes communicate relatively frequently via a communication network, and hindering such communication is safe for automobiles. It will also interfere with operation. From this point of view, it is necessary to perform communication that does not hinder the safe operation of the vehicle when communication to such an ECU is performed while suppressing communication from the emergency ECU.

本発明の目的は、通信ネットワークに接続される各ECUの電源供給を最適に制御することにより、自動車の消費電力を大幅に低減することのできる技術を提供することにある。   An object of the present invention is to provide a technique capable of significantly reducing the power consumption of an automobile by optimally controlling the power supply of each ECU connected to a communication network.

本発明の前記ならびにそのほかの目的と新規な特徴については、本明細書の記述および添付図面から明らかになるであろう。   The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願において開示される発明のうち、代表的なものの概要を簡単に説明すれば、次のとおりである。   Of the inventions disclosed in the present application, the outline of typical ones will be briefly described as follows.

本発明は、通信バスを介して入力される第1の通信プロトコルのインタフェースとなる通信プロトコルインタフェースと、該通信プロトコルインタフェースを介して入力されたメッセージに基づいて、アクチュエータ等を制御するコントローラと、該通信プロトコルインタフェースに電源を供給する第1のレギュレータと、通信プロトコルインタフェースから出力される制御信号に基づいて、コントローラ、およびコントローラにより制御されるアクチュエータ等へ電源を供給/停止する第2のレギュレータとを備え、通信プロトコルインタフェースは、通信バスから転送され、第1の通信プロトコルと異なるプロトコルの第2の通信プロトコルのメッセージに基づいて、制御信号を生成するものである。   The present invention provides a communication protocol interface serving as an interface of a first communication protocol input via a communication bus, a controller for controlling an actuator or the like based on a message input via the communication protocol interface, A first regulator that supplies power to the communication protocol interface; and a second regulator that supplies / stops power to the controller and an actuator controlled by the controller based on a control signal output from the communication protocol interface The communication protocol interface is configured to generate a control signal based on a message of a second communication protocol transferred from the communication bus and different from the first communication protocol.

また、本願のその他の発明の概要を簡単に示す。   Moreover, the outline | summary of the other invention of this application is shown briefly.

本発明は、前記通信プロトコルインタフェースが、通信バスを介して転送されるメッセージが、第1の通信プロトコルのメッセージであるか、第2の通信プロトコルのメッセージであるかを判定し、第1の通信プロトコルのメッセージの場合、該メッセージをコントローラに送信するプロトコル判定部と、プロトコル判定部が第2の通信プロトコルのメッセージであると判定した際に、そのメッセージが入力され、該メッセージ中の認識番号を検出し、検出した認識番号と、半導体集積回路装置に個別に割り付けられた認識番号とが一致しているか否かを判断し、一致している際には、第2のレギュレータを動作させる制御信号を出力するID判断部とを備えたものである。   In the present invention, the communication protocol interface determines whether the message transferred via the communication bus is a message of the first communication protocol or a message of the second communication protocol, and the first communication In the case of a protocol message, a protocol determination unit that transmits the message to the controller, and when the protocol determination unit determines that the message is a message of the second communication protocol, the message is input, and the identification number in the message is set. And detecting whether the detected identification number and the identification number individually assigned to the semiconductor integrated circuit device match, and if they match, a control signal for operating the second regulator Is provided with an ID determination unit that outputs.

また、本発明は、前記コントローラに電源電圧が供給されると、該コントローラのアイドル時間を計測するタイマを備え、該コントローラは、コントローラのアイドル時間が任意の時間経過すると、ID判断部に電源遮断指示信号を出力し、該ID判断部は、電源遮断指示信号を受信すると、第2のレギュレータの動作を停止する制御信号を出力するものである。   Further, the present invention includes a timer for measuring an idle time of the controller when a power supply voltage is supplied to the controller, and the controller shuts off the power to the ID determination unit when the controller idle time elapses for an arbitrary time. An instruction signal is output, and the ID determination unit outputs a control signal for stopping the operation of the second regulator when receiving the power-off instruction signal.

さらに、本発明は、前記通信プロトコルインタフェースが、ID判断部が前記第2のレギュレータを動作させたか、または停止させたかを示す動作情報を格納する電源動作情報格納部を備え、ID判断部は、第2のレギュレータを動作させた際、または第2のレギュレータを停止させた際に、電源動作情報格納部に動作を格納するものである。   Furthermore, the present invention includes a power supply operation information storage unit that stores operation information indicating whether the communication protocol interface has operated or stopped the second regulator, and the ID determination unit includes: When the second regulator is operated or when the second regulator is stopped, the operation is stored in the power supply operation information storage unit.

また、本発明は、前記コントローラが、前記第1の通信プロトコルにより、前記第1の通信プロトコルにより通信を行っているすべての半導体集積回路装置に前記第1の通信プロトコルによる通信を停止させる通信停止メッセージを前記通信バスを介して出力し、前記半導体集積回路装置の通信を停止させた後、前記第1の通信プロトコルによる通信に参加させたい任意の半導体集積回路装置に対して、前記通信バスを介して前記第2の通信プロトコルのメッセージを転送して、任意の前記半導体集積回路装置の第2のレギュレータを動作させるものである。   Further, according to the present invention, the controller stops communication according to the first communication protocol so that all the semiconductor integrated circuit devices performing communication according to the first communication protocol stop communication according to the first communication protocol. After outputting a message via the communication bus and stopping communication of the semiconductor integrated circuit device, the communication bus is connected to any semiconductor integrated circuit device that wants to participate in communication according to the first communication protocol. A message of the second communication protocol is transferred through the second regulator to operate a second regulator of any of the semiconductor integrated circuit devices.

さらに、本発明は、前記第1の通信プロトコルによる通信を停止した前記半導体集積回路装置が、前記通信停止メッセージに設定された任意の時間が経過した後、前記第1の通信プロトコルによる通信を再開するものである。   Further, according to the present invention, the semiconductor integrated circuit device that has stopped communication using the first communication protocol resumes communication using the first communication protocol after an arbitrary time set in the communication stop message has elapsed. To do.

また、本発明は、前記第1の通信プロトコルによる通信を停止した前記半導体集積回路装置が、前記通信プロトコルインタフェースが、前記第2の通信プロトコルによる前記第2のレギュレータを動作させるメッセージが転送されるまで前記第2のレギュレータの動作を停止しているものである。   Further, according to the present invention, the semiconductor integrated circuit device that has stopped communication according to the first communication protocol transfers a message that causes the communication protocol interface to operate the second regulator according to the second communication protocol. The operation of the second regulator is stopped.

さらに、本発明は、前記コントローラが、前記第2の通信プロトコルにより、前記第1のレギュレータを動作させ、前記半導体集積回路装置を起動させ、前記第1の通信プロトコルによる通信を開始させるシステム起動メッセージを前記通信バスを介して出力し、起動した前記半導体集積回路装置から、プラグインされた半導体集積回路装置があるか否かを確認し、プラグインされた前記半導体集積回路装置が存在する場合、プラグインされた前記半導体集積回路装置に、少なくとも前記認識番号を含む動作認識情報を前記第1の通信プロトコルにより取得するものである。   Furthermore, the present invention provides a system activation message for causing the controller to operate the first regulator according to the second communication protocol, to activate the semiconductor integrated circuit device, and to start communication according to the first communication protocol. When the semiconductor integrated circuit device that is plugged in exists, it is determined whether or not there is a plugged in semiconductor integrated circuit device from the activated semiconductor integrated circuit device. The operation recognition information including at least the identification number is acquired by the first communication protocol in the plugged-in semiconductor integrated circuit device.

また、本発明は、外部トリガにより前記半導体集積回路装置が動作する場合、前記第2のレギュレータは、前記コントローラ、および前記アクチュエータへ電源供給を停止せず、前記コントローラはスタンバイ状態となり、前記通信プロトコルインタフェースは、第2の通信プロトコルによるメッセージを受け付ける状態よりなるものである。   Further, according to the present invention, when the semiconductor integrated circuit device is operated by an external trigger, the second regulator does not stop power supply to the controller and the actuator, the controller enters a standby state, and the communication protocol The interface is configured to accept a message according to the second communication protocol.

さらに、本発明は、前記コントローラが、外部トリガを検出してスタンバイ状態から動作状態に遷移すると、外部トリガにより前記半導体集積回路装置が起動したことを通知する起動通知信号を前記通信バスに転送するものである。   Further, according to the present invention, when the controller detects an external trigger and transitions from a standby state to an operating state, the controller transfers an activation notification signal for notifying that the semiconductor integrated circuit device has been activated by the external trigger to the communication bus. Is.

また、本発明は、前記コントローラが、外部トリガを検出してスタンバイ状態から動作状態に遷移すると、前記通信プロトコルインタフェースを前記第1の通信プロトコルによる通信が開始されるように設定し、外部トリガにより前記半導体集積回路装置が起動したかの問い合わせが発生した際に、起動したことを通知するものである。   Further, according to the present invention, when the controller detects an external trigger and transitions from a standby state to an operating state, the communication protocol interface is set so that communication according to the first communication protocol is started. When an inquiry about whether or not the semiconductor integrated circuit device has been activated is generated, the activation is notified.

さらに、本発明は、前記第1の通信プロトコルが自動車用通信プロトコルであり、CAN、またはFlexRayといった自動車内ネットワークとして主要に用いられている通信プロトコルである。   In the present invention, the first communication protocol is a vehicle communication protocol, and is a communication protocol mainly used as an in-vehicle network such as CAN or FlexRay.

また、本発明は、前記第2の通信プロトコルが、UARTといった主に半導体集積回路間での通信に用いられる通信プロトコル、またはLIN(Local Interconnect Network)といった自動車内ネットワークとして従属的に用いられる通信プロトコルよりなるものである。または通信メッセージの構成はCANまたはFlexRayと同じであるが、通信の周波数が異なる通信プロトコルよりなるものである。   In the present invention, the second communication protocol is a communication protocol used mainly for communication between semiconductor integrated circuits such as UART, or a communication protocol used dependently as an in-vehicle network such as LIN (Local Interconnect Network). It is made up of. Or the structure of a communication message is the same as that of CAN or FlexRay, but consists of communication protocols with different communication frequencies.

本願において開示される発明のうち、代表的なものによって得られる効果を簡単に説明すれば以下のとおりである。   Among the inventions disclosed in the present application, effects obtained by typical ones will be briefly described as follows.

(1)コントローラ、およびアクチュエータの動作が不要な場合に、電源供給を停止することができるので、半導体集積回路装置の消費電力を大幅に低減することができる。   (1) Since the power supply can be stopped when the operation of the controller and the actuator is unnecessary, the power consumption of the semiconductor integrated circuit device can be greatly reduced.

(2)また、所定の場合にはECU間の通信を停止させ、またはECU内の半導体集積回路の動作を停止させることで、消費電力および燃費の向上に留まらず、自動車の安全性能の向上を図ることができる。   (2) Further, by stopping communication between ECUs or stopping the operation of the semiconductor integrated circuit in the ECU in a predetermined case, not only the improvement of power consumption and fuel consumption but also the improvement of the safety performance of the automobile can be achieved. Can be planned.

本発明の実施の形態1による車内ネットワークの接続形態の一例を示すブロック図である。It is a block diagram which shows an example of the connection form of the in-vehicle network by Embodiment 1 of this invention. 図1のECUに設けられたCANトランシーバ/レシーバにおける構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure in the CAN transceiver / receiver provided in ECU of FIG. 本発明の実施の形態1によるCANバスを介して転送される通信フォーマットの一例を示す説明図である。It is explanatory drawing which shows an example of the communication format transferred via the CAN bus by Embodiment 1 of this invention. 図3のUARTデータフォーマットの一例を示す説明図である。It is explanatory drawing which shows an example of the UART data format of FIG. 図2のECUにおける動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement in ECU of FIG. 本発明の実施の形態1によるマスタECUとスレーブECUとの通信の一例を示す動作フローチャートである。5 is an operation flowchart illustrating an example of communication between a master ECU and a slave ECU according to Embodiment 1 of the present invention. 図2のCANトランシーバ/レシーバがフィルタリングを行う際のCAN通信のボーレートの一例を示す説明図である。It is explanatory drawing which shows an example of the baud rate of CAN communication when the CAN transceiver / receiver of FIG. 2 performs filtering. 図2のCANトランシーバ/レシーバにおける構成の他の例を示すブロック図である。It is a block diagram which shows the other example of a structure in the CAN transceiver / receiver of FIG. 本発明の実施の形態2によるマスタECUとスレーブECUとの通信の一例を示す動作フローチャートである。It is an operation | movement flowchart which shows an example of communication with master ECU and slave ECU by Embodiment 2 of this invention. 図9におけるマスタECUの動作の一例を示すフローチャートである。10 is a flowchart showing an example of the operation of a master ECU in FIG. 9. 図10におけるCAN通信に参加しているスレーブECUの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the slave ECU which is participating in the CAN communication in FIG. 図10におけるCAN通信に参加していないスレーブECUにおける動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement in the slave ECU which is not participating in the CAN communication in FIG. 本発明の実施の形態3によるECUがプラグインされた際のマスタECUとスレーブECUとの通信の一例を示す動作フローチャートである。It is an operation | movement flowchart which shows an example of communication with master ECU and slave ECU when ECU by Embodiment 3 of this invention is plugged in. 図13の動作時におけるマスタECUの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of master ECU at the time of operation | movement of FIG. 図13の動作時における既存のスレーブECUの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the existing slave ECU at the time of operation | movement of FIG. 図13の動作時におけるプラグインされたスレーブECUの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the plugged-in slave ECU at the time of operation | movement of FIG. 本発明の実施の形態4によるマスタECUが、スレーブECUがCAN通信に参加しているかを確認する動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement in which master ECU by Embodiment 4 of this invention confirms whether slave ECU is participating in CAN communication.

以下、本発明の実施の形態を図面に基づいて詳細に説明する。なお、実施の形態を説明するための全図において、同一の部材には原則として同一の符号を付し、その繰り返しの説明は省略する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that components having the same function are denoted by the same reference symbols throughout the drawings for describing the embodiment, and the repetitive description thereof will be omitted.

(実施の形態1)
図1は、本発明の実施の形態1による車内ネットワークの接続形態の一例を示すブロック図、図2は、図1のECUに設けられたCANトランシーバ/レシーバにおける構成の一例を示すブロック図、図3は、本発明の実施の形態1によるCANバスを介して転送される通信フォーマットの一例を示す説明図、図4は、図3のUARTデータフォーマットの一例を示す説明図、図5は、図2のECUにおける動作の一例を示すフローチャート、図6は、本発明の実施の形態1によるマスタECUとスレーブECUとの通信の一例を示す動作フローチャート、図7は、図2のCANトランシーバ/レシーバがフィルタリングを行う際のCAN通信のボーレートの一例を示す説明図、図8は、図2のCANトランシーバ/レシーバにおける構成の他の例を示すブロック図である。
(Embodiment 1)
1 is a block diagram showing an example of a connection form of an in-vehicle network according to Embodiment 1 of the present invention, and FIG. 2 is a block diagram showing an example of a configuration of a CAN transceiver / receiver provided in the ECU of FIG. 3 is an explanatory diagram showing an example of a communication format transferred via the CAN bus according to the first embodiment of the present invention, FIG. 4 is an explanatory diagram showing an example of the UART data format of FIG. 3, and FIG. 6 is a flowchart showing an example of the operation in the ECU of FIG. 2, FIG. 6 is an operation flowchart showing an example of communication between the master ECU and the slave ECU according to Embodiment 1 of the present invention, and FIG. 7 is a diagram of the CAN transceiver / receiver of FIG. FIG. 8 is an explanatory diagram showing an example of a baud rate of CAN communication when performing filtering, and FIG. 8 is a diagram of the configuration of the CAN transceiver / receiver of FIG. Is a block diagram showing an example.

本実施の形態1において、自動車の車内ネットワークの接続形態は、図1に示すように、複数のECU1,1a,1bが通信バスとなるCANバスBcを介して相互に接続された構成からなる。これらECU1,1a,1bは、たとえば、ナビゲーションシステムやオーディオなどの情報系、エンジンやシャーシなどのパワートレイン系、あるいはエアコンやヘッドライト、ドアロックなどのボディ系などの各種制御を司る半導体集積回路を有する制御装置である。これらECU1,1a,1bには、各ECU1,1a,1bによって制御されるアクチュエータAcがそれぞれ接続されている。ただし、アクチュエータが接続されていないECUであってもよい。   In the first embodiment, the connection form of the in-vehicle network of the automobile has a configuration in which a plurality of ECUs 1, 1a, 1b are connected to each other via a CAN bus Bc serving as a communication bus, as shown in FIG. These ECUs 1, 1a, and 1b are, for example, semiconductor integrated circuits that control various types of information systems such as navigation systems and audio, power train systems such as engines and chassis, and body systems such as air conditioners, headlights, and door locks. It is a control device having. The ECUs 1, 1a, 1b are connected to actuators Ac controlled by the ECUs 1, 1a, 1b, respectively. However, an ECU to which an actuator is not connected may be used.

ECU1は、CANトランシーバ/レシーバ2、レギュレータ3,4、コントローラとなるMCU(Micro Controller Unit)5から構成されている。ECU1(,1a,1b)は、CANトランシーバ/レシーバ2を介してCANバスBcと相互に接続されている。CANバスBcには、第1の通信プロトコルであるCANプロトコルの差動信号、または第2の通信プロトコルであるUARTプロトコルの差動信号が転送される。   The ECU 1 includes a CAN transceiver / receiver 2, regulators 3 and 4, and an MCU (Micro Controller Unit) 5 serving as a controller. The ECU 1 (, 1a, 1b) is connected to the CAN bus Bc via the CAN transceiver / receiver 2. A CAN protocol differential signal, which is a first communication protocol, or a UART protocol differential signal, which is a second communication protocol, is transferred to the CAN bus Bc.

通信の電気的インタフェースとなるCANトランシーバ/レシーバ2は、CANバスBcを介して入力される差動信号をデジタル信号に変換、およびMCU5から出力されるデジタル信号を差動信号に変換してCANバスBcに出力すると共に、CANバスBcを介して入力される差動信号の通信プロトコルが、CANプロトコルかUARTプロトコルかを判定し、判定結果がUARTプロトコルの際には、UARTデータの解析を行い、それに基づいてレギュレータ4を制御する。   The CAN transceiver / receiver 2 serving as an electrical interface for communication converts the differential signal input via the CAN bus Bc into a digital signal, and converts the digital signal output from the MCU 5 into a differential signal to convert it into a CAN bus. In addition to outputting to Bc, it is determined whether the communication protocol of the differential signal input through the CAN bus Bc is the CAN protocol or the UART protocol. When the determination result is the UART protocol, the UART data is analyzed. Based on this, the regulator 4 is controlled.

第1のレギュレータとなるレギュレータ3は、たとえば、自動車のバッテリなどから供給される電源電圧をレギュレートしてCANトランシーバ/レシーバ2の動作電源として供給するレギュレータである。   The regulator 3 serving as a first regulator is a regulator that regulates a power supply voltage supplied from, for example, a battery of an automobile and supplies it as an operating power supply for the CAN transceiver / receiver 2.

第2のレギュレータとなるレギュレータ4は、CANトランシーバ/レシーバ2から出力される制御に基づいて、自動車のバッテリなどから供給される電源電圧をレギュレートし、MCU5、およびアクチュエータAcの動作電源として供給するレギュレータである。   The regulator 4 serving as the second regulator regulates the power supply voltage supplied from the vehicle battery or the like based on the control output from the CAN transceiver / receiver 2 and supplies it as the operation power supply for the MCU 5 and the actuator Ac. It is a regulator.

MCU5は、CANインタフェース6、通信制御部7、RAM(Random Access Memory)8、タイマ9、割り込みコントローラ10、CPU(Central Processing Unit)11、およびROM(Read Only Memory)12から構成されている。また、通信制御部7、RAM8、タイマ9、CPU11、およびROM12は、内部バスBsを介して相互に接続されている。   The MCU 5 includes a CAN interface 6, a communication control unit 7, a RAM (Random Access Memory) 8, a timer 9, an interrupt controller 10, a CPU (Central Processing Unit) 11, and a ROM (Read Only Memory) 12. The communication control unit 7, RAM 8, timer 9, CPU 11, and ROM 12 are connected to each other via an internal bus Bs.

また、他のECUに対してCANプロトコル、またはUARTプロトコルのどちらかでメッセージの送信を行う場合、MCU5は送信するメッセージのデジタル信号とどちらのプロトコルで送信するかを示す情報とをCANトランシーバ/レシーバ2に送信する。   Further, when a message is transmitted to another ECU using either the CAN protocol or the UART protocol, the MCU 5 transmits a digital signal of the message to be transmitted and information indicating which protocol is to be transmitted to the CAN transceiver / receiver. 2 to send.

CANインタフェース6は、MCU5とCANバスBcとのインタフェースである。通信制御部7は、CANプロトコルに従って他のECUとの通信を制御する。RAM8は、データの一時的な保存に用いられ、たとえば、CANネットワークから受信したデータや、CANネットワークへ送信するデータの一時的な退避などに使用される。   The CAN interface 6 is an interface between the MCU 5 and the CAN bus Bc. The communication control unit 7 controls communication with other ECUs according to the CAN protocol. The RAM 8 is used for temporary storage of data, for example, temporary storage of data received from the CAN network and data transmitted to the CAN network.

タイマ9は、タイマクロックなどのカウントアップを行って所望の時間設定をし、ある時間に到達するとタイマカウンタ信号を出力する。割り込みコントローラ10は、実行中のプログラムより優先させて実行するプログラムがある場合に、実行中のプログラムの中断や、割り込みプログラムの実行を制御する。割り込みプログラムが終了すると、中断していたプログラムが再開する。通常、割り込みコントローラ10は、MCU5内部からの内部割り込みと、MCU5外部からの外部割り込みとを制御する。   The timer 9 counts up a timer clock, sets a desired time, and outputs a timer counter signal when a certain time is reached. When there is a program to be executed with priority over the program being executed, the interrupt controller 10 controls interruption of the program being executed and execution of the interrupt program. When the interrupt program ends, the interrupted program resumes. Normally, the interrupt controller 10 controls internal interrupts from inside the MCU 5 and external interrupts from outside the MCU 5.

たとえば、一定時間、CANネットワークからのデータ受信がない場合に、タイマ9から出力されるタイムアウト信号を受け取り、割り込みプログラムを発生させ、割り込み処理信号を出力する。   For example, when no data is received from the CAN network for a certain period of time, a time-out signal output from the timer 9 is received, an interrupt program is generated, and an interrupt processing signal is output.

CPU11は、MCU5におけるすべての制御を司る。ROM12は、主にMCU5の動作プログラムが格納されている。動作プログラムは、たとえば、CAN通信プログラム、アクチュエータ制御プログラム、電源遮断処理プログラムなどである。   The CPU 11 manages all the control in the MCU 5. The ROM 12 mainly stores an operation program for the MCU 5. The operation program is, for example, a CAN communication program, an actuator control program, a power shutoff processing program, or the like.

ここでは、ECU1の構成について記載したが、他のECU1a,1bについても、ECU1と同様の構成となっている。   Although the configuration of the ECU 1 has been described here, the other ECUs 1a and 1b have the same configuration as the ECU 1.

図2は、CANトランシーバ/レシーバ2における構成の一例を示すブロック図である。   FIG. 2 is a block diagram showing an example of a configuration in the CAN transceiver / receiver 2.

CANトランシーバ/レシーバ2は、図示するように、トランシーバ/レシーバ13、プロトコル判定部となるセレクト回路14、UART用回路15、ID判断部となるID判断回路16、電源動作情報格納部となるレジスタ17、ならびにオンチップオシレータ18から構成されている。   As shown in the figure, the CAN transceiver / receiver 2 includes a transceiver / receiver 13, a select circuit 14 serving as a protocol determination unit, a UART circuit 15, an ID determination circuit 16 serving as an ID determination unit, and a register 17 serving as a power supply operation information storage unit. And an on-chip oscillator 18.

CANトランシーバ/レシーバ2は、前述したように、MCU5に接続されている。そして、MCU5には、アクチュエータAcが接続されており、該アクチュエータAcをMCU5が駆動制御する。   The CAN transceiver / receiver 2 is connected to the MCU 5 as described above. An actuator Ac is connected to the MCU 5, and the MCU 5 drives and controls the actuator Ac.

トランシーバ/レシーバ13は、CANバスBcを介して入力される差動信号をデジタル信号に変換、およびMCU5から出力されるデジタル信号を差動信号に変換してCANバスBcに出力する。   The transceiver / receiver 13 converts a differential signal input via the CAN bus Bc into a digital signal, converts a digital signal output from the MCU 5 into a differential signal, and outputs the differential signal to the CAN bus Bc.

セレクト回路14は、次のような方法でCANバスBcから受信した信号のプロトコルを判別する。   The select circuit 14 determines the protocol of the signal received from the CAN bus Bc by the following method.

CANプロトコルによる通信とUARTプロトコルとの通信を重畳可能とする場合、たとえば異なる通信周波帯域(CANプロトコル通信を高周波帯域で行い、UARTプロトコル通信を低周波帯域で行う)とする。このような異なる周波数帯の信号を重畳させて通信を行うことは、非接触ICカードや電力線通信等の公知の技術が存在しており、これらの技術を適宜採用すればよい。   In the case where communication using the CAN protocol and communication using the UART protocol can be superimposed, for example, different communication frequency bands (CAN protocol communication is performed in a high frequency band and UART protocol communication is performed in a low frequency band). There are known techniques such as non-contact IC cards and power line communication for performing communication by superimposing signals in such different frequency bands, and these techniques may be adopted as appropriate.

受信の際はCANバスBcから受信した信号をAM復調により分離して夫々のアナログ信号状態のプロトコル信号をデジタル信号に変換する。送信の際はメッセージのデジタル信号を、どちらのプロトコルで送信するかを示す情報に基づきプロトコルに応じた通信周波帯域のアナログ信号に変換し、変換したアナログ信号をAM変調により重畳しCANバスBcに出力する。   At the time of reception, signals received from the CAN bus Bc are separated by AM demodulation, and protocol signals in respective analog signal states are converted into digital signals. At the time of transmission, the digital signal of the message is converted into an analog signal of a communication frequency band according to the protocol based on information indicating which protocol is to be transmitted, and the converted analog signal is superimposed by AM modulation and is applied to the CAN bus Bc. Output.

若しくは、CANプロトコルによる通信とUARTプロトコルによる通信とを時間的に分離する場合は、トランシーバ/レシーバ13はCANバスBcから受信した信号をアナログ−デジタル変換し、後段のセレクト回路14がいずれの通信が行われるタイミングかに応じて受信したプロトコルの判別をし、送信の際はMCU5からのメッセージのデジタル信号をデジタル−アナログ変換し、いずれの通信を行うタイミングかに応じてアナログ信号をCANバスBcに出力する。時間的分離と周波数分離との両方を行うことで、プロトコルの分離をより確実にすることも可能となる。   Alternatively, when the communication using the CAN protocol and the communication using the UART protocol are separated in time, the transceiver / receiver 13 performs analog-to-digital conversion on the signal received from the CAN bus Bc, and the select circuit 14 in the subsequent stage performs any communication. The received protocol is discriminated according to the timing to be performed, the digital signal of the message from the MCU 5 is converted from digital to analog at the time of transmission, and the analog signal is sent to the CAN bus Bc according to which communication timing is performed. Output. By performing both temporal separation and frequency separation, it becomes possible to further ensure protocol separation.

セレクト回路14は、トランシーバ/レシーバ13を介して入力されたデジタル信号が、CANプロトコルであるか、UARTプロトコルであるかを判定し、CANプロトコルの場合には、該デジタル信号をMCU5に出力し、UARTプロトコルの際には、該デジタル信号をUART用回路15に出力するように切り替え制御を行う。   The select circuit 14 determines whether the digital signal input via the transceiver / receiver 13 is a CAN protocol or a UART protocol, and outputs the digital signal to the MCU 5 in the case of the CAN protocol. In the case of the UART protocol, switching control is performed so that the digital signal is output to the UART circuit 15.

セレクト回路14は、受信したデジタル信号がCANプロトコルかUARTプロトコルかは上述した周波数の相違、若しくは予め決められている送受信タイミング情報に基づき判別する。   The selection circuit 14 determines whether the received digital signal is a CAN protocol or a UART protocol based on the above-described frequency difference or predetermined transmission / reception timing information.

また、送信の場合、セレクト回路14は、MCU5から入力されたメッセージのデジタル信号とどちらのプロトコルで送信するかを示す情報とをトランシーバ/レシーバ13に送信し、またはどちらのプロトコルで送信するかを示す情報と予め決められている送受信タイミング情報とに基づき、MCU5から入力されたメッセージのデジタル信号を定められたタイミングでトランシーバ/レシーバ13に送信する。   In the case of transmission, the select circuit 14 transmits to the transceiver / receiver 13 a digital signal of a message input from the MCU 5 and information indicating which protocol is to be transmitted, or which protocol is to be transmitted. Based on the indicated information and predetermined transmission / reception timing information, the digital signal of the message input from the MCU 5 is transmitted to the transceiver / receiver 13 at a predetermined timing.

UART用回路15は、セレクト回路14を介して入力されたデジタル信号が、UARTフォーマットに合致しているか否かを判定し、合致している場合には、ID判断回路16に該デジタル信号を出力する。   The UART circuit 15 determines whether or not the digital signal input via the select circuit 14 matches the UART format, and if it matches, outputs the digital signal to the ID determination circuit 16. To do.

ID判断回路16は、入力されたデジタル信号の認識番号であるCAN IDを検出し、そのCAN IDが、ECU毎に割り付けられたCAN IDと同じであるか判断し、同じ場合には、レギュレータ4に制御信号であるイネーブル信号ENを出力する。   The ID determination circuit 16 detects the CAN ID that is the identification number of the input digital signal, determines whether the CAN ID is the same as the CAN ID assigned to each ECU, and if so, the regulator 4 An enable signal EN, which is a control signal, is output.

レジスタ17は、ID判断回路16によってレギュレータ4がON状態となっていることを示す情報を格納する。オンチップオシレータ18は、CANトランシーバ/レシーバ2における動作クロック信号を生成する。   The register 17 stores information indicating that the regulator 4 is in the ON state by the ID determination circuit 16. The on-chip oscillator 18 generates an operation clock signal in the CAN transceiver / receiver 2.

図3は、CANバスBcを介して転送される通信フォーマットの一例を示す説明図である。   FIG. 3 is an explanatory diagram showing an example of a communication format transferred via the CAN bus Bc.

通信が開始される場合、始めの1メッセージ目には、UARTフォーマットのウェイトメッセージ19が転送され、続いて、2メッセージ目に、UARTフォーマットのCAN IDメッセージ20が転送される。その後、CANフォーマットのCANフレーム21が転送され、CAN通信が開始される。   When communication is started, a UART format wait message 19 is transferred to the first first message, and then a UART format CAN ID message 20 is transferred to the second message. Thereafter, the CAN frame 21 in the CAN format is transferred, and CAN communication is started.

図4は、1メッセージ目、および2メッセージ目に転送されるUARTデータフォーマットの一例を示す説明図である。   FIG. 4 is an explanatory diagram showing an example of a UART data format transferred in the first message and the second message.

1メッセージ目のウェイトメッセージ19は、起動用のメッセージであり、フレームの開始を表すSOF(Start Of Frame)19a、たとえば、8ビットからなる任意のデータビット19b、パリティビット19c、およびデータの終わりを示すストップビット19dから構成されている。   The wait message 19 of the first message is a startup message, and includes an SOF (Start Of Frame) 19a indicating the start of a frame, for example, an arbitrary data bit 19b consisting of 8 bits, a parity bit 19c, and the end of data. The stop bit 19d shown in FIG.

また、2メッセージ目のCAN IDメッセージ20は、フレームの開始を表すSOF20a、たとえば、8ビットのCAN IDからなるデータビット20b、パリティビット20c、ならびにデータの終わりを示すストップビット20dから構成されている。   The CAN ID message 20 of the second message is composed of an SOF 20a indicating the start of a frame, for example, a data bit 20b consisting of 8-bit CAN ID, a parity bit 20c, and a stop bit 20d indicating the end of data. .

ここで、ウェイトメッセージ19は、オンチップオシレータ18が発振を開始した後、発振が安定するまで間に必要な時間を確保するための起動待ち時間処理のために用いられるが、該オンチップオシレータ18が発振安定するまでの時間がCAN IDメッセージを受信してからCANフレーム21を受信するまでの時間と比較して十分に短い場合には、省略し、CAN IDメッセージ20を転送するようにしてもよい。   Here, the wait message 19 is used for start-up waiting time processing for securing a necessary time after the on-chip oscillator 18 starts oscillating until the oscillation becomes stable. If the time until the oscillation stabilizes is sufficiently shorter than the time from when the CAN ID message is received until the CAN frame 21 is received, it is omitted and the CAN ID message 20 is transferred. Good.

また、データビット20bにおいては、CAN IDだけでなく、1対1通信(マスタのECUと特定のECUとの通信)、一斉通信(マスタのECUとその他のすべてのECUとの通信)、あるいはグループ通信(マスタのECUと特定のグループに属するECUとの通信)などの通信モードを設定する情報を含めるようにしてもよい。   In the data bit 20b, not only the CAN ID but also one-to-one communication (communication between the master ECU and a specific ECU), simultaneous communication (communication between the master ECU and all other ECUs), or a group Information for setting a communication mode such as communication (communication between the master ECU and an ECU belonging to a specific group) may be included.

このマスタのECUは、あるECUが他のECUに対してメッセージを送信する場合に、送信元のECUがその時々にマスタのECUとなるが、固定的に特定のECUがマスタとなるのであってもよい。   In this master ECU, when a certain ECU transmits a message to another ECU, the sender ECU becomes the master ECU from time to time, but a specific ECU becomes the master fixedly. Also good.

次に、本実施の形態によるECU1における動作について、図5のフローチャートを用いて説明する。   Next, the operation of the ECU 1 according to the present embodiment will be described using the flowchart of FIG.

まず、CANトランシーバ/レシーバ2のトランシーバ/レシーバ13が、CANバスBcを介してメッセージを受信すると(ステップS101)、該トランシーバ/レシーバ13は、CANバスBcを介して受信した差動信号のメッセージをデジタル信号に変換し、セレクト回路14に出力する。   First, when the transceiver / receiver 13 of the CAN transceiver / receiver 2 receives a message via the CAN bus Bc (step S101), the transceiver / receiver 13 receives the message of the differential signal received via the CAN bus Bc. The digital signal is converted and output to the select circuit 14.

セレクト回路14は、入力された信号がCANフォーマットのメッセージであるか、UARTフォーマットのメッセージあるかを判断し(ステップS102)、CANフォーマットのメッセージの場合には、該メッセージをMCU5に出力する。   The select circuit 14 determines whether the input signal is a CAN format message or a UART format message (step S102), and if it is a CAN format message, outputs the message to the MCU 5.

そして、MCU5は、入力されたメッセージが、ECU1自身のCAN IDを指定しているか否かを判断し(ステップS103)、ECU1のCAN IDであれば、メッセージの処理を実行する(ステップS104)。   Then, the MCU 5 determines whether or not the input message specifies the CAN ID of the ECU 1 itself (step S103), and if it is the CAN ID of the ECU 1, executes processing of the message (step S104).

また、ステップS102の処理において、UARTフォーマットのメッセージの場合には、UART用回路15にメッセージを出力する。UART用回路15は、入力されたメッセージがUARTフォーマットに合致しているかを判断し、合致している際には、ID判断回路16に、該メッセージを出力する。   In the process of step S102, if the message is in the UART format, the message is output to the UART circuit 15. The UART circuit 15 determines whether the input message matches the UART format, and outputs the message to the ID determination circuit 16 when it matches.

ID判断回路16は、入力されたメッセージがECU1自身のCAN IDを指定しているか否かを判断し(ステップS105)、ECU1のCAN IDであれば、ID判断回路16は、イネーブル信号ENをレギュレータ4に出力し、該レギュレータ4をONさせてECU5、およびアクチュエータAcに電源を供給する(ステップS106)。このとき、ID判断回路16は、レジスタ17に対してレギュレータ4がON状態であることを示す情報を書き込む処理を行う。   The ID determination circuit 16 determines whether or not the input message specifies the CAN ID of the ECU 1 (step S105). If the received message is the CAN ID of the ECU 1, the ID determination circuit 16 determines the enable signal EN as a regulator. 4 to turn on the regulator 4 to supply power to the ECU 5 and the actuator Ac (step S106). At this time, the ID determination circuit 16 performs a process of writing information indicating that the regulator 4 is in the ON state to the register 17.

このように、レジスタ17にレギュレータ4がON状態であることを示す情報を書き込むことにより、すでにMCU5に電源が供給されている状態で、UARTフォーマットのメッセージにより、レギュレータ4をONする指示があった場合であっても、ID判断回路16によってレギュレータ4をONさせるという処理を省略することが可能となる。   Thus, by writing information indicating that the regulator 4 is in the ON state to the register 17, there is an instruction to turn on the regulator 4 by a UART format message in a state where power is already supplied to the MCU 5. Even in this case, the process of turning on the regulator 4 by the ID determination circuit 16 can be omitted.

レジスタ17にレギュレータ4がON状態であることを示す情報が書き込まれると、タイマ9は、カウントアップを開始し、CANバスBcのアイドル時間を監視する。アイドル時間が任意の時間を経過すると、MCU5は、ID判断回路16に対して電源遮断指示信号SDを出力する。   When information indicating that the regulator 4 is in the ON state is written in the register 17, the timer 9 starts counting up and monitors the idle time of the CAN bus Bc. When the idle time has passed an arbitrary time, the MCU 5 outputs a power shutdown instruction signal SD to the ID determination circuit 16.

ID判断回路16は、電源遮断指示信号SDを受信すると、インアクティブのイネーブル信号ENをレギュレータ4に出力し、該レギュレータ4をOFFさせて、MCU5、ならびにアクチュエータAcの電源供給を停止する。このとき、ID判断回路16は、レギュレータ4がON状態であることを示す情報をレジスタ17から削除する。   When receiving the power cutoff instruction signal SD, the ID determination circuit 16 outputs an inactive enable signal EN to the regulator 4, turns off the regulator 4, and stops the power supply of the MCU 5 and the actuator Ac. At this time, the ID determination circuit 16 deletes information indicating that the regulator 4 is in the ON state from the register 17.

あるいは、マスタとなるECUが、動作していないECUに対して電源遮断メッセージを送信することにより、ID判断回路16がインアクティブのイネーブル信号ENをレギュレータ4に出力するようにしてもよい。   Alternatively, the ID determination circuit 16 may output the inactive enable signal EN to the regulator 4 by the ECU serving as the master transmitting a power-off message to the ECU that is not operating.

図6は、マスタECUとなるECU1aとスレーブECUとなるECU1との通信の一例を示す動作フローチャートである。   FIG. 6 is an operation flowchart illustrating an example of communication between the ECU 1a serving as a master ECU and the ECU 1 serving as a slave ECU.

まず、ECU1aが、ECU1b宛にメッセージを送信すると(ステップS201)、ECU1のCANトランシーバ/レシーバ2は、該メッセージがECU1bに対するものであるので、レギュレータ4をONさせず、ECU1のMCU5に対して電源供給、および起動/メッセージ転送を行わない。   First, when the ECU 1a transmits a message to the ECU 1b (step S201), the CAN transceiver / receiver 2 of the ECU 1 does not turn on the regulator 4 and supplies power to the MCU 5 of the ECU 1 because the message is for the ECU 1b. Do not feed and start / message transfer.

続いて、ECU1aが、たとえば、ECU1,1bにUARTフォーマットの1つ目のメッセージであるウェイトメッセージ19(図3)を送信すると(ステップS202)、ECU1,1bのCANトランシーバ/レシーバ2が起動する。   Subsequently, when the ECU 1a transmits, for example, the wait message 19 (FIG. 3) which is the first message in the UART format to the ECUs 1 and 1b (step S202), the CAN transceiver / receiver 2 of the ECUs 1 and 1b is activated.

その後、2メッセージ目のCAN IDメッセージ20(図3)が入力され、このCAN IDメッセージ20が、たとえば、ECU1、およびECU1b宛の場合、ECU1,1bのCANトランシーバ/レシーバ2は、レギュレータ4をそれぞれ起動させて、ECU1のMCU5とアクチュエータAc、およびECU1bのMCU5とアクチュエータAcにそれぞれ電源供給を行う(ステップS203)。   Thereafter, the CAN ID message 20 (FIG. 3) of the second message is input. If this CAN ID message 20 is addressed to, for example, the ECU 1 and the ECU 1b, the CAN transceiver / receiver 2 of the ECUs 1 and 1b The power is supplied to the MCU 5 and the actuator Ac of the ECU 1 and to the MCU 5 and the actuator Ac of the ECU 1b (step S203).

そして、ECU1宛のCANプロトコルのメッセージが入力されると、該ECU1は、メッセージ処理を行い(ステップS204)、ECU1b宛のCANプロトコルのメッセージが入力されると、ECU1のMCU5は当該メッセージを処理する必要がないと判断し、当該メッセージを破棄する(ステップS205)。   When a CAN protocol message addressed to the ECU 1 is input, the ECU 1 performs message processing (step S204). When a CAN protocol message addressed to the ECU 1b is input, the MCU 5 of the ECU 1 processes the message. It is determined that it is not necessary, and the message is discarded (step S205).

また、ステップS205において、CANトランシーバ/レシーバ2がCAN IDのフィルタリング機能も持つ場合には、MCU5へのメッセージの転送は行わず、メッセージを破棄することも可能である。   In step S205, when the CAN transceiver / receiver 2 also has a CAN ID filtering function, the message can be discarded without transferring the message to the MCU 5.

その後、ECU1のアイドル時間が任意の時間を経過すると、MCU5からID判断回路16に対して電源遮断指示信号SDが出力され、ID判断回路16によってレギュレータ4がOFFされ、MCU5,ならびにアクチュエータAcの電源遮断処理が実行される(ステップS206)。   Thereafter, when an arbitrary idle time of the ECU 1 elapses, the power cut-off instruction signal SD is output from the MCU 5 to the ID determination circuit 16, the regulator 4 is turned off by the ID determination circuit 16, and the power of the MCU 5 and the actuator Ac is turned on. A blocking process is executed (step S206).

それにより、本実施の形態によれば、CAN通信が行われているECUのみに電源が供給され、通信が行われていないECUにおけるMCU、およびアクチュエータAcに対しては電源供給が停止されるので、消費電力を大幅に低減することができる。   Thereby, according to the present embodiment, power is supplied only to the ECU in which CAN communication is performed, and power supply to the MCU and the actuator Ac in the ECU in which communication is not performed is stopped. The power consumption can be greatly reduced.

次に、CANバスBcを介して送信されるUARTフレームとCANフレームとを識別するフィルタリング技術について説明する。ここでは、CANプロトコルによる通信のボーレートとして、たとえば、500kpsを使用した場合の動作の一例を説明する。   Next, a filtering technique for identifying a UART frame and a CAN frame transmitted via the CAN bus Bc will be described. Here, an example of operation when 500 kps, for example, is used as the communication baud rate according to the CAN protocol will be described.

CAN通信のボーレートを500kpsとすると、1ビットは2μsとなる。CANフレームは、CANプロトコルで定義されているスタッフィング機能により、5ビットより長く同一レベルが続かない。   If the baud rate of CAN communication is 500 kps, 1 bit is 2 μs. The CAN frame does not continue the same level for longer than 5 bits due to the stuffing function defined in the CAN protocol.

そのため、10μsより長く’Lo’が続いた場合、その信号はCANフレームのSOF信号でないと判断し、その信号をUART SOFとして検出する。   Therefore, if 'Lo' continues for longer than 10 μs, it is determined that the signal is not a CAN frame SOF signal, and the signal is detected as a UART SOF.

CANトランシーバ/レシーバ2は、図7に示すように、受信信号中に立ち下がりエッジを検出した場合、たとえば、1μs間隔でデータをサンプリングする。立ち下がりエッジから、11サンプル目が10μsとなる。立ち下がりエッジから12サンプル目までが、’Lo’の場合、UART SOF検出となる。   As shown in FIG. 7, the CAN transceiver / receiver 2 samples data at intervals of 1 μs, for example, when a falling edge is detected in the received signal. From the falling edge, the 11th sample is 10 μs. In the case of 'Lo' from the falling edge to the 12th sample, UART SOF detection is performed.

また、CANトランシーバ/レシーバ2は、UARTモード時、CANフレームは無視し、UART SOF検出後、受信データをUART用回路15(図2)へ接続してUART受信を開始する。   In the UART mode, the CAN transceiver / receiver 2 ignores the CAN frame, and after detecting the UART SOF, connects the received data to the UART circuit 15 (FIG. 2) and starts UART reception.

そして、ID判断回路16(図2)が、UARTフレームに含まれるCAN IDと 自ECUのCAN IDとが一致しているか否かを判断し、一致している場合、セレクト回路14(図2)は、接続経路をMCU5に接続し(CANモード)、以降のデータをMCU5に入出力する。   Then, the ID determination circuit 16 (FIG. 2) determines whether or not the CAN ID included in the UART frame and the CAN ID of the own ECU match, and if they match, the selection circuit 14 (FIG. 2). Connects the connection path to the MCU 5 (CAN mode) and inputs / outputs subsequent data to / from the MCU 5.

続いて、CAN IDの設定技術について説明する。   Next, a CAN ID setting technique will be described.

CAN IDは、たとえば、トランシーバ/レシーバ2に設定されており、たとえば、CANトランシーバ/レシーバ2にフラッシュメモリなどに例示される不揮発性半導体メモリを内蔵する。   The CAN ID is set in, for example, the transceiver / receiver 2. For example, the CAN transceiver / receiver 2 incorporates a nonvolatile semiconductor memory exemplified as a flash memory.

そして、その不揮発性半導体メモリにフラッシュライタなどを用いてCAN IDを書き込む。また、フラッシュライタなどによって予めCAN IDを書き込むだけでなく、たとえば、システムの起動時にマスタとなるECUは、すべてのECUをシステム起動メッセージである全ECU起動信号などによって起動させ、すべてのECUがCANフレームを送信して、送信した順にCAN IDを取得し、不揮発性半導体メモリに格納する。   Then, the CAN ID is written into the nonvolatile semiconductor memory using a flash writer or the like. Further, not only the CAN ID is written in advance by a flash writer or the like, but, for example, when the system is started, the ECU that is the master starts all ECUs by all ECU start signals that are system start messages. Frames are transmitted, CAN IDs are acquired in the order of transmission, and stored in the nonvolatile semiconductor memory.

CANの既存の通信プロトコルでは、メッセージ送信を希望するECUはネットワーク上で他のECUがメッセージを送信していない場合は、いずれのECUもメッセージの送信を開始することができる。   In the existing communication protocol of CAN, any ECU that wishes to send a message can start sending a message if no other ECU is sending a message on the network.

CAN ID取得の段階ではいずれのECUも自ECUを特定してマスタとなるECUにメッセージ送信をすることができず、既存の通信プロトコルによりCAN ID取得要求メッセージを送信することになる。   At the stage of CAN ID acquisition, any ECU cannot identify its own ECU and send a message to the master ECU, and sends a CAN ID acquisition request message using an existing communication protocol.

この場合、複数のECUがCAN ID取得要求メッセージを送信することによりネットワーク上で信号の輻輳を生じ、マスタとなるECUがメッセージを正しく受信できないことも生じる。   In this case, a plurality of ECUs transmit CAN ID acquisition request messages, resulting in signal congestion on the network, and the master ECU may not receive the messages correctly.

CAN ID取得要求メッセージを送信したECUは、ネットワーク上で信号の輻輳を生じたことを検知した場合、一旦メッセージの送信を停止し、所定時間を経過した後にCAN ID取得要求メッセージの再送を行うことを繰り返すことで、順次CAN IDを取得する。   When the ECU that has transmitted the CAN ID acquisition request message detects that signal congestion has occurred on the network, the ECU once stops transmitting the message and resends the CAN ID acquisition request message after a predetermined time has elapsed. By repeating the above, CAN IDs are obtained sequentially.

また、CANトランシーバ/レシーバ2に、ハードウェア的に予めCAN IDを実装したり、たとえば、図8に示すように、外付けの抵抗R1を用いてCAN IDを設定する構成としてもよい。   The CAN transceiver / receiver 2 may be preinstalled with a CAN ID in hardware, or may be configured to set the CAN ID using an external resistor R1 as shown in FIG. 8, for example.

この場合、CANトランシーバ/レシーバ2は、分圧用の抵抗22、ならびにA/D変換器23が設けられる構成となる。抵抗R1の一方の接続部には、電源電圧VDDが接続され、該抵抗R1の他方の接続部には、抵抗22の一方の接続部が接続されている。   In this case, the CAN transceiver / receiver 2 is configured to include a voltage dividing resistor 22 and an A / D converter 23. The power supply voltage VDD is connected to one connection portion of the resistor R1, and one connection portion of the resistor 22 is connected to the other connection portion of the resistor R1.

抵抗22の他方の接続部には、基準電位VSSが接続されている。そして、抵抗R1と抵抗22との接続部が、A/D変換器23の入力部に接続されており、該A/D変換器23の出力部がレジスタ17に接続されている。   A reference potential VSS is connected to the other connection portion of the resistor 22. A connection portion between the resistor R1 and the resistor 22 is connected to an input portion of the A / D converter 23, and an output portion of the A / D converter 23 is connected to the register 17.

抵抗R1と抵抗22とによって分圧された電圧は、A/D変換器23によってデジタルデータに変換され、該デジタルデータがレジスタ17に格納されることにより、CAN IDが設定される。よって、CAN IDは、抵抗R1と抵抗22とによって分圧された電圧値によって設定されることになる。   The voltage divided by the resistor R1 and the resistor 22 is converted into digital data by the A / D converter 23, and the digital data is stored in the register 17, whereby the CAN ID is set. Therefore, CAN ID is set by the voltage value divided by the resistor R1 and the resistor 22.

その他にも、MCU5に設けられたメモリなどにCAN IDを格納し、該MCU5によってCANトランシーバ/レシーバ2に該CAN IDを設定するようにしてもよい。   In addition, the CAN ID may be stored in a memory or the like provided in the MCU 5, and the CAN ID may be set in the CAN transceiver / receiver 2 by the MCU 5.

(実施の形態2)
図9は、本発明の実施の形態2によるマスタECUとスレーブECUとの通信の一例を示す動作フローチャート、図10は、図9におけるマスタECUの動作の一例を示すフローチャート、図11は、図10におけるCAN通信に参加しているスレーブECUの動作の一例を示すフローチャート、図12は、図10におけるCAN通信に参加していないスレーブECUにおける動作の一例を示すフローチャートである。
(Embodiment 2)
9 is an operation flowchart showing an example of communication between the master ECU and the slave ECU according to Embodiment 2 of the present invention, FIG. 10 is a flowchart showing an example of the operation of the master ECU in FIG. 9, and FIG. FIG. 12 is a flowchart showing an example of the operation of the slave ECU not participating in the CAN communication in FIG. 10.

本実施の形態2では、前記実施の形態1の図1に示す自動車の車内ネットワークにおいて、電源が供給されていない(CANプロトコルによる通信が行われていない)ECUを起動させ、通信を開始させる技術について説明する。   In the second embodiment, in the in-vehicle network of the automobile shown in FIG. 1 of the first embodiment, a technology for starting the communication by starting an ECU to which power is not supplied (communication by the CAN protocol is not performed). Will be described.

図9は、マスタECUとなるECU1とスレーブECUとなるECU1a,1bとの通信の一例を示す動作フローチャートである。   FIG. 9 is an operation flowchart illustrating an example of communication between the ECU 1 serving as a master ECU and the ECUs 1a and 1b serving as slave ECUs.

この図9では、ECU1とECU1aとがCAN通信を行っており、その後、CAN通信を行っていないECU1bを起動し、CAN通信させるまでの動作を示している。また、図9の左側には、ECU1に設けられたレジスタ17(図2)の状態を示している。   In FIG. 9, ECU1 and ECU1a are performing CAN communication, and after that, ECU1b which is not performing CAN communication is started, and operation | movement until it makes CAN communication is shown. Further, the left side of FIG. 9 shows the state of the register 17 (FIG. 2) provided in the ECU 1.

レジスタ17の左から右にかけては、ECU1、ECU1a、およびECU1bにおけるそれぞれの状態データが格納されており、’1’はCAN通信に参加している状態(以下、CANモードという)を示しており、’0’は、UARTプロトコルによる通信が可能な状態(以下、UARTモードという)を示している。   From left to right of the register 17, state data in the ECU 1, ECU 1 a, and ECU 1 b are stored, and “1” indicates a state participating in CAN communication (hereinafter referred to as CAN mode). '0' indicates a state in which communication by the UART protocol is possible (hereinafter referred to as UART mode).

ECU1とECU1aとがCAN通信を行っている状態において(ステップS301)、何らかの理由によってECU1bもCAN通信に参加する必要が生じると、ECU1は、CAN通信を行っているすべてのECU(この場合、ECU1a)に対して、通信停止メッセージとなるCAN通信停止フレームを送信する(ステップS302)。   In a state where the ECU 1 and the ECU 1a are performing CAN communication (step S301), if the ECU 1b also needs to participate in CAN communication for some reason, the ECU 1 is connected to all the ECUs that are performing CAN communication (in this case, the ECU 1a). ), A CAN communication stop frame serving as a communication stop message is transmitted (step S302).

このとき、ECU1aがCANモードであり、ECU1bがUARTモードであるので、レジスタ17のECU1aの状態を示すデータは’1’となっており、ECU1bの状態を示すデータは’0’となっている。   At this time, since the ECU 1a is in the CAN mode and the ECU 1b is in the UART mode, the data indicating the state of the ECU 1a in the register 17 is “1”, and the data indicating the state of the ECU 1b is “0”. .

CAN通信停止するフレームは、CANプロトコルでは規定されていないため、通信システムでフレームの内容により決めることになり、たとえば、CAN通信停止フレームは、フレーム内のID(identifier)のbitがすべて’0’のフレームなどとする。   The CAN communication stop frame is not defined by the CAN protocol, and is therefore determined by the contents of the frame in the communication system. And so on.

CAN通信停止フレームとしてフレーム内のID(identifier)のbit全てを‘0’とすることにより、他のECUがメッセージを送信中であったとしても、優先順位の調停により最優先となり、CANバス上のすべてのECUがこのフレームを受信可能となる。   By setting all bits of ID (identifier) in the frame to “0” as the CAN communication stop frame, even if other ECUs are sending messages, the priority is adjusted and the highest priority is given on the CAN bus. All of the ECUs can receive this frame.

そして、CAN通信を行っているすべてのECU(ECU1a)は、CAN通信停止フレームを受信すると、CAN通信を停止する(ステップS303)。   And all ECUs (ECU1a) which are performing CAN communication will stop CAN communication, if a CAN communication stop frame is received (step S303).

CAN通信を停止する場合、たとえば、ECU1によって指示された任意の期間、CANフレームの送信を停止し、その期間が経過すると自動的にCAN通信に復帰するパターンや、CAN通信を停止し、MCU5(図1)の電源をOFFし、CANトランシーバ/レシーバ2(図1)がUARTプロトコルによる通信を行うモードに遷移し、スタンバイ状態に移行するパターンなど様々なパターンが考えられる。   When the CAN communication is stopped, for example, the transmission of the CAN frame is stopped for an arbitrary period instructed by the ECU 1, and the pattern that automatically returns to the CAN communication when the period elapses, the CAN communication is stopped, and the MCU 5 ( Various patterns are conceivable, such as a pattern in which the power of FIG. 1) is turned off, the CAN transceiver / receiver 2 (FIG. 1) transitions to a mode for performing communication using the UART protocol, and transitions to a standby state.

なお、図9において、ECU1が送信するCAN通信停止フレームは、該ECU1によって指示された任意の期間が経過すると、自動的にECU1aがCAN通信に復帰するパターンとする。   In FIG. 9, the CAN communication stop frame transmitted by the ECU 1 is a pattern in which the ECU 1a automatically returns to CAN communication when an arbitrary period instructed by the ECU 1 elapses.

また、自動的にCAN通信に復帰する場合には、CANトランシーバ/レシーバ2は、CAN通信が行える状態で待機し、MCU5の電源はOFFしない。   When the CAN communication is automatically restored, the CAN transceiver / receiver 2 stands by in a state where the CAN communication can be performed, and the MCU 5 is not turned off.

続いて、ECU1は、前記実施の形態1に記載した技術により、UARTプロトコルの通信を用いて新たにCAN通信に参加させたいECU1bを起動させる(ステップS304,S305)。   Subsequently, the ECU 1 uses the technique described in the first embodiment to activate the ECU 1b that is to newly participate in CAN communication using UART protocol communication (steps S304 and S305).

ECU1bが起動したことにより、該ECU1bがCAN通信に参加し、レジスタ17のECU1bの状態を示すデータが’0’から’1’に書き換えられる。   When the ECU 1b is activated, the ECU 1b participates in CAN communication, and data indicating the state of the ECU 1b in the register 17 is rewritten from “0” to “1”.

そして、ECU1によって指示された任意の期間が経過すると、ECU1aは自動的に復帰を行い(ステップS306)、ECU1、ECU1a,ならびにECU1bのすべてがCAN通信に参加している状態となる(ステップS307)。   When an arbitrary period instructed by the ECU 1 elapses, the ECU 1a automatically recovers (step S306), and all of the ECU 1, ECU 1a, and ECU 1b are participating in CAN communication (step S307). .

なお、マスタECUがCAN通信を停止する方法としては、上記したようにCANフレームによってスレーブECUのCAN通信を停止させる他に、たとえば、光通信などを用いている場合には、停止信号を通常の信号に重畳させることによっても可能である。   As a method of stopping the CAN communication by the master ECU, in addition to stopping the CAN communication of the slave ECU by the CAN frame as described above, for example, when using optical communication or the like, a stop signal is set to a normal stop signal. It is also possible to superimpose it on the signal.

また、ステップS302でECU1がCAN通信停止フレームを出力する代わりに、UARTプロトコルの通信によりECU1bを起動させることも行い得る(ステップS302‘とする)。   In addition, instead of the ECU 1 outputting the CAN communication stop frame in step S302, the ECU 1b may be activated by communication of the UART protocol (referred to as step S302 ').

この場合、ECU1がUARTプロトコルの通信を行っていることをECU1aが検知し、かかる通信期間中はECU1aはCAN通信を行わないように制御される。かかる動作を行った場合は、ステップS302’を行った後、ステップS307に遷移することが可能となる。   In this case, the ECU 1a detects that the ECU 1 is communicating with the UART protocol, and the ECU 1a is controlled not to perform CAN communication during the communication period. When such an operation is performed, it is possible to make a transition to step S307 after performing step S302 '.

図10は、CAN通信を行っていないECUを起動させ、CAN通信を開始させる際のマスタとなるECU1における動作の一例を示すフローチャートである。   FIG. 10 is a flowchart illustrating an example of an operation in the ECU 1 serving as a master when starting an ECU that does not perform CAN communication and starting CAN communication.

まず、ECU1は、CAN通信に参加していないECUがある場合、そのECUを起動させる必要があるか否かを判断する(ステップS401)。CAN通信に参加していないECUを起動させる必要があると判断すると、ECU1は、車内ネットワークのシステムがCAN通信中か否かを判断する(ステップS402)。   First, when there is an ECU that does not participate in CAN communication, the ECU 1 determines whether or not the ECU needs to be activated (step S401). If it is determined that it is necessary to activate an ECU that does not participate in CAN communication, the ECU 1 determines whether the in-vehicle network system is in CAN communication (step S402).

CAN通信中でない場合には、後述するステップS404の処理を実行し、CAN通信中の場合、ECU1は、CAN通信に参加しているすべてのECUに対してCAN通信停止フレームを送信し(ステップS403)、該ECUのCAN通信を停止させる。   When the CAN communication is not being performed, a process of step S404 described later is executed. When the CAN communication is being performed, the ECU 1 transmits a CAN communication stop frame to all the ECUs participating in the CAN communication (step S403). ), The CAN communication of the ECU is stopped.

CAN通信に参加しているすべてのECUのCAN通信が停止すると、ECU1は、UARTプロトコルの通信を用いて新たにCAN通信に参加させたいECU1bを起動させる(ステップS404)。   When the CAN communication of all ECUs participating in the CAN communication is stopped, the ECU 1 activates the ECU 1b that is newly desired to participate in the CAN communication using the UART protocol communication (step S404).

この場合、前記実施の形態1において説明したように、始めの1メッセージ目には、UARTフォーマットのウェイトメッセージが転送され、続いて、2メッセージ目に、UARTフォーマットのCAN IDメッセージが転送される。   In this case, as described in the first embodiment, a UART format wait message is transferred to the first first message, and then a UART format CAN ID message is transferred to the second message.

そして、ステップS404の処理において、起動させたいECUが起動すると、CANフォーマットのCANフレーム21が転送され、CAN通信が開始される(ステップS405)。   When the ECU to be activated is activated in the process of step S404, the CAN frame 21 in the CAN format is transferred and CAN communication is started (step S405).

図11は、CAN通信を行っていないECUを起動させ、CAN通信を開始させる際のマスタとなるECU1がCAN通信を行っていないECU1bを起動させる際のCAN通信を行っているスレーブECUであるECU1aにおける動作の一例を示すフローチャートである。   FIG. 11 shows an ECU 1a that is a slave ECU that performs CAN communication when starting an ECU 1 that does not perform CAN communication and activates an ECU 1b that does not perform CAN communication. It is a flowchart which shows an example of the operation | movement in.

まず、ECU1bは、CANトランシーバ/レシーバ2が、CANモードであるか否かを判断し(ステップS501)、CANモードの場合には、マスタのECU1から、CAN通信停止フレームが送信されたか否かを判断する(ステップS502)。   First, the ECU 1b determines whether or not the CAN transceiver / receiver 2 is in the CAN mode (step S501). In the CAN mode, the ECU 1b determines whether or not a CAN communication stop frame has been transmitted from the master ECU 1. Judgment is made (step S502).

ECU1から、CAN通信停止フレームが送信されていない場合には、通常のCANプロトコルの通信に応じた実行処理を行う(ステップS503)。ECU1から、CAN通信停止フレームが送信された際には、その指示に基づいて、ECU1aのCANトランシーバ/レシーバ2がMCU5の電源をOFFし、CANプロトコルによる通信を停止する(ステップS504)。   If the CAN communication stop frame has not been transmitted from the ECU 1, an execution process corresponding to normal CAN protocol communication is performed (step S503). When a CAN communication stop frame is transmitted from the ECU 1, based on the instruction, the CAN transceiver / receiver 2 of the ECU 1a turns off the power of the MCU 5 and stops communication using the CAN protocol (step S504).

そして、ECU1によって指示された任意の期間の間、ステップS504の状態を維持した後(ステップS505)、CANトランシーバ/レシーバ2がMCU5の電源をONしてCANプロトコルによる通信に復帰する(ステップS506)。   Then, after maintaining the state of step S504 for an arbitrary period instructed by the ECU 1 (step S505), the CAN transceiver / receiver 2 turns on the power of the MCU 5 and returns to communication by the CAN protocol (step S506). .

ここで、ステップS504の処理では、ECU1から指示で、ECU1aのMCU5の電源をOFFしてCANプロトコルによる通信を停止するものとしたが、該ECU1の指示は、これ以外に、ECU1aのMCU5の電源をOFFせずにCANプロトコルによる通信のみを停止する処理などであってもよい。   Here, in the process of step S504, it is assumed that the MCU 1 of the ECU 1a is turned off by the instruction from the ECU 1 to stop the communication by the CAN protocol, but the instruction of the ECU 1 is not limited to this, but the power of the MCU 5 of the ECU 1a is also stopped. Processing that stops only communication using the CAN protocol without turning off the server may be used.

図12は、マスタとなるECU1がCANモードでないECU1bを起動させ、CAN通信を開始させる際の該ECU1bにおける動作の一例を示すフローチャートである。   FIG. 12 is a flowchart illustrating an example of an operation in the ECU 1b when the ECU 1 serving as a master activates the ECU 1b that is not in the CAN mode and starts CAN communication.

まず、ECU1bは、CANトランシーバ/レシーバ2が、CANモードであるか、あるいはUARTモードであるかを判定し(ステップS601)、CANモードの場合には、通常のCANプロトコルの通信時応じた実行処理を行う(ステップS602)。   First, the ECU 1b determines whether the CAN transceiver / receiver 2 is in the CAN mode or the UART mode (step S601). If the CAN transceiver / receiver 2 is in the CAN mode, an execution process corresponding to the normal CAN protocol communication time is determined. Is performed (step S602).

ステップS601の処理において、UARTモードの場合には、ECUを起動させるUARTフォーマットによるメッセージを受信したか否かを判断する(ステップS603)。   In the process of step S601, in the case of the UART mode, it is determined whether or not a message in the UART format for starting the ECU has been received (step S603).

ステップS603の処理において、メッセージを受信すると、ECU1bは、受信したメッセージが自ECU(1b)宛のメッセージであるか否かを判断し(ステップS604)、自ECU宛のメッセージの場合には、そのメッセージに基づいて、ECU1bのCANトランシーバ/レシーバ2がMCU5の電源をONさせ、ECU1bをCAN通信に参加させる(ステップS605)。   When the message is received in the process of step S603, the ECU 1b determines whether or not the received message is a message addressed to the own ECU (1b) (step S604). Based on the message, the CAN transceiver / receiver 2 of the ECU 1b turns on the power of the MCU 5, and causes the ECU 1b to participate in CAN communication (step S605).

以上、説明した電源が供給されていない(CANプロトコルによる通信が行われていない)ECUを起動させ、通信を開始させる技術は、緊急時の損害低減や二次災害の防止などに有効である。またそのような場合の図10〜図12のUARTフォーマットによるメッセージの通信は、CANフォーマットによる通信を阻害しないように、異なる周波数帯を用いた信号重畳による通信を行うとよい。ブレーキやエアバッグ等の自動車の安全運行に必要とされるCAN通信を行いつつ、不要なECUの通信を停止させ、更に通信に参加することが必要となるECUを起動させることが可能となる。   As described above, the technology for starting and starting the ECU that is not supplied with power (communication by the CAN protocol is not performed) is effective for reducing damage in an emergency or preventing secondary disasters. In such a case, the message communication in the UART format in FIGS. 10 to 12 may be performed by signal superposition using different frequency bands so as not to disturb the communication in the CAN format. While performing CAN communication required for safe driving of a vehicle such as a brake and an airbag, it is possible to stop unnecessary ECU communication and activate an ECU that needs to participate in communication.

自動車の周囲監視を行うレーダーECUが他車の異常接近を検知した場合に、衝突事故の発生に備えてエアバッグやシートベルトを制御するECUを起動することにより、衝突発生前にシートベルトを固定し、衝突発生の直前/直後にエアバックの膨張を行い、乗員の肉体的な損傷を低減することができる。若しくは自車の歩行者等への接近を検知してブレーキ制御ECUを起動して減速制御を行い、歩行者などへ与える被害を低減することができる。   When a radar ECU that monitors the surroundings of an automobile detects an abnormal approach of another vehicle, the seat belt is fixed before the collision occurs by activating the ECU that controls the airbag and seat belt in preparation for the occurrence of a collision accident. In addition, the airbag can be inflated immediately before / after the occurrence of the collision to reduce physical damage to the occupant. Or the approach to the pedestrian etc. of the own vehicle is detected, brake control ECU is started and deceleration control is performed, and the damage given to a pedestrian etc. can be reduced.

たとえば、燃料電池車の場合には、衝突時に水素ガスなどのガス漏れを検出する(マスタECUとガスセンサECUとが通信)と、マスタECUは、サンルーフ、ウィンドウ、スライドドア、エアコンなどを制御する各ECUを起動することによって、車内換気を行い、車内に水素ガスが充満して火災や爆発を生じないようにすることができる。   For example, in the case of a fuel cell vehicle, when a gas leak such as hydrogen gas is detected at the time of a collision (the master ECU and the gas sensor ECU communicate), the master ECU controls each sunroof, window, slide door, air conditioner, etc. By starting the ECU, it is possible to ventilate the interior of the vehicle and prevent the vehicle from being filled with hydrogen gas and causing a fire or explosion.

また、ハイブリッド車や電気自動車などの場合には、衝突時などに電源制御を行うECUがCAN通信に参加していなければ、電源制御系のECUを起動させ、バッテリ、ならびに該バッテリ周辺機器をファン(およびラジエータ)などで緊急冷却し、バッテリ発火による火災を防止することができる。   Further, in the case of a hybrid vehicle or an electric vehicle, if the ECU that performs power control in the event of a collision does not participate in CAN communication, the power control system ECU is activated and the battery and the battery peripheral device are connected to the fan. (And radiator) can be used for emergency cooling to prevent fire due to battery ignition.

さらに、衝突時などに該当するECUを起動させ、ルームランプの点灯、ハザードランプの点滅、クラクションを鳴らす、テレマティックスによる通報などによる事故発生の周知の他、ドアが施錠されている際には、避難のためにドアロックを解除するとなどを行うことができる。   In addition, the corresponding ECU is activated in the event of a collision, etc., in addition to notifying the occurrence of an accident by lighting a room lamp, blinking a hazard lamp, sounding a horn, reporting by telematics, etc. When the door is locked Unlock the door for evacuation, etc.

(実施の形態3)
図13は、本発明の実施の形態3によるECUがプラグインされた際のマスタECUとスレーブECUとの通信の一例を示す動作フローチャート、図14は、図13の動作時におけるマスタECUの動作の一例を示すフローチャート、図15は、図13の動作時における既存のスレーブECUの動作の一例を示すフローチャート、図16は、図13の動作時におけるプラグインされたスレーブECUの動作の一例を示すフローチャートである。
(Embodiment 3)
FIG. 13 is an operation flowchart showing an example of communication between the master ECU and the slave ECU when the ECU according to the third embodiment of the present invention is plugged in. FIG. 14 is an operation flowchart of the master ECU during the operation of FIG. FIG. 15 is a flowchart showing an example of the operation of the existing slave ECU during the operation of FIG. 13, and FIG. 16 is a flowchart showing an example of the operation of the plugged-in slave ECU during the operation of FIG. It is.

本実施の形態3では、前記実施の形態1の図1に示す自動車の車内ネットワークにおいて、新たにECUがプラグインされた場合に、プラグインされたECUの動作認識情報となるECU情報をマスタのECUに通知する技術について説明する。   In the third embodiment, in the in-vehicle network of the automobile shown in FIG. 1 of the first embodiment, when the ECU is newly plugged in, the ECU information that becomes the operation recognition information of the plugged-in ECU is stored in the master. A technique for notifying the ECU will be described.

ここで「プラグイン」とは、たとえば、カーナビゲーションシステムを追加または交換する等、CANが以前に稼動していた時点においては存在していなかったECUがCANに新たに接続されることを意味する。   Here, “plug-in” means that an ECU that did not exist at the time when the CAN was operating previously is newly connected to the CAN, for example, by adding or replacing a car navigation system. .

図13は、新たにECUがプラグインされた際のマスタECUとなるECU1とスレーブECUとなるECU1a,1bとの通信の一例を示す動作フローチャートである。ここで、図13においては、ECU1b(図1)が新たにプラグインされたECUであるものとする。   FIG. 13 is an operation flowchart illustrating an example of communication between the ECU 1 serving as a master ECU and the ECUs 1a and 1b serving as slave ECUs when the ECU is newly plugged in. Here, in FIG. 13, it is assumed that the ECU 1b (FIG. 1) is a newly plugged-in ECU.

マスタとなるECU1は、MCU5、およびCANトランシーバ/レシーバ2に電源が供給されている状態であり、スレーブのECU1aは、CANトランシーバ/レシーバ2がUARTモードでスタンバイ状態となっており、MCU5の電源がOFFされている。また、プラグインされたECU1bは、CANトランシーバ/レシーバ2がUARTモードでスタンバイ状態となっており、MCU5の電源がOFFされている。   The master ECU 1 is in a state where power is supplied to the MCU 5 and the CAN transceiver / receiver 2, and the slave ECU 1a is in a standby state in which the CAN transceiver / receiver 2 is in the UART mode. It is turned off. In the plugged-in ECU 1b, the CAN transceiver / receiver 2 is in a standby state in the UART mode, and the power supply of the MCU 5 is turned off.

また、図13では、スレーブのECU1a,1bは、いずれも間欠動作を行うECUであるものとする。さらに、図の左側には、ECU1に設けられたレジスタ17(図2)の状態を示しており、レジスタ17の左から右にかけては、ECU1、ECU1a、およびECU1bにおけるそれぞれの状態データが格納されている。レジスタ17の’1’はCANモードを示しており、’0’は、UARTモードを示している。   In FIG. 13, the slave ECUs 1a and 1b are both ECUs that perform an intermittent operation. Further, on the left side of the figure, the state of the register 17 (FIG. 2) provided in the ECU 1 is shown. From the left to the right of the register 17, the respective state data in the ECU 1, ECU 1a, and ECU 1b are stored. Yes. “1” in the register 17 indicates the CAN mode, and “0” indicates the UART mode.

まず、ECU1は、すべてのECUに対して、UARTフレームにより、すべてのECUを起動させる全ECU起動信号をCANバスBcを介して送信する(ステップS701)。   First, the ECU 1 transmits all ECU activation signals for activating all ECUs to all ECUs via the CAN bus Bc by using the UART frame (step S701).

この全ECU起動信号は、たとえば2つのメッセージからなり、第1のメッセージは、図4のCAN IDメッセージ20において全てのECUを起動させることを示すメッセージであり、第2のメッセージは、起動情報を取得するためのメッセージであることを意味する信号である。   This all ECU activation signal is composed of, for example, two messages. The first message is a message indicating that all the ECUs are activated in the CAN ID message 20 of FIG. 4, and the second message is the activation information. It is a signal that means a message for acquisition.

ECU1a,1bにおいては、全ECU起動信号を受信することにより、CANトランシーバ/レシーバ2がCANモードにより起動し、MCU5の電源がそれぞれONとなる(ステップS702)。   In the ECUs 1a and 1b, by receiving all ECU activation signals, the CAN transceiver / receiver 2 is activated in the CAN mode, and the power of the MCU 5 is turned on (step S702).

続いて、ECU1は、新規にプラグインされたECUがあるかを問い合わせ(ステップS703)、プラグインされたECU1bは、ECU1の要求に基づいて自ECU1bのECU情報(CAN IDや動作情報など)をCANフレームによりECU1に送信する(ステップS704)。   Subsequently, the ECU 1 inquires whether there is a newly plugged-in ECU (step S703), and the plugged-in ECU 1b obtains ECU information (CAN ID, operation information, etc.) of its own ECU 1b based on a request from the ECU 1. It transmits to ECU1 by a CAN frame (step S704).

その後、ECU1は、残りのECU1aに対しても、ECU情報を要求し(ステップS705)、該ECU情報を取得する(ステップS706)。そして、任意の時間が経過すると、ECU1a,1bのCANトランシーバ/レシーバ2がUARTモードでスタンバイ状態となり、ECU1a,1bのMCU5の電源がOFFとなる(ステップS707)。   Thereafter, the ECU 1 also requests ECU information from the remaining ECU 1a (step S705), and acquires the ECU information (step S706). When an arbitrary time elapses, the CAN transceiver / receiver 2 of the ECUs 1a and 1b enters a standby state in the UART mode, and the power of the MCU 5 of the ECUs 1a and 1b is turned off (step S707).

ECU1は、ステップS704,S706の処理でそれぞれ取得したECU情報に基づいて、任意の期間ごとに、ECU1aの起動(ステップS708)、ならびにECU1bの起動(ステップS709)を繰り返す。   The ECU 1 repeats the activation of the ECU 1a (step S708) and the activation of the ECU 1b (step S709) for each arbitrary period based on the ECU information acquired in the processes of steps S704 and S706.

図14は、図13の動作時におけるマスタとなるECU1の動作の一例を示すフローチャートである。   FIG. 14 is a flowchart showing an example of the operation of the ECU 1 serving as a master during the operation of FIG.

まず、ECU1は、UARTフレームによって全ECU起動信号をCANバスBcを介してすべてのECU(ECU1a,1b)に送信し(ステップS801)、CANモードを起動させる。続いて、ECU1は、プラグインしたECU1b、およびその他の既存のECU1aに対して、CANフレームにより、ECU情報をそれぞれ要求する(ステップS802)。   First, the ECU 1 transmits all ECU activation signals to all ECUs (ECUs 1a and 1b) via the CAN bus Bc using the UART frame (step S801), and activates the CAN mode. Subsequently, the ECU 1 requests ECU information from the plugged-in ECU 1b and other existing ECUs 1a through the CAN frame (step S802).

ECU1は、すべてのECUからのECU情報を取得すると、取得したECU情報をバッファなどに格納する(ステップS803)。ECU1は、ECU1aの間欠時間が経過したか否かの判断を行い(ステップS804)、その間欠時間が経過したら、UARTフレームによりECU1aを起動させて該ECU1aとのCAN通信を開始する(ステップS805)。   When the ECU 1 acquires ECU information from all ECUs, the ECU 1 stores the acquired ECU information in a buffer or the like (step S803). The ECU 1 determines whether or not the intermittent time of the ECU 1a has elapsed (step S804), and when the intermittent time has elapsed, the ECU 1 is activated by the UART frame and starts CAN communication with the ECU 1a (step S805). .

ステップS804の処理において、ECU1aの間欠時間が経過していない場合、ECU1は、ECU1bの間欠時間が経過したか否かの判断を行い(ステップS806)、該間欠時間が経過するとUARTフレームによりECU1bを起動させ、該ECU1bとのCAN通信を開始する(ステップS807)。   In the process of step S804, if the intermittent time of the ECU 1a has not elapsed, the ECU 1 determines whether or not the intermittent time of the ECU 1b has elapsed (step S806), and when the intermittent time has elapsed, the ECU 1b The CAN communication with the ECU 1b is started (step S807).

図15は、図13の動作時におけるスレーブとなる既存のECU1aの動作の一例を示すフローチャートである。   FIG. 15 is a flowchart showing an example of the operation of the existing ECU 1a serving as a slave during the operation of FIG.

まず、ECU1aは、CANトランシーバ/レシーバ2がUARTモードか否かを判断し(ステップS901)、CANモードの場合には、通常のCANプロトコルの通信に応じた実行処理を行う(ステップS902)。   First, the ECU 1a determines whether or not the CAN transceiver / receiver 2 is in the UART mode (step S901). If the CAN mode is the CAN mode, the ECU 1a performs an execution process in accordance with normal CAN protocol communication (step S902).

また、ステップS901の処理において、UARTモードの場合には、マスタとなるECU1から受信したUARTフレームが自ECU1a宛か否か、あるいは全ECU起動信号か否かを判断する(ステップS903)。   In the process of step S901, in the case of the UART mode, it is determined whether the UART frame received from the master ECU 1 is addressed to the own ECU 1a or all ECU activation signals (step S903).

UARTフレームが自ECU1a宛、あるいは全ECU起動信号の場合には、CANトランシーバ/レシーバ2がCANモードに移行し、MCU5の電源をONとする(ステップS904)。また、UARTフレームが自ECU1a宛、あるいは全ECU起動信号のいずれでもない場合には、ステップS901の処理に戻る。   When the UART frame is addressed to the own ECU 1a or all ECU activation signals, the CAN transceiver / receiver 2 shifts to the CAN mode and turns on the power of the MCU 5 (step S904). If the UART frame is not addressed to the own ECU 1a or the whole ECU activation signal, the process returns to step S901.

続いて、ECU1aは、ECU1から、自ECU1aのECU情報の取得要求があるかを判断する(ステップS905)。ECU1aのECU情報の取得要求がない場合には、ステップS902の処理を実行する。   Subsequently, the ECU 1a determines whether or not there is a request for acquiring ECU information of the ECU 1a from the ECU 1 (step S905). If there is no request for acquisition of ECU information from the ECU 1a, the process of step S902 is executed.

また、ECU情報の取得要求がある場合、ECU1aは、CANバスBcがアイドル状態であるかを任意の期間確認し(ステップS906)、アイドル状態であれば、ECU1へECU1aのECU情報をCANフレームによって送信する(ステップS907)。   When there is a request for acquiring ECU information, the ECU 1a checks whether the CAN bus Bc is in an idle state for an arbitrary period (step S906). If the CAN bus Bc is in an idle state, the ECU 1a sends the ECU information of the ECU 1a to the ECU 1 using a CAN frame. Transmit (step S907).

そして、ECU1aは、CANトランシーバ/レシーバ2をUARTモードに移行させ、ECU1からの起動メッセージを待つ(ステップS908)。ECU1からの起動メッセージを受信すると(ステップS909)、自ECU1a宛のメッセージであるか否かを判断し(ステップS910)、ECU1a宛のメッセージの場合、該ECU1aは、MCU5の電源をONし、CANモードに移行し(ステップS911)、ステップS902の処理を実行する。   Then, the ECU 1a shifts the CAN transceiver / receiver 2 to the UART mode and waits for an activation message from the ECU 1 (step S908). When the activation message is received from the ECU 1 (step S909), it is determined whether the message is addressed to the ECU 1a (step S910). When the message is addressed to the ECU 1a, the ECU 1a turns on the power of the MCU 5, and The mode is changed (step S911), and the process of step S902 is executed.

図16は、図13の動作時におけるスレーブとなるプラグインされたECU1bの動作の一例を示すフローチャートである。   FIG. 16 is a flowchart showing an example of the operation of the plugged-in ECU 1b serving as a slave during the operation of FIG.

まず、ECU1bは、CANトランシーバ/レシーバ2がUARTモードか否かを判断し(ステップS1001)、CANモードの場合には、通常のCANプロトコルの通信に応じた実行処理を行う(ステップS1002)。UARTモードの場合には、マスタのECU1から受信したUARTフレームが自ECU1b宛か、全ECU起動信号か、またはプラグインしたECUへの取得要求であるかを判断する(ステップS1003)。   First, the ECU 1b determines whether or not the CAN transceiver / receiver 2 is in the UART mode (step S1001). If the CAN transceiver / receiver 2 is in the CAN mode, the ECU 1b performs an execution process according to communication of the normal CAN protocol (step S1002). In the case of the UART mode, it is determined whether the UART frame received from the master ECU 1 is addressed to the own ECU 1b, all ECU activation signals, or an acquisition request to the plugged-in ECU (step S1003).

UARTフレームがECU1b宛、全ECU起動信号、あるいはプラグインしたECUへの取得要求の場合には、CANトランシーバ/レシーバ2がCANモードに移行し、MCU5の電源をONする(ステップS1004)。   If the UART frame is addressed to the ECU 1b, all ECU activation signals, or an acquisition request to the plugged-in ECU, the CAN transceiver / receiver 2 shifts to the CAN mode and turns on the power of the MCU 5 (step S1004).

続いて、ECU1bは、ECU1から、ECU1bのECU情報の取得要求があるかを判断する(ステップS1005)。ECU1bのECU情報の取得要求がない場合には、ステップS1002の処理を実行する。   Subsequently, the ECU 1b determines whether there is an ECU information acquisition request from the ECU 1b (step S1005). When there is no ECU information acquisition request from the ECU 1b, the process of step S1002 is executed.

ステップS1005の処理において、ECU情報の取得要求がある場合、ECU1bは、その取得要求が、プラグインしたECUへのECU情報の取得要求であるかを確認し(ステップS1006)、プラグインしたECUへのECU情報の取得要求の場合には、ECU1bは、自ECU1bはプラグインしたECUか否かを判断する(ステップS1007)。   If there is an ECU information acquisition request in the process of step S1005, the ECU 1b confirms whether the acquisition request is an ECU information acquisition request to the plugged-in ECU (step S1006), and then sends it to the plug-in ECU. In the case of the ECU information acquisition request, the ECU 1b determines whether or not the own ECU 1b is a plug-in ECU (step S1007).

また、ステップS1006の処理において、プラグインしたECUへのECU情報の取得要求でない場合には、ECU1bは、後述するステップS1008の処理を実行し、ステップS1007の処理において、プラグインしたECUでないと判断した場合には、ステップS1002の処理を実行する。   Further, in the process of step S1006, if it is not a request for acquiring ECU information to the plugged-in ECU, the ECU 1b executes a process of step S1008 described later, and determines in the process of step S1007 that the ECU is not a plug-in ECU. If so, the process of step S1002 is executed.

ECU1bがプラグインしたECUであると判断すると、該ECU1bは、CANバスBcがアイドル状態であるかを任意の期間確認し(ステップS1008)、アイドル状態であれば、ECU1へECU1bのECU情報をCANフレームによって送信する(ステップS1009)。   If it is determined that the ECU 1b is a plug-in ECU, the ECU 1b checks whether the CAN bus Bc is in an idle state for an arbitrary period (step S1008). If the ECU 1b is in an idle state, the ECU 1b sends the ECU information of the ECU 1b to the ECU 1. The frame is transmitted (step S1009).

続いて、ECU1bは、CANトランシーバ/レシーバ2をUARTモードに移行させ、ECU1からの起動メッセージを待つ(ステップS1010)。ECU1bが、ECU1からの起動メッセージを受信すると(ステップS1011)、自ECU1b宛のメッセージであるか否かを判断し(ステップS1012)、ECU1b宛のメッセージの場合、該ECU1bは、MCU5の電源をONし、CANモードに移行し(ステップS1013)、ステップS1002の処理を実行する。   Subsequently, the ECU 1b shifts the CAN transceiver / receiver 2 to the UART mode and waits for an activation message from the ECU 1 (step S1010). When the ECU 1b receives the activation message from the ECU 1 (step S1011), the ECU 1b determines whether the message is addressed to the ECU 1b (step S1012). If the message is addressed to the ECU 1b, the ECU 1b turns on the power of the MCU 5. Then, the mode is shifted to the CAN mode (step S1013), and the process of step S1002 is executed.

CANネットワークに接続される既存のECU(ECU1a)と追加されたECU(ECU1b)とは、図15及び図16のフローにおいて図示しない以下の処理を行ってよい。   The existing ECU (ECU 1a) connected to the CAN network and the added ECU (ECU 1b) may perform the following processing not shown in the flow of FIGS.

ECU1およびECU1aが自ECUのECU情報を送信(図13のステップS706)することに応じて、ECU1bはECU1とECU1aのECU情報をECU1b内の不揮発性メモリに格納する。   In response to the ECU 1 and the ECU 1a transmitting the ECU information of the ECU (step S706 in FIG. 13), the ECU 1b stores the ECU information of the ECU 1 and the ECU 1a in a nonvolatile memory in the ECU 1b.

また、ECU1bがECU1bのECU情報をECU1に送信(図13のステップS704)することに応じて、ECU1aはECU1bのECU情報をECU1a内の不揮発性メモリに格納する。   Further, in response to the ECU 1b transmitting the ECU information of the ECU 1b to the ECU 1 (step S704 in FIG. 13), the ECU 1a stores the ECU information of the ECU 1b in a nonvolatile memory in the ECU 1a.

ECU1に代わってECU1aまたはECU1bがマスタECUとなった場合に、ECU1aまたはECU1bのECU情報を取得するために図14の処理を行うことは冗長であり、プラグインされたECU1bが存在する場合、既存のECU全てがプラグインされたECU1bの情報取得処理で共有すると共に、プラグインされたECUが既存のECU全ての情報を同様に情報取得処理で共有する。   When the ECU 1a or ECU 1b becomes the master ECU in place of the ECU 1, it is redundant to perform the processing of FIG. 14 in order to obtain the ECU information of the ECU 1a or ECU 1b, and the existing ECU 1b exists when the plug-in ECU 1b exists. All of the ECUs are shared in the information acquisition process of the plug-in ECU 1b, and the plug-in ECU similarly shares the information of all the existing ECUs in the information acquisition process.

かかる処理により、CANネットワークに接続される全てのECUが他のECUのECU情報を保持することになり、いずれのECUがマスタECUになった場合でも、他のECUの動作情報取得処理を行うことなく、他のECUの間欠動作制御等を行うことが可能になる。   With this process, all ECUs connected to the CAN network hold the ECU information of the other ECUs, and the operation information acquisition process of the other ECUs is performed regardless of which ECU becomes the master ECU. It is possible to perform intermittent operation control of other ECUs.

上述した技術は、自動車のオプションなどによって新たに追加された機能を後付けした際に、新たにプラグインされるECUに対して有効である。   The above-described technology is effective for an ECU that is newly plugged in when a function that has been newly added as an option of the automobile is retrofitted.

たとえば、自動車のリアウィンドウなどに設けられているリアワイパを後付けにより取り付けた場合には、ボディ系のマスタのECUは、電源ON時、CANバスを介して全ECU起動信号を送信し、すべてのECUを起動させる。   For example, when a rear wiper provided in a rear window of an automobile is attached by retrofitting, the body master ECU transmits all ECU start signals via the CAN bus when the power is turned on, and all ECUs Start up.

プラグインされたECUは、マスタのECUからの要求に応じて、プラグインされたECUのECU情報をマスタのECUに送信する。この場合、プラグインされたECUは、間欠動作するリアワイパを動作させるECUであるので、ECU情報として、たとえば、CAN IDとリアワイパの間欠動作情報などを送信する。   The plugged-in ECU transmits ECU information of the plugged-in ECU to the master ECU in response to a request from the master ECU. In this case, since the plugged-in ECU is an ECU that operates the rear wiper that operates intermittently, for example, the CAN ID and the intermittent operation information of the rear wiper are transmitted as the ECU information.

そして、マスタのECUは、リアワイパの動作がONした情報を検出すると、その情報に応じて、リアワイパを制御するプラグインされたECUを起動させる。   When the master ECU detects the information that the operation of the rear wiper is turned on, the master ECU activates the plugged-in ECU that controls the rear wiper according to the information.

ここでは、一例としてリアワイパを制御するECUについて記載したが、この他に、ナビゲーションシステムやオーディオなどの様々なECUが追加された場合についても、同様の処理を行うことになる。   Here, the ECU for controlling the rear wiper has been described as an example, but the same processing is performed when various ECUs such as a navigation system and audio are added.

また、プラグインされたECUは、最適化されていた車内ネットワークシステムに新たに追加されることになるので、該システムに問題が発生した場合、既存のECUよりも故障の原因となる確率が高くなる可能性がある。   In addition, since the plugged-in ECU is newly added to the optimized in-vehicle network system, if a problem occurs in the system, the probability of causing a failure is higher than that of the existing ECU. There is a possibility.

そのため、問題が発生すると、最初に、プラグインされたECUを検証する必要性が認識できる。この場合、既存のECUには、CANトランシーバ/レシーバ2に、予め設定されているCAN ID(たとえば、ID1〜ID16)を割り振っておき、プラグインされたECUには、それ以外のCAN IDを割り振り、予め設定されているCAN ID以外のCAN IDがCANバスを介して配信された際に、プラグインされたECUと認識することができる。   Therefore, when a problem occurs, the necessity to verify the plug-in ECU first can be recognized. In this case, a preset CAN ID (for example, ID1 to ID16) is allocated to the existing transceiver and the CAN transceiver / receiver 2 is allocated, and other CAN IDs are allocated to the plug-in ECU. When a CAN ID other than a preset CAN ID is distributed via the CAN bus, it can be recognized as a plug-in ECU.

(実施の形態4)
図17は、本発明の実施の形態4によるマスタECUが、スレーブECUがCAN通信に参加しているかを確認する動作の一例を示すフローチャートである。
(Embodiment 4)
FIG. 17 is a flowchart illustrating an example of an operation in which the master ECU according to the fourth embodiment of the present invention confirms whether the slave ECU participates in CAN communication.

本実施の形態4では、前記実施の形態1の図1に示す自動車の車内ネットワークにおいて、あるスレーブのECUが外部トリガによって起動した際に、マスタのECUに対してスレーブの該ECUが起動したことを通知する技術について説明する。   In the fourth embodiment, in the in-vehicle network of the automobile shown in FIG. 1 of the first embodiment, when a slave ECU is activated by an external trigger, the slave ECU is activated relative to the master ECU. A technique for notifying the user will be described.

図17は、マスタとなるECU1が、スレーブのECU1a,1bがCAN通信に参加しているかを確認する動作の一例を示すフローチャートである。   FIG. 17 is a flowchart illustrating an example of an operation in which the ECU 1 serving as a master confirms whether the slave ECUs 1a and 1b are participating in CAN communication.

図17では、ECU1bが外部トリガによって起動可能なECUであるものとし、図17の左側には、ECU1に設けられたレジスタ17(図2)の状態を示している。レジスタ17の左から右にかけては、ECU1、ECU1a、およびECU1bにおけるそれぞれの状態データが格納されており、レジスタ17の’1’はCANモードを示しており、’0’は、UARTモードを示している。   In FIG. 17, it is assumed that the ECU 1b can be activated by an external trigger, and the state of the register 17 (FIG. 2) provided in the ECU 1 is shown on the left side of FIG. From left to right of the register 17, state data in the ECU 1, ECU 1 a, and ECU 1 b are stored. “1” in the register 17 indicates the CAN mode, and “0” indicates the UART mode. Yes.

まず、ECU1は、CANプロトコルの通信により、各ECU1a,1bが起動しているか否かを問い合わせる(ステップS1101)。ここでは、ECU1aが起動しているので、該ECU1aは、起動していることをECU1に通知する(ステップS1102)。これにより、レジスタ17のECU1aの状態を示すデータは’1’となる。   First, the ECU 1 inquires whether or not each of the ECUs 1a and 1b is activated by communication using the CAN protocol (step S1101). Here, since the ECU 1a is activated, the ECU 1a notifies the ECU 1 that it is activated (step S1102). As a result, the data indicating the state of the ECU 1a of the register 17 is “1”.

その後、ECU1bが外部トリガにより起動すると(ステップS1103)、ECU1bのMCU5がCANトランシーバ/レシーバ2を起動させる(ステップS1104)。そして、ECU1は、再びCANプロトコルの通信により、各ECU1a,1bが起動しているか否かを問い合わせる(ステップS1105)。   Thereafter, when the ECU 1b is activated by an external trigger (step S1103), the MCU 5 of the ECU 1b activates the CAN transceiver / receiver 2 (step S1104). Then, the ECU 1 inquires again whether each of the ECUs 1a and 1b is activated by communication using the CAN protocol (step S1105).

これを受けて、ECU1aは、起動していることをECU1に通知する(ステップS1106)。ECU1bも起動したので、同様に起動していることをECU1に通知する(ステップS1107)。これにより、レジスタ17のECU1aの状態を示すデータ、およびECU1bの状態を示すデータは、それぞれ’1’となる。   Receiving this, the ECU 1a notifies the ECU 1 that it is activated (step S1106). Since the ECU 1b is also activated, the ECU 1 is notified of the activation (step S1107). Thereby, the data indicating the state of the ECU 1a in the register 17 and the data indicating the state of the ECU 1b are each '1'.

外部トリガで起動可能なECUは、外部トリガを検出する必要があるので、MCU5の電源はOFFせず、スタンバイ状態とし、CANトランシーバ/レシーバ2は、UARTモードでマスタのECUから、外部トリガで起動可能なECUを起動させるメッセージを待つ。   Since the ECU that can be activated by an external trigger needs to detect the external trigger, the MCU 5 is not turned off and is in a standby state, and the CAN transceiver / receiver 2 is activated by the external ECU from the master ECU in the UART mode. Wait for a message to activate a possible ECU.

マスタのECUは、任意の時間毎に各スレーブのECUが起動しているかを問い合わせ、外部トリガで起動したECUは、その問い合わせは、自ECU宛か、全ECU起動信号か、あるいは新規に起動したECUへのいずれかの場合に、問い合わせに応じる。   The master ECU inquires whether each slave ECU is activated every arbitrary time, and the ECU activated by an external trigger is directed to its own ECU, all ECU activation signals, or newly activated In any case, respond to the inquiry.

その後、スレーブのECUは、マスタのECUの指示に従い、CANモードで待機するか、もしくはUARTモードに移行するかを指示するようにしてもよい。   Thereafter, the slave ECU may instruct whether to wait in the CAN mode or shift to the UART mode in accordance with an instruction from the master ECU.

また、マスタのECUは、問い合わせと共に、外部トリガにより起動したECUが、そのままCANモードで待機するか、またはUARTモードに移行するかを指示するようにしてもよい。   In addition, the master ECU may instruct whether the ECU activated by the external trigger waits in the CAN mode or shifts to the UART mode together with the inquiry.

さらに、外部トリガによって起動したECU自身が、マスタのECUに対して起動したことを通知することも可能である。   Further, the ECU itself activated by the external trigger can notify the master ECU of the activation.

外部トリガによってMCU5が起動すると、該MCU5は、CANトランシーバ/レシーバ2を起動させる。続いて、MCU5は、任意の期間(たとえば、1ms程度)、Lo信号をCANバスを介して送信するように制御を行い、マスタのECUにECUが起動したことを通知する。   When the MCU 5 is activated by an external trigger, the MCU 5 activates the CAN transceiver / receiver 2. Subsequently, the MCU 5 performs control so as to transmit the Lo signal via the CAN bus for an arbitrary period (for example, about 1 ms), and notifies the master ECU that the ECU has started.

このLo信号による通知は、別のECUが出力するCANフレームとECUからLo信号が衝突したときに、再送を繰り返さないように、ワンショット送信とする。若しくは、別のECUの出力するCANフレームとの衝突を防止するために、異なる周波数帯を用いて通信するようにしてもよい。   The notification by the Lo signal is a one-shot transmission so that retransmission is not repeated when a CAN frame output from another ECU collides with the Lo signal from the ECU. Or in order to prevent the collision with the CAN frame which another ECU outputs, you may make it communicate using a different frequency band.

そして、マスタのECUがいずれかのスレーブのECUが起動したことを検出すると、マスタのECUは、CANプロトコルによる通信により、スレーブの該ECUへの問い合わせを行い、起動しているECUのECU情報を得る。   When the master ECU detects that one of the slave ECUs is activated, the master ECU makes an inquiry to the slave ECU via communication using the CAN protocol, and obtains ECU information of the activated ECU. obtain.

外部トリガによって起動するECUとしては、たとえば、メモリシートなどを制御するECUなどがあり、メモリシートのスイッチによって該ECUが起動すると、マスタのECUに起動を通知することになる。   As an ECU that is activated by an external trigger, for example, there is an ECU that controls a memory sheet or the like. When the ECU is activated by a switch of the memory sheet, the activation is notified to the master ECU.

以上、本発明者によってなされた発明を実施の形態に基づき具体的に説明したが、本発明は前記実施の形態に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。   As mentioned above, the invention made by the present inventor has been specifically described based on the embodiment. However, the present invention is not limited to the embodiment, and various modifications can be made without departing from the scope of the invention. Needless to say.

たとえば、前記実施の形態では、ECUが2つのレギュレータ3,4を備え、イネーブル信号ENによって、MCU5とアクチュエータAcに電源を供給するレギュレータ4をON/OFF制御する構成としたが、レギュレータを1つとし、MCU5とアクチュエータAcには、スイッチを介して電源電圧を供給する構成としてもよい。   For example, in the above-described embodiment, the ECU includes the two regulators 3 and 4 and is configured to perform ON / OFF control of the regulator 4 that supplies power to the MCU 5 and the actuator Ac by the enable signal EN. The power supply voltage may be supplied to the MCU 5 and the actuator Ac via a switch.

この場合、イネーブル信号ENは、スイッチをON/OFF制御する信号とし、スイッチがONの場合には、MCU5とアクチュエータAcとに電源が供給され、スイッチがOFFすると、MCU5とアクチュエータAcとに電源供給が停止されることになる。   In this case, the enable signal EN is a signal for ON / OFF control of the switch. When the switch is ON, power is supplied to the MCU 5 and the actuator Ac. When the switch is OFF, power is supplied to the MCU 5 and the actuator Ac. Will be stopped.

また、前記実施の形態では、通信ネットワークとしてCANを用い、レギュレータの電源のON/OFF制御をUARTプロトコルによって制御する場合について記載したが、通信ネットワークに、たとえば、FlexRayなどの他の通信ネットワークを用い、レギュレータの電源のON/OFFをLINなどの他のプロトコルによって制御する構成であってもよい。   In the above embodiment, the CAN is used as the communication network and the regulator power ON / OFF control is controlled by the UART protocol. However, for example, another communication network such as FlexRay is used as the communication network. The power supply of the regulator may be controlled by other protocols such as LIN.

本発明は、自動車などの通信システムに用いられる半導体集積回路装置における低消費電力化技術に適している。   The present invention is suitable for low power consumption technology in a semiconductor integrated circuit device used in a communication system such as an automobile.

1 ECU
1a ECU
1b ECU
2 CANトランシーバ/レシーバ
3 レギュレータ
4 レギュレータ
5 MCU
6 CANインタフェース
7 通信制御部
8 RAM
9 タイマ
10 割り込みコントローラ
11 CPU
12 ROM
13 トランシーバ/レシーバ
14 セレクト回路
15 UART用回路
16 ID判断回路
17 レジスタ
18 オンチップオシレータ
19 ウェイトメッセージ
19a SOF
19b データビット
19c パリティビット
19d ストップビット
20 CAN IDメッセージ
20a SOF
20b データビット
20c パリティビット
20d ストップビット
21 CANフレーム
22 抵抗
23 A/D変換器
R1 抵抗
Bc CANバス
Ac アクチュエータ
Bs 内部バス
1 ECU
1a ECU
1b ECU
2 CAN transceiver / receiver 3 Regulator 4 Regulator 5 MCU
6 CAN interface 7 Communication control unit 8 RAM
9 Timer 10 Interrupt controller 11 CPU
12 ROM
13 transceiver / receiver 14 select circuit 15 UART circuit 16 ID determination circuit 17 register 18 on-chip oscillator 19 wait message 19a SOF
19b Data bit 19c Parity bit 19d Stop bit 20 CAN ID message 20a SOF
20b Data bit 20c Parity bit 20d Stop bit 21 CAN frame 22 Resistor 23 A / D converter R1 Resistor Bc CAN bus Ac Actuator Bs Internal bus

Claims (6)

第1の電子制御装置と第2の電子制御装置とが通信バスで接続された通信システムであって、
前記第1および前記第2の電子制御装置は、前記通信バスを介して第1の通信プロトコルの信号を処理する第1の通信プロトコル処理部と、前記通信バスを介して第2の通信プロトコルの信号をID情報に基づいて処理する第2の通信プロトコル処理部と、動作モードとしてアクティブモードと低消費電力モードとをそれぞれ有し、
前記アクティブモードにおいては、前記第1および前記第2の通信プロトコル処理部へ電源供給が行われ、
前記低消費電力モードにおいては、前記第2の通信プロトコル処理部への電源供給は停止され、
前記第1の電子制御装置は、前記第1の通信プロトコルを用いて前記第2の電子制御装置を示すID情報を送信し、
前記第2の電子制御装置は、前記低消費電力モードにある時に、前記第2の電子制御装置を示すID情報を受信した場合は、前記第2の通信プロトコル処理部への電源供給を行う、通信システム。
A communication system in which a first electronic control device and a second electronic control device are connected by a communication bus,
The first and second electronic control units include a first communication protocol processing unit that processes a signal of the first communication protocol via the communication bus, and a second communication protocol that passes through the communication bus. A second communication protocol processing unit for processing a signal based on the ID information, and an active mode and a low power consumption mode as operation modes,
In the active mode, power is supplied to the first and second communication protocol processing units,
In the low power consumption mode, power supply to the second communication protocol processing unit is stopped,
The first electronic control unit transmits ID information indicating the second electronic control unit using the first communication protocol;
When the second electronic control device receives the ID information indicating the second electronic control device when in the low power consumption mode, the second electronic control device supplies power to the second communication protocol processing unit. Communications system.
請求項1記載の通信システムにおいて、
前記第2の電子制御装置は、前記受信したID情報が前記第2の電子制御装置のIDと一致しているかどうかを判断するID判断部を備え、
前記ID判断部は、前記低消費電力モードにおいて電源供給が行われる、通信システム。
The communication system according to claim 1, wherein
The second electronic control unit includes an ID determination unit that determines whether the received ID information matches an ID of the second electronic control unit,
The ID determination unit is a communication system in which power is supplied in the low power consumption mode.
請求項1または2記載の通信システムにおいて、
前記第1の電子制御装置と前記第2の電子制御装置とは、前記第2の電子制御装置が前記第2の電子制御装置を示すID情報を受信した後は、前記第2の通信プロトコルを用いて通信を行う、通信システム。
The communication system according to claim 1 or 2,
The first electronic control device and the second electronic control device are configured to change the second communication protocol after the second electronic control device receives ID information indicating the second electronic control device. A communication system that performs communication using.
請求項1または2記載の通信システムにおいて、
前記第2の電子制御装置は、前記第1の通信プロトコル処理部と前記第2の通信プロトコル処理部とのどちらか一方を選択する選択部を有し、
前記第2の電子制御装置を示すID情報を受信した後は、前記第2の通信プロトコルを選択する、通信システム。
The communication system according to claim 1 or 2,
The second electronic control unit includes a selection unit that selects one of the first communication protocol processing unit and the second communication protocol processing unit,
A communication system that selects the second communication protocol after receiving ID information indicating the second electronic control unit.
請求項3記載の通信システムにおいて、
前記第2の電子制御装置と同じ構成を有する第3の電子制御装置が前記通信バスに接続され、
前記第1の電子制御装置は、前記第1の電子制御装置と前記第2の電子制御装置とが前記第2の通信プロトコルにて通信を行っている状態で、前記第3の電子制御装置が前記低消費電力モードにあり、かつ前記第1の電子制御装置が前記第3の電子制御装置と前記第2の通信プロトコルにて通信を開始したい場合は、前記第2の通信プロトコルで通信停止メッセージを送信する、通信システム。
The communication system according to claim 3,
A third electronic control unit having the same configuration as the second electronic control unit is connected to the communication bus;
The first electronic control unit is configured so that the first electronic control unit and the second electronic control unit communicate with each other using the second communication protocol. When in the low power consumption mode and the first electronic control device wants to start communication with the third electronic control device using the second communication protocol, a communication stop message using the second communication protocol A communication system for transmitting.
請求項5記載の通信システムにおいて、
前記第1の電子制御装置は、前記通信停止メッセージを送信後、前記第1の通信プロトコルを用いて前記第3の電子制御装置を示すID情報を送信し、
前記第3の電子制御装置は、前記ID情報を受信後、前記第2の通信プロトコル処理部への電源供給を行う、通信システム。
The communication system according to claim 5, wherein
The first electronic control unit transmits ID information indicating the third electronic control unit using the first communication protocol after transmitting the communication stop message,
The third electronic control unit is a communication system that supplies power to the second communication protocol processing unit after receiving the ID information.
JP2015234141A 2009-05-20 2015-11-30 Communications system Active JP6010207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015234141A JP6010207B2 (en) 2009-05-20 2015-11-30 Communications system

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2009121861 2009-05-20
JP2009121861 2009-05-20
JP2009273114 2009-12-01
JP2009273114 2009-12-01
JP2015234141A JP6010207B2 (en) 2009-05-20 2015-11-30 Communications system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014213631A Division JP5849142B2 (en) 2009-05-20 2014-10-20 Control method of electronic control device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2016180331A Division JP6255072B2 (en) 2009-05-20 2016-09-15 Semiconductor device

Publications (2)

Publication Number Publication Date
JP2016048958A JP2016048958A (en) 2016-04-07
JP6010207B2 true JP6010207B2 (en) 2016-10-19

Family

ID=49844112

Family Applications (6)

Application Number Title Priority Date Filing Date
JP2013155995A Active JP5607219B2 (en) 2009-05-20 2013-07-26 Automotive communication systems
JP2013184503A Active JP5636479B2 (en) 2009-05-20 2013-09-05 Communications system
JP2014172688A Active JP5756879B2 (en) 2009-05-20 2014-08-27 Automobile
JP2014213631A Active JP5849142B2 (en) 2009-05-20 2014-10-20 Control method of electronic control device
JP2015234141A Active JP6010207B2 (en) 2009-05-20 2015-11-30 Communications system
JP2016180331A Active JP6255072B2 (en) 2009-05-20 2016-09-15 Semiconductor device

Family Applications Before (4)

Application Number Title Priority Date Filing Date
JP2013155995A Active JP5607219B2 (en) 2009-05-20 2013-07-26 Automotive communication systems
JP2013184503A Active JP5636479B2 (en) 2009-05-20 2013-09-05 Communications system
JP2014172688A Active JP5756879B2 (en) 2009-05-20 2014-08-27 Automobile
JP2014213631A Active JP5849142B2 (en) 2009-05-20 2014-10-20 Control method of electronic control device

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2016180331A Active JP6255072B2 (en) 2009-05-20 2016-09-15 Semiconductor device

Country Status (1)

Country Link
JP (6) JP5607219B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5607219B2 (en) * 2009-05-20 2014-10-15 ルネサスエレクトロニクス株式会社 Automotive communication systems
JP5732836B2 (en) * 2010-12-08 2015-06-10 株式会社オートネットワーク技術研究所 Control system and control device
KR101524143B1 (en) * 2013-12-13 2015-05-29 현대자동차주식회사 An electronic control unit and a movement control method for partial communication networking
JP6323219B2 (en) * 2014-07-04 2018-05-16 いすゞ自動車株式会社 Communication function bypass device
KR101585856B1 (en) * 2014-12-30 2016-01-15 주식회사 현대케피코 Method and Apparatus for UART and CAN Communication in Vehicle with the Same CAN Transceiver
JP6471613B2 (en) * 2015-05-28 2019-02-20 株式会社オートネットワーク技術研究所 Relay device and communication system
DE102016216066A1 (en) 2016-08-26 2018-03-01 Robert Bosch Gmbh Subscriber for a digital communication system and associated communication system
JP6307574B1 (en) * 2016-10-28 2018-04-04 エルアンドビー テクノロジー カンパニー リミテッド Public address device using CAN communication
JP6535039B2 (en) * 2017-02-14 2019-06-26 株式会社東海理化電機製作所 Electronic control unit
CN108319217A (en) * 2018-03-19 2018-07-24 延锋伟世通汽车电子有限公司 CAN, LIN control circuit based on STM32 systems
IT201800003980A1 (en) 2018-03-26 2019-09-26 Stmicroelectronics Application Gmbh COMMUNICATION PROCESS, SYSTEM, DEVICES, SIGNAL AND CORRESPONDING VEHICLE
CN114900392B (en) * 2022-05-16 2023-07-25 株洲嘉成科技发展股份有限公司 Method for transmitting serial port data by CAN bus

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11316629A (en) * 1998-05-07 1999-11-16 Oki Electric Ind Co Ltd Electronic machine system
JP3724318B2 (en) * 2000-03-16 2005-12-07 松下電工株式会社 TV door phone device
JP2002140111A (en) * 2000-11-01 2002-05-17 Shimizu Corp Integration system for facility equipment control
DE10134584B4 (en) * 2001-07-17 2005-12-08 Siemens Ag Bus system and method for exchanging data
JP3797166B2 (en) * 2001-09-18 2006-07-12 株式会社デンソー Network system
CN1659066A (en) * 2002-06-10 2005-08-24 皇家飞利浦电子股份有限公司 Method and system for switching between subnetwork operation and full network operation
DE10358584A1 (en) * 2002-12-30 2004-07-15 Robert Bosch Gmbh Waking of bus members in sleep mode, especially for application to a motor vehicle CAN bus system, whereby the time interval between signal flanks on the bus system is measured and a corresponding bus member activated
JP4083598B2 (en) * 2003-03-07 2008-04-30 本田技研工業株式会社 Network system
JP2006020038A (en) * 2004-07-01 2006-01-19 Denso Corp Physical quantity sensor device and inspecting device therefor
JP4225264B2 (en) * 2004-10-06 2009-02-18 株式会社デンソー Communication device
JP2006327217A (en) * 2005-05-23 2006-12-07 Fujitsu Ten Ltd Program for vehicle control and electronic control device for vehicle
JP4807497B2 (en) * 2005-12-14 2011-11-02 日本電気株式会社 Method and system for controlling multiple transmitters
US7539888B2 (en) * 2006-03-31 2009-05-26 Freescale Semiconductor, Inc. Message buffer for a receiver apparatus on a communications bus
JP2008199253A (en) * 2007-02-13 2008-08-28 Fujitsu Ten Ltd Abnormality diagnosis system and diagnostic information management device
JP2008222051A (en) * 2007-03-13 2008-09-25 Denso Corp Microcomputer, program, electronic control device, and communication system
JP2008263294A (en) * 2007-04-10 2008-10-30 Sharp Corp Communication terminal device
JP5363379B2 (en) * 2009-05-20 2013-12-11 ルネサスエレクトロニクス株式会社 Communications system
JP5607219B2 (en) * 2009-05-20 2014-10-15 ルネサスエレクトロニクス株式会社 Automotive communication systems

Also Published As

Publication number Publication date
JP2014003703A (en) 2014-01-09
JP2013243758A (en) 2013-12-05
JP2016048958A (en) 2016-04-07
JP5607219B2 (en) 2014-10-15
JP6255072B2 (en) 2017-12-27
JP2017028719A (en) 2017-02-02
JP5636479B2 (en) 2014-12-03
JP2015013641A (en) 2015-01-22
JP2015039224A (en) 2015-02-26
JP5849142B2 (en) 2016-01-27
JP5756879B2 (en) 2015-07-29

Similar Documents

Publication Publication Date Title
JP5363379B2 (en) Communications system
JP6255072B2 (en) Semiconductor device
JP4483694B2 (en) Vehicle communication system
JP2014155172A (en) Communication system and communication node
JP2007251722A (en) Communication device, on-vehicle system, data storing method and program
JP4770701B2 (en) Vehicle communication system
JP2009296280A (en) Communication network system, and communication control method thereof
CN112208467A (en) Vehicle-mounted network system
JP4847847B2 (en) Relay connection unit and in-vehicle multiple communication system
JP6410914B1 (en) Serial communication system
JP2007030714A (en) Communication system for vehicle
JP2009124480A (en) Onboard gateway and vehicle communication system
JP5614365B2 (en) Data relay device, in-vehicle network
JP2019009678A (en) On-vehicle communication network system
JP2010258635A (en) Control apparatus
JP2008260411A (en) Gateway device and its control method
JP2014086848A (en) Communication system and communication method
JP2007251444A (en) Serial communication method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160812

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: 20160816

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160915

R150 Certificate of patent or registration of utility model

Ref document number: 6010207

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150