JP2015199444A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2015199444A
JP2015199444A JP2014080107A JP2014080107A JP2015199444A JP 2015199444 A JP2015199444 A JP 2015199444A JP 2014080107 A JP2014080107 A JP 2014080107A JP 2014080107 A JP2014080107 A JP 2014080107A JP 2015199444 A JP2015199444 A JP 2015199444A
Authority
JP
Japan
Prior art keywords
transceiver
data
communication
control unit
electronic control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014080107A
Other languages
Japanese (ja)
Inventor
鈴木 彰
Akira Suzuki
彰 鈴木
岸上 友久
Tomohisa Kishigami
友久 岸上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2014080107A priority Critical patent/JP2015199444A/en
Publication of JP2015199444A publication Critical patent/JP2015199444A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an electronic control device which suppresses the power consumption of a battery, and can specify an abnormality occurrence part on a network in a sleep operation.SOLUTION: An electronic control device comprises a communication control part and a transceiver which are connected to each other via a transmission line and a reception line, and a storage part which stores a reception signal received by the transceiver as wakeup data when the electronic control device operates at a sleep mode being an operation mode which is smaller in power consumption than a normal mode being a normal operation state. The transceiver sends out a transmission signal which is inputted from the communication control part via the transmission line to a communication path, and outputs a reception signal received from the communication path to the communication control part via the reception line. The communication control part starts to be transited to the normal mode from the sleep mode when receiving the wakeup data from the transceiver, acquires the wakeup data from the storage part after transited to the normal mode, and determines whether or not the wakeup data are proper.

Description

本発明は、電子制御装置、特に、制御ユニットを含む通信ネットワークに接続された電子制御装置に関する。   The present invention relates to an electronic control device, and more particularly to an electronic control device connected to a communication network including a control unit.

近年、車両に搭載される電装品の数は、車両の高機能化および高性能化に伴って急増しており、車両内の配線が複雑化するとともに大規模化している。そこで、車両内の配線の本数増加を抑制すべく、電装品を制御する電子制御ユニット(ECUともいう)をシートやドアのボデー系、エンジンやスロットル等のパワートレイン系などに区分けしてグループ化し、グループ毎にECUを通信バスで接続するとともに、これら通信バス間に中継接続ユニット(ゲートウェイ装置ともいう)を設け、該中継接続ユニットを介してグループ間の通信を行う車両用通信システムが用いられている。   In recent years, the number of electrical components mounted on a vehicle has increased rapidly as the functions and performance of the vehicle have increased, and the wiring in the vehicle has become more complex and larger. Therefore, in order to suppress the increase in the number of wires in the vehicle, electronic control units (also referred to as ECUs) that control electrical components are grouped by dividing them into body systems for seats and doors, and power train systems such as engines and throttles. In addition, an ECU is connected to each group via a communication bus, a relay connection unit (also referred to as a gateway device) is provided between the communication buses, and a vehicle communication system that performs communication between groups via the relay connection unit is used. ing.

車両用通信システムにおいては、通信バス上に存在する複数のECUのいずれかが故障して通信異常が発生すると、車両や電装品の制御に支障をきたすこととなる。よって、通信異常を発生させているECUや該ECUが接続されている通信バスを早期に特定して、通信異常対処を迅速に開始することが好ましい。   In a vehicle communication system, if any of a plurality of ECUs existing on a communication bus fails and a communication abnormality occurs, control of the vehicle and electrical components is hindered. Therefore, it is preferable to identify the ECU causing the communication abnormality and the communication bus to which the ECU is connected at an early stage, and to quickly start dealing with the communication abnormality.

そこで、正常な状態のCAN通信回路に通電したときの各フィルタ回路部の電圧を予め測定しておき、この正常値と検査時に測定した各フィルタ回路部の電圧値とを比較し、その比較結果および測定するフィルタ回路部に基づいて、天絡、地絡、短絡といった異常を検知するとともに、異常が発生した通信バスあるいはECUを特定できる異常検知システムが考案されている(特許文献1参照)。   Therefore, the voltage of each filter circuit unit when the CAN communication circuit in a normal state is energized is measured in advance, and the normal value is compared with the voltage value of each filter circuit unit measured at the time of inspection. Based on the filter circuit section to be measured, an abnormality detection system has been devised that can detect an abnormality such as a power fault, a ground fault, and a short circuit, and can identify the communication bus or ECU in which the abnormality has occurred (see Patent Document 1).

また、通信バスを介して電子制御ユニットから受信するメッセージフレームの数を、各メッセージフレームに付されたID(識別子)毎にカウントし、カウント数を予め設定した単位時間あたりの基準値と比較してメッセージフレームが通信異常であるかを判定する車載用多重通信装置が考案されている(特許文献2参照)。   The number of message frames received from the electronic control unit via the communication bus is counted for each ID (identifier) attached to each message frame, and the count number is compared with a preset reference value per unit time. An in-vehicle multiplex communication device that determines whether a message frame is abnormal in communication has been devised (see Patent Document 2).

また、マスタノード(ECU)が、パターン信号と他のノードの識別アドレスとを対にして通信バスへ送信し、他のノードは、自己の識別アドレスと対になるパターン信号を受信したときに、受信パターン信号および受信アドレスを折返し通信バスへ返送し、マスタノードは、これらパターン信号および識別アドレスの受信状態に応じて通信バスの監視を行う通信バス監視装置が考案されている(特許文献3参照)。   Further, when the master node (ECU) transmits the pattern signal and the identification address of the other node in pairs to the communication bus, and the other node receives the pattern signal that is paired with its own identification address, A communication bus monitoring device has been devised in which the reception pattern signal and the reception address are returned to the return communication bus, and the master node monitors the communication bus according to the reception state of the pattern signal and the identification address (see Patent Document 3). ).

特開2009−130774号公報JP 2009-130774 A 特開2008−236408号公報JP 2008-236408 A 特開平06−326716号公報Japanese Patent Laid-Open No. 06-326716

