JP6946733B2 - Communication system, relay device and electronic control device - Google Patents

Communication system, relay device and electronic control device Download PDF

Info

Publication number
JP6946733B2
JP6946733B2 JP2017098202A JP2017098202A JP6946733B2 JP 6946733 B2 JP6946733 B2 JP 6946733B2 JP 2017098202 A JP2017098202 A JP 2017098202A JP 2017098202 A JP2017098202 A JP 2017098202A JP 6946733 B2 JP6946733 B2 JP 6946733B2
Authority
JP
Japan
Prior art keywords
communication
network
unit
established
relay device
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
JP2017098202A
Other languages
Japanese (ja)
Other versions
JP2018195979A (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 JP2017098202A priority Critical patent/JP6946733B2/en
Publication of JP2018195979A publication Critical patent/JP2018195979A/en
Application granted granted Critical
Publication of JP6946733B2 publication Critical patent/JP6946733B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本開示は、少なくとも2種類の通信プロトコルが存在する複数のネットワーク同士の通信を中継装置が中継する技術に関する。 The present disclosure relates to a technique in which a relay device relays communication between a plurality of networks in which at least two types of communication protocols exist.

通信プロトコルが異なるネットワーク同士の通信を中継装置が中継する通信システムが知られている。例えば、特許文献1には、通信プロトコルが異なるネットワークとして、CANとイーサネットとの通信を中継装置が中継する技術が記載されている。CANはController Area Networkの略である。CANとイーサネットとは登録商標である。 A communication system in which a relay device relays communication between networks having different communication protocols is known. For example, Patent Document 1 describes a technique in which a relay device relays communication between CAN and Ethernet as a network having different communication protocols. CAN is an abbreviation for Controller Area Network. CAN and Ethernet are registered trademarks.

中継装置は、CANから受信するデータの形式をイーサネットの通信プロトコルに合わせて変換してイーサネットに送信し、イーサネットから受信するデータの形式をCANの通信プロトコルに合わせて変換してCANに送信する。 The relay device converts the format of the data received from the CAN according to the communication protocol of the Ethernet and transmits it to the Ethernet, and converts the format of the data received from the Ethernet according to the communication protocol of the CAN and transmits the data to the CAN.

特開2015−139093号公報Japanese Unexamined Patent Publication No. 2015-139093

特許文献1に開示されている技術のように、通信プロトコルが異なるネットワーク同士の通信を中継装置が中継する通信システムの場合、通信システムが起動するときに通信プロトコルが異なるネットワークのそれぞれが起動して通信が確立するまでに要する時間が異なることがある。 In the case of a communication system in which a relay device relays communication between networks having different communication protocols, such as the technology disclosed in Patent Document 1, when the communication system is activated, each of the networks having different communication protocols is activated. The time it takes to establish communication may vary.

この場合、先に通信が確立したネットワークから、まだ通信が確立してないネットワークにデータを送信すると、送信データを受信した中継装置が、送信先のネットワークにおける送信先の装置を特定できないために送信先の装置にデータを送信できないことがある。 In this case, when data is transmitted from the network for which communication has been established earlier to the network for which communication has not yet been established, the relay device that received the transmission data cannot identify the destination device in the destination network, so the data is transmitted. Data may not be sent to the destination device.

あるいは、中継装置が送信先のネットワークの装置を特定してデータを送信しても、送信先のネットワークの通信が確立していないために、送信先の装置がデータを受信できないことがある。 Alternatively, even if the relay device identifies the device of the destination network and transmits the data, the destination device may not be able to receive the data because the communication of the destination network is not established.

そこで、通信プロトコルが異なるネットワーク同士が通信する場合、通信システムが起動してから通信が確立するまでに要する時間が最も長いネットワークの通信が確立するまで、ネットワーク同士の通信を禁止することが考えられる。 Therefore, when networks with different communication protocols communicate with each other, it is conceivable to prohibit communication between the networks until the communication of the network with the longest time required from the start of the communication system to the establishment of communication is established. ..

しかし、起動してから通信が確立するまでに要する時間が最も長いネットワークの通信が確立するまで、ネットワーク同士の通信を禁止すると、通信システムが起動して通信が開始されるまでに要する時間が長くなるという課題がある。 However, if communication between networks is prohibited until communication between networks is established, which takes the longest time from startup to establishment of communication, it takes a long time for the communication system to start and communication to start. There is a problem of becoming.

本開示は、少なくとも2種類の通信プロトコルが異なる複数のネットワーク同士の通信を中継装置が中継する通信システムが起動するときに、極力早くネットワーク同士の通信を開始する技術を提供する。 The present disclosure provides a technique for starting communication between networks as soon as possible when a communication system in which a relay device relays communication between a plurality of networks having at least two different communication protocols is activated.

本開示の通信システム(2、50)は、少なくとも2種類の通信プロトコルが存在する複数のネットワーク(4〜8、52〜56)のそれぞれに接続する電子制御装置(10、20、60、70)と、複数のネットワーク間の通信を中継する中継装置(40、80)と、を備えている。 The communication system (2, 50) of the present disclosure is an electronic control device (10, 20, 60, 70) connected to each of a plurality of networks (4 to 8, 52 to 56) in which at least two types of communication protocols exist. And a relay device (40, 80) that relays communication between a plurality of networks.

中継装置は、第1の通信部(46、86、S402〜S410、S442〜S446)と、状態取得部(44、84、S404、S408、S444)と、第1の制御部(42、82、S402〜S410、S442〜S446)とを備えている。 The relay device includes a first communication unit (46, 86, S402 to S410, S442-S446), a state acquisition unit (44, 84, S404, S408, S444), and a first control unit (42, 82, S402 to S410, S442 to S446).

電子制御装置は、第2の通信部(14、24、64、74、S422、S428、S430、S436、S452、S458)と、第2の制御部(12、22、62、72、S422、S424、S428〜S432、S436、S452、S454、S458)と、を備えている。 The electronic control device includes a second communication unit (14, 24, 64, 74, S422, S428, S430, S436, S452, S458) and a second control unit (12, 22, 62, 72, S422, S424). , S428 to S432, S436, S452, S454, S458).

中継装置の第1の通信部は電子制御装置と通信する。中継装置の状態取得部は、複数のネットワークのそれぞれの通信状態を取得する。中継装置の第1の制御部は、複数のネットワークの少なくともいずれかが起動するときに、状態取得部が取得する通信状態に基づき、通信が確立しているネットワークに接続する電子制御装置に、通信が確立していなかったネットワークの通信が確立したことを第1の通信部から送信する。 The first communication unit of the relay device communicates with the electronic control device. The state acquisition unit of the relay device acquires the communication status of each of the plurality of networks. When at least one of the plurality of networks is activated, the first control unit of the relay device communicates with the electronic control device connected to the network to which communication is established based on the communication state acquired by the state acquisition unit. The first communication unit transmits that the communication of the network that has not been established is established.

電子制御装置の第2の通信部は、他のネットワークに接続する電子制御装置と中継装置を介して通信する。電子制御装置の第2の制御部は、第2の通信部による通信を制御する。 The second communication unit of the electronic control device communicates with the electronic control device connected to another network via the relay device. The second control unit of the electronic control device controls the communication by the second communication unit.

本開示の中継装置(40、80)は、少なくとも2種類の通信プロトコルが存在する複数のネットワーク(4〜8、52〜56)間の通信を中継する車載の中継装置であって、通信部(46、86、S402〜S410、S442〜S446)と、状態取得部(44、84、S404、S408、S444)と、制御部(42、82、S402〜S410、S442〜S446)と、を備えている。 The relay device (40, 80) of the present disclosure is an in-vehicle relay device that relays communication between a plurality of networks (4 to 8, 52 to 56) in which at least two types of communication protocols exist, and is a communication unit (communication unit (40, 80). 46, 86, S402 to S410, S442-S446), a state acquisition unit (44, 84, S404, S408, S444), and a control unit (42, 82, S402 to S410, S442-S446). There is.

