JP2015155259A - communication circuit - Google Patents

communication circuit Download PDF

Info

Publication number
JP2015155259A
JP2015155259A JP2014030892A JP2014030892A JP2015155259A JP 2015155259 A JP2015155259 A JP 2015155259A JP 2014030892 A JP2014030892 A JP 2014030892A JP 2014030892 A JP2014030892 A JP 2014030892A JP 2015155259 A JP2015155259 A JP 2015155259A
Authority
JP
Japan
Prior art keywords
data
external device
electronic control
data storage
storage unit
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.)
Granted
Application number
JP2014030892A
Other languages
Japanese (ja)
Other versions
JP6198175B2 (en
Inventor
暢 寺▲崎▼
Noboru Terasaki
暢 寺▲崎▼
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 JP2014030892A priority Critical patent/JP6198175B2/en
Publication of JP2015155259A publication Critical patent/JP2015155259A/en
Application granted granted Critical
Publication of JP6198175B2 publication Critical patent/JP6198175B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a communication circuit capable of preventing an unnecessary wake-up operation and suppressing consumption of battery power.
SOLUTION: An electronic control device includes: a data output section for outputting preliminarily fixed transmission data to an external device connected to a communication line when receiving first data from the external device during an operation in a sleep mode; a present time data storage section for storing second data transmitted from the external device in response to the transmission data; a previous time data storage section for storing second data transmitted from the external device before receiving the second data of the present time; a comparison section for comparing the content of the present time data storage section with the content of the previous time data storage section; and a start signal output section for outputting a start signal to shift the operation mode of the electronic control device from the sleep mode to a normal mode on the basis of the comparison result of the comparison section.
COPYRIGHT: (C)2015,JPO&INPIT

Description

本発明は、通信回路、特に車両に搭載された電子制御装置に含まれる通信回路に関する。   The present invention relates to a communication circuit, and more particularly to a communication circuit included in an electronic control device mounted on a vehicle.

車両における電子制御装置(ECU:Electronic Control Unitともいう)の多重通信プロトコルとして、エンジンなどを制御するパワートレイン制御系やステアリングなどを制御するシャシー制御系ではCAN(Controller Area Network)が用いられる。また、パワーウィンドウやミラー調整、電動シート、ドアロックなどのセンサやアクチュエータなどを制御する、パワートレイン制御系やシャシー制御系ほど通信速度、信頼性を必要としないボデー制御系では、シンプルかつ安価なLIN(Local Interconnect Network)が用いられる。   As a multiplex communication protocol of an electronic control unit (ECU: Electronic Control Unit) in a vehicle, a CAN (Controller Area Network) is used in a powertrain control system that controls an engine and a chassis control system that controls a steering and the like. Also, body control systems that control sensors and actuators such as power windows, mirror adjustments, electric seats, door locks, etc. that require less communication speed and reliability than powertrain control systems and chassis control systems are simple and inexpensive. LIN (Local Interconnect Network) is used.

上述の多重通信では、通信バスに特定の信号が送出されることで、ECUは、通信を停止して消費電力を低減するスリープモードから、通信を実行可能な通常モードに遷移(ウエイクアップ)するように構成されている(特許文献1、2参照)。   In the multiplex communication described above, when a specific signal is sent to the communication bus, the ECU transitions from a sleep mode in which communication is stopped to reduce power consumption to a normal mode in which communication can be performed (wake-up). (Refer patent documents 1 and 2).

通信バス上の信号レベルとしてドミナント(優性)とレセッシブ(劣性)とが規定されている。そして、バス上に信号が発生していないバスアイドル状態では、バス上の信号レベルはレセッシブとなり、複数の通信装置からドミナントとレセッシブとが同時に送信された場合、バス上の信号レベルはドミナントとなる。なお、一般的に、ドミナントの論理値を「0:Lレベル」、レセッシブの論理値を「1:Hレベル」として考える。   Dominant (dominant) and recessive (inferiority) are defined as signal levels on the communication bus. In the bus idle state in which no signal is generated on the bus, the signal level on the bus is recessive, and when a dominant and recessive are transmitted simultaneously from a plurality of communication devices, the signal level on the bus is dominant. . In general, the dominant logic value is considered as “0: L level”, and the recessive logic value as “1: H level”.

例えば、マスタECUとスレーブECUとを含むLINにおいて、スレーブECU側がLIN通信バスをウエイクアップさせたい場合、ウエイクアップフレームと呼ばれる一定時間のドミナント信号を送信する。このドミナント信号をマスタECUのLIN通信ドライバ(以降、「LINドライバ」と略記)が受信して、CPUの外部割込みや電源回路のイネーブル信号を制御し、ウエイクアップ動作を開始する仕組みとなっている。   For example, in the LIN including the master ECU and the slave ECU, when the slave ECU wants to wake up the LIN communication bus, a dominant signal called a wake-up frame is transmitted. The dominant signal is received by the LIN communication driver of the master ECU (hereinafter abbreviated as “LIN driver”), and controls the external interrupt of the CPU and the enable signal of the power supply circuit to start the wake-up operation. .

特開2012−049885号公報JP 2012-049885 A 特表2009−532949号公報JP 2009-532949 A

図5に、従来技術による、LINドライバ(すなわち、通信回路)を用いたECUを示す。LINは、1つのマスタ装置(ECU1)と1以上のスレーブ装置(ECU100、200)が、同一の通信線50に接続されるデータ通信システムである。マスタ装置およびスレーブ装置の構成は、ほぼ同一である。そこで、マスタ装置であるECU1を例に挙げて説明する。   FIG. 5 shows an ECU using a LIN driver (that is, a communication circuit) according to the prior art. The LIN is a data communication system in which one master device (ECU1) and one or more slave devices (ECU100, 200) are connected to the same communication line 50. The configurations of the master device and the slave device are almost the same. Therefore, the ECU 1 as the master device will be described as an example.

ECU1は、周知のCPU2、LINドライバ3、および、バッテリ(図示せず)から電源(12V)の供給を受けてCPU2などに電源(5V)を供給する電源部4を含む。LINドライバ3は、バッテリから直接電源の供給を受ける。LINドライバ3として、例えば、NXP Semiconductors社の、TJA1021がある。   The ECU 1 includes a known CPU 2, a LIN driver 3, and a power supply unit 4 that receives power (12 V) from a battery (not shown) and supplies power (5 V) to the CPU 2 and the like. The LIN driver 3 is directly supplied with power from the battery. As the LIN driver 3, for example, there is a TJA1021 made by NXP Semiconductors.

CPU2の内部あるいはECU1内に設けられた記憶部21には、LIN通信を行うための制御プログラム群であるLINモジュールが格納される。CPU2は、LINモジュールを実行することで、LINドライバ3に対し、スレーブECUを識別するためのID、あるいはデータの送信指示(TX)、LINドライバ3が受信したデータの取得(RX)、スリープモードに移行するか否かを判定するスリープ制御(NSLP:NonSleep)、スレーブ装置からウエイクアップ信号を受信したときに通常モードに移行するか否かを判定するウエイクアップ制御等を行う。   A storage unit 21 provided in the CPU 2 or in the ECU 1 stores a LIN module that is a control program group for performing LIN communication. By executing the LIN module, the CPU 2 gives the LIN driver 3 an ID for identifying the slave ECU or a data transmission instruction (TX), acquisition of the data received by the LIN driver 3 (RX), and sleep mode. Sleep control (NSLP: NonSleep) for determining whether or not to shift to wakeup, wakeup control for determining whether or not to shift to the normal mode when a wakeup signal is received from the slave device, and the like.

LINドライバ3は、論理回路として構成され、全体の動作を司るコントローラ31、CPU2との間で信号の遣り取りを行う信号入出力部32を含む。LIN端子(送受信兼用)が、通信線50に接続されている。コントローラ31は、CPU2からのIDあるいはデータの送信指示(TXデータ)が入力されたとき、通信線50を介して、これをスレーブECUに送信する。また、スレーブECUからIDあるいはデータを受信したとき、これをRXデータとしてCPU2に出力する。さらに、CPU2からのNSLPに基づいて、INH出力の状態切替を行う。   The LIN driver 3 is configured as a logic circuit, and includes a controller 31 that controls the entire operation, and a signal input / output unit 32 that exchanges signals with the CPU 2. A LIN terminal (for both transmission and reception) is connected to the communication line 50. When an ID or data transmission instruction (TX data) is input from the CPU 2, the controller 31 transmits this to the slave ECU via the communication line 50. Further, when the ID or data is received from the slave ECU, it is output to the CPU 2 as RX data. Further, the state of the INH output is switched based on NSLP from the CPU 2.

ECU1は、通常の動作モードである通常モードでは、LINドライバ3のINH出力がオフ状態(Lレベル出力)で、電源部4からCPU2へ電源を供給する。CPU2のNSLP出力がオン状態(Hレベル出力)からオフ状態(Lレベル出力)に変化すると、LINドライバ3はINH出力をオン状態(Hレベル出力)とし、電源部4からCPU2への電源の供給を停止する。これにより、ECU1は、停止状態、あるいは消費電力の少ないスリープモードに遷移する。LINドライバ3は、バッテリから直接電源を供給されるので、ECU1がスリープモード中でも通常モードと同様の動作を行う。   In the normal mode, which is a normal operation mode, the ECU 1 supplies power from the power supply unit 4 to the CPU 2 when the INH output of the LIN driver 3 is in an off state (L level output). When the NSLP output of the CPU 2 changes from an on state (H level output) to an off state (L level output), the LIN driver 3 turns the INH output to an on state (H level output) and supplies power from the power supply unit 4 to the CPU 2. To stop. As a result, the ECU 1 shifts to a stopped state or a sleep mode with low power consumption. Since the LIN driver 3 is directly supplied with power from the battery, the ECU 1 performs the same operation as in the normal mode even when the ECU 1 is in the sleep mode.

LINドライバ3では、LIN端子で一定時間のドミナント信号を検出すると、これをウエイクアップフレームと判断してINH出力をオフ状態とし、電源部4からCPU2への電源の供給を許可する。これにより、CPU2は、スリープモードから通常モードに遷移する。   When the LIN driver 3 detects a dominant signal for a predetermined time at the LIN terminal, it determines that this is a wake-up frame, turns off the INH output, and permits the power supply from the power supply unit 4 to the CPU 2. As a result, the CPU 2 transitions from the sleep mode to the normal mode.

そして、スレーブECU(100、200)にIDあるいはデータ(例えば、「ID」のみのときは、IDに対応するスレーブECUに対する状態問合せのリクエスト信号)を送信する。スレーブECUの応答信号に基づき、ドミナント信号が、スレーブECUからのウエイクアップ要求か否かを判定する。例えば、ウエイクアップ状態であることを反映した応答信号を送信したスレーブECUがあるとき、該ドミナント信号がウエイクアップ要求であると判定する。その後、通常の処理を実行する。   Then, an ID or data (for example, when only “ID” is present, a status inquiry request signal to the slave ECU corresponding to the ID) is transmitted to the slave ECU (100, 200). Based on the response signal of the slave ECU, it is determined whether or not the dominant signal is a wake-up request from the slave ECU. For example, when there is a slave ECU that has transmitted a response signal reflecting the wake-up state, it is determined that the dominant signal is a wake-up request. Thereafter, normal processing is executed.

一方、ウエイクアップ状態であることを反映した応答信号を送信したスレーブECUがなく、該ドミナント信号がウエイクアップ要求でないと判定したとき、CPU2は、NSLP出力をオン状態(Hレベル出力)からオフ状態に変化させる。この後、コントローラ31は、NSLP出力の変化(例えば、立下りエッジ)を検出すると、INH出力をオン状態(Hレベル出力)とし、電源部4からCPU2への電源の供給を停止する。これにより、スリープモードに戻る。   On the other hand, when there is no slave ECU that has transmitted a response signal reflecting the wake-up state and it is determined that the dominant signal is not a wake-up request, the CPU 2 changes the NSLP output from the on state (H level output) to the off state. To change. Thereafter, when the controller 31 detects a change in the NSLP output (for example, a falling edge), the controller 31 turns on the INH output (H level output) and stops the supply of power from the power supply unit 4 to the CPU 2. This returns to the sleep mode.

よって、ドミナント信号と類似した外来ノイズを、ドミナント信号と誤判断してウエイクアップ動作を開始すると、無駄にCPUが動作するので、マスタECUの消費電力が増大する。また、マスタECUからのリクエスト信号によってスレーブECUが無駄な通信を行うので、LIN全体の消費電力も増大する。さらに、システム構成上、LINに接続されている他のネットワークもウエイクアップさせることがある。この結果、車両システム全体の消費電流が増大し、バッテリ電力を想定よりも早く消費させてしまう原因になりかねない。   Therefore, if the external noise similar to the dominant signal is erroneously determined as the dominant signal and the wakeup operation is started, the CPU operates wastefully, and the power consumption of the master ECU increases. Further, since the slave ECU performs useless communication in response to a request signal from the master ECU, the power consumption of the entire LIN also increases. Further, due to the system configuration, other networks connected to the LIN may be woken up. As a result, the current consumption of the entire vehicle system increases, which may cause battery power to be consumed earlier than expected.

上記問題点を背景として、本発明は、不要なウエイクアップ動作を防止し、バッテリ電力の消費を抑えることができる通信回路を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a communication circuit that can prevent unnecessary wake-up operation and suppress battery power consumption.

上記課題を解決するための通信回路は、通信線を介して通信を行う電子制御装置に含まれ、通信線との間でデータを送受信する通信回路であって、電子制御装置が、通常の動作状態である通常モードと、通常モードよりも消費電力の少ない動作状態であるスリープモードの、いずれの動作モードで動作しているかを判別する判別部と、スリープモードで動作中のときに、通信線に接続された外部装置から第1データを受信したとき、外部装置に対して予め定められた送信データを出力するデータ出力部と、送信データに応答して外部装置から送信される第2データを格納する今回データ格納部と、今回の第2データを受信する前に、外部装置から送信された第2データを格納する前回データ格納部と、今回データ格納部の内容と前回データ格納部の内容とを比較する比較部と、比較部の比較結果に基づき、電子制御装置の動作モードを、スリープモードから通常モードへ遷移させるための起動信号を出力する起動信号出力部と、を備える。   A communication circuit for solving the above problem is included in an electronic control device that performs communication via a communication line, and is a communication circuit that transmits and receives data to and from the communication line. A normal mode that is in the normal state and a sleep mode that is an operating state that consumes less power than the normal mode, and a communication unit that is operating in the sleep mode. When the first data is received from the external device connected to the data output unit, the data output unit that outputs predetermined transmission data to the external device, and the second data transmitted from the external device in response to the transmission data The current data storage unit to store, the previous data storage unit to store the second data transmitted from the external device before receiving the current second data, the contents of the current data storage unit and the previous data storage A comparison unit that compares the contents of the unit, and an activation signal output unit that outputs an activation signal for shifting the operation mode of the electronic control device from the sleep mode to the normal mode based on the comparison result of the comparison unit .

上記構成によって、ノイズによる不必要なウエイクアップ動作を抑制でき、かつ、ノイズ以外の確実なデータのみをECU(電子制御装置)間で送受信できる。   With the above configuration, unnecessary wake-up operation due to noise can be suppressed, and only reliable data other than noise can be transmitted and received between ECUs (electronic control units).

ECU1個あたりの、CPUのウエイクアップ時の消費電流は、100mA程度で、本発明の構成により、外来ノイズによる不要なウエイクアップ動作を抑制することで、バッテリ負荷を低減できる また、車両には、30個程度のLIN接続のECUが搭載されており、バッテリ消費電力の削減の効果は小さくないと考えられる。   The consumption current during the wake-up of the CPU per ECU is about 100 mA, and the configuration of the present invention can reduce the battery load by suppressing unnecessary wake-up operation due to external noise. About 30 LIN-connected ECUs are mounted, and the effect of reducing battery power consumption is not small.

バッテリ上がりの場合は、エンジン始動ができないことに加えて、車両に搭載された各システム(特に、セキュリティに関するシステム)が稼働しなくなる事態も引き起こす虞もある。つまり、意図的な電磁波(すなわち、ノイズ)照射によりECUをウエイクアップさせ、バッテリを消耗させて、車両の使用を妨害される可能性もある。本発明の構成では、上述のように、不必要なバッテリ電力の消費が抑制されるため、これらの事態は生じにくくなる。   When the battery runs out, the engine cannot be started, and there is a possibility that each system (particularly, a system related to security) installed in the vehicle may not operate. In other words, there is a possibility that the use of the vehicle may be hindered by intentionally radiating electromagnetic waves (that is, noise) to wake up the ECU and drain the battery. In the configuration of the present invention, as described above, unnecessary battery power consumption is suppressed, so that these situations are less likely to occur.

本発明の通信回路を用いた電子制御装置の構成を示す図。The figure which shows the structure of the electronic control apparatus using the communication circuit of this invention. マスタ/スレーブ判定動作の流れを示す図。The figure which shows the flow of a master / slave determination operation. マスタ装置として動作するときのウエイクアップ動作の流れを示す図。The figure which shows the flow of the wakeup operation | movement when operate | moving as a master apparatus. スレーブ装置として動作するときのウエイクアップ動作の流れを示す図。The figure which shows the flow of the wakeup operation | movement when operate | moving as a slave apparatus. 従来技術の通信回路を用いた電子制御装置の構成を示す図。The figure which shows the structure of the electronic control apparatus using the communication circuit of a prior art.

図1に、本発明の通信回路を用いたECU1(本発明の電子制御装置)の構成を示す。なお、本発明の構成のうち、上述の図5と同様の構成のものについては、同一の符号を付与し、ここでの詳細な説明は割愛する。図5と大きく異なる点は、CPU2で実行していたウエイクアップ判定、およびウエイクアップ判定時のデータの送信をLINドライバ3で実行することである。このため、記憶部21に記憶されるLINモジュールには、ウエイクアップ判定の処理は含まれない。   FIG. 1 shows a configuration of an ECU 1 (an electronic control device of the present invention) using a communication circuit of the present invention. Of the configurations of the present invention, the same configurations as those in FIG. 5 described above are given the same reference numerals, and detailed descriptions thereof are omitted. The main difference from FIG. 5 is that the LIN driver 3 executes the wakeup determination performed by the CPU 2 and data transmission at the time of the wakeup determination. For this reason, the LIN module stored in the storage unit 21 does not include a wakeup determination process.

LINドライバ3(本発明の通信回路)は、コントローラ31(本発明の判別部、データ出力部、起動信号出力部)、信号入出力部32(本発明のデータ取得部)に加え、例えば、不揮発性記憶媒体で構成される送信データ格納部33、今回データ格納部34、前回データ格納部35、および、デジタル・コンパレータとも呼ばれる比較演算器36をさらに含む。   The LIN driver 3 (communication circuit of the present invention) includes, for example, a nonvolatile memory in addition to the controller 31 (discrimination unit, data output unit, activation signal output unit of the present invention) and signal input / output unit 32 (data acquisition unit of the present invention). It further includes a transmission data storage unit 33, a current data storage unit 34, a previous data storage unit 35, and a comparison calculator 36 also called a digital comparator.

送信データ格納部33(本発明のデータ出力部)は、スリープモード時の通信に必要なID(スレーブECUを識別するためのもの)あるいはデータ、ECU1がマスタ装置/スレーブ装置のいずれであるかの情報、前回送受信したIDあるいはデータを格納する。   The transmission data storage unit 33 (data output unit of the present invention) is an ID (for identifying the slave ECU) or data necessary for communication in the sleep mode, and whether the ECU 1 is a master device / slave device Stores information, last transmitted / received ID or data.

今回データ格納部34は、今回の通信で受信したデータを格納する。前回データ格納部35は、前回の通信で受信したデータを格納する。すなわち、新たにデータを受信したとき、今回データ格納部34に格納されているデータを前回データ格納部35に格納し、新たな受信データを今回データ格納部34に格納する。   The current data storage unit 34 stores data received in the current communication. The previous data storage unit 35 stores the data received in the previous communication. That is, when new data is received, the data stored in the current data storage unit 34 is stored in the previous data storage unit 35, and the new received data is stored in the current data storage unit 34.

比較演算器36(本発明の比較部)は、今回データ格納部34と前回データ格納部35との内容を比較して、その結果(一致/不一致)を出力する。   The comparison computing unit 36 (comparison unit of the present invention) compares the contents of the current data storage unit 34 and the previous data storage unit 35 and outputs the result (match / mismatch).

図2を用いて、コントローラ31における、マスタ/スレーブ判定の流れを説明する。まず、CPU2からTXデータが入力されたとき(S11:Yes)、TXデータの内容(データ長、データ構成等)を解析する(S12)。そして、解析結果に基づいて、LINドライバ3が含まれるECU1が、マスタ装置かスレーブ装置かを判定する(S13)。最後に、判定結果に基づいて、スリープモード時に送信するデータの構成(データ長あるいはデータ内容)を決定する(S14)。   A master / slave determination flow in the controller 31 will be described with reference to FIG. First, when TX data is input from the CPU 2 (S11: Yes), the contents (data length, data structure, etc.) of the TX data are analyzed (S12). Based on the analysis result, it is determined whether the ECU 1 including the LIN driver 3 is a master device or a slave device (S13). Finally, based on the determination result, the configuration (data length or data content) of data to be transmitted in the sleep mode is determined (S14).

図2の構成が、「外部装置へ送信するためのデータを取得するデータ取得部を備え、データ取得部が取得したデータの内容に基づいて、電子制御装置が、マスタ装置あるいはスレーブ装置のいずれとして動作するかを設定する設定部を備える」ものである。本構成によって、本発明の通信回路を、マスタ装置あるいはスレーブ装置のいずれにも用いることができ、回路の共通化を図ることができる。   The configuration shown in FIG. 2 includes “a data acquisition unit that acquires data to be transmitted to an external device, and the electronic control device is either a master device or a slave device based on the content of the data acquired by the data acquisition unit. It is provided with a setting unit for setting whether to operate ". With this configuration, the communication circuit of the present invention can be used for either a master device or a slave device, and the circuit can be shared.

図3を用いて、ECU1がマスタ装置であるときの、コントローラ31における、ウエイクアップ動作の流れを説明する。ECU1はスリープモードであることが前提で、ウエイクアップフレーム(本発明の第1データ)の待ち状態である。ECU1がマスタ装置であるとき、ECU100、200は、スレーブ装置(外部装置)である。   A flow of a wake-up operation in the controller 31 when the ECU 1 is a master device will be described with reference to FIG. Assuming that the ECU 1 is in the sleep mode, the ECU 1 is in a waiting state for a wakeup frame (first data of the present invention). When the ECU 1 is a master device, the ECUs 100 and 200 are slave devices (external devices).

まず、ウエイクアップフレームを検出したとき(S31:Yes)、スレーブ装置に対しID(状態の送信要求、本発明の送信データ)を送信する。自身のIDを受信したスレーブ装置(LINドライバ)は、スレーブ装置の状態(ウエイクアップしているか否か、本発明の第2データ)を、ECU1に送信する。   First, when a wakeup frame is detected (S31: Yes), an ID (status transmission request, transmission data of the present invention) is transmitted to the slave device. The slave device (LIN driver) that has received its own ID transmits to the ECU 1 the state of the slave device (whether it is waked up or second data of the present invention).

ECU1は、スレーブ装置からのデータ(スレーブ装置の状態)を受信すると(S33:Yes)、今回データ格納部34に格納されているデータを前回データ格納部35に格納し、受信データを今回データ格納部34に格納する(S34)。これらのデータは、ID(すなわち、スレーブ装置)に関連付けて格納する。続いて、ID毎に、比較演算器36において、今回データ格納部34と前回データ格納部35との内容を比較する(S35)。   When the ECU 1 receives data from the slave device (slave device state) (S33: Yes), the ECU 1 stores the data stored in the current data storage unit 34 in the previous data storage unit 35, and stores the received data in the current data storage. The data is stored in the unit 34 (S34). These data are stored in association with the ID (that is, the slave device). Subsequently, for each ID, the comparison calculator 36 compares the contents of the current data storage unit 34 and the previous data storage unit 35 (S35).

受信したデータには、スレーブ装置の状態すなわち動作モード(通常モード/スリープモード)を反映したデータが含まれている。データの比較では、動作モードに変化があったか(すなわち、スリープモードから通常モードに遷移したか)否かを調べる。   The received data includes data reflecting the state of the slave device, that is, the operation mode (normal mode / sleep mode). In the data comparison, it is checked whether or not the operation mode has changed (that is, whether or not the mode has changed from the sleep mode to the normal mode).

ECU1は、全てのスレーブ装置がスリープモードに遷移しないと、自身もスリープモードに遷移できない。つまり、前回データ格納部35には、スレーブ装置がスリープモードに遷移したことを反映した情報、あるいは、ECU1に対してスリープモードに遷移することを許可することを反映した情報が含まれる。   The ECU 1 itself cannot transition to the sleep mode unless all the slave devices transition to the sleep mode. That is, the previous data storage unit 35 includes information reflecting that the slave device has transitioned to the sleep mode, or information reflecting allowing the ECU 1 to transition to the sleep mode.

上述の構成が、「前回データ格納部には、電子制御装置がスリープモードに遷移する直前に、外部装置から受信したデータが格納される」ものである。本構成によって、今回データ格納部に外部装置がスリープ状態に遷移した旨のデータが格納されれば、外部装置の状態変化を検知できる。   The above-described configuration is “the data received from the external device is stored in the previous data storage unit immediately before the electronic control device shifts to the sleep mode”. With this configuration, if data indicating that the external device has transitioned to the sleep state is stored in the data storage unit this time, the state change of the external device can be detected.

比較の結果、両者が一致してデータ内容に変化がないとき、すなわち、全てのスレーブ装置がスリープモードを維持しているとき(S36:No)、判定動作を終了する。つまり、スリープモードを維持する。一方、データ内容に変化があったとき、すなわち、いずれかのスレーブ装置がウエイクアップして通常モードに遷移したと判定したとき(S36:Yes)、比較演算器36の出力をオン状態(Hレベル出力)とする(S37)。これにより、INH出力がオン状態(Hレベル出力)からオフ状態(Lレベル出力)となり、本発明の起動信号を出力する。   As a result of the comparison, when both match and there is no change in the data content, that is, when all the slave devices maintain the sleep mode (S36: No), the determination operation ends. That is, the sleep mode is maintained. On the other hand, when there is a change in the data content, that is, when it is determined that one of the slave devices wakes up and shifts to the normal mode (S36: Yes), the output of the comparison calculator 36 is turned on (H level). Output) (S37). As a result, the INH output changes from the on state (H level output) to the off state (L level output), and the start signal of the present invention is output.

