JP7251346B2 - Master relay device and relay system - Google Patents
Master relay device and relay system Download PDFInfo
- 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
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,
ところで、上記中継システムでは、異なる中継装置に接続された通信装置に対して同時にデータを提供したい場合がある。例えば、中継装置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.概要]
[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 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
図1に示すように、ネットワークシステム1は、電子制御装置である複数のECU11~22と、通信線31~42と、を備える。ECUは、「Electronic Control Unit」の略である。
As shown in FIG. 1, the
複数の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
中継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
スイッチ51~54は、所定の規格に従ったデータであるフレーム、特に、本実施形態ではイーサネット規格及びCAN規格に従ったフレームの中継のための通信を行う。このため、スイッチ51~54の各々は、フレームを送受信するための複数(例えば、本実施形態では5つ)の通信ポート(以下、ポート)P1~P5と、イーサネット規格及びCAN規格に従った中継のための通信処理を行う通信制御部81とを、備える。
The
また、スイッチ51~54は、MACアドレステーブル73と、同時性テーブル75と、受信通知テーブル77と、バッファ79とをさらに備える。なお、MACアドレステーブル73、及び同時性テーブル75については、本実施形態において後述する。また、受信通知テーブル77は、第2実施形態以降で用いるため、本実施形態では備える必要はない。また、バッファ79は、種々のデータを一時的に格納するための記憶領域である。
Also, the
各テーブル73,75,77、及びバッファ79は、スイッチ51~54が有するメモリ71に備えられている。メモリ71は、例えば揮発性のメモリであるが、書き換え可能な不揮発性メモリであってもよい。通信制御部81は、例えば集積回路やマイコン等によって構成されている。
Each of the tables 73, 75, 77 and the
スイッチ51~54の動作は、通信制御部81によって実現される動作である。なお、通信制御部81の機能には、複数の通信ポートP1~P5を用いてフレームを受信する機能、複数の通信ポートP1~P5に接続された通信線29~34の断線等の異常を検知する機能等が含まれる。また、以下の記述では、スイッチ51~54の通信制御部81による作動を、中継ECU11~14の作動として記述する。
Operations of the
このようなネットワークシステム1では、スター型のネットワークトポロジーを構成する。すなわち、ネットワークシステム1では、複数の中継ECU11~14が、複数の中継ECU11~14を互いに通信可能に接続するネットワーク通信線29~34によって接続される。また、複数の中継ECU11~14は、何れかのローカルECU15~22と、ローカル通信線35~42によって通信可能に接続される。
Such a
詳細には、中継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
上記のように、ネットワークシステム1では、スイッチ51~54は、互いに他のスイッチ51~54を経由することなく、直接全てのスイッチ51~54と通信可能となるように構成される。
As described above, in the
そして、中継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がそれぞれ接続されている。
つまり、スイッチ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
ネットワークシステム1において、中継ポート間で通信されるフレームは、周知のイーサネットフレームである。また、ネットワークシステム1において、通常ポートにて通信されるフレームは、周知のCANフレームである。つまり、通常ポートP4,P5は、周知のCANモジュールとして機能を備え、ローカル通信線35~42は、周知のCANバスとして機能する。したがって、各スイッチ51~54は、イーサネットフレームとCANフレームとの間でプロトコル変換を行うゲートウェイとしての機能を有する。
In the
ここで、各スイッチ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
なお、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
つまり、各スイッチ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
また、各スイッチ51~54は、中継ポートP1~P3の何れかからフレームが受信されると、受信されたフレームである受信フレームに含まれる宛先MACアドレスと、MACアドレステーブル73とに基づいて、受信フレームの転送先のポートP1~P5を決定する。転送先のポートが通常ポートP4,P5である場合、イーサネットフレームをCANフレームに変換して送信する。
Further, when each of the
このようなネットワークシステム1において、何れかのスイッチの各中継ポートP1~P3から、他のスイッチの通常ポートP4,P5の先に接続されているECUを宛先とするフレームが送信されると、そのフレームは上記他のスイッチの各中継ポートP1~P3に入力される。
In such a
また、各スイッチ51~54は、時刻同期回路82を備える。時刻同期回路82は、時刻同期プロトコル等を用いて、互いに時刻について同期させる機能を有する。この構成により、各スイッチ51~54は、それぞれ同じ時刻を指定されれば、その時刻に、同時にフレームを送信することができる。
Also, each of the
なお、本実施形態では、ハードウェアとしての時刻同期回路82を備えるが、この機能をソフトウェアにて実現してもよい。この場合、時刻同期回路82は不要であり、通信制御部81又はマイコン61~64等が時刻同期回路82の機能を備えるとよい。
In this embodiment, the
[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
図2に示すように、送信側の中継ECU11は、送信側のローカルECU15からフレームを受けると、時刻t1にて、CANバスへの送信時刻である時刻t2を指定したフレームを受信側の中継ECU12に送信する。その後、送信側の中継ECU11は、時刻情報として、時刻t2を指定した同様のフレームを受信側の中継ECU13に送信する。このとき、時刻t2は、送信側の中継ECU11がフレームを受信側の中継ECU13に送信するまでに、送信側の中継ECU11に割込処理が発生したとしても、その割込処理の終了後にフレームを受信側の中継ECU13に送信すれば、時刻t2に間に合うように設定される。時刻t2は、後述する送信時刻である。
As shown in FIG. 2, when the
この構成では、受信側の中継ECU12,13が、時刻t2までにフレームを受信できれば、このフレームは、時刻t2にて、受信側のローカルECU37,39が接続された複数のCANバス、つまり通常ポートP4にて同時に送信される。
In this configuration, if the
このような作動を実現するための、各中継ECU11~13の作動について以下に詳述する。まず、送信側の中継ECU11が実行する送信側処理について、図3のフローチャートを用いて説明する。送信側処理は、CANモジュール、すなわち、通常ポートP4,P5からフレームの受信を開始すると開始される処理である。
The operation of each of the
送信側処理では、まず、S110で、中継ECU11は、CANモジュールからフレームを受信する。続いて、S120で、中継ECU11は、受信したフレームが同時性を必要とするフレームであるか否かを判定する。同時性を必要とするフレームとは、複数の受信側の通信装置を宛先とするフレームであって、異なるCANバスにおいて同時に送信されることが好ましいフレームを示す。
In the transmission side process, first, in S110, the
同時性を必要とするフレームであるか否かについては、フレームのペイロードのうちの予め設定された部位を参照すれば認識できるように構成されている。ただし、フレームのヘッダを参照すれば同時性を必要とするフレームであるか否かを認識できるように構成されてもよい。 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
中継ECU11は、S120でフレームが同時性を必要とするデータでないと判定した場合には、S130へ移行し、通常の送信処理を実施する。通常の送信処理とは、受信側の中継ECU11~14に対して、時刻情報を含めることなく単に受信したフレームを中継することを示す。この処理の後、送信側処理を終了する。
When the
一方、中継ECU11は、S120でフレームが同時性を必要とするデータであると判定した場合には、S140へ移行し、時刻同期回路82から得られる情報に基づいて現在時刻を取得する。
On the other hand, when the
続いて、S150で、中継ECU11は、送信時刻を算出する。送信時刻は、現在時刻+αとして求められる。αは、予め演算又は実験的に求められた設計上の最大遅延時間である。
Subsequently, in S150, the
続いて、S160で、中継ECU11は、送信時刻が含まれる時刻情報をフレームに含めた新たなフレームを生成する。新たなフレームには、送信側のローカルECU15から受信した中継すべきデータと、時刻情報とが含まれる。中継ECU11は、ネットワーク通信線29~34を介して、このフレームを受信側の中継ECU12,13に送信した後、図3の送信側処理を終了する。
Subsequently, in S160, the
次に、受信側の中継ECU12,13がそれぞれ実行する受信側処理について、図4のフローチャートを用いて説明する。受信側処理は、中継ポートP1~P3の何れかからフレームの受信を開始すると開始される処理である。
Next, the reception-side processing executed by the
受信側処理では、まず、S210で、受信側の中継ECU12,13は、送信側の中継ECU11からフレームを受信する。続いて、S220で、中継ECU12,13は、受信したフレームが同時性を必要とするデータであるか否かを判定する。
In the processing on the receiving side, first, in S210, the
中継ECU12,13は、S220で同時性を必要とするデータでないと判定した場合には、S230へ移行し、通常の受信処理を実施した後、図4の受信側処理を終了する。一方、中継ECU12,13は、S220で同時性を必要とするデータであると判定した場合には、S240へ移行し、受信したフレームをバッファ79に格納する。
If the
続いて、S250で、中継ECU12,13は、受信したフレームから時刻情報を抽出し、時刻情報に含まれる送信時刻にタイマを設定した後、図4の受信側処理を終了する。
次に、受信側の中継ECU12,13が実行する同期処理について、図5のフローチャートを用いて説明する。同期処理は、送信時刻になったとき、すなわち、受信側の中継ECU12,13において、受信側処理で設定されたタイマが満了すると開始される処理である。
Subsequently, in S250, the
Synchronization processing executed by the
同期処理では、まず、S310で、中継ECU12,13は、タイマが満了したことを確認する。続いて、S320で、中継ECU12,13は、CANモジュール、すなわち通常ポートP4,P5にフレームを引き渡し、通常ポートP4,P5がフレームを送信すると、図5の同期処理を終了する。
In the synchronization process, first, at S310, the
[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
送信側の中継ECU11は、S110で、ローカル通信線35~42から、複数の受信側の中継ECU12,13に接続された2以上のローカルECU15~22を宛先とするデータを受信するように構成される。また、S160で、複数の受信側の中継ECU12,13がデータを送信すべき時刻を示す送信時刻を含む時刻情報を、受信したデータとともに、ネットワーク通信線29~34を介して複数の受信側の中継ECU12,13に送信するように構成される。
The
複数の受信側の中継ECU12,13は、S210,S320で、ネットワーク通信線29~34を介して時刻情報及びデータを受信し、時刻情報にて指示された時刻にローカル通信線35~42にデータを送信するように構成される。
The
このような構成によれば、複数の受信側の中継ECU12,13に接続された2以上のローカルECU15~22に対して、複数の受信側の中継ECU12,13が同時にデータを送信することができる。よって、2以上のローカルECU15~22による制御タイミングのずれを抑制することができる。
According to such a configuration, a plurality of receiving-
[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
[3-2.処理]
第2実施形態では、中継ECU14がマスタECUに設定されているものとし、中継ECU14を制御側の中継ECU14とも表記する。第2実施形態では、第1実施形態と同様に、送信側のローカルECU15から、受信側のローカルECU37,39対してフレームを送信する例について説明する。
[3-2. process]
In the second embodiment, it is assumed that the
第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
ここで、受信通知テーブル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
複数の受信側の中継ECU12,13は、送信時刻t5になると、通常ポートP4,P5からフレームを送信する。なお、制御側の中継ECU14は、受信側の中継ECU12,13の何れかから受信通知を受信できない場合、異常であると認識し、受信通知をクリアしてもよいし、そのまま待機してもよい。
A plurality of
このような作動を実現するための、各中継ECU11~14の作動について以下に詳述する。まず、送信側の中継ECU11が実行する送信側処理について、図7のフローチャートを用いて説明する。第2実施形態の送信側処理では、第1実施形態の送信側処理におけるS140~S160の処理に換えて、S170の処理を実施する。
The operation of each of the
すなわち、送信側の中継ECU11は、S120で受信したフレームが同時性を必要とするデータであると判定した場合には、S170へ移行し、受信側の中継ECU12,13に、中継するデータと通知指令とを含むフレームを送信する。通知指令は、制御側の中継ECU14にフレームを受信した旨の受信通知を送信させるための指令である。
That is, when the
次に、第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
次に、制御側の中継ECU14が実行する時刻設定処理について、図9のフローチャートを用いて説明する。時刻設定処理は、受信通知を受信すると開始される処理である。
時刻設定処理では、まず、S410で、制御側の中継ECU14は、受信側の中継ECU12,13から受信通知を受信する。続いて、S420で、制御側の中継ECU14は、受信側の中継ECU12,13からの受信通知が全て揃ったか否かを判定する。この際、制御側の中継ECU14は、上述の受信通知テーブル77を参照して、受信通知に対応する受信側の中継ECU12,13を特定する。
Next, the time setting process executed by the
In the time setting process, first, in S410, the
続いて、制御側の中継ECU14は、S420で、受信側の中継ECU12,13からの受信通知が揃っていないと判定した場合には、S430へ移行し、受信通知の送信元となる受信側の中継ECU12,13をバッファ79に記憶した後、図9の時刻設定処理を終了する。
Subsequently, if the
一方、制御側の中継ECU14は、S420で受信側の中継ECU12,13からの受信通知が全て揃ったと判定した場合には、S440へ移行し、時刻同期回路82からの情報に基づいて現在時刻を取得する。続いて、S450で、制御側の中継ECU14は、送信時刻を算出する。送信時刻は、前述のS150と同様にして求めるとよい。
On the other hand, if the
続いて、S460で、制御側の中継ECU14は、送信時刻が含まれる時刻情報を受信側の中継ECU12,13に送信した後、図9の時刻設定処理を終了する。
次に、受信側の中継ECU12,13が実行するタイマ設定処理について、図10のフローチャートを用いて説明する。タイマ設定処理は、時刻情報を受信すると開始される処理である。
Subsequently, in S460, the control-
Next, the timer setting process executed by the
タイマ設定処理では、まず、S510で、受信側の中継ECU12,13は、時刻情報を受信する。続いて、S520で、受信側の中継ECU12,13は、送信時刻にタイマ設定する。その後、図10のタイマ設定処理を終了する。
In the timer setting process, first, in S510, the
なお、受信側の中継ECU12,13は、図5に示す同期処理を実施し、送信時刻になるとフレームを送信する。
[3-3.効果]
以上詳述した第2実施形態によれば、前述した第1実施形態の効果(2a)を奏し、さらに、以下の効果を奏する。
The
[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
また、複数の受信側の中継ECU12,13は、S260で、通知指令を受けると、制御側の中継ECU14に受信通知を送信するように構成される。そして、制御側の中継ECU14は、S410で、複数の受信側の中継ECU12,13から受信通知を受信するように構成される。また、S450,S460で、受信通知を受けると、時刻情報を生成し、時刻情報を複数の受信側の中継ECU12,13に送信するように構成される。
Further, the plurality of receiving-
このような構成によれば、制御側の中継ECU14は、受信通知を送信した複数の受信側の中継ECU12,13を特定し、複数の受信側の中継ECU12,13から受信通知を受けた時刻、中継ECU12,13が有する機能等に応じて、時刻情報を生成することができる。よって、制御側の中継ECU14は、適切な時刻情報を生成することができ、また、時刻情報を生成する構成を、制御側の中継ECU14に集約させることができる。
According to such a configuration, the control-
[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
[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
続いて、制御側の中継ECU14は、受信側の中継ECU12,13に対して確認情報を送信する。そして、受信側の中継ECU12,13は、確認情報を受信した時刻である受信時刻と、確認情報に対する応答である応答情報と、を制御側の中継ECU14に送信する。
Subsequently, the
経路異常がない場合、制御側の中継ECU14が確認情報を送信する時刻t7と受信側の中継ECU12,13が応答情報を送信する時刻t8との差は僅かである。しかし、経路異常がある場合には、例えば、図11に示す時刻t9と時刻t7との差のように、この差が大きくなる。
When there is no path abnormality, the difference between the time t7 at which the
そこで、制御側の中継ECU14は、この差を遅延時間として測定し、遅延時間を加味して送信時刻t5Aを設定する。送信時刻t5Aは、遅延時間を加味しない送信時刻t5に、遅延時間を加算した値である。
Therefore, the
複数の受信側の中継ECU12,13は、送信時刻t5Aになると、通常ポートP4,P5からフレームを送信する。
このような作動を実現するための、各中継ECU11~14の作動について以下に詳述する。なお、第3実施形態において、同期処理(図5)、送信側処理(図7)、受信側処理(図8)、タイマ設定処理(図10)は、第2実施形態と同様である。
A plurality of
The operation of each of the
まず、制御側の中継ECU14が実行する時刻設定処理について、図12のフローチャートを用いて説明する。図9に示す第2実施形態の時刻設定処理と同様に、制御側の中継ECU14は、S410、S420、S430の処理を実施する。制御側の中継ECU14は、S420で受信側の中継ECU12,13からの受信通知が揃っていないと判定した場合には、S470へ移行し、経路異常タイマをセットする。
First, the time setting process executed by the
続いて、S480で、制御側の中継ECU14は、経路異常確認のための確認情報を各受信側の中継ECU12,13に送信し、確認情報を送信した時刻である確認時刻をバッファ79等に記憶する。その後、図12の時刻設定処理を終了する。
Subsequently, in S480, the
次に、受信側の中継ECU12,13が実行する確認応答処理について、図13のフローチャートを用いて説明する。確認応答処理は、確認情報を受信すると開始される。
まず、S610で、受信側の中継ECU12,13は、制御側の中継ECU14から確認情報を受信する。この際、確認情報の受信時刻をバッファ79等に記録する。続いて、S620で、受信側の中継ECU12,13は、確認情報の受信時刻を含む応答情報を制御側の中継ECU14に送信する。その後、図13の確認応答処理を終了する。
Next, acknowledgment processing executed by the
First, in S610, the
次に、制御側の中継ECU14が実行する時刻設定処理について、図14のフローチャートを用いて説明する。時刻設定処理は、応答情報を受信すると開始される。
時刻設定処理では、まず、S710で、制御側の中継ECU14は、応答情報を受信する。続いて、S720で、制御側の中継ECU14は、経路異常タイマが満了しているか否かを判定する。本実施形態では、複数回の確認情報を送信し、これらに対する複数回の応答情報を受信するため、タイマが満了したか否かは、確認情報の送信回数に対応して確認情報の送信毎に判定する。
Next, the time setting process executed by the
In the time setting process, first, in S710, the
制御側の中継ECU14は、S720で経路異常タイマが満了していないと判定した場合には、S780で、制御側の中継ECU14は、受信側の中継ECU12,13からの応答情報が全て揃ったか否かを判定する。なお、この処理では、確認情報の送信回数毎に判定する。この際、前述のS420と同様に、制御側の中継ECU14は、上述の受信通知テーブル77を参照して、応答情報に対応する受信側の中継ECU12,13を特定する。
If the control-
続いて、制御側の中継ECU14は、S780で、受信側の中継ECU12,13からの応答情報が揃っていないと判定した場合には、S790へ移行し、応答情報の送信元となる受信側の中継ECU12,13を、確認情報の送信回数と対応付けてバッファ79に記憶した後、図14の時刻設定処理を終了する。
Subsequently, when the
一方、制御側の中継ECU14は、S780で受信側の中継ECU12,13からの受信通知が全て揃ったと判定した場合には、前述のS440~S460の処理を実施し、その後、図14の時刻設定処理を終了する。
On the other hand, if the
一方、制御側の中継ECU14は、S720で経路異常タイマが満了していると判定した場合には、S730へ移行し、受信側の中継ECU12,13からの応答情報が揃ったか否かを判定する。
On the other hand, if the control-
制御側の中継ECU14は、S730で受信側の中継ECU12,13からの応答情報が揃ったと判定した場合には、S740へ移行し、現在時刻を取得する。
続いて、S750で、制御側の中継ECU14は、送信時刻を算出する。この処理では、受信側の中継ECU12,13毎における送信回数N毎に、確認時刻と応答情報に付された受信時刻の差を求め、この差をバスの遅延時間βとして算出する。そして、別途記憶された遅延時間情報βbigと比較し、より大きな方をβmaxとし、現在時刻+α+βmaxを送信時刻として設定する。
If the
Subsequently, in S750, the control-
続いて、S760で、制御側の中継ECU14は、受信側ECU12,13に送信時刻を含む時刻情報を送信する。その後、図14の時刻設定処理を終了する。
一方、制御側の中継ECU14は、S730で受信側の中継ECU12,13からの応答情報が揃ってないと判定した場合には、S770へ移行し、バスの遅延時間βを算出し、既に記憶された遅延時間βbigとの大きいほうを新たなβbigとして記憶する。その後、図14の時刻設定処理を終了する。
Subsequently, in S760, the
On the other hand, if the
次に、制御側の中継ECU14が実行する異常判定処理について、図15のフローチャートを用いて説明する。異常判定処理は、経路異常タイマが満了すると開始される。
まず、S810で、制御側の中継ECU14は、経路異常タイマの終了を認識する。続いて、S820で、制御側の中継ECU14は、タイマ終了回数Mが予め準備された基準回数X未満であるか否かを判定する。例えば、基準回数Xは、3程度の数に設定される。
Next, the abnormality determination process executed by the
First, in S810, the
制御側の中継ECU14は、S820でタイマ終了回数Mが予め準備された基準回数X未満であると判定した場合には、S830へ移行し、経路異常タイマをセットする。
続いて、S840で、制御側の中継ECU14は、応答情報が送信されてこない受信側の中継ECU12,13に、確認情報を再度送信し、送信時刻を記憶した後、図15の異常判定処理を終了する。
When the
Subsequently, in S840, the control-
一方、制御側の中継ECU14は、S820でタイマ終了回数Mが予め準備された基準回数X以上であると判定した場合には、S850へ移行し、バス異常、例えば断線と判定した後、図15の異常判定処理を終了する。
On the other hand, when the
[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-
複数の受信側の中継ECU12,13は、S610,S620で、確認情報を受けると、応答情報を制御側の中継ECU14に送信するように構成される。応答情報には、遅延時間を算出するために用いられる、確認情報を受信した時刻である受信時刻が含まれる。
The plurality of receiving-
このような構成によれば、制御側の中継ECU14は、確認情報を送信してから受信側の中継ECU12,13が確認情報を受信するまでの遅延時間を加味して時刻情報を生成するので、時刻情報にて指定される送信時刻を適切に設定することができる。例えば、送信時刻後に時刻情報が受信側中継装置にて受信されることで、複数の受信側の中継ECU12,13が2以上のローカルECU15~22にデータを送信する時刻がずれることを抑制することができる。
According to such a configuration, the
(4b)本開示の一態様では、制御側の中継ECU14は、S750~S770で、遅延時間が予め設定された基準時間未満である場合に、遅延時間を加味することなく時刻情報を生成するように構成される。
(4b) In one aspect of the present disclosure, in S750 to S770, the
このような構成によれば、遅延時間が基準時間よりも大きい場合だけ、遅延時間を加味して時刻情報を生成することができる遅延時間を加味しない場合に、時刻情報を生成する処理を簡素化することができる。 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
特に、第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
[6.上記実施形態の構成と本開示の構成との対応関係]
上記実施形態でのネットワークシステム1は、本開示での中継システムに相当し、上記実施形態での中継ECU11~14は、本開示での中継装置に相当する。また、上記実施形態でのローカルECU15~22は、本開示での通信装置に相当し、上記実施形態での制御側の中継ECU14マスタ中継装置に相当する。
[6. Correspondence between the configuration of the above embodiment and the configuration of the present disclosure]
The
また、上記実施形態において中継ECU11~14が実行するS110の構成は、本開示でのローカル受信部に相当し、上記実施形態でのS160、S170の構成は、本開示でのデータ送信部に相当する。また、上記実施形態でのS210、S320の構成は、本開示でのローカル送信部に相当し、上記実施形態でのS260の構成は、本開示での通知送信部に相当する。
Further, the configuration of S110 executed by the
また、上記実施形態での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
Claims (4)
前記複数の中継装置のそれぞれには、前記ネットワーク通信線以外のローカル通信線(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:
前記複数の中継装置のそれぞれには、前記ネットワーク通信線以外のローカル通信線(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.
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)
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)
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 |
-
2019
- 2019-06-19 JP JP2019113860A patent/JP7251346B2/en active Active
Patent Citations (7)
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'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 |