通信部は、複数のネットワークのそれぞれに接続する電子制御装置(10、20、60、70)と通信する。状態取得部は、複数のネットワークのそれぞれの通信状態を取得する。制御部は、複数のネットワークの少なくともいずれかが起動するときに、状態取得部が取得する通信状態に基づき、通信が確立しているネットワーク(4、52)に接続する電子制御装置(10、60)に、通信が確立していなかったネットワーク(6、8、54、56)の通信が確立したことを通信部から送信する。 The communication unit communicates with electronic control devices (10, 20, 60, 70) connected to each of the plurality of networks. The status acquisition unit acquires the communication status of each of the plurality of networks. The control unit is an electronic control device (10, 60) that connects to a network (4,52) for which communication is established based on the communication state acquired by the state acquisition unit when at least one of a plurality of networks is activated. ), The communication unit transmits that the communication of the network (6, 8, 54, 56) for which the communication has not been established has been established.

本開示の電子制御装置(10、60)は、少なくとも2種類の通信プロトコルが存在する複数のネットワーク(4〜8、52〜56)の少なくともいずれかに接続する車載の電子制御装置であって、通信部(14、64、S422、S428、S430、S436、S452、S458)と、制御部(12、62、S422、S424、S428〜S432、S436、S452、S454、S458)とを備えている。 The electronic control device (10, 60) of the present disclosure is an in-vehicle electronic control device connected to at least one of a plurality of networks (4 to 8, 52 to 56) in which at least two types of communication protocols exist. It includes a communication unit (14, 64, S422, S428, S430, S436, S452, S458) and a control unit (12, 62, S422, S424, S428 to S432, S436, S452, S454, S458).

通信部は、他のネットワーク(6、8、54、56)に接続する電子制御装置(20、70)と中継装置(40、80)を介して通信する。制御部は、通信部が中継装置から他のネットワークの通信が確立したことを受信すると、通信が確立した他のネットワークとの通信を通信部により開始する。 The communication unit communicates with an electronic control device (20, 70) connected to another network (6, 8, 54, 56) via a relay device (40, 80). When the communication unit receives from the relay device that communication of another network has been established, the control unit starts communication with the other network for which communication has been established by the communication unit.

これら本開示の通信システムと中継装置と電子制御装置との構成によれば、通信が確立しているネットワークに接続する電子制御装置は、通信が確立していなかったネットワークの通信が確立したことを中継装置から通知される。これにより、通信が確立しているネットワークに接続する電子制御装置は、通信が確立していなかったネットワークの通信が確立すると、通信が確立したネットワークに接続する電子制御装置と速やかに通信を開始できる。 According to the configuration of the communication system, the relay device, and the electronic control device of the present disclosure, the electronic control device connected to the network in which the communication has been established means that the communication in the network in which the communication has not been established has been established. Notified by the relay device. As a result, the electronic control device connected to the network with established communication can promptly start communication with the electronic control device connected to the network with established communication when the communication of the network for which communication has not been established is established. ..

尚、特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本開示の技術的範囲を限定するものではない。 The reference numerals in parentheses described in the claims indicate, as one embodiment, the correspondence with the specific means described in the embodiments described later, and limit the technical scope of the present disclosure. is not it.

第1実施形態による通信システムを示すブロック図。The block diagram which shows the communication system by 1st Embodiment. 第1実施形態による通信制御処理を示すタイムチャート。A time chart showing communication control processing according to the first embodiment. 第1実施形態の中継装置による通信制御処理を示すフローチャート。The flowchart which shows the communication control processing by the relay device of 1st Embodiment. 第1実施形態のECUによる通信制御処理を示すフローチャート。The flowchart which shows the communication control processing by the ECU of 1st Embodiment. 第2実施形態による通信システムを示すブロック図。The block diagram which shows the communication system by 2nd Embodiment. 第2実施形態の中継装置による通信制御処理を示すフローチャート。The flowchart which shows the communication control processing by the relay device of 2nd Embodiment. 第2実施形態のECUによる通信制御処理を示すフローチャート。The flowchart which shows the communication control processing by the ECU of 2nd Embodiment.

以下、本開示が適用された実施形態を図に基づいて説明する。
[1.第1実施形態]
[1−1.構成]
図1に示す通信システム2は、CAN4に接続する電子制御装置10と、イーサネット6、8に接続する電子制御装置20と、イーサネットスイッチ30と、中継装置40とを備えている。電子制御装置をECUとも言う。図1では、イーサネットスイッチをSWで示している。
Hereinafter, embodiments to which the present disclosure has been applied will be described with reference to the drawings.
[1. First Embodiment]
[1-1. composition]
The communication system 2 shown in FIG. 1 includes an electronic control device 10 connected to CAN 4, an electronic control device 20 connected to Ethernet 6 and 8, an Ethernet switch 30, and a relay device 40. The electronic control unit is also called an ECU. In FIG. 1, the Ethernet switch is indicated by SW.

図1には、CAN4に接続する4個のECU10と、イーサネット6、8にそれぞれ3個接続する合計6個のECU20とを示しているが、図示以外の個数のECU10がCAN4に接続してもよいし、図示以外の個数のECU20がイーサネット6、8に接続してもよい。4個のECU10の構成は実質的に同じであり、6個のECU20の構成は実質的に同じであるから、一つのECU10の構成と一つのECU20の構成とだけを示している。 FIG. 1 shows four ECUs 10 connected to CAN4 and a total of six ECUs 20 connected to Ethernet 6 and 8 respectively, but even if a number of ECUs 10 (not shown) are connected to CAN4, Alternatively, a number of ECUs 20 (not shown) may be connected to Ethernet 6 and 8. Since the configurations of the four ECUs 10 are substantially the same and the configurations of the six ECUs 20 are substantially the same, only the configuration of one ECU 10 and the configuration of one ECU 20 are shown.

ECU10とECU20と中継装置40とはそれぞれ、CPU、RAM、ROM、および通信インターフェース等を備えるマイクロコンピュータを搭載している。ECU10とECU20と中継装置40とは、それぞれ1個のマイクロコンピュータを搭載してもよいし、複数のマイクロコンピュータを搭載してもよい。 The ECU 10, the ECU 20, and the relay device 40 are each equipped with a microcomputer having a CPU, RAM, ROM, a communication interface, and the like. The ECU 10, the ECU 20, and the relay device 40 may each be equipped with one microcomputer, or may be equipped with a plurality of microcomputers.

ROMとRAMとフラッシュメモリとは、非遷移的実体的記録媒体である半導体メモリである。ECU10とECU20と中継装置40との各種機能は、CPUが非遷移的実体的記録媒体に記憶されているプログラムを実行することにより実現される。このプログラムをCPUが実行することで、プログラムに対応する方法が実行される。 ROM, RAM, and flash memory are semiconductor memories that are non-transitional substantive recording media. Various functions of the ECU 10, the ECU 20, and the relay device 40 are realized by the CPU executing a program stored in a non-transitional substantive recording medium. When the CPU executes this program, the method corresponding to the program is executed.

ECU10とECU20と中継装置40との各種機能を実現する手法は、ソフトウェアに限るものではなく、その一部または全部の要素を、論理回路やアナログ回路等を組み合わせたハードウェアを用いてもよい。 The method for realizing various functions of the ECU 10 and the ECU 20 and the relay device 40 is not limited to software, and hardware in which a part or all of the elements are combined with a logic circuit, an analog circuit, or the like may be used.

ECU10は、制御部12と通信部14とを備えている。制御部12は、ECU10毎に定められた処理を実行する。さらに、制御部12は、通信部14が同じCAN4に接続するECU10と通信すること、ならびにCAN4とは通信プロトコルが異なるネットワークであるイーサネット6、8に接続するECU20と中継装置40を介して通信することを制御する。 The ECU 10 includes a control unit 12 and a communication unit 14. The control unit 12 executes a process determined for each ECU 10. Further, the control unit 12 communicates with the ECU 10 connected to the same CAN 4 by the communication unit 14, and communicates with the ECU 20 connected to Ethernet 6 and 8 which are networks having different communication protocols from the CAN 4 via the relay device 40. Control that.

