Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7200812B2 - Communication systems, electronic devices and repeaters - Google Patents
[go: Go Back, main page]

JP7200812B2 - Communication systems, electronic devices and repeaters - Google Patents

Communication systems, electronic devices and repeaters Download PDF

Info

Publication number
JP7200812B2
JP7200812B2 JP2019076990A JP2019076990A JP7200812B2 JP 7200812 B2 JP7200812 B2 JP 7200812B2 JP 2019076990 A JP2019076990 A JP 2019076990A JP 2019076990 A JP2019076990 A JP 2019076990A JP 7200812 B2 JP7200812 B2 JP 7200812B2
Authority
JP
Japan
Prior art keywords
communication
electronic device
ecu
notification
disruption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019076990A
Other languages
Japanese (ja)
Other versions
JP2020178159A (en
Inventor
憲史 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2019076990A priority Critical patent/JP7200812B2/en
Publication of JP2020178159A publication Critical patent/JP2020178159A/en
Application granted granted Critical
Publication of JP7200812B2 publication Critical patent/JP7200812B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本開示は、通信システム、電子装置及び中継装置に関する。 The present disclosure relates to communication systems, electronic devices and relay devices.

例えば、下記の特許文献1には、車両に搭載された複数のECU間でやり取りされる通信フレームが、中継装置によって中継されるように構成された車載通信システムが記載されている。ECUは、「Electronic Control Unit」の略である。 For example, Patent Literature 1 below describes an in-vehicle communication system configured such that communication frames exchanged between a plurality of ECUs mounted in a vehicle are relayed by a relay device. ECU is an abbreviation of "Electronic Control Unit".

また、特許文献1に記載された中継装置は、通信フレームが受信されてからの経過時間を、通信フレームのそれぞれについて検出し、経過時間が許容時間よりも大きくなった通信フレームの転送を禁止するように構成されている。この構成により、中継先の電子装置において、通信フレームが本来の受信タイミングより過度に遅延して受信されることを防止している。 In addition, the relay device described in Patent Document 1 detects the elapsed time since the communication frame was received for each communication frame, and prohibits the transfer of the communication frame whose elapsed time is longer than the allowable time. is configured as This configuration prevents the relay destination electronic device from receiving the communication frame with an excessive delay from the original reception timing.

特開2008-160379号公報JP-A-2008-160379

発明者の詳細な検討の結果、下記の課題が見出された。
例えば車載通信システムにおいて、通信端末としてのECUは、通信路の異常又は当該ECUに備えられた通信インタフェースの異常等により、通信フレームの送信ができなくなった場合、通信フレームの送信を途絶した状態(即ち、通信途絶状態)になる。そして、ECUにおいて、通信途絶状態になっている期間(以下、通信途絶期間)中は、送信対象の通信フレームを格納するためのバッファ内に、送信待ちの1つ以上の通信フレームが滞留することになる。その後、異常が解消されて送信が再開されると、上記バッファ内に滞留した通信フレーム(即ち、滞留フレーム)が、ECUから送出される。
As a result of detailed studies by the inventors, the following problems were found.
For example, in an in-vehicle communication system, when an ECU as a communication terminal cannot transmit a communication frame due to an abnormality in a communication path or an abnormality in a communication interface provided in the ECU, the transmission of the communication frame is interrupted ( That is, the communication is interrupted). In the ECU, during a period in which communication is interrupted (hereinafter referred to as a communication interruption period), one or more communication frames waiting for transmission stay in a buffer for storing communication frames to be transmitted. become. After that, when the abnormality is resolved and the transmission is restarted, the communication frames retained in the buffer (that is, the retained frames) are sent from the ECU.

このため、上記ECUの通信相手である他のECUは、本来の受信タイミングよりも、上記通信途絶期間の時間の分だけ遅れたタイミングで通信フレームを受信する。この場合、受信された通信フレームに含まれるデータは、当該通信フレームの受信タイミングよりもかなり前に生成されたデータとなる。よって、通信相手のECUにおいて、受信した通信フレーム中のデータを用いる処理が、適切に実施されない可能性がある。例えば、通信相手のECUが、受信した通信フレーム中のデータに基づいて車両周辺の状況を判断する処理を行う場合、受信した通信フレーム中のデータが過度に過去のデータでは、状況判断の精度が低下する。 Therefore, the other ECU, which is the communication partner of the ECU, receives the communication frame at a timing delayed by the communication interruption period from the original reception timing. In this case, the data included in the received communication frame is data generated considerably before the reception timing of the communication frame. Therefore, there is a possibility that the processing using the data in the received communication frame may not be properly performed in the communication counterpart ECU. For example, when the communication partner ECU performs processing for judging the situation around the vehicle based on the data in the received communication frame, if the data in the received communication frame is excessively past data, the accuracy of the situation judgment is reduced. descend.

一方、特許文献1に記載された中継装置は、当該中継装置で滞留した通信フレームが中継先のECUへ転送されることを抑制する技術であり、送信側のECUで通信フレームが滞留した場合の課題を解決することはできない。 On the other hand, the relay device described in Patent Literature 1 is a technique for suppressing communication frames accumulated in the relay device from being transferred to the relay destination ECU. cannot solve the problem.

そこで、本開示の1つの局面は、送信側の電子装置が通信途絶状態になってから復帰するまでの期間中に当該送信側の電子装置で滞留していた通信フレームが、通信相手の電子装置に取得されてしまうことを抑制可能な、新たな技術を提供する。 Therefore, in one aspect of the present disclosure, a communication frame that has been stuck in the transmission-side electronic device during a period from when the transmission-side electronic device is in a communication disruption state to when the transmission-side electronic device recovers is To provide a new technology that can prevent personal information from being acquired by others.

本開示の1つの態様による通信システムは、複数の電子装置(11~13,21~23)と、少なくとも1つの中継装置(31,32,65)と、を備える。中継装置は、複数の電子装置のうちの何れかである第1の電子装置から、複数の電子装置のうち第1の電子装置の少なくとも1つの通信相手である第2の電子装置への、通信フレームを中継するように構成されている。そして、中継装置は、途絶判定部(S110)と、途絶通知部(S130)と、復帰判定部(S310)と、復帰通知部(S330)と、を備える。また、第2の電子装置は、破棄開始部(S530)と、破棄終了部(S630,S640)と、を備える。 A communication system according to one aspect of the present disclosure comprises a plurality of electronic devices (11-13, 21-23) and at least one relay device (31, 32, 65). The relay device performs communication from a first electronic device, which is one of the plurality of electronic devices, to a second electronic device, which is a communication partner of at least one of the first electronic device among the plurality of electronic devices. configured to relay frames. The relay device includes a disruption determination unit (S110), a disruption notification unit (S130), a recovery determination unit (S310), and a recovery notification unit (S330). The second electronic device also includes a discard start section (S530) and a discard end section (S630, S640).

中継装置において、途絶判定部は、第1の電子装置が、通信フレームの送信を途絶した状態である通信途絶状態になったか否かを判定する。途絶通知部は、途絶判定部により、第1の電子装置が通信途絶状態になったと判定された場合に、第1の電子装置が通信途絶状態になったことを示す通信途絶通知を、少なくとも第2の電子装置に送る。復帰判定部は、第1の電子装置が、通信途絶状態から、通信フレームの送信を実施する通常状態に復帰したか否かを判定する。復帰通知部は、復帰判定部により、第1の電子装置が通常状態に復帰したと判定された場合に、第1の電子装置が通常状態に復帰したことを示す通信復帰通知を、少なくとも第2の電子装置に送る。 In the relay device, the disruption determination unit determines whether or not the first electronic device has entered a communication disruption state in which transmission of communication frames is interrupted. The disruption notifying unit, when the disruption determination unit determines that the first electronic device is in the communication disruption state, sends a communication disruption notification indicating that the first electronic device is in the communication disruption state to at least the first electronic device. 2 electronic device. The recovery determination unit determines whether or not the first electronic device has recovered from the communication disruption state to a normal state in which communication frames are transmitted. The recovery notifying unit, when the recovery determination unit determines that the first electronic device has recovered to the normal state, sends a communication recovery notification indicating that the first electronic device has recovered to the normal state to at least a second electronic device.

そして、第2の通信装置において、破棄開始部は、当該第2の電子装置において前記通信途絶通知が受信された場合に、当該第2の電子装置の動作モードを、第1の電子装置からの通信フレームを破棄する動作モードにする。破棄終了部は、当該第2の電子装置において前記通信復帰通知が受信された場合に、当該通信復帰通知が受信されてから所定時間が経過したか否かを判定し、所定時間が経過したと判定すると、当該第2の電子装置の動作モードを、第1の電子装置からの通信フレームを破棄せずに取得する動作モードに戻す。 Then, in the second communication device, when the second electronic device receives the communication disruption notification, the discard initiation unit changes the operation mode of the second electronic device to Set the operation mode to discard communication frames. When the second electronic device receives the communication restoration notification, the discard termination unit determines whether a predetermined time has elapsed since the communication restoration notification was received, and determines whether the predetermined time has elapsed. When determined, the operation mode of the second electronic device is returned to the operation mode of acquiring communication frames from the first electronic device without discarding them.

このような構成によれば、通信フレームの送信側の電子装置である第1の電子装置が通信途絶状態になると、通信相手の電子装置である第2の電子装置は、第1の電子装置からの通信フレームを破棄する動作モードになる。そして、第1の電子装置が通信途絶状態から通常状態に復帰して、中継装置からの通信復帰通知が第2の電子装置に受信されると、この通信復帰通知の受信時点から所定時間が経過した後に、第2の電子装置が、第1の電子装置からの通信フレームを破棄せずに取得する動作モードに戻る。 According to such a configuration, when the first electronic device, which is the electronic device on the transmission side of the communication frame, is in a state of communication interruption, the second electronic device, which is the electronic device of the communication partner, receives the first electronic device. It becomes an operation mode that discards the communication frame of Then, when the first electronic device recovers from the communication interruption state to the normal state and the second electronic device receives the communication recovery notification from the relay device, a predetermined time elapses from the time when the communication recovery notification is received. After that, the second electronic device returns to an operation mode in which it acquires communication frames from the first electronic device without discarding them.

このため、第1の電子装置が通信途絶状態から通常状態に復帰して、通信途絶状態の間に滞留されていた通信フレーム(即ち、滞留フレーム)を送信し、この滞留フレームが上記所定時間の経過前に第2の電子装置に受信されたとしても、当該滞留フレームは破棄される。よって、送信側の電子装置が通信途絶状態になってから復帰するまでの期間中に当該送信側の電子装置で滞留していた通信フレームが、通信相手の電子装置に取得されてしまうことが、抑制される。 Therefore, the first electronic device returns from the communication-disconnected state to the normal state, transmits the communication frame (that is, the retained frame) that was retained during the communication-disconnected state, and the retained frame is transmitted for the predetermined time. The stuck frame is discarded even if it is received by the second electronic device before it has elapsed. Therefore, during the period from when the transmission-side electronic device is in a communication-disconnected state to when the transmission-side electronic device recovers, the communication frame that has been retained in the transmission-side electronic device may be acquired by the communication partner electronic device. Suppressed.

また、通信相手の電子装置である通信相手装置と少なくとも1つの中継装置を介して通信する電子装置であって、前記破棄開始部と前記破棄終了部とを備える電子装置であれば、本開示の通信システムにおける第2の電子装置として使用することができる。 Further, as long as it is an electronic device that communicates with a communication partner device, which is an electronic device of a communication partner, via at least one relay device, and is provided with the discard start unit and the discard end unit, the electronic device of the present disclosure It can be used as a second electronic device in a communication system.

また、第1の電子装置から第2の電子装置への通信フレームを中継する中継装置であって、前記途絶判定部と、前記途絶通知部と、前記復帰判定部と、前記復帰通知部と、を備える中継装置であれば、本開示の通信システムにおける中継装置として使用することができる。 Further, a relay device for relaying a communication frame from a first electronic device to a second electronic device, the relay device comprising: the interruption determination unit; the interruption notification unit; Any relay device can be used as a relay device in the communication system of the present disclosure.

第1実施形態の通信システムの構成を示す構成図である。1 is a configuration diagram showing the configuration of a communication system according to a first embodiment; FIG. 中継装置としてのECUが行う、第1の通知処理を表すフローチャートである。4 is a flowchart showing first notification processing performed by an ECU as a relay device; 中継装置としてのECUが行う、第1の通知転送処理を表すフローチャートである。4 is a flowchart showing first notification forwarding processing performed by an ECU as a relay device; 中継装置としてのECUが行う、第2の通知処理を表すフローチャートである。4 is a flowchart showing second notification processing performed by an ECU as a relay device; 中継装置としてのECUが行う、第2の通知転送処理を表すフローチャートである。9 is a flowchart showing second notification forwarding processing performed by an ECU as a relay device; 通信端末装置としてのECUが行う、第1のモード切替処理を表すフローチャートである。4 is a flowchart showing first mode switching processing performed by an ECU as a communication terminal device; 通信端末装置としてのECUが行う、第2のモード切替処理を表すフローチャートである。4 is a flowchart showing second mode switching processing performed by an ECU as a communication terminal device; 第1実施形態の作用例を説明する説明図である。It is explanatory drawing explaining the example of an effect|action of 1st Embodiment. 第2実施形態の通信システムの構成を示す構成図である。FIG. 2 is a configuration diagram showing the configuration of a communication system according to a second embodiment; FIG. 第2実施形態の作用例を説明する説明図である。It is explanatory drawing explaining the example of an effect|action of 2nd Embodiment.

以下、図面を参照しながら、本開示の実施形態を説明する。
[1.第1実施形態]
[1-1.構成]
図1に示す第1実施形態の通信システム1は、例えば車両に搭載される通信システムである。そして、通信システム1は、車両に搭載されたECU11~13,21~23,31,32を備える。
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[1. First Embodiment]
[1-1. Constitution]
A communication system 1 according to the first embodiment shown in FIG. 1 is, for example, a communication system mounted on a vehicle. The communication system 1 includes ECUs 11 to 13, 21 to 23, 31, 32 mounted on the vehicle.

ECU11~13,21~23は、通信システム1における端末の電子装置(即ち、通信端末装置)に該当する。ECU31,32は、ECU11~13,21~23間の通信フレームを中継する中継装置として機能する。 The ECUs 11 to 13 and 21 to 23 correspond to terminal electronic devices (that is, communication terminal devices) in the communication system 1 . The ECUs 31 and 32 function as relay devices for relaying communication frames between the ECUs 11-13 and 21-23.

本実施形態において、通信のプロトコルはイーサネットである。イーサネットは登録商標である。このため、通信フレームは、イーサネットの規格に基づくフレーム(即ち、イーサネットフレーム)である。そして、ECU31,32は、イーサネットにおけるスイッチ(即ち、イーサネットスイッチ)として機能する。以下では、ECU31,32のことを、通信端末装置としてのECU11~13,21~23と区別するために、SWECU31,32と言う。 In this embodiment, the communication protocol is Ethernet. Ethernet is a registered trademark. Therefore, the communication frame is a frame based on the Ethernet standard (that is, an Ethernet frame). The ECUs 31 and 32 function as switches in Ethernet (that is, Ethernet switches). Hereinafter, the ECUs 31 and 32 are referred to as SW ECUs 31 and 32 in order to distinguish them from the ECUs 11 to 13 and 21 to 23 as communication terminal devices.

ECU11~13のそれぞれは、通信線41~43のそれぞれを介して、SWECU31に接続されている。ECU21~23のそれぞれは、通信線51~53のそれぞれを介して、SWECU32に接続されている。そして、SWECU31とSWECU32は、通信線61を介して接続されている。このため、ECU11~13の何れかとECU21~23の何れかとの通信は、SWECU31,32を介して実施される。また、ECU11~13間の通信は、SWECU31を介して実施される。また、ECU21~23間の通信はSWECU32を介して実施される。 Each of ECUs 11-13 is connected to SW ECU 31 via communication lines 41-43, respectively. Each of ECUs 21-23 is connected to SW ECU 32 via communication lines 51-53, respectively. The SWECU 31 and the SWECU 32 are connected via a communication line 61 . Therefore, communication between any of the ECUs 11 to 13 and any of the ECUs 21 to 23 is performed via the SW ECUs 31 and 32 . Further, communications between the ECUs 11 to 13 are performed via the SW ECU 31 . Further, communication between the ECUs 21 to 23 is performed via the SW ECU 32 .

尚、中継装置としてのSWECUの数は2以外であっても良い。また、SWECU31,32のそれぞれに接続される通信端末装置としてのECUの数は3以外であっても良い。 Note that the number of SWECUs as relay devices may be other than two. Further, the number of ECUs as communication terminal devices connected to each of the SW ECUs 31 and 32 may be other than three.

ECU11~13,21~23は、当該ECUの動作を司る処理部2と、通信フレームの送受信を行うための通信インタフェース(以下、通信I/F)3と、を備える。尚、図1においては、ECU11~13,21~23のうち、2つのECU11,21についてだけ、処理部2と通信I/F3が図示されている。 Each of the ECUs 11 to 13 and 21 to 23 includes a processing unit 2 that controls the operation of the ECU, and a communication interface (hereinafter referred to as communication I/F) 3 for transmitting and receiving communication frames. Note that FIG. 1 shows the processing unit 2 and the communication I/F 3 only for two ECUs 11 and 21 out of the ECUs 11 to 13 and 21 to 23 .

処理部2は、CPU4及びメモリ5を備えた少なくとも1つのマイクロコンピュータによって構成されている。後述するECU11~13,21~23の動作は、処理部2によって実現され、詳しくは、CPU4がメモリ5に記憶されたプログラムを実行することで実現される。 The processing unit 2 is composed of at least one microcomputer having a CPU 4 and a memory 5 . The operations of the ECUs 11 to 13 and 21 to 23, which will be described later, are realized by the processing unit 2, and more specifically, by the CPU 4 executing a program stored in the memory 5. FIG.

SWECU31,32も、当該ECUの動作を司る処理部6と、通信フレームの送受信を行うための複数の通信I/F7と、を備える。尚、図1においては、SWECU31が備える複数の通信I/F7のうち、通信線41を介してECU11と接続される通信I/F7と、通信線61を介してSWECU32と接続される通信I/F7との、2つだけが図示されている。また、図1においては、SWECU32が備える複数の通信I/F7のうち、通信線51を介してECU21と接続される通信I/F7と、通信線61を介してSWECU31と接続される通信I/F7との、2つだけが図示されている。 The SW ECUs 31 and 32 also include a processing unit 6 that controls the operation of the ECU, and a plurality of communication I/Fs 7 for transmitting and receiving communication frames. In FIG. 1, among the plurality of communication I/Fs 7 provided in the SWECU 31, a communication I/F 7 connected to the ECU 11 via a communication line 41 and a communication I/F 7 connected to the SWECU 32 via a communication line 61 are shown. Only two are shown, F7. Further, in FIG. 1 , among the plurality of communication I/Fs 7 provided in the SWECU 32 , a communication I/F 7 connected to the ECU 21 via the communication line 51 and a communication I/F 7 connected to the SWECU 31 via the communication line 61 . Only two are shown, F7.

処理部6は、CPU7及びメモリ8を備えた少なくとも1つのマイクロコンピュータによって構成されている。後述するSWECU31,32の動作は、処理部6によって実現され、詳しくは、CPU7がメモリ8に記憶されたプログラムを実行することで実現される。 The processing unit 6 is composed of at least one microcomputer having a CPU 7 and a memory 8 . The operations of the SW ECUs 31 and 32, which will be described later, are realized by the processing unit 6, and more specifically, by the CPU 7 executing a program stored in the memory 8. FIG.

尚、通信I/F3,7は、通信フレームを送受信するための回路であり、イーサネットにおけるPHY(即ち、フィジカルレイヤ)に該当する。また、SWECU31,32は、通信フレームのスイッチング処理(即ち、中継処理)を実施するスイッチのハードウェアを、処理部6とは別に備えて良い。この場合、スイッチのハードウェアと処理部6とが連携して動作することで、後述するSWECU31,32の動作が実現されて良い。また、上記処理部2,6は、マイクロコンピュータに限らず、例えばデジタル回路、又はアナログ回路、あるいはこれらの組合せによって実現されても良い。 The communication I/Fs 3 and 7 are circuits for transmitting and receiving communication frames, and correspond to PHYs (that is, physical layers) in Ethernet. In addition, the SWECUs 31 and 32 may be provided with switch hardware, separate from the processing unit 6, for performing switching processing (that is, relay processing) of communication frames. In this case, the operation of SW ECUs 31 and 32, which will be described later, may be realized by the hardware of the switch and the processing unit 6 operating in cooperation with each other. Moreover, the processing units 2 and 6 are not limited to microcomputers, and may be implemented by digital circuits, analog circuits, or a combination thereof.

[1-2.SWECUが行う処理]
次に、SWECU31,32が行う処理について、図2~図5を用いて説明する。尚、以下の説明において、SWECU31,32のそれぞれを特に区別しない場合には、SWECU31,32のことを、符号を省略して「SWECU」とも記載する。同様に、ECU11~13,21~23のそれぞれを特に区別しない場合には、ECU11~13,21~23のことを、符号を省略して「ECU」とも記載する。
[1-2. Processing performed by SW ECU]
Next, processing performed by the SW ECUs 31 and 32 will be described with reference to FIGS. 2 to 5. FIG. In the following description, when the SWECUs 31 and 32 are not particularly distinguished from each other, the SWECUs 31 and 32 are also referred to as "SWECU" by omitting the reference numerals. Similarly, when the ECUs 11 to 13 and 21 to 23 are not particularly distinguished from each other, the ECUs 11 to 13 and 21 to 23 are also referred to as "ECU" by omitting their reference numerals.

[1-2-1.第1の通知処理]
SWECUは、図2に示す第1の通知処理を、例えば一定時間毎に実施する。
図2に示すように、SWECUは、第1の通知処理では、S110にて、当該SWECUに接続されているECU(以下、接続ECU)のそれぞれについて、通信途絶状態になったか否かを判定する。ここで言う「接続されている」とは、他のSWECUを介さずに接続されているということであり、換言すると、通信線を介して直接接続されているということである。また、通信途絶状態とは、通信フレームの送信を途絶した状態である。
[1-2-1. First notification process]
The SWECU performs the first notification process shown in FIG. 2, for example, at regular time intervals.
As shown in FIG. 2, in the first notification process, the SW ECU determines in S110 whether or not each of the ECUs connected to the SW ECU (hereinafter referred to as connected ECUs) is in a state of communication disruption. . Here, "connected" means that it is connected without going through another SW ECU, in other words, it means that it is directly connected through a communication line. Further, the communication interruption state is a state in which the transmission of communication frames is interrupted.

例えば、S110では、接続ECUのそれぞれについて、当該接続ECUから所定時間毎に送信されるはずの通信フレーム(即ち、定期フレーム)が、所定の判定時間以内に受信されたか否かを判定し、定期フレームが判定時間以内に受信されない場合に、通信途絶状態になったと判定して良い。この場合、判定時間は、定期フレームの送信間隔である上記所定時間よりも長い時間に設定されて良い。 For example, in S110, for each connected ECU, it is determined whether or not a communication frame (that is, a regular frame) that should be transmitted from the connected ECU at regular intervals is received within a specified determination time. If a frame is not received within the determination time, it may be determined that communication has been interrupted. In this case, the determination time may be set to a time longer than the predetermined time that is the transmission interval of the regular frames.

また例えば、S110では、接続ECUのそれぞれについて、当該接続ECUと通信するための通信I/F7に、接続ECUが送信を停止してしまうようになる所定の異常が発生したか否かを判定し、当該異常が発生した場合に、通信途絶状態になったと判定して良い。所定の異常としては、いわゆるリンクダウンであって良く、例えば通信クロックの出力異常であって良い。 Further, for example, in S110, for each connected ECU, it is determined whether or not a predetermined abnormality has occurred in the communication I/F 7 for communicating with the connected ECU, causing the connected ECU to stop transmission. , it may be determined that the communication is interrupted when the abnormality occurs. The predetermined abnormality may be a so-called link down, for example, an output abnormality of the communication clock.

SWECUは、上記S110にて、接続ECUのそれぞれが通信途絶状態ではない、即ち、通信途絶状態の接続ECUはない、と判定した場合には、当該第1の通知処理を終了する。 When the SW ECU determines in S110 that each of the connected ECUs is not in the communication-disconnected state, that is, there is no connected ECU in the communication-disconnected state, the SW ECU ends the first notification process.

また、SWECUは、上記S110にて、接続ECUの何れかが通信途絶状態であると判定した場合には、S120に進む。
SWECUは、S120では、通信途絶通知を作成する。本実施形態における通信途絶通知は、ECUの何れかが通信途絶状態になったことと、通信途絶状態になったECU(以下、通信途絶ECU)とを、示す通知である。尚、ここで言う通知も、通信プロトコルに則った通信フレームである。
Further, when the SW ECU determines in S110 that any one of the connected ECUs is in a state of communication interruption, the S ECU proceeds to S120.
In S120, SWECU creates a communication disruption notification. The communication loss notification according to the present embodiment is a notification indicating that any one of the ECUs is in a communication loss state and which ECU is in a communication loss state (hereinafter referred to as a communication loss ECU). Note that the notification referred to here is also a communication frame conforming to the communication protocol.

このため、通信途絶通知における所定の領域であって、例えばデータが格納される領域(即ち、データ領域)には、通信途絶ECUを特定可能な識別情報が格納される。
例えば、通信途絶ECUを特定可能な識別情報としては、通信途絶ECUのID(即ち、Identification)であって良い。この場合、通信途絶通知を受信した装置は、この通信途絶通知に含まれるECUのIDにより、通信途絶ECUを特定することができる。
Therefore, identification information that can identify the communication disruption ECU is stored in a predetermined region in the communication disruption notification, for example, a data region (that is, a data region).
For example, the identification information that can identify the communication lost ECU may be the ID (that is, identification) of the communication lost ECU. In this case, the device that receives the communication loss notification can identify the communication loss ECU by the ID of the ECU included in the communication loss notification.

また例えば、SWECUは、通信システム1に存在するECUのそれぞれについて、通信途絶状態か否かを示す状態フラグが格納されるECUリストを備えていて良い。この場合、通信途絶通知のデータ領域には、通信途絶ECUを特定可能な識別情報として、上記ECUリストが格納されて良い。この場合、通信途絶通知を受信した装置は、当該通信途絶通知に含まれるECUリストにおいて、何れかのECUに対応する状態フラグがセットされていれば、そのセットされた状態フラグに対応するECUが、通信途絶ECUである、と特定することができる。 Further, for example, the SW ECU may include an ECU list in which a state flag indicating whether or not communication is interrupted is stored for each ECU existing in the communication system 1 . In this case, the ECU list may be stored in the communication loss notification data area as identification information that can identify the communication loss ECU. In this case, if the status flag corresponding to any ECU is set in the ECU list included in the communication loss notification, the device that has received the communication loss notification determines that the ECU corresponding to the set status flag is , is a communication disruption ECU.

そして、SWECUは、S120からS130に進み、上記S120で作成した通信途絶通知を、当該SWECUに接続されている全ての装置のうち、通信途絶状態であると判定した接続ECU以外の装置に送信する。ここで言う全ての装置とは、接続ECU及び他のSWECUである。尚、通信途絶状態であると判定した接続ECUにも、通信途絶通知を送信して良いが、当該接続ECUは通信途絶通知を受信できない可能性が高い。 Then, the SWECU advances from S120 to S130, and transmits the communication loss notification created in S120 to all the devices connected to the SWECU, other than the connected ECU determined to be in the communication loss state. . All devices here are connected ECUs and other SW ECUs. Note that the communication disruption notification may be transmitted to the connected ECU determined to be in the communication disruption state, but there is a high possibility that the communication disruption notification cannot be received by the connected ECU.

そして、SWECUは、上記S130で通信途絶通知の送信を完了すると、当該第1の通知処理を終了する。
例えば、SWECU32に接続されているECU21が通信途絶状態になった場合、SWECU32がS130で送信する通信途絶通知は、ECU21が通信途絶状態になったことを示す通信途絶通知、ということになる。
After completing the transmission of the communication disruption notification in S130, the SWECU ends the first notification process.
For example, when the ECU 21 connected to the SW ECU 32 is in a state of communication interruption, the communication interruption notification transmitted by the SW ECU 32 in S130 is a communication interruption notification indicating that the ECU 21 is in a communication interruption state.

[1-2-2.第1の通知転送処理]
SWECUは、他のSWECUが送信した通信フレームを受信した場合に、図3に示す第1の通知転送処理を実施する。
[1-2-2. First notification forwarding process]
When a SW ECU receives a communication frame transmitted by another SW ECU, the SW ECU performs the first notification forwarding process shown in FIG.

図3に示すように、SWECUは、第1の通知転送処理では、S210にて、受信した通信フレーム(即ち、受信フレーム)が、前述の通信途絶通知であるか否かを判定する。即ち、SWECUは、S210では、通信途絶通知を受信したか否かを判定する。そして、通信途絶通知を受信していないと判定した場合には、当該第1の通知転送処理を終了するが、通信途絶通知を受信したと判定した場合には、S220に進む。 As shown in FIG. 3, in the first notification transfer process, the SWECU determines in S210 whether or not the received communication frame (that is, the received frame) is the aforementioned communication disruption notification. That is, the SWECU determines in S210 whether or not a communication disruption notification has been received. If it is determined that the communication disruption notification has not been received, the first notification transfer process is ended, but if it is determined that the communication disruption notification has been received, the process proceeds to S220.

SWECUは、S220では、受信した通信途絶通知を、当該SWECUに接続されている全ての装置のうち、通信途絶通知を送ってきたSWECU以外の装置に送信し、その後、当該第1の通知転送処理を終了する。尚、SWECUに、2つ以上の他のSWECUが接続されている場合、S220では、通信途絶通知を送ってきたSWECU以外のSWECUにも、通信途絶通知が送信されて良い。 In S220, the SWECU transmits the received communication loss notification to all the devices connected to the SWECU, other than the SWECU that sent the communication loss notification, and then performs the first notification transfer process. exit. If two or more other SWECUs are connected to the SWECU, in S220, the communication loss notification may also be sent to the SWECUs other than the SWECU that sent the communication loss notification.

[1-2-3.第2の通知処理]
SWECUは、図2の第1の通知処理により、接続ECUの何れかが通信途絶状態であると判定した場合に、図4に示す第2の通知処理を、例えば一定時間毎に実施する。
[1-2-3. Second notification process]
When it is determined by the first notification process in FIG. 2 that any one of the connected ECUs is in a state of communication disruption, the SW ECU performs the second notification process shown in FIG. 4, for example, at regular time intervals.

図4に示すように、SWECUは、第2の通知処理では、S310にて、通信途絶状態の接続ECUが通常状態に復帰したか否かを判定する。通常状態とは、通信フレームの送信を実施する状態である。 As shown in FIG. 4, in the second notification process, the SW ECU determines in S310 whether or not the connected ECU in the communication-disconnected state has returned to the normal state. The normal state is a state in which communication frames are transmitted.

例えば、S310では、通信途絶状態であると判定していた接続ECUについて、当該接続ECUからの通信フレームが受信されたか否かを判定し、通信フレームが受信された場合に、通信途絶状態から通常状態に復帰したと判定して良い。 For example, in S310, it is determined whether or not a communication frame has been received from a connected ECU that has been determined to be in a communication disruption state. It can be determined that the state has been restored.

また例えば、S310では、前述した通信I/F7の異常が発生したことにより、通信途絶状態であると判定した接続ECUについて、当該異常が解消したか否かを判定し、当該異常が解消した場合に、通信途絶状態から通常状態に復帰したと判定して良い。 Further, for example, in S310, it is determined whether or not the abnormality has been resolved for the connected ECU that has been determined to be in a state of communication interruption due to the occurrence of an abnormality in the communication I/F 7 described above, and if the abnormality has been resolved First, it may be determined that the normal state has been restored from the communication disruption state.

SWECUは、上記S310にて、通信途絶状態の接続ECUが通常状態に復帰していないと判定した場合には、当該第2の通知処理を終了する。
また、SWECUは、上記S310にて、通信途絶状態の接続ECUが通常状態に復帰したと判定した場合には、S320に進む。
If the SW ECU determines in S310 that the connected ECU in the communication-disconnected state has not returned to the normal state, it terminates the second notification process.
Further, when the SW ECU determines in S310 that the connected ECU in the communication-disconnected state has returned to the normal state, the process proceeds to S320.

SWECUは、S320では、通信復帰通知を作成する。本実施形態における通信復帰通知は、通信途絶ECUが通常状態に復帰したことと、通常状態に復帰したECU(以下、通信復帰ECU)とを、示す通知である。 In S320, the SWECU creates a communication recovery notification. The communication recovery notification in the present embodiment is a notification indicating that the communication lost ECU has recovered to the normal state and the ECU that has recovered to the normal state (hereinafter referred to as communication recovery ECU).

このため、通信復帰通知における所定の領域であって、例えばデータ領域には、通信復帰ECUを特定可能な識別情報が格納される。
例えば、通信復帰ECUを特定可能な識別情報としては、通信復帰ECUのIDであって良い。この場合、通信復帰通知を受信した装置は、この通信復帰通知に含まれるECUのIDにより、通信復帰ECUを特定することができる。
Therefore, identification information that can specify the communication recovery ECU is stored in a predetermined area in the communication recovery notification, for example, a data area.
For example, the ID of the communication-recovery ECU may be used as the identification information that can identify the communication-recovery ECU. In this case, the device that has received the communication restoration notification can specify the communication restoration ECU by the ID of the ECU included in the communication restoration notification.

また例えば、SWECUが前述のECUリストを備える場合、通信復帰通知のデータ領域には、通信復帰ECUを特定可能な識別情報として、上記ECUリストが格納されて良い。この場合、通信復帰通知を受信した装置は、当該通信復帰通知に含まれるECUリストにおいて、通信途絶状態と判定されていたECUに対応する状態フラグが、リセットされていれば、そのリセットされた状態フラグに対応するECUが、通常状態に復帰した、と特定することができる。尚、通信途絶状態と判定されていたECUとは、過去に受信した通信途絶通知に含まれるECUリストにおいて、セットされていた状態フラグに対応するECUのことである。 Further, for example, when the SW ECU has the aforementioned ECU list, the ECU list may be stored in the data area of the communication recovery notification as identification information that can specify the communication recovery ECU. In this case, if the status flag corresponding to the ECU determined to be in the communication cutoff state is reset in the ECU list included in the communication restoration notification, the device that has received the communication restoration notification is in the reset state. It can be specified that the ECU corresponding to the flag has returned to the normal state. The ECU that has been determined to be in a communication disruption state is the ECU corresponding to the set state flag in the ECU list included in the previously received communication disruption notification.

そして、SWECUは、S320からS330に進み、上記S320で作成した通信途絶通知を、当該SWECUに接続されている全ての装置のうち、通常状態に復帰したと判定した接続ECU以外の装置に送信する。尚、通常状態に復帰したと判定した接続ECUにも、通信復帰通知を送信して良い。 Then, the SWECU advances from S320 to S330, and transmits the communication disruption notification created in S320 to all the devices connected to the SWECU, other than the connected ECU determined to have returned to the normal state. . Note that the communication restoration notification may also be transmitted to the connected ECU determined to have returned to the normal state.

そして、SWECUは、上記S330で通信復帰通知の送信を完了すると、当該第2の通知処理を終了する。
例えば、SWECU32に接続されているECU21が通信途絶状態から通常状態に復帰した場合、SWECU32がS330で送信する通信復帰通知は、ECU21が通信途絶状態から通常状態に復帰したことを示す通信復帰通知、ということになる。
After completing the transmission of the communication recovery notification in S330, the SWECU ends the second notification process.
For example, when the ECU 21 connected to the SW ECU 32 recovers from the communication disruption state to the normal state, the communication recovery notification transmitted by the SW ECU 32 in S330 is a communication recovery notification indicating that the ECU 21 has recovered from the communication disruption state to the normal state. It turns out that.

[1-2-4.第2の通知転送処理]
SWECUは、他のSWECUが送信した通信フレームを受信した場合に、図5に示す第2の通知転送処理も実施する。
[1-2-4. Second notification forwarding process]
The SWECU also performs the second notification forwarding process shown in FIG. 5 when receiving a communication frame transmitted by another SWECU.

図5に示すように、SWECUは、第2の通知転送処理では、S410にて、受信フレームが前述の通信復帰通知であるか否かを判定する。即ち、SWECUは、S410では、通信復帰通知を受信したか否かを判定する。そして、通信復帰通知を受信していないと判定した場合には、当該第2の通知転送処理を終了するが、通信復帰通知を受信したと判定した場合には、S420に進む。 As shown in FIG. 5, in the second notification transfer process, the SWECU determines in S410 whether or not the received frame is the above-described communication restoration notification. In other words, the SWECU determines in S410 whether or not a communication restoration notification has been received. If it is determined that the notification of communication restoration has not been received, the second notification transfer process is ended, but if it is determined that the notification of communication restoration has been received, the process proceeds to S420.

SWECUは、S420では、受信した通信復帰通知を、当該SWECUに接続されている全ての装置のうち、通信復帰通知を送ってきたSWECU以外の装置に送信し、その後、当該第2の通知転送処理を終了する。尚、SWECUに、2つ以上の他のSWECUが接続されている場合、S420では、通信復帰通知を送ってきたSWECU以外のSWECUにも、通信復帰通知が送信されて良い。 In S420, the SWECU transmits the received notification of communication restoration to the devices other than the SWECU that sent the communication restoration notification among all the devices connected to the SWECU, and then performs the second notification transfer process. exit. Note that if two or more other SWECUs are connected to the SWECU, in S420, the communication restoration notification may also be sent to the SWECUs other than the SWECU that sent the communication restoration notification.

一方、図示は省略するが、SWECUは、図2~図5の処理とは別に、通信フレームのスイッチング処理を実施する。例えば、SWECUは、受信した通信フレーム中の宛先アドレス(例えば、宛先MACアドレス)に基づいて、当該SWECUが備える複数の通信I/F7のうち、当該通信フレームの転送先の通信I/F7(即ち、転送先ポート)を決定する。そして、受信した通信フレームを、転送先として決定した通信I/F7から送信する。 On the other hand, although not shown, the SWECU performs communication frame switching processing in addition to the processing in FIGS. For example, based on the destination address (for example, the destination MAC address) in the received communication frame, the SWECU selects the communication I/F 7 (that is, the , destination port). Then, the received communication frame is transmitted from the communication I/F 7 determined as the transfer destination.

[1-3.ECUが行う処理]
次に、ECU11~13,21~23が行う処理について、図6,図7を用いて説明する。
[1-3. Processing performed by the ECU]
Next, processing performed by the ECUs 11 to 13 and 21 to 23 will be described with reference to FIGS. 6 and 7. FIG.

[1-3-1.第1のモード切替処理]
ECUは、SWECUから通信フレームを受信した場合に、図6に示す第1のモード切替処理を実施する。
[1-3-1. First Mode Switching Process]
The ECU performs the first mode switching process shown in FIG. 6 when receiving the communication frame from the SW ECU.

図6に示すように、SWECUは、第1のモード切替処理では、S510にて、受信フレームが前述の通信途絶通知であるか否かを判定する。即ち、ECUは、S510では、通信途絶通知を受信したか否かを判定する。そして、通信途絶通知を受信していないと判定した場合には、当該第1のモード切替処理を終了するが、通信途絶通知を受信したと判定した場合には、S520に進む。 As shown in FIG. 6, in the first mode switching process, the SWECU determines in S510 whether or not the received frame is the above-described communication disruption notification. That is, in S510, the ECU determines whether or not a communication disruption notification has been received. If it is determined that the communication disruption notification has not been received, the first mode switching process is ended, but if it is determined that the communication disruption notification has been received, the process proceeds to S520.

ECUは、S520では、受信した通信途絶通知に基づいて、当該ECUの通信相手のECU(即ち、通信相手装置)が、通信途絶状態であるか否かを判定する。具体的には、受信した通信途絶通知に基づいて、通信途絶状態のECUを特定し、その特定したECUが、通信相手のECUであるか否かを判定する。ここで言う通信相手のECUとは、そのECUからの通信フレームを受信して、当該通信フレームに含まれるデータを取得し処理する必要があるECUである。 In S520, the ECU determines whether or not the communication partner ECU (that is, the communication partner device) of the ECU is in a communication-disrupted state based on the received communication-disconnection notification. Specifically, based on the received notification of communication disruption, the ECU in the communication disruption state is specified, and it is determined whether or not the specified ECU is the communication partner ECU. The term "communication partner ECU" as used herein means an ECU that needs to receive a communication frame from that ECU and obtain and process data contained in the communication frame.

ECUは、上記S520にて、通信相手のECUが通信途絶状態ではないと判定した場合には、当該第1のモード切替処理を終了するが、通信相手のECUが通信途絶状態であると判定した場合には、S530に進む。 If the ECU determines in S520 that the communication partner ECU is not in the communication-disconnected state, the ECU terminates the first mode switching process, but determines that the communication partner ECU is in the communication-disrupted state. If so, proceed to S530.

そして、ECUは、S530にて、当該ECUの動作モードを、通信途絶状態である通信相手のECUからの通信フレームを破棄する動作モード(以下、破棄モード)に設定し、その後、当該第1のモード切替処理を終了する。尚、通信フレームの破棄とは、詳しくは、通信フレームに含まれるデータを取得せずに破棄することである。また、通信相手の複数のECUが通信途絶状態になった場合、その複数のECUからの通信フレームに関する動作モードが、上記破棄モードに設定される。 Then, in S530, the ECU sets the operation mode of the ECU to an operation mode (hereinafter referred to as a discard mode) for discarding communication frames from the communication partner ECU in which communication is interrupted. End the mode switching process. Note that discarding a communication frame is, in detail, discarding the data included in the communication frame without acquiring it. Further, when communication is interrupted with a plurality of ECUs as communication partners, the operation mode for communication frames from the plurality of ECUs is set to the discard mode.

[1-3-2.第2のモード切替処理]
ECUは、通信相手の少なくとも1つのECUからの通信フレームに関して、図6のS530により当該ECUの動作モードが上記破棄モードに設定されている場合で、且つ、SWECUから通信フレームを受信した場合に、図7に示す第2のモード切替処理を実施する。
[1-3-2. Second mode switching process]
When the operation mode of the ECU is set to the discard mode in S530 of FIG. 6 with respect to the communication frame from at least one ECU of the communication partner and when the ECU receives the communication frame from the SW ECU, A second mode switching process shown in FIG. 7 is performed.

図7に示すように、SWECUは、第2のモード切替処理では、S610にて、受信フレームが前述の通信復帰通知であるか否かを判定する。即ち、ECUは、S610では、通信復帰通知を受信したか否かを判定する。そして、通信復帰通知を受信していないと判定した場合には、当該第2のモード切替処理を終了するが、通信復帰通知を受信したと判定した場合には、S620に進む。 As shown in FIG. 7, in the second mode switching process, the SWECU determines in S610 whether or not the received frame is the above-described communication restoration notification. That is, in S610, the ECU determines whether or not a communication restoration notification has been received. If it is determined that the communication restoration notification has not been received, the second mode switching process is ended, but if it is determined that the communication restoration notification has been received, the process proceeds to S620.

ECUは、S620では、受信した通信復帰通知に基づいて、当該ECUの通信相手のECUが、通信途絶状態から通常状態に復帰したか否かを判定する。具体的には、受信した通信復帰通知に基づいて、通信復帰ECUを特定し、その特定した通信復帰ECUが、通信相手のECUであるか否かを判定する。 In S620, the ECU determines whether or not the ECU with which the ECU communicates has returned to the normal state from the communication interruption state, based on the received communication restoration notification. Specifically, the communication recovery ECU is specified based on the received communication recovery notification, and it is determined whether or not the specified communication recovery ECU is the communication counterpart ECU.

ECUは、上記S620にて、通信相手のECUが通信途絶状態から通常状態に復帰していないと判定した場合には、当該第2のモード切替処理を終了するが、通信相手のECUが通信途絶状態から通常状態に復帰したと判定した場合には、S630に進む。 If the ECU determines in S620 that the communication counterpart ECU has not returned to the normal state from the communication interruption state, the ECU terminates the second mode switching process, but the communication counterpart ECU terminates the communication interruption. If it is determined that the state has returned to the normal state, the process proceeds to S630.

ECUは、S630では、通信復帰通知が当該ECUにて受信されてから所定時間T1が経過したか否かを判定する。そして、このS630では、通信復帰通知が受信されてから所定時間T1が経過するまで待つ。所定時間T1は、通信途絶状態から通常状態に復帰したと判定された通信相手のECUが、通信フレームを送信する最大周期よりも、長い時間に設定されている。 In S630, the ECU determines whether or not a predetermined time T1 has elapsed since the ECU received the communication recovery notification. Then, in this S630, the process waits until a predetermined time T1 has passed since the communication recovery notification was received. The predetermined time T1 is set to a time longer than the maximum period of transmission of communication frames by the ECU of the communication partner determined to have returned to the normal state from the communication disruption state.

ECUは、上記S630にて、所定時間T1が経過したと判定した場合には、S640に進む。
ECUは、S640では、通信途絶状態から通常状態に復帰したと判定した通信相手のECUからの通信フレームに関する当該ECUの動作モードを、破棄モードから通常モードに設定する。通常モードは、破棄モードではない動作モードであり、通信相手のECUからの通信フレームを破棄せずに取得する動作モードである。また、通信フレームが取得されることは、換言すると、通信フレームに含まれるデータが取得されて所定の処理に用いられることである。そして、ECUは、S640の処理を行った後、当該第2のモード切替処理を終了する。
When the ECU determines in S630 that the predetermined time T1 has elapsed, the process proceeds to S640.
In S640, the ECU sets the operation mode of the ECU from the discard mode to the normal mode with respect to the communication frame from the communication partner ECU determined to have returned to the normal state from the communication disruption state. The normal mode is an operation mode that is not a discard mode, and is an operation mode that acquires communication frames from the communication counterpart ECU without discarding them. Acquiring a communication frame means, in other words, acquiring data included in the communication frame and using it for a predetermined process. After performing the process of S640, the ECU ends the second mode switching process.

[1-4.作用例]
SWECUが図2~図5の処理を行い、ECUが図6,図7の処理を行うことによる、作用例について、図8を用い説明する。尚、図8に示す作用例では、少なくともECU21がECU11の通信相手である。また、図8を用いた以下の説明において、〈〉内に記載されたステップ番号は、図2~図7におけるステップ番号のうち、該当する動作を実現する処理のステップ番号である。
[1-4. Action example]
2 to 5 by the SW ECU and the processes of FIGS. 6 and 7 by the ECU will be described with reference to FIG. Incidentally, in the operation example shown in FIG. 8 , at least the ECU 21 is the communication partner of the ECU 11 . Further, in the following description using FIG. 8, the step numbers written in parentheses are the step numbers of the process for realizing the corresponding operation among the step numbers in FIGS.

図8における時刻t1にて、ECU21が通信途絶状態になったとする。
すると、ECU21が接続されているSWECU32は、時刻t2にて、ECU21が通信途絶状態であると判定する〈S110〉。そして、SWECU32は、時刻t3にて、ECU21が通信途絶状態になったことを示す通信途絶通知を、当該SWEC32に接続されている全ての装置のうち、ECU21以外の装置に送信する〈S130〉。また、他のSWECU31は、時刻t4にて、SWECU32からの通信途絶通知を受信し、当該受信した通信途絶通知を、当該SWEC31に接続されている全ての装置のうち、SWECU32以外の装置に送信する〈S220〉。よって、SWECU32は、ECU21が通信途絶状態になったことを示す通信途絶通知を、ECU21の通信相手であるECU11に、SWECU31を介して送ることになる。
At time t1 in FIG. 8, it is assumed that the communication of the ECU 21 is interrupted.
Then, the SW ECU 32 to which the ECU 21 is connected determines at time t2 that the ECU 21 is in a state of communication interruption <S110>. Then, at time t3, the SWEC 32 transmits a communication interruption notification indicating that the ECU 21 is in a communication interruption state to all the apparatuses connected to the SWEC 32 other than the ECU 21 <S130>. Further, the other SWECU 31 receives the communication loss notification from the SWEC 32 at time t4, and transmits the received communication loss notification to devices other than the SWEC 32 among all the devices connected to the SWEC 31. <S220>. Therefore, the SW ECU 32 sends a communication interruption notification indicating that the ECU 21 is in a communication interruption state to the ECU 11 with which the ECU 21 communicates via the SW ECU 31 .

ECU11は、時刻t5にて、SWECU32からSWECU31を経由して送られてきた通信途絶通知を受信し、この通信途絶通知に基づいて、当該ECU11の通信相手のECU21が、通信途絶状態であると判定する〈S520〉。このため、ECU11は、当該ECU11の動作モードを、ECU21からの通信フレームを破棄する破棄モードに設定する〈S530〉。 At time t5, the ECU 11 receives the communication interruption notification sent from the SW ECU 32 via the SW ECU 31, and based on this communication interruption notification, determines that the ECU 21, which is the communication partner of the ECU 11, is in the communication interruption state. <S520>. Therefore, the ECU 11 sets the operation mode of the ECU 11 to a discard mode for discarding the communication frame from the ECU 21 <S530>.

その後、時刻t6にて、ECU21を通信途絶状態にさせていた異常が解消し、ECU21が通常状態に復帰したとする。
すると、SWECU32は、時刻t7にて、ECU21が通信途絶状態から通常状態に復帰したと判定する〈S310〉。そして、SWECU32、時刻t8にて、ECU21が通信途絶状態から通常状態に復帰したことを示す通信復帰通知を、当該SWEC32に接続されている全ての装置のうち、ECU21以外の装置に送信する〈S330〉。また、他のSWECU31は、時刻t9にて、SWECU32からの通信復帰通知を受信し、当該受信した通信復帰通知を、当該SWEC31に接続されている全ての装置のうち、SWECU32以外の装置に送信する〈S420〉。よって、SWECU32は、ECU21が通常状態に復帰したことを示す通信復帰通知を、ECU21の通信相手であるECU11に、SWECU31を介して送ることになる。
After that, at time t6, it is assumed that the abnormality that caused the communication interruption state of the ECU 21 is resolved and the ECU 21 returns to the normal state.
Then, at time t7, the SW ECU 32 determines that the ECU 21 has recovered from the communication interruption state to the normal state <S310>. Then, at time t8, the SWEC 32 transmits a communication recovery notification indicating that the ECU 21 has recovered from the communication-disconnected state to the normal state to devices other than the ECU 21 among all the devices connected to the SWEC 32 <S330 >. At time t9, the other SWECU 31 receives the communication recovery notification from the SWEC 32, and transmits the received communication recovery notification to all the devices connected to the SWEC 31 other than the SWEC 32. <S420>. Therefore, the SW ECU 32 sends a communication recovery notification indicating that the ECU 21 has returned to the normal state to the ECU 11 with which the ECU 21 communicates via the SW ECU 31 .

ECU11は、時刻t10にて、SWECU32からSWECU31を経由して送られてきた通信復帰通知を受信し、この通信復帰に基づいて、ECU21が通信途絶状態から通常状態に復帰したと判定する〈S620〉。そして、ECU21は、通信復帰通知が受信されてから所定時間T1が経過したか否かを判定し〈S630〉、所定時間T1が経過すると、時刻t11にて、当該ECU11の動作モードを、ECU21からの通信フレームを破棄せずに取得する通常モードに戻す〈S640〉。 At time t10, the ECU 11 receives the communication recovery notification sent from the SW ECU 32 via the SW ECU 31, and based on this communication recovery, determines that the ECU 21 has recovered from the communication interruption state to the normal state <S620>. . Then, the ECU 21 determines whether or not a predetermined time T1 has passed since the communication recovery notification was received <S630>. is returned to the normal mode in which the communication frame is acquired without being discarded <S640>.

よって、ECU11は、時刻t11以降に、送信元がECU21である通信フレームを受信した場合には、その通信フレームに含まれるデータを取得して、当該データを所定の制御処理に用いる。所定の制御処理は、通信システム1において当該ECU11に割り当てられている処理である。この制御処理は、例えば車両の周辺状況を判断するための処理であって良い。 Therefore, when the ECU 11 receives a communication frame whose transmission source is the ECU 21 after time t11, the ECU 11 acquires data included in the communication frame and uses the data for predetermined control processing. The predetermined control process is a process assigned to the ECU 11 in the communication system 1 . This control process may be, for example, a process for judging the surrounding conditions of the vehicle.

尚、図8において、ECU11の動作モードが破棄モードになっている期間は、「受信フィルタ期間」と記載されている。図8の例における受信フィルタとは、ECU21からのフレームを選別して破棄する、という意味である。 In FIG. 8, the period during which the operation mode of the ECU 11 is the discard mode is described as "reception filter period". The reception filter in the example of FIG. 8 means that the frame from the ECU 21 is selected and discarded.

一方、ECU21において、当該ECU21が通信途絶状態になっている期間中は、送信対象の通信フレームを格納するためのバッファ(即ち、送信バッファ)内に、送信待ちの1つ以上の通信フレームが滞留する。そして、ECU21は、時刻t6にて、通常状態に復帰すると、通信途絶状態の期間中に上記バッファ内に滞留した通信フレーム(即ち、滞留フレーム)を送信し出す。また、バッファ内の滞留フレームの送信は、ECU21における次の送信タイミングが到来するまでには完了する。つまり、滞留フレームが送信される期間の長さは、ECU21が通信フレームを送信する最大周期よりも短い。そして、上記所定時間T1は、ECU21が通信フレームを送信する最大周期よりも、長い時間に設定されている。よって、ECU21からの滞留フレームの送信は、ECU11が通信復帰通知を受信してから所定時間T1が経過するまでには終了する。 On the other hand, in the ECU 21, one or more communication frames waiting for transmission stay in a buffer for storing communication frames to be transmitted (i.e., a transmission buffer) while the ECU 21 is in a state of communication interruption. do. Then, at time t6, when the normal state is restored, the ECU 21 starts transmitting the communication frames that were retained in the buffer during the period of the communication interruption state (that is, retained frames). Further, the transmission of the staying frame in the buffer is completed before the next transmission timing in the ECU 21 arrives. In other words, the length of the period during which the staying frame is transmitted is shorter than the maximum period during which the ECU 21 transmits the communication frame. The predetermined time T1 is set to a time longer than the maximum cycle in which the ECU 21 transmits communication frames. Therefore, the transmission of the staying frame from the ECU 21 ends before the predetermined time T1 elapses after the ECU 11 receives the communication recovery notification.

このため、ECU21が送信した滞留フレームは、SWECU32及びSWECU31を介してECU11に転送されるが、当該滞留フレームがECU11に受信されるのは、ECU11が破棄モードになっている期間中(即ち、受信フィルタ期間中)である。よって、ECU11において、ECU21からの滞留フレームは、制御処理に用いられずに破棄される。 Therefore, the accumulated frame transmitted by the ECU 21 is transferred to the ECU 11 via the SWECU 32 and the SWECU 31, but the accumulated frame is received by the ECU 11 only during the period in which the ECU 11 is in the discard mode (that is, the reception during the filter period). Therefore, in the ECU 11, the retained frame from the ECU 21 is discarded without being used for control processing.

また、図8において、ECU21から送信される通信フレームのうち、「正常フレーム」と記載されたものは、全ての滞留フレームの送信完了後に送信された通信フレームであり、ECU21において、通信途絶状態の解消後に発生した新たなデータを含む通信フレームである。そして、この正常フレームは、SWECU32及びSWECU31を介してECU11に転送され、ECU11において破棄されずに取得される。つまり、正常フレームはECU11における制御処理に用いられる。 Further, in FIG. 8, among the communication frames transmitted from the ECU 21, those described as "normal frames" are communication frames transmitted after the transmission of all the residual frames is completed. This is a communication frame containing new data generated after the cancellation. Then, this normal frame is transferred to the ECU 11 via the SWECU 32 and the SWECU 31, and is acquired by the ECU 11 without being discarded. That is, normal frames are used for control processing in the ECU 11 .

尚、図8の例では、ECU21が第1の電子装置に相当し、ECU11が第2の電子装置に相当する。そして、本実施形態では、SWECUが行う処理のうち、図2のS110が、途絶判定部としての処理に相当し、図2のS130が、途絶通知部としての処理に相当し、図4のS310が、復帰判定部としての処理に相当し、図4のS330が、復帰通知部としての処理に相当する。また、ECUが行う処理のうち、図6のS530が、破棄開始部としての処理に相当し、図7のS630,S640が、破棄終了部としての処理に相当する。 In the example of FIG. 8, the ECU 21 corresponds to the first electronic device, and the ECU 11 corresponds to the second electronic device. In the present embodiment, among the processes performed by the SWECU, S110 in FIG. 2 corresponds to the process of the disruption determination section, S130 in FIG. 2 corresponds to the process of the disruption notification section, and S310 in FIG. corresponds to the processing of the restoration determination unit, and S330 in FIG. 4 corresponds to the processing of the restoration notification unit. Among the processes performed by the ECU, S530 of FIG. 6 corresponds to the process of the discard start section, and S630 and S640 of FIG. 7 correspond to the processes of the discard end section.

[1-5.効果]
以上詳述した第1実施形態によれば、以下の効果を奏する。
(1a)
SWECUは、接続ECUの何れかが通信途絶状態になったか否かを判定する。そして、接続ECUの何れかが通信途絶状態になったと判定すると、通信途絶ECUを示す通信途絶通知を、他のSWECUを介して、あるいは他のSWECUを介さずに、少なくとも当該通信途絶ECUの通信相手のECUに送る。その後、SWECUは、接続ECUのうちの通信途絶ECUが正常状態に復帰したか否かを判定する。そして、通信途絶ECUが正常状態に復帰したと判定すると、通信復帰ECUを示す通信復帰通知を、他のSWECUを介して、あるいは他のSWECUを介さずに、少なくとも上記通信相手のECUに送信する。
[1-5. effect]
According to 1st Embodiment detailed above, there exist the following effects.
(1a)
The SW ECU determines whether or not any of the connected ECUs has lost communication. Then, when it is determined that any of the connected ECUs is in a communication-broken state, a communication-broken-up notification indicating the communication-broken-up ECU is sent to at least the communication of the communication-broken-up ECU via the other SW ECU or not via the other SW ECU. Send to the partner ECU. After that, the SW ECU determines whether or not the communication-disrupted ECU among the connected ECUs has returned to a normal state. Then, when it is determined that the communication-disrupted ECU has returned to a normal state, it transmits a communication-recovery notification indicating the communication-recovery ECU to at least the ECU of the communication partner, via the other SW ECU or not via the other SW ECU. .

一方、ECUは、通信途絶通知を受信すると、この通信途絶通知に基づいて、当該ECUの通信相手のECUが通信途絶状態であるか否かを判定する。そして、通信相手のECUが通信途絶状態であると判定した場合には、通信途絶状態になった通信相手のECUからの通信フレームを破棄する破棄モードになる。また、ECUは、破棄モードになっている場合に、通信復帰通知を受信すると、この通信復帰通知に基づいて、当該ECUの通信相手のECUが通信途絶状態から通常状態に復帰したか否かを判定する。そして、通信相手のECUが通常状態に復帰したと判定した場合には、通信復帰通知の受信時から所定時間T1が経過したタイミングで、破棄モードから通常モード、即ち、通信途絶状態になっていたECUからの通信フレームを破棄せずに取得する動作モードに戻る。 On the other hand, when the ECU receives the communication loss notification, the ECU determines based on the communication loss notification whether or not the communication partner ECU of the ECU is in the communication loss state. Then, when it is determined that the ECU of the communication partner is in the communication-disconnected state, a discard mode for discarding the communication frame from the communication-disconnected ECU is set. Further, when the ECU receives a communication restoration notification while in the discard mode, the ECU determines whether or not the ECU with which the ECU communicates has returned to the normal state from the communication interruption state based on the communication restoration notification. judge. Then, when it is determined that the ECU of the communication partner has returned to the normal state, the discard mode changes to the normal mode, that is, the communication is interrupted at the timing when the predetermined time T1 has elapsed from the time when the communication return notification is received. It returns to the operation mode which acquires the communication frame from ECU, without discarding it.

ここで、例えば、ECU11~13,21~23のうち、ECU21が第1の電子装置であり、当該ECU21の通信相手であるECU11が、第2の電子装置であるとする。
この例の場合、SWECU32は、図2のS110にて、少なくとも第1の電子装置が通信途絶状態になったか否かを判定する。そして、SWECU32は、第1の電子装置が通信途絶状態になったと判定した場合に、図2のS130にて、第1の電子装置が通信途絶状態になったことを示す通信途絶通知を、少なくとも第2の電子装置に送る。その後、SWECU32は、図4のS310にて、第1の電子装置が通信途絶状態から通常状態に復帰したか否かを判定することになる。そして、SWECU32は、第1の電子装置が通常状態に復帰したと判定した場合に、図4のS330にて、第1の電子装置が通常状態に復帰したことを示す通信復帰通知を、少なくとも第2の電子装置に送る。一方、第2の電子装置は、第1の電子装置が通信途絶状態になったことを示す通信途絶通知を受信した場合に、当該電子装置の動作モードを、第1の電子装置からの通信フレームを破棄する破棄モードに設定する。その後、第2の電子装置は、第1の電子装置が通常状態に復帰したことを示す通信復帰通知を受信した場合に、当該通信復帰通知が受信されてから所定時間T1が経過したか否かを判定する。そして、所定時間T1が経過したと判定すると、当該電子装置の動作モードを、第1の電子装置からの通信フレームを破棄せずに取得する通常モードに戻す。
Here, for example, among the ECUs 11 to 13 and 21 to 23, the ECU 21 is the first electronic device, and the ECU 11 with which the ECU 21 communicates is the second electronic device.
In this example, the SWECU 32 determines in S110 of FIG. 2 whether or not at least the first electronic device is in a communication disruption state. Then, when the SW ECU 32 determines that the first electronic device is in the communication-disrupted state, in S130 of FIG. Send to a second electronic device. After that, in S310 of FIG. 4, the SW ECU 32 determines whether or not the first electronic device has recovered from the communication interruption state to the normal state. Then, when the SWECU 32 determines that the first electronic device has returned to the normal state, in S330 of FIG. 2 electronic device. On the other hand, when the second electronic device receives the communication disruption notification indicating that the first electronic device is in the communication disruption state, the second electronic device changes the operation mode of the electronic device to the communication frame from the first electronic device. set to discard mode. After that, when the second electronic device receives a communication recovery notification indicating that the first electronic device has returned to the normal state, whether or not a predetermined time T1 has passed since the communication recovery notification was received. judge. Then, when it is determined that the predetermined time T1 has passed, the operation mode of the electronic device is returned to the normal mode in which communication frames from the first electronic device are acquired without being discarded.

このような構成によれば、第1の電子装置が通信途絶状態から通常状態に復帰して、通信途絶状態の間に滞留されていた通信フレーム(即ち、滞留フレーム)を送信し、この滞留フレームが上記所定時間T1の経過前に第2の電子装置に受信されたとしても、当該滞留フレームは破棄される。よって、発生時期が古いデータが含まれた滞留フレームが、通信相手の電子装置に取得されてしまうこと、が抑制される。 According to such a configuration, the first electronic device recovers from the communication disruption state to the normal state, transmits the communication frame (that is, the retention frame) retained during the communication disruption state, and transmits the retention frame. is received by the second electronic device before the predetermined time T1 elapses, the stuck frame is discarded. Therefore, it is possible to prevent the electronic device of the communication partner from acquiring a retained frame containing data generated at an old time.

また、上記所定時間T1は、通信途絶状態から通常状態に復帰した通信相手のECU(即ち、第1の電子装置)が、通信フレームを送信する最大周期よりも、長い時間に設定されている。このため、通信途絶状態から通常状態に復帰した第1の電子装置が、滞留フレームの送信を完了した後に、第2の電子装置が破棄モードから通常モードに戻るようにし易い。 Further, the predetermined time T1 is set to a time longer than the maximum cycle in which the communication partner ECU (that is, the first electronic device) that has returned to the normal state from the communication interruption state transmits the communication frame. Therefore, it is easy for the second electronic device to return from the discard mode to the normal mode after the first electronic device that has returned to the normal state from the communication disruption state completes transmission of the retained frame.

ここで比較例について説明する。
例えば、通信フレーム内に当該通信フレームの生成時刻を示すタイムスタンプが含まれるようにすれば、受信側のECUは、受信フレーム中のタイムスタンプと、当該ECUが把握している現在時刻とから、受信フレームの新しさを判別することができると考えられる。しかし、この場合、各ECUで把握される時刻の同期を図る必要がある。このため、各ECUは、時刻同期のための通信及び処理を行う必要がある。これに対して、本実施形態の通信システム1によれば、時刻同期のための通信及び処理を不要にすることができる。
A comparative example will now be described.
For example, if a communication frame contains a time stamp indicating the generation time of the communication frame, the ECU on the receiving side can, from the time stamp in the received frame and the current time ascertained by the ECU, It is believed that the newness of the received frame can be determined. However, in this case, it is necessary to synchronize the times grasped by each ECU. Therefore, each ECU needs to perform communication and processing for time synchronization. On the other hand, according to the communication system 1 of this embodiment, communication and processing for time synchronization can be made unnecessary.

(1b)
更に、本実施形態の通信システム1において、SWECUは、他のSWECUによって送信された通信途絶通知が当該SWECUにおいて受信された場合に、この通信途絶通知を、当該SWECUに接続されている少なくとも1つの装置に送信するように構成されている。また、SWECUは、他のSWECUによって送信された通信復帰通知が、当該SWECUにおいて受信された場合に、この通信復帰通知を、当該SWECUに接続されている少なくとも1つの装置に送信するように構成されている。このため、送信側のECUと受信側のECUとの間の複数のSWECUが存在する場合であっても、送信側のECUが接続されたSWECUから受信側のECUへ、通信途絶通知と通信復帰通知とを転送することができる。
(1b)
Furthermore, in the communication system 1 of the present embodiment, when a communication loss notification transmitted by another SWECU is received by the SWECU, the SWECU transmits the communication loss notification to at least one connected to the SWECU. configured to transmit to the device. Further, the SWECU is configured to, when receiving a communication restoration notification transmitted by another SWECU, transmit the communication restoration notification to at least one device connected to the SWECU. ing. Therefore, even if there are a plurality of SW ECUs between the transmitting ECU and the receiving ECU, the SW ECU to which the transmitting ECU is connected sends the communication interruption notification and the communication restoration to the receiving ECU. Notifications and can be forwarded.

尚、本実施形態では、SWECUが行う処理のうち、図3のS220が、第1の転送部としての処理に相当し、図5のS420が、第2の転送部としての処理に相当する。
[2.第2実施形態]
[2-1.第1実施形態との相違点]
第2実施形態は、基本的な構成は第1実施形態と同様であるため、相違点について以下に説明する。なお、第1実施形態と同じ符号は、同一の構成を示すものであって、先行する説明を参照する。
In this embodiment, among the processes performed by the SWECU, S220 in FIG. 3 corresponds to the process as the first transfer unit, and S420 in FIG. 5 corresponds to the process as the second transfer unit.
[2. Second Embodiment]
[2-1. Differences from First Embodiment]
Since the basic configuration of the second embodiment is the same as that of the first embodiment, differences will be described below. Note that the same reference numerals as in the first embodiment indicate the same configurations, and refer to the preceding description.

図9に示す第2実施形態の通信システム10は、第1実施形態の通信システム1と比較すると、下記〈1〉~〈3〉の事項が異なる。
〈1〉ECU11~13が、共通の通信線63に接続されている。ECU21~23も、共通の通信線64に接続されている。そして、通信のプロトコルは、イーサネットではなく、例えばCAN(即ち、Controller Area Network)である。CANは登録商標である。
The communication system 10 of the second embodiment shown in FIG. 9 differs from the communication system 1 of the first embodiment in the following items <1> to <3>.
<1> ECUs 11 to 13 are connected to a common communication line 63 . The ECUs 21-23 are also connected to a common communication line 64. FIG. The communication protocol is not Ethernet but CAN (that is, Controller Area Network), for example. CAN is a registered trademark.

〈2〉SWECU31,32の代わりに、中継装置としてのECU65が備えられている。
ECU65は、通信線63,64の両方に接続されている。そして、ECU65は、ECU11~13の何れかとECU21~23の何れかとの間でやり取りされる通信フレーム(即ち、CANフレーム)を中継する。つまり、ECU65は、通信線63の系統のネットワークと、通信線64の系統のネットワークとを接続する、ゲートウェイとして機能するECUである。このため、以下では、ECU65のことを、GWECU65と言う。GWは、ゲートウェイの略である。
<2> Instead of the SWECUs 31 and 32, an ECU 65 is provided as a relay device.
The ECU 65 is connected to both communication lines 63 and 64 . Then, the ECU 65 relays communication frames (that is, CAN frames) exchanged between any of the ECUs 11-13 and any of the ECUs 21-23. That is, the ECU 65 is an ECU that functions as a gateway that connects the network of the communication line 63 system and the network of the communication line 64 system. Therefore, the ECU 65 is hereinafter referred to as the GW ECU 65 . GW is an abbreviation for gateway.

〈3〉GWECU65は、図2,図4の処理を行うが、図3,図5の処理は行わない。
[2-2.作用例]
GWECU65が図2,図4の処理を行い、ECUが図6,図7の処理を行うことによる、作用例を、図10に示す。
<3> The GW ECU 65 performs the processes of FIGS. 2 and 4, but does not perform the processes of FIGS.
[2-2. Action example]
FIG. 10 shows an example of the effect of the GW ECU 65 performing the processes of FIGS. 2 and 4 and the ECU performing the processes of FIGS.

図8と同様に、図10においても、ECU21が通信途絶状態になって、ECU21の通信相手であるECU11に通信途絶通知が送られた場合が示されている。図10に示すように、GWECU65は、図8の作用例におけるSWECU32と同様の役割を果たすことになる。尚、図10の作用例において、GWECU65は、ECU21が通信途絶状態になったことを示す通信途絶通知と、ECU21が通常状態に復帰したことを示す通信復帰通知とを、ECU11に、他の中継装置を介さずに送ることになる。このため、図10では、図8における時刻t4,t9の動作内容が削除されている。 Similarly to FIG. 8, FIG. 10 also shows a case where the ECU 21 is in a communication-disconnected state and a communication-disconnection notification is sent to the ECU 11 with which the ECU 21 communicates. As shown in FIG. 10, the GWECU 65 plays the same role as the SWECU 32 in the operation example of FIG. In the operation example of FIG. 10, the GW ECU 65 relays to the ECU 11 a communication interruption notification indicating that the ECU 21 has entered a communication interruption state and a communication restoration notification indicating that the ECU 21 has returned to its normal state. It will be sent without going through the device. Therefore, in FIG. 10, the operation contents at times t4 and t9 in FIG. 8 are deleted.

[2-3.効果]
上記第2実施形態によっても、第1実施形態について上記(1a)で述べた効果と同様の効果を奏する。
[2-3. effect]
According to the second embodiment as well, the same effect as the effect described in (1a) above for the first embodiment can be obtained.

[3.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
[3. 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 various modifications can be made.

例えば、第1実施形態において、SWECUからの通信途絶通知と通信復帰通知は、通信途絶状態になったECUの通信相手のECUを宛先として送信されても良い。例えば、第1実施形態で説明した図8の作用例において、SWECU32は、通信途絶通知と通信復帰通知を、当該SWECU32に接続されている全ての装置のうち、ECU21の通信相手であるECU11が接続されているSWECU31だけに送信して良い。そして、SWECU31は、SWECU32からの通信途絶通知と通信復帰通知を、当該SWECU31に接続されている全ての装置のうち、ECU11だけに送信しても良い。 For example, in the first embodiment, the communication interruption notification and the communication restoration notification from the SW ECU may be sent to the ECU that is the communication partner of the ECU in the communication interruption state. For example, in the operation example of FIG. 8 described in the first embodiment, the SWECU 32 transmits the communication loss notification and the communication recovery notification to the ECU 11, which is the communication partner of the ECU 21, among all the devices connected to the SWECU 32. It may be transmitted only to the SWECU 31 that is set. Then, the SWECU 31 may transmit the communication interruption notification and the communication restoration notification from the SWECU 32 to only the ECU 11 among all the devices connected to the SWECU 31 .

また、SWECUは、図3の処理では、他のSWECUから受信した通信途絶通知の内容を記憶しておき、通信復帰通知を受信するまでの間、例えば一定時間毎に、記憶した内容の通信途絶通知を送信するようになっていても良い。このように構成すれば、通信途絶通知を目的のECUに到達させる可能性が高まる。 In addition, in the process of FIG. 3, the SWECU stores the contents of the communication interruption notification received from the other SWECU, and until the communication restoration notification is received, for example, at regular time intervals, the communication interruption of the stored contents is stored. Notification may be sent. By configuring in this way, the possibility of the communication disruption notification reaching the target ECU increases.

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

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

また、上述したECU11~13,21~23、SWECU31,32及びGWECU65のそれぞれとしてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実態的記録媒体、通信制御方法など、種々の形態で本開示を実現することもできる。 In addition, a program for causing a computer to function as each of the ECUs 11 to 13, 21 to 23, the SW ECUs 31, 32, and the GW ECU 65 described above, a non-transitional actual recording medium such as a semiconductor memory in which the program is recorded, a communication control method, etc. The present disclosure can also be implemented in various forms.

1,10…通信システム、11~13,21~23…ECU、31,32…SWECU、65…GWECU 1, 10... communication system, 11 to 13, 21 to 23... ECU, 31, 32... SW ECU, 65... GW ECU

Claims (5)

複数の電子装置(11~13,21~23)と、
前記複数の電子装置のうちの何れかである第1の電子装置から、前記複数の電子装置のうち前記第1の電子装置の少なくとも1つの通信相手である第2の電子装置への、通信フレームを中継するように構成された、少なくとも1つの中継装置(31,32,65)と、を備え、
前記中継装置は、
前記第1の電子装置が、前記通信フレームの送信を途絶した状態である通信途絶状態になったか否かを判定するように構成された途絶判定部(S110)と、
前記途絶判定部により、前記第1の電子装置が前記通信途絶状態になったと判定された場合に、前記第1の電子装置が前記通信途絶状態になったことを示す通信途絶通知を、少なくとも前記第2の電子装置に送るように構成された途絶通知部(S130)と、
前記第1の電子装置が、前記通信途絶状態から前記通信フレームの送信を実施する通常状態に復帰したか否かを判定するように構成された復帰判定部(S310)と、
前記復帰判定部により、前記第1の電子装置が前記通常状態に復帰したと判定された場合に、前記第1の電子装置が前記通常状態に復帰したことを示す通信復帰通知を、少なくとも前記第2の電子装置に送るように構成された復帰通知部(S330)と、を備え、
前記第2の電子装置は、
当該第2の電子装置において前記通信途絶通知が受信された場合に、当該第2の電子装置の動作モードを、前記第1の電子装置からの通信フレームを破棄する動作モードにするように構成された破棄開始部(S530)と、
当該第2の電子装置において前記通信復帰通知が受信された場合に、当該通信復帰通知が受信されてから所定時間が経過したか否かを判定し、前記所定時間が経過したと判定すると、当該第2の電子装置の動作モードを、前記第1の電子装置からの通信フレームを破棄せずに取得する動作モードに戻すように構成された破棄終了部(S630,S640)と、を備える、
通信システム。
a plurality of electronic devices (11-13, 21-23);
A communication frame from a first electronic device that is one of the plurality of electronic devices to a second electronic device that is a communication partner of at least one of the first electronic device among the plurality of electronic devices. at least one relay device (31, 32, 65) configured to relay the
The relay device
a disruption determination unit (S110) configured to determine whether or not the first electronic device is in a communication disruption state in which transmission of the communication frame is interrupted;
When the disruption determination unit determines that the first electronic device is in the communication disruption state, at least the communication disruption notification indicating that the first electronic device is in the communication disruption state. a disruption notification unit (S130) configured to send to the second electronic device;
a recovery determination unit (S310) configured to determine whether the first electronic device has recovered from the communication disruption state to a normal state in which the communication frame is transmitted;
When the recovery determination unit determines that the first electronic device has recovered to the normal state, a communication recovery notification indicating that the first electronic device has recovered to the normal state is sent to at least the first electronic device. a return notification unit (S330) configured to send to the electronic device of No. 2,
The second electronic device is
The second electronic device is configured to change an operation mode of the second electronic device to an operation mode of discarding communication frames from the first electronic device when the communication disruption notification is received by the second electronic device. a discard start unit (S530);
When the second electronic device receives the communication restoration notification, it is determined whether a predetermined time has passed since the communication restoration notification was received, and if it is determined that the predetermined time has passed, the a discard termination unit (S630, S640) configured to return an operation mode of a second electronic device to an operation mode of acquiring communication frames from the first electronic device without discarding them;
Communications system.
請求項1に記載の通信システムであって、
前記所定時間は、前記第1の電子装置が前記通信フレームを送信する最大周期よりも長い時間である、
通信システム。
A communication system according to claim 1,
The predetermined time is a time longer than the maximum cycle in which the first electronic device transmits the communication frame,
Communications system.
通信相手の電子装置である通信相手装置と少なくとも1つの中継装置を介して通信するように構成された電子装置であって、
前記少なくとも1つの中継装置から送信される通知のうち、前記通信相手装置が通信フレームの送信を途絶した状態である通信途絶状態になったことを示す通信途絶通知が、当該電子装置において受信された場合に、当該電子装置の動作モードを、前記通信相手装置からの通信フレームを破棄する動作モードにするように構成された破棄開始部(S530)と、
前記少なくとも1つの中継装置から送信される通知のうち、前記通信相手装置が前記通信途絶状態から前記通信フレームの送信を実施する通常状態に復帰したことを示す通信復帰通知が、当該電子装置において受信された場合に、前記通信復帰通知が受信されてから所定時間が経過したか否かを判定し、前記所定時間が経過したと判定すると、当該電子装置の動作モードを、前記通信相手装置からの通信フレームを破棄せずに取得する動作モードに戻すように構成された破棄終了部(S630,S640)と、を備える、
電子装置。
An electronic device configured to communicate with a communication partner device, which is a communication partner electronic device, via at least one relay device,
Among the notifications transmitted from the at least one relay device, the electronic device receives a communication disruption notification indicating that the communication partner device has entered a communication disruption state in which transmission of communication frames is interrupted. a discard initiation unit (S530) configured to set the operation mode of the electronic device to an operation mode for discarding communication frames from the communication partner device when the
Among the notifications transmitted from the at least one relay device, the electronic device receives a communication recovery notification indicating that the communication partner device has recovered from the communication disruption state to a normal state in which the communication frame is transmitted. if a predetermined period of time has passed since the communication recovery notification was received, and if it is determined that the predetermined period of time has passed, the operation mode of the electronic device is changed to the operation mode of the communication partner device. a discard termination unit (S630, S640) configured to return to an operation mode of acquiring communication frames without discarding them;
electronic device.
請求項3に記載の電子装置であって、
前記所定時間は、前記通信相手装置が前記通信フレームを送信する最大周期よりも長い時間である、
電子装置。
The electronic device according to claim 3,
The predetermined time is a time longer than the maximum cycle in which the communication partner device transmits the communication frame.
electronic device.
複数の電子装置(11~13,21~23)のうちの何れかである第1の電子装置から、前記複数の電子装置のうち前記第1の電子装置の少なくとも1つの通信相手である第2の電子装置への、通信フレームを中継するように構成された中継装置であって、
前記第1の電子装置が、前記通信フレームの送信を途絶した状態である通信途絶状態になったか否かを判定するように構成された途絶判定部(S110)と、
前記途絶判定部により、前記第1の電子装置が前記通信途絶状態になったと判定された場合に、前記第1の電子装置が前記通信途絶状態になったことを示す通信途絶通知を、少なくとも前記第2の電子装置に送るように構成された途絶通知部(S130)と、
前記第1の電子装置が、前記通信途絶状態から前記通信フレームの送信を実施する通常状態に復帰したか否かを判定するように構成された復帰判定部(S310)と、
前記復帰判定部により、前記第1の電子装置が前記通常状態に復帰したと判定された場合に、前記第1の電子装置が前記通常状態に復帰したことを示す通信復帰通知を、少なくとも前記第2の電子装置に送るように構成された復帰通知部(S330)と、を備え
他の中継装置が備える前記途絶通知部によって送信された前記通信途絶通知が、当該中継装置において受信された場合に、当該受信された通信途絶通知を、当該中継装置に接続されている少なくとも1つの装置に送信するように構成された第1の転送部(S220)と、
他の中継装置が備える前記復帰通知部によって送信された前記通信復帰通知が、当該中継装置において受信された場合に、当該受信された通信復帰通知を、当該中継装置に接続されている少なくとも1つの装置に送信するように構成された第2の転送部(S420)と、を更に備える、
中継装置。
From a first electronic device that is any one of a plurality of electronic devices (11 to 13, 21 to 23), a second electronic device that is a communication partner of at least one of the plurality of electronic devices (11 to 13, 21 to 23) a relay device configured to relay communication frames to an electronic device of
a disruption determination unit (S110) configured to determine whether or not the first electronic device is in a communication disruption state in which transmission of the communication frame is interrupted;
When the disruption determination unit determines that the first electronic device is in the communication disruption state, at least the communication disruption notification indicating that the first electronic device is in the communication disruption state. a disruption notification unit (S130) configured to send to the second electronic device;
a recovery determination unit (S310) configured to determine whether the first electronic device has recovered from the communication disruption state to a normal state in which the communication frame is transmitted;
When the recovery determination unit determines that the first electronic device has recovered to the normal state, a communication recovery notification indicating that the first electronic device has recovered to the normal state is sent to at least the first electronic device. a return notification unit (S330) configured to send to the electronic device of No. 2 ,
When the communication disruption notification transmitted by the communication disruption notification unit provided in another relay device is received by the relay device, the received communication disruption notification is sent to at least one device connected to the relay device. a first forwarding unit (S220) configured to transmit to a device;
When the communication recovery notification transmitted by the recovery notification unit provided in another relay device is received by the relay device, the received communication recovery notification is sent to at least one device connected to the relay device. a second forwarding unit (S420) configured to transmit to the device;
Relay device.
JP2019076990A 2019-04-15 2019-04-15 Communication systems, electronic devices and repeaters Active JP7200812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019076990A JP7200812B2 (en) 2019-04-15 2019-04-15 Communication systems, electronic devices and repeaters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019076990A JP7200812B2 (en) 2019-04-15 2019-04-15 Communication systems, electronic devices and repeaters

Publications (2)

Publication Number Publication Date
JP2020178159A JP2020178159A (en) 2020-10-29
JP7200812B2 true JP7200812B2 (en) 2023-01-10

Family

ID=72936122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019076990A Active JP7200812B2 (en) 2019-04-15 2019-04-15 Communication systems, electronic devices and repeaters

Country Status (1)

Country Link
JP (1) JP7200812B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005159652A (en) 2003-11-25 2005-06-16 Matsushita Electric Works Ltd Video-sound communication system
JP2017055289A (en) 2015-09-10 2017-03-16 株式会社デンソー Master communication device and slave communication device
JP2017092566A (en) 2015-11-04 2017-05-25 トヨタ自動車株式会社 On-vehicle network system
JP2017184087A (en) 2016-03-31 2017-10-05 Necプラットフォームズ株式会社 Network device and control method thereof
WO2019093167A1 (en) 2017-11-10 2019-05-16 日本電気株式会社 Control device, control method, and nontemporary computer-readable medium in which program is stored

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005159652A (en) 2003-11-25 2005-06-16 Matsushita Electric Works Ltd Video-sound communication system
JP2017055289A (en) 2015-09-10 2017-03-16 株式会社デンソー Master communication device and slave communication device
JP2017092566A (en) 2015-11-04 2017-05-25 トヨタ自動車株式会社 On-vehicle network system
JP2017184087A (en) 2016-03-31 2017-10-05 Necプラットフォームズ株式会社 Network device and control method thereof
WO2019093167A1 (en) 2017-11-10 2019-05-16 日本電気株式会社 Control device, control method, and nontemporary computer-readable medium in which program is stored

Also Published As

Publication number Publication date
JP2020178159A (en) 2020-10-29

Similar Documents

Publication Publication Date Title
US7944815B2 (en) System and method for network recovery from multiple link failures
JP6451546B2 (en) Communication network and relay device
US20180324640A1 (en) Vehicle-Mounted Gateway Device, Electronic Control Device, and Vehicle-Mounted Network System
JP5883743B2 (en) Method for reducing communication interruption time in packet communication networks
US11251991B2 (en) Communication system, communication apparatus, communication method, and program
CN112162875B (en) Method for transmitting highly reliable message in transaction system
CN106789638A (en) Method and network device for processing routing
JP2017011519A (en) Communication system using network
JPH01202950A (en) Token ring transmission system
JP7625962B2 (en) On-vehicle device, on-vehicle network system, and information processing method
CN105704022A (en) Path switching method and network nodes
CN104639434A (en) Open shortest path first protocol smooth restart method and device
WO2012097595A1 (en) Method and system for implementing shared-mesh protection
JP7200812B2 (en) Communication systems, electronic devices and repeaters
JP4629126B2 (en) Message relay device
JP4715802B2 (en) Communications system
JP4344333B2 (en) Packet transfer apparatus, packet transfer network system, and packet transfer method
CN113613223B (en) Master-slave switching method, first equipment and second equipment of Bluetooth audio system
JP7225740B2 (en) repeater
JP2799507B2 (en) Failure recovery control method
CN115002020B (en) OSPF-based data processing method and device
JPH08139731A (en) Duplex transmission system switching method
JP4821627B2 (en) Relay device and program
JP2020141371A (en) Relay device
JP4869144B2 (en) Communication device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210825

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210825

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220531

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220531

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220719

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221205

R151 Written notification of patent or utility model registration

Ref document number: 7200812

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250