上述の構成が、「起動信号は、電子制御装置へ電源を供給する電源部に対し、電源の供給/遮断の指令を行う」ものである。本構成によって、電源の供給/遮断という比較的簡易な構成で、動作モードの切り替えを行うことができる。   The above-described configuration is “the activation signal instructs the power supply unit that supplies power to the electronic control device to supply / shut off power”. With this configuration, the operation mode can be switched with a relatively simple configuration of power supply / shutoff.

この後、CPU2がウエイクアップし、ECU1は、スリープモードから通常モードに遷移する。以降は、CPU2からの指示(TXデータ)に基づいて、IDあるいはデータをスレーブ装置に送信する(S38)。   Thereafter, the CPU 2 wakes up, and the ECU 1 shifts from the sleep mode to the normal mode. Thereafter, based on an instruction (TX data) from the CPU 2, the ID or data is transmitted to the slave device (S38).

図3の構成が、「電子制御装置がマスタ装置のときは、第1データは、電子制御装置に対して、スリープモードから通常モードへの遷移を要求するものであり、送信データは、外部装置の状態の送信を要求するものであり、第2データは、外部装置の状態を反映したものであり、今回データ格納部と前回データ格納部は、外部装置の状態を、外部装置を識別する識別情報と関連付けて格納し、比較部は、外部装置ごとに、それぞれのデータ格納部に格納された外部装置の状態を比較する」ものである。本構成によって、マスタ装置がウエイクアップ要求を受信したとき、これがスレーブ装置からのものであるかノイズであるかを判別できるので、不必要なウエイクアップ動作を抑制できる。   The configuration of FIG. 3 is “when the electronic control device is a master device, the first data requests the electronic control device to transition from the sleep mode to the normal mode, and the transmission data is the external device. The second data reflects the status of the external device, and the current data storage unit and the previous data storage unit identify the status of the external device and identify the external device. The information is stored in association with the information, and the comparison unit compares the state of the external device stored in each data storage unit for each external device. With this configuration, when the master device receives a wake-up request, it can be determined whether this is from a slave device or noise, so unnecessary wake-up operations can be suppressed.