CAN4に接続するECU10がイーサネット6、8に接続するECU20に個別にデータを送信する場合、イーサネット6、8に接続するECU20のそれぞれに対応して設定されたCANIDによって送信先のECU20が指定される。 When the ECU 10 connected to the CAN 4 individually transmits data to the ECU 20 connected to the Ethernet 6 and 8, the destination ECU 20 is specified by the CANID set corresponding to each of the ECU 20 connected to the Ethernet 6 and 8. ..

ECU20は、制御部22と通信部24とを備えている。制御部22は、ECU20毎に定められた処理を実行する。さらに、制御部22は、通信部24が同じイーサネット6、8に接続するECU20と通信すること、ならびにイーサネット6、8とは通信プロトコルが異なるネットワークであるCAN4に接続するECU10と中継装置40を介して通信することを制御する。 The ECU 20 includes a control unit 22 and a communication unit 24. The control unit 22 executes a process determined for each ECU 20. Further, the control unit 22 communicates with the ECU 20 connected to the same Ethernet 6 and 8 by the communication unit 24, and via the ECU 10 and the relay device 40 connected to CAN 4 which is a network having a communication protocol different from that of the Ethernet 6 and 8. Control communication.

イーサネット6、8に接続するECU20がCAN4に接続するECU10に個別にデータを送信する場合、CAN4に接続するECU10のそれぞれに対応して設定されたMACアドレスによって送信先のECU10が指定される。 When the ECU 20 connected to the Ethernet 6 and 8 individually transmits data to the ECU 10 connected to the CAN 4, the destination ECU 10 is specified by the MAC address set corresponding to each of the ECU 10 connected to the CAN 4.

イーサネットスイッチ30は、中継装置40と、イーサネットスイッチ30と同じイーサネット6またはイーサネット8に接続するECU20とのそれぞれのMACアドレスとイーサネットポートとの対応テーブルを作成している。 The Ethernet switch 30 creates a corresponding table of MAC addresses and Ethernet ports of the relay device 40 and the ECU 20 connected to the same Ethernet 6 or Ethernet 8 as the Ethernet switch 30.

イーサネットスイッチ30は、MACアドレスとイーサネットポートとの対応テーブルに基づき、ECU20または中継装置40から送信されたイーサネットフレームを、送信先のMACアドレスに対応するイーサネットポートに送信する。 The Ethernet switch 30 transmits an Ethernet frame transmitted from the ECU 20 or the relay device 40 to the Ethernet port corresponding to the destination MAC address based on the correspondence table between the MAC address and the Ethernet port.

中継装置40は、制御部42と状態取得部44と通信部46とを備えている。制御部42は、CAN4に接続するECU10、あるいはイーサネット6、8に接続するECU20の一方からECU10またはECU20の他方宛に送信される通信データを、送信先のネットワークの通信プロトコルに合わせて中継処理する。 The relay device 40 includes a control unit 42, a state acquisition unit 44, and a communication unit 46. The control unit 42 relays communication data transmitted from one of the ECU 10 connected to the CAN 4 or the ECU 20 connected to the Ethernet 6 and 8 to the ECU 10 or the other of the ECU 20 in accordance with the communication protocol of the transmission destination network. ..

さらに、制御部42は、CAN4とイーサネット6、8との少なくともいずれかが起動するとき、通信部46から状態取得部44が取得するイーサネット6、8の通信状態を、先に通信が確立しているCAN4に通知する。 Further, when at least one of the CAN 4 and the Ethernet 6 and 8 is activated, the control unit 42 first establishes the communication state of the Ethernet 6 and 8 acquired by the state acquisition unit 44 from the communication unit 46. Notify the current CAN4.

CAN4とイーサネット6、8との少なくともいずれかが起動するのは、例えば以下の(1)〜(3)の場合である。
(1)エンジンのスタートスイッチがオンになり、通信システム2が起動されてCAN4とイーサネット6、8とがすべて起動するとき。
At least one of CAN 4 and Ethernet 6 and 8 is activated, for example, in the following cases (1) to (3).
(1) When the start switch of the engine is turned on, the communication system 2 is started, and CAN4 and Ethernet 6 and 8 are all started.

(2)通信システム2全体に異常が発生し、通信システム2がリセットされて再起動することにより、CAN4とイーサネット6、8とがすべて起動するとき。
(3)イーサネット6、8との少なくともいずれかに異常が発生し、イーサネット6、8との少なくともいずれかがリセットされて再起動するとき。
(2) When an abnormality occurs in the entire communication system 2 and the communication system 2 is reset and restarted, so that the CAN 4 and the Ethernets 6 and 8 are all activated.
(3) When an abnormality occurs in at least one of Ethernet 6 and 8, and at least one of Ethernet 6 and 8 is reset and restarted.

状態取得部44は、CAN4、イーサネット6、8のそれぞれにおいて、起動が開始されてから通信が確立するまでの通信状態を通信部46から取得する。
通信部46は、CAN4のバスが接続するCANポートと、イーサネット6、8のバスがそれぞれ接続するイーサネットポートとを備えている。
The state acquisition unit 44 acquires the communication state from the communication unit 46 from the start of activation to the establishment of communication in each of CAN4, Ethernet 6 and 8.
The communication unit 46 includes a CAN port to which the CAN 4 bus is connected and an Ethernet port to which the Ethernet 6 and 8 buses are connected, respectively.

図2に示すように、通信システム2が起動されると、CAN4に接続しているECU10の制御部12と、イーサネット6、8に接続しているECU20の制御部22とは、それぞれの装置内のメモリチェック、制御部12、22と通信部14、24とに対する診断処理等の起動処理を実行する。 As shown in FIG. 2, when the communication system 2 is activated, the control unit 12 of the ECU 10 connected to the CAN 4 and the control unit 22 of the ECU 20 connected to the Ethernet 6 and 8 are in their respective devices. Memory check, start processing such as diagnostic processing for control units 12 and 22 and communication units 14 and 24 are executed.

ECU10は、起動を開始してから所定の通信マスク時間の間、通信部14による通信を禁止する。通信マスク時間は、ECU10毎のばらつきも含め、全てのECU10が起動を開始してからCAN通信ができるようになるまでに要する時間である。通信マスク時間が経過すると、制御部12は通信部14による通信を許可する。 The ECU 10 prohibits communication by the communication unit 14 for a predetermined communication mask time after the start-up is started. The communication mask time is the time required from when all the ECUs 10 start to start to enable CAN communication, including the variation for each ECU 10. When the communication mask time elapses, the control unit 12 allows the communication unit 14 to communicate.

ECU20は、起動処理が終了すると、ファーストリンクパルスバーストと呼ばれる連続したパルスを送出する。ファーストリンクパルスをFLPとも言う。
ECU20は、FLPバーストを送出することにより、ECU20の通信部24の通信モードと通信速度とを他のECU20に通知するネゴシエーションを実行する。中継装置40の通信部46も、イーサネット6、8のそれぞれにFLPバーストを送出する。これにより、ECU20と中継装置40とは、互いの通信モードと通信速度とを取得する。
When the start-up process is completed, the ECU 20 sends out a continuous pulse called a first link pulse burst. The first link pulse is also called FLP.
By sending an FLP burst, the ECU 20 executes negotiation to notify another ECU 20 of the communication mode and the communication speed of the communication unit 24 of the ECU 20. The communication unit 46 of the relay device 40 also sends an FLP burst to each of the Ethernet 6 and 8. As a result, the ECU 20 and the relay device 40 acquire each other's communication mode and communication speed.

中継装置40は、イーサネット6、8においてネゴシエーションが終了すると、イーサネット6、8において第1段階の通信確立が完了したと判断する。イーサネット6、8において第1段階の通信確立が完了すると、CAN4に接続するECU10からイーサネット6、8に接続するECU20にブロードキャスト通信ができる。 When the negotiation is completed in the Ethernet 6 and 8, the relay device 40 determines that the communication establishment in the first stage is completed in the Ethernet 6 and 8. When the first stage communication establishment is completed in the Ethernet 6 and 8, broadcast communication can be performed from the ECU 10 connected to the CAN 4 to the ECU 20 connected to the Ethernet 6 and 8.

