[go: up one dir, main page]

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

Communication system, relay device and electronic control device Download PDF

Info

Publication number
JP2018195979A
JP2018195979A JP2017098202A JP2017098202A JP2018195979A JP 2018195979 A JP2018195979 A JP 2018195979A JP 2017098202 A JP2017098202 A JP 2017098202A JP 2017098202 A JP2017098202 A JP 2017098202A JP 2018195979 A JP2018195979 A JP 2018195979A
Authority
JP
Japan
Prior art keywords
communication
unit
network
networks
established
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017098202A
Other languages
Japanese (ja)
Other versions
JP6946733B2 (en
Inventor
昭宏 岡
Akihiro Oka
昭宏 岡
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

【課題】少なくとも2種類の通信プロトコルが異なる複数のネットワーク同士の通信を中継装置が中継する通信システムが起動するときに、極力早くネットワーク同士の通信を開始する。【解決手段】本開示の通信システム2は、少なくとも2種類の通信プロトコルが存在する複数のネットワーク2〜6のそれぞれに接続する電子制御装置10、70と、複数のネットワーク間の通信を中継する中継装置40と、を備えている。中継装置の第1の通信部46は電子制御装置と通信する。中継装置の状態取得部44は、複数のネットワークのそれぞれの通信状態を取得する。中継装置の第1の制御部46は、複数のネットワークの少なくともいずれかが起動するときに、状態取得部が取得する通信状態に基づき、通信が確立しているネットワークに接続する電子制御装置に、通信が確立していなかったネットワークの通信が確立したことを第1の通信部から送信する。【選択図】図1PROBLEM TO BE SOLVED: To start 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. A communication system 2 of the present disclosure relays communication between a plurality of networks and electronic control devices 10 and 70 connected to each of a plurality of networks 2 to 6 in which at least two types of communication protocols exist. The device 40 is provided. The first communication unit 46 of the relay device communicates with the electronic control device. The state acquisition unit 44 of the relay device acquires the communication status of each of the plurality of networks. The first control unit 46 of the relay device is an electronic control device that connects to a network for which communication is established based on the communication state acquired by the state acquisition unit when at least one of the plurality of networks is activated. The first communication unit transmits that the communication of the network for which the communication has not been established has been established. [Selection diagram] Fig. 1

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 networks 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 data received from the CAN according to the Ethernet communication protocol and transmits it to the Ethernet, and converts the format of data received from the Ethernet according to the CAN communication protocol and transmits it to the CAN.

特開2015−139093号公報Japanese Patent Laying-Open No. 2015-139093

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

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

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

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

しかし、起動してから通信が確立するまでに要する時間が最も長いネットワークの通信が確立するまで、ネットワーク同士の通信を禁止すると、通信システムが起動して通信が開始されるまでに要する時間が長くなるという課題がある。   However, if the communication between networks is prohibited until the communication of the network that takes the longest time from the start to the establishment of communication is established, the time required for the communication system to start and the communication to start is long. 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 different at least two types of 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 includes an electronic control device (10, 20, 60, 70) connected to each of a plurality of networks (4-8, 52-56) in which at least two types of communication protocols exist. And a relay device (40, 80) for relaying 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 to 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 unit 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 status acquisition unit of the relay device acquires the communication status of each of the plurality of networks. The first control unit of the relay device communicates with the electronic control device connected to the established network based on the communication state acquired by the state acquisition unit when at least one of the plurality of networks is activated. The first communication unit transmits that the communication of the network that has not been established has been 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 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-8, 52-56) in which at least two types of communication protocols exist, and includes a communication unit ( 46, 86, S402 to S410, S442 to S446), a state acquisition unit (44, 84, S404, S408, S444), and a control unit (42, 82, S402 to S410, S442 to S446). Yes.

通信部は、複数のネットワークのそれぞれに接続する電子制御装置(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 state acquisition unit acquires each communication state of the plurality of networks. When at least one of the plurality of networks is activated, the control unit is connected to the network (4, 52) with which communication is established based on the communication state acquired by the state acquisition unit (10, 60). ), The communication unit transmits that the communication of the network (6, 8, 54, 56) that 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 that connects to at least one of a plurality of networks (4-8, 52-56) in which at least two types of communication protocols exist, 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) are provided.

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