図4を用いて、ECU1がスレーブ装置であるときの、コントローラ31における、ウエイクアップ動作の流れを説明する。ECU1はスリープモードであることが前提である。ECU1がスレーブ装置であるとき、ECU100、200のいずれか一方が、マスタ装置(外部装置)である。   The flow of the wake-up operation in the controller 31 when the ECU 1 is a slave device will be described with reference to FIG. It is assumed that the ECU 1 is in the sleep mode. When the ECU 1 is a slave device, one of the ECUs 100 and 200 is a master device (external device).

図3のように、マスタ装置がウエイクアップフレームを検出すると、スレーブ装置に対しID(状態の送信要求、本発明の第1データ)を送信する。ECU1は、IDを受信すると(S51:Yes)、現在のECU1の動作モードを反映したデータ(本発明の送信データ)を、マスタ装置に送信する(S52)。ECU1がスリープモードか通常モードは、コントローラ31へのNSLPの入力状態によって判別できる。   As shown in FIG. 3, when the master device detects a wakeup frame, it transmits an ID (status transmission request, first data of the present invention) to the slave device. When receiving the ID (S51: Yes), the ECU 1 transmits data (transmission data of the present invention) reflecting the current operation mode of the ECU 1 to the master device (S52). Whether the ECU 1 is in the sleep mode or the normal mode can be determined by the NSLP input state to the controller 31.

