JP7251346B2 - Master relay device and relay system - Google Patents

Master relay device and relay system Download PDF

Info

Publication number
JP7251346B2
JP7251346B2 JP2019113860A JP2019113860A JP7251346B2 JP 7251346 B2 JP7251346 B2 JP 7251346B2 JP 2019113860 A JP2019113860 A JP 2019113860A JP 2019113860 A JP2019113860 A JP 2019113860A JP 7251346 B2 JP7251346 B2 JP 7251346B2
Authority
JP
Japan
Prior art keywords
relay
time
receiving
ecus
relay devices
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
JP2019113860A
Other languages
Japanese (ja)
Other versions
JP2020205573A (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 JP2019113860A priority Critical patent/JP7251346B2/en
Publication of JP2020205573A publication Critical patent/JP2020205573A/en
Application granted granted Critical
Publication of JP7251346B2 publication Critical patent/JP7251346B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Description

本開示は、複数の通信線間でのデータの中継を行うように構成されたマスタ中継装置、及び複数の中継装置を備える中継システムに関する。 The present disclosure relates to a master relay device configured to relay data between a plurality of communication lines, and a relay system including a plurality of relay devices.

例えば、下記特許文献1には、互いに通信可能に接続された複数の中継装置を備えた中継システムにおいて、複数の中継装置のそれぞれに、通信線を介して少なくとも1つの通信装置が接続された構成が開示されている。 For example, Patent Document 1 below discloses a configuration in which at least one communication device is connected to each of the plurality of relay devices via a communication line in a relay system provided with a plurality of relay devices that are communicatively connected to each other. is disclosed.

特開2016-178634号公報JP 2016-178634 A

ところで、上記中継システムでは、異なる中継装置に接続された通信装置に対して同時にデータを提供したい場合がある。例えば、中継装置Aに接続された通信装置Aから、中継装置Bに接続された通信装置B、及び中継装置Cに接続された通信装置Cに、ドアロックを解除する指令を含むデータを送信すると仮定する。 By the way, in the above relay system, there are cases where it is desired to simultaneously provide data to communication devices connected to different relay devices. For example, when communication device A connected to relay device A transmits data including a command to unlock the door to communication device B connected to relay device B and communication device C connected to relay device C, Assume.

通信装置Bが右側ドアのロックを解除し、通信装置Cが左側ドアのロックを解除する場合、通信装置B,Cが同時にデータを受信できれば、左右のドアロックが同時に解除される。しかし、通信装置B,Cが同時にデータを受信できない場合、左右のドアロックのタイミングがずれてしまう。 When the communication device B unlocks the right door and the communication device C unlocks the left door, if the communication devices B and C can receive data at the same time, the left and right doors are unlocked at the same time. However, if the communication devices B and C cannot receive data at the same time, the left and right door lock timings are shifted.

つまり、発明者の詳細な検討の結果、中継装置からのデータを受ける複数の通信装置が同時にデータを受信できない場合、このデータに基づく制御を行う通信装置による制御タイミングにずれが生じるという課題が見出された。 In other words, as a result of detailed studies by the inventors, it has been found that when a plurality of communication devices that receive data from a relay device cannot receive data at the same time, a deviation occurs in the control timing of the communication devices that perform control based on this data. served.

本開示の1つの局面は、互いに通信可能に接続された複数の中継装置のそれぞれに、通信線を介して少なくとも1つの通信装置が接続された構成において、複数の通信装置が中継装置から中継されたデータに基づく制御を行う場合に、異なる中継装置に接続された通信装置による制御タイミングのずれを抑制できるようにすることにある。 In one aspect of the present disclosure, in a configuration in which at least one communication device is connected via a communication line to each of a plurality of relay devices communicatively connected to each other, the plurality of communication devices are relayed from the relay device. It is possible to suppress deviation in control timing by communication devices connected to different relay devices when performing control based on data obtained from the relay device.

本開示の一態様は、他の中継装置とネットワーク通信線(29~34)で通信可能に接続された中継装置(11~14)である。当該中継装置及び他の中継装置を表す複数の中継装置のそれぞれには、ネットワーク通信線以外のローカル通信線(35~42)を介して少なくとも1つの通信装置(15~22)が接続されている。また、複数の中継装置は、時刻について同期しており、かつ複数の中継装置のうちの送信側中継装置から、送信側中継装置でない複数の受信側中継装置にデータを中継するように構成される。 One aspect of the present disclosure is relay devices (11-14) communicably connected to other relay devices via network communication lines (29-34). At least one communication device (15-22) is connected to each of a plurality of relay devices representing the relay device and other relay devices via local communication lines (35-42) other than network communication lines. . Further, the plurality of relay devices are synchronized with respect to time, and configured to relay data from a transmitting side relay device among the plurality of relay devices to a plurality of receiving side relay devices that are not the transmitting side relay device. .

当該中継装置は、ローカル受信部(S110)と、データ送信部(S160、S170)と、ローカル送信部(S210、S320)と、を備える。ローカル受信部は、ローカル通信線から、他の中継装置に接続された2以上の通信装置を宛先とするデータを受信するように構成される。データ送信部は、他の中継装置がデータを送信すべき時刻を示す時刻情報を、データとともに、ネットワーク通信線を介して他の中継装置に送信するように構成される。ローカル送信部は、ネットワーク通信線を介して時刻情報及びデータを受信し、時刻情報にて指示された時刻にローカル通信線にデータを送信するように構成される。 The relay device includes a local receiver (S110), a data transmitter (S160, S170), and a local transmitter (S210, S320). The local receiver is configured to receive data destined for two or more communication devices connected to another relay device from the local communication line. The data transmission unit is configured to transmit, together with the data, time information indicating the time when the other relay device should transmit the data to the other relay device via the network communication line. The local transmission unit is configured to receive the time information and data via the network communication line and transmit the data to the local communication line at the time indicated by the time information.

このような構成によれば、異なる中継装置に対して、2以上の通信装置に同時にデータを送信させることができるので、2以上の通信装置による制御タイミングのずれを抑制することができる。 According to such a configuration, it is possible to simultaneously transmit data to two or more communication devices with respect to different relay devices, so it is possible to suppress deviations in control timing between two or more communication devices.

ネットワークシステムの構成を示すブロック図である。1 is a block diagram showing the configuration of a network system; FIG. 第1実施形態の構成による通信例を示すラダーチャートである。4 is a ladder chart showing an example of communication by the configuration of the first embodiment; 第1実施形態の送信側処理のフローチャートである。4 is a flowchart of transmission-side processing according to the first embodiment; 第1実施形態の受信側処理のフローチャートである。4 is a flowchart of receiving-side processing according to the first embodiment; 第1実施形態の同期処理のフローチャートである。4 is a flowchart of synchronization processing according to the first embodiment; 第2実施形態の構成による通信例を示すラダーチャートである。FIG. 11 is a ladder chart showing an example of communication by the configuration of the second embodiment; FIG. 第2実施形態の送信側処理のフローチャートである。10 is a flowchart of transmission-side processing according to the second embodiment; 第2実施形態の受信側処理のフローチャートである。10 is a flowchart of receiving-side processing according to the second embodiment; 第2実施形態の時刻設定処理のフローチャートである。9 is a flowchart of time setting processing according to the second embodiment; 第2実施形態のタイマ設定処理のフローチャートである。9 is a flowchart of timer setting processing according to the second embodiment; 第3実施形態の構成による通信例を示すラダーチャートである。FIG. 11 is a ladder chart showing an example of communication by the configuration of the third embodiment; FIG. 第3実施形態の時刻設定処理のフローチャートである。10 is a flowchart of time setting processing according to the third embodiment; 確認応答処理のフローチャートである。4 is a flowchart of confirmation response processing; 第3実施形態の時刻設定処理のフローチャートである。10 is a flowchart of time setting processing according to the third embodiment; 異常判定処理のフローチャートである。4 is a flowchart of abnormality determination processing;

[1.概要]
[1-1.背景]
車両に求められる機能が多彩化している。今後、車両の機能は、通信を用いて、いつでもアップグレードできる環境になることが予想される。また、増大する機器に対応して、車両内の搭載位置に関する制約をなくし、電子制御装置を被制御対象の近傍に配置するエリア配置を可能にすることが求められる。例えば、エリア配置では、ドアロックを制御する機能の場合、右側のドアロックに関するアクチュエータの近傍に、右側用の電子制御装置を配置し、左側のドアロックに関するアクチュエータの近傍に、左側用の電子制御装置を配置することが求められる。
[1. overview]
[1-1. background]
The functions required for vehicles are diversifying. In the future, it is expected that the functions of vehicles will be able to be upgraded at any time using communication. In addition, in response to the increasing number of devices, it is required to eliminate restrictions on the mounting position in the vehicle and to enable area placement in which the electronic control unit is placed in the vicinity of the object to be controlled. For example, in the area arrangement, if the function is to control the door lock, the right side electronic control unit is placed near the right door lock actuator, and the left side electronic control unit is placed near the left door lock actuator. Equipment placement is required.

このようなニーズに対し、車両ネットワークでは、通信プロトコルとしてより高速なEthernet(登録商標)を採用するスイッチECU(以下SWECU)を用いる構成が提案されている。この構成では、例えば、車両通信のルールを状況に応じて動的に切り替える、Software Defined Networkという仕組みを用いて、OPEN FLOW NETWORK等の、機器の配置を最適化したネットワークを構築する案が挙げられている。 In response to such needs, in vehicle networks, a configuration using a switch ECU (hereinafter referred to as SWECU) that employs a faster Ethernet (registered trademark) as a communication protocol has been proposed. In this configuration, for example, there is a plan to build a network that optimizes the arrangement of devices, such as OPEN FLOW NETWORK, using a mechanism called Software Defined Network that dynamically switches vehicle communication rules according to the situation. ing.

一方で、現状の車両で採用されている一般的な構成であるCGW構成では、各ECU間でCAN(登録商標)による通信が実施される。この構成では、送信側のECUがフレームを送信する場合に、CANバスにフレームを送信すれば受信側の同一バスに繋がる複数のECUが同タイミングでフレームを受信することが可能である。 On the other hand, in the CGW configuration, which is a general configuration adopted in current vehicles, communication is performed by CAN (registered trademark) between each ECU. In this configuration, when the transmission side ECU transmits the frame to the CAN bus, a plurality of reception side ECUs connected to the same bus can receive the frame at the same timing.

[1-2.課題]
ここで、CGW構成を、複数のSWECUに置き換え、上記Software Defined Networkを用いて機器の配置を最適化する構成とした場合、CGW構成で同一バスに繋がっていた複数のECUが、SWECUを介して別々のCANバスに配置される場合がある。この場合、同一のCANバスであれば、フレームは同時に受信側のECUに届くが、SWECUを経由する場合には、フレームは、処理内容、バスの込み具合、経路の構成により、遅延が発生し、同時には受信側の複数のECUに届かない可能性が高くなる。
[1-2. Theme]
Here, if the CGW configuration is replaced with a plurality of SWECUs and a configuration is adopted in which the arrangement of devices is optimized using the above software defined network, the plurality of ECUs connected to the same bus in the CGW configuration can May be located on separate CAN buses. In this case, if the same CAN bus is used, the frames will arrive at the receiving side ECU at the same time, but if they pass through the SW ECU, the frames will be delayed depending on the content of processing, the degree of bus congestion, and the configuration of the route. , there is a high possibility that it will not reach a plurality of ECUs on the receiving side at the same time.

しかしながら、受信側の複数のECUへ同タイミングで信号を送りたいという要求がある。例えば、ハイライトで車外に警告をする場合に左右のライトECUへ点灯の要求を同時に送りたい場合、車両の全てのドアのアンロックのタイミングを合わせたい場合等が該当する。このため、以下では、機器の配置を最適化しつつ、受信側の複数のECUへ同タイミングで信号を送ることができるようにする手法を提案する。 However, there is a demand to send signals to a plurality of ECUs on the receiving side at the same timing. For example, when warning to the outside of the vehicle with a highlight, it is desired to simultaneously send a request to turn on the left and right light ECUs, or to synchronize the timing of unlocking all the doors of the vehicle. For this reason, the following proposes a method of optimizing the arrangement of devices and enabling signals to be sent to a plurality of receiving-side ECUs at the same timing.

[1-3.解決手法]
解決手法1:フレーム中に引き渡し時刻を埋め込み、フレームを受けた各SWECUはその時刻でフレームをCANバスに送信する。
[1-3. solution method]
Solution method 1: The handover time is embedded in the frame, and each SW ECU that receives the frame transmits the frame to the CAN bus at that time.

この構成により、同タイミングでCANバスにフレームを送信することができる。解決手法1については、下記第1実施形態で詳述する。
解決手法2:遅延時間対策を1つのECUでまとめて実施することで、時間設計の負担を1つのECUにまとめる。
With this configuration, frames can be transmitted to the CAN bus at the same timing. Solution method 1 will be described in detail in the following first embodiment.
Solution method 2: All the delay time countermeasures are implemented by one ECU, so that the burden of time design is put on one ECU.

この構成により、各SWECUで遅延時間考慮する必要はなく、1つのECUだけで遅延時間考慮すればよい構成にすることができる。解決手法2については、下記第2実施形態で詳述する。 With this configuration, it is not necessary to consider the delay time in each SW ECU, and it is possible to adopt a configuration in which only one ECU is required to consider the delay time. Solution method 2 will be described in detail in the second embodiment below.

解決手法3:経路異常確認を実施し、バス異常等で遅延が大きくなった場合にも対応できるようにする。
この構成により、バス異常で遅延時間が大きくなった場合でも受信側の複数のECUへ同タイミングで信号を送ることができる。解決手法3については、下記第3実施形態で詳述する。
Solution method 3: Check for path anomalies, and make it possible to deal with cases where delays increase due to bus anomalies or the like.
With this configuration, even if the delay time becomes long due to an abnormality in the bus, signals can be sent to a plurality of ECUs on the receiving side at the same timing. Solution method 3 will be described in detail in the following third embodiment.

[2.第1実施形態]
以下、図面を参照しながら、本開示の実施形態を説明する。
[2-1.構成]
図1に示す実施形態のネットワークシステム1は、例えば乗用車等の車両に搭載されたイーサネット(登録商標)ネットワークであり、車両内の通信システムを構成している。
[2. First Embodiment]
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[2-1. composition]
A network system 1 of the embodiment shown in FIG. 1 is an Ethernet (registered trademark) network installed in a vehicle such as a passenger car, and constitutes a communication system in the vehicle.

図1に示すように、ネットワークシステム1は、電子制御装置である複数のECU11~22と、通信線31~42と、を備える。ECUは、「Electronic Control Unit」の略である。 As shown in FIG. 1, the network system 1 includes a plurality of ECUs 11-22, which are electronic control units, and communication lines 31-42. ECU is an abbreviation of "Electronic Control Unit".

複数のECU11~22は、中継ECU11~14と、ローカルECU15~22とに分類される。中継ECU11~14の各々は、他のECU15~22間の通信を中継する中継装置として構成される。また、ローカルECU15~22は、何れかの中継ECU11~14に接続され、1又は複数の中継ECU11~14を介して他のローカルECU15~22と通信を行う機能を有する。また、ローカルECU15~22は、車両における各被制御対象の機器を制御する機能を有する。 The plurality of ECUs 11-22 are classified into relay ECUs 11-14 and local ECUs 15-22. Each of relay ECUs 11-14 is configured as a relay device for relaying communication between other ECUs 15-22. Also, the local ECUs 15-22 have a function of being connected to any of the relay ECUs 11-14 and communicating with other local ECUs 15-22 via one or a plurality of relay ECUs 11-14. In addition, the local ECUs 15 to 22 have a function of controlling each device to be controlled in the vehicle.

中継ECU11~14の各々は、イーサネットのネットワークスイッチであるイーサネットスイッチ51~54を備える。さらに、中継ECU11~14の各々は、演算装置としてのマイクロコンピュータ(以下、マイコンという)61~64も備える。なお、図示を省略しているが、マイコン61~64は、CPU、ROM及びRAM等を備える。 Each of the relay ECUs 11-14 includes Ethernet switches 51-54, which are Ethernet network switches. Further, each of the relay ECUs 11-14 also includes a microcomputer (hereinafter referred to as a microcomputer) 61-64 as an arithmetic device. Although illustration is omitted, the microcomputers 61 to 64 are provided with a CPU, a ROM, a RAM, and the like.

スイッチ51~54は、所定の規格に従ったデータであるフレーム、特に、本実施形態ではイーサネット規格及びCAN規格に従ったフレームの中継のための通信を行う。このため、スイッチ51~54の各々は、フレームを送受信するための複数(例えば、本実施形態では5つ)の通信ポート(以下、ポート)P1~P5と、イーサネット規格及びCAN規格に従った中継のための通信処理を行う通信制御部81とを、備える。 The switches 51 to 54 perform communication for relaying frames that are data conforming to a predetermined standard, particularly frames conforming to the Ethernet standard and the CAN standard in this embodiment. For this reason, each of the switches 51 to 54 has a plurality of (for example, five in this embodiment) communication ports (hereinafter referred to as ports) P1 to P5 for transmitting and receiving frames, and a relay port according to the Ethernet standard and the CAN standard. and a communication control unit 81 that performs communication processing for.

また、スイッチ51~54は、MACアドレステーブル73と、同時性テーブル75と、受信通知テーブル77と、バッファ79とをさらに備える。なお、MACアドレステーブル73、及び同時性テーブル75については、本実施形態において後述する。また、受信通知テーブル77は、第2実施形態以降で用いるため、本実施形態では備える必要はない。また、バッファ79は、種々のデータを一時的に格納するための記憶領域である。 Also, the switches 51 to 54 further include a MAC address table 73, a synchronism table 75, a reception notification table 77, and a buffer 79. FIG. Note that the MAC address table 73 and the simultaneity table 75 will be described later in this embodiment. Further, since the reception notification table 77 is used in the second embodiment and later, it is not necessary to provide it in this embodiment. A buffer 79 is a storage area for temporarily storing various data.

各テーブル73,75,77、及びバッファ79は、スイッチ51~54が有するメモリ71に備えられている。メモリ71は、例えば揮発性のメモリであるが、書き換え可能な不揮発性メモリであってもよい。通信制御部81は、例えば集積回路やマイコン等によって構成されている。 Each of the tables 73, 75, 77 and the buffer 79 are provided in the memory 71 of the switches 51-54. The memory 71 is, for example, a volatile memory, but may be a rewritable nonvolatile memory. The communication control unit 81 is composed of, for example, an integrated circuit, a microcomputer, or the like.

スイッチ51~54の動作は、通信制御部81によって実現される動作である。なお、通信制御部81の機能には、複数の通信ポートP1~P5を用いてフレームを受信する機能、複数の通信ポートP1~P5に接続された通信線29~34の断線等の異常を検知する機能等が含まれる。また、以下の記述では、スイッチ51~54の通信制御部81による作動を、中継ECU11~14の作動として記述する。 Operations of the switches 51 to 54 are operations realized by the communication control section 81 . The functions of the communication control unit 81 include a function to receive frames using a plurality of communication ports P1 to P5, a function to detect an abnormality such as disconnection of the communication lines 29 to 34 connected to the plurality of communication ports P1 to P5. It includes the function to Further, in the following description, operations of the switches 51-54 by the communication control unit 81 are described as operations of the relay ECUs 11-14.

このようなネットワークシステム1では、スター型のネットワークトポロジーを構成する。すなわち、ネットワークシステム1では、複数の中継ECU11~14が、複数の中継ECU11~14を互いに通信可能に接続するネットワーク通信線29~34によって接続される。また、複数の中継ECU11~14は、何れかのローカルECU15~22と、ローカル通信線35~42によって通信可能に接続される。 Such a network system 1 constitutes a star-shaped network topology. That is, in the network system 1, the plurality of relay ECUs 11-14 are connected by network communication lines 29-34 that connect the plurality of relay ECUs 11-14 so as to be able to communicate with each other. Further, the plurality of relay ECUs 11-14 are communicably connected to one of the local ECUs 15-22 via local communication lines 35-42.

詳細には、中継ECU11のスイッチ51のポートP2と、中継ECU13のスイッチ53のポートP1とが、ネットワーク通信線29で接続されている。また、中継ECU12のスイッチ52のポートP2と、中継ECU14のスイッチ54のポートP2とが、ネットワーク通信線30で接続されている。また、中継ECU11のスイッチ51のポートP1と、中継ECU12のスイッチ52のポートP1とが、ネットワーク通信線31で接続されている。また、中継ECU12のスイッチ52のポートP2と、中継ECU13のスイッチ53のポートP2とが、ネットワーク通信線32で接続されている。さらに、中継ECU13のスイッチ53のポートP3と、中継ECU14のスイッチ54のポートP3とが、ネットワーク通信線33で接続されている。また、中継ECU14のスイッチ54のポートP1と、中継ECU11のスイッチ51のポートP3とが、ネットワーク通信線34で接続されている。 Specifically, the port P<b>2 of the switch 51 of the relay ECU 11 and the port P<b>1 of the switch 53 of the relay ECU 13 are connected by the network communication line 29 . Also, the port P2 of the switch 52 of the relay ECU 12 and the port P2 of the switch 54 of the relay ECU 14 are connected by the network communication line 30 . A network communication line 31 connects the port P1 of the switch 51 of the relay ECU 11 and the port P1 of the switch 52 of the relay ECU 12 . Also, the port P2 of the switch 52 of the relay ECU 12 and the port P2 of the switch 53 of the relay ECU 13 are connected by the network communication line 32 . Furthermore, the port P3 of the switch 53 of the relay ECU 13 and the port P3 of the switch 54 of the relay ECU 14 are connected by the network communication line 33 . Also, the port P1 of the switch 54 of the relay ECU 14 and the port P3 of the switch 51 of the relay ECU 11 are connected by the network communication line 34 .

上記のように、ネットワークシステム1では、スイッチ51~54は、互いに他のスイッチ51~54を経由することなく、直接全てのスイッチ51~54と通信可能となるように構成される。 As described above, in the network system 1, the switches 51-54 are configured to be able to communicate directly with all the switches 51-54 without going through other switches 51-54.

そして、中継ECU11のスイッチ51のポートP4,P5には、ローカル通信線35,36を介してローカルECU15,16がそれぞれ接続されている。また、中継ECU12のスイッチ52のポートP4,P5には、ローカル通信線37,38を介してローカルECU17,18がそれぞれ接続されている。また、中継ECU13のスイッチ53のポートP4,P5には、ローカル通信線39,40を介してローカルECU19,20がそれぞれ接続されている。また、中継ECU14のスイッチ54のポートP4,P5には、ローカル通信線41,42を介してローカルECU21,22がそれぞれ接続されている。 Local ECUs 15 and 16 are connected to the ports P4 and P5 of the switch 51 of the relay ECU 11 via local communication lines 35 and 36, respectively. Local ECUs 17 and 18 are connected to ports P4 and P5 of the switch 52 of the relay ECU 12 via local communication lines 37 and 38, respectively. Local ECUs 19 and 20 are connected to ports P4 and P5 of the switch 53 of the relay ECU 13 via local communication lines 39 and 40, respectively. Local ECUs 21 and 22 are connected to ports P4 and P5 of the switch 54 of the relay ECU 14 via local communication lines 41 and 42, respectively.

つまり、スイッチ51~54のポートP1~P5のうち、他のスイッチ51~54との接続に使用されていないポートP4,P5には、通信装置としてのECU15~22が接続されている。 That is, among ports P1-P5 of switches 51-54, ports P4 and P5 that are not used for connection with other switches 51-54 are connected to ECUs 15-22 as communication devices.

なお、以下の説明においては、スイッチ51~54のポートP1~P5のうち、他のスイッチ51~54との接続に用いられているポートP1~P3を、中継ポートともいう。また、中継ポートではないポートP4,P5のことを、通常ポートともいう。 In the following description, among the ports P1 to P5 of the switches 51 to 54, the ports P1 to P3 used for connection with other switches 51 to 54 are also referred to as relay ports. Ports P4 and P5, which are not relay ports, are also called normal ports.

ネットワークシステム1において、中継ポート間で通信されるフレームは、周知のイーサネットフレームである。また、ネットワークシステム1において、通常ポートにて通信されるフレームは、周知のCANフレームである。つまり、通常ポートP4,P5は、周知のCANモジュールとして機能を備え、ローカル通信線35~42は、周知のCANバスとして機能する。したがって、各スイッチ51~54は、イーサネットフレームとCANフレームとの間でプロトコル変換を行うゲートウェイとしての機能を有する。 In the network system 1, frames communicated between relay ports are well-known Ethernet frames. Also, in the network system 1, frames communicated through normal ports are well-known CAN frames. In other words, the normal ports P4 and P5 function as well-known CAN modules, and the local communication lines 35-42 function as well-known CAN buses. Therefore, each switch 51-54 has a function as a gateway for protocol conversion between Ethernet frames and CAN frames.

ここで、各スイッチ51~54のMACアドレステーブル73は、そのスイッチにおけるポートP1~P5の各々について、そのポートの先に接続されている装置のMACアドレスが登録されるテーブルである。 Here, the MAC address table 73 of each switch 51-54 is a table in which the MAC addresses of the devices connected to the ports P1-P5 of the switch are registered.

そして、各スイッチ51~54は、周知のMACアドレス学習機能によってMACアドレステーブル73を作成する。つまり、スイッチ51~54は、中継ポートP1~P3の何れかからフレームを受信すると、そのフレームを受信した中継ポートP1~P3の番号と、受信したフレームに含まれている送信元MACアドレスとを、対応付けてMACアドレステーブル73に登録する。 Each of the switches 51-54 creates a MAC address table 73 by a well-known MAC address learning function. That is, when the switches 51 to 54 receive a frame from one of the relay ports P1 to P3, the switches 51 to 54 transmit the number of the relay port P1 to P3 that received the frame and the source MAC address included in the received frame. , are registered in the MAC address table 73 in association with each other.

なお、MACアドレステーブル73には、通常ポートP4,P5に接続される装置についてのMACアドレスが予め記録されている。また、MACアドレステーブル73又は他の任意のテーブルには、CANフレームに含まれるCANIDと送信先の装置とが対応付けられている。スイッチ51~54は、これらのテーブルを参照すれば、受信したCANフレーム及びイーサネットフレームの転送先のポートP1~P5を特定することができるように構成される。 Note that the MAC address table 73 stores in advance the MAC addresses of the devices normally connected to the ports P4 and P5. Also, in the MAC address table 73 or any other table, the CANID contained in the CAN frame is associated with the destination device. The switches 51 to 54 are configured so as to identify the ports P1 to P5 to which received CAN frames and Ethernet frames are transferred by referring to these tables.

つまり、各スイッチ51~54は、下記のフレーム転送機能を有する。まず、各スイッチ51~54は、通常ポートP4,P5からCANフレームを受けると、CANIDと送信先の装置とが対応付けられたテーブルを参照することによって、CANフレームを他のポートに中継すべきか否かを判定する。そして、中継すべき場合には、MACアドレステーブル73を参照して送信先の装置のMACアドレスを特定し、このフレームの転送先のポートP1~P5を決定する。転送先のポートが中継ポートP1~P3である場合、CANフレームをイーサネットフレームに変換して送信する。 That is, each of the switches 51-54 has the following frame forwarding functions. First, when each of the switches 51 to 54 receives the CAN frame from the normal ports P4 and P5, it determines whether the CAN frame should be relayed to another port by referring to the table in which the CANID and the destination device are associated. determine whether or not If the frame should be relayed, the MAC address table 73 is referenced to specify the MAC address of the destination device, and the ports P1 to P5 to which the frame is to be transferred are determined. When the transfer destination ports are the relay ports P1 to P3, the CAN frame is converted into an Ethernet frame and transmitted.

また、各スイッチ51~54は、中継ポートP1~P3の何れかからフレームが受信されると、受信されたフレームである受信フレームに含まれる宛先MACアドレスと、MACアドレステーブル73とに基づいて、受信フレームの転送先のポートP1~P5を決定する。転送先のポートが通常ポートP4,P5である場合、イーサネットフレームをCANフレームに変換して送信する。 Further, when each of the switches 51 to 54 receives a frame from any of the relay ports P1 to P3, based on the destination MAC address included in the received frame, which is the received frame, and the MAC address table 73, Ports P1 to P5 to which received frames are to be transferred are determined. When the transfer destination ports are the normal ports P4 and P5, the Ethernet frame is converted into a CAN frame and transmitted.

このようなネットワークシステム1において、何れかのスイッチの各中継ポートP1~P3から、他のスイッチの通常ポートP4,P5の先に接続されているECUを宛先とするフレームが送信されると、そのフレームは上記他のスイッチの各中継ポートP1~P3に入力される。 In such a network system 1, when a frame addressed to an ECU connected ahead of the normal ports P4 and P5 of another switch is transmitted from each of the relay ports P1 to P3 of one of the switches, Frames are input to relay ports P1 to P3 of the other switches.

また、各スイッチ51~54は、時刻同期回路82を備える。時刻同期回路82は、時刻同期プロトコル等を用いて、互いに時刻について同期させる機能を有する。この構成により、各スイッチ51~54は、それぞれ同じ時刻を指定されれば、その時刻に、同時にフレームを送信することができる。 Also, each of the switches 51 to 54 has a time synchronization circuit 82 . The time synchronization circuit 82 has a function of synchronizing the time with each other using a time synchronization protocol or the like. With this configuration, each of the switches 51 to 54 can transmit frames at the same time if the same time is specified.

なお、本実施形態では、ハードウェアとしての時刻同期回路82を備えるが、この機能をソフトウェアにて実現してもよい。この場合、時刻同期回路82は不要であり、通信制御部81又はマイコン61~64等が時刻同期回路82の機能を備えるとよい。 In this embodiment, the time synchronization circuit 82 is provided as hardware, but this function may be realized by software. In this case, the time synchronization circuit 82 is unnecessary, and the communication control unit 81 or the microcomputers 61 to 64 or the like should have the function of the time synchronization circuit 82 .

[2-2.処理]
ここでは、中継ECU11に接続された送信側のローカルECU15から、中継ECU12及び中継ECU13に接続された受信側の複数の通信装置であるローカルECU37,39対してフレームを送信する例について説明する。なお、以下では、送信側のローカルECU15が接続された中継ECU11を、送信側の中継ECU11とも表記し、受信側の複数のローカルECU37,39が接続された中継ECU12,13を、受信側の中継ECU11とも表記する。
[2-2. process]
Here, an example in which the local ECU 15 on the transmitting side connected to the relay ECU 11 transmits frames to the local ECUs 37 and 39 on the receiving side, which are a plurality of communication devices connected to the relay ECU 12 and the relay ECU 13, will be described. In the following description, the relay ECU 11 to which the local ECU 15 on the transmission side is connected is also referred to as the relay ECU 11 on the transmission side, and the relay ECUs 12 and 13 to which the plurality of local ECUs 37 and 39 on the reception side are connected are referred to as relay ECUs 12 and 13 on the reception side. It is also written as ECU11.

図2に示すように、送信側の中継ECU11は、送信側のローカルECU15からフレームを受けると、時刻t1にて、CANバスへの送信時刻である時刻t2を指定したフレームを受信側の中継ECU12に送信する。その後、送信側の中継ECU11は、時刻情報として、時刻t2を指定した同様のフレームを受信側の中継ECU13に送信する。このとき、時刻t2は、送信側の中継ECU11がフレームを受信側の中継ECU13に送信するまでに、送信側の中継ECU11に割込処理が発生したとしても、その割込処理の終了後にフレームを受信側の中継ECU13に送信すれば、時刻t2に間に合うように設定される。時刻t2は、後述する送信時刻である。 As shown in FIG. 2, when the relay ECU 11 on the transmission side receives a frame from the local ECU 15 on the transmission side, at time t1, the relay ECU 11 on the reception side transmits the frame designating time t2, which is the transmission time to the CAN bus, to the relay ECU 12 on the reception side. Send to After that, the relay ECU 11 on the transmission side transmits a similar frame designating the time t2 as the time information to the relay ECU 13 on the reception side. At this time, even if an interrupt process occurs in the transmitting relay ECU 11 before the relay ECU 11 on the transmitting side transmits the frame to the relay ECU 13 on the receiving side, the frame is transmitted after the interrupt process ends. If it is transmitted to the relay ECU 13 on the receiving side, it is set in time for time t2. Time t2 is a transmission time, which will be described later.

この構成では、受信側の中継ECU12,13が、時刻t2までにフレームを受信できれば、このフレームは、時刻t2にて、受信側のローカルECU37,39が接続された複数のCANバス、つまり通常ポートP4にて同時に送信される。 In this configuration, if the relay ECUs 12 and 13 on the receiving side can receive the frame by time t2, the frame is transferred at time t2 to a plurality of CAN buses to which the local ECUs 37 and 39 on the receiving side are connected, i.e., normal ports. They are transmitted simultaneously on P4.

このような作動を実現するための、各中継ECU11~13の作動について以下に詳述する。まず、送信側の中継ECU11が実行する送信側処理について、図3のフローチャートを用いて説明する。送信側処理は、CANモジュール、すなわち、通常ポートP4,P5からフレームの受信を開始すると開始される処理である。 The operation of each of the relay ECUs 11 to 13 for realizing such operations will be described in detail below. First, the transmission-side processing executed by the relay ECU 11 on the transmission side will be described with reference to the flowchart of FIG. The transmission-side processing is processing that starts when frames start to be received from the CAN module, that is, from the normal ports P4 and P5.

送信側処理では、まず、S110で、中継ECU11は、CANモジュールからフレームを受信する。続いて、S120で、中継ECU11は、受信したフレームが同時性を必要とするフレームであるか否かを判定する。同時性を必要とするフレームとは、複数の受信側の通信装置を宛先とするフレームであって、異なるCANバスにおいて同時に送信されることが好ましいフレームを示す。 In the transmission side process, first, in S110, the relay ECU 11 receives a frame from the CAN module. Subsequently, in S120, the relay ECU 11 determines whether or not the received frame requires synchronism. A frame requiring synchronicity refers to a frame destined for a plurality of receiving communication devices and preferably transmitted on different CAN buses at the same time.

同時性を必要とするフレームであるか否かについては、フレームのペイロードのうちの予め設定された部位を参照すれば認識できるように構成されている。ただし、フレームのヘッダを参照すれば同時性を必要とするフレームであるか否かを認識できるように構成されてもよい。 Whether or not a frame requires synchronism can be recognized by referring to a preset portion in the payload of the frame. However, it may be configured such that whether or not the frame requires synchronism can be recognized by referring to the header of the frame.

詳細には、例えば、メモリ71における同時性テーブル75に、同時性を必要とするフレームを特定するためのデータの種別等の情報が予め記述されており、フレームが同時性テーブル75に記述された種別等である場合に、各中継ECU11~13は、同時性を必要とするフレームであると判定する。 More specifically, for example, the synchronicity table 75 in the memory 71 pre-describes information such as the type of data for identifying frames that require synchronism, and the frames are described in the simultaneity table 75 . If the frame is of type or the like, each of the relay ECUs 11 to 13 determines that the frame requires synchronism.

中継ECU11は、S120でフレームが同時性を必要とするデータでないと判定した場合には、S130へ移行し、通常の送信処理を実施する。通常の送信処理とは、受信側の中継ECU11~14に対して、時刻情報を含めることなく単に受信したフレームを中継することを示す。この処理の後、送信側処理を終了する。 When the relay ECU 11 determines in S120 that the frame is not data that requires synchronism, the relay ECU 11 proceeds to S130 and performs normal transmission processing. The normal transmission processing indicates that the received frame is simply relayed without including the time information to the relay ECUs 11 to 14 on the receiving side. After this process, the sender process ends.

一方、中継ECU11は、S120でフレームが同時性を必要とするデータであると判定した場合には、S140へ移行し、時刻同期回路82から得られる情報に基づいて現在時刻を取得する。 On the other hand, when the relay ECU 11 determines in S120 that the frame is data that requires synchronism, the relay ECU 11 proceeds to S140 and acquires the current time based on the information obtained from the time synchronization circuit 82 .

続いて、S150で、中継ECU11は、送信時刻を算出する。送信時刻は、現在時刻+αとして求められる。αは、予め演算又は実験的に求められた設計上の最大遅延時間である。 Subsequently, in S150, the relay ECU 11 calculates the transmission time. The transmission time is obtained as the current time+α. α is a design maximum delay time calculated or experimentally determined in advance.

続いて、S160で、中継ECU11は、送信時刻が含まれる時刻情報をフレームに含めた新たなフレームを生成する。新たなフレームには、送信側のローカルECU15から受信した中継すべきデータと、時刻情報とが含まれる。中継ECU11は、ネットワーク通信線29~34を介して、このフレームを受信側の中継ECU12,13に送信した後、図3の送信側処理を終了する。 Subsequently, in S160, the relay ECU 11 generates a new frame including time information including the transmission time. The new frame includes data to be relayed received from the local ECU 15 on the transmission side and time information. After transmitting this frame to the relay ECUs 12 and 13 on the receiving side via the network communication lines 29 to 34, the relay ECU 11 terminates the processing on the transmitting side in FIG.

次に、受信側の中継ECU12,13がそれぞれ実行する受信側処理について、図4のフローチャートを用いて説明する。受信側処理は、中継ポートP1~P3の何れかからフレームの受信を開始すると開始される処理である。 Next, the reception-side processing executed by the relay ECUs 12 and 13 on the reception side will be described with reference to the flowchart of FIG. The reception-side processing is processing that starts when frame reception is started from any of the relay ports P1 to P3.

受信側処理では、まず、S210で、受信側の中継ECU12,13は、送信側の中継ECU11からフレームを受信する。続いて、S220で、中継ECU12,13は、受信したフレームが同時性を必要とするデータであるか否かを判定する。 In the processing on the receiving side, first, in S210, the relay ECUs 12 and 13 on the receiving side receive frames from the relay ECU 11 on the transmitting side. Subsequently, in S220, the relay ECUs 12 and 13 determine whether or not the received frame is data that requires synchronism.

中継ECU12,13は、S220で同時性を必要とするデータでないと判定した場合には、S230へ移行し、通常の受信処理を実施した後、図4の受信側処理を終了する。一方、中継ECU12,13は、S220で同時性を必要とするデータであると判定した場合には、S240へ移行し、受信したフレームをバッファ79に格納する。 If the relay ECUs 12 and 13 determine in S220 that the data does not require simultaneity, they proceed to S230, perform normal reception processing, and then terminate the reception side processing in FIG. On the other hand, when the relay ECUs 12 and 13 determine in S220 that the data requires simultaneity, the process proceeds to S240 and stores the received frame in the buffer 79. FIG.

続いて、S250で、中継ECU12,13は、受信したフレームから時刻情報を抽出し、時刻情報に含まれる送信時刻にタイマを設定した後、図4の受信側処理を終了する。
次に、受信側の中継ECU12,13が実行する同期処理について、図5のフローチャートを用いて説明する。同期処理は、送信時刻になったとき、すなわち、受信側の中継ECU12,13において、受信側処理で設定されたタイマが満了すると開始される処理である。
Subsequently, in S250, the relay ECUs 12 and 13 extract the time information from the received frame, set the timer to the transmission time included in the time information, and then terminate the receiving side processing of FIG.
Synchronization processing executed by the relay ECUs 12 and 13 on the receiving side will now be described with reference to the flowchart of FIG. Synchronization processing is processing that is started when the transmission time comes, that is, when the timer set in the reception side processing expires in the relay ECUs 12 and 13 on the reception side.

同期処理では、まず、S310で、中継ECU12,13は、タイマが満了したことを確認する。続いて、S320で、中継ECU12,13は、CANモジュール、すなわち通常ポートP4,P5にフレームを引き渡し、通常ポートP4,P5がフレームを送信すると、図5の同期処理を終了する。 In the synchronization process, first, at S310, the relay ECUs 12 and 13 confirm that the timer has expired. Subsequently, in S320, the relay ECUs 12 and 13 deliver the frame to the CAN module, that is, the normal ports P4 and P5, and when the normal ports P4 and P5 transmit the frame, the synchronization processing in FIG. 5 ends.

[2-3.効果]
以上詳述した第1実施形態によれば、以下の効果を奏する。
(2a)本開示の一態様は、複数の中継ECU11~14を互いに通信可能に接続するネットワーク通信線29~34で接続された複数の中継ECU11~14を備えるネットワークシステム1である。複数の中継ECU11~14のそれぞれには、ネットワーク通信線29~34以外のローカル通信線35~42を介して少なくとも1つのローカルECU15~22が接続されている。複数の中継ECU11~14は、時刻について同期しており、かつ複数の中継ECU11~14のうちの送信側の中継ECU11から、送信側の中継ECU11以外の複数の受信側の中継ECU12,13にデータを中継するように構成される。
[2-3. effect]
According to 1st Embodiment detailed above, there exist the following effects.
(2a) One aspect of the present disclosure is a network system 1 including a plurality of relay ECUs 11 to 14 connected by network communication lines 29 to 34 that connect the plurality of relay ECUs 11 to 14 so as to be able to communicate with each other. At least one local ECU 15-22 is connected to each of the relay ECUs 11-14 via local communication lines 35-42 other than the network communication lines 29-34. The plurality of relay ECUs 11 to 14 are synchronized with respect to time, and data is transmitted from the transmission side relay ECU 11 among the plurality of relay ECUs 11 to 14 to the plurality of reception side relay ECUs 12 and 13 other than the transmission side relay ECU 11. configured to relay the

送信側の中継ECU11は、S110で、ローカル通信線35~42から、複数の受信側の中継ECU12,13に接続された2以上のローカルECU15~22を宛先とするデータを受信するように構成される。また、S160で、複数の受信側の中継ECU12,13がデータを送信すべき時刻を示す送信時刻を含む時刻情報を、受信したデータとともに、ネットワーク通信線29~34を介して複数の受信側の中継ECU12,13に送信するように構成される。 The relay ECU 11 on the transmitting side is configured to receive data destined for two or more local ECUs 15 to 22 connected to the relay ECUs 12 and 13 on the receiving side from the local communication lines 35 to 42 in S110. be. In addition, in S160, time information including a transmission time indicating the time at which data should be transmitted by the relay ECUs 12 and 13 on the receiving side is sent to the plurality of receiving sides via the network communication lines 29 to 34 together with the received data. It is configured to transmit to relay ECUs 12 and 13 .

複数の受信側の中継ECU12,13は、S210,S320で、ネットワーク通信線29~34を介して時刻情報及びデータを受信し、時刻情報にて指示された時刻にローカル通信線35~42にデータを送信するように構成される。 The relay ECUs 12 and 13 on the receiving side receive the time information and data via the network communication lines 29 to 34 in S210 and S320, and transmit the data to the local communication lines 35 to 42 at the time indicated by the time information. is configured to send

このような構成によれば、複数の受信側の中継ECU12,13に接続された2以上のローカルECU15~22に対して、複数の受信側の中継ECU12,13が同時にデータを送信することができる。よって、2以上のローカルECU15~22による制御タイミングのずれを抑制することができる。 According to such a configuration, a plurality of receiving-side relay ECUs 12, 13 can simultaneously transmit data to two or more local ECUs 15-22 connected to a plurality of receiving-side relay ECUs 12, 13. . Therefore, it is possible to suppress deviation of control timing by two or more local ECUs 15-22.

[3.第2実施形態]
[3-1.第1実施形態との相違点]
第2実施形態は、基本的な構成は第1実施形態と同様であるため、相違点について以下に説明する。なお、第1実施形態と同じ符号は、同一の構成を示すものであって、先行する説明を参照する。
[3. Second Embodiment]
[3-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.

前述した第1実施形態では、送信側となる中継ECU11が時刻情報を生成するように構成した。つまり、送信側となる中継ECU11~14が一定でない場合、それぞれの中継ECU11~14が時刻情報を生成する。これに対し、第2実施形態では、マスタECUのみが時刻情報を生成する点で、第1実施形態と相違する。 In 1st Embodiment mentioned above, it comprised so that relay ECU11 used as a transmission side might produce|generate time information. In other words, when the relay ECUs 11 to 14 on the transmission side are not constant, the respective relay ECUs 11 to 14 generate time information. In contrast, the second embodiment differs from the first embodiment in that only the master ECU generates time information.

[3-2.処理]
第2実施形態では、中継ECU14がマスタECUに設定されているものとし、中継ECU14を制御側の中継ECU14とも表記する。第2実施形態では、第1実施形態と同様に、送信側のローカルECU15から、受信側のローカルECU37,39対してフレームを送信する例について説明する。
[3-2. process]
In the second embodiment, it is assumed that the relay ECU 14 is set as the master ECU, and the relay ECU 14 is also referred to as the control-side relay ECU 14 . In the second embodiment, as in the first embodiment, an example in which a frame is transmitted from the local ECU 15 on the transmission side to the local ECUs 37 and 39 on the reception side will be described.

第2実施形態では、図6に示すような手順でフレームが送信される。詳細には、まず、送信側の中継ECU11は、時刻t1にて、フレームを受信すると、上述の時刻情報に換えて、通知指令をフレームに含めて、受信側の中継ECU12,13に順に送信する。ECU12,13は、通知指令に対応する受信通知を、制御側の中継ECU14にそれぞれ送信する。 In the second embodiment, frames are transmitted according to the procedure shown in FIG. Specifically, first, when relay ECU 11 on the transmitting side receives a frame at time t1, instead of the time information described above, relay ECU 11 includes a notification command in the frame and transmits the frame to relay ECUs 12 and 13 on the receiving side in order. . The ECUs 12 and 13 each transmit a reception notification corresponding to the notification command to the relay ECU 14 on the control side.

ここで、受信通知テーブル77には、予め受信通知の種別と、この受信通知を送信すべき複数の受信側の中継ECU12,13との関係が対応付けて記録されている。制御側の中継ECU14は、受信通知テーブル77を参照して、受信通知の種別に対応する受信側の中継ECU12,13から全ての受信通知が収集できたか否かを判定する。そして、収集できていれば、送信時刻をt5とする時刻情報を生成して、受信側の中継ECU12,13に、順に送信する。受信側の中継ECU12に時刻情報を送信する時刻をt3、受信側の中継ECU13に時刻情報を送信する時刻をt4とすると、送信時刻t5は、t3及びt4より後になるように設定される。 Here, in the reception notification table 77, the type of reception notification is recorded in advance in association with the plurality of relay ECUs 12 and 13 on the receiving side to which the reception notification is to be transmitted. The control-side relay ECU 14 refers to the reception notification table 77 and determines whether or not all reception notifications have been collected from the reception-side relay ECUs 12 and 13 corresponding to the reception notification type. Then, if it has been collected, it generates time information with a transmission time of t5, and transmits it to the relay ECUs 12 and 13 on the receiving side in order. Assuming that the time to transmit the time information to the relay ECU 12 on the receiving side is t3 and the time to transmit the time information to the relay ECU 13 on the receiving side is t4, the transmission time t5 is set after t3 and t4.

複数の受信側の中継ECU12,13は、送信時刻t5になると、通常ポートP4,P5からフレームを送信する。なお、制御側の中継ECU14は、受信側の中継ECU12,13の何れかから受信通知を受信できない場合、異常であると認識し、受信通知をクリアしてもよいし、そのまま待機してもよい。 A plurality of relay ECUs 12 and 13 on the receiving side transmit frames from normal ports P4 and P5 at transmission time t5. If the relay ECU 14 on the control side cannot receive the reception notification from either of the relay ECUs 12 and 13 on the reception side, it may recognize that there is an abnormality and clear the reception notification, or may wait as it is. .

このような作動を実現するための、各中継ECU11~14の作動について以下に詳述する。まず、送信側の中継ECU11が実行する送信側処理について、図7のフローチャートを用いて説明する。第2実施形態の送信側処理では、第1実施形態の送信側処理におけるS140~S160の処理に換えて、S170の処理を実施する。 The operation of each of the relay ECUs 11 to 14 for realizing such operations will be described in detail below. First, the transmission-side processing executed by the relay ECU 11 on the transmission side will be described with reference to the flowchart of FIG. In the transmission side processing of the second embodiment, the processing of S170 is performed instead of the processing of S140 to S160 in the transmission side processing of the first embodiment.

すなわち、送信側の中継ECU11は、S120で受信したフレームが同時性を必要とするデータであると判定した場合には、S170へ移行し、受信側の中継ECU12,13に、中継するデータと通知指令とを含むフレームを送信する。通知指令は、制御側の中継ECU14にフレームを受信した旨の受信通知を送信させるための指令である。 That is, when the relay ECU 11 on the transmitting side determines in S120 that the received frame is data that requires synchronism, it proceeds to S170 and notifies the relay ECUs 12 and 13 on the receiving side of the data to be relayed. Send a frame containing a command. The notification command is a command for causing the relay ECU 14 on the control side to transmit a reception notification indicating that the frame has been received.

次に、第2実施形態の受信側処理について、図8のフローチャートを用いて説明する。第2実施形態の受信側処理では、S220で、同時性を必要とするフレームであるか否かを判定する際に、フレームに通知指令が含まれるか否かを判定し、通知指令が含まれる場合に、同時性を必要とするフレームであると判定してもよい。 Next, the reception side processing of the second embodiment will be described using the flowchart of FIG. In the receiving-side processing of the second embodiment, when determining whether or not the frame requires synchronism in S220, it is determined whether or not the frame contains a notification command. frame, it may be determined that the frame requires synchronism.

また、第2実施形態の受信側処理では、第1実施形態の受信側処理におけるS250の処理に換えて、S260の処理を実施する。すなわち、S260で、受信側の中継ECU12,13は、制御側の中継ECU14に受信通知を送信する。 Further, in the reception side processing of the second embodiment, the processing of S260 is performed instead of the processing of S250 in the reception side processing of the first embodiment. That is, in S260, the relay ECUs 12 and 13 on the receiving side transmit a reception notification to the relay ECU 14 on the controlling side.

次に、制御側の中継ECU14が実行する時刻設定処理について、図9のフローチャートを用いて説明する。時刻設定処理は、受信通知を受信すると開始される処理である。
時刻設定処理では、まず、S410で、制御側の中継ECU14は、受信側の中継ECU12,13から受信通知を受信する。続いて、S420で、制御側の中継ECU14は、受信側の中継ECU12,13からの受信通知が全て揃ったか否かを判定する。この際、制御側の中継ECU14は、上述の受信通知テーブル77を参照して、受信通知に対応する受信側の中継ECU12,13を特定する。
Next, the time setting process executed by the relay ECU 14 on the control side will be described with reference to the flowchart of FIG. The time setting process is a process that is started when a reception notification is received.
In the time setting process, first, in S410, the relay ECU 14 on the control side receives reception notifications from the relay ECUs 12 and 13 on the reception side. Subsequently, in S420, the control-side relay ECU 14 determines whether or not all reception notifications from the reception-side relay ECUs 12 and 13 have been received. At this time, the control-side relay ECU 14 refers to the above-described reception notification table 77 to specify the reception-side relay ECUs 12 and 13 corresponding to the reception notification.

続いて、制御側の中継ECU14は、S420で、受信側の中継ECU12,13からの受信通知が揃っていないと判定した場合には、S430へ移行し、受信通知の送信元となる受信側の中継ECU12,13をバッファ79に記憶した後、図9の時刻設定処理を終了する。 Subsequently, if the relay ECU 14 on the control side determines in S420 that the reception notifications from the relay ECUs 12 and 13 on the reception side are not complete, it proceeds to S430 and After the relay ECUs 12 and 13 are stored in the buffer 79, the time setting process of FIG. 9 ends.

一方、制御側の中継ECU14は、S420で受信側の中継ECU12,13からの受信通知が全て揃ったと判定した場合には、S440へ移行し、時刻同期回路82からの情報に基づいて現在時刻を取得する。続いて、S450で、制御側の中継ECU14は、送信時刻を算出する。送信時刻は、前述のS150と同様にして求めるとよい。 On the other hand, if the relay ECU 14 on the control side determines in S420 that all reception notifications from the relay ECUs 12 and 13 on the receiving side have been received, the process proceeds to S440, and based on the information from the time synchronization circuit 82, the current time is calculated. get. Subsequently, in S450, the control-side relay ECU 14 calculates the transmission time. The transmission time may be obtained in the same manner as in S150 described above.

続いて、S460で、制御側の中継ECU14は、送信時刻が含まれる時刻情報を受信側の中継ECU12,13に送信した後、図9の時刻設定処理を終了する。
次に、受信側の中継ECU12,13が実行するタイマ設定処理について、図10のフローチャートを用いて説明する。タイマ設定処理は、時刻情報を受信すると開始される処理である。
Subsequently, in S460, the control-side relay ECU 14 transmits time information including the transmission time to the reception-side relay ECUs 12 and 13, and then terminates the time setting process of FIG.
Next, the timer setting process executed by the relay ECUs 12 and 13 on the receiving side will be described with reference to the flowchart of FIG. The timer setting process is a process started when time information is received.

タイマ設定処理では、まず、S510で、受信側の中継ECU12,13は、時刻情報を受信する。続いて、S520で、受信側の中継ECU12,13は、送信時刻にタイマ設定する。その後、図10のタイマ設定処理を終了する。 In the timer setting process, first, in S510, the relay ECUs 12 and 13 on the receiving side receive time information. Subsequently, in S520, the relay ECUs 12 and 13 on the receiving side set a timer at the transmission time. After that, the timer setting process of FIG. 10 ends.

なお、受信側の中継ECU12,13は、図5に示す同期処理を実施し、送信時刻になるとフレームを送信する。
[3-3.効果]
以上詳述した第2実施形態によれば、前述した第1実施形態の効果(2a)を奏し、さらに、以下の効果を奏する。
The relay ECUs 12 and 13 on the receiving side perform the synchronization processing shown in FIG. 5, and transmit the frame at the transmission time.
[3-3. effect]
According to the second embodiment described in detail above, the effect (2a) of the first embodiment described above is obtained, and the following effect is obtained.

(3a)本開示の一態様は、複数の中継ECU11~14の少なくとも一部に、データの送信時刻を管理するように構成された制御側の中継ECU14を備える。送信側の中継ECU11は、S170で、時刻情報に換えて、予め設定された通知指令を、データとともに、ネットワーク通信線29~34を介して複数の受信側の中継ECU12,13に送信するように構成される。 (3a) In one aspect of the present disclosure, at least some of the plurality of relay ECUs 11 to 14 include a control-side relay ECU 14 configured to manage data transmission times. In S170, the relay ECU 11 on the transmission side transmits a preset notification command together with data instead of the time information to the plurality of relay ECUs 12 and 13 on the reception side via the network communication lines 29-34. Configured.

また、複数の受信側の中継ECU12,13は、S260で、通知指令を受けると、制御側の中継ECU14に受信通知を送信するように構成される。そして、制御側の中継ECU14は、S410で、複数の受信側の中継ECU12,13から受信通知を受信するように構成される。また、S450,S460で、受信通知を受けると、時刻情報を生成し、時刻情報を複数の受信側の中継ECU12,13に送信するように構成される。 Further, the plurality of receiving-side relay ECUs 12 and 13 are configured to transmit a reception notification to the controlling-side relay ECU 14 upon receiving a notification command in S260. Then, the control-side relay ECU 14 is configured to receive reception notifications from the plurality of reception-side relay ECUs 12 and 13 in S410. Further, in S450 and S460, when the reception notification is received, time information is generated and the time information is transmitted to a plurality of relay ECUs 12 and 13 on the receiving side.

このような構成によれば、制御側の中継ECU14は、受信通知を送信した複数の受信側の中継ECU12,13を特定し、複数の受信側の中継ECU12,13から受信通知を受けた時刻、中継ECU12,13が有する機能等に応じて、時刻情報を生成することができる。よって、制御側の中継ECU14は、適切な時刻情報を生成することができ、また、時刻情報を生成する構成を、制御側の中継ECU14に集約させることができる。 According to such a configuration, the control-side relay ECU 14 identifies the plurality of reception-side relay ECUs 12 and 13 that have transmitted the reception notification, and receives the reception notification from the plurality of reception-side relay ECUs 12 and 13. Time information can be generated according to the functions etc. of the relay ECUs 12 and 13 . Therefore, the relay ECU 14 on the control side can generate appropriate time information, and the configuration for generating the time information can be integrated into the relay ECU 14 on the control side.

[4.第3実施形態]
[4-1.第2実施形態との相違点]
前述した第2実施形態では、機器の配置を最適化することで中継ECUが増加し、引き渡し要求の収集に要する遅延時間が当初の想定より大きくなった場合や、経路異常等によって遅延時間が生じる場合等を考慮することなく送信時刻を設定した。これに対し、第3実施形態では、遅延時間を確認し、遅延時間を考慮して送信時刻を設定する点で、第2実施形態と相違する。
[4. Third Embodiment]
[4-1. Difference from Second Embodiment]
In the above-described second embodiment, the number of relay ECUs is increased by optimizing the arrangement of devices, and when the delay time required to collect handover requests becomes longer than initially expected, or due to path abnormalities, etc., delay time occurs. The transmission time was set without considering the circumstances. In contrast, the third embodiment differs from the second embodiment in that the delay time is confirmed and the transmission time is set in consideration of the delay time.

なお、何れかのネットワーク通信線29~34に異常が生じ、異常が生じたネットワーク通信線29~34を避けて迂回通信を行う場合、ネットワーク通信線29~34上に他の中継装置を動的に追加するような場合、等においても、予期せぬ遅延時間が発生する場合がある。本実施形態では、このような予期せぬ遅延時間の増加にも対応して送信時刻を設定できる。 If an abnormality occurs in any of the network communication lines 29 to 34 and detour communication is performed by avoiding the network communication lines 29 to 34 in which the abnormality has occurred, another relay device is dynamically installed on the network communication lines 29 to 34. Unexpected delay time may also occur in cases such as adding to . In this embodiment, the transmission time can be set in response to such an unexpected increase in delay time.

[3-2.処理]
第3実施形態では、図11に示すような手順でフレームが送信される。詳細には、まず、送信側の中継ECU11は、時刻t1にて、フレームを受信すると、通知指令をフレームに含めて、受信側のECU12,13に送信する。受信側の中継ECU12,13は、通知指令に対応する受信通知を制御側の中継ECU14にそれぞれ送信する。
[3-2. process]
In the third embodiment, frames are transmitted according to the procedure shown in FIG. Specifically, first, when relay ECU 11 on the transmitting side receives a frame at time t1, relay ECU 11 includes a notification command in the frame and transmits the frame to ECUs 12 and 13 on the receiving side. The relay ECUs 12 and 13 on the receiving side each transmit a reception notification corresponding to the notification command to the relay ECU 14 on the control side.

続いて、制御側の中継ECU14は、受信側の中継ECU12,13に対して確認情報を送信する。そして、受信側の中継ECU12,13は、確認情報を受信した時刻である受信時刻と、確認情報に対する応答である応答情報と、を制御側の中継ECU14に送信する。 Subsequently, the relay ECU 14 on the control side transmits confirmation information to the relay ECUs 12 and 13 on the receiving side. Then, the relay ECUs 12 and 13 on the receiving side transmit the reception time, which is the time when the confirmation information is received, and the response information, which is a response to the confirmation information, to the relay ECU 14 on the control side.

経路異常がない場合、制御側の中継ECU14が確認情報を送信する時刻t7と受信側の中継ECU12,13が応答情報を送信する時刻t8との差は僅かである。しかし、経路異常がある場合には、例えば、図11に示す時刻t9と時刻t7との差のように、この差が大きくなる。 When there is no path abnormality, the difference between the time t7 at which the relay ECU 14 on the control side transmits the confirmation information and the time t8 at which the relay ECUs 12 and 13 on the receiving side transmit the response information is very small. However, if there is a path abnormality, this difference becomes large, like the difference between time t9 and time t7 shown in FIG. 11, for example.

そこで、制御側の中継ECU14は、この差を遅延時間として測定し、遅延時間を加味して送信時刻t5Aを設定する。送信時刻t5Aは、遅延時間を加味しない送信時刻t5に、遅延時間を加算した値である。 Therefore, the relay ECU 14 on the control side measures this difference as a delay time, and sets the transmission time t5A in consideration of the delay time. The transmission time t5A is a value obtained by adding the delay time to the transmission time t5 not including the delay time.

複数の受信側の中継ECU12,13は、送信時刻t5Aになると、通常ポートP4,P5からフレームを送信する。
このような作動を実現するための、各中継ECU11~14の作動について以下に詳述する。なお、第3実施形態において、同期処理(図5)、送信側処理(図7)、受信側処理(図8)、タイマ設定処理(図10)は、第2実施形態と同様である。
A plurality of relay ECUs 12 and 13 on the receiving side transmit frames from normal ports P4 and P5 at transmission time t5A.
The operation of each of the relay ECUs 11 to 14 for realizing such operations will be described in detail below. In the third embodiment, synchronization processing (FIG. 5), transmission side processing (FIG. 7), reception side processing (FIG. 8), and timer setting processing (FIG. 10) are the same as in the second embodiment.

まず、制御側の中継ECU14が実行する時刻設定処理について、図12のフローチャートを用いて説明する。図9に示す第2実施形態の時刻設定処理と同様に、制御側の中継ECU14は、S410、S420、S430の処理を実施する。制御側の中継ECU14は、S420で受信側の中継ECU12,13からの受信通知が揃っていないと判定した場合には、S470へ移行し、経路異常タイマをセットする。 First, the time setting process executed by the relay ECU 14 on the control side will be described with reference to the flowchart of FIG. Similarly to the time setting process of the second embodiment shown in FIG. 9, the relay ECU 14 on the control side performs the processes of S410, S420, and S430. If the relay ECU 14 on the control side determines in S420 that the reception notifications from the relay ECUs 12 and 13 on the receiving side are not complete, the process proceeds to S470 and sets the path abnormality timer.

続いて、S480で、制御側の中継ECU14は、経路異常確認のための確認情報を各受信側の中継ECU12,13に送信し、確認情報を送信した時刻である確認時刻をバッファ79等に記憶する。その後、図12の時刻設定処理を終了する。 Subsequently, in S480, the relay ECU 14 on the control side transmits confirmation information for confirming the path abnormality to each of the relay ECUs 12 and 13 on the receiving side, and stores the confirmation time, which is the time when the confirmation information was transmitted, in the buffer 79 or the like. do. After that, the time setting process of FIG. 12 ends.

次に、受信側の中継ECU12,13が実行する確認応答処理について、図13のフローチャートを用いて説明する。確認応答処理は、確認情報を受信すると開始される。
まず、S610で、受信側の中継ECU12,13は、制御側の中継ECU14から確認情報を受信する。この際、確認情報の受信時刻をバッファ79等に記録する。続いて、S620で、受信側の中継ECU12,13は、確認情報の受信時刻を含む応答情報を制御側の中継ECU14に送信する。その後、図13の確認応答処理を終了する。
Next, acknowledgment processing executed by the relay ECUs 12 and 13 on the receiving side will be described with reference to the flowchart of FIG. Acknowledgment processing is initiated upon receipt of confirmation information.
First, in S610, the relay ECUs 12 and 13 on the receiving side receive confirmation information from the relay ECU 14 on the control side. At this time, the reception time of the confirmation information is recorded in the buffer 79 or the like. Subsequently, in S620, the relay ECUs 12 and 13 on the receiving side transmit response information including the reception time of the confirmation information to the relay ECU 14 on the control side. After that, the acknowledgment processing of FIG. 13 ends.

次に、制御側の中継ECU14が実行する時刻設定処理について、図14のフローチャートを用いて説明する。時刻設定処理は、応答情報を受信すると開始される。
時刻設定処理では、まず、S710で、制御側の中継ECU14は、応答情報を受信する。続いて、S720で、制御側の中継ECU14は、経路異常タイマが満了しているか否かを判定する。本実施形態では、複数回の確認情報を送信し、これらに対する複数回の応答情報を受信するため、タイマが満了したか否かは、確認情報の送信回数に対応して確認情報の送信毎に判定する。
Next, the time setting process executed by the relay ECU 14 on the control side will be described with reference to the flowchart of FIG. The time setting process is started when response information is received.
In the time setting process, first, in S710, the relay ECU 14 on the control side receives response information. Subsequently, in S720, the control-side relay ECU 14 determines whether or not the path abnormality timer has expired. In this embodiment, confirmation information is transmitted multiple times and response information is received multiple times. judge.

制御側の中継ECU14は、S720で経路異常タイマが満了していないと判定した場合には、S780で、制御側の中継ECU14は、受信側の中継ECU12,13からの応答情報が全て揃ったか否かを判定する。なお、この処理では、確認情報の送信回数毎に判定する。この際、前述のS420と同様に、制御側の中継ECU14は、上述の受信通知テーブル77を参照して、応答情報に対応する受信側の中継ECU12,13を特定する。 If the control-side relay ECU 14 determines in S720 that the path abnormality timer has not expired, in S780 the control-side relay ECU 14 determines whether all response information from the reception-side relay ECUs 12 and 13 has been received. determine whether Note that in this process, determination is made for each number of transmissions of confirmation information. At this time, similarly to S420 described above, the control-side relay ECU 14 refers to the above-described reception notification table 77 to specify the receiving-side relay ECUs 12 and 13 corresponding to the response information.

続いて、制御側の中継ECU14は、S780で、受信側の中継ECU12,13からの応答情報が揃っていないと判定した場合には、S790へ移行し、応答情報の送信元となる受信側の中継ECU12,13を、確認情報の送信回数と対応付けてバッファ79に記憶した後、図14の時刻設定処理を終了する。 Subsequently, when the relay ECU 14 on the control side determines in S780 that the response information from the relay ECUs 12 and 13 on the reception side is not complete, the process proceeds to S790 and After the relay ECUs 12 and 13 are stored in the buffer 79 in association with the number of transmissions of the confirmation information, the time setting process of FIG. 14 is ended.

一方、制御側の中継ECU14は、S780で受信側の中継ECU12,13からの受信通知が全て揃ったと判定した場合には、前述のS440~S460の処理を実施し、その後、図14の時刻設定処理を終了する。 On the other hand, if the relay ECU 14 on the control side determines in S780 that all the reception notifications from the relay ECUs 12 and 13 on the receiving side have been received, it performs the above-described processing of S440 to S460, and then sets the time shown in FIG. End the process.

一方、制御側の中継ECU14は、S720で経路異常タイマが満了していると判定した場合には、S730へ移行し、受信側の中継ECU12,13からの応答情報が揃ったか否かを判定する。 On the other hand, if the control-side relay ECU 14 determines in S720 that the path abnormality timer has expired, it proceeds to S730 and determines whether response information from the receiving-side relay ECUs 12 and 13 has been received. .

制御側の中継ECU14は、S730で受信側の中継ECU12,13からの応答情報が揃ったと判定した場合には、S740へ移行し、現在時刻を取得する。
続いて、S750で、制御側の中継ECU14は、送信時刻を算出する。この処理では、受信側の中継ECU12,13毎における送信回数N毎に、確認時刻と応答情報に付された受信時刻の差を求め、この差をバスの遅延時間βとして算出する。そして、別途記憶された遅延時間情報βbigと比較し、より大きな方をβmaxとし、現在時刻+α+βmaxを送信時刻として設定する。
If the relay ECU 14 on the control side determines in S730 that the response information from the relay ECUs 12 and 13 on the reception side has been received, it proceeds to S740 and acquires the current time.
Subsequently, in S750, the control-side relay ECU 14 calculates the transmission time. In this process, the difference between the confirmation time and the reception time attached to the response information is obtained for each transmission number N of each of the relay ECUs 12 and 13 on the receiving side, and this difference is calculated as the delay time β of the bus. Then, it compares with separately stored delay time information βbig, sets the larger one as βmax, and sets the current time+α+βmax as the transmission time.

続いて、S760で、制御側の中継ECU14は、受信側ECU12,13に送信時刻を含む時刻情報を送信する。その後、図14の時刻設定処理を終了する。
一方、制御側の中継ECU14は、S730で受信側の中継ECU12,13からの応答情報が揃ってないと判定した場合には、S770へ移行し、バスの遅延時間βを算出し、既に記憶された遅延時間βbigとの大きいほうを新たなβbigとして記憶する。その後、図14の時刻設定処理を終了する。
Subsequently, in S760, the relay ECU 14 on the control side transmits time information including the transmission time to the ECUs 12 and 13 on the receiving side. After that, the time setting process of FIG. 14 ends.
On the other hand, if the relay ECU 14 on the control side determines in S730 that the response information from the relay ECUs 12 and 13 on the receiving side is not complete, it proceeds to S770, calculates the delay time β of the bus, and calculates the bus delay time β. The larger one of the delay time βbig is stored as a new βbig. After that, the time setting process of FIG. 14 ends.

次に、制御側の中継ECU14が実行する異常判定処理について、図15のフローチャートを用いて説明する。異常判定処理は、経路異常タイマが満了すると開始される。
まず、S810で、制御側の中継ECU14は、経路異常タイマの終了を認識する。続いて、S820で、制御側の中継ECU14は、タイマ終了回数Mが予め準備された基準回数X未満であるか否かを判定する。例えば、基準回数Xは、3程度の数に設定される。
Next, the abnormality determination process executed by the relay ECU 14 on the control side will be described with reference to the flowchart of FIG. 15 . The abnormality determination process is started when the route abnormality timer expires.
First, in S810, the relay ECU 14 on the control side recognizes the termination of the path abnormality timer. Subsequently, in S820, the relay ECU 14 on the control side determines whether or not the number of timer termination times M is less than the reference number of times X prepared in advance. For example, the reference number of times X is set to about three.

制御側の中継ECU14は、S820でタイマ終了回数Mが予め準備された基準回数X未満であると判定した場合には、S830へ移行し、経路異常タイマをセットする。
続いて、S840で、制御側の中継ECU14は、応答情報が送信されてこない受信側の中継ECU12,13に、確認情報を再度送信し、送信時刻を記憶した後、図15の異常判定処理を終了する。
When the relay ECU 14 on the control side determines in S820 that the number of timer termination times M is less than the reference number of times X prepared in advance, the process proceeds to S830 and sets the path abnormality timer.
Subsequently, in S840, the control-side relay ECU 14 retransmits the confirmation information to the receiving-side relay ECUs 12 and 13 to which the response information has not been transmitted, stores the transmission time, and then executes the abnormality determination process of FIG. finish.

一方、制御側の中継ECU14は、S820でタイマ終了回数Mが予め準備された基準回数X以上であると判定した場合には、S850へ移行し、バス異常、例えば断線と判定した後、図15の異常判定処理を終了する。 On the other hand, when the relay ECU 14 on the control side determines in S820 that the timer end count M is equal to or greater than the reference count X prepared in advance, the control-side relay ECU 14 proceeds to S850 and determines that the bus is abnormal, for example, disconnection. end the abnormality determination process.

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

(4a)本開示の一態様は、制御側の中継ECU14は、S480で、受信通知を受けると、当該受信通知の送信元の受信側ローカルECU15~22に、予め設定された確認情報を送信するように構成される。また、制御側の中継ECU14は、S750,S770で、確認情報を送信してから受信側の中継ECU12,13が確認情報を受信するまでの遅延時間を算出するように構成される。そして、遅延時間を加味して時刻情報を生成し、時刻情報を複数の受信側の中継ECU12,13に送信するように構成される。 (4a) In one aspect of the present disclosure, when receiving a reception notification in S480, the control-side relay ECU 14 transmits preset confirmation information to the reception-side local ECUs 15 to 22 that transmitted the reception notification. configured as Further, the relay ECU 14 on the control side is configured to calculate a delay time from transmission of the confirmation information to reception of the confirmation information by the relay ECUs 12 and 13 on the receiving side in S750 and S770. Then, the time information is generated with the delay time taken into account, and the time information is transmitted to the plurality of relay ECUs 12 and 13 on the receiving side.

複数の受信側の中継ECU12,13は、S610,S620で、確認情報を受けると、応答情報を制御側の中継ECU14に送信するように構成される。応答情報には、遅延時間を算出するために用いられる、確認情報を受信した時刻である受信時刻が含まれる。 The plurality of receiving-side relay ECUs 12 and 13 are configured to transmit response information to the control-side relay ECU 14 upon receiving the confirmation information in S610 and S620. The response information includes the reception time, which is the time at which the confirmation information was received, which is used to calculate the delay time.

このような構成によれば、制御側の中継ECU14は、確認情報を送信してから受信側の中継ECU12,13が確認情報を受信するまでの遅延時間を加味して時刻情報を生成するので、時刻情報にて指定される送信時刻を適切に設定することができる。例えば、送信時刻後に時刻情報が受信側中継装置にて受信されることで、複数の受信側の中継ECU12,13が2以上のローカルECU15~22にデータを送信する時刻がずれることを抑制することができる。 According to such a configuration, the relay ECU 14 on the control side generates the time information in consideration of the delay time from when the confirmation information is transmitted to when the confirmation information is received by the relay ECUs 12 and 13 on the receiving side. The transmission time specified by the time information can be set appropriately. For example, by receiving the time information at the receiving side relay device after the transmission time, it is possible to suppress the time lag at which the plurality of receiving side relay ECUs 12 and 13 transmit data to two or more local ECUs 15 to 22. can be done.

(4b)本開示の一態様では、制御側の中継ECU14は、S750~S770で、遅延時間が予め設定された基準時間未満である場合に、遅延時間を加味することなく時刻情報を生成するように構成される。 (4b) In one aspect of the present disclosure, in S750 to S770, the relay ECU 14 on the control side generates the time information without considering the delay time when the delay time is less than the preset reference time. configured to

このような構成によれば、遅延時間が基準時間よりも大きい場合だけ、遅延時間を加味して時刻情報を生成することができる遅延時間を加味しない場合に、時刻情報を生成する処理を簡素化することができる。 According to such a configuration, the time information can be generated with the delay time taken into account only when the delay time is greater than the reference time. can do.

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

(5a)上記実施形態では、送信側の中継ECU11、受信側の中継ECU12,13制御側の中継ECU14とする構成を説明したが、これに限定されるものではない。例えば、任意の中継ECU11~14を、送信側、受信側、制御側として採用してもよい。また、例えば、制御側の中継ECU11~14は、送信側、或いは受信側としても利用することができる。 (5a) In the above embodiment, the relay ECU 11 on the transmission side, the relay ECUs 12 and 13 on the reception side, and the relay ECU 14 on the control side have been described, but the configuration is not limited to this. For example, any of the relay ECUs 11-14 may be employed as the transmitting side, the receiving side, and the controlling side. Further, for example, the relay ECUs 11 to 14 on the control side can also be used on the transmission side or on the reception side.

特に、第2実施形態と第3実施形態の送信側の中継ECU又は受信側の中継ECUと制御側の中継ECUとは兼用してもよい。このようにする場合に、1つの中継ECUの内部で発生する処理、つまり、メッセージシーケンス矢印の元と先とが同じ中継ECUになる場合は、メッセージ送信及び受信が時間差なく実施完了したものとして、当該中継ECU内部でそのフロー相当の処理を実施するとよい。 In particular, the relay ECU on the transmission side or the relay ECU on the reception side and the relay ECU on the control side in the second embodiment and the third embodiment may be used together. In this case, when processing that occurs inside one relay ECU, that is, when the source and destination of the message sequence arrow are the same relay ECU, it is assumed that message transmission and reception are completed without time lag. It is preferable to perform processing corresponding to the flow inside the relay ECU.

(5b)上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。 (5b) 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.

(5c)上述したネットワークシステム1の他、当該ネットワークシステム1の構成要素となる中継装置、当該ネットワークシステムを構成する中継装置としてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実態的記録媒体、中継方法など、種々の形態で本開示を実現することもできる。 (5c) In addition to the network system 1 described above, a relay device that is a component of the network system 1, a program for causing a computer to function as a relay device that constitutes the network system, and a semiconductor memory that stores this program. The present disclosure can also be implemented in various forms such as a transitional actual recording medium and a relay method.

[6.上記実施形態の構成と本開示の構成との対応関係]
上記実施形態でのネットワークシステム1は、本開示での中継システムに相当し、上記実施形態での中継ECU11~14は、本開示での中継装置に相当する。また、上記実施形態でのローカルECU15~22は、本開示での通信装置に相当し、上記実施形態での制御側の中継ECU14マスタ中継装置に相当する。
[6. Correspondence between the configuration of the above embodiment and the configuration of the present disclosure]
The network system 1 in the above embodiment corresponds to the relay system in the present disclosure, and the relay ECUs 11 to 14 in the above embodiment correspond to the relay device in the present disclosure. Further, the local ECUs 15 to 22 in the above embodiment correspond to the communication device in the present disclosure, and correspond to the control-side relay ECU 14 master relay device in the above embodiment.

また、上記実施形態において中継ECU11~14が実行するS110の構成は、本開示でのローカル受信部に相当し、上記実施形態でのS160、S170の構成は、本開示でのデータ送信部に相当する。また、上記実施形態でのS210、S320の構成は、本開示でのローカル送信部に相当し、上記実施形態でのS260の構成は、本開示での通知送信部に相当する。 Further, the configuration of S110 executed by the relay ECUs 11 to 14 in the above embodiment corresponds to the local reception section in the present disclosure, and the configuration of S160 and S170 in the above embodiment corresponds to the data transmission section in the present disclosure. do. Also, the configurations of S210 and S320 in the above embodiment correspond to the local transmission section in the present disclosure, and the configuration of S260 in the above embodiment corresponds to the notification transmission section in the present disclosure.

また、上記実施形態でのS410の構成は、本開示での通知受信部に相当し、上記実施形態でのS450、S460、S750~S770の構成は、本開示での時刻生成部に相当する。また、上記実施形態でのS480の構成は、本開示での確認送信部に相当し、上記実施形態でのS610、S620の構成は、本開示での応答送信部に相当する。また、上記実施形態でのS750、S770の構成は、本開示での遅延算出部に相当する。 Also, the configuration of S410 in the above embodiment corresponds to the notification receiving unit in the present disclosure, and the configurations of S450, S460, and S750 to S770 in the above embodiment correspond to the time generation unit in the present disclosure. Also, the configuration of S480 in the above embodiment corresponds to the confirmation transmission section in the present disclosure, and the configurations of S610 and S620 in the above embodiment correspond to the response transmission section in the present disclosure. Also, the configuration of S750 and S770 in the above embodiment corresponds to the delay calculator in the present disclosure.

1…ネットワークシステム、11~14…中継ECU、15~22…ローカルECU、29~34…ネットワーク通信線、35~42…ローカル通信線、51~54…イーサネットスイッチ、61~64…マイコン、71…メモリ、73…MACアドレステーブル、75…同時性テーブル、77…受信通知テーブル、79…バッファ、81…通信制御部、82…時刻同期回路。 DESCRIPTION OF SYMBOLS 1... Network system 11-14... Relay ECU 15-22... Local ECU 29-34... Network communication line 35-42... Local communication line 51-54... Ethernet switch 61-64... Microcomputer 71... Memory 73 MAC address table 75 Simultaneity table 77 Receipt notification table 79 Buffer 81 Communication control unit 82 Time synchronization circuit.

Claims (4)

複数の中継装置とネットワーク通信線(29~34)で通信可能に接続され、前記複数の中継装置によるデータの送信時刻を管理するように構成されたマスタ中継装置(14)であって、
前記複数の中継装置のそれぞれには、前記ネットワーク通信線以外のローカル通信線(35~42)を介して少なくとも1つの通信装置(15~22)が接続されており、かつ当該マスタ中継装置及び前記複数の中継装置は、時刻について同期しており、かつ前記複数の中継装置のうちの送信側中継装置から、前記送信側中継装置でない複数の受信側中継装置にデータを中継するように構成され、
当該マスタ中継装置は、
前記送信側中継装置から予め設定された通知指令を受けると前記マスタ中継装置に受信通知を送信するように構成された前記複数の受信側中継装置、から前記受信通知を受信するように構成された通知受信部(S410)と、
前記受信通知を受けると、前記複数の受信側中継装置が該データを送信すべき時刻を示す時刻情報を生成し、該時刻情報を前記複数の受信側中継装置に送信するように構成された時刻生成部(S450、S460、S750~S770)、
をさらに備えるマスタ中継装置。
A master relay device (14) communicably connected to a plurality of relay devices via network communication lines (29 to 34) and configured to manage data transmission times of the plurality of relay devices,
At least one communication device (15 to 22) is connected to each of the plurality of relay devices via a local communication line (35 to 42) other than the network communication line, and the master relay device and the the plurality of relay devices are synchronized with respect to time and configured to relay data from a transmitting relay device among the plurality of relay devices to a plurality of receiving relay devices other than the transmitting relay device;
The master relay device is
configured to receive the acknowledgment from the plurality of receiving-side relay devices configured to transmit the acknowledgment to the master relay device upon receiving a preset notification command from the transmitting-side relay device. a notification receiving unit (S410);
A time configured to generate time information indicating a time at which the plurality of receiving-side relay devices should transmit the data when the reception notification is received, and to transmit the time information to the plurality of receiving-side relay devices. generation unit (S450, S460, S750 to S770),
A master relay device further comprising:
複数の中継装置(11~14)を互いに通信可能に接続するネットワーク通信線(29~34)で接続された複数の中継装置を備える中継システム(1)であって、
前記複数の中継装置のそれぞれには、前記ネットワーク通信線以外のローカル通信線(35~42)を介して少なくとも1つの通信装置(15~22)が接続されており、かつ前記複数の中継装置は、時刻について同期しており、かつ前記複数の中継装置のうちの送信側中継装置から、前記送信側中継装置以外の複数の受信側中継装置にデータを中継するように構成され、
前記送信側中継装置は、
前記ローカル通信線から、前記複数の受信側中継装置に接続された2以上の通信装置を宛先とするデータを受信するように構成されたローカル受信部(S110)と、
前記複数の受信側中継装置が該データを送信すべき時刻を示す時刻情報を、前記データとともに、前記ネットワーク通信線を介して前記複数の受信側中継装置に送信するように構成されたデータ送信部(S160、S170)と、
を備え、
前記複数の受信側中継装置は、
前記ネットワーク通信線を介して前記時刻情報及び前記データを受信し、前記時刻情報にて指示された時刻に前記ローカル通信線に前記データを送信するように構成されたローカル送信部(S210、S320)、
を備え
前記複数の中継装置には、データの送信時刻を管理するように構成されたマスタ中継装置(14)を備え、
前記送信側中継装置における前記データ送信部は、前記時刻情報に換えて、予め設定された通知指令を、前記データとともに、前記ネットワーク通信線を介して前記複数の受信側中継装置に送信するように構成され、
前記複数の受信側中継装置は、
前記通知指令を受けると、前記マスタ中継装置に受信通知を送信するように構成された通知送信部(S260)をさらに備え、
前記マスタ中継装置は、
前記複数の受信側中継装置から前記受信通知を受信するように構成された通知受信部(S410)と、
前記受信通知を受けると、前記時刻情報を生成し、該時刻情報を前記複数の受信側中継装置に送信するように構成された時刻生成部(S450、S460、S750~S770)と、
をさらに備える中継システム。
A relay system (1) comprising a plurality of relay devices connected by network communication lines (29-34) for communicably connecting the plurality of relay devices (11-14),
At least one communication device (15-22) is connected to each of the plurality of relay devices via a local communication line (35-42) other than the network communication line, and the plurality of relay devices are , synchronized with respect to time, and configured to relay data from a transmission-side relay device among the plurality of relay devices to a plurality of reception-side relay devices other than the transmission-side relay device;
The transmission-side relay device,
a local receiving unit (S110) configured to receive data destined for two or more communication devices connected to the plurality of receiving-side relay devices from the local communication line;
A data transmission unit configured to transmit time information indicating a time at which the plurality of receiving side relay devices should transmit the data together with the data to the plurality of receiving side relay devices via the network communication line. (S160, S170);
with
The plurality of receiving-side relay devices,
A local transmission unit (S210, S320) configured to receive the time information and the data via the network communication line and transmit the data to the local communication line at the time indicated by the time information. ,
with
The plurality of relay devices includes a master relay device (14) configured to manage data transmission time,
The data transmission unit in the transmission-side relay device transmits a preset notification command, instead of the time information, together with the data to the plurality of reception-side relay devices via the network communication line. configured,
The plurality of receiving-side relay devices,
further comprising a notification transmission unit (S260) configured to transmit a reception notification to the master relay device when the notification command is received;
The master relay device
a notification receiving unit (S410) configured to receive the reception notification from the plurality of receiving relay devices;
a time generation unit (S450, S460, S750 to S770) configured to generate the time information and transmit the time information to the plurality of receiving-side relay devices upon receiving the reception notification;
A relay system further comprising :
請求項に記載の中継システムであって、
前記マスタ中継装置は、
前記受信通知を受けると、当該受信通知の送信元の受信側通信装置に、予め設定された確認情報を送信するように構成された確認送信部(S480)と、
前記確認情報を前記送信元の受信側通信装置が受けるまでの遅延時間を算出するように構成された遅延算出部(S750、S770)と、
をさらに備え、
前記時刻生成部は、前記遅延時間を加味して前記時刻情報を生成し、該時刻情報を前記複数の受信側中継装置に送信するように構成され、
前記複数の受信側中継装置は、
前記確認情報を受けると、前記確認情報の応答である応答情報を前記マスタ中継装置に送信するように構成された応答送信部(S610、S620)、
をさらに備える中継システム。
The relay system according to claim 2 ,
The master relay device
a confirmation transmission unit (S480) configured to transmit preset confirmation information to a receiving communication device, which is a transmission source of the reception notification, upon receiving the reception notification;
a delay calculation unit (S750, S770) configured to calculate a delay time until the reception side communication device of the transmission source receives the confirmation information;
further comprising
The time generation unit is configured to generate the time information in consideration of the delay time and transmit the time information to the plurality of receiving relay devices,
The plurality of receiving-side relay devices,
a response transmission unit (S610, S620) configured to transmit response information, which is a response to the confirmation information, to the master relay device upon receiving the confirmation information;
A relay system further comprising:
請求項に記載の中継システムであって、
前記マスタ中継装置における前記時刻生成部は、前記遅延時間が予め設定された基準時間未満である場合に、前記遅延時間を加味することなく前記時刻情報を生成する
ように構成される中継システム。
The relay system according to claim 3 ,
The relay system is configured such that, when the delay time is less than a preset reference time, the time generation unit in the master relay device generates the time information without considering the delay time.
JP2019113860A 2019-06-19 2019-06-19 Master relay device and relay system Active JP7251346B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019113860A JP7251346B2 (en) 2019-06-19 2019-06-19 Master relay device and relay system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019113860A JP7251346B2 (en) 2019-06-19 2019-06-19 Master relay device and relay system

Publications (2)

Publication Number Publication Date
JP2020205573A JP2020205573A (en) 2020-12-24
JP7251346B2 true JP7251346B2 (en) 2023-04-04

Family

ID=73838571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019113860A Active JP7251346B2 (en) 2019-06-19 2019-06-19 Master relay device and relay system

Country Status (1)

Country Link
JP (1) JP7251346B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11876608B2 (en) * 2021-02-22 2024-01-16 Hitachi, Ltd Redundant control system
JP7410085B2 (en) 2021-06-11 2024-01-09 矢崎総業株式会社 Communication system and upper control device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006027969A1 (en) 2004-09-09 2006-03-16 Matsushita Electric Industrial Co., Ltd. Transmitting apparatus, relaying apparatus, receiving apparatus and network system including these apparatus
JP2008172362A (en) 2007-01-09 2008-07-24 Auto Network Gijutsu Kenkyusho:Kk In-vehicle communication system, relay device, and in-vehicle communication method
JP2009094731A (en) 2007-10-05 2009-04-30 Auto Network Gijutsu Kenkyusho:Kk Communication system and relay device
JP2012065171A (en) 2010-09-16 2012-03-29 Hitachi Automotive Systems Ltd In-vehicle data repeating device and vehicle control system
US20170279552A1 (en) 2014-09-10 2017-09-28 Siemens Aktiengesellschaft Method for determining a propagation time of a telegram in a communication network, and corresponding network components
JP2018023002A (en) 2016-08-03 2018-02-08 シャープ株式会社 Communication device, control method, program, communication system, and method of configuring communication system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006027969A1 (en) 2004-09-09 2006-03-16 Matsushita Electric Industrial Co., Ltd. Transmitting apparatus, relaying apparatus, receiving apparatus and network system including these apparatus
JP2008172362A (en) 2007-01-09 2008-07-24 Auto Network Gijutsu Kenkyusho:Kk In-vehicle communication system, relay device, and in-vehicle communication method
JP2009094731A (en) 2007-10-05 2009-04-30 Auto Network Gijutsu Kenkyusho:Kk Communication system and relay device
US20100215043A1 (en) 2007-10-05 2010-08-26 Autonetworks Technologies, Ltd. Communication system and relay apparatus
JP2012065171A (en) 2010-09-16 2012-03-29 Hitachi Automotive Systems Ltd In-vehicle data repeating device and vehicle control system
US20170279552A1 (en) 2014-09-10 2017-09-28 Siemens Aktiengesellschaft Method for determining a propagation time of a telegram in a communication network, and corresponding network components
JP2018023002A (en) 2016-08-03 2018-02-08 シャープ株式会社 Communication device, control method, program, communication system, and method of configuring communication system

Also Published As

Publication number Publication date
JP2020205573A (en) 2020-12-24

Similar Documents

Publication Publication Date Title
JP4786371B2 (en) Network relay device
US12037031B2 (en) Train network control system including redundant network structure, method and device and train
JP5510275B2 (en) Communication system, master node, slave node
JP7251346B2 (en) Master relay device and relay system
US20180324640A1 (en) Vehicle-Mounted Gateway Device, Electronic Control Device, and Vehicle-Mounted Network System
CN109639546B (en) Redundancy system based on CAN bus
US10862703B2 (en) In-vehicle communication system, switch device, and communication control method
JP7030742B2 (en) Communication system and communication control method
US7684909B2 (en) Data transmission method and device
WO2020039844A1 (en) In-vehicle communication device and in-vehicle system
US20100189114A1 (en) Network communication node
US10484202B2 (en) Relay device, electronic control device, and vehicle-mounted network system
WO2008069487A1 (en) Switched ethernet-based network system and signal processing method thereof for railway signalling system
JP2006067590A (en) Network station for data network, and method for receiving external data packet and transmitting preparation data inside apparatus into data network
US7860984B2 (en) Method and device for the creation of a communication system based on CAN communication controllers featuring an increased data throughput
JP3888866B2 (en) Ethernet transmission line redundancy system
US20100142541A1 (en) Communication system
JP2006197114A (en) Information transmission system, information transmission system for railway vehicle, and information transmission terminal for vehicle
CN110249591B (en) Method for optimizing fault detection using redundancy protocol of test data packet
JP4690857B2 (en) Bulk transmission system
US20220245076A1 (en) Control device, onboard system, control method, and non-transitory computer-readable recording medium
CN113810297B (en) Multi-network converged train network system and communication method thereof
JP2011055112A (en) Communication system and communication device
JP6468759B2 (en) Transmission control system and transmission control apparatus used therefor
RU2789347C1 (en) COMPUTING SYSTEM AND THE METHOD FOR THE COMPUTING SYSTEM&#39;s FUNCTIONING

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211116

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220822

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220830

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221020

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230119

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230306

R151 Written notification of patent or utility model registration

Ref document number: 7251346

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151