従来技術では、通信バスに特定の信号(例えば、ウエイクアップ要求信号)が送出されることで、ECUは、通信を停止して消費電力を低減するスリープモードから、通信を実行可能な通常モードに遷移(ウエイクアップ)するように構成されている。例えば、ゲートウエイ装置が他のECUからウエイクアップ要求信号を受信すると、自らがウエイクアップした後に、関係するECUにウエイクアップ要求信号を送信する。   In the prior art, a specific signal (for example, a wake-up request signal) is sent to the communication bus, so that the ECU changes from a sleep mode in which communication is stopped to reduce power consumption to a normal mode in which communication can be performed. It is configured to make a transition (wake up). For example, when the gateway device receives a wake-up request signal from another ECU, the wake-up request signal is transmitted to the related ECU after it wakes up.

ゲートウエイ装置のMPUは、ウエイクアップ要求信号のエッジ(立下り等)、レベル(“L”区間)でウエイクアップしており、ウエイクアップ要求信号の内容を判別しているわけではない。このため、ウエイクアップ要求信号に類似の外来ノイズや他のECUの動作異常により通信バス上に送出された信号でもウエイクアップすることもあり得る。   The MPU of the gateway apparatus wakes up at the edge (falling edge, etc.) and level (“L” section) of the wakeup request signal, and does not determine the contents of the wakeup request signal. For this reason, it may be possible to wake up even a signal sent on the communication bus due to external noise similar to the wake-up request signal or abnormal operation of another ECU.

特許文献1〜3の構成では、ウエイクアップ要求信号が適正なものか否かを判定するときや、ECUあるいは通信バスの異常判定を実施するときは、全てのECUをウエイクアップさせる必要がある。このため、特に車両が駐車中、すなわち、バッテリへの充電が行われていないときには、暗電流が増加し、バッテリを消耗させる。   In the configurations of Patent Documents 1 to 3, it is necessary to wake up all the ECUs when determining whether or not the wake-up request signal is appropriate or when performing abnormality determination of the ECU or the communication bus. For this reason, particularly when the vehicle is parked, that is, when the battery is not charged, the dark current increases and the battery is consumed.

上記問題点を背景として、本発明は、バッテリの電力消費を抑え、スリープ動作中のネットワーク上の異常発生箇所の特定を可能とする電子制御装置を提供することを目的とする。   Against the background of the above problems, an object of the present invention is to provide an electronic control device that can reduce the power consumption of a battery and identify an abnormality occurrence location on a network during a sleep operation.

上記課題を解決するための電子制御装置は、他の制御ユニットと通信バスを介して通信する電子制御装置であって、送信線と受信線を介して互いに接続された通信制御部とトランシーバと、電子制御装置が、通常の動作状態である通常モードよりも消費電力の少ない動作状態であるスリープモードで動作時に、トランシーバが受信した受信信号をウエイクアップデータとして記憶する記憶部と、を備え、トランシーバは、通信制御部から送信線を介して入力される送信信号を通信バスに送出するとともに、通信バスから受信した受信信号を、受信線を介して通信制御部へ出力し、通信制御部は、トランシーバからウエイクアップデータを受信したときに、スリープモードから通常モードへの遷移を開始し、通常モードに遷移した後に、記憶部からウエイクアップデータを取得し、ウエイクアップデータが適正なものか否かを判定する。   An electronic control device for solving the above problems is an electronic control device that communicates with another control unit via a communication bus, a communication control unit and a transceiver connected to each other via a transmission line and a reception line, A storage unit that stores a received signal received by the transceiver as wake-up data when the electronic control unit operates in a sleep mode, which is an operation state in which power consumption is lower than that in a normal mode, which is a normal operation state; The transmission signal input from the communication control unit via the transmission line is sent to the communication bus, and the reception signal received from the communication bus is output to the communication control unit via the reception line. When the wakeup data is received from the device, the transition from the sleep mode to the normal mode is started, and after the transition to the normal mode, the storage unit Get the Luo wake-up data, it determines whether the wake-up data is correct ones.

上記構成によって、1つの電子制御装置に、通信バス毎に一時記憶部(バッファ)を設けることで、ウエイクアップデータと思われる受信信号を記憶でき、ウエイクアップ後の電子制御装置の処理によって、ウエイクアップデータが適正なものか否かを判定できる。このため、各制御ユニットに一時記憶部を設けなくてもよい。さらに、判定処理を電子制御装置で一括して行うため、制御ユニットをウエイクアップさせたり、各制御ユニットに判定処理を行わせる必要がないので、消費電流を低減できる。   With the above configuration, by providing a temporary storage unit (buffer) for each communication bus in one electronic control device, it is possible to store a reception signal that seems to be wakeup data, and the wakeup data is processed by the processing of the electronic control device after wakeup. It can be determined whether or not is appropriate. For this reason, it is not necessary to provide a temporary storage part in each control unit. Furthermore, since the determination process is collectively performed by the electronic control device, it is not necessary to wake up the control unit or cause each control unit to perform the determination process, so that current consumption can be reduced.

本発明の電子制御装置の概略図。Schematic of the electronic control device of the present invention. ウエイクアップ動作の流れを説明するフロー図。The flowchart explaining the flow of wakeup operation | movement. 図2におけるデータおよび信号の状態を示すタイミングチャート。The timing chart which shows the state of the data and signal in FIG. 本発明の電子制御装置の別例の概略図。Schematic of another example of the electronic control device of the present invention.

