JP2021064855A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2021064855A
JP2021064855A JP2019187729A JP2019187729A JP2021064855A JP 2021064855 A JP2021064855 A JP 2021064855A JP 2019187729 A JP2019187729 A JP 2019187729A JP 2019187729 A JP2019187729 A JP 2019187729A JP 2021064855 A JP2021064855 A JP 2021064855A
Authority
JP
Japan
Prior art keywords
unit
power supply
processing unit
switch
abnormality
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
JP2019187729A
Other languages
Japanese (ja)
Other versions
JP7205439B2 (en
Inventor
圭 真田
Kei Sanada
圭 真田
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 JP2019187729A priority Critical patent/JP7205439B2/en
Publication of JP2021064855A publication Critical patent/JP2021064855A/en
Application granted granted Critical
Publication of JP7205439B2 publication Critical patent/JP7205439B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

To provide an electronic control device that can improve the reliability of a relay function.SOLUTION: An ECU 1 includes external communication ports P1 and P2, CPUs 41 and 51, power supply circuits 43 and 53 that supply power supply voltage to the respective CPUs 41 and 51, an Ethernet switch (hereinafter referred to as a switch) 30, and an abnormality detection unit 45. The switch 30 can send and receive frames via the external communication ports P1 and P2, and can send and receive frames to and from the CPUs 41 and 51, and relays the received frames. The abnormality detection unit 45 detects any abnormality of the CPU 41 and the power supply voltage supplied from the power supply circuit 43 to the CPU 41. When an abnormality is detected by the abnormality detection unit 45, the CPU 51 changes the CPU that controls the switch 30 from the CPU 41 to the CPU 51, and further changes the setting of the switch 30 such that a frame addressed to the CPU 41 is transferred from the switch 30 to the CPU 51.SELECTED DRAWING: Figure 1

Description

本開示は、中継機能を有した電子制御装置に関する。 The present disclosure relates to an electronic control device having a relay function.

例えば車載イーサネットの通信システムにおいては、異なるVLAN間のフレームを中継する機能を有した電子制御装置が設けられる。VLANは「Virtual Local Area Network」の略である。下記の特許文献1に示されるように、中継機能を有した電子制御装置は、複数の外部通信ポートと、トランシーバとして機能するデバイスであるPHYと、フレームの中継を行う中継部としてのスイッチと、スイッチを制御する装置(例えば、CPU)と、を備える。PHYは「Physical Layer」の略である。 For example, in an in-vehicle Ethernet communication system, an electronic control device having a function of relaying frames between different VLANs is provided. VLAN is an abbreviation for "Virtual Local Area Network". As shown in Patent Document 1 below, the electronic control device having a relay function includes a plurality of external communication ports, a PHY device that functions as a transceiver, a switch as a relay unit that relays frames, and the like. A device (for example, a CPU) for controlling a switch is provided. PHY is an abbreviation for "Physical Layer".

特開2018−74243号公報JP-A-2018-74243

発明者の詳細な検討の結果、下記の課題が見出された。
中継機能を有した電子制御装置において、中継部を制御する処理部が正常に動作しなくなった場合には、中継部の正しい動作が期待できず、延いては、通信システムにおけるフレームの適切な中継及び処理が実現されなくなる可能性が高い。なお、単一故障による通信システムへの影響を低減する手法として、例えば、リング状のトポロジを採用すること等によりネットワークを二重化する手法も考えられるが、車両における部品数やハーネス数の増加を招き易い。
As a result of detailed examination by the inventor, the following problems were found.
In an electronic control device having a relay function, if the processing unit that controls the relay unit does not operate normally, the correct operation of the relay unit cannot be expected, and by extension, an appropriate relay of the frame in the communication system. And there is a high possibility that the processing will not be realized. As a method for reducing the influence of a single failure on the communication system, for example, a method of duplicating the network by adopting a ring-shaped topology can be considered, but this causes an increase in the number of parts and harnesses in the vehicle. easy.

そこで、本開示の1つの局面は、中継機能の信頼性を高めることが可能な電子制御装置を提供する。 Therefore, one aspect of the present disclosure is to provide an electronic control device capable of increasing the reliability of the relay function.

本開示の1つの態様による電子制御装置は、外部装置とフレームを送受信するための少なくとも1つの外部通信ポート(P1,P2)と、第1の処理部(41)と、第2の処理部(51)と、第1の電源部(43)と、第2の電源部(53)と、中継部(30)と、異常検出部(45)と、変更部(51,S130〜S150)と、を備える。 The electronic control device according to one aspect of the present disclosure includes at least one external communication port (P1, P2) for transmitting and receiving a frame to and from an external device, a first processing unit (41), and a second processing unit ( 51), the first power supply unit (43), the second power supply unit (53), the relay unit (30), the abnormality detection unit (45), the change unit (51, S130 to S150), To be equipped.

第1の電源部は、第1の処理部に電源電圧を供給する。第2の電源部は、第2の処理部に電源電圧を供給する。このため、第1の処理部と第2の処理部は、別々の電源電圧で動作することができる。中継部は、少なくとも1つの外部通信ポートを介したフレームの送受信と、第1の処理部及び第2の処理部とのフレームの送受信とが可能であり、受信したフレームの中継を行う。異常検出部は、第1の処理部と、第1の電源部から第1の処理部へ供給される電源電圧との、少なくとも一方の異常を検出する。変更部は、異常検出部により第1の処理部と第1の処理部への電源電圧との少なくとも一方の異常が検出された場合に、中継部を制御する処理部を、第1の処理部から第2の処理部に変更する。更に、変更部は、第1の処理部宛てのフレームが中継部から第2の処理部に転送されるように、中継部の設定を変更する。なお、第1の処理部宛てのフレームとは、第1の処理部を宛先とするフレームである。 The first power supply unit supplies a power supply voltage to the first processing unit. The second power supply unit supplies a power supply voltage to the second processing unit. Therefore, the first processing unit and the second processing unit can operate at different power supply voltages. The relay unit is capable of transmitting and receiving frames via at least one external communication port and transmitting and receiving frames with the first processing unit and the second processing unit, and relays the received frames. The abnormality detection unit detects at least one abnormality of the first processing unit and the power supply voltage supplied from the first power supply unit to the first processing unit. The changing unit is a processing unit that controls a relay unit when an abnormality of at least one of the first processing unit and the power supply voltage to the first processing unit is detected by the abnormality detecting unit. To the second processing unit. Further, the changing unit changes the setting of the relay unit so that the frame addressed to the first processing unit is transferred from the relay unit to the second processing unit. The frame addressed to the first processing unit is a frame addressed to the first processing unit.

このような構成によれば、異常検出部が異常を検出した場合、即ち、第1の処理部が正常に動作しない場合に、第1の処理部に代わって、第2の処理部が中継部を制御することができる。そして、第1の処理部宛てのフレームは、第2の処理部に転送されるため、正常に動作する第2の処理部によって処理されることができる。 According to such a configuration, when the abnormality detection unit detects an abnormality, that is, when the first processing unit does not operate normally, the second processing unit replaces the first processing unit with the relay unit. Can be controlled. Then, since the frame addressed to the first processing unit is transferred to the second processing unit, it can be processed by the second processing unit that operates normally.

よって、当該電子制御装置における中継機能の信頼性を高めることができ、延いては、当該電子制御装置が用いられる通信システムの信頼性を高めることができる。 Therefore, the reliability of the relay function in the electronic control device can be enhanced, and the reliability of the communication system in which the electronic control device is used can be enhanced.

第1実施形態の電子制御装置の構成を示す構成図である。It is a block diagram which shows the structure of the electronic control apparatus of 1st Embodiment. 第1実施形態の電子制御装置で行われる処理のフローチャートである。It is a flowchart of the process performed by the electronic control device of 1st Embodiment. 第1実施形態の電子制御装置の作用を説明する説明図である。It is explanatory drawing explaining the operation of the electronic control apparatus of 1st Embodiment. 第2実施形態の電子制御装置の構成を示す構成図である。It is a block diagram which shows the structure of the electronic control apparatus of 2nd Embodiment. 第3実施形態の電子制御装置の構成を示す構成図である。It is a block diagram which shows the structure of the electronic control device of 3rd Embodiment. 第3実施形態の電子制御装置で、更に行われる処理のフローチャートである。It is a flowchart of the process further performed in the electronic control apparatus of 3rd Embodiment. 第4実施形態の電子制御装置の構成を示す構成図である。It is a block diagram which shows the structure of the electronic control device of 4th Embodiment. 第4実施形態の電子制御装置で、更に行われる処理のフローチャートである。It is a flowchart of the process further performed in the electronic control apparatus of 4th Embodiment.

以下、図面を参照しながら、本開示の実施形態を説明する。
[1.第1実施形態]
[1−1.構成]
図1に示す第1実施形態の電子制御装置(以下、ECU)1は、例えば乗用車等の車両に搭載されたイーサネットの通信システムにおいて、少なくとも中継装置として機能するECUである。このため、ECU1は、イーサネットのフレームを中継する機能を有する。イーサネットは、登録商標である。ECUは「Electronic Control Unit」の略である。
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[1. First Embodiment]
[1-1. Constitution]
The electronic control device (hereinafter, ECU) 1 of the first embodiment shown in FIG. 1 is an ECU that functions as at least a relay device in an Ethernet communication system mounted on a vehicle such as a passenger car. Therefore, the ECU 1 has a function of relaying an Ethernet frame. Ethernet is a registered trademark. ECU is an abbreviation for "Electronic Control Unit".

ECU1は、当該ECU1の外部に存在する装置(即ち、外部装置)とフレームを送受信するための外部通信ポートP1,P2を備える。外部通信ポートP1,P2には、車両内に配設された通信線L1,L2を介して、外部装置としての他のECU11,12がそれぞれ接続されている。そして、ECU1は、外部通信ポートP1,P2毎に、PHY21,22を備える。 The ECU 1 includes external communication ports P1 and P2 for transmitting and receiving frames to and from a device (that is, an external device) existing outside the ECU 1. Other ECUs 11 and 12 as external devices are connected to the external communication ports P1 and P2 via communication lines L1 and L2 arranged in the vehicle, respectively. Then, the ECU 1 includes PHYs 21 and 22 for each of the external communication ports P1 and P2.

PHY21,22は、イーサネット通信におけるトランシーバとして機能するデバイスであり、例えば、MDI規格の物理層信号とMAC間通信で使用されるデータリンク層信号との変換を行う。MDIは「Media Device Interface」の略である。MACは「Media Access Control」の略である。 The PHYs 21 and 22 are devices that function as transceivers in Ethernet communication, and for example, convert a physical layer signal of the MDI standard and a data link layer signal used in inter-MAC communication. MDI is an abbreviation for "Media Device Interface". MAC is an abbreviation for "Media Access Control".

PHY21,22が備える送受信機能のうち、送信機能は、後述するイーサネットスイッチ30からの送信データを、通信線上で伝送される通信信号に変換して当該PHYに対応する外部通信ポートへ出力する機能である。受信機能は、当該PHYに対応する外部通信ポートから入力される通信信号を受信データに変換してイーサネットスイッチ30に出力する機能である。 Among the transmission / reception functions provided by the PHYs 21 and 22, the transmission function is a function that converts the transmission data from the Ethernet switch 30, which will be described later, into a communication signal transmitted on the communication line and outputs it to the external communication port corresponding to the PHY. is there. The reception function is a function of converting a communication signal input from an external communication port corresponding to the PHY into received data and outputting it to the Ethernet switch 30.

そして、外部通信ポートP1は、PHY21を介して、イーサネットスイッチ30が備える通信ポート31〜34のうちの、通信ポート31に接続されている。また、外部通信ポートP2は、PHY22を介して、イーサネットスイッチ30の通信ポート32に接続されている。なお、外部通信ポートP1,P2及びPHY21,22の数は、1つ又は3つ以上であっても良い。 Then, the external communication port P1 is connected to the communication port 31 of the communication ports 31 to 34 included in the Ethernet switch 30 via the PHY 21. Further, the external communication port P2 is connected to the communication port 32 of the Ethernet switch 30 via the PHY 22. The number of external communication ports P1, P2 and PHY21,22 may be one or three or more.

ECU1は、フレームの中継を行うイーサネットスイッチ(以下、スイッチ)30と、メイン系回路部40と、サブ系回路部50と、備える。
メイン系回路部40は、処理部としてのCPU41と、CPU41によってアクセス可能な記憶装置42と、電源回路43と、を備える。電源回路43は、車両に搭載されているメインバッテリ44の電圧から一定の電源電圧を生成し、当該電源電圧をCPU41と記憶装置42とのそれぞれに供給する。
The ECU 1 includes an Ethernet switch (hereinafter referred to as a switch) 30 that relays frames, a main system circuit unit 40, and a sub system circuit unit 50.
The main circuit unit 40 includes a CPU 41 as a processing unit, a storage device 42 accessible by the CPU 41, and a power supply circuit 43. The power supply circuit 43 generates a constant power supply voltage from the voltage of the main battery 44 mounted on the vehicle, and supplies the power supply voltage to each of the CPU 41 and the storage device 42.

サブ系回路部50も、処理部としてのCPU51と、CPU51によってアクセス可能な記憶装置52と、電源回路53と、を備える。電源回路53は、車両に搭載されているサブバッテリ54の電圧から一定の電源電圧を生成し、当該電源電圧をCPU51と記憶装置52とのそれぞれに供給する。サブバッテリ54は、メインバッテリ44とは別のバッテリである。 The sub circuit unit 50 also includes a CPU 51 as a processing unit, a storage device 52 accessible by the CPU 51, and a power supply circuit 53. The power supply circuit 53 generates a constant power supply voltage from the voltage of the sub-battery 54 mounted on the vehicle, and supplies the power supply voltage to each of the CPU 51 and the storage device 52. The sub-battery 54 is a battery different from the main battery 44.

なお、メイン系回路部40において、電源回路43からCPU41と記憶装置42とのそれぞれには、同じ電圧値の電源電圧が供給されても良いし、異なる電圧値の電源電圧が供給されても良い。同様に、サブ系回路部50において、電源回路53からCPU51と記憶装置52とのそれぞれには、同じ電圧値の電源電圧が供給されても良いし、異なる電圧値の電源電圧が供給されても良い。 In the main system circuit unit 40, the power supply circuit 43 may supply a power supply voltage having the same voltage value to each of the CPU 41 and the storage device 42, or may supply power supply voltages having different voltage values. .. Similarly, in the sub system circuit unit 50, a power supply voltage having the same voltage value may be supplied to each of the CPU 51 and the storage device 52 from the power supply circuit 53, or a power supply voltage having a different voltage value may be supplied. good.

記憶装置42,52は、例えば半導体メモリでも良いし、ハードディスクや他のディスク型記憶媒体にデータを記憶する装置でも良い。半導体メモリとしては、例えば揮発性のRAMでも良いし、フラッシュメモリ等の書き換え可能な不揮発性メモリでも良い。 The storage devices 42 and 52 may be, for example, semiconductor memories, or may be devices that store data in a hard disk or other disk-type storage medium. The semiconductor memory may be, for example, a volatile RAM or a rewritable non-volatile memory such as a flash memory.

CPU41,51のそれぞれは、図示が省略されたプログラム用メモリに格納されるプログラムを実行することにより、予め定められた様々な処理を行う。なお、以下では、CPU41のことを、メインCPU41とも言う。また、CPU51のことを、サブCPU51とも言う。 Each of the CPUs 41 and 51 performs various predetermined processes by executing a program stored in the program memory (not shown). In the following, the CPU 41 will also be referred to as a main CPU 41. The CPU 51 is also referred to as a sub CPU 51.

更に、メイン系回路部40は、メインCPU41に関する異常を検出する機能を有した異常検出部45を備える。異常検出部45は、WDC監視部46と、電源監視部47と、を備える。 Further, the main circuit unit 40 includes an abnormality detection unit 45 having a function of detecting an abnormality related to the main CPU 41. The abnormality detection unit 45 includes a WDC monitoring unit 46 and a power supply monitoring unit 47.

WDC監視部46は、メインCPU41が正常であればメインCPU41から所定時間以内毎に出力されるはずのWDC信号を監視する。そして、WDC監視部46は、メインCPU41からWDC信号が出力されない継続時間が、上記所定時間よりも長く設定された閾値時間を超えた場合、あるいはWDC信号の出力周期が所定時間よりも短くなった場合に、メインCPU41が異常であると判定する。メインCPU41が異常であると判定されることは、メインCPU41の異常が検出されたことに該当する。なお、WDCは「Watch Dog timer Clear」の略である。 The WDC monitoring unit 46 monitors the WDC signal that should be output from the main CPU 41 every predetermined time if the main CPU 41 is normal. Then, the WDC monitoring unit 46 has a duration in which the WDC signal is not output from the main CPU 41 exceeds the set threshold time longer than the predetermined time, or the output cycle of the WDC signal becomes shorter than the predetermined time. In this case, it is determined that the main CPU 41 is abnormal. Determining that the main CPU 41 is abnormal corresponds to the detection of an abnormality in the main CPU 41. WDC is an abbreviation for "Watch Dog timer Clear".

電源監視部47は、電源回路43からメインCPU41へ供給される電源電圧を監視し、当該電源電圧の値が所定の正常範囲内でなければ、当該電源電圧が異常であると判定する。電源電圧が異常であると判定されることは、電源電圧の異常が検出されたことに該当する。WDC監視部46によってメインCPU41の異常が検出されていなくても、電源監視部47によってメインCPU41への電源電圧の異常が検出された場合には、メインCPU41が正常に動作しない可能性がある。 The power supply monitoring unit 47 monitors the power supply voltage supplied from the power supply circuit 43 to the main CPU 41, and if the value of the power supply voltage is not within a predetermined normal range, determines that the power supply voltage is abnormal. Determining that the power supply voltage is abnormal corresponds to the detection of an abnormality in the power supply voltage. Even if the WDC monitoring unit 46 does not detect an abnormality in the main CPU 41, if the power supply monitoring unit 47 detects an abnormality in the power supply voltage to the main CPU 41, the main CPU 41 may not operate normally.

異常検出部45は、WDC監視部46によりメインCPU41の異常が検出されるか、あるいは電源監視部47によりメインCPU41への電源電圧の異常が検出された場合に、メイン系異常が発生したことを示すメイン系異常通知をサブCPU51に出力する。ここで言うメイン系異常とは、メインCPU41に関する異常であり、本実施形態では、メインCPU41の異常又はメインCPU41への電源電圧の異常である。 The abnormality detection unit 45 determines that the main system abnormality has occurred when the WDC monitoring unit 46 detects the abnormality of the main CPU 41 or the power supply monitoring unit 47 detects the abnormality of the power supply voltage to the main CPU 41. The indicated main system abnormality notification is output to the sub CPU 51. The main system abnormality referred to here is an abnormality related to the main CPU 41, and in the present embodiment, it is an abnormality of the main CPU 41 or an abnormality of the power supply voltage to the main CPU 41.

異常検出部45からのメイン系異常通知は、例えばSPI通信又はUART通信等のデータ通信による通知であって良い。SPIは「Serial Peripheral Interface」の略である。UARTは「Universal Asynchronous Receiver/Transmitter」の略である。メイン系異常通知にデータ通信が用いられる場合、サブCPU51には、検出された異常がメインCPU41の異常と電源電圧の異常との何れであるかを区別して通知しても良い。つまり、メイン系異常通知には、検出された異常を識別可能な識別情報が含まれても良い。また、メイン系異常通知は、信号線の信号レベルによる通知であっても良い。この場合、信号線の信号レベルが、ハイとローとのうちで、予め定められた一方のレベルであれば、異常ありを示すように構成することができる。 The main system abnormality notification from the abnormality detection unit 45 may be a notification by data communication such as SPI communication or UART communication. SPI is an abbreviation for "Serial Peripheral Interface". UART is an abbreviation for "Universal Asynchronous Receiver / Transmitter". When data communication is used for the main system abnormality notification, the sub CPU 51 may be notified by distinguishing whether the detected abnormality is an abnormality of the main CPU 41 or an abnormality of the power supply voltage. That is, the main system abnormality notification may include identification information that can identify the detected abnormality. Further, the main system abnormality notification may be a notification based on the signal level of the signal line. In this case, if the signal level of the signal line is one of high and low, which is predetermined, it can be configured to indicate that there is an abnormality.

異常検出部45は、例えば、電源回路43から出力される複数の電源電圧のうち、メインCPU41へ供給される電源電圧とは別の電源電圧によって動作するように構成されて良い。また、異常検出部45は、例えば、電源回路43,53とは別の、図示されない電源回路から供給される電源電圧によって動作するように構成されて良い。 The abnormality detection unit 45 may be configured to operate with a power supply voltage different from the power supply voltage supplied to the main CPU 41 among a plurality of power supply voltages output from the power supply circuit 43, for example. Further, the abnormality detection unit 45 may be configured to operate by a power supply voltage supplied from a power supply circuit (not shown), which is different from the power supply circuits 43 and 53, for example.

スイッチ30は、通信を行うための通信ポート31〜34と、当該スイッチ30を制御するための制御信号が入力される制御用ポート35と、を備える。
通信ポート31,32は、前述したように、PHY21,22を介して外部通信ポートP1,P2にそれぞれ接続されている。通信ポート33は、メインCPU41に接続されている。通信ポート34は、サブCPU51に接続されている。
The switch 30 includes communication ports 31 to 34 for performing communication and a control port 35 for inputting a control signal for controlling the switch 30.
As described above, the communication ports 31 and 32 are connected to the external communication ports P1 and P2 via PHY21 and 22, respectively. The communication port 33 is connected to the main CPU 41. The communication port 34 is connected to the sub CPU 51.

このため、スイッチ30は、外部通信ポートP1,P2を介した外部装置(例えばECU11,12)とのフレームの送受信と、メインCPU41及びサブCPU51とのフレームの送受信とが可能である。なお、スイッチ30が備える通信ポート31〜34のうち、CPU41,51に接続される通信ポート33,34以外の数は、1つ又は3つ以上であっても良い。 Therefore, the switch 30 can send and receive frames to and from external devices (for example, ECUs 11 and 12) via the external communication ports P1 and P2, and can send and receive frames to and from the main CPU 41 and the sub CPU 51. Of the communication ports 31 to 34 included in the switch 30, the number other than the communication ports 33 and 34 connected to the CPUs 41 and 51 may be one or three or more.

そして、スイッチ30は、受信したフレームを中継するための中継処理を行う。
例えば、スイッチ30は、通信ポート31〜34の何れかから受信したフレーム(即ち、受信フレーム)内の宛先情報に基づいて、通信ポート31〜34の何れかを受信フレームの転送先として選択し、当該選択した通信ポートから受信フレームを送信する。
Then, the switch 30 performs a relay process for relaying the received frame.
For example, the switch 30 selects any of the communication ports 31 to 34 as the transfer destination of the reception frame based on the destination information in the frame (that is, the reception frame) received from any of the communication ports 31 to 34. Receive frames are transmitted from the selected communication port.

宛先情報としては、例えばMACアドレスが使用されて良い。また、スイッチ30には、受信フレーム内の宛先情報としてのMACアドレス(即ち、宛先MACアドレス)から、転送先の通信ポートを選択するための情報テーブルとして、MACアドレステーブルが記憶されて良い。MACアドレステーブルには、通信ポート31〜34のそれぞれについて、その通信ポートの先に接続されている装置のMACアドレスが登録されて良い。 As the destination information, for example, a MAC address may be used. Further, the switch 30 may store a MAC address table as an information table for selecting a transfer destination communication port from the MAC address (that is, the destination MAC address) as the destination information in the reception frame. In the MAC address table, the MAC address of the device connected to the tip of the communication port may be registered for each of the communication ports 31 to 34.

また、スイッチ30は、制御用ポート35に入力される制御信号により、当該スイッチ30の動作に関する複数の内容について設定が可能に構成されている。制御信号によって設定可能な内容としては、例えば、フレームの宛先や、フレームの加工や、通信速度などがある。フレームの加工には、例えばデータを削減することが含まれる。 Further, the switch 30 is configured so that a plurality of contents related to the operation of the switch 30 can be set by a control signal input to the control port 35. The contents that can be set by the control signal include, for example, the destination of the frame, the processing of the frame, and the communication speed. Processing the frame involves, for example, reducing data.

スイッチ30は、例えば、電源回路43,53とは別の、図示されない電源回路から供給される電源電圧によって動作するように構成されて良い。
メインCPU41は、スイッチ30から当該CPU41に転送されたフレームを用いた制御として、例えばロギング制御を行うように構成されている。メインCPU41が行うロギング制御は、当該CPU41に転送されたフレームの全て又は一部に含まれるデータを、記憶装置42に記憶する制御である。
The switch 30 may be configured to operate by a power supply voltage supplied from a power supply circuit (not shown), which is different from the power supply circuits 43 and 53, for example.
The main CPU 41 is configured to perform, for example, logging control as a control using a frame transferred from the switch 30 to the CPU 41. The logging control performed by the main CPU 41 is a control for storing the data included in all or a part of the frames transferred to the CPU 41 in the storage device 42.

サブCPU51も、スイッチ30から当該CPU51に転送されたフレームを用いた制御として、例えばロギング制御を行うように構成されている。サブCPU51が行うロギング制御は、当該CPU51に転送されたフレームの全て又は一部に含まれるデータを、記憶装置52に記憶する制御である。 The sub CPU 51 is also configured to perform, for example, logging control as a control using the frame transferred from the switch 30 to the CPU 51. The logging control performed by the sub CPU 51 is a control for storing the data included in all or a part of the frames transferred to the CPU 51 in the storage device 52.

また、CPU41,51のそれぞれは、当該CPUに転送されたフレーム内のデータに基づいて、車両における制御対象を制御するようになっていても良い。制御対象としては、例えば、車両の動力源や、車両周囲を撮影するカメラや、操舵装置や、制動装置等であって良い。 Further, each of the CPUs 41 and 51 may control the control target in the vehicle based on the data in the frame transferred to the CPU. The control target may be, for example, a power source of the vehicle, a camera for photographing the surroundings of the vehicle, a steering device, a braking device, or the like.

更に、ECU1は、信号切替部60を備える。
信号切替部60は、メインCPU41とサブCPU51とのうちの一方からスイッチ30の制御用ポート35へ制御信号を入力させるように構成された回路である。このため、信号切替部60は、第1スイッチ61と、第2スイッチ62と、を備える。
Further, the ECU 1 includes a signal switching unit 60.
The signal switching unit 60 is a circuit configured to input a control signal from one of the main CPU 41 and the sub CPU 51 to the control port 35 of the switch 30. Therefore, the signal switching unit 60 includes a first switch 61 and a second switch 62.

第1スイッチ61は、オンすることで、メインCPU41からの制御信号をスイッチ30の制御用ポート35に入力させる。具体的には、第1スイッチ61は、オンすることで、メインCPU41の端子のうちで制御信号を出力するための端子と、スイッチ30の制御用ポート35とを接続させる。 When the first switch 61 is turned on, the control signal from the main CPU 41 is input to the control port 35 of the switch 30. Specifically, when the first switch 61 is turned on, the terminal for outputting the control signal among the terminals of the main CPU 41 and the control port 35 of the switch 30 are connected.

第2スイッチ62は、オンすることで、サブCPU51からの制御信号をスイッチ30の制御用ポート35に入力させる。具体的には、第2スイッチ62は、オンすることで、サブCPU51の端子のうちで制御信号を出力するための端子と、スイッチ30の制御用ポート35とを接続させる。第1スイッチ61及び第2スイッチ62としては、例えば、小信号用のスイッチング素子や、入出力を切り離す機能が備わったレベルシフタ等のバッファICが使用されて良い。スイッチング素子は、例えばバイポーラトランジスタ又はMOSFETであって良い。 When the second switch 62 is turned on, the control signal from the sub CPU 51 is input to the control port 35 of the switch 30. Specifically, when the second switch 62 is turned on, the terminal for outputting the control signal among the terminals of the sub CPU 51 is connected to the control port 35 of the switch 30. As the first switch 61 and the second switch 62, for example, a buffer IC such as a switching element for a small signal or a level shifter having a function of separating input / output may be used. The switching element may be, for example, a bipolar transistor or MOSFET.

そして、第1スイッチ61と第2スイッチ62のオンとオフは、サブCPU51が出力する切替指令によって切り替えられる。具体的には、第1スイッチ61と第2スイッチ62は、サブCPU51からの切替指令によって択一的にオンするように構成されている。 Then, the on / off of the first switch 61 and the second switch 62 is switched by the switching command output from the sub CPU 51. Specifically, the first switch 61 and the second switch 62 are configured to be selectively turned on by a switching command from the sub CPU 51.

切替指令は、例えば、第1スイッチ61のオン/オフを指令する第1信号と、第2スイッチ62のオン/オフを指令する第2信号とを、含んで良いが、本実施形態では、切替指令は、1本の信号線によって伝達される単一制御信号である。 The switching command may include, for example, a first signal for commanding on / off of the first switch 61 and a second signal for commanding on / off of the second switch 62, but in the present embodiment, switching may be performed. The command is a single control signal transmitted by a single signal line.

そして、信号切替部60では、サブCPU51からの単一制御信号がハイとローとの一方である通常時レベルならば、第1スイッチ61と第2スイッチ62とのうち、第1スイッチ61がオンする。また、単一制御信号が通常時レベルと異なる方の非通常時レベルならば、第1スイッチ61と第2スイッチ62とのうち、第2スイッチ62がオンする。例えば、第1スイッチ61及び第2スイッチ62としてMOSFETが使用される場合、第1スイッチ61及び第2スイッチ62のうち、一方としてはnチャネル型MOSFETが用いられ、他方としてはpチャネル型MOSFETが用いられて良い。 Then, in the signal switching unit 60, if the single control signal from the sub CPU 51 is at the normal level, which is one of high and low, the first switch 61 of the first switch 61 and the second switch 62 is turned on. To do. If the single control signal is at a non-normal time level different from the normal time level, the second switch 62 of the first switch 61 and the second switch 62 is turned on. For example, when MOSFETs are used as the first switch 61 and the second switch 62, an n-channel MOSFET is used as one of the first switch 61 and the second switch 62, and a p-channel MOSFET is used as the other. May be used.

そして、異常検出部45によりメイン系異常が検出されていない通常時において、サブCPU51からの単一制御信号(即ち、切替指令)は、デフォルト値としての上記通常時レベルになる。このため、通常時においては、第1スイッチ61と第2スイッチ62とのうち、第1スイッチ61がオンする。よって、スイッチ30は、メインCPU41によって制御される。 Then, in the normal time when the abnormality detection unit 45 does not detect the main system abnormality, the single control signal (that is, the switching command) from the sub CPU 51 becomes the above-mentioned normal time level as the default value. Therefore, in the normal state, the first switch 61 of the first switch 61 and the second switch 62 is turned on. Therefore, the switch 30 is controlled by the main CPU 41.

また、異常検出部45によりメイン系異常が検出された場合(即ち、メイン系異常発生時)には、サブCPU51から信号切替部60への単一制御信号が上記非通常時レベルに切り替わる。このため、メイン系異常発生時においては、図3に示すように、第1スイッチ61と第2スイッチ62とのうち、第2スイッチ62がオンする。よって、スイッチ30は、サブCPU51によって制御される。 Further, when the abnormality detection unit 45 detects the main system abnormality (that is, when the main system abnormality occurs), the single control signal from the sub CPU 51 to the signal switching unit 60 is switched to the above-mentioned abnormal time level. Therefore, when an abnormality occurs in the main system, the second switch 62 of the first switch 61 and the second switch 62 is turned on, as shown in FIG. Therefore, the switch 30 is controlled by the sub CPU 51.

なお、CPU41,51からスイッチ30の制御用ポート35への制御信号の伝送には、例えばSPI通信又はI2C通信が用いられて良い。I2Cは「Inter Integrated Circuit」の略である。 For transmission of the control signal from the CPUs 41 and 51 to the control port 35 of the switch 30, for example, SPI communication or I2C communication may be used. I2C is an abbreviation for "Inter Integrated Circuit".

[1−2.処理]
次に、ECU1において、異常検出部45及びCPU41,51により行われる処理について、図2のフローチャートを用いて説明する。図2に示される処理は、例えば一定時間毎に繰り返し実行される。
[1-2. processing]
Next, the processing performed by the abnormality detection unit 45 and the CPUs 41 and 51 in the ECU 1 will be described with reference to the flowchart of FIG. The process shown in FIG. 2 is repeatedly executed, for example, at regular time intervals.

図2に示すように、ECU1では、S110にて、異常検出部45が、WDC監視部46又は電源監視部47によってメイン系異常が検出されたか否かを判定する。
異常検出部45は、上記S110にて、メイン系異常が検出されたと判定した場合には、S120にて、サブCPU51へのメイン系異常通知を出力する。つまり、メイン系異常が発生したことをサブCPU51に通知する。また、異常検出部45は、上記S110にて、メイン系異常が検出されていないと判定した場合には、メイン系異常通知を出力しない。そして、この場合には、S120〜S150がスキップされて、後述するS160の処理が行われる。
As shown in FIG. 2, in the ECU 1, in S110, the abnormality detection unit 45 determines whether or not the main system abnormality is detected by the WDC monitoring unit 46 or the power supply monitoring unit 47.
When the abnormality detection unit 45 determines that the main system abnormality has been detected in S110, the abnormality detection unit 45 outputs a main system abnormality notification to the sub CPU 51 in S120. That is, the sub CPU 51 is notified that the main system abnormality has occurred. Further, when the abnormality detection unit 45 determines in S110 that no main system abnormality has been detected, the abnormality detection unit 45 does not output the main system abnormality notification. Then, in this case, S120 to S150 are skipped, and the processing of S160 described later is performed.

サブCPU51は、異常検出部45からのメイン系異常通知を受けると、S130にて、スイッチ30を制御するCPU(即ち、スイッチ制御CPU)の変更を行う。具体的には、サブCPU51は、信号切替部60への切替指令としての単一制御信号を、上記通常時レベルから上記非通常時レベルに切り替えることにより、スイッチ制御CPUを、メインCPU41から当該サブCPU51に変更する。つまり、メインCPU41からの制御信号に代えて、サブCPU51からの制御信号が、スイッチ30の制御用ポート35に入力されるように、信号切替部60を切り替える。 Upon receiving the main system abnormality notification from the abnormality detection unit 45, the sub CPU 51 changes the CPU that controls the switch 30 (that is, the switch control CPU) in S130. Specifically, the sub CPU 51 switches the switch control CPU from the main CPU 41 to the sub by switching the single control signal as a switching command to the signal switching unit 60 from the normal time level to the non-normal time level. Change to CPU 51. That is, the signal switching unit 60 is switched so that the control signal from the sub CPU 51 is input to the control port 35 of the switch 30 instead of the control signal from the main CPU 41.

サブCPU51は、スイッチ制御CPUを当該サブCPU51に変更した後、S140にて、スイッチ30がフレームの送受信中であるか否かを判定し、フレームの送受信中であれば、スイッチ30におけるフレームの送受信が完了するまで待つ。そして、サブCPU51は、S140にて、スイッチ30がフレームの送受信中ではないと判定した場合には、S150に進む。つまり、サブCPU51は、スイッチ30においてフレームの送受信が完了していることを確認してから、S150に進む。なお、サブCPU51は、例えば、スイッチ30の制御用ポート35から、スイッチ30の状態を示すステータス情報を読み出し、この読み出したステータス情報により、スイッチ30がフレームの送受信中であるか否かを判定して良い。 After changing the switch control CPU to the sub CPU 51, the sub CPU 51 determines in S140 whether or not the switch 30 is transmitting / receiving frames, and if the switch 30 is transmitting / receiving frames, the sub CPU 51 transmits / receives frames in the switch 30. Wait until is completed. Then, when the sub CPU 51 determines in S140 that the switch 30 is not transmitting / receiving a frame, the sub CPU 51 proceeds to S150. That is, the sub CPU 51 confirms that the transmission / reception of the frame is completed on the switch 30, and then proceeds to S150. The sub CPU 51 reads, for example, status information indicating the state of the switch 30 from the control port 35 of the switch 30, and determines whether or not the switch 30 is transmitting / receiving a frame based on the read status information. It's okay.

そして、サブCPU51は、S150では、スイッチ30の制御用ポート35に出力する制御信号により、スイッチ30におけるフレームの宛先を変更する。具体的には、メインCPU41宛てのフレームがスイッチ30からサブCPU51に転送されるように、スイッチ30の設定を変更する。スイッチ30は、S150での設定変更により、メインCPU41宛てのフレームに含まれる宛先MACアドレスを、サブCPU51のMACアドレスに変更するようになっていても良い。 Then, in S150, the sub CPU 51 changes the destination of the frame in the switch 30 by the control signal output to the control port 35 of the switch 30. Specifically, the setting of the switch 30 is changed so that the frame addressed to the main CPU 41 is transferred from the switch 30 to the sub CPU 51. The switch 30 may change the destination MAC address included in the frame addressed to the main CPU 41 to the MAC address of the sub CPU 51 by changing the setting in S150.

その後、サブCPU51は、S160にて、スイッチ30との間のフレームの送受信と、受信フレームに対する前述のロギング制御とを実施する。
また、メイン系異常が検出されていない通常時には、S160では、メインCPU41、サブCPU51ともに、スイッチ30との間のフレームの送受信と、受信フレームに対する前述のロギング制御とを実施する。
After that, the sub CPU 51 performs transmission / reception of a frame with / from the switch 30 and the above-mentioned logging control for the received frame in S160.
Further, in the normal time when the main system abnormality is not detected, in S160, both the main CPU 41 and the sub CPU 51 perform the transmission / reception of the frame with the switch 30 and the above-mentioned logging control for the received frame.

異常検出部45によりメイン系異常が検出された場合には、サブCPU51によってS150の処理が実施されることにより、外部装置(例えばECU11,12)からメインCPU41宛てのフレームは、スイッチ30によりサブCPU51に転送される。また、外部装置からサブCPU51宛てのフレームは、引き続きスイッチ30によりサブCPU51に転送される。 When the abnormality detection unit 45 detects a main system abnormality, the sub CPU 51 executes the process of S150, so that the frame from the external device (for example, ECUs 11 and 12) to the main CPU 41 is sent by the switch 30 to the sub CPU 51. Transferred to. Further, the frame from the external device to the sub CPU 51 is continuously transferred to the sub CPU 51 by the switch 30.

よって、メイン系異常が検出された場合、メインCPU41は、少なくともロギング制御を行わず、サブCPU51は、メインCPU41宛てのフレームと、元々サブCPU51宛てのフレームとについて、ロギング制御を行う。 Therefore, when an abnormality in the main system is detected, the main CPU 41 does not perform at least logging control, and the sub CPU 51 performs logging control for the frame addressed to the main CPU 41 and the frame originally addressed to the sub CPU 51.

[1−3.効果]
以上詳述した第1実施形態によれば、以下の効果を奏する。
(1a)異常検出部45によりメイン系異常が検出された場合、即ち、メインCPU41が正常に動作しない場合に、図3に示すように、信号切替部60において、第1スイッチ61がオフに切り替わると共に、第2スイッチ62がオンに切り替わる。このため、スイッチ制御CPUが、メインCPU41からサブCPU51に変更される。よって、正常に動作しないメインCPU41に代わって、サブCPU51によりスイッチ30を制御することができる。
[1-3. effect]
According to the first embodiment described in detail above, the following effects are obtained.
(1a) When a main system abnormality is detected by the abnormality detection unit 45, that is, when the main CPU 41 does not operate normally, the first switch 61 is switched off in the signal switching unit 60 as shown in FIG. At the same time, the second switch 62 is switched on. Therefore, the switch control CPU is changed from the main CPU 41 to the sub CPU 51. Therefore, the switch 30 can be controlled by the sub CPU 51 instead of the main CPU 41 that does not operate normally.

そして、サブCPU51が図2のS150の処理を行ってスイッチ30の設定を変更することにより、メインCPU41宛てのフレームがスイッチ30からサブCPU51に転送されるようになる。このため、図3における点線の矢印Y1に示すように、本来ならばメインCPU41に転送される外部装置からのフレームが、メインCPU41に転送されなくなり、図3における実線の矢印Y2に示すように、サブCPU51に転送されるようになる。なお、ここで言う「本来ならば」とは、メイン系異常が検出されていなければ、という意味である。よって、メインCPU41宛てのフレームは、サブCPU51によって処理されることができる。例えば、メインCPU41宛てのフレームは、サブCPU51によってロギング制御の対象とされるため、メインCPU41宛てのフレームに含まれたデータを、サブ系回路部50の記憶装置52に記憶(即ち、ロギング)することができる。 Then, the sub CPU 51 performs the process of S150 in FIG. 2 to change the setting of the switch 30, so that the frame addressed to the main CPU 41 is transferred from the switch 30 to the sub CPU 51. Therefore, as shown by the dotted arrow Y1 in FIG. 3, the frame from the external device that is normally transferred to the main CPU 41 is not transferred to the main CPU 41, and as shown by the solid arrow Y2 in FIG. It will be transferred to the sub CPU 51. In addition, "original" here means that the main system abnormality is not detected. Therefore, the frame addressed to the main CPU 41 can be processed by the sub CPU 51. For example, since the frame addressed to the main CPU 41 is subject to logging control by the sub CPU 51, the data included in the frame addressed to the main CPU 41 is stored (that is, logged) in the storage device 52 of the sub system circuit unit 50. be able to.

従って、ECU1における中継機能及びロギング機能の信頼性を高めることができ、延いては、ECU1が用いられる通信システムの信頼性を高めることができる。例えば、車両において、走る、曲がる、止まるに関わるデータは常に正確な情報であることが要求されるため、それらのデータを中継したりロギングしたりする役割のECUについて、信頼性向上が求められている。そして、ECU1によれば、こうした信頼性向上の要求に応じることができる。 Therefore, the reliability of the relay function and the logging function in the ECU 1 can be enhanced, and the reliability of the communication system in which the ECU 1 is used can be enhanced. For example, in a vehicle, data related to running, turning, and stopping is always required to be accurate information, so improvement in reliability is required for an ECU that plays a role of relaying and logging such data. There is. Then, according to the ECU 1, it is possible to meet such a demand for reliability improvement.

(1b)異常検出部45からのメイン系異常通知を受けたサブCPU51は、図2の130の処理により、スイッチ制御CPUをメインCPU41から当該サブCPU51に変更した後、図2のS140にて、スイッチ30がフレームの送受信中であるか否かを判定する。そして、サブCPU51は、スイッチ30においてフレームの送受信が完了していることを確認してから、図2のS150の処理により、スイッチ30におけるフレームの宛先変更を行う。このため、宛先変更の確実性を向上させることができる。 (1b) The sub CPU 51 that has received the main system abnormality notification from the abnormality detection unit 45 changes the switch control CPU from the main CPU 41 to the sub CPU 51 by the process of 130 in FIG. It is determined whether or not the switch 30 is transmitting / receiving a frame. Then, after confirming that the transmission / reception of the frame has been completed in the switch 30, the sub CPU 51 changes the destination of the frame in the switch 30 by the process of S150 in FIG. Therefore, the certainty of the destination change can be improved.

(1c)メイン系異常通知は、異常検出部45から、メインCPU41を介さずに、サブCPU51に出力される。このため、通知の確実性を向上させることができる。
(1d)ネットワークを二重化することなく、冗長化の構成を極力少なくしつつ、信頼性を向上させることができる。
(1c) The main system abnormality notification is output from the abnormality detection unit 45 to the sub CPU 51 without going through the main CPU 41. Therefore, the certainty of notification can be improved.
(1d) It is possible to improve reliability while minimizing the redundancy configuration without duplicating the network.

(1e)物理的な通信パターンの切り替えは行っていないため、信号の劣化を招くことなく、メイン系異常による機能失陥を抑制することができる。
(1f)スイッチ30の制御用ポート35に、CPU41,51のうちの何れか一方のみが電気的に接続される構成であるため、メイン系異常が発生した場合に、メインCPU41による影響を受けることなく、サブCPU51によってスイッチ30を制御することができる。
(1e) Since the physical communication pattern is not switched, it is possible to suppress the functional failure due to the abnormality of the main system without causing the deterioration of the signal.
(1f) Since only one of the CPUs 41 and 51 is electrically connected to the control port 35 of the switch 30, it is affected by the main CPU 41 when a main system abnormality occurs. Instead, the switch 30 can be controlled by the sub CPU 51.

なお、上記実施形態では、メインCPU41が第1の処理部に相当し、サブCPU51が第2の処理部に相当し、電源回路43が第1の電源部に相当し、電源回路53が第2の電源部に相当し、スイッチ30が中継部に相当する。また、サブCPU51が変更部として機能する。そして、図2の処理のうち、S130〜S150の処理が、変更部としての処理に相当する。 In the above embodiment, the main CPU 41 corresponds to the first processing unit, the sub CPU 51 corresponds to the second processing unit, the power supply circuit 43 corresponds to the first power supply unit, and the power supply circuit 53 corresponds to the second processing unit. The switch 30 corresponds to the relay unit. Further, the sub CPU 51 functions as a change unit. Then, among the processes of FIG. 2, the processes of S130 to S150 correspond to the processes as the change unit.

[2.第2実施形態]
[2−1.第1実施形態との相違点]
第2実施形態は、基本的な構成は第1実施形態と同様であるため、相違点について以下に説明する。なお、第1実施形態と同じ符号は、同一の構成を示すものであって、先行する説明を参照する。
[2. Second Embodiment]
[2-1. Differences from the first embodiment]
Since the basic configuration of the second embodiment is the same as that of the first embodiment, the differences will be described below. The same reference numerals as those in the first embodiment indicate the same configurations, and the preceding description will be referred to.

図4に示す第2実施形態のECU1は、第1実施形態と比較すると、下記の事項が異なる。
ECU1は、電源切替部70を備える。電源切替部70は、電源回路43から出力される電源電圧と、電源回路53から出力される電源電圧との、何れか一方を、スイッチ30に動作用の電源電圧として供給するように構成された回路である。
The ECU 1 of the second embodiment shown in FIG. 4 differs from the first embodiment in the following items.
The ECU 1 includes a power supply switching unit 70. The power supply switching unit 70 is configured to supply either one of the power supply voltage output from the power supply circuit 43 and the power supply voltage output from the power supply circuit 53 to the switch 30 as a power supply voltage for operation. It is a circuit.

そして、電源切替部70には、サブCPU51から信号切替部60に出力される切替指令としての単一制御信号が入力される。電源切替部70は、サブCPU51からの単一制御信号が前述の通常時レベルである場合には、電源回路43からの電源電圧をスイッチ30に供給する。また、電源切替部70は、サブCPU51からの単一制御信号が前述の非通常時レベルである場合には、電源回路53からの電源電圧をスイッチ30に供給する。 Then, a single control signal as a switching command output from the sub CPU 51 to the signal switching unit 60 is input to the power supply switching unit 70. When the single control signal from the sub CPU 51 is at the above-mentioned normal level, the power switching unit 70 supplies the power supply voltage from the power supply circuit 43 to the switch 30. Further, the power supply switching unit 70 supplies the power supply voltage from the power supply circuit 53 to the switch 30 when the single control signal from the sub CPU 51 is at the above-mentioned non-normal time level.

このため、異常検出部45によりメイン系異常が検出されていない通常時において、スイッチ30には、電源切替部70を介して、電源回路43からの電源電圧が動作用の電源電圧として供給される。また、異常検出部45によりメイン系異常が検出された場合において、スイッチ30には、電源切替部70を介して、電源回路53からの電源電圧が動作用の電源電圧として供給される。 Therefore, in the normal time when the abnormality detection unit 45 does not detect the main system abnormality, the power supply voltage from the power supply circuit 43 is supplied to the switch 30 as the power supply voltage for operation via the power supply switching unit 70. .. When the abnormality detection unit 45 detects a main system abnormality, the power supply voltage from the power supply circuit 53 is supplied to the switch 30 as the power supply voltage for operation via the power supply switching unit 70.

[2−2.効果]
以上詳述した第2実施形態によれば、前述した第1実施形態と同様の効果を奏し、更に、以下の効果を奏する。
[2-2. effect]
According to the second embodiment described in detail above, the same effect as that of the first embodiment described above is obtained, and the following effects are further obtained.

(2a)異常検出部45によりメイン系異常が検出された場合には、スイッチ30に電源電圧を供給する電源部としての電源回路が、メイン系回路部40における電源回路43から、当該電源回路43とは別の電源回路に変更される。なお、この第2実施形態において、電源回路43から変更される別の電源回路は、サブ系回路部50の電源回路53であるが、電源回路43,53とは別に用意された電源回路であっても良い。 (2a) When the abnormality detection unit 45 detects a main system abnormality, the power supply circuit as the power supply unit for supplying the power supply voltage to the switch 30 is changed from the power supply circuit 43 in the main system circuit unit 40 to the power supply circuit 43. It will be changed to a different power supply circuit. In the second embodiment, another power supply circuit changed from the power supply circuit 43 is the power supply circuit 53 of the sub system circuit unit 50, but is a power supply circuit prepared separately from the power supply circuits 43 and 53. You may.

メイン系異常のうち、メインCPU41への電源電圧の異常が電源監視部47によって検出された場合には、電源回路43自体に異常が発生している可能性がある。また、メイン系異常のうち、メインCPU41の異常がWDC監視部46によって検出された場合にも、メインCPU41への電源電圧が異常である可能性があり、延いては、電源回路43自体に異常が生じている可能性がある。このため、メイン系異常が検出された場合には、スイッチ30に電源電圧を供給する電源回路が、電源回路43から他の電源回路に変更されるようになっている。よって、スイッチ30への確実な電源供給を実現し易い。 If the power supply monitoring unit 47 detects an abnormality in the power supply voltage to the main CPU 41 among the main system abnormalities, there is a possibility that the power supply circuit 43 itself has an abnormality. Further, among the main system abnormalities, when the abnormality of the main CPU 41 is detected by the WDC monitoring unit 46, there is a possibility that the power supply voltage to the main CPU 41 is abnormal, and by extension, the power supply circuit 43 itself is abnormal. May have occurred. Therefore, when an abnormality in the main system is detected, the power supply circuit that supplies the power supply voltage to the switch 30 is changed from the power supply circuit 43 to another power supply circuit. Therefore, it is easy to realize a reliable power supply to the switch 30.

(2b)スイッチ30に電源電圧を供給する電源回路は、メイン系回路部40の電源回路43から、サブ系回路部50の電源回路53に変更される。このため、電源回路43,53とは別の電源回路を特別に用意しておく必要がなく、ECU1における回路規模を抑制することができる。 (2b) The power supply circuit that supplies the power supply voltage to the switch 30 is changed from the power supply circuit 43 of the main system circuit unit 40 to the power supply circuit 53 of the sub system circuit unit 50. Therefore, it is not necessary to specially prepare a power supply circuit different from the power supply circuits 43 and 53, and the circuit scale in the ECU 1 can be suppressed.

なお、電源回路43,53のそれぞれからスイッチ30には、CPU41,51に供給される電源電圧と同じ電圧値の電源電圧が供給されても良いし、異なる電圧値の電源電圧が供給されても良い。 The switch 30 may be supplied with a power supply voltage having the same voltage value as the power supply voltage supplied to the CPUs 41 and 51 from each of the power supply circuits 43 and 53, or may be supplied with a power supply voltage having a different voltage value. good.

[3.第3実施形態]
[3−1.第1実施形態との相違点]
第3実施形態は、基本的な構成は第2実施形態と同様であるため、相違点について以下に説明する。なお、第1及び第2実施形態と同じ符号は、同一の構成を示すものであって、先行する説明を参照する。
[3. Third Embodiment]
[3-1. Differences from the first embodiment]
Since the basic configuration of the third embodiment is the same as that of the second embodiment, the differences will be described below. The same reference numerals as those of the first and second embodiments indicate the same configurations, and the preceding description will be referred to.

図5に示す第3実施形態のECU1は、第2実施形態と比較すると、下記〈3−1a〉〜〈3−1c〉の事項が異なる。
〈3−1a〉異常検出部45からサブCPU51へのメイン系異常通知には、検出された(即ち、発生した)異常を識別可能な識別情報が含まる。
The ECU 1 of the third embodiment shown in FIG. 5 is different from the second embodiment in the following items <3-1a> to <3-1c>.
<3-1a> The main system abnormality notification from the abnormality detection unit 45 to the sub CPU 51 includes identification information capable of identifying the detected (that is, generated) abnormality.

〈3−1b〉サブCPU51から電源切替部70には、信号切替部60への切替指令とは別の電源切替指令が出力される。電源切替指令は、電源切替部70に対して、電源回路43からの電源電圧と、電源回路53からの電源電圧との、何れを選択して出力するかを指令できれば、どのような形態の信号でも良い。本実施形態では、電源切替指令として、例えば1本の信号線によって伝達される単一制御信号が用いられている。以下では、電源切替部70への電源切替指令としての単一制御信号を、信号切替部60への切替指令としての単一制御信号と区別するために、電源切替信号という。 <3-1b> A power switching command different from the switching command to the signal switching unit 60 is output from the sub CPU 51 to the power switching unit 70. The power supply switching command is a signal of any form as long as it can instruct the power supply switching unit 70 to select and output the power supply voltage from the power supply circuit 43 or the power supply voltage from the power supply circuit 53. But it's okay. In the present embodiment, for example, a single control signal transmitted by one signal line is used as the power supply switching command. Hereinafter, in order to distinguish the single control signal as the power switching command to the power switching unit 70 from the single control signal as the switching command to the signal switching unit 60, it is referred to as a power switching signal.

そして、電源切替部70は、サブCPU51からの電源切替信号がハイとローとの一方である通常時レベルの場合には、電源回路43からの電源電圧をスイッチ30に供給する。また、電源切替部70は、サブCPU51からの電源切替信号が通常時レベルと異なる方の非通常時レベルである場合には、電源回路53からの電源電圧をスイッチ30に供給する。 Then, the power supply switching unit 70 supplies the power supply voltage from the power supply circuit 43 to the switch 30 when the power supply switching signal from the sub CPU 51 is at the normal level, which is one of high and low. Further, when the power supply switching signal from the sub CPU 51 is a non-normal time level different from the normal time level, the power supply switching unit 70 supplies the power supply voltage from the power supply circuit 53 to the switch 30.

〈3−1c〉サブCPU51は、異常検出部45からのメイン系異常通知を受けた場合に、図2のS130の処理を行うと共に、図6の処理も行う。
図6に示すように、サブCPU51は、S210にて、メイン系異常通知に含まれる異常の識別情報に基づいて、発生した異常がメインCPU41への電源電圧の異常であるか否かを判定する。
<3-1c> When the sub CPU 51 receives the main system abnormality notification from the abnormality detection unit 45, the sub CPU 51 performs the processing of S130 in FIG. 2 and also the processing of FIG.
As shown in FIG. 6, the sub CPU 51 determines in S210 whether or not the generated abnormality is an abnormality of the power supply voltage to the main CPU 41 based on the abnormality identification information included in the main system abnormality notification. ..

サブCPU51は、発生した異常がメインCPU41への電源電圧の異常ではないと判定した場合には、そのまま当該図6の処理を終了するが、発生した異常がメインCPU41への電源電圧の異常であると判定した場合には、S220に進む。 When the sub CPU 51 determines that the generated abnormality is not an abnormality of the power supply voltage to the main CPU 41, the sub CPU 51 ends the process of FIG. 6 as it is, but the generated abnormality is an abnormality of the power supply voltage to the main CPU 41. If it is determined, the process proceeds to S220.

そして、サブCPU51は、S220では、電源切替部70への電源切替信号をデフォルト値としての通常時レベルから、非通常時レベルに切り替えることにより、スイッチ30に電源電圧を供給する電源回路を、電源回路43から電源回路53に変更する。 Then, in S220, the sub CPU 51 powers the power supply circuit that supplies the power supply voltage to the switch 30 by switching the power supply switching signal to the power supply switching unit 70 from the normal time level as the default value to the non-normal time level. The circuit 43 is changed to the power supply circuit 53.

[3−2.効果]
以上詳述した第3実施形態によれば、前述した第2実施形態の効果を奏し、さらに、以下の効果を奏する。
[3-2. effect]
According to the third embodiment described in detail above, the effect of the above-mentioned second embodiment is obtained, and the following effects are further obtained.

メイン系異常のうち、メインCPU41への電源電圧の異常が検出された場合にだけ、スイッチ30に電源電圧を供給する電源回路が、電源回路43から電源回路53に変更される。このため、電源回路43とメインCPU41とのうち、メインCPU41の動作だけが異常になった場合には、電源回路43からスイッチ30に引き続き電源電圧が供給されることなり、電源回路の変更が実施される機会を少なくすることができる。 The power supply circuit that supplies the power supply voltage to the switch 30 is changed from the power supply circuit 43 to the power supply circuit 53 only when an abnormality in the power supply voltage to the main CPU 41 is detected among the main system abnormalities. Therefore, when only the operation of the main CPU 41 of the power supply circuit 43 and the main CPU 41 becomes abnormal, the power supply voltage is continuously supplied from the power supply circuit 43 to the switch 30, and the power supply circuit is changed. You can reduce the chances of being done.

[4.第4実施形態]
[4−1.第1実施形態との相違点]
第4実施形態は、基本的な構成は第1実施形態と同様であるため、相違点について以下に説明する。なお、第1実施形態と同じ符号は、同一の構成を示すものであって、先行する説明を参照する。
[4. Fourth Embodiment]
[4-1. Differences from the first embodiment]
Since the basic configuration of the fourth embodiment is the same as that of the first embodiment, the differences will be described below. The same reference numerals as those in the first embodiment indicate the same configurations, and the preceding description will be referred to.

図7に示す第4実施形態のECU1は、第1実施形態と比較すると、下記〈4−1a〉〜〈4−1c〉の事項が異なる。
〈4−1a〉サブ系回路部50は、メイン系回路部40と同様に、異常検出部55を備える。以下では、異常検出部55のことを、メイン系回路部40の異常検出部45と区別するために、サブ系異常検出部55とも言う。
The ECU 1 of the fourth embodiment shown in FIG. 7 is different from the first embodiment in the following items <4-1a> to <4-1c>.
<4-1a> The sub system circuit unit 50 includes an abnormality detection unit 55, similarly to the main system circuit unit 40. Hereinafter, the abnormality detection unit 55 is also referred to as a sub system abnormality detection unit 55 in order to distinguish it from the abnormality detection unit 45 of the main system circuit unit 40.

サブ系異常検出部55は、WDC監視部56と、電源監視部57と、を備える。
WDC監視部56は、サブCPU51が正常であればサブCPU51から所定時間以内毎に出力されるはずのWDC信号を監視する。そして、WDC監視部56は、サブCPU51からWDC信号が出力されない継続時間が、上記所定時間よりも長く設定された閾値時間を超えた場合、あるいはWDC信号の出力周期が所定時間よりも短くなった場合に、サブCPU51が異常であると判定する。サブCPU51が異常であると判定されることは、サブCPU51の異常が検出されたことに該当する。
The sub system abnormality detection unit 55 includes a WDC monitoring unit 56 and a power supply monitoring unit 57.
The WDC monitoring unit 56 monitors the WDC signal that should be output from the sub CPU 51 every predetermined time if the sub CPU 51 is normal. Then, when the duration during which the WDC signal is not output from the sub CPU 51 exceeds the set threshold time longer than the predetermined time, the WDC monitoring unit 56 has the output cycle of the WDC signal shorter than the predetermined time. In this case, it is determined that the sub CPU 51 is abnormal. Determining that the sub CPU 51 is abnormal corresponds to the detection of an abnormality in the sub CPU 51.

電源監視部57は、電源回路53からサブCPU51へ供給される電源電圧を監視し、当該電源電圧の値が所定の正常範囲内でなければ、当該電源電圧が異常であると判定する。WDC監視部56によってサブCPU51の異常が検出されていなくても、電源監視部57によってサブCPU51への電源電圧の異常が検出された場合には、サブCPU51が正常に動作しない可能性がある。 The power supply monitoring unit 57 monitors the power supply voltage supplied from the power supply circuit 53 to the sub CPU 51, and if the value of the power supply voltage is not within a predetermined normal range, determines that the power supply voltage is abnormal. Even if the WDC monitoring unit 56 does not detect an abnormality in the sub CPU 51, if the power supply monitoring unit 57 detects an abnormality in the power supply voltage to the sub CPU 51, the sub CPU 51 may not operate normally.

そして、サブ系異常検出部55は、WDC監視部56によりサブCPU51の異常が検出されるか、あるいは電源監視部57によりサブCPU51への電源電圧の異常が検出された場合に、サブ系異常が発生したことを示すサブ系異常通知を出力する。ここで言うサブ系異常とは、サブCPU51に関する異常であり、本実施形態では、サブCPU51の異常又はサブCPU51への電源電圧の異常である。 Then, when the WDC monitoring unit 56 detects the abnormality of the sub CPU 51 or the power supply monitoring unit 57 detects the abnormality of the power supply voltage to the sub CPU 51, the sub system abnormality detecting unit 55 causes the sub system abnormality. Outputs a sub system error notification indicating that it has occurred. The sub system abnormality referred to here is an abnormality related to the sub CPU 51, and in the present embodiment, it is an abnormality of the sub CPU 51 or an abnormality of the power supply voltage to the sub CPU 51.

サブ系異常検出部55からのサブ系異常通知は、例えばSPI通信又はUART通信等のデータ通信による通知であって良い。サブ系異常通知にデータ通信が用いられる場合、サブ系異常通知には、検出された異常を識別可能な識別情報が含まれても良い。また、サブ系異常通知は、信号線の信号レベルによる通知であっても良い。この場合、信号線の信号レベルが、ハイとローとのうちで、予め定められた一方のレベルであれば、異常ありを示すように構成することができる。 The sub system abnormality notification from the sub system abnormality detection unit 55 may be a notification by data communication such as SPI communication or UART communication. When data communication is used for the sub system abnormality notification, the sub system abnormality notification may include identification information that can identify the detected abnormality. Further, the sub system abnormality notification may be a notification based on the signal level of the signal line. In this case, if the signal level of the signal line is one of high and low, which is predetermined, it can be configured to indicate that there is an abnormality.

そして、サブ系異常検出部55からのサブ系異常通知は、後述する遮断用スイッチ72と、メインCPU41とに入力されるようになっている。
なお、サブ系異常検出部55は、例えば、電源回路53から出力される複数の電源電圧のうち、サブCPU51へ供給される電源電圧とは別の電源電圧によって動作するように構成されて良い。また、サブ系異常検出部55は、例えば、電源回路43,53とは別の、図示されない電源回路から供給される電源電圧によって動作するように構成されて良い。
Then, the sub system abnormality notification from the sub system abnormality detection unit 55 is input to the cutoff switch 72 and the main CPU 41, which will be described later.
The sub system abnormality detection unit 55 may be configured to operate with a power supply voltage different from the power supply voltage supplied to the sub CPU 51 among a plurality of power supply voltages output from the power supply circuit 53, for example. Further, the sub system abnormality detection unit 55 may be configured to operate by a power supply voltage supplied from a power supply circuit (not shown), which is different from the power supply circuits 43 and 53, for example.

〈4−1b〉ECU1は、遮断用スイッチ72を更に備える。遮断用スイッチ72は、サブCPU51から信号切替部60へ切替指令を伝達するための信号線(以下、切替指令用信号線)上に設けられている。 <4-1b> The ECU 1 further includes a cutoff switch 72. The cutoff switch 72 is provided on a signal line for transmitting a switching command from the sub CPU 51 to the signal switching unit 60 (hereinafter referred to as a switching command signal line).

遮断用スイッチ72のデフォルトの状態はオンである。そして、遮断用スイッチ72には、オフの指令として、サブ系異常検出部55からのサブ系異常通知が入力される。このため、遮断用スイッチ72は、サブ系異常検出部55からサブ系異常通知が出力されると、オンからオフに切り替わって、切替指令用信号線を遮断する。切替指令用信号線が遮断されることで、サブCPU51から信号切替部60への切替指令の伝達が遮断される。 The default state of the shutoff switch 72 is on. Then, the sub system abnormality notification from the sub system abnormality detection unit 55 is input to the cutoff switch 72 as an off command. Therefore, when the sub system abnormality detection unit 55 outputs the sub system abnormality notification, the cutoff switch 72 switches from on to off and cuts off the switching command signal line. By blocking the switching command signal line, the transmission of the switching command from the sub CPU 51 to the signal switching unit 60 is blocked.

そして、切替指令用信号線は、遮断用スイッチ72のオフによって遮断された場合には、信号切替部60に入力される切替指令としての単一制御信号が前述の通常時レベルに固定されるように構成されている。 Then, when the switching command signal line is cut off by turning off the cutoff switch 72, the single control signal as the switching command input to the signal switching unit 60 is fixed to the above-mentioned normal time level. It is configured in.

よって、サブ系異常検出部55からサブ系異常通知が出力されて、遮断用スイッチ72がオフした場合には、サブCPU51から出力される切替指令に関わらず、信号切替部60では、第1スイッチ61と第2スイッチ62とのうち、第1スイッチ61がオンする。このため、スイッチ制御CPUは、メインCPU41に固定される。つまり、スイッチ制御CPUが、サブCPU51によって変更されてしまうことが阻止される。 Therefore, when the sub system abnormality detection unit 55 outputs the sub system abnormality notification and the cutoff switch 72 is turned off, the signal switching unit 60 has the first switch regardless of the switching command output from the sub CPU 51. Of 61 and the second switch 62, the first switch 61 is turned on. Therefore, the switch control CPU is fixed to the main CPU 41. That is, the switch control CPU is prevented from being changed by the sub CPU 51.

〈4−1c〉ECU1では、サブ系異常検出部55及びメインCPU41によって、図8に示す処理も行われる。図8に示される処理は、例えば一定時間毎に繰り返し実行される。 <4-1c> In the ECU 1, the process shown in FIG. 8 is also performed by the sub system abnormality detection unit 55 and the main CPU 41. The process shown in FIG. 8 is repeatedly executed, for example, at regular time intervals.

図8に示すように、ECU1では、S310にて、サブ系異常検出部55が、WDC監視部56又は電源監視部57によってサブ系異常が検出されたか否かを判定する。
サブ系異常検出部55は、上記S310にて、サブ系異常が検出されたと判定した場合には、S320にて、メインCPU41及び遮断用スイッチ72へのサブ系異常通知を出力する。
As shown in FIG. 8, in the ECU 1, in S310, the sub system abnormality detection unit 55 determines whether or not the sub system abnormality is detected by the WDC monitoring unit 56 or the power supply monitoring unit 57.
When the sub system abnormality detection unit 55 determines that the sub system abnormality has been detected in S310, the sub system abnormality detection unit 55 outputs a sub system abnormality notification to the main CPU 41 and the shutoff switch 72 in S320.

サブ系異常検出部55からサブ系異常通知が出力されることにより、遮断用スイッチ72がオフして、サブCPU51から信号切替部60への切替指令の伝達が遮断される。詳しくは、切替指令としての単一制御信号のうち、非通常時レベルの単一制御信号の伝達が遮断される。 When the sub system abnormality detection unit 55 outputs the sub system abnormality notification, the cutoff switch 72 is turned off, and the transmission of the switching command from the sub CPU 51 to the signal switching unit 60 is cut off. Specifically, among the single control signals as the switching command, the transmission of the single control signal at the abnormal normal level is cut off.

また、メインCPU41は、サブ系異常検出部55からのサブ系異常通知を受けると、S330にて、スイッチ30がフレームの送受信中であるか否かを判定し、フレームの送受信中であれば、スイッチ30におけるフレームの送受信が完了するまで待つ。そして、メインCPU41は、S330にて、スイッチ30がフレームの送受信中ではないと判定した場合には、S340に進む。つまり、メインCPU41は、スイッチ30においてフレームの送受信が完了していることを確認してから、S340に進む。なお、メインCPU41は、例えば、スイッチ30の制御用ポート35から、スイッチ30の状態を示すステータス情報を読み出し、この読み出したステータス情報により、スイッチ30がフレームの送受信中であるか否かを判定して良い。 Further, when the main CPU 41 receives the sub system abnormality notification from the sub system abnormality detection unit 55, the main CPU 41 determines in S330 whether or not the switch 30 is transmitting / receiving frames, and if it is transmitting / receiving frames, Wait until the transmission / reception of the frame on the switch 30 is completed. Then, when the main CPU 41 determines in S330 that the switch 30 is not transmitting / receiving a frame, the main CPU 41 proceeds to S340. That is, the main CPU 41 confirms that the transmission / reception of the frame is completed on the switch 30, and then proceeds to S340. The main CPU 41 reads, for example, status information indicating the state of the switch 30 from the control port 35 of the switch 30, and determines whether or not the switch 30 is transmitting / receiving a frame based on the read status information. It's okay.

そして、メインCPU41は、S340では、スイッチ30の制御用ポート35に出力する制御信号により、スイッチ30におけるフレームの宛先を変更する。具体的には、サブCPU51宛てのフレームがスイッチ30からメインCPU41に転送されるように、スイッチ30の設定を変更する。スイッチ30は、S340での設定変更により、サブCPU51宛てのフレームに含まれる宛先MACアドレスを、メインCPU41のMACアドレスに変更するようになっていても良い。 Then, in S340, the main CPU 41 changes the destination of the frame in the switch 30 by the control signal output to the control port 35 of the switch 30. Specifically, the setting of the switch 30 is changed so that the frame addressed to the sub CPU 51 is transferred from the switch 30 to the main CPU 41. The switch 30 may change the destination MAC address included in the frame addressed to the sub CPU 51 to the MAC address of the main CPU 41 by changing the setting in S340.

メインCPU41は、S340の処理を行った場合には、スイッチ30から、元々メインCPU41宛てのフレームと、本来ならばサブCPU51宛てのフレームとを、受信することになる。そして、受信した各フレームについて例えばロギング制御を行う。ここで言う「本来ならば」とは、サブ系異常が検出されていなければ、という意味である。 When the processing of S340 is performed, the main CPU 41 receives a frame originally addressed to the main CPU 41 and a frame originally addressed to the sub CPU 51 from the switch 30. Then, for example, logging control is performed for each received frame. "Originally" here means that no sub-system abnormality has been detected.

また、サブ系異常検出部55は、上記S310にて、サブ系異常が検出されていないと判定した場合には、サブ系異常通知を出力しない。そして、この場合には、S320〜S340がスキップされる。 Further, when the sub system abnormality detection unit 55 determines in S310 that no sub system abnormality has been detected, the sub system abnormality detection unit 55 does not output the sub system abnormality notification. Then, in this case, S320 to S340 are skipped.

[4−2.効果]
以上詳述した第4実施形態によれば、前述した第1実施形態の効果を奏し、さらに、以下の効果を奏する。
[4-2. effect]
According to the fourth embodiment described in detail above, the effects of the above-mentioned first embodiment are exhibited, and the following effects are further achieved.

(4a)サブ系異常検出部55によってサブ系異常が検出された場合には、サブCPU51によってスイッチ制御CPUが変更されることが阻止される。よって、正常に動作しないサブCPU51によって、スイッチ制御CPUが誤ってメインCPU41からサブCPU51に変更されてしまうことを、抑制することができる。 (4a) When the sub system abnormality is detected by the sub system abnormality detection unit 55, the sub CPU 51 prevents the switch control CPU from being changed. Therefore, it is possible to prevent the switch control CPU from being accidentally changed from the main CPU 41 to the sub CPU 51 by the sub CPU 51 that does not operate normally.

(4b)サブ系異常検出部55によってサブ系異常が検出された場合には、遮断用スイッチ72がオフして、サブCPU51から信号切替部60への切替指令の伝達が遮断されことにより、サブCPU51によるスイッチ制御CPUの変更が阻止される。このため、スイッチ制御CPUの変更阻止の確実性を向上させることができる。 (4b) When a sub system abnormality is detected by the sub system abnormality detection unit 55, the cutoff switch 72 is turned off to block the transmission of the switching command from the sub CPU 51 to the signal switching unit 60, so that the sub system abnormality is detected. The change of the switch control CPU by the CPU 51 is prevented. Therefore, it is possible to improve the certainty of preventing the change of the switch control CPU.

(4c)サブ系異常検出部55からのサブ系異常通知は、メインCPU41を介さずに、遮断用スイッチ72に出力される。このため、異常になったメインCPU41が遮断用スイッチ72をオフしてしまい、正常なサブCPU51による信号切替部60及びスイッチ30の制御が不能になってしまうことを、回避することができる。 (4c) The sub system abnormality notification from the sub system abnormality detection unit 55 is output to the cutoff switch 72 without going through the main CPU 41. Therefore, it is possible to prevent the abnormal main CPU 41 from turning off the cutoff switch 72, which makes it impossible for the normal sub CPU 51 to control the signal switching unit 60 and the switch 30.

(4d)サブ系異常検出部55からのサブ系異常通知は、遮断用スイッチ72だけでなく、メインCPU41にも入力される。そして、メインCPU41は、サブ系異常通知を受けた場合に、図8のS340の処理を行ってスイッチ30の設定を変更することにより、サブCPU51宛てのフレームがスイッチ30からメインCPU41に転送されるようにする。このため、本来ならばサブCPU51に転送される外部装置からのフレームが、メインCPU41に転送されるようになる。 (4d) The sub system abnormality notification from the sub system abnormality detection unit 55 is input not only to the cutoff switch 72 but also to the main CPU 41. Then, when the main CPU 41 receives the sub system abnormality notification, the frame addressed to the sub CPU 51 is transferred from the switch 30 to the main CPU 41 by performing the process of S340 in FIG. 8 and changing the setting of the switch 30. To do so. Therefore, the frame from the external device, which is normally transferred to the sub CPU 51, is transferred to the main CPU 41.

よって、サブCPU51宛てのフレームは、正常なメインCPU41によって処理されることができる。例えば、サブCPU51宛てのフレームが、メインCPU41に受信されてロギング制御の対象とされることにより、サブCPU51宛てのフレームに含まれたデータが、メイン系回路部40の記憶装置42に記憶(即ち、ロギング)される。よって、データの消失を抑制することができる。 Therefore, the frame addressed to the sub CPU 51 can be processed by the normal main CPU 41. For example, when the frame addressed to the sub CPU 51 is received by the main CPU 41 and is subject to logging control, the data included in the frame addressed to the sub CPU 51 is stored in the storage device 42 of the main system circuit unit 40 (that is,). , Logging). Therefore, data loss can be suppressed.