この後、マスタ装置からIDあるいはデータ(本発明の第2データ)を受信しないとき(S53:No)、マスタ装置が検出したウエイクアップフレームはノイズであって、いずれのスレーブ装置もウエイクアップしていないので、判定動作を終了する。   After this, when the ID or data (second data of the present invention) is not received from the master device (S53: No), the wakeup frame detected by the master device is noise and any slave device is waked up. Since there is no, the determination operation is terminated.

一方、マスタ装置からIDあるいはデータを受信したとき(S53:Yes)、今回データ格納部34に格納されているデータを前回データ格納部35に格納し、受信データを今回データ格納部34に格納する(S54)。続いて、比較演算器36において、今回データ格納部34と前回データ格納部35との内容を比較する(S55)。   On the other hand, when an ID or data is received from the master device (S53: Yes), the data stored in the current data storage unit 34 is stored in the previous data storage unit 35, and the received data is stored in the current data storage unit 34. (S54). Subsequently, the comparison calculator 36 compares the contents of the current data storage unit 34 and the previous data storage unit 35 (S55).

上述の構成が、「前回データ格納部には、電子制御装置がスリープモードに遷移する直前に、外部装置から受信したデータが格納される」ものである。本構成によって、今回データ格納部に外部装置がスリープ状態に遷移した旨のデータが格納されれば、外部装置の状態変化を検知できる。   The above-described configuration is “the data received from the external device is stored in the previous data storage unit immediately before the electronic control device shifts to the sleep mode”. With this configuration, if data indicating that the external device has transitioned to the sleep state is stored in the data storage unit this time, the state change of the external device can be detected.

