JP2019125236A - Control apparatus - Google Patents

Control apparatus Download PDF

Info

Publication number
JP2019125236A
JP2019125236A JP2018006343A JP2018006343A JP2019125236A JP 2019125236 A JP2019125236 A JP 2019125236A JP 2018006343 A JP2018006343 A JP 2018006343A JP 2018006343 A JP2018006343 A JP 2018006343A JP 2019125236 A JP2019125236 A JP 2019125236A
Authority
JP
Japan
Prior art keywords
state
microcomputer
computer
circuit
output
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
JP2018006343A
Other languages
Japanese (ja)
Inventor
勇輝 井手
Yuki Ide
勇輝 井手
真 大石
Makoto Oishi
真 大石
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2018006343A priority Critical patent/JP2019125236A/en
Publication of JP2019125236A publication Critical patent/JP2019125236A/en
Pending legal-status Critical Current

Links

Images

Abstract

To allow data from first and second computer to be output to an outside with being smoothly switched to each other if both of them are normal in an apparatus having the first and second computers for monitoring abnormality.SOLUTION: A control apparatus according to the present invention has an AND circuit input with signals from first and second computers, and a switching unit for switching a state among a first state for transmitting an output of the AND circuit to the outside, a second state for transmitting only an output of the first computer to the outside, and a third state for transmitting only an output of the second computer to the outside. Further, the control apparatus has a switching control unit for controlling the switching unit to switch the state to the first state if both of the first and second computers are normal with respect to the AND circuit, for controlling the switching unit to switch the state to the second state if the second computer is not normal, and for controlling the switching unit to switch the state to the third state if the first computer is not normal.SELECTED DRAWING: Figure 1

Description

本発明は、制御装置に関する。   The present invention relates to a control device.

従来、この種の制御装置としては、ランパルスを用いて相互に異常監視を行なう第1,第2CPUと、第1CPUからの制御データと第2CPUからの制御データとを選択して周辺回路を介して外部に出力するデータセレクタと、を備えるものが提案されている(例えば、特許文献1参照)。この制御装置では、第1,第2CPUのうちの一方のCPUに異常が生じると、データセレクタは、他方のCPU(正常なCPU)からの制御データを選択して周辺回路を介して外部に出力する。   Conventionally, as a control device of this type, first and second CPUs that mutually monitor abnormality using run pulses, control data from the first CPU and control data from the second CPU are selected and peripheral circuits are selected. There has been proposed one having a data selector for outputting to the outside (see, for example, Patent Document 1). In this control device, when an abnormality occurs in one of the first and second CPUs, the data selector selects control data from the other CPU (normal CPU) and outputs it via the peripheral circuit. Do.

特開平11−53207号公報Japanese Patent Application Laid-Open No. 11-53207

上述の制御装置において、第1,第2CPUが何れも正常で、第1,第2CPUからの制御データを切り替えながら周辺回路を介して外部に出力する際には、データセレクタにより、第1CPUと周辺回路とを接続する第1状態と、第2CPUと周辺回路とを接続する第2状態と、を切り替える必要が生じる。このため、データセレクタによる第1状態と第2状態との切替の際に、第1,第2CPUからの制御データの外部への出力に遅れが生じ得る。   In the control device described above, when the first and second CPUs are both normal and the control data from the first and second CPUs are switched to the outside through the peripheral circuit while switching the control data, the data selector makes it possible to It is necessary to switch between the first state connecting the circuit and the second state connecting the second CPU and the peripheral circuit. Therefore, when switching between the first state and the second state by the data selector, a delay may occur in the output of control data from the first and second CPUs to the outside.

本発明の制御装置は、相互に異常監視を行なう第1,第2コンピュータを備えるものにおいて、両者が正常であるときに、第1,第2コンピュータからのデータをスムーズに切り替えながら外部に出力可能にすることを主目的とする。   The control device according to the present invention is provided with the first and second computers that mutually monitor abnormality, and when both are normal, the data from the first and second computers can be output to the outside while switching smoothly. The main purpose is to

本発明の制御装置は、上述の主目的を達成するために以下の手段を採った。   The control device of the present invention adopts the following means in order to achieve the above-mentioned main object.

本発明の制御装置は、
相互に異常監視を行なう第1,第2コンピュータを備えると共に外部と通信を行なう制御装置であって、
前記第1,第2コンピュータからの信号が入力されるAND回路と、
前記AND回路の出力を前記外部に送信する第1状態と、前記第1コンピュータの出力だけを前記外部に送信する第2状態と、前記第2コンピュータの出力だけを前記外部に送信する第3状態と、を切替可能な切替部と、
前記AND回路からみた前記第1,第2コンピュータ側が何れも正常であるときには、前記切替部に前記第1状態にさせ、前記第2コンピュータ側が異常であるときには、前記切替部に前記第2状態にさせ、前記第1コンピュータ側が異常であるときには、前記切替部に前記第3状態にさせる切替制御部と、
を備えることを要旨とする。
The control device of the present invention is
A control device comprising a first and a second computer that mutually monitor abnormalities and communicating with the outside,
An AND circuit to which signals from the first and second computers are input;
A first state for transmitting the output of the AND circuit to the outside, a second state for transmitting only the output of the first computer to the outside, and a third state for transmitting only the output of the second computer to the outside And a switching unit capable of switching
When both the first and second computer sides viewed from the AND circuit are normal, the switching unit is made to be in the first state, and when the second computer side is abnormal, the switching unit is in the second state A switching control unit for causing the switching unit to be in the third state when the first computer side is abnormal;
The gist is to have