なお、上記第4実施形態では、メイン系回路部40の異常検出部45が第1の異常検出部に相当し、サブ系回路部50の異常検出部(即ち、サブ系異常検出部)55が第2の異常検出部に相当し、遮断用スイッチ72が阻止部に相当する。また、信号切替部60への切替指令としての単一制御信号のうち、非通常時レベルの単一制御信号が、「第2の処理部からの制御信号が信号切替部によって中継部に入力されるようにするための切替指令」に相当する。サブCPU51は、図2のS130〜S150の処理を行うことで、第1の変更部として機能する。メインCPU41は、図8のS340の処理を行うことで、第2の変更部として機能する。 In the fourth embodiment, the abnormality detection unit 45 of the main system circuit unit 40 corresponds to the first abnormality detection unit, and the abnormality detection unit (that is, the sub system abnormality detection unit) 55 of the sub system circuit unit 50 corresponds to the first abnormality detection unit. It corresponds to the second abnormality detection unit, and the cutoff switch 72 corresponds to the blocking unit. Further, among the single control signals as the switching command to the signal switching unit 60, the single control signal at the abnormal normal level is "the control signal from the second processing unit is input to the relay unit by the signal switching unit. Corresponds to the "switching command". The sub CPU 51 functions as a first change unit by performing the processes of S130 to S150 of FIG. The main CPU 41 functions as a second change unit by performing the process of S340 in FIG.