第1段階の通信確立が完了すると、イーサネット6、8の各イーサネットスイッチ30は、ECU20からデータを受信することにより、ECU20のMACアドレスとイーサネットポートとの対応テーブルを作成する。イーサネットポートに接続している全てのECU20についてMACアドレスとイーサネットポートとの対応テーブルが完成すると、イーサネット6、8のそれぞれにおいて、ECU20同士が互いに個別の送信先を指定して通信できる第2段階の通信確立が完了する。 When the communication establishment in the first stage is completed, each of the Ethernet switches 30 of the Ethernet 6 and 8 receives data from the ECU 20 to create a correspondence table between the MAC address of the ECU 20 and the Ethernet port. When the correspondence table between the MAC address and the Ethernet port for all the ECUs 20 connected to the Ethernet port is completed, in each of the Ethernets 6 and 8, the ECUs 20 can communicate with each other by designating individual destinations. Communication establishment is completed.

イーサネット6、8において第2段階の通信確立が完了すると、イーサネット6、8に接続するECU20同士、ならびにCAN4に接続するECU10からイーサネット6、8に接続するECU20にユニキャスト通信ができる。 When the establishment of the second stage communication is completed in the Ethernet 6 and 8, unicast communication can be performed between the ECUs 20 connected to the Ethernet 6 and 8 and from the ECU 10 connected to the CAN 4 to the ECU 20 connected to the Ethernet 6 and 8.

CAN4が起動を開始してから通信確立が完了するまでに要する時間は、イーサネット6、8が起動を開始してから通信確立が完了するまでに要する時間よりも短い。つまり、例えば、通信システム2が起動され、CAN4とイーサネット6、8とが起動を開始すると、CAN4の方がイーサネット6、8よりも先に通信確立が完了する。 The time required from the start of CAN4 to the completion of communication establishment is shorter than the time required from the start of Ethernet 6 and 8 to the completion of communication establishment. That is, for example, when the communication system 2 is activated and the CAN 4 and the Ethernet 6 and 8 start to be activated, the communication establishment of the CAN 4 is completed before the Ethernet 6 and 8.

[1−2.処理]
通信システム2が実行する通信制御処理について図3、図4に基づいて説明する。図3は、中継装置40が実行する通信制御処理であり、図4はCAN4に接続するECU10が実行する通信制御処理である。
[1-2. process]
The communication control process executed by the communication system 2 will be described with reference to FIGS. 3 and 4. FIG. 3 is a communication control process executed by the relay device 40, and FIG. 4 is a communication control process executed by the ECU 10 connected to the CAN 4.

図3および図4の通信制御処理は、車両のスタートスイッチがオンになって電力が供給されるか、通信システム2に異常が発生し通信システム2が再起動されると実行される。
(1)中継装置40による通信制御処理
S400において制御部42は、中継装置40内のメモリチェック、診断処理などの起動処理を実行する。S402において制御部42は、通信部46と、イーサネットスイッチ30を介してイーサネット6、8のそれぞれに接続するECU20との通信を確立する処理を開始する。
The communication control process of FIGS. 3 and 4 is executed when the start switch of the vehicle is turned on and power is supplied, or when an abnormality occurs in the communication system 2 and the communication system 2 is restarted.
(1) Communication control processing by the relay device 40 In S400, the control unit 42 executes activation processing such as memory check and diagnostic processing in the relay device 40. In S402, the control unit 42 starts a process of establishing communication between the communication unit 46 and the ECU 20 connected to each of the Ethernet 6 and 8 via the Ethernet switch 30.

具体的には、制御部42は、イーサネット6、8のそれぞれに接続するECU20との間で、通信モードと通信速度とを互いに通知するネゴシエーションを通信部46により開始する。イーサネット6、8のそれぞれに接続するECU20も、ネゴシエーションを開始する。 Specifically, the control unit 42 starts negotiation with the ECU 20 connected to each of the Ethernet 6 and 8 by the communication unit 46 to notify each other of the communication mode and the communication speed. The ECU 20 connected to each of the Ethernet 6 and 8 also starts negotiation.

S404において状態取得部44は、イーサネット6、8のそれぞれの通信状態を通信部46から取得する。制御部42は、状態取得部44が取得するイーサネット6、8のそれぞれの通信状態に基づいて、イーサネット6、8でネゴシエーションが完了したか否かを判定する。 In S404, the state acquisition unit 44 acquires the respective communication states of the Ethernet 6 and 8 from the communication unit 46. The control unit 42 determines whether or not the negotiation with the Ethernet 6 and 8 is completed based on the communication states of the Ethernet 6 and 8 acquired by the state acquisition unit 44.

S404の判定がYesである、つまりネゴシエーションが完了して第1段階の通信確立が完了すると、S406において制御部42は、イーサネット6、8において第1段階の通信確立が完了したことを通信部46からCAN4に送信する。 When the determination in S404 is Yes, that is, when the negotiation is completed and the communication establishment in the first stage is completed, the control unit 42 in S406 indicates that the communication establishment in the first stage is completed in Ethernet 6 and 8. To CAN4.

次に、S408において制御部42は、イーサネットスイッチ30においてMACアドレスとイーサネットポートの対応テーブルが完成し、イーサネット6、8にそれぞれ接続するECU20同士が個別に通信できる第2段階の通信確立が完了したか否かを、状態取得部44が通信部46から取得するイーサネット6、8のそれぞれの通信状態に基づいて判定する。 Next, in S408, the control unit 42 completes the correspondence table between the MAC address and the Ethernet port in the Ethernet switch 30, and completes the second stage communication establishment in which the ECUs 20 connected to the Ethernets 6 and 8 can communicate with each other individually. Whether or not it is determined based on the respective communication states of the Ethernet 6 and 8 acquired by the state acquisition unit 44 from the communication unit 46.

S408の判定がYesである、つまり第2段階の通信確立が完了すると、S410において制御部42は、イーサネット6、8において第2段階の通信確立が完了したことを通信部46からCAN4に送信する。 When the determination in S408 is Yes, that is, when the second stage communication establishment is completed, the control unit 42 in S410 transmits to the CAN4 from the communication unit 46 that the second stage communication establishment is completed in Ethernet 6 and 8. ..

(2)ECU10による通信制御処理
S420において制御部12は、ECU10内のメモリチェック、診断処理などの起動処理を実行する。S420の起動処理が終了すると、S422において制御部12は、イーサネット6、8において第1段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信したか否かを判定する。
(2) Communication control processing by the ECU 10 In S420, the control unit 12 executes activation processing such as memory check and diagnostic processing in the ECU 10. When the activation process of S420 is completed, in S422, the control unit 12 determines whether or not the communication unit 14 has received information indicating that the first stage communication establishment has been completed in the Ethernet 6 and 8 from the relay device 40. ..

S422の判定がNoであり、S424の判定がYesである、つまり起動処理が終了してから所定時間が経過しても第1段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信しない場合、制御部12は、第1段階の通信確立が完了していないイーサネット6、8にデータを送信しない。そして、S426において制御部12は、フェール処理を実行する。 The determination in S422 is No, and the determination in S424 is Yes. That is, the communication unit 14 relays information indicating that the first stage communication establishment is completed even after a predetermined time has elapsed since the start processing was completed. When not receiving from the device 40, the control unit 12 does not transmit the data to the Ethernet 6 and 8 for which the communication establishment of the first stage has not been completed. Then, in S426, the control unit 12 executes a fail process.

制御部12は、フェール処理として、第1の通信確立が所定時間内で完了しなかったイーサネット6、8のいずれかと通信せずに実行できる処理を開始する。
S422の判定がYesである、つまり起動処理が終了してから所定時間内で、イーサネット6、8において第1段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信すると、S428において制御部12は、イーサネット6、8に接続するECU20に対するブロードキャストの送信データを中継装置40に送信する。
As a fail process, the control unit 12 starts a process that can be executed without communicating with any of the Ethernets 6 and 8 whose first communication establishment has not been completed within a predetermined time.
When the determination in S422 is Yes, that is, when the communication unit 14 receives information from the relay device 40 indicating that the first stage communication establishment has been completed in the Ethernet 6 and 8 within a predetermined time after the activation process is completed. , S428, the control unit 12 transmits the broadcast transmission data to the ECU 20 connected to the Ethernet 6 and 8 to the relay device 40.