比較の結果、両者が一致してデータ内容に変化がないとき、すなわち、マスタ装置からのウエイクアップ要求がないとき(S56:No)、判定動作を終了する。つまり、スリープモードを維持する。一方、データ内容に変化があったとき、すなわち、マスタ装置からのウエイクアップ要求があったとき(S56:Yes)、比較演算器36の出力をオン状態(Hレベル出力)とする(S57)。これにより、INH出力がオン状態(Hレベル出力)からオフ状態(Lレベル出力)となり、本発明の起動信号を出力する。   As a result of the comparison, when the two match and there is no change in the data contents, that is, when there is no wakeup request from the master device (S56: No), the determination operation is terminated. That is, the sleep mode is maintained. On the other hand, when there is a change in the data contents, that is, when there is a wakeup request from the master device (S56: Yes), the output of the comparison computing unit 36 is turned on (H level output) (S57). As a result, the INH output changes from the on state (H level output) to the off state (L level output), and the start signal of the present invention is output.

上述の構成が、「起動信号は、電子制御装置へ電源を供給する電源部に対し、電源の供給/遮断の指令を行う」ものである。本構成によって、電源の供給/遮断という比較的簡易な構成で、動作モードの切り替えを行うことができる。   The above-described configuration is “the activation signal instructs the power supply unit that supplies power to the electronic control device to supply / shut off power”. With this configuration, the operation mode can be switched with a relatively simple configuration of power supply / shutoff.