この本発明の制御装置では、第1,第2コンピュータからの信号が入力されるAND回路と、AND回路の出力を外部に送信する第1状態と第1コンピュータの出力だけを外部に送信する第2状態と第2コンピュータの出力だけを外部に送信する第3状態とを切替可能な切替部と、を備える。さらに、AND回路からみた第1,第2コンピュータ側が正常であるときには、切替部に第1状態にさせ、第2コンピュータ側が何れも異常であるときには、切替部に第2状態にさせ、第1コンピュータ側が異常であるときには、切替部に前記第3状態にさせる切替制御部を備える。これにより、第1,第2コンピュータ側が何れも正常であるときには、第2状態と第3状態とを必要に応じて切り替えるものに比して、第1コンピュータからのデータと第2コンピュータからのデータとをスムーズに切り替えながら外部に送信することができる。また、第2コンピュータ側に異常が生じたときでも第1コンピュータからのデータを外部に送信することができ、第1コンピュータ側に異常が生じたときでも第2コンピュータからのデータを外部に送信することができる。   In the control device according to the present invention, an AND circuit to which signals from the first and second computers are input, a first state for transmitting an output of the AND circuit to the outside, and an output of only the first computer to the outside And a switching unit capable of switching between the two states and a third state in which only the output of the second computer is transmitted to the outside. Furthermore, when the first and second computers as viewed from the AND circuit are normal, the switching unit is brought to the first state, and when both the second computers are abnormal, the switching unit is brought to the second state. The switching control unit is configured to cause the switching unit to be in the third state when the side is abnormal. As a result, when both the first and second computers are normal, the data from the first computer and the data from the second computer are compared with those in which the second state and the third state are switched as needed. And can be sent to the outside while switching smoothly. Further, data from the first computer can be transmitted to the outside even when an abnormality occurs in the second computer side, and data from the second computer can be transmitted to the outside even when an abnormality occurs in the first computer side. be able to.

ここで、AND回路からみた第1コンピュータ側としては、第1コンピュータおよび第1コンピュータとAND回路との第1配線が相当し、AND回路からみた第2コンピュータ側としては、第2コンピュータおよび第2コンピュータとAND回路との第2配線が相当する。   Here, the first computer side viewed from the AND circuit corresponds to the first computer and the first wiring between the first computer and the AND circuit, and the second computer side viewed from the AND circuit includes the second computer and the second computer. The second wiring of the computer and the AND circuit corresponds.

こうした本発明の制御装置において、前記切替制御部は、前記第1コンピュータから前記第2コンピュータのリセット要求を受信したときには、前記切替部を前記第2状態にさせると共に前記第2コンピュータをリセットし、前記第2コンピュータから前記第1コンピュータのリセット要求を受信したときには、前記切替部を前記第3状態にさせると共に前記第1コンピュータをリセットするものとしてもよい。こうすれば、第2コンピュータのリセット時でも第1コンピュータからのデータを外部に送信することができる。また、第1コンピュータのリセット時でも第2コンピュータからのデータを外部に送信することができる。   In the control device according to the present invention, the switching control unit, when receiving a reset request for the second computer from the first computer, brings the switching unit into the second state and resets the second computer. When the reset request for the first computer is received from the second computer, the switching unit may be brought into the third state and the first computer may be reset. In this way, data from the first computer can be transmitted to the outside even when the second computer is reset. Further, even when the first computer is reset, data from the second computer can be transmitted to the outside.

また、本発明の制御装置において、前記第1コンピュータと前記AND回路との第1配線の異常を検知する第1異常検知部と、前記第2コンピュータと前記AND回路との第2配線の異常を検知する第2異常検知部とを更に備え、前記切替制御部は、前記第1異常検知部により前記第1配線の異常が検知されたときには、前記切替部を前記第3状態にさせ、前記第2異常検知部により前記第2配線の異常が検知されたときには、前記切替部を前記第2状態にさせるものとしてもよい。こうすれば、第1配線に異常が生じたときでも第2コンピュータからのデータを外部に送信することができる。また、第2配線に異常が生じたときでも第1コンピュータからのデータを外部に送信することができる。この場合、前記第1異常検知部は、前記第1配線の占有を第1ドミナントタイムアウト回路であり、前記第2異常検知部は、第2ドミナントタイムアウト回路であるものとしてもよい。   Further, in the control device of the present invention, a first abnormality detection unit for detecting an abnormality in the first wiring between the first computer and the AND circuit, an abnormality in the second wiring between the second computer and the AND circuit, The switching control unit further causes the switching unit to be in the third state when an abnormality in the first wiring is detected by the first abnormality detecting unit. (2) When the abnormality of the second wiring is detected by the abnormality detection unit, the switching unit may be brought into the second state. In this way, data from the second computer can be transmitted to the outside even when an abnormality occurs in the first wiring. Further, even when an abnormality occurs in the second wiring, data from the first computer can be transmitted to the outside. In this case, the first abnormality detection unit may occupy the first wiring as a first dominant timeout circuit, and the second abnormality detection unit may be a second dominant timeout circuit.