これら本開示の通信システムと中継装置と電子制御装置との構成によれば、通信が確立しているネットワークに接続する電子制御装置は、通信が確立していなかったネットワークの通信が確立したことを中継装置から通知される。これにより、通信が確立しているネットワークに接続する電子制御装置は、通信が確立していなかったネットワークの通信が確立すると、通信が確立したネットワークに接続する電子制御装置と速やかに通信を開始できる。   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 with which communication has been established indicates that communication of the network with which communication has not been established is established. Notification from the relay device. As a result, when the communication of the network that has not established communication is established, the electronic control device that is connected to the network that has established communication can immediately start communication with the electronic control device that is connected to the established network. .

尚、特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本開示の技術的範囲を限定するものではない。   In addition, the code | symbol in the parenthesis described in the claim shows the correspondence with the specific means as described in embodiment mentioned later as one aspect, Comprising: The technical scope of this indication is limited is not.

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

以下、本開示が適用された実施形態を図に基づいて説明する。
[1.第1実施形態]
[1−1.構成]
図1に示す通信システム2は、CAN4に接続する電子制御装置10と、イーサネット6、8に接続する電子制御装置20と、イーサネットスイッチ30と、中継装置40とを備えている。電子制御装置をECUとも言う。図1では、イーサネットスイッチをSWで示している。
Hereinafter, an embodiment to which the present disclosure is applied will be described with reference to the drawings.
[1. First Embodiment]
[1-1. Constitution]
The communication system 2 illustrated in FIG. 1 includes an electronic control device 10 connected to the CAN 4, an electronic control device 20 connected to the Ethernets 6 and 8, an Ethernet switch 30, and a relay device 40. The electronic control device is also referred to as 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 the CAN 4 and a total of six ECUs 20 connected to the Ethernets 6 and 8, respectively. Alternatively, a number of ECUs 20 other than those illustrated may be connected to the Ethernets 6 and 8. Since the configuration of the four ECUs 10 is substantially the same and the configuration of the six ECUs 20 is 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個のマイクロコンピュータを搭載してもよいし、複数のマイクロコンピュータを搭載してもよい。   Each of the ECU 10, ECU 20, and relay device 40 is equipped with a microcomputer including a CPU, a RAM, a ROM, a communication interface, and the like. Each of the ECU 10, the ECU 20, and the relay device 40 may be equipped with one microcomputer or a plurality of microcomputers.

ROMとRAMとフラッシュメモリとは、非遷移的実体的記録媒体である半導体メモリである。ECU10とECU20と中継装置40との各種機能は、CPUが非遷移的実体的記録媒体に記憶されているプログラムを実行することにより実現される。このプログラムをCPUが実行することで、プログラムに対応する方法が実行される。   ROM, RAM, and flash memory are semiconductor memories that are non-transitional tangible 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 the non-transitional physical recording medium. When the CPU executes this program, a method corresponding to the program is executed.

ECU10とECU20と中継装置40との各種機能を実現する手法は、ソフトウェアに限るものではなく、その一部または全部の要素を、論理回路やアナログ回路等を組み合わせたハードウェアを用いてもよい。   The method for realizing various functions of the ECU 10, the ECU 20, and the relay device 40 is not limited to software, and hardware in which some 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 via the relay device 40 with the ECU 20 connected to the Ethernets 6 and 8 which are networks having different communication protocols from the CAN 4. To control that.

CAN4に接続するECU10がイーサネット6、8に接続するECU20に個別にデータを送信する場合、イーサネット6、8に接続するECU20のそれぞれに対応して設定されたCANIDによって送信先のECU20が指定される。   When the ECU 10 connected to the CAN 4 transmits data individually to the ECU 20 connected to the Ethernets 6 and 8, the transmission destination ECU 20 is specified by the CANID set corresponding to each of the ECUs 20 connected to the Ethernets 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, 8 via the communication unit 24, and via the ECU 10 and the relay device 40 connected to the CAN 4, which is a network having a communication protocol different from that of the Ethernet 6, 8. To control communication.

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