この後、CPU2がウエイクアップし、ECU1は、スリープモードから通常モードに遷移する。以降は、CPU2からの指示(TXデータ)に基づいて、IDあるいはデータをマスタ装置に送信する。   Thereafter, the CPU 2 wakes up, and the ECU 1 shifts from the sleep mode to the normal mode. Thereafter, based on an instruction (TX data) from the CPU 2, the ID or data is transmitted to the master device.

図4の構成が、「電子制御装置がスレーブ装置のときは、第1データは、電子制御装置の状態の送信を要求するものであり、送信データは、電子制御装置の状態を反映したものであり、第2データは、外部装置からの予め定められたデータであり、比較部は、それぞれのデータ格納部に格納された、予め定められたデータの内容を比較する」ものである。本構成によって、スレーブ装置が第1データを受信したとき、これがマスタ装置からのものであるかノイズであるかを判別できるので、不必要なウエイクアップ動作を抑制できる。   The configuration of FIG. 4 is “when the electronic control device is a slave device, the first data requests transmission of the state of the electronic control device, and the transmission data reflects the state of the electronic control device. The second data is predetermined data from an external device, and the comparison unit compares the contents of the predetermined data stored in the respective data storage units. With this configuration, when the slave device receives the first data, it can be determined whether this is from the master device or noise, so unnecessary wakeup operations can be suppressed.

さらに、図3および図4の構成が、「少なくとも一つのマスタ装置および複数のスレーブ装置が同一の通信線に接続されるデータ通信システムにおいて、電子制御装置がマスタ装置のときは、外部装置がスレーブ装置であり電子制御装置がスレーブ装置のときは、外部装置がマスタ装置である」ものである。本構成によって、本発明の通信回路を、マスタ装置あるいはスレーブ装置のいずれにも用いることができ、回路の共通化を図ることができる。   Further, the configuration of FIG. 3 and FIG. 4 is as follows: “In a data communication system in which at least one master device and a plurality of slave devices are connected to the same communication line, when the electronic control device is a master device, the external device is a slave. When the device and the electronic control device are slave devices, the external device is the master device. With this configuration, the communication circuit of the present invention can be used for either a master device or a slave device, and the circuit can be shared.