以下、本発明の電子制御装置を、制御ユニットが通信線により接続されたネットワークが複数形成され、該複数のネットワークが接続された車両用ゲートウエイ装置(以下、「ゲートウエイ装置」と略称)に適用したものを例に挙げて説明する。図1のように、ゲートウエイ装置10には、複数の車内通信ネットワーク(以下、「ネットワーク」と略称)50、60、70が接続されている。   Hereinafter, the electronic control device of the present invention is applied to a vehicle gateway device (hereinafter abbreviated as “gateway device”) in which a plurality of networks in which control units are connected by communication lines are formed and the plurality of networks are connected. An example will be described. As shown in FIG. 1, a plurality of in-vehicle communication networks (hereinafter abbreviated as “networks”) 50, 60, 70 are connected to the gateway device 10.

図1の構成が、「電子制御装置は、制御ユニットが通信バスにより接続されたネットワークが複数形成され、これら複数のネットワークの間でデータの中継を行う車両用ゲートウエイ装置である」ものである。本構成によって、上述した効果を奏することができる。   The configuration of FIG. 1 is “an electronic control device is a vehicle gateway device in which a plurality of networks in which control units are connected by a communication bus are formed and data is relayed between the plurality of networks”. With this configuration, the above-described effects can be achieved.

ネットワーク(50、60、70の総称、以下同じ)は、通信プロトコルとしてCAN(Controller Area Network)を用いる。無論、CAN以外の通信プロトコルを用いてもよいし、ネットワーク毎に異なる通信プロトコルを用いてもよい。また、ネットワークは、例えば、車両の機能ごとに分けられて構成されている。ネットワークは、少なくとも1つがゲートウエイ装置10に接続されていればよい。   The network (generic name of 50, 60, 70, the same applies hereinafter) uses CAN (Controller Area Network) as a communication protocol. Of course, a communication protocol other than CAN may be used, or a different communication protocol may be used for each network. Moreover, the network is divided and configured for each function of the vehicle, for example. It is sufficient that at least one network is connected to the gateway device 10.

ネットワーク50では、通信バス51に、ECU1〜3が接続される。これらのECUとしては、車両の旋回挙動を安定化させるためのVSC(Vehicle Stability Control) ECU、車内の空調を制御するエアコンECU、エンジン制御を行うエンジンECUのような走行制御系ECUが挙げられる。   In the network 50, ECUs 1 to 3 are connected to the communication bus 51. Examples of these ECUs include a VSC (Vehicle Stability Control) ECU for stabilizing the turning behavior of the vehicle, an air conditioner ECU for controlling air conditioning in the vehicle, and a travel control system ECU such as an engine ECU for engine control.

ネットワーク60では、通信バス61に、ECU4〜6が接続される。これらのECUとしては、シートの位置あるいは高さを調整するためのシートECU、窓の開閉制御を行うパワーウインドウECU用、電動ミラーの格納/展開等を行う電動ミラーECU、ドアロック装置の解錠/施錠を行うドアロックECUのような、車両のボデー系のECUが挙げられる。   In the network 60, ECUs 4 to 6 are connected to the communication bus 61. These ECUs include a seat ECU for adjusting the position or height of the seat, a power window ECU for controlling opening and closing of the window, an electric mirror ECU for storing and unfolding the electric mirror, and the unlocking of the door lock device. / A vehicle body ECU such as a door lock ECU for locking.

ネットワーク70では、通信バス71に、ECU7〜9が接続される。これらのECUとしては、オーディオ装置あるいはナビゲーション装置のようなマルチメディア系機器が挙げられる。   In the network 70, ECUs 7 to 9 are connected to the communication bus 71. Examples of these ECUs include multimedia devices such as audio devices and navigation devices.

CANプロトコルでは、CANH(50H、60H、70Hに相当)、CANL(50L、60L、70Lに相当)と呼ばれる2本の信号線の電圧差の有無によって「0」、「1」のレベルを検出する2線式差動伝送方式で通信を行う。   In the CAN protocol, the levels of “0” and “1” are detected based on the presence or absence of a voltage difference between two signal lines called CANH (equivalent to 50H, 60H, and 70H) and CANL (equivalent to 50L, 60L, and 70L). Communication is performed using a two-wire differential transmission method.

ゲートウエイ装置10は、MPU11(本発明の通信制御部)、および、送信線TxD、受信線RxD、モード制御線STBを介してMPU11に接続されたトランシーバ20、30、40を含む。MPU11は、CPU11a、制御プログラムおよびデータが記憶された不揮発メモリであるメモリ11b、および周辺回路(図示せず)を含む周知のワンチップマイコンとして構成される。CPU11aがメモリ11bに記憶された制御プログラムを実行することで、ゲートウエイ装置10の種々の機能を実現する。   The gateway apparatus 10 includes an MPU 11 (communication control unit of the present invention), and transceivers 20, 30, and 40 connected to the MPU 11 via a transmission line TxD, a reception line RxD, and a mode control line STB. The MPU 11 is configured as a well-known one-chip microcomputer including a CPU 11a, a memory 11b which is a nonvolatile memory storing control programs and data, and peripheral circuits (not shown). Various functions of the gateway device 10 are realized by the CPU 11a executing the control program stored in the memory 11b.

トランシーバ(20、30、40の総称、以下同じ)は同様の構成であるので、トランシーバ20を例に挙げて構成を説明する。トランシーバ20は、送受信回路21(送信部21a、受信部21b)、バッファ22(本発明の記憶部)を含む。送信部21aは、MPU11から送信線TxDを介して入力された送信信号に基づき差動信号を生成して通信バス51に送出する。また、受信部21bは、通信バス51から受信した差動信号から「0」、「1」のレベルを検出し、受信信号として受信線RxDを介してMPU11へ出力する。   Since the transceiver (generic name of 20, 30, 40, the same applies hereinafter) has the same configuration, the configuration will be described by taking the transceiver 20 as an example. The transceiver 20 includes a transmission / reception circuit 21 (transmission unit 21a, reception unit 21b) and a buffer 22 (storage unit of the present invention). The transmission unit 21 a generates a differential signal based on the transmission signal input from the MPU 11 via the transmission line TxD and sends it to the communication bus 51. In addition, the receiving unit 21b detects the levels “0” and “1” from the differential signal received from the communication bus 51, and outputs the detected signals to the MPU 11 via the reception line RxD.