各ECU10が送信するロードキャストの送信データは、例えばECU10内の時刻、ECU10の実行状態等である。
S430において制御部12は、イーサネット6、8において第2段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信したか否かを判定する。
Transmission data broadcast by each ECU 10 is transmitted to a time in the ECU 10, an execution state of the ECU 10.
In S430, the control unit 12 determines whether or not the communication unit 14 has received information indicating that the second stage communication establishment has been completed in the Ethernet 6 and 8 from the relay device 40.

S430の判定がNoであり、S432の判定がYesである、つまり第1段階の通信確立が完了してから所定時間内で第2段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信しない場合、制御部12は、第2段階の通信確立が完了していないイーサネット6、8に接続するECU20に対し個別のデータを送信しない。 The communication unit 14 provides information indicating that the determination in S430 is No and the determination in S432 is Yes, that is, the second stage communication establishment is completed within a predetermined time after the first stage communication establishment is completed. When not receiving from the relay device 40, the control unit 12 does not transmit individual data to the ECU 20 connected to the Ethernet 6 and 8 for which the communication establishment of the second stage has not been completed.

そして、S434において制御部12は、フェール処理を実行する。S434において実行されるフェール処理は、S426で実行されるフェール処理と実質的に同一である。
S430の判定がYesである、つまり第1段階の通信確立が完了してから所定時間内で、イーサネット6、8において第2段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信すると、S436において制御部12は、イーサネット6、8に接続する個別のECU20に対するユニキャストの送信データを中継装置40に送信する。
Then, in S434, the control unit 12 executes the fail process. The fail process performed in S434 is substantially the same as the fail process performed in S426.
The communication unit 14 relays information indicating that the determination in S430 is Yes, that is, the second stage communication establishment is completed in the Ethernet 6 and 8 within a predetermined time after the first stage communication establishment is completed. Upon receiving from 40, in S436, the control unit 12 transmits unicast transmission data to the individual ECUs 20 connected to the Ethernet 6 and 8 to the relay device 40.

[1−3.効果]
以上説明した第1実施形態では、以下の効果を得ることができる。
(1)車両のスタートスイッチがオンになって電力が供給され、通信システム2が起動してからイーサネット6、8よりも通信確立が早く完了するCAN4は、中継装置40からイーサネット6、8において上記の第1段階の通信確立、第2段階の通信確立が完了したことを通知される。
[1-3. effect]
In the first embodiment described above, the following effects can be obtained.
(1) The CAN4, which completes communication establishment earlier than Ethernet 6 and 8 after the vehicle start switch is turned on and power is supplied and communication system 2 is activated, is described above in Ethernet 6 and 8 from the relay device 40. You will be notified that the first stage communication establishment and the second stage communication establishment have been completed.

これにより、CAN4に接続するECU10は、通信確立が完了したイーサネット6、8に接続するECU20と、通信確立の各段階に対応した通信を極力早く実行できる。
(2)CAN4に接続するECU10は、イーサネット6、8において第1段階の通信確立、第2段階の通信確立が完了したことを通知されるまで、イーサネット6、8に接続するECU20に対して各段階に対応したデータを中継装置40に送信しない。
As a result, the ECU 10 connected to the CAN 4 can execute the communication corresponding to each stage of the communication establishment with the ECU 20 connected to the Ethernet 6 and 8 for which the communication establishment has been completed as quickly as possible.
(2) The ECU 10 connected to the CAN 4 is connected to the ECU 20 connected to the Ethernet 6 and 8 until notified that the first stage communication establishment and the second stage communication establishment are completed in the Ethernet 6 and 8. The data corresponding to the stage is not transmitted to the relay device 40.

これにより、イーサネット6、8が第1段階の通信の確立中のときに、中継装置40がCAN4に接続するECU10からイーサネット6、8に接続するECU20にブロードキャスト送信するデータを受信することを抑制できる。 As a result, it is possible to suppress the relay device 40 from receiving the data to be broadcast-transmitted from the ECU 10 connected to the CAN 4 to the ECU 20 connected to the Ethernet 6 and 8 when the Ethernet 6 and 8 are establishing the communication of the first stage. ..

あるいは、イーサネット6、8において第2段階の通信確立が完了する前に、中継装置40がCAN4に接続するECU10からイーサネット6、8に接続する個別のECU20に送信するデータを受信することを抑制できる。 Alternatively, it is possible to suppress the relay device 40 from receiving data transmitted from the ECU 10 connected to the CAN 4 to the individual ECUs 20 connected to the Ethernet 6 and 8 before the second stage communication establishment is completed in the Ethernet 6 and 8. ..

上記第1の実施形態では、通信システム2が通信システムに対応し、CAN4とイーサネット6、8とが通信プロトコルの異なるネットワークに対応し、制御部12が第2の制御部に対応し、通信部14が第2の通信部に対応し、制御部42が第1の制御部に対応し、状態取得部44が状態取得部に対応し、通信部46が第1の通信部に対応する。 In the first embodiment, the communication system 2 corresponds to the communication system, CAN4 and Ethernet 6 and 8 correspond to networks having different communication protocols, and the control unit 12 corresponds to the second control unit. 14 corresponds to the second communication unit, the control unit 42 corresponds to the first control unit, the state acquisition unit 44 corresponds to the state acquisition unit, and the communication unit 46 corresponds to the first communication unit.

また、S402〜S410が第1の制御部と第1の通信部とのそれぞれの処理に対応し、S404、S408が状態取得部の処理に対応する。
また、S422、S424、S428〜S432、S436が第2の制御部の処理に対応し、S422、S428、S430、S436が第2の通信部の処理に対応する。
Further, S402 to S410 correspond to the processing of the first control unit and the first communication unit, and S404 and S408 correspond to the processing of the state acquisition unit.
Further, S422, S424, S428 to S432, and S436 correspond to the processing of the second control unit, and S422, S428, S430, and S436 correspond to the processing of the second communication unit.

[2.第2実施形態]
[2−1.構成]
第2実施形態では、異なる通信プロトコルとして、第1実施形態のCAN4とイーサネット6、8とに限らない車載の通信システムについて説明する。
[2. Second Embodiment]
[2-1. composition]
In the second embodiment, as different communication protocols, an in-vehicle communication system not limited to CAN4 and Ethernet 6 and 8 of the first embodiment will be described.

図5に示す通信システム50は、第1のネットワーク52に接続するECU60と、第2のネットワーク54、56に接続するECU70と、中継装置80とを備えている。第2のネットワーク54、56の通信プロトコルは同じであり、第1のネットワーク52と、第2のネットワーク54、56との通信プロトコルは異なる。 The communication system 50 shown in FIG. 5 includes an ECU 60 connected to the first network 52, an ECU 70 connected to the second networks 54 and 56, and a relay device 80. The communication protocols of the second networks 54 and 56 are the same, and the communication protocols of the first network 52 and the second networks 54 and 56 are different.

ECU60の構成は実質的に同じであり、ECU70の構成は実質的に同じであるから、一つのECU60の構成と一つのECU70の構成とだけを示している。
車両のスタートスイッチがオンになって電力が供給され、通信システム50が起動されてから通信確立が完了するまでに要する時間は、第1のネットワーク52よりも第2のネットワーク54、56の方が長い。
Since the configuration of the ECU 60 is substantially the same and the configuration of the ECU 70 is substantially the same, only the configuration of one ECU 60 and the configuration of one ECU 70 are shown.
The time required from when the start switch of the vehicle is turned on to supply power and the communication system 50 is activated until the communication establishment is completed is longer in the second networks 54 and 56 than in the first network 52. long.