本発明の一実施例である制御装置としての電子制御ユニット(ECU)20の構成の概略を示す構成図である。It is a block diagram which shows the outline of a structure of the electronic control unit (ECU) 20 as a control apparatus which is one Example of this invention. セレクタ32が第1状態のときに、第1,第2マイコン21,23が外部の電子制御ユニットにデータを送信する際の様子を示す説明図である。FIG. 7 is an explanatory view showing a state when the first and second microcomputers 21 and 23 transmit data to an external electronic control unit when the selector 32 is in the first state. 第1マイコン21に異常が生じたときのシーケンスの一例を示すフローチャートである。It is a flowchart which shows an example of a sequence when abnormality arises in the 1st microcomputer. 第2マイコン22に異常が生じたときのシーケンスの一例を示すフローチャートである。It is a flowchart which shows an example of a sequence when abnormality arises in the 2nd microcomputer. 第1配線25に異常が生じたときのシーケンスの一例を示すフローチャートである。FIG. 10 is a flowchart showing an example of a sequence when an abnormality occurs in the first wiring 25. FIG. 第2配線26に異常が生じたときのシーケンスの一例を示すフローチャートである。It is a flowchart which shows an example of a sequence when abnormality generate | occur | produces in 2nd wiring 26. FIG. 変形例の電子制御ユニット20Bの構成の概略を示す構成図である。It is a block diagram which shows the outline of a structure of the electronic control unit 20B of a modification.

次に、本発明を実施するための形態を実施例を用いて説明する。   Next, modes for carrying out the present invention will be described using examples.

図1は、本発明の一実施例である制御装置としての電子制御ユニット(ECU)20の構成の概略を示す構成図である。図示するように、実施例の電子制御ユニット20は、外部の電子制御ユニット(CAN通信線10を介して接続される電子制御ユニット)とCAN通信を行なうものであり、第1,第2マイクロコンピュータ(以下、「マイコン」という)21,23と、第1,第2ドミナントタイムアウト回路27,28と、AND回路30と、切替部としてのセレクタ32と、セレクタコントローラ34と、リセットコントローラ36と、トランシーバ38と、を備える。この電子制御ユニット20は、モータを備える電気自動車やハイブリッド自動車などに搭載され、例えば、第1マイコン21はメイン電子制御ユニットと通信すると共に第1モータを駆動制御するマイコンとして構成され、第2マイコン23はメイン電子制御ユニットと通信すると共に第2モータを駆動制御するマイコンとして構成される。   FIG. 1 is a block diagram schematically showing the configuration of an electronic control unit (ECU) 20 as a control device according to an embodiment of the present invention. As illustrated, the electronic control unit 20 of the embodiment performs CAN communication with an external electronic control unit (an electronic control unit connected via the CAN communication line 10), and the first and second microcomputers (Hereinafter referred to as a "microcomputer") 21, 23, first and second dominant timeout circuits 27, 28, an AND circuit 30, a selector 32 as a switching unit, a selector controller 34, a reset controller 36, a transceiver And 38. The electronic control unit 20 is mounted on an electric car or a hybrid car equipped with a motor. For example, the first microcomputer 21 is configured as a microcomputer that communicates with the main electronic control unit and drives and controls the first motor. Reference numeral 23 is configured as a microcomputer that communicates with the main electronic control unit and controls driving of the second motor.

第1,第2マイコン21,23は、それぞれ、図示しないが、CPUを中心とするマイクロプロセッサとして構成されており、CPUに加えて、処理プログラムを記憶するROMや、データを一時的に記憶するRAM、入出力ポート、通信ポートを備える。第1,第2マイコン21,23には、外部の電子制御ユニットからのデータがトランシーバ38の受信部38aを介して入力され、第1,第2マイコン21,23からのデータは、第1,第2配線25,26に出力される。なお、データは、0(ドミナント)または1(レセッシブ)の2進数で入出力(送受信)される。第1,第2マイコン21,23が外部の電子制御ユニットから受信するデータとしては、例えば、第1,第2モータのトルク指令などを挙げることができる。また、第1,第2マイコン21,23から外部の電子制御ユニットに送信するデータとしては、例えば、第1,第2モータの回転数などを挙げることができる。   Although not shown, the first and second microcomputers 21 and 23 are each configured as a microprocessor centering on a CPU, and in addition to the CPU, temporarily store ROM for processing programs and data. It has RAM, I / O port and communication port. Data from an external electronic control unit is input to the first and second microcomputers 21 and 23 through the receiver 38 a of the transceiver 38, and the data from the first and second microcomputers 21 and 23 are the first and second microcomputers 21 and 23. The signal is output to the second wires 25 and 26. Data is input / output (transmission / reception) in a binary number of 0 (dominant) or 1 (recessive). Examples of data received by the first and second microcomputers 21 and 23 from an external electronic control unit include, for example, torque commands of the first and second motors. Further, as data to be transmitted from the first and second microcomputers 21 and 23 to the external electronic control unit, for example, the number of rotations of the first and second motors can be mentioned.

第1,第2マイコン21,23は、互いに通信可能に接続されている。また、第1,第2マイコン21,23は、機能ブロックとして監視部22,24を備える。監視部22,24は、ランパルス(ウォッチドッグタイマ)や演算値比較(いわゆる宿題回答やSUMチェック)などにより相手側のマイコンを監視し、相手側のマイコンの異常を検知すると、相手側のマイコンのリセット要求信号をリセットコントローラ36に出力する。第1,第2マイコン21,23は、リセットコントローラ36からリセット指示信号を受けると、リセット(初期化)する。   The first and second microcomputers 21 and 23 are communicably connected to each other. The first and second microcomputers 21 and 23 include monitoring units 22 and 24 as functional blocks. The monitoring units 22 and 24 monitor the other microcomputer by the run pulse (watchdog timer) or the calculated value comparison (so-called homework answer or SUM check) and detect an abnormality in the other microcomputer, the other microcomputer The reset request signal is output to the reset controller 36. When receiving the reset instruction signal from the reset controller 36, the first and second microcomputers 21 and 23 reset (initialize).