バッファ22は、少なくともスリープモード時に受信した受信信号を一時保存する。バッファの容量は、受信するウエイクアップデータのデータ長および記憶するデータ数によって定められる。   The buffer 22 temporarily stores the received signal received at least in the sleep mode. The capacity of the buffer is determined by the data length of the received wakeup data and the number of data to be stored.

上述の構成が、「記憶部は、トランシーバに含まれ、通信制御部は、通常モードに遷移した後に、トランシーバに対し、記憶部からウエイクアップデータを読み出して、通信制御部に送信させる」ものである。本構成によって、通信バス毎に異常を判定するので、他の通信バスに接続された制御ユニットを無駄にウエイクアップさせることによる消費電流の増加を抑制できる。   The above-described configuration is “the storage unit is included in the transceiver, and the communication control unit causes the transceiver to read the wake-up data from the storage unit and transmit it to the communication control unit after transition to the normal mode”. . With this configuration, since an abnormality is determined for each communication bus, an increase in current consumption due to wasteful wakeup of control units connected to other communication buses can be suppressed.

MPU11は、モード制御線STBから現在の動作モードに対応する信号を出力する。すなわち、通常の動作状態である通常モードのときはLレベルを出力し、通常モードよりも消費電力の少ない動作状態であるスリープモードのときはHレベルを出力する。トランシーバ20では、モード制御線STBからLレベルが入力されたときは(通常モード)、トランシーバ20全体を動作させる。一方、モード制御線STBからHレベルが入力されたときは(スリープモード)、少なくとも受信部21bを動作させる。バッファ22も動作させてもよい。   The MPU 11 outputs a signal corresponding to the current operation mode from the mode control line STB. That is, the L level is output in the normal mode that is the normal operation state, and the H level is output in the sleep mode that is the operation state that consumes less power than the normal mode. When the L level is input from the mode control line STB (normal mode), the transceiver 20 operates the entire transceiver 20. On the other hand, when the H level is input from the mode control line STB (sleep mode), at least the receiving unit 21b is operated. The buffer 22 may also be operated.

通信プロトコルにLINを用いる構成では、ECU(1〜9の総称、以下同じ)が通信バスをウエイクアップさせたい場合、ウエイクアップフレームと呼ばれる一定時間のドミナント(Lレベル)信号を送信する。このドミナント信号をゲートウエイ装置のトランシーバが受信して、CPUの外部割込みや電源回路のイネーブル信号を制御し、ウエイクアップ動作を開始する。   In a configuration using LIN as a communication protocol, when an ECU (generic name of 1 to 9, hereinafter the same) wants to wake up a communication bus, a dominant (L level) signal called a wake-up frame is transmitted. The dominant signal is received by the transceiver of the gateway device, and an external interrupt of the CPU and an enable signal of the power supply circuit are controlled to start a wakeup operation.

図2を用いて、ゲートウエイ装置10で実行されるウエイクアップ動作の流れを、ネットワーク50を例に挙げて説明する。ゲートウエイ装置10(少なくともトランシーバ20)がスリープモードで動作していることが前提となる(S11)。   The flow of a wake-up operation executed by the gateway device 10 will be described using the network 50 as an example with reference to FIG. It is assumed that the gateway device 10 (at least the transceiver 20) is operating in the sleep mode (S11).

ゲートウエイ装置10がスリープモードで動作する状況として、例えば、車両が駐車状態(エンジン停止、車速ゼロ、シフトレバーがパーキングの位置、駐車ブレーキ作動などのうちの少なくとも一つを含む状態)にあるときが挙げられる。よって、本処理を、車両が駐車状態のときにのみ実行してもよい。本構成が、「車両状態を取得する車両状態取得部と、車両状態に基づき車両が駐車状態か否かを判定する状態判定部と、を備え、通信制御部は、車両が駐車状態であるときに、ウエイクアップデータが適正なものか否かを判定する」ものである。   As a situation in which the gateway device 10 operates in the sleep mode, for example, the vehicle is in a parking state (a state including at least one of engine stop, vehicle speed zero, shift lever parking position, parking brake operation, etc.). Can be mentioned. Therefore, this process may be executed only when the vehicle is parked. This configuration includes “a vehicle state acquisition unit that acquires a vehicle state and a state determination unit that determines whether the vehicle is in a parking state based on the vehicle state, and the communication control unit is when the vehicle is in a parking state. Then, it is determined whether or not the wake-up data is appropriate.

上記構成によって、電子制御装置および制御ユニットの消費電流(暗電流)の増加を、実質的に電子制御装置の消費電流の増加分のみに抑えることができる。また、車両が駐車中に、異常の検出および原因の特定を行うことができ、ユーザに状況を報知したり、安全性を考慮した縮退動作を行うことで、車両あるいは運転時の安全性を高めることができる。   With the above configuration, it is possible to suppress an increase in current consumption (dark current) of the electronic control device and the control unit substantially only to an increase in current consumption of the electronic control device. In addition, when the vehicle is parked, the abnormality can be detected and the cause can be identified, and the safety of the vehicle or driving can be improved by notifying the user of the situation or performing a degeneracy operation considering safety. be able to.

なお、車両状態は、例えば、走行制御系ECU(4〜6)、あるいはボデー系ECU(7〜9)から取得可能で、ゲートウエイ装置10がスリープモードに遷移する直前に取得したものをメモリ11bに格納しておき、これを用いて判定する。   The vehicle state can be acquired from, for example, the travel control system ECU (4 to 6) or the body system ECU (7 to 9), and the vehicle state acquired immediately before the gateway device 10 enters the sleep mode is stored in the memory 11b. It is stored and judged using this.