イーサネットスイッチ30は、中継装置40と、イーサネットスイッチ30と同じイーサネット6またはイーサネット8に接続するECU20とのそれぞれのMACアドレスとイーサネットポートとの対応テーブルを作成している。   The Ethernet switch 30 creates a correspondence table between the MAC addresses and the 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 the 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 one of the ECUs 20 connected to the Ethernets 6 and 8 to the other side of the ECU 10 or the ECU 20 according to the communication protocol of the destination network. .

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

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

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

状態取得部44は、CAN4、イーサネット6、8のそれぞれにおいて、起動が開始されてから通信が確立するまでの通信状態を通信部46から取得する。
通信部46は、CAN4のバスが接続するCANポートと、イーサネット6、8のバスがそれぞれ接続するイーサネットポートとを備えている。
The state acquisition unit 44 acquires, from the communication unit 46, the communication state from the start of activation until communication is established in each of the CAN 4 and the Ethernets 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.

図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 Ethernets 6 and 8 are connected to each other. The memory check and the startup processing such as diagnosis processing for the control units 12 and 22 and the 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 starting activation. The communication mask time is the time required until CAN communication can be performed after all ECUs 10 start up, including variations among ECUs 10. When the communication mask time elapses, the control unit 12 permits communication by the communication unit 14.

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 continuous pulses called a first link pulse burst. The first link pulse is also called FLP.
ECU20 performs the negotiation which notifies the communication mode and communication speed of the communication part 24 of ECU20 to other ECU20 by sending a FLP burst. The communication unit 46 of the relay device 40 also sends an FLP burst to each of the Ethernets 6 and 8. Thereby, ECU20 and the relay apparatus 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 Ethernets 6 and 8, the relay device 40 determines that the first-stage communication establishment is completed in the Ethernets 6 and 8. When the first-stage communication establishment is completed on the Ethernets 6 and 8, broadcast communication can be performed from the ECU 10 connected to the CAN 4 to the ECU 20 connected to the Ethernets 6 and 8.

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

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

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

[1−2.処理]
通信システム2が実行する通信制御処理について図3、図4に基づいて説明する。図3は、中継装置40が実行する通信制御処理であり、図4はCAN4に接続するECU10が実行する通信制御処理である。
[1-2. processing]
Communication control processing executed by the communication system 2 will be described with reference to FIGS. 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 Relay Device 40 In S400, the control unit 42 executes start-up processing such as memory check and diagnosis processing in the relay device 40. In S <b> 402, the control unit 42 starts processing for establishing communication between the communication unit 46 and the ECU 20 connected to each of the Ethernets 6 and 8 via the Ethernet switch 30.

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

S404において状態取得部44は、イーサネット6、8のそれぞれの通信状態を通信部46から取得する。制御部42は、状態取得部44が取得するイーサネット6、8のそれぞれの通信状態に基づいて、イーサネット6、8でネゴシエーションが完了したか否かを判定する。   In S <b> 404, the state acquisition unit 44 acquires the communication states of the Ethernets 6 and 8 from the communication unit 46. The control unit 42 determines whether or not the negotiation has been completed on the Ethernets 6 and 8 based on the communication states of the Ethernets 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 first-stage communication establishment is completed, in S406, the control unit 42 indicates that the first-stage communication establishment is completed in the Ethernets 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 the second stage communication establishment that allows the ECUs 20 connected to the Ethernets 6 and 8 to communicate individually is completed. Is determined based on the respective communication states of the Ethernets 6 and 8 acquired from the communication unit 46 by the state acquisition unit 44.

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, in S410, the control unit 42 transmits from the communication unit 46 to the CAN 4 that the second-stage communication establishment is completed on the Ethernets 6 and 8. .

(2)ECU10による通信制御処理
S420において制御部12は、ECU10内のメモリチェック、診断処理などの起動処理を実行する。S420の起動処理が終了すると、S422において制御部12は、イーサネット6、8において第1段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信したか否かを判定する。
(2) Communication control process by ECU10 In S420, the control part 12 performs starting processes, such as a memory check in ECU10 and a diagnostic process. 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 on the Ethernets 6 and 8 from the relay device 40. .