中継装置80は、第1のネットワーク52と第2のネットワーク54、56とのそれぞれのネットワーク間の通信を中継する。
第2実施形態のECU60の制御部62、通信部64、ECU70の制御部72、通信部74、中継装置80の制御部82、状態取得部84、通信部86は、第1実施形態のECU10の制御部12、通信部14、ECU20の制御部22、通信部24、中継装置40の制御部42、状態取得部44、通信部46のそれぞれと対応しており実質的な構成は同じであるから、ECU60、70、中継装置80の構成ついての説明は省略する。
The relay device 80 relays communication between the first network 52 and the second networks 54 and 56, respectively.
The control unit 62, the communication unit 64, the control unit 72 of the ECU 70, the communication unit 74, the control unit 82 of the relay device 80, the state acquisition unit 84, and the communication unit 86 of the second embodiment are the ECU 10 of the first embodiment. It corresponds to each of the control unit 12, the communication unit 14, the control unit 22 of the ECU 20, the communication unit 24, the control unit 42 of the relay device 40, the state acquisition unit 44, and the communication unit 46, and the substantial configuration is the same. , The description of the configurations of the ECUs 60 and 70 and the relay device 80 will be omitted.

[2−2.処理]
第2実施形態の通信システム50が実行する通信制御処理について図6、図7に基づいて説明する。図6は、中継装置80が実行する通信制御処理であり、図7は第1のネットワーク52に接続するECU60が実行する通信制御処理である。
[2-2. process]
The communication control process executed by the communication system 50 of the second embodiment will be described with reference to FIGS. 6 and 7. FIG. 6 is a communication control process executed by the relay device 80, and FIG. 7 is a communication control process executed by the ECU 60 connected to the first network 52.

(1)中継装置80による通信制御処理
S440において制御部82は、中継装置80内のメモリチェック、診断処理などの起動処理を実行する。S442において制御部82は、通信部86と、第2のネットワーク54、56のそれぞれに接続するECU70との通信を確立する処理を開始する。
(1) Communication control processing by the relay device 80 In S440, the control unit 82 executes activation processing such as memory check and diagnostic processing in the relay device 80. In S442, the control unit 82 starts a process of establishing communication between the communication unit 86 and the ECU 70 connected to each of the second networks 54 and 56.

S444において状態取得部84は、第2のネットワーク54、56のそれぞれの通信状態を通信部86から取得する。制御部82は、状態取得部84が取得する第2のネットワーク54、56のそれぞれの通信状態に基づいて、第2のネットワーク54、56で通信確立が完了したか否かを判定する。 In S444, the state acquisition unit 84 acquires the respective communication states of the second networks 54 and 56 from the communication unit 86. The control unit 82 determines whether or not the communication establishment is completed in the second networks 54 and 56 based on the respective communication states of the second networks 54 and 56 acquired by the state acquisition unit 84.

S444の判定がYesである、つまり第2のネットワーク54、56において通信確立が完了すると、S446において制御部82は、第2のネットワーク54、56において通信確立が完了したことを通信部86から第1のネットワーク52に送信する。 When the determination in S444 is Yes, that is, when the communication establishment is completed in the second networks 54 and 56, the control unit 82 in S446 tells the communication unit 86 that the communication establishment is completed in the second networks 54 and 56. It is transmitted to the network 52 of 1.

(2)ECU60による通信制御処理
S450においてECU60は、装置内のメモリチェック、診断処理などの起動処理を実行する。S450の起動処理が終了すると、S452において制御部62は、第2のネットワーク54、56において通信確立が完了したことを示す情報を通信部64が中継装置80から受信したか否かを判定する。
(2) Communication control process by the ECU 60 In the S450, the ECU 60 executes activation processes such as a memory check and a diagnostic process in the device. When the activation process of S450 is completed, in S452, the control unit 62 determines whether or not the communication unit 64 has received the information indicating that the communication establishment has been completed in the second networks 54 and 56 from the relay device 80.

S452の判定がNoであり、S454の判定がYesである、つまり起動処理が終了してから所定時間が経過しても第2のネットワーク54、56において通信確立が完了したことを示す情報を通信部64が中継装置80から受信しない場合、制御部62は、通信確立が完了していない第2のネットワーク54、56にデータを送信しない。そし、S456において制御部62は、フェール処理を実行する。 The determination in S452 is No, and the determination in S454 is Yes. That is, information indicating that the communication establishment is completed in the second networks 54 and 56 even after a predetermined time has elapsed since the start processing is completed is communicated. When the unit 64 does not receive data from the relay device 80, the control unit 62 does not transmit data to the second networks 54 and 56 for which communication establishment has not been completed. Then, in S456, the control unit 62 executes a fail process.

フェール処理として、第1のネットワーク52に接続するECU60は、通信確立が所定時間内で完了しなかった第2のネットワーク54、56のいずれかと通信せずに実行できる処理を開始する。 As a fail process, the ECU 60 connected to the first network 52 starts a process that can be executed without communicating with any of the second networks 54 and 56 whose communication establishment has not been completed within a predetermined time.

S452の判定がYesである、つまり起動処理が終了してから所定時間内で、第2のネットワーク54、56において通信確立が完了したことを示す情報を通信部64が中継装置80から受信すると、S458において制御部62は、第2のネットワーク54、56に接続するECU70に対する送信データを中継装置80に送信する。 When the determination in S452 is Yes, that is, when the communication unit 64 receives information from the relay device 80 indicating that the communication establishment has been completed in the second networks 54 and 56 within a predetermined time after the activation process is completed, In S458, the control unit 62 transmits the transmission data to the ECU 70 connected to the second networks 54 and 56 to the relay device 80.

[2−3.効果]
以上説明した第1実施形態では、以下の効果を得ることができる。
(1)車両のスタートスイッチがオンになって電力が供給され、通信システム50が起動してから第2のネットワーク54、56よりも通信確立が早く完了する第1のネットワーク52は、中継装置80から第2のネットワーク54、56において通信確立が完了したことを通知される。
[2-3. effect]
In the first embodiment described above, the following effects can be obtained.
(1) The first network 52, in which the start switch of the vehicle is turned on, power is supplied, and the communication establishment is completed earlier than the second networks 54 and 56 after the communication system 50 is activated, is the relay device 80. Notifies that the communication establishment is completed in the second networks 54 and 56.

これにより、第1のネットワーク52に接続するECU60は、通信確立が完了した第2のネットワーク54、56に接続するECU70との通信を極力早く実行できる。
(2)第1のネットワーク52に接続するECU60は、第2のネットワーク54、56において通信確立が完了したことを通知されるまで、第2のネットワーク54、56に接続するECU70に対する送信データを中継装置80に送信しない。
As a result, the ECU 60 connected to the first network 52 can execute communication with the ECU 70 connected to the second networks 54 and 56 for which communication establishment has been completed as quickly as possible.
(2) The ECU 60 connected to the first network 52 relays transmission data to the ECU 70 connected to the second networks 54 and 56 until it is notified that the communication establishment is completed in the second networks 54 and 56. Do not send to device 80.

これにより、第2のネットワーク54、56が通信の確立中のときに、中継装置80が第1のネットワーク52に接続するECU60から第2のネットワーク54、56に接続するECU70に送信するデータを受信することを抑制できる。 As a result, when the second networks 54 and 56 are establishing communication, the relay device 80 receives data to be transmitted from the ECU 60 connected to the first network 52 to the ECU 70 connected to the second networks 54 and 56. Can be suppressed.

上記第2の実施形態では、通信システム50が通信システムに対応し、第1のネットワーク52と第2のネットワーク54、56とが通信プロトコルの異なるネットワークに対応し、制御部62が第2の制御部に対応し、通信部64が第2の通信部に対応し、制御部82が第1の制御部に対応し、状態取得部84が状態取得部に対応し、通信部86が第1の通信部に対応する。 In the second embodiment, the communication system 50 corresponds to the communication system, the first network 52 and the second networks 54 and 56 correspond to networks having different communication protocols, and the control unit 62 controls the second. The communication unit 64 corresponds to the second communication unit, the control unit 82 corresponds to the first control unit, the state acquisition unit 84 corresponds to the state acquisition unit, and the communication unit 86 corresponds to the first unit. Corresponds to the communication unit.

また、S442〜S446が第1の制御部と第1の通信部とのそれぞれの処理に対応し、S444が状態取得部の処理に対応する。
また、S452、S454、S458が第2の制御部の処理に対応し、S452、S458が第2の通信部の処理に対応する。
Further, S442 to S446 correspond to the processing of the first control unit and the first communication unit, and S444 corresponds to the processing of the state acquisition unit.
Further, S452, S454, and S458 correspond to the processing of the second control unit, and S452 and S458 correspond to the processing of the second communication unit.