一方、上記第4実施形態の構成及び処理は、第2実施形態及び第3実施形態に対しても適用して良い。
[5.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
On the other hand, the configuration and processing of the fourth embodiment may be applied to the second embodiment and the third embodiment.
[5. Other embodiments]
Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments, and can be implemented in various modifications.

例えば、異常検出部45は、WDC監視部46と電源監視部47との一方だけを備えても良い。異常検出部55も、WDC監視部56と電源監視部57との一方だけを備えても良い。 For example, the abnormality detection unit 45 may include only one of the WDC monitoring unit 46 and the power supply monitoring unit 47. The abnormality detection unit 55 may also include only one of the WDC monitoring unit 56 and the power supply monitoring unit 57.

また、ECU1にイーサネットとは別の通信プロトコルの通信線が接続され、当該通信線を介して受信されたデータも記憶装置42,52にロギングされて良い。別の通信プロトコルとしては、例えばCAN(即ち、Controller Area Network)又はLIN(即ち、Local Interconnect Network)であって良い。CANは登録商標である。 Further, a communication line having a communication protocol different from Ethernet may be connected to the ECU 1, and data received via the communication line may also be logged in the storage devices 42 and 52. Another communication protocol may be, for example, CAN (ie, Controller Area Network) or LIN (ie, Local Interconnect Network). CAN is a registered trademark.

また、CPU、電源回路及び記憶装置を備える回路部の数は、2つに限らず、3つ以上であっても良い。そして、3つ以上の回路部のうちの少なくとも2つが、前述したメイン回路部40とサブ系回路部50との関係になっていれば良い。 Further, the number of circuit units including the CPU, the power supply circuit, and the storage device is not limited to two, and may be three or more. Then, at least two of the three or more circuit units may have a relationship between the main circuit unit 40 and the sub system circuit unit 50 described above.

また、本開示に記載のECU1及びその手法は、コンピュータプログラムにより具体化された一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリを構成することによって提供された専用コンピュータにより、実現されてもよい。あるいは、本開示に記載のECU1及びその手法は、一つ以上の専用ハードウェア論理回路によってプロセッサを構成することによって提供された専用コンピュータにより、実現されてもよい。もしくは、本開示に記載のECU1及びその手法は、一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリと一つ以上のハードウェア論理回路によって構成されたプロセッサとの組み合わせにより構成された一つ以上の専用コンピュータにより、実現されてもよい。また、コンピュータプログラムは、コンピュータにより実行されるインストラクションとして、コンピュータ読み取り可能な非遷移有形記録媒体に記憶されてもよい。ECU1に含まれる各部の機能を実現する手法には、必ずしもソフトウェアが含まれている必要はなく、その全部の機能が、一つあるいは複数のハードウェアを用いて実現されてもよい。 Further, the ECU 1 and its method described in the present disclosure are provided by a dedicated computer provided by configuring a processor and memory programmed to perform one or more functions embodied by a computer program. It may be realized. Alternatively, the ECU 1 and its method described in the present disclosure may be realized by a dedicated computer provided by configuring the processor with one or more dedicated hardware logic circuits. Alternatively, the ECU 1 and its method described in the present disclosure are configured by a combination of a processor and memory programmed to perform one or more functions and a processor composed of one or more hardware logic circuits. It may be realized by one or more dedicated computers. The computer program may also be stored on a computer-readable non-transitional tangible recording medium as an instruction executed by the computer. The method for realizing the functions of each part included in the ECU 1 does not necessarily include software, and all the functions may be realized by using one or a plurality of hardware.

また、上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。 Further, a plurality of functions possessed by one component in the above embodiment may be realized by a plurality of components, or one function possessed by one component may be realized by a plurality of components. Further, a plurality of functions possessed by the plurality of components may be realized by one component, or one function realized by the plurality of components may be realized by one component. Further, a part of the configuration of the above embodiment may be omitted. In addition, at least a part of the configuration of the above embodiment may be added or replaced with the configuration of the other above embodiment.

また、上述したECU1の他、当該ECU1を構成要素とするシステム、当該ECU1としてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実体的記録媒体、中継部の制御方法など、種々の形態で本開示を実現することもできる。 Further, in addition to the above-mentioned ECU 1, a system having the ECU 1 as a component, a program for operating a computer as the ECU 1, a non-transitional substantive recording medium such as a semiconductor memory in which this program is recorded, and a control method of a relay unit. The present disclosure can also be realized in various forms such as.

1…ECU、P1,P2…外部通信ポート、30…イーサネットスイッチ、41…メインCPU、51…サブCPU、43…電源回路、53…電源回路、45…異常検出部。 1 ... ECU, P1, P2 ... External communication port, 30 ... Ethernet switch, 41 ... Main CPU, 51 ... Sub CPU, 43 ... Power supply circuit, 53 ... Power supply circuit, 45 ... Abnormality detection unit.

Claims (8)

外部装置とフレームを送受信するための少なくとも1つの外部通信ポート(P1,P2)と、
第1の処理部(41)と、
第2の処理部(51)と、
前記第1の処理部へ電源電圧を供給するように構成された第1の電源部(43)と、
前記第2の処理部へ電源電圧を供給するように構成された第2の電源部(53)と、
前記少なくとも1つの外部通信ポートを介したフレームの送受信と、前記第1の処理部及び前記第2の処理部とのフレームの送受信とが可能であり、受信したフレームの中継を行うように構成された中継部(30)と、
前記第1の処理部と、前記第1の電源部から前記第1の処理部へ供給される前記電源電圧との、少なくとも一方の異常を検出するように構成された異常検出部(45)と、
前記異常検出部により前記第1の処理部と前記第1の処理部への前記電源電圧との少なくとも一方の異常が検出された場合に、前記中継部を制御する処理部を、前記第1の処理部から前記第2の処理部に変更すると共に、前記第1の処理部宛てのフレームが前記中継部から前記第2の処理部に転送されるように前記中継部の設定を変更するように構成された変更部(51,S130〜S150)と、を備える、
電子制御装置。
At least one external communication port (P1, P2) for sending and receiving frames to and from an external device,
The first processing unit (41) and
The second processing unit (51) and
A first power supply unit (43) configured to supply a power supply voltage to the first processing unit, and
A second power supply unit (53) configured to supply a power supply voltage to the second processing unit, and
It is possible to send and receive frames via the at least one external communication port and to send and receive frames to and from the first processing unit and the second processing unit, and the received frames are relayed. With the relay part (30)
An abnormality detection unit (45) configured to detect at least one abnormality of the first processing unit and the power supply voltage supplied from the first power supply unit to the first processing unit. ,
When at least one abnormality of the first processing unit and the power supply voltage to the first processing unit is detected by the abnormality detecting unit, the processing unit that controls the relay unit is the first processing unit. The setting of the relay unit is changed so that the frame addressed to the first processing unit is transferred from the relay unit to the second processing unit while changing from the processing unit to the second processing unit. A configured change unit (51, S130 to S150) is provided.
Electronic control device.
請求項1に記載の電子制御装置であって、
前記変更部は、
前記中継部を制御する処理部を、前記第1の処理部から前記第2の処理部に変更した後、前記中継部においてフレームの送受信が完了していることを確認してから、前記第1の処理部宛てのフレームが前記中継部から前記第2の処理部に転送されるように前記中継部の設定を変更するように構成されている、
電子制御装置。
The electronic control device according to claim 1.
The changed part
After changing the processing unit that controls the relay unit from the first processing unit to the second processing unit, it is confirmed that the transmission / reception of the frame is completed in the relay unit, and then the first processing unit is used. The setting of the relay unit is changed so that the frame addressed to the processing unit is transferred from the relay unit to the second processing unit.
Electronic control device.
請求項1又は請求項2に記載の電子制御装置であって、
前記異常検出部は、第1の異常検出部(45)であり、
前記第2の処理部が、前記変更部として機能するように構成されており、
更に、前記第2の処理部と、前記第2の電源部から前記第2の処理部へ供給される前記電源電圧との、少なくとも一方の異常を検出するように構成された第2の異常検出部(55)と、
前記第2の異常検出部により前記第2の処理部と前記第2の処理部への前記電源電圧との少なくとも一方の異常が検出された場合に、前記中継部を制御する処理部が前記第2の処理部によって変更されることを、阻止するように構成された阻止部(72)と、を備える、
電子制御装置。
The electronic control device according to claim 1 or 2.
The abnormality detection unit is the first abnormality detection unit (45).
The second processing unit is configured to function as the modified unit.
Further, a second abnormality detection configured to detect at least one abnormality of the second processing unit and the power supply voltage supplied from the second power supply unit to the second processing unit. Department (55) and
When at least one abnormality of the second processing unit and the power supply voltage to the second processing unit is detected by the second abnormality detecting unit, the processing unit that controls the relay unit is the second processing unit. It comprises a blocking unit (72) configured to prevent modification by the processing unit of 2.
Electronic control device.
請求項3に記載の電子制御装置であって、
前記中継部を制御するための制御信号を、前記第1の処理部と前記第2の処理部とのうちの一方から前記中継部に入力させるように構成された信号切替部(60)、を更に備え、
前記変更部として機能する前記第2の処理部は、
前記第2の処理部からの前記制御信号が前記信号切替部によって前記中継部に入力されるようにするための切替指令を、前記信号切替部に出力することにより、前記中継部を制御する処理部を、前記第1の処理部から前記第2の処理部に変更するように構成され、
前記阻止部は、
前記第2の処理部から前記信号切替部への前記切替指令の伝達を遮断することにより、前記中継部を制御する処理部が前記第2の処理部によって変更されることを阻止するように構成されている、
電子制御装置。
The electronic control device according to claim 3.
A signal switching unit (60) configured to input a control signal for controlling the relay unit to the relay unit from one of the first processing unit and the second processing unit. Further prepare
The second processing unit that functions as the change unit is
A process of controlling the relay unit by outputting a switching command for inputting the control signal from the second processing unit to the relay unit by the signal switching unit to the signal switching unit. The unit is configured to change from the first processing unit to the second processing unit.
The blocking part
By blocking the transmission of the switching command from the second processing unit to the signal switching unit, the processing unit that controls the relay unit is prevented from being changed by the second processing unit. Has been
Electronic control device.
請求項3又は請求項4に記載の電子制御装置であって、
前記変更部は、第1の変更部(51,S130〜S150)であり、
更に、前記第2の異常検出部により前記第2の処理部と前記第2の処理部への前記電源電圧との少なくとも一方の異常が検出された場合に、前記第2の処理部宛てのフレームが前記中継部から前記第1の処理部に転送されるように前記中継部の設定を変更するように構成された第2の変更部(41,S340)、を備える、
電子制御装置。
The electronic control device according to claim 3 or 4.
The changed part is a first changed part (51, S130 to S150).
Further, when an abnormality of at least one of the second processing unit and the power supply voltage to the second processing unit is detected by the second abnormality detecting unit, a frame addressed to the second processing unit is detected. A second change unit (41, S340) configured to change the setting of the relay unit so that the relay unit is transferred from the relay unit to the first processing unit.
Electronic control device.
請求項1ないし請求項5の何れか1項に記載の電子制御装置であって、
前記異常検出部により前記第1の処理部と前記第1の処理部への前記電源電圧との少なくとも一方の異常が検出された場合に、前記中継部に電源電圧を供給する電源部が、前記第1の電源部から、前記第1の電源部とは別の電源部に変更される、
電子制御装置。
The electronic control device according to any one of claims 1 to 5.
When the abnormality detection unit detects at least one abnormality of the first processing unit and the power supply voltage to the first processing unit, the power supply unit that supplies the power supply voltage to the relay unit is described. The first power supply unit is changed to a power supply unit different from the first power supply unit.
Electronic control device.
請求項6に記載の電子制御装置であって、
前記異常検出部は、少なくとも前記第1の処理部へ供給される前記電源電圧の異常を検出するように構成され、
前記異常検出部により前記第1の処理部への前記電源電圧の異常が検出された場合に、前記中継部に電源電圧を供給する電源部が、前記第1の電源部から前記別の電源部に変更される、
電子制御装置。
The electronic control device according to claim 6.
The abnormality detection unit is configured to detect an abnormality in the power supply voltage supplied to at least the first processing unit.
When an abnormality in the power supply voltage to the first processing unit is detected by the abnormality detection unit, the power supply unit that supplies the power supply voltage to the relay unit changes from the first power supply unit to the other power supply unit. To be changed to
Electronic control device.
請求項6又は請求項7に記載の電子制御装置であって、
前記別の電源部は、前記第2の電源部である、
電子制御装置。
The electronic control device according to claim 6 or 7.
The other power supply unit is the second power supply unit.
Electronic control device.
JP2019187729A 2019-10-11 2019-10-11 electronic controller Active JP7205439B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019187729A JP7205439B2 (en) 2019-10-11 2019-10-11 electronic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019187729A JP7205439B2 (en) 2019-10-11 2019-10-11 electronic controller

Publications (2)

Publication Number Publication Date
JP2021064855A true JP2021064855A (en) 2021-04-22
JP7205439B2 JP7205439B2 (en) 2023-01-17

Family

ID=75486727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019187729A Active JP7205439B2 (en) 2019-10-11 2019-10-11 electronic controller

Country Status (1)

Country Link
JP (1) JP7205439B2 (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001298459A (en) * 2000-04-12 2001-10-26 Nec Corp System changeover device
JP2003524905A (en) * 1998-04-03 2003-08-19 ヴァーティカル・ネットワークス・インコーポレーテッド System and method for transmitting voice and data using intelligent bridge TDM and packet bus
JP2007067540A (en) * 2005-08-29 2007-03-15 Mitsubishi Electric Corp Dual system switch
JP2009166549A (en) * 2008-01-11 2009-07-30 Denso Corp Electronic control device for vehicle
JP2009184423A (en) * 2008-02-04 2009-08-20 Denso Corp Vehicular electronic control unit
JP2009194787A (en) * 2008-02-18 2009-08-27 Hitachi Kokusai Electric Inc Gateway apparatus
WO2012102170A1 (en) * 2011-01-25 2012-08-02 アラクサラネットワークス株式会社 Network relay system and network relay device
WO2013058179A1 (en) * 2011-10-19 2013-04-25 日本電信電話株式会社 Optical network system
JP2016060413A (en) * 2014-09-19 2016-04-25 日立オートモティブシステムズ株式会社 Vehicular electronic control unit and control method
WO2017056688A1 (en) * 2015-09-29 2017-04-06 日立オートモティブシステムズ株式会社 Monitoring system and vehicle control device
JP2017229030A (en) * 2016-06-24 2017-12-28 富士通株式会社 Vm changeover program, information processing device and vm changeover method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003524905A (en) * 1998-04-03 2003-08-19 ヴァーティカル・ネットワークス・インコーポレーテッド System and method for transmitting voice and data using intelligent bridge TDM and packet bus
JP2001298459A (en) * 2000-04-12 2001-10-26 Nec Corp System changeover device
JP2007067540A (en) * 2005-08-29 2007-03-15 Mitsubishi Electric Corp Dual system switch
JP2009166549A (en) * 2008-01-11 2009-07-30 Denso Corp Electronic control device for vehicle
JP2009184423A (en) * 2008-02-04 2009-08-20 Denso Corp Vehicular electronic control unit
JP2009194787A (en) * 2008-02-18 2009-08-27 Hitachi Kokusai Electric Inc Gateway apparatus
WO2012102170A1 (en) * 2011-01-25 2012-08-02 アラクサラネットワークス株式会社 Network relay system and network relay device
WO2013058179A1 (en) * 2011-10-19 2013-04-25 日本電信電話株式会社 Optical network system
JP2016060413A (en) * 2014-09-19 2016-04-25 日立オートモティブシステムズ株式会社 Vehicular electronic control unit and control method
WO2017056688A1 (en) * 2015-09-29 2017-04-06 日立オートモティブシステムズ株式会社 Monitoring system and vehicle control device
JP2017229030A (en) * 2016-06-24 2017-12-28 富士通株式会社 Vm changeover program, information processing device and vm changeover method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沖田 英樹 ほか: "経路制御部の冗長化によるルータ高可用化方式 Highly Available Network Node with Redundant Routing Mod", 電子情報通信学会技術研究報告 VOL.103 NO.624 IEICE TECHNICAL REPORT, JPN6022050474, 22 January 2004 (2004-01-22), JP, pages 43 - 46, ISSN: 0004931418 *

Also Published As

Publication number Publication date
JP7205439B2 (en) 2023-01-17

Similar Documents

Publication Publication Date Title
US7907516B2 (en) Node setting apparatus, network system, node setting method, and computer product
JP2009161148A (en) Fault location detecting device, communication device, and fault location detecting method
JP6967664B2 (en) Gateway device
JP6390520B2 (en) In-vehicle communication system
KR20190000514A (en) Method for preventing diagnostic errors in vehicle network and apparatus for the same
CN111585835B (en) Control method and device for out-of-band management system and storage medium
JP6176199B2 (en) Transmission line abnormality detection device
US8804750B2 (en) Field device
US20220417346A1 (en) In-Vehicle Relay Device and Relay Method
KR100976710B1 (en) Gateway device for car
JP7088075B2 (en) Electronic control device
JP7205439B2 (en) electronic controller
WO2018225513A1 (en) Relay device, relay method and relay program
CN115733729B (en) Communication fault processing method, system and equipment
US10432424B2 (en) Ring network system and network node
JP2004349961A (en) Repeating device and program
JP5176914B2 (en) Transmission device and system switching method for redundant configuration unit
KR100854869B1 (en) System For Duplexing Gateway
JP2017114406A (en) Network system
US20200290532A1 (en) Vehicle communication system
US11757799B2 (en) Line monitor device and network switch
JP2018086950A (en) Communication system
JP5958425B2 (en) Relay device
JPH0537421A (en) Method and device for switching transmission line
JP2021164040A (en) Relay device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221027

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221212

R151 Written notification of patent or utility model registration

Ref document number: 7205439

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151