通信バス51上のECU1〜3は、自身がスリープモードに遷移する際、その旨の情報(スリープモード遷移情報)をゲートウエイ装置10に送信する。MPU11は、通信バス51に接続された全てのECU(1〜3)からスリープモード遷移情報を受信すると、ネットワーク50全体がスリープモードに遷移したと見なして、トランシーバ20に接続されたモード制御線STBにHレベルを出力する。そして、他の通信バス(61、71)上の全てのECU(4〜9)からスリープモード遷移情報を受信すると、MPU11は、トランシーバ30、40に接続されたモード制御線STBにHレベルを出力した後、自身(ゲートウエイ装置10全体でもよい)もスリープモードに遷移する。   When the ECUs 1 to 3 on the communication bus 51 transition to the sleep mode, the ECUs 1 to 3 transmit information to that effect (sleep mode transition information) to the gateway device 10. When the MPU 11 receives the sleep mode transition information from all the ECUs (1 to 3) connected to the communication bus 51, the MPU 11 considers that the entire network 50 has transitioned to the sleep mode, and the mode control line STB connected to the transceiver 20. H level is output. When the sleep mode transition information is received from all the ECUs (4-9) on the other communication buses (61, 71), the MPU 11 outputs the H level to the mode control line STB connected to the transceivers 30, 40. After that, the device itself (or the entire gateway device 10) may transition to the sleep mode.

スリープモードでは、MPU11は、少なくとも受信線RxDの入力を検出する機能は動作している。また、トランシーバ20は、少なくとも受信部21bは動作している(トランシーバ30、40も同様)。この状態で、例えば、トランシーバ20が、通信バス51(例えば、ECU3)からウエイクアップデータ(以下、「データ」と略称)を受信したとき(S12:Yes)、トランシーバ20では、データをバッファ22に一時記憶するとともに(S13)、受信線RxDを介してMPU11に出力する。この時点では、データがウエイクアップ信号かは分からない。   In the sleep mode, the MPU 11 operates at least the function of detecting the input of the reception line RxD. In the transceiver 20, at least the receiving unit 21b is operating (the same applies to the transceivers 30 and 40). In this state, for example, when the transceiver 20 receives wake-up data (hereinafter abbreviated as “data”) from the communication bus 51 (for example, the ECU 3) (S12: Yes), the transceiver 20 temporarily stores the data in the buffer 22. The information is stored (S13) and output to the MPU 11 via the reception line RxD. At this point, it is not known whether the data is a wakeup signal.

MPU11は、例えば、外部割込み機能を利用して、受信線RxDのレベル変化に基づいてデータの有無を検知する。MPU11がスリープモードのときにデータを検知すると、MPU11はウエイクアップして通常モードへの遷移を開始する(S14)。   For example, the MPU 11 detects the presence / absence of data based on the level change of the reception line RxD using an external interrupt function. When the MPU 11 detects data when the MPU 11 is in the sleep mode, the MPU 11 wakes up and starts transition to the normal mode (S14).

通常モードへの遷移が完了すると、モード制御線STBにLレベル(データ要求信号)を出力し、トランシーバ20をウエイクアップさせる。Lレベルを出力した後に所定時間Hレベルを出力した後、再度Lレベルを出力してもよい。このパルス信号が、MPU11からトランシーバ20に対するデータ要求信号となる。なお、ゲートウエイ装置10の他の回路は、スリープモードで動作したままでもよい。   When the transition to the normal mode is completed, the L level (data request signal) is output to the mode control line STB, and the transceiver 20 is woken up. The L level may be output again after outputting the H level for a predetermined time after outputting the L level. This pulse signal becomes a data request signal from the MPU 11 to the transceiver 20. Note that other circuits of the gateway device 10 may remain operating in the sleep mode.

次に、モード制御線STBのHレベル→Lレベルへの変化を検知したトランシーバ20では、受信部21bが、バッファ22からデータを読み出し(S15)、MPU11へ送信する(S16)。データを読み出した後には、バッファ22には初期値を格納する。   Next, in the transceiver 20 that detects the change of the mode control line STB from the H level to the L level, the receiving unit 21b reads the data from the buffer 22 (S15) and transmits the data to the MPU 11 (S16). After reading the data, the buffer 22 stores the initial value.

上述の構成が、「通信制御部とトランシーバは、モード制御線により接続され、通信制御部は、モード制御線を介して動作状態に対応する信号を出力し、トランシーバは、入力された動作状態に対応する信号の状態に基づいて、記憶部からウエイクアップデータを読み出す」ものである。本構成によって、既存の信号線を用いることにより、低コストで本発明の構成を実現できる。   The above-described configuration is as follows: “The communication control unit and the transceiver are connected by the mode control line, the communication control unit outputs a signal corresponding to the operation state via the mode control line, and the transceiver enters the input operation state. Based on the state of the corresponding signal, the wake-up data is read from the storage unit ”. With this configuration, the configuration of the present invention can be realized at low cost by using an existing signal line.

次に、MPU11は、受信したデータを解析し(S17)、以下のうちの少なくとも一つを用いて、データが適正なものか否かを判定する(S18)。
・ウエイクアップ信号が所定時間のLレベル信号であるとき、データのLレベル時間を測定し、所定時間との差が予め定められた閾値以内のとき、正常なウエイクアップ信号と判定。
・ウエイクアップ信号が予め定められたパターンの信号であるとき、メモリ11bに記憶された基準パターンとデータのパターンと比較し、両者が一致したとき、正常なウエイクアップ信号と判定。
Next, the MPU 11 analyzes the received data (S17), and determines whether the data is appropriate using at least one of the following (S18).
When the wakeup signal is an L level signal for a predetermined time, the L level time of the data is measured, and when the difference from the predetermined time is within a predetermined threshold, it is determined as a normal wakeup signal.
When the wakeup signal is a signal of a predetermined pattern, the reference pattern and the data pattern stored in the memory 11b are compared, and when both match, it is determined as a normal wakeup signal.