[3.他の実施形態]
(1)通信プロトコルが異なるネットワークとして2種類のネットワークではなく、3種類以上のネットワークで通信システムが構成されてもよい。この場合、最初に通信確立が完了したネットワークに接続するECUは、全てのネットワークの通信確立が完了するまで通信の開始を待機する必要はなく、通信確立が完了したネットワーク同士で通信を開始すればよい。
[3. Other embodiments]
(1) As a network having different communication protocols, the communication system may be configured not by two types of networks but by three or more types of networks. In this case, the ECU connected to the network for which communication establishment is completed first does not need to wait for the start of communication until the communication establishment for all networks is completed, and if the networks for which communication establishment is completed start communication with each other. good.

(2)上記実施形態では、通信確立が完了しているCAN4に接続するECU10、あるいは第1のネットワーク52に接続するECU60は、通信プロトコルが異なるイーサネット6、8、あるいは第2のネットワーク54、56の通信確立が完了するまで、イーサネット6、8、あるいは第2のネットワーク54、56に対する通信を待機している。 (2) In the above embodiment, the ECU 10 connected to the CAN 4 for which communication establishment has been completed, or the ECU 60 connected to the first network 52 has Ethernet 6, 8 or the second network 54, 56 having different communication protocols. It waits for communication to Ethernet 6, 8 or the second network 54, 56 until the communication establishment of the above is completed.

これに対し、通信確立が完了しているCAN4に接続するECU10、第1のネットワーク52に接続するECU60は、イーサネット6、8、あるいは第2のネットワーク54、56の通信確立が完了するのを待たずに、イーサネット6、8、あるいは第2のネットワーク54、56に対する通信を開始してもよい。この場合、送信側のECU10、60は、送信したデータに対する応答がないので、送信データは受信されなかったと判断する。 On the other hand, the ECU 10 connected to the CAN 4 for which the communication establishment has been completed and the ECU 60 connected to the first network 52 waited for the communication establishment of the Ethernet 6, 8 or the second networks 54, 56 to be completed. Instead, communication with Ethernet 6, 8 or the second networks 54, 56 may be initiated. In this case, since the transmitting side ECUs 10 and 60 do not respond to the transmitted data, it is determined that the transmitted data has not been received.

このように、通信確立が完了しているネットワークに接続するECU10、60が他のネットワークの通信確立が完了するのを待たずに他のネットワークに送信することにより、先に通信確立が完了するネットワークに接続するECU10、60の通信制御処理に、他のネットワークの通信確立が完了するのを待機する処理が不要になる。 In this way, the ECUs 10 and 60 connected to the network for which the communication establishment has been completed transmit to the other network without waiting for the communication establishment for the other network to be completed, so that the network for which the communication establishment is completed first. The communication control process of the ECUs 10 and 60 connected to the above eliminates the need for the process of waiting for the establishment of communication of another network to be completed.

(3)第1実施形態において、イーサネット6、8の少なくともいずれかに異常が発生し、異常が発生したイーサネット6、8がリセットされて再起動するとき、中継装置40は、異常が発生したイーサネット6、8の通信状態を取得し、取得した通信状態に基づいて、通信が確立していなかったイーサネット6、8の通信が確立したことを、CAN4に接続するECU10に送信してもよい。 (3) In the first embodiment, when an abnormality occurs in at least one of the Ethernet 6 and 8, and the Ethernet 6 and 8 in which the abnormality has occurred are reset and restarted, the relay device 40 causes the error Ethernet. The communication states of 6 and 8 may be acquired, and based on the acquired communication states, the establishment of communication of Ethernet 6 and 8 for which communication has not been established may be transmitted to the ECU 10 connected to CAN 4.

同様に、第2実施形態において、第2のネットワーク54、56の少なくともいずれかに異常が発生し、異常が発生した第2のネットワーク54、56がリセットされて再起動するとき、中継装置80は、異常が発生した第2のネットワーク54、56の通信状態を取得し、取得した通信状態に基づいて、通信が確立していなかった第2のネットワーク54、56の通信が確立したことを、第1のネットワーク52に接続するECU60に送信してもよい。 Similarly, in the second embodiment, when an abnormality occurs in at least one of the second networks 54, 56 and the second network 54, 56 in which the abnormality has occurred is reset and restarted, the relay device 80 is set. , The communication status of the second networks 54 and 56 in which the abnormality has occurred is acquired, and based on the acquired communication status, the communication of the second networks 54 and 56 in which the communication has not been established is established. It may be transmitted to the ECU 60 connected to the network 52 of 1.

(4)上記実施形態における一つの構成要素が有する機能を複数の構成要素として分散させたり、複数の構成要素が有する機能を一つの構成要素に統合させたりしてもよい。また、上記実施形態の構成の少なくとも一部を、同様の機能を有する公知の構成に置き換えてもよい。また、上記実施形態の構成の一部を、課題を解決できる限りにおいて省略してもよい。尚、特許請求の範囲に記載した文言のみによって特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。 (4) The functions of one component in the above embodiment may be dispersed as a plurality of components, or the functions of the plurality of components may be integrated into one component. Further, at least a part of the configuration of the above embodiment may be replaced with a known configuration having the same function. Further, a part of the configuration of the above embodiment may be omitted as long as the problem can be solved. It should be noted that all aspects included in the technical idea specified only by the wording described in the claims are embodiments of the present disclosure.

(5)上述した中継装置40、80および電子制御装置10、60、通信システム2、50の他、当該中継装置40、80または電子制御装置10、60としてコンピュータを機能させるための通信制御プログラム、この通信制御プログラムを記録した記録媒体、通信制御方法など、種々の形態で本開示を実現することもできる。 (5) In addition to the above-mentioned relay devices 40, 80 and electronic control devices 10, 60, communication systems 2, 50, a communication control program for operating a computer as the relay devices 40, 80 or electronic control devices 10, 60. The present disclosure can also be realized in various forms such as a recording medium on which this communication control program is recorded and a communication control method.

2、50:通信システム、4:CAN(ネットワーク)、6、8:イーサネット(ネットワーク)、10、20、60、70:ECU(電子制御装置)、12、82:制御部(第1の制御部)、14、84:状態取得部、16、86:通信部(第1の通信部)、22、72:制御部(第2の制御部)、24、74:通信部(第2の通信部)、40、80:中継装置 2, 50: Communication system, 4: CAN (network), 6, 8: Ethernet (network), 10, 20, 60, 70: ECU (electronic control unit), 12, 82: Control unit (first control unit) ), 14, 84: Status acquisition unit, 16, 86: Communication unit (first communication unit), 22, 72: Control unit (second control unit), 24, 74: Communication unit (second communication unit) ), 40, 80: Relay device

Claims (4)