以上、本発明の実施の形態を説明したが、これらはあくまで例示にすぎず、本発明はこれらに限定されるものではなく、特許請求の範囲の趣旨を逸脱しない限りにおいて、当業者の知識に基づく種々の変更が可能である。   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.

1 ECU(電子制御装置)
3 LINドライバ(通信回路)
31 コントローラ(判別部、データ出力部、起動信号出力部)
32 信号入出力部(データ取得部)
33 送信データ格納部(データ出力部)
34 今回データ格納部
35 前回データ格納部
36 比較演算器(比較部)
1 ECU (electronic control unit)
3 LIN driver (communication circuit)
31 controller (discriminating unit, data output unit, start signal output unit)
32 Signal input / output unit (data acquisition unit)
33 Transmission data storage unit (data output unit)
34 Current data storage unit 35 Previous data storage unit 36 Comparison calculator (comparison unit)

Claims (6)

通信線を介して通信を行う電子制御装置に含まれ、前記通信線との間でデータを送受信する通信回路であって、
前記電子制御装置が、通常の動作状態である通常モードと、前記通常モードよりも消費電力の少ない動作状態であるスリープモードの、いずれの動作モードで動作しているかを判別する判別部と、
前記スリープモードで動作中のときに、前記通信線に接続された外部装置から第1データを受信したとき、前記外部装置に対して予め定められた送信データを出力するデータ出力部と、
前記送信データに応答して前記外部装置から送信される第2データを格納する今回データ格納部と、
今回の第2データを受信する前に、前記外部装置から送信された第2データを格納する前回データ格納部と、
前記今回データ格納部の内容と前記前回データ格納部の内容とを比較する比較部と、
前記比較部の比較結果に基づき、前記電子制御装置の動作モードを、前記スリープモードから前記通常モードへ遷移させるための起動信号を出力する起動信号出力部と、
を備えることを特徴とする通信回路。
A communication circuit that is included in an electronic control device that performs communication via a communication line, and that transmits and receives data to and from the communication line,
A discriminator for discriminating in which operation mode the electronic control device is operating in a normal mode that is a normal operation state and a sleep mode that is an operation state that consumes less power than the normal mode;
A data output unit that outputs predetermined transmission data to the external device when receiving the first data from the external device connected to the communication line when operating in the sleep mode;
A current data storage unit for storing second data transmitted from the external device in response to the transmission data;
Before receiving the second data of this time, a previous data storage unit that stores the second data transmitted from the external device;
A comparison unit that compares the content of the current data storage unit with the content of the previous data storage unit;
An activation signal output unit that outputs an activation signal for transitioning the operation mode of the electronic control device from the sleep mode to the normal mode based on the comparison result of the comparison unit;
A communication circuit comprising:
少なくとも一つのマスタ装置および複数のスレーブ装置が同一の前記通信線に接続されるデータ通信システムにおいて、
前記電子制御装置が前記マスタ装置のときは、前記外部装置が前記スレーブ装置であり、
前記電子制御装置が前記スレーブ装置のときは、前記外部装置が前記マスタ装置である請求項1に記載の通信回路。
In a data communication system in which at least one master device and a plurality of slave devices are connected to the same communication line,
When the electronic control device is the master device, the external device is the slave device,
The communication circuit according to claim 1, wherein when the electronic control device is the slave device, the external device is the master device.
前記外部装置へ送信するためのデータを取得するデータ取得部を備え、
前記データ取得部が取得したデータの内容に基づいて、前記電子制御装置が、前記マスタ装置あるいは前記スレーブ装置のいずれとして動作するかを設定する設定部を備える請求項2に記載の通信回路。
A data acquisition unit for acquiring data for transmission to the external device;
The communication circuit according to claim 2, further comprising: a setting unit configured to set whether the electronic control device operates as the master device or the slave device based on content of data acquired by the data acquisition unit.
前記電子制御装置が前記マスタ装置のときは、
前記第1データは、前記電子制御装置に対して、前記スリープモードから前記通常モードへの遷移を要求するものであり、
前記送信データは、前記外部装置の状態の送信を要求するものであり、
前記第2データは、前記外部装置の状態を反映したものであり、
前記今回データ格納部と前記前回データ格納部は、前記外部装置の状態を、前記外部装置を識別する識別情報と関連付けて格納し、
前記比較部は、前記外部装置ごとに、それぞれのデータ格納部に格納された前記外部装置の状態を比較する請求項2または請求項3に記載の通信回路。
When the electronic control device is the master device,
The first data is a request for the electronic control device to transition from the sleep mode to the normal mode,
The transmission data is for requesting transmission of the state of the external device,
The second data reflects the state of the external device,
The current data storage unit and the previous data storage unit store the state of the external device in association with identification information for identifying the external device,
The communication circuit according to claim 2, wherein the comparison unit compares the state of the external device stored in each data storage unit for each external device.
前記電子制御装置が前記スレーブ装置のときは、
前記第1データは、前記電子制御装置の状態の送信を要求するものであり、
前記送信データは、前記電子制御装置の状態を反映したものであり、
前記第2データは、前記外部装置からの予め定められたデータであり、
前記比較部は、それぞれのデータ格納部に格納された、前記予め定められたデータの内容を比較する請求項2または請求項3に記載の通信回路。
When the electronic control device is the slave device,
The first data is for requesting transmission of the state of the electronic control unit,
The transmission data reflects the state of the electronic control device,
The second data is predetermined data from the external device,
The communication circuit according to claim 2 or 3, wherein the comparison unit compares the contents of the predetermined data stored in the respective data storage units.
前記前回データ格納部には、前記電子制御装置が前記スリープモードに遷移する直前に、前記外部装置から受信したデータが格納される請求項1ないし請求項5のいずれか1項に記載の通信回路。   The communication circuit according to any one of claims 1 to 5, wherein the previous data storage unit stores data received from the external device immediately before the electronic control device shifts to the sleep mode. .
JP2014030892A 2014-02-20 2014-02-20 Communication circuit Expired - Fee Related JP6198175B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014030892A JP6198175B2 (en) 2014-02-20 2014-02-20 Communication circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014030892A JP6198175B2 (en) 2014-02-20 2014-02-20 Communication circuit