最後に、MPU11は、以下のうちの少なくとも一つを用いて、上述の判定結果に基づく処理を実行する(S19)。
・正常なウエイクアップ信号と判定したとき、ゲートウエイ装置10の全体が通常モードで動作する。ウエイクアップ信号を送信して来なかった通信バスに接続されたトランシーバはウエイクアップさせなくてもよい。上述のウエイクアップ信号に基づいて、ネットワーク50の他のECU(1または2)にウエイクアップ要求信号あるいは状態問い合わせ信号を送信する。また、必要に応じて、他のネットワーク(60、70)にウエイクアップ要求信号あるいは状態問い合わせ信号を送信する。
・正常なウエイクアップ信号でないと判定したとき、かつ、信号の送信元のECU3が特定可能なとき、ECU3に状態問い合わせ信号を送信する。あるいは、他のECU(他のネットワークに接続されているものも含めてもよい)をウエイクアップさせた後、ECU3の動作に異常が発生した旨のデータを送信してもよい。
Finally, the MPU 11 executes processing based on the above determination result using at least one of the following (S19).
When the normal wakeup signal is determined, the entire gateway device 10 operates in the normal mode. The transceiver connected to the communication bus that has not transmitted the wakeup signal may not be waked up. Based on the wakeup signal described above, a wakeup request signal or a status inquiry signal is transmitted to another ECU (1 or 2) of the network 50. Further, a wakeup request signal or a status inquiry signal is transmitted to other networks (60, 70) as necessary.
When it is determined that the signal is not a normal wakeup signal, and when the ECU 3 that is the signal transmission source can be specified, a state inquiry signal is transmitted to the ECU 3. Alternatively, data indicating that an abnormality has occurred in the operation of the ECU 3 may be transmitted after wake-up of another ECU (which may include one connected to another network).

ステップS15〜S19の処理は、ゲートウエイ装置10がスリープモードに遷移する直前に、車両が駐車状態にある旨の情報を取得していたときのみに実行してもよい。   The processes in steps S15 to S19 may be executed only when the gateway apparatus 10 has acquired information indicating that the vehicle is in a parked state immediately before the gateway apparatus 10 transitions to the sleep mode.

図3に、図2の動作に対応する各信号のタイミングチャートを示す。時刻T0までは、ゲートウエイ装置10は通常モードで動作している。通信バス51、および送信線TxD、受信線RxDには、各ECUの状況に応じたデータ(D1およびD2、T1、R1およびR2)が流れる。バッファ22には初期値が格納されている。MPU11は、モード制御線STBにLレベルを出力している。   FIG. 3 shows a timing chart of each signal corresponding to the operation of FIG. Until time T0, the gateway device 10 operates in the normal mode. Data (D1 and D2, T1, R1, and R2) according to the situation of each ECU flows through the communication bus 51, the transmission line TxD, and the reception line RxD. The buffer 22 stores an initial value. The MPU 11 outputs L level to the mode control line STB.

時刻T0で、MPU11がモード制御線STBにHレベルを出力し、ゲートウエイ装置10が通常モードからスリープモードに遷移する。この後、時刻T1で、通信バス51にデータD3が流れると、トランシーバ20はこれを受信し(R3)、受信線RxDを介してMPU11に出力する。さらに、受信したデータをバッファ22に格納する。   At time T0, the MPU 11 outputs an H level to the mode control line STB, and the gateway device 10 transitions from the normal mode to the sleep mode. Thereafter, when data D3 flows on the communication bus 51 at time T1, the transceiver 20 receives this (R3) and outputs it to the MPU 11 via the reception line RxD. Further, the received data is stored in the buffer 22.

MPU11は、時刻T1にデータR3の入力を検知すると、通常モードからスリープモードに遷移を開始する。遷移途中では、MPU11は、データの判定を行うことはできない。そして、モード制御線STBにLレベルを出力する(時刻T2)。トランシーバ20は、モード制御線STBがLレベルに変化したことを検知すると、バッファ22からデータR3を読み出して、データR4としてMPU11に出力する(時刻T3)。このとき、バッファには初期値を格納する。MPU11は、このデータR4を取得して、データD3が正常なウエイクアップデータか否かを判定する。   When the MPU 11 detects the input of the data R3 at time T1, the MPU 11 starts transition from the normal mode to the sleep mode. During the transition, the MPU 11 cannot perform data determination. Then, the L level is output to the mode control line STB (time T2). When the transceiver 20 detects that the mode control line STB has changed to the L level, the transceiver 20 reads the data R3 from the buffer 22 and outputs the data R4 to the MPU 11 (time T3). At this time, the initial value is stored in the buffer. The MPU 11 acquires the data R4 and determines whether the data D3 is normal wakeup data.

図4に、ゲートウエイ装置10の構成の別例を示す。図4は、図1の変形例であるため、図1と同一の構成については同一の符号を付与し、ここでの詳細な説明は割愛する。図1では、バッファはトランシーバに含まれ、バッファへのウエイクアップデータの格納およびバッファからの読出しをトランシーバが行う。一方、図4では、バッファ12はトランシーバに含まれずMPU11に接続され、データの格納および読出しをMPU11が行う。図2では、ステップS16を実行しない。すなわち、トランシーバの動作に関係なく、MPU11が通常モードに遷移したら、バッファ12からデータを読み出す。   FIG. 4 shows another example of the configuration of the gateway device 10. Since FIG. 4 is a modification of FIG. 1, the same components as those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof is omitted. In FIG. 1, a buffer is included in the transceiver, and the transceiver stores wakeup data in the buffer and reads from the buffer. On the other hand, in FIG. 4, the buffer 12 is not included in the transceiver and is connected to the MPU 11, and the MPU 11 stores and reads data. In FIG. 2, step S16 is not executed. That is, data is read from the buffer 12 when the MPU 11 transitions to the normal mode regardless of the operation of the transceiver.