少なくとも2種類の通信プロトコルが存在する複数のネットワーク(4〜8、52〜56)のそれぞれに接続する電子制御装置(10、20、60、70)と、
前記複数のネットワーク間の通信を中継する中継装置(40、80)と、
を備える車載の通信システム(2、50)であって、
前記中継装置は、
前記電子制御装置と通信するように構成された第1の通信部(46、86、S402〜S410、S442〜S446)と、
前記複数のネットワークのそれぞれの通信状態を取得するように構成された状態取得部(44、84、S404、S408、S444)と、
前記複数のネットワークの少なくともいずれかが起動するときに、前記状態取得部が取得する前記通信状態に基づき、通信が確立している前記ネットワークに接続する前記電子制御装置に、通信が確立していなかった前記ネットワークの通信が確立したことを前記第1の通信部から送信し、通信が確立していない前記ネットワークのことは送信しないように構成された第1の制御部(42、82、S402〜S410、S442〜S446)と、
を備え、
前記電子制御装置は、
他の前記ネットワークに接続する前記電子制御装置と前記中継装置を介して通信するように構成された第2の通信部(14、24、64、74、S422、S428、S430、S436、S452、S458)と、
前記第2の通信部による通信を制御し、自ネットワークの通信が確立している場合、通信が確立していなかった他の前記ネットワークの通信が確立したことを前記第2の通信部が前記中継装置から受信すると、通信が確立している他の前記ネットワークにデータを送信し、通信が確立したことを前記第2の通信部が前記中継装置から受信していない他の前記ネットワークにデータを送信しないように構成されている第2の制御部(12、22、62、72、S422、S424、S428〜S432、S436、S452、S454、S458)と、
を備える、
通信システム。
Electronic control devices (10, 20, 60, 70) connected to each of a plurality of networks (4 to 8, 52 to 56) in which at least two types of communication protocols exist, and
A relay device (40, 80) that relays communication between the plurality of networks, and
An in-vehicle communication system (2, 50) equipped with
The relay device is
A first communication unit (46, 86, S402 to S410, S442-S446) configured to communicate with the electronic control device, and
A state acquisition unit (44, 84, S404, S408, S444) configured to acquire the communication state of each of the plurality of networks, and
When at least one of the plurality of networks is activated, communication is not established in the electronic control device connected to the network in which communication is established based on the communication state acquired by the state acquisition unit. was said that the network of communication has been established transmitted from said first communication unit, the first control unit that the network that the communication has not been established, which is configured not to transmit (42, 82, S402 to S410, S442-S446) and
With
The electronic control device is
A second communication unit (14, 24, 64, 74, S422, S428, S430, S436, S452, S458) configured to communicate with the electronic control device connected to the other network via the relay device. )When,
When the communication by the second communication unit is controlled and the communication of the own network is established, the second communication unit relays that the communication of the other network for which the communication has not been established has been established. When received from the device, the data is transmitted to the other network for which communication has been established, and the second communication unit transmits data to the other network for which communication has not been received from the relay device. A second control unit (12, 22, 62, 72, S422, S424, S428 to S432, S436, S452, S454, S458) configured not to be used.
To prepare
Communications system.
請求項1に記載の通信システムであって、
通信が確立している前記ネットワークに接続する前記電子制御装置の前記第2の制御部(S424、S432、S454)は、所定時間内に前記中継装置から通信が確立していない他の前記ネットワークの通信が確立したことを前記第2の通信部が受信しないと、通信が確立していない他の前記ネットワークにデータを送信しないように構成されている、通信システム。
The communication system according to claim 1.
The second control unit (S424, S432, S454) of the electronic control device connected to the network in which communication is established is of another network in which communication is not established from the relay device within a predetermined time. A communication system configured so that data is not transmitted to the other network for which communication has not been established unless the second communication unit receives that communication has been established.
少なくとも2種類の通信プロトコルが存在する複数のネットワーク(4〜8、52〜56)間の通信を中継する車載の中継装置(40、80)であって、
前記複数のネットワークのそれぞれに接続する電子制御装置(10、20、60、70)と通信するように構成された通信部(46、86、S402〜S410、S442〜S
446)と、
前記複数のネットワークのそれぞれの通信状態を取得するように構成された状態取得部(44、84、S404、S408、S444)と、
前記複数のネットワークの少なくともいずれかが起動するときに、前記状態取得部が取得する前記通信状態に基づき、通信が確立している前記ネットワーク(4、52)に接続する前記電子制御装置(10、60)に、通信が確立していなかった前記ネットワーク(6、8、54、56)の通信が確立したことを前記通信部から送信し、通信が確立していない前記ネットワーク(6、8、54、56)のことは送信しないように構成された制御部(42、82、S402〜S410、S442〜S446)と、
を備える中継装置。
An in-vehicle relay device (40, 80) that relays communication between a plurality of networks (4 to 8, 52 to 56) in which at least two types of communication protocols exist.
Communication units (46, 86, S402 to S410, S442-S) configured to communicate with electronic control devices (10, 20, 60, 70) connected to each of the plurality of networks.
446) and
A state acquisition unit (44, 84, S404, S408, S444) configured to acquire the communication state of each of the plurality of networks, and
When at least one of the plurality of networks is activated, the electronic control device (10, The communication unit transmits to 60) that the communication of the network (6, 8, 54, 56) for which communication has not been established has been established, and the network (6, 8, 54) for which communication has not been established is transmitted. , 56) and the control units (42, 82, S402 to S410, S442-S446) configured not to transmit.
A relay device equipped with.
少なくとも2種類の通信プロトコルが存在する複数のネットワーク(4〜8、52〜56)の少なくともいずれかに接続する車載の電子制御装置(10、60)であって、
他の前記ネットワーク(6、8、54、56)に接続する前記電子制御装置(20、70)と中継装置(40、80)を介して通信するように構成された通信部(14、64、S422、S428、S430、S436、S452、S458)と、
前記通信部が前記中継装置から他の前記ネットワークの通信が確立したことを受信すると、通信が確立した前記他のネットワークとの通信を前記通信部により開始し、前記通信部が前記中継装置から通信が確立したことを受信していない他の前記ネットワークとの通信を前記通信部により開始しないように構成された制御部(12、62、S422、S424、S428〜S432、S436、S452、S454、S458)と、
を備える電子制御装置。
An in-vehicle electronic control device (10, 60) connected to at least one of a plurality of networks (4 to 8, 52 to 56) in which at least two types of communication protocols exist.
The electronic control device (20, 70) and RELAY device configured communication unit to communicate via the (40,80) connected to the other of said network (6,8,54,56) (14, 64 , S422, S428, S430, S436, S452, S458),
When the communication unit receives from the relay device that communication of the other network has been established, the communication unit starts communication with the other network for which communication has been established, and the communication unit communicates from the relay device. A control unit (12, 62, S422, S424, S428 to S432, S436, S452, S454, S458) configured so that the communication unit does not start communication with another network that has not received the establishment. )When,
An electronic control device comprising.
JP2017098202A 2017-05-17 2017-05-17 Communication system, relay device and electronic control device Active JP6946733B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017098202A JP6946733B2 (en) 2017-05-17 2017-05-17 Communication system, relay device and electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017098202A JP6946733B2 (en) 2017-05-17 2017-05-17 Communication system, relay device and electronic control device

Publications (2)

Publication Number Publication Date
JP2018195979A JP2018195979A (en) 2018-12-06
JP6946733B2 true JP6946733B2 (en) 2021-10-06

Family

ID=64571929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017098202A Active JP6946733B2 (en) 2017-05-17 2017-05-17 Communication system, relay device and electronic control device

Country Status (1)

Country Link
JP (1) JP6946733B2 (en)

Also Published As

Publication number Publication date
JP2018195979A (en) 2018-12-06

Similar Documents

Publication Publication Date Title
US7646708B2 (en) Network resource teaming combining receive load-balancing with redundant network connections
EP2663038B1 (en) Switch chip port management method, main control board, switch board, and system
CN102916857B (en) Stacking and splitting quick detection method and device
WO2014056135A1 (en) Port setting method, routing device, and computer program product
JP2011130205A (en) Information processing apparatus with multiple communication interfaces and control method
KR102286050B1 (en) Method for preventing diagnostic errors in vehicle network and apparatus for the same
JP5488183B2 (en) Communication apparatus and communication control method
CN112099464B (en) Communication method of Ethernet for vehicle
JP5212543B2 (en) Information processing apparatus and information processing apparatus control method
JPWO2020039844A1 (en) In-vehicle communication device and in-vehicle system
EP3042469B1 (en) Work mode negotiation
KR20160146055A (en) Operating method of a communication node in automotive network
EP3038296B1 (en) Pool element status information synchronization method, pool register and pool element
JP6946733B2 (en) Communication system, relay device and electronic control device
JP3908596B2 (en) Call server and its port switching method
US9100336B2 (en) Method for managing a switch chip port, main control board, switch board, and system
JP6981114B2 (en) Vehicle network system
JP6983839B2 (en) Control group and how the control group works
JP6992655B2 (en) Network control system and relay equipment
JP2004349961A (en) Repeating device and program
JP2006109258A (en) Communication method and communication apparatus
JP7225740B2 (en) repeater
JP2006197051A (en) Network communication control unit and method
JP2005341199A (en) Dhcp packet congestion control system and method therefor
JP6572779B2 (en) Communications system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200416

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210126

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210326

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210830

R151 Written notification of patent or utility model registration

Ref document number: 6946733

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151