Publications (2)

Publication Number Publication Date
JP2015155259A true JP2015155259A (en) 2015-08-27
JP6198175B2 JP6198175B2 (en) 2017-09-20

Family

ID=54774879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014030892A Expired - Fee Related JP6198175B2 (en) 2014-02-20 2014-02-20 Communication circuit

Country Status (1)

Country Link
JP (1) JP6198175B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017220831A (en) * 2016-06-08 2017-12-14 株式会社デンソー Communication apparatus
US10095644B2 (en) 2016-09-27 2018-10-09 Murata Manufacturing Co., Ltd. Data transfer device and wireless communication circuit
WO2019073721A1 (en) * 2017-10-10 2019-04-18 日立オートモティブシステムズ株式会社 Gateway device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04326897A (en) * 1991-04-26 1992-11-16 Pioneer Electron Corp On-vehicle data communicaiton system
WO2002089419A1 (en) * 2001-04-27 2002-11-07 Mitsubishi Jidosha Kogyo Kabushiki Kaisha Multiplex communication apparatus for vehicle
JP2003524808A (en) * 1998-05-22 2003-08-19 サード フランプトン、エリス、イー.ザ Global network computer
JP2005142662A (en) * 2003-11-04 2005-06-02 Denso Corp Lin communication apparatus
JP2010136286A (en) * 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2011035834A (en) * 2009-08-05 2011-02-17 Autonetworks Technologies Ltd Communication system, communication apparatus and communication method
JP2012158772A (en) * 2011-01-28 2012-08-23 Jfe Steel Corp Method of manufacturing high-silicon steel sheet
JP2013055534A (en) * 2011-09-05 2013-03-21 Toyota Motor Corp Communication method
JP2013062722A (en) * 2011-09-14 2013-04-04 Denso Corp Communication system and slave node constituting the communication system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04326897A (en) * 1991-04-26 1992-11-16 Pioneer Electron Corp On-vehicle data communicaiton system
JP2003524808A (en) * 1998-05-22 2003-08-19 サード フランプトン、エリス、イー.ザ Global network computer
WO2002089419A1 (en) * 2001-04-27 2002-11-07 Mitsubishi Jidosha Kogyo Kabushiki Kaisha Multiplex communication apparatus for vehicle
JP2005142662A (en) * 2003-11-04 2005-06-02 Denso Corp Lin communication apparatus
JP2010136286A (en) * 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2011035834A (en) * 2009-08-05 2011-02-17 Autonetworks Technologies Ltd Communication system, communication apparatus and communication method
JP2012158772A (en) * 2011-01-28 2012-08-23 Jfe Steel Corp Method of manufacturing high-silicon steel sheet
JP2013055534A (en) * 2011-09-05 2013-03-21 Toyota Motor Corp Communication method
JP2013062722A (en) * 2011-09-14 2013-04-04 Denso Corp Communication system and slave node constituting the communication system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017220831A (en) * 2016-06-08 2017-12-14 株式会社デンソー Communication apparatus
US10095644B2 (en) 2016-09-27 2018-10-09 Murata Manufacturing Co., Ltd. Data transfer device and wireless communication circuit
WO2019073721A1 (en) * 2017-10-10 2019-04-18 日立オートモティブシステムズ株式会社 Gateway device
US11115238B2 (en) 2017-10-10 2021-09-07 Hitachi Automotive Systems, Ltd. Gateway device

Also Published As

Publication number Publication date
JP6198175B2 (en) 2017-09-20

Similar Documents

Publication Publication Date Title
US9112721B2 (en) System and methods for enabling a controller area network (CAN) device to operate in different power modes based upon the payload of a wake-up message
US9081565B2 (en) Communication network system for detect and wake up a network node that does not properly recognize a wake up frame
US9811145B2 (en) Reduction of idle power in a communication port
US8713343B2 (en) Electronic control apparatus
US9276822B2 (en) Method for transmitting messages in a communication network
US20200218333A1 (en) Operation methods of communication node in network
US9231436B2 (en) Vehicular power source system
US9411609B2 (en) Electronic control apparatus
US10162402B2 (en) Serial communication method
JP6198175B2 (en) Communication circuit
JP2010245935A (en) Gateway device, slave device, and network system
US8010818B2 (en) Power efficient method for controlling an oscillator in a low power synchronous system with an asynchronous I2C bus
JP2008107914A (en) Microcomputer, program and electronic control device for vehicle
US9442544B2 (en) Fast restart sleep signature in power over ethernet
JP2010206268A (en) Communication system and node
US9122479B2 (en) Network processor and energy saving method thereof
JP2008283492A (en) Gateway device, and on-vehicle communication system
US20150146745A1 (en) Control unit for in-vehicle ethernet and method for controlling thereof
JP5195943B2 (en) Electronic control unit
JP6402798B2 (en) Control device for vehicle power window device
US20140126020A1 (en) Method of controlling speed of ethernet connection in power save mode and image forming apparatus performing the same
JP5434833B2 (en) Communication system and node
JP2008222051A (en) Microcomputer, program, electronic control device, and communication system
JP2017144893A (en) Vehicle communication system
JP4747998B2 (en) Communication apparatus and communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160331

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170209

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

R151 Written notification of patent or utility model registration

Ref document number: 6198175

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170813

LAPS Cancellation because of no payment of annual fees