図4の構成が、「記憶部は、通信制御部に接続され、通信制御部は、ウエイクアップデータを受信した際に、通常モードへの遷移を開始するとともに、ウエイクアップデータを記憶部に記憶し、通常モードに遷移した後に、記憶部からウエイクアップデータを読み出す」ものである。   The configuration of FIG. 4 is “the storage unit is connected to the communication control unit, and the communication control unit starts the transition to the normal mode when receiving the wakeup data, and stores the wakeup data in the storage unit, After the transition to the normal mode, the wake-up data is read from the storage unit ”.

本構成によって、各トランシーバがバッファを持つ必要がない。ウエイクアップ時にトランシーバからウエイクアップデータを取得する必要がないという利点がある。一方、MPU11は、スリープモード時でも、上述の受信線RxDの入力を検出する機能に加えて、バッファへのウエイクアップデータ書込み可能な機能を動作させておく必要がある。   With this configuration, each transceiver need not have a buffer. There is an advantage that it is not necessary to acquire wakeup data from the transceiver at the time of wakeup. On the other hand, even in the sleep mode, the MPU 11 needs to operate a function capable of writing wakeup data to the buffer in addition to the function of detecting the input of the reception line RxD.

以上、本発明の実施の形態を説明したが、これらはあくまで例示にすぎず、本発明はこれらに限定されるものではなく、特許請求の範囲の趣旨を逸脱しない限りにおいて、当業者の知識に基づく種々の変更が可能である。   Although the embodiments of the present invention have been described above, these are merely examples, and the present invention is not limited to these embodiments, and the knowledge of those skilled in the art can be used without departing from the spirit of the claims. Various modifications based on this are possible.

10 ゲートウエイ装置(電子制御装置)
11 MPU(通信制御部)
20、30、40 トランシーバ
12、22 バッファ(記憶部)
51、61、71 通信バス
ECU1〜9 制御ユニット
TxD 送信線
RxD 受信線
STB モード制御線
10 Gateway device (electronic control device)
11 MPU (communication control unit)
20, 30, 40 Transceiver 12, 22 Buffer (storage unit)
51, 61, 71 Communication bus ECU1-9 Control unit TxD Transmission line RxD Reception line STB Mode control line

Claims (5)

他の制御ユニットと通信バスを介して通信する電子制御装置であって、
送信線と受信線を介して互いに接続された通信制御部とトランシーバと、
前記電子制御装置が、通常の動作状態である通常モードよりも消費電力の少ない動作状態であるスリープモードで動作時に、前記トランシーバが受信した受信信号をウエイクアップデータとして記憶する記憶部と、
を備え、
前記トランシーバは、前記通信制御部から前記送信線を介して入力される送信信号を前記通信バスに送出するとともに、前記通信バスから受信した受信信号を、前記受信線を介して前記通信制御部へ出力し、
前記通信制御部は、
前記トランシーバから前記ウエイクアップデータを受信したときに、前記スリープモードから前記通常モードへの遷移を開始し、
前記通常モードに遷移した後に、前記記憶部から前記ウエイクアップデータを取得し、前記ウエイクアップデータが適正なものか否かを判定することを特徴とする電子制御装置。
An electronic control device that communicates with other control units via a communication bus,
A communication control unit and a transceiver connected to each other via a transmission line and a reception line;
A storage unit that stores the received signal received by the transceiver as wake-up data when the electronic control unit operates in a sleep mode, which is an operation state with less power consumption than a normal mode that is a normal operation state;
With
The transceiver sends a transmission signal input from the communication control unit via the transmission line to the communication bus, and receives a reception signal received from the communication bus to the communication control unit via the reception line. Output,
The communication control unit
When the wakeup data is received from the transceiver, the transition from the sleep mode to the normal mode is started.
An electronic control device, wherein after the transition to the normal mode, the wakeup data is acquired from the storage unit, and it is determined whether or not the wakeup data is appropriate.
前記記憶部は、前記トランシーバに含まれ、
前記通信制御部は、前記通常モードに遷移した後に、前記トランシーバに対し、前記記憶部から前記ウエイクアップデータを読み出して、前記通信制御部に送信させる請求項1に記載の電子制御装置。
The storage unit is included in the transceiver,
The electronic control device according to claim 1, wherein the communication control unit causes the transceiver to read the wakeup data from the storage unit and transmit the wakeup data to the communication control unit after transitioning to the normal mode.
前記通信制御部と前記トランシーバは、モード制御線により接続され、
前記通信制御部は、前記モード制御線を介して前記動作状態に対応する信号を出力し、
前記トランシーバは、入力された前記動作状態に対応する信号の状態に基づいて、前記記憶部から前記ウエイクアップデータを読み出す請求項2に記載の電子制御装置。
The communication control unit and the transceiver are connected by a mode control line,
The communication control unit outputs a signal corresponding to the operation state via the mode control line,
The electronic control device according to claim 2, wherein the transceiver reads the wakeup data from the storage unit based on a state of a signal corresponding to the input operation state.
前記記憶部は、前記通信制御部に接続され、
前記通信制御部は、前記ウエイクアップデータを受信した際に、前記通常モードへの遷移を開始するとともに、前記ウエイクアップデータを前記記憶部に記憶し、
前記通常モードに遷移した後に、前記記憶部から前記ウエイクアップデータを読み出す請求項1に記載の電子制御装置。
The storage unit is connected to the communication control unit,
When the communication control unit receives the wakeup data, the communication control unit starts transition to the normal mode, and stores the wakeup data in the storage unit,
The electronic control device according to claim 1, wherein the wakeup data is read from the storage unit after the transition to the normal mode.
前記電子制御装置は、前記制御ユニットが前記通信バスにより接続されたネットワークが複数形成され、これら複数のネットワークの間でデータの中継を行う車両用ゲートウエイ装置である請求項1ないし請求項4のいずれか1項に記載の電子制御装置。   The electronic control device is a vehicle gateway device in which a plurality of networks in which the control units are connected by the communication bus are formed and data is relayed between the plurality of networks. The electronic control device according to claim 1.
JP2014080107A 2014-04-09 2014-04-09 Electronic control device Pending JP2015199444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014080107A JP2015199444A (en) 2014-04-09 2014-04-09 Electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014080107A JP2015199444A (en) 2014-04-09 2014-04-09 Electronic control device