S422の判定がNoであり、S424の判定がYesである、つまり起動処理が終了してから所定時間が経過しても第1段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信しない場合、制御部12は、第1段階の通信確立が完了していないイーサネット6、8にデータを送信しない。そして、S426において制御部12は、フェール処理を実行する。   The determination of S422 is No and the determination of 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 after the start-up process is completed. If not received from the device 40, the control unit 12 does not transmit data to the Ethernets 6 and 8 for which the first-stage communication establishment has not been completed. In step S426, the control unit 12 performs a fail process.

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

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

S430の判定がNoであり、S432の判定がYesである、つまり第1段階の通信確立が完了してから所定時間内で第2段階の通信確立が完了したことを示す情報を通信部14が中継装置40から受信しない場合、制御部12は、第2段階の通信確立が完了していないイーサネット6、8に接続するECU20に対し個別のデータを送信しない。   If the determination in S430 is No and the determination in S432 is Yes, that is, the communication unit 14 provides information indicating that 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 apparatus 40, the control part 12 does not transmit separate data with respect to ECU20 connected to Ethernet6,8 in which the communication establishment of the 2nd step is not completed.

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

[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 CAN 4 that completes establishment of communication earlier than the Ethernet 6 and 8 after the start switch of the vehicle is turned on and power is supplied and the communication system 2 is activated is transferred from the relay device 40 to the Ethernet 6 and 8. The first stage communication establishment and the second stage communication establishment are notified of completion.

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

これにより、イーサネット6、8が第1段階の通信の確立中のときに、中継装置40がCAN4に接続するECU10からイーサネット6、8に接続するECU20にブロードキャスト送信するデータを受信することを抑制できる。   Thereby, it is possible to suppress the relay device 40 from receiving data broadcast 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 is establishing the first-stage communication. .

あるいは、イーサネット6、8において第2段階の通信確立が完了する前に、中継装置40がCAN4に接続するECU10からイーサネット6、8に接続する個別のECU20に送信するデータを受信することを抑制できる。   Alternatively, it is possible to suppress the relay device 40 from receiving data to be transmitted from the ECU 10 connected to the CAN 4 to the individual ECU 20 connected to the Ethernet 6 or 8 before the second-stage communication establishment is completed on the Ethernet 6 or 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, the CAN 4 and the Ethernets 6 and 8 correspond to networks having different communication protocols, the control unit 12 corresponds to the second control unit, and the communication 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の通信部の処理に対応する。
S402 to S410 correspond to the processes of the first control unit and the first communication unit, and S404 and S408 correspond to the process of the state acquisition unit.
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. Constitution]
In the second embodiment, an in-vehicle communication system that is not limited to the CAN 4 and the Ethernets 6 and 8 of the first embodiment will be described as different communication protocols.

図5に示す通信システム50は、第1のネットワーク52に接続するECU60と、第2のネットワーク54、56に接続するECU70と、中継装置80とを備えている。第2のネットワーク54、56の通信プロトコルは同じであり、第1のネットワーク52と、第2のネットワーク54、56との通信プロトコルは異なる。   A 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 for the establishment of communication after the start switch of the vehicle is turned on to supply power and the communication system 50 is started 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.
The control unit 62, the communication unit 64, the control unit 72, 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 ECU 60 of the second embodiment are the same as those of the ECU 10 of the first embodiment. Since 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 correspond to each other, the substantial configuration is the same. 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. processing]
Communication control processing executed by the communication system 50 according to the second embodiment will be described with reference to FIGS. 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 Relay Device 80 In S440, the control unit 82 executes startup processing such as memory check and diagnosis processing in the relay device 80. In S442, the control unit 82 starts processing for 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 communication state of each of the second networks 54 and 56 from the communication unit 86. The control unit 82 determines whether or not communication establishment is completed in the second networks 54 and 56 based on the 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 communication establishment is completed in the second networks 54 and 56, in S446, the control unit 82 notifies the communication unit 86 that communication establishment is completed in the second networks 54 and 56. 1 to the network 52.