第1ドミナントタイムアウト回路27は、第1マイコン21とAND回路30およびセレクタ32とを接続する第1配線25に設けられており、第1配線25の占有を検知、具体的には、0(ドミナント)の所定ビット数(例えば5ビットなど)に相当する時間に亘る継続を検知したときに、第1配線25に異常が生じたとして、第1異常信号をセレクタコントローラ34に出力する。   The first dominant timeout circuit 27 is provided in the first wiring 25 connecting the first microcomputer 21 to the AND circuit 30 and the selector 32, and detects occupancy of the first wiring 25, specifically, 0 (dominant When a continuation over a time corresponding to a predetermined number of bits (e.g., 5 bits) is detected, the first abnormality signal is output to the selector controller 34 on the assumption that the first wiring 25 is abnormal.

第2ドミナントタイムアウト回路28は、第2マイコン23とAND回路30およびセレクタ32とを接続する第2配線26に設けられており、第2配線26の占有を検知、具体的には、0(ドミナント)の所定ビット数(例えば5ビットなど)に相当する時間に亘る継続を検知したときに、第2配線26に異常が生じたとして、第2異常信号をセレクタコントローラ34に出力する。   The second dominant timeout circuit 28 is provided in the second wiring 26 connecting the second microcomputer 23 to the AND circuit 30 and the selector 32, and detects occupancy of the second wiring 26, specifically, 0 (dominant When a continuation over a time corresponding to a predetermined number of bits (e.g., 5 bits) is detected, the second abnormality signal is output to the selector controller 34 on the assumption that the second wiring 26 is abnormal.

AND回路30は、入力端子が第1,第2配線25,26に接続されると共に出力端子がセレクタ32に接続されており、第1,第2配線25,26が共に1(レセッシブ)のときには1(レセッシブ)を出力し、第1,第2配線25,26のうちの少なくとも1つが0(ドミナント)のときには0(ドミナント)を出力する。   The AND circuit 30 has input terminals connected to the first and second wires 25 and 26 and an output terminal connected to the selector 32. When both the first and second wires 25 and 26 are 1 (recessive) 1 (recessive) is output, and 0 (dominant) is output when at least one of the first and second wires 25 and 26 is 0 (dominant).

セレクタ32は、AND回路30の出力端子とトランシーバ38の送信部38bとを接続する第1状態と、第1配線25と送信部38bとを接続する第2状態と、第2配線26と送信部38bとを接続する第3状態と、を切替可能に構成されている。   The selector 32 has a first state for connecting the output terminal of the AND circuit 30 and the transmitter 38 b of the transceiver 38, a second state for connecting the first wire 25 and the transmitter 38 b, a second wire 26 and a transmitter It is configured to be switchable from the third state in which it is connected to 38b.

セレクタコントローラ34は、リセットコントローラ36からの第1,第2マイコン21,23の状態に関する信号(以下、「マイコン状態信号」という)と、第1,第2ドミナントタイムアウトからの第1,第2異常信号の有無と、に基づいてセレクタ32を第1状態、第2状態、第3状態のうちの何れかにさせる。   The selector controller 34 receives signals from the reset controller 36 regarding the states of the first and second microcomputers 21 and 23 (hereinafter referred to as "microcomputer state signals") and the first and second abnormalities from the first and second dominant timeouts. The selector 32 is set to any one of the first state, the second state, and the third state based on the presence or absence of a signal.

リセットコントローラ36は、第1,第2マイコン21,23からの第2,第1マイコン23,21のリセット要求信号が入力されると、第2,第1マイコン23,21にリセット指示信号を出力する。また、リセットコントローラ36は、第2,第1マイコン23,21のリセット要求信号の有無に基づいてマイコン状態信号をセレクタコントローラ34に出力する。マイコン状態信号は、第1,第2マイコン21,23が何れも正常である旨を示す信号、第1マイコン21が異常である旨を示す信号、第2マイコン23が異常である旨を示す信号の何れかとなる。   The reset controller 36 outputs a reset instruction signal to the second and first microcomputers 23 and 21 when the reset request signal for the second and first microcomputers 23 and 21 from the first and second microcomputers 21 and 23 is input. Do. Further, the reset controller 36 outputs a microcomputer state signal to the selector controller 34 based on the presence or absence of the reset request signal of the second and first microcomputers 23 and 21. The microcomputer status signal is a signal indicating that both the first and second microcomputers 21 and 23 are normal, a signal indicating that the first microcomputer 21 is abnormal, and a signal indicating that the second microcomputer 23 is abnormal. It becomes either.

トランシーバ38は、第1,第2マイコン21,23と外部の電子制御ユニット(CAN通信線10を介して接続される電子制御ユニット)との通信を司る。具体的には、トランシーバ38は、受信部38aおよび送信部38bを有し、外部の電子制御ユニットからのデータを受信部38aを介して第1,第2マイコン21,23に送信し、セレクタ32からのデータを送信部38bを介して外部の電子制御ユニットに送信する。   The transceiver 38 manages communication between the first and second microcomputers 21 and 23 and an external electronic control unit (an electronic control unit connected via the CAN communication line 10). Specifically, the transceiver 38 has a receiver 38a and a transmitter 38b, transmits data from an external electronic control unit to the first and second microcomputers 21 and 23 through the receiver 38a, and the selector 32 Data from the above are transmitted to an external electronic control unit via the transmission unit 38b.

こうして構成された実施例の電子制御ユニット20では、AND回路30からみた第1,第2マイコン21,23側が正常であるときには、セレクタコントローラ34は、セレクタ32に第1状態にさせる。なお、第1,第2マイコン21,23側が正常であるときには、第1,第2ドミナントタイムアウト回路27,28からセレクタコントローラ34に第1,第2異常信号が出力されない、且つ、第1,第2マイコン21,23からリセットコントローラ36に第2,第1マイコン23,21のリセット要求信号が出力されずにリセットコントローラ36からセレクタコントローラ34にマイコン状態信号として第1,第2マイコン21,23が何れも正常である旨を示す信号が出力される。   In the electronic control unit 20 of the embodiment thus configured, when the first and second microcomputers 21 and 23 as viewed from the AND circuit 30 are normal, the selector controller 34 causes the selector 32 to be in the first state. When the first and second microcomputers 21 and 23 are normal, the first and second abnormal signals are not output from the first and second dominant timeout circuits 27 and 28 to the selector controller 34, and The reset request signal of the second and first microcomputers 23 and 21 is not output from the microcomputers 21 and 23 to the reset controller 36, and the first and second microcomputers 21 and 23 are sent as microcomputer state signals to the selector controller 34 from the reset controller A signal indicating that all are normal is output.

図2は、セレクタ32が第1状態のときに、第1,第2マイコン21,23が外部の電子制御ユニットにデータを送信する際の様子を示す説明図である。図示するように、第1,第2マイコン21,23のうちの何れもデータを送信しないときには、第1,第2マイコン21,23は、第1,第2配線25,26を1(レセッシブ)で保持する。これにより、AND回路30の出力は1で保持される。また、第1マイコン21からデータを送信するときには、第2マイコン23は、第2配線26を1(レセッシブ)で保持し、第1マイコン21は、データに基づいて第1配線25を0(ドミナント)または1(レセッシブ)とする。これにより、AND回路30の出力は、第1マイコン21からのデータに応じた値となる。さらに、第2マイコン23からデータを送信するときには、第1マイコン21は、第1配線25を1(レセッシブ)で保持し、第2マイコン23は、データに基づいて第2配線26を0(ドミナント)または1(レセッシブ)とする。これにより、AND回路30の出力は、第2マイコン23からのデータに応じた値となる。実施例では、第1,第2マイコン21,23間の通信により或いは予め定められたスケジュールにより、第1,第2マイコン21,23からのデータを交互にトランシーバ38を介して外部の電子制御ユニットに送信する。   FIG. 2 is an explanatory view showing how the first and second microcomputers 21 and 23 transmit data to an external electronic control unit when the selector 32 is in the first state. As illustrated, when neither of the first and second microcomputers 21 and 23 transmits data, the first and second microcomputers 21 and 23 set the first and second wires 25 and 26 to 1 (recessive). Hold on. Thus, the output of the AND circuit 30 is held at 1. When data is transmitted from the first microcomputer 21, the second microcomputer 23 holds the second wiring 26 at 1 (recessive), and the first microcomputer 21 sets the first wiring 25 to 0 (dominant based on the data). Or 1 (recessive). Thus, the output of the AND circuit 30 has a value corresponding to the data from the first microcomputer 21. Furthermore, when transmitting data from the second microcomputer 23, the first microcomputer 21 holds the first wiring 25 at 1 (recessive), and the second microcomputer 23 sets the second wiring 26 to 0 (dominant based on the data). Or 1 (recessive). Thus, the output of the AND circuit 30 has a value corresponding to the data from the second microcomputer 23. In the embodiment, data from the first and second microcomputers 21 and 23 are alternately transmitted via the transceiver 38 by communication between the first and second microcomputers 21 and 23 or according to a predetermined schedule. Send to

図3は、第1マイコン21に異常が生じたときのシーケンスの一例を示すフローチャートであり、図4は、第2マイコン23に異常が生じたときのシーケンスの一例を示すフローチャートであり、図5は、第1配線25に異常が生じたときのシーケンスの一例を示すフローチャートであり、図6は、第2配線26に異常が生じたときのシーケンスの一例を示すフローチャートである。以下、順に説明する。   FIG. 3 is a flowchart showing an example of the sequence when an abnormality occurs in the first microcomputer 21. FIG. 4 is a flowchart showing an example of the sequence when an abnormality occurs in the second microcomputer 23. FIG. 6 is a flowchart showing an example of the sequence when an abnormality occurs in the first wiring 25. FIG. 6 is a flowchart showing an example of the sequence when an abnormality occurs in the second wiring 26. The following will be described in order.

図3に示すように、第1マイコン21に異常が生じたときには、第2マイコン23の監視部24が第1マイコン21の異常を検知し(ステップS100)、第2マイコン23がリセットコントローラ36に第1マイコン21のリセット要求信号を出力する(ステップS110)。リセットコントローラ36は、第1マイコン21のリセット要求信号が入力されると、第1マイコン21にリセット指示信号を出力して第1マイコン21をリセット(初期化)させると共に(ステップS120)、セレクタコントローラ34にマイコン状態信号として第1マイコン21が異常である旨を示す信号を出力する(ステップS130)。セレクタコントローラ34は、マイコン状態信号として第1マイコン21が異常である旨を示す信号が入力されると、セレクタ32を第3状態(第2配線26と送信部38bとを接続する状態)にさせる(ステップS140)。これにより、第1マイコン21に異常が生じたときでも、第2マイコン23から外部の電子制御ユニットにデータを送信することができる。   As shown in FIG. 3, when an abnormality occurs in the first microcomputer 21, the monitoring unit 24 of the second microcomputer 23 detects an abnormality in the first microcomputer 21 (step S 100), and the second microcomputer 23 transmits a reset controller 36. A reset request signal of the first microcomputer 21 is output (step S110). When the reset request signal of the first microcomputer 21 is input, the reset controller 36 outputs a reset instruction signal to the first microcomputer 21 to reset (initialize) the first microcomputer 21 (step S120), and the selector controller A signal indicating that the first microcomputer 21 is abnormal is output to the microcomputer 34 as a microcomputer status signal (step S130). When a signal indicating that the first microcomputer 21 is abnormal is input as the microcomputer state signal, the selector controller 34 causes the selector 32 to be in the third state (a state in which the second wiring 26 and the transmission unit 38 b are connected). (Step S140). As a result, even when an abnormality occurs in the first microcomputer 21, data can be transmitted from the second microcomputer 23 to an external electronic control unit.

図4に示すように、第2マイコン23に異常が生じたときには、第1マイコン21の監視部22が第2マイコン23の異常を検知し(ステップS200)、第1マイコン21がリセットコントローラ36に第2マイコン23のリセット要求信号を出力する(ステップS210)。リセットコントローラ36は、第2マイコン23のリセット要求信号が入力されると、第2マイコン23にリセット指示信号を出力して第2マイコン23をリセット(初期化)させると共に(ステップS220)、セレクタコントローラ34にマイコン状態信号として第2マイコン23が異常である旨を示す信号を出力する(ステップS230)。セレクタコントローラ34は、マイコン状態信号として第2マイコン23が異常である旨を示す信号が入力されると、セレクタ32を第2状態(第1配線25と送信部38bとを接続する状態)にさせる(ステップS240)。これにより、第2マイコン23に異常が生じたときでも、第1マイコン21から外部の電子制御ユニットにデータを送信することができる。   As shown in FIG. 4, when an abnormality occurs in the second microcomputer 23, the monitoring unit 22 of the first microcomputer 21 detects an abnormality in the second microcomputer 23 (step S 200), and the first microcomputer 21 transmits a reset controller 36. A reset request signal of the second microcomputer 23 is output (step S210). When the reset request signal of the second microcomputer 23 is input, the reset controller 36 outputs a reset instruction signal to the second microcomputer 23 to reset (initialize) the second microcomputer 23 (step S220), and the selector controller A signal indicating that the second microcomputer 23 is abnormal is output to the microcomputer 34 as a microcomputer status signal (step S230). When a signal indicating that the second microcomputer 23 is abnormal is input as the microcomputer state signal, the selector controller 34 causes the selector 32 to be in the second state (a state in which the first wiring 25 and the transmission unit 38 b are connected). (Step S240). As a result, even when an abnormality occurs in the second microcomputer 23, data can be transmitted from the first microcomputer 21 to an external electronic control unit.

図5に示すように、第1配線25に異常(ドミナントが継続する異常)が生じたときには、第1ドミナントタイムアウト回路27が、第1配線25の異常を検知し(ステップS300)、第1異常信号をセレクタコントローラ34に出力する(ステップS310)。セレクタコントローラ34は、第1異常信号が入力されると、セレクタ32を第3状態(第2配線26と送信部38bとを接続する状態)にさせる。これにより、第1配線25に異常が生じたときでも、第2マイコン23から外部の電子制御ユニットにデータを送信することができる。   As shown in FIG. 5, when an abnormality (an abnormality in which the dominant continues) occurs in the first wiring 25, the first dominant timeout circuit 27 detects an abnormality in the first wiring 25 (step S300), and the first abnormality is generated. A signal is output to the selector controller 34 (step S310). When the first abnormality signal is input, the selector controller 34 causes the selector 32 to be in the third state (the state in which the second wiring 26 and the transmission unit 38 b are connected). Thus, even when an abnormality occurs in the first wiring 25, data can be transmitted from the second microcomputer 23 to an external electronic control unit.

図6に示すように、第2配線26に異常(ドミナントが継続する異常)が生じたときには、第2ドミナントタイムアウト回路28が、第2配線26の異常を検知し(ステップS400)、第2異常信号をセレクタコントローラ34に出力する(ステップS410)。セレクタコントローラ34は、第2異常信号が入力されると、セレクタ32を第2状態(第1配線25と送信部38bとを接続する状態)にさせる。これにより、第2配線26に異常が生じたときでも、第1マイコン21から外部の電子制御ユニットにデータを送信することができる。   As shown in FIG. 6, when an abnormality (an abnormality in which the dominant continues) occurs in the second wiring 26, the second dominant timeout circuit 28 detects an abnormality in the second wiring 26 (step S400), and the second abnormality occurs. A signal is output to the selector controller 34 (step S410). When the second abnormality signal is input, the selector controller 34 causes the selector 32 to be in the second state (a state in which the first wiring 25 and the transmission unit 38 b are connected). As a result, even when an abnormality occurs in the second wiring 26, data can be transmitted from the first microcomputer 21 to an external electronic control unit.

以上説明した実施例の電子制御ユニット20では、第1,第2マイコン21,23に第1,第2配線25,26を介して入力端子が接続されたAND回路30と、AND回路30の出力端子とトランシーバ38の送信部38bとを接続する第1状態、第1配線25と送信部38bとを接続する第2状態、第2配線26と送信部38bとを接続する第3状態を切替可能なセレクタ32と、セレクタ32を制御するセレクタコントローラ34と、を備える。そして、セレクタコントローラ34は、AND回路30からみた第1,第2マイコン21,23側が何れも正常であるときには、セレクタ32を第1状態にさせ、第2マイコン23側(第2マイコン23や第2配線26)が異常であるときには、セレクタ32を第2状態にさせ、第1マイコン21側(第1マイコン21や第1配線25)が異常であるときには、セレクタ32を第3状態にさせる。これにより、AND回路30からみた第1,第2マイコン21,23側が何れも正常であるときには、第2状態と第3状態とを必要に応じて切り替えるものに比して、第1マイコン21からのデータと第2マイコン23からのデータとをスムーズに切り替えながら外部に送信することができる。また、第1マイコン21側に異常が生じたときも第2マイコン23からのデータを外部に送信することができ、第2マイコン23側に異常が生じたときでも第1マイコン21からのデータを外部に送信することができる。   In the electronic control unit 20 of the embodiment described above, the AND circuit 30 whose input terminal is connected to the first and second microcomputers 21 and 23 via the first and second wires 25 and 26, and the output of the AND circuit 30 The first state connecting the terminal and the transmitter 38b of the transceiver 38, the second state connecting the first wire 25 and the transmitter 38b, and the third state connecting the second wire 26 and the transmitter 38b are switchable. Selector 32 and a selector controller 34 for controlling the selector 32. The selector controller 34 causes the selector 32 to be in the first state when both the first and second microcomputers 21 and 23 as viewed from the AND circuit 30 are normal, and the second microcomputer 23 (the second microcomputer 23 or the second When the second wiring 26) is abnormal, the selector 32 is brought into the second state, and when the first microcomputer 21 (the first microcomputer 21 and the first wiring 25) is abnormal, the selector 32 is brought into the third state. As a result, when the first and second microcomputers 21 and 23 as viewed from the AND circuit 30 are all normal, the first microcomputer 21 performs switching from the first microcomputer 21 as compared to switching between the second state and the third state as needed. And the data from the second microcomputer 23 can be transmitted to the outside while being switched smoothly. In addition, data from the second microcomputer 23 can be transmitted to the outside even when an abnormality occurs in the first microcomputer 21 side, and data from the first microcomputer 21 can be transmitted even when an abnormality occurs in the second microcomputer 23 side. It can be sent to the outside.

実施例の電子制御ユニット20では、第1,第2ドミナントタイムアウト回路27,28を備えるものとした。しかし、第1,第2ドミナントタイムアウト回路27,28を備えないものとしてもよい。また、図7の変形例の電子制御ユニット20Bに示すように、第1,第2ドミナントタイムアウト回路27,28に代えて、第1,第2通信監視部27B,28Bを備えるものとしてもよい。ここで、第1,第2通信監視部27B,28Bは、第1,第2マイコン21,23からのデータ(通信データ)の通信内容や通信周期を監視し、異常を検知したときに、第1,第2異常信号をセレクタコントローラ34に出力する。   The electronic control unit 20 of the embodiment includes the first and second dominant timeout circuits 27 and 28. However, the first and second dominant timeout circuits 27 and 28 may not be provided. Further, as shown in the electronic control unit 20B of the modified example of FIG. 7, in place of the first and second dominant timeout circuits 27 and 28, first and second communication monitoring units 27B and 28B may be provided. Here, the first and second communication monitoring units 27B and 28B monitor the communication content and communication cycle of the data (communication data) from the first and second microcomputers 21 and 23, and detect an abnormality. The first abnormality signal is output to the selector controller 34.

実施例の主要な要素と課題を解決するための手段の欄に記載した発明の主要な要素との対応関係について説明する。実施例では、第1マイコン21が「第1コンピュータ」に相当し、第2マイコン23が「第2コンピュータ」に相当し、AND回路30が「AND回路」に相当し、セレクタ32が「切替部」に相当し、セレクタコントローラ34およびリセットコントローラ36が「切替制御部」に相当する。   The correspondence between the main elements of the embodiment and the main elements of the invention described in the section of "Means for Solving the Problems" will be described. In the embodiment, the first microcomputer 21 corresponds to a "first computer", the second microcomputer 23 corresponds to a "second computer", the AND circuit 30 corresponds to an "AND circuit", and the selector 32 "switching unit The selector controller 34 and the reset controller 36 correspond to the "switching control unit".

なお、実施例の主要な要素と課題を解決するための手段の欄に記載した発明の主要な要素との対応関係は、実施例が課題を解決するための手段の欄に記載した発明を実施するための形態を具体的に説明するための一例であることから、課題を解決するための手段の欄に記載した発明の要素を限定するものではない。即ち、課題を解決するための手段の欄に記載した発明についての解釈はその欄の記載に基づいて行なわれるべきものであり、実施例は課題を解決するための手段の欄に記載した発明の具体的な一例に過ぎないものである。   In addition, the correspondence of the main elements of the embodiment and the main elements of the invention described in the section of the means for solving the problem implements the invention described in the column of the means for solving the problem in the example. The present invention is not limited to the elements of the invention described in the section of “Means for Solving the Problems”, as it is an example for specifically explaining the mode for carrying out the invention. That is, the interpretation of the invention described in the section of the means for solving the problem should be made based on the description of the section, and the embodiment is an embodiment of the invention described in the section of the means for solving the problem. It is only a specific example.

以上、本発明を実施するための形態について実施例を用いて説明したが、本発明はこうした実施例に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において、種々なる形態で実施し得ることは勿論である。   As mentioned above, although the form for implementing this invention was demonstrated using the Example, this invention is not limited at all by these Examples, In the range which does not deviate from the summary of this invention, it becomes various forms Of course it can be implemented.

本発明は、制御装置の製造産業などに利用可能である。   The present invention is applicable to the manufacturing industry of control devices and the like.

10 CAN通信線、20 電子制御ユニット、21 第1マイコン、22,24 監視部、23 第2マイコン、25 第1配線、26 第2配線、27 第1ドミナントタイムアウト回路、28 第2ドミナントタイムアウト回路、30 AND回路、32 セレクタ、34 セレクタコントローラ、36 リセットコントローラ、38 トランシーバ、38a 受信部、38b 送信部。   DESCRIPTION OF SYMBOLS 10 CAN communication line, 20 electronic control units, 21 1st microcomputer, 22, 24 monitoring part, 23 2nd microcomputer, 25 1st wiring, 26 2nd wiring, 27 1st dominant timeout circuit, 28 2nd dominant timeout circuit, 30 AND circuits, 32 selectors, 34 selector controllers, 36 reset controllers, 38 transceivers, 38a receivers, 38b transmitters.

Claims (1)

相互に異常監視を行なう第1,第2コンピュータを備えると共に外部と通信を行なう制御装置であって、
前記第1,第2コンピュータからの信号が入力されるAND回路と、
前記AND回路の出力を前記外部に送信する第1状態と、前記第1コンピュータの出力だけを前記外部に送信する第2状態と、前記第2コンピュータの出力だけを前記外部に送信する第3状態と、を切替可能な切替部と、
前記AND回路からみた前記第1,第2コンピュータ側が何れも正常であるときには、前記切替部に前記第1状態にさせ、前記第2コンピュータ側が異常であるときには、前記切替部に前記第2状態にさせ、前記第1コンピュータ側が異常であるときには、前記切替部に前記第3状態にさせる切替制御部と、
を備える制御装置。
A control device comprising a first and a second computer that mutually monitor abnormalities and communicating with the outside,
An AND circuit to which signals from the first and second computers are input;
A first state for transmitting the output of the AND circuit to the outside, a second state for transmitting only the output of the first computer to the outside, and a third state for transmitting only the output of the second computer to the outside And a switching unit capable of switching
When both the first and second computer sides viewed from the AND circuit are normal, the switching unit is made to be in the first state, and when the second computer side is abnormal, the switching unit is in the second state A switching control unit for causing the switching unit to be in the third state when the first computer side is abnormal;
Control device comprising:
JP2018006343A 2018-01-18 2018-01-18 Control apparatus Pending JP2019125236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018006343A JP2019125236A (en) 2018-01-18 2018-01-18 Control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018006343A JP2019125236A (en) 2018-01-18 2018-01-18 Control apparatus

Publications (1)

Publication Number Publication Date
JP2019125236A true JP2019125236A (en) 2019-07-25

Family

ID=67398924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018006343A Pending JP2019125236A (en) 2018-01-18 2018-01-18 Control apparatus

Country Status (1)

Country Link
JP (1) JP2019125236A (en)

Similar Documents

Publication Publication Date Title
US10404721B2 (en) Communication device for detecting transmission of an improper message to a network
US20050165989A1 (en) I2C communication system and method enabling bi-directional communications
US20120290753A1 (en) Connection method for bus controllers and communication system
JP2014072673A (en) Relay device
US20130261928A1 (en) Operation Support Apparatus, Electronic Device, Electronic Control Unit and Control System
JP2006333007A (en) Vehicle communication system and data communication method
US5418721A (en) Control device for transmission of supervisory control data in vehicle
EP3696967A1 (en) Motor control system and motor control apparatus
KR20190008855A (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM, AND COMMUNICATION SYSTEM
JP2019125236A (en) Control apparatus
KR20150015831A (en) Apparatus and method for detecting errors of can communication
CN113442848B (en) Vehicle control system, attack determination method, and recording medium having program recorded thereon
JP2018121155A (en) Vehicle controller
JP6296462B2 (en) In-vehicle control device
JP3106827B2 (en) Multiplex communication device
JP6183281B2 (en) Communication system and electronic control device
JP2017120960A (en) Communication path abnormality monitoring device
JP5434683B2 (en) CAN controller
JP4072695B2 (en) Safety controller system
CN112368978A (en) Vehicle-mounted communication system, data acquisition device, management device, and monitoring method
JP6600542B2 (en) Control apparatus and control method
JP2016091162A (en) Electronic control device
JP2017098801A (en) Network relay system
JP2004178081A (en) Encoder system
JP2022177652A (en) Communication device, communication system, and communication method