Publications (1)

Publication Number Publication Date
JP2015199444A true JP2015199444A (en) 2015-11-12

Family

ID=54551139

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014080107A Pending JP2015199444A (en) 2014-04-09 2014-04-09 Electronic control device

Country Status (1)

Country Link
JP (1) JP2015199444A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112018002033T5 (en) 2017-06-22 2020-01-09 Hitachi Automotive Systems, Ltd. VEHICLE CONTROL DEVICE
CN111284424A (en) * 2018-12-10 2020-06-16 大陆汽车电子(连云港)有限公司 Power management method and power management system
CN111619473A (en) * 2020-05-29 2020-09-04 重庆长安汽车股份有限公司 Automobile static power supply management system and management method
CN112849059A (en) * 2021-01-05 2021-05-28 宝能(西安)汽车研究院有限公司 Vehicle power feeding prevention method, computer-readable storage medium, and vehicle
CN113014464A (en) * 2016-01-08 2021-06-22 松下电器(美国)知识产权公司 Abnormality detection method, abnormality detection device, and abnormality detection system
CN113459973A (en) * 2021-07-12 2021-10-01 广州小鹏汽车科技有限公司 Electric automobile network system, control method and vehicle
CN114379483A (en) * 2022-02-18 2022-04-22 奇瑞商用车(安徽)有限公司 CAN network management method for new energy automobile
CN114670762A (en) * 2021-11-19 2022-06-28 北京新能源汽车股份有限公司 Vehicle-mounted equipment wake-up control method and device and electric vehicle
WO2023096260A1 (en) * 2021-11-23 2023-06-01 주식회사 엘지에너지솔루션 Vehicle diagnostic device for electric vehicle

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014464A (en) * 2016-01-08 2021-06-22 松下电器(美国)知识产权公司 Abnormality detection method, abnormality detection device, and abnormality detection system
CN110785327A (en) * 2017-06-22 2020-02-11 日立汽车系统株式会社 Vehicle control device
DE112018002033T5 (en) 2017-06-22 2020-01-09 Hitachi Automotive Systems, Ltd. VEHICLE CONTROL DEVICE
US11472354B2 (en) 2017-06-22 2022-10-18 Hitachi Astemo, Ltd. Vehicle controller
CN111284424A (en) * 2018-12-10 2020-06-16 大陆汽车电子(连云港)有限公司 Power management method and power management system
CN111619473A (en) * 2020-05-29 2020-09-04 重庆长安汽车股份有限公司 Automobile static power supply management system and management method
CN112849059A (en) * 2021-01-05 2021-05-28 宝能(西安)汽车研究院有限公司 Vehicle power feeding prevention method, computer-readable storage medium, and vehicle
CN113459973A (en) * 2021-07-12 2021-10-01 广州小鹏汽车科技有限公司 Electric automobile network system, control method and vehicle
CN113459973B (en) * 2021-07-12 2023-10-31 广州小鹏汽车科技有限公司 Electric automobile network system, control method and vehicle
CN114670762A (en) * 2021-11-19 2022-06-28 北京新能源汽车股份有限公司 Vehicle-mounted equipment wake-up control method and device and electric vehicle
CN114670762B (en) * 2021-11-19 2023-06-20 北京新能源汽车股份有限公司 Vehicle-mounted equipment awakening control method and device and electric automobile
WO2023096260A1 (en) * 2021-11-23 2023-06-01 주식회사 엘지에너지솔루션 Vehicle diagnostic device for electric vehicle
CN114379483A (en) * 2022-02-18 2022-04-22 奇瑞商用车(安徽)有限公司 CAN network management method for new energy automobile

Similar Documents

Publication Publication Date Title
JP2015199444A (en) Electronic control device
US11811798B2 (en) Method for sensing fraudulent frames transmitted to in-vehicle network
US20200341534A1 (en) Method for transmitting and receiving wake-up signal in vehicle network
KR101393539B1 (en) Integrated network system for vehicle
US11169821B2 (en) Method of operating selective wake-up of communication node in vehicle network
US9843523B2 (en) Communication management apparatus and communication management method for vehicle network
US11246098B2 (en) Method and apparatus for wake-up of communication node in vehicle network
US10243760B2 (en) Communication device, communication method, and communication system
US10979878B2 (en) Operation method of communication node supporting network management functions in vehicle network
US9081565B2 (en) Communication network system for detect and wake up a network node that does not properly recognize a wake up frame
US10454692B2 (en) Method for supplying power in network and apparatus therefor
US20130318380A1 (en) Handling of Wake-Up Messages in Controller Area Networks
US10861258B2 (en) Method for preventing diagnostic errors in vehicle network and apparatus therefor
CN111934966A (en) Abnormality detection electronic control unit, vehicle-mounted network system, and abnormality detection method
US11520600B2 (en) Controller area network transceiver and controller
US20140075177A1 (en) Electronic control apparatus
JP2009296280A (en) Communication network system, and communication control method thereof
JP2013106200A (en) Communication repeater for vehicle and sleep control method
JP2008114806A (en) On-vehicle device relay system, on-vehicle device relay method and relay device
US20210185129A1 (en) Vehicular communication device
JP2020195035A (en) Communication system and communication control method
US9383799B2 (en) Communication node
KR101618118B1 (en) Control system and method for body control module using external device
JP2013098916A (en) Relay system, and relay device constituting the same
US9557803B2 (en) Method and device for storing an item of wake-up information in users of a CAN bus system