(2)ECU60による通信制御処理
S450においてECU60は、装置内のメモリチェック、診断処理などの起動処理を実行する。S450の起動処理が終了すると、S452において制御部62は、第2のネットワーク54、56において通信確立が完了したことを示す情報を通信部64が中継装置80から受信したか否かを判定する。
(2) Communication control processing by ECU 60 In S450, the ECU 60 executes startup processing such as memory check and diagnostic processing in the apparatus. When the activation process of S450 is completed, in S452, the control unit 62 determines whether the communication unit 64 has received information indicating that 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 communication establishment has been completed in the second networks 54 and 56 is communicated even if a predetermined time has elapsed after the start-up process is completed. When the unit 64 does not receive 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. In step S456, the control unit 62 performs 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 either of the second networks 54 and 56 for which 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 of S452 is Yes, that is, when the communication unit 64 receives from the relay device 80 information indicating that communication establishment is completed in the second networks 54 and 56 within a predetermined time after the start-up process is completed, In S <b> 458, the control unit 62 transmits transmission data for 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 that completes communication establishment earlier than the second networks 54 and 56 after the start switch of the vehicle is turned on and power is supplied and the communication system 50 is activated is the relay device 80. Notifies that the establishment of communication 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に送信しない。
Thereby, ECU60 connected to the 1st network 52 can perform communication with ECU70 connected to the 2nd networks 54 and 56 with which communication establishment was completed as soon 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 notified that the communication establishment is completed in the second networks 54 and 56. Not sent to device 80.

これにより、第2のネットワーク54、56が通信の確立中のときに、中継装置80が第1のネットワーク52に接続するECU60から第2のネットワーク54、56に接続するECU70に送信するデータを受信することを抑制できる。   Thereby, 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 performs the second control. 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 includes the first communication unit 86. Corresponds to the communication unit.

また、S442〜S446が第1の制御部と第1の通信部とのそれぞれの処理に対応し、S444が状態取得部の処理に対応する。
また、S452、S454、S458が第2の制御部の処理に対応し、S452、S458が第2の通信部の処理に対応する。
Moreover, S442-S446 respond | corresponds to each process of a 1st control part and a 1st communication part, and S444 respond | corresponds to the process of a state acquisition part.
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) The communication system may be configured by three or more types of networks instead of two types of networks with different communication protocols. In this case, it is not necessary for the ECU connected to the network where the communication establishment is completed first to wait for the start of the communication until the communication establishment of all the networks is completed. 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 the Ethernet 6, 8 or the second networks 54, 56 having different communication protocols. Until the establishment of the communication is completed, the communication with the Ethernet 6, 8 or the second network 54, 56 is awaited.

これに対し、通信確立が完了している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 whose communication has been established and the ECU 60 connected to the first network 52 waited for the communication establishment of the Ethernets 6 and 8 or the second networks 54 and 56 to be completed. Instead, communication with respect to the Ethernets 6 and 8 or the second networks 54 and 56 may be started. In this case, the transmission-side ECUs 10 and 60 determine that the transmission data has not been received because there is no response to the transmitted data.

このように、通信確立が完了しているネットワークに接続するECU10、60が他のネットワークの通信確立が完了するのを待たずに他のネットワークに送信することにより、先に通信確立が完了するネットワークに接続するECU10、60の通信制御処理に、他のネットワークの通信確立が完了するのを待機する処理が不要になる。   As described above, the ECU 10 or 60 connected to the network in which the communication has been established transmits to the other network without waiting for the communication establishment in the other network to be completed. In the communication control processing of the ECUs 10 and 60 connected to the network, processing for waiting for completion of communication establishment of other networks is not required.

(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 Ethernets 6 and 8, and the Ethernets 6 and 8 in which the abnormality has occurred are reset and restarted, the relay device 40 determines that the Ethernet in which the abnormality has occurred The communication statuses 6 and 8 may be acquired, and based on the acquired communication status, it may be transmitted to the ECU 10 connected to the CAN 4 that the communication of the Ethernets 6 and 8 that have not been established is established.

同様に、第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 and 56 and the second network 54 and 56 in which the abnormality has occurred is reset and restarted, the relay device 80 The communication status of the second networks 54 and 56 in which an abnormality has occurred is acquired, and the communication of the second networks 54 and 56 that has not been established is established based on the acquired communication status. It may be transmitted to the ECU 60 connected to one network 52.

(4)上記実施形態における一つの構成要素が有する機能を複数の構成要素として分散させたり、複数の構成要素が有する機能を一つの構成要素に統合させたりしてもよい。また、上記実施形態の構成の少なくとも一部を、同様の機能を有する公知の構成に置き換えてもよい。また、上記実施形態の構成の一部を、課題を解決できる限りにおいて省略してもよい。尚、特許請求の範囲に記載した文言のみによって特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。   (4) The functions of one component in the above embodiment may be distributed as a plurality of components, or the functions of a 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. Moreover, you may abbreviate | omit a part of structure of the said embodiment as long as a subject can be solved. In addition, all the aspects contained in the technical thought specified only by the wording described in the claim are embodiment of this indication.

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

少なくとも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の制御部(12、22、62、72、S422、S424、S428〜S432、S436、S452、S454、S458)と、
を備える、
通信システム。
An electronic control device (10, 20, 60, 70) connected to each of a plurality of networks (4-8, 52-56) having at least two types of communication protocols;
A relay device (40, 80) for relaying communication between the plurality of networks;
An in-vehicle communication system (2, 50) comprising:
The relay device is
A first communication unit (46, 86, S402 to S410, S442 to S446) configured to communicate with the electronic control unit;
A status acquisition unit (44, 84, S404, S408, S444) configured to acquire the communication status of each of the plurality of networks;
When at least one of the plurality of networks is activated, communication is not established with the electronic control unit connected to the network with which communication is established based on the communication state obtained by the state obtaining unit. A first control unit (42, 82, S402 to S410, S442 to S446) configured to transmit from the first communication unit that communication of the network has been established;
With
The electronic control device
Second communication units (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,
A second control unit (12, 22, 62, 72, S422, S424, S428 to S432, S436, S452, S454, S458) configured to control communication by the second communication unit;
Comprising
Communications system.
請求項1に記載の通信システムであって、
通信が確立している前記ネットワークに接続する前記電子制御装置の前記第2の制御部(S422、S424、S430、S432、S452、S454)は、通信が確立していない前記ネットワークにデータを送信しないように構成されている、
通信システム。
The communication system according to claim 1,
The second control unit (S422, S424, S430, S432, S452, S454) of the electronic control device connected to the network where communication is established does not transmit data to the network where communication is not established. Configured as
Communications system.
請求項1に記載の通信システムであって、
通信が確立している前記ネットワークに接続する前記電子制御装置の前記第2の制御部は、送信先の前記ネットワークの通信が確立していなくても、送信先の前記ネットワークに前記第2の通信部からデータを送信するように構成されている、
通信システム。
The communication system according to claim 1,
The second control unit of the electronic control device connected to the network with which the communication has been established has the second communication with the destination network even if the communication with the destination network has not been established. Configured to send data from the department,
Communications system.
請求項1から3のいずれか一項に記載の通信システムであって、
通信が確立している前記ネットワークに接続する前記電子制御装置の前記第2の制御部(S424、S432、S454)は、所定時間内に前記中継装置から通信が確立していない他の前記ネットワークの通信が確立したことを前記第2の通信部が受信しないと、通信が確立していない他の前記ネットワークにデータを送信しないように構成されている、
通信システム。
The communication system according to any one of claims 1 to 3,
The second control unit (S424, S432, S454) of the electronic control device that is connected to the network with which communication has been established is connected to the other network that has not established communication with the relay device within a predetermined time. If the second communication unit does not receive that communication has been established, the second communication unit is configured not to transmit data to the other network that has not established communication.
Communications system.
少なくとも2種類の通信プロトコルが存在する複数のネットワーク(4〜8、52〜56)間の通信を中継する車載の中継装置(40、80)であって、
前記複数のネットワークのそれぞれに接続する電子制御装置(10、20、60、70)と通信するように構成された通信部(46、86、S402〜S410、S442〜S446)と、
前記複数のネットワークのそれぞれの通信状態を取得するように構成された状態取得部(44、84、S404、S408、S444)と、
前記複数のネットワークの少なくともいずれかが起動するときに、前記状態取得部が取得する前記通信状態に基づき、通信が確立している前記ネットワーク(4、52)に接続する前記電子制御装置(10、60)に、通信が確立していなかった前記ネットワーク(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-8, 52-56) in which at least two types of communication protocols exist,
A communication unit (46, 86, S402 to S410, S442 to S446) configured to communicate with an electronic control device (10, 20, 60, 70) connected to each of the plurality of networks;
A status acquisition unit (44, 84, S404, S408, S444) configured to acquire the communication status of each of the plurality of networks;
When at least one of the plurality of networks is activated, based on the communication state acquired by the state acquisition unit, the electronic control device (10, 10) connected to the network (4, 52) in which communication is established 60), the control unit (42, 82, S402 to S410) configured to transmit from the communication unit that the communication of the network (6, 8, 54, 56) that has not been established is established. , S442 to S446),
A relay device comprising:
少なくとも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-8, 52-56) in which at least two types of communication protocols exist,
A communication unit (14, 64) configured to communicate with the electronic control device (20, 70) connected to the other network (6, 8, 54, 56) via the relay device (40, 80). S422, S428, S430, S436, S452, S458),
When the communication unit receives from the relay device that communication of the other network has been established, a control unit configured to start communication with the other network with which communication has been established by the communication unit (12, 62, S422, S424, S428 to S432, S436, S452, S454, S458),
An electronic control device comprising:
JP2017098202A 2017-05-17 2017-05-17 Communication system, relay device and electronic control device Expired - Fee Related 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 true JP2018195979A (en) 2018-12-06
JP6946733B2 JP6946733B2 (en) 2021-10-06

Family

ID=64571929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017098202A Expired - Fee Related 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)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002026957A (en) * 2000-07-13 2002-01-25 Denso Corp Multiplex communication system
JP2009272906A (en) * 2008-05-08 2009-11-19 Mitsubishi Electric Corp Message relaying apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002026957A (en) * 2000-07-13 2002-01-25 Denso Corp Multiplex communication system
JP2009272906A (en) * 2008-05-08 2009-11-19 Mitsubishi Electric Corp Message relaying apparatus

Also Published As

Publication number Publication date
JP6946733B2 (en) 2021-10-06

Similar Documents

Publication Publication Date Title
EP2663038B1 (en) Switch chip port management method, main control board, switch board, and system
JP5729269B2 (en) Failure diagnosis system and diagnosis support apparatus constituting failure diagnosis system
JP5099156B2 (en) Communication network system, relay terminal, microcomputer, transmission / reception device
JPWO2020039844A1 (en) In-vehicle communication device and in-vehicle system
CN101512984A (en) Cluster coupler unit and method for synchronizing a plurality of clusters in a time-triggered network
CN114731298B (en) Vehicle-mounted relay device and relay method
KR20160146055A (en) Operating method of a communication node in automotive network
JP6981114B2 (en) Vehicle network system
CN102870371A (en) Method for changing an operating state of at least one device
KR102355085B1 (en) Operation method of communication node for selective wakeup in vehicle network
JP6569547B2 (en) Communication method
US9100336B2 (en) Method for managing a switch chip port, main control board, switch board, and system
KR20160146048A (en) Operating method of a communication node in automotive network
JP6946733B2 (en) Communication system, relay device and electronic control device
JP6614096B2 (en) Relay device
US20130114647A1 (en) Communications relay system and relay device in the same
JP2004349961A (en) Repeating device and program
JP6337783B2 (en) In-vehicle network system
CN119316444A (en) In-vehicle network system, gateway device, and communication method
US11424957B2 (en) Relay device
JP4954832B2 (en) In-vehicle communication system
JP2020088568A (en) Electronic control device
JP2017114406A (en) Network system
JP2017126828A (en) Communications system
JP2015177365A (en) Communication node, communication system and communication method

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 Request for written amendment filed

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

LAPS Cancellation because of no payment of annual fees