JP7336074B2 - repeater - Google Patents

repeater Download PDF

Info

Publication number
JP7336074B2
JP7336074B2 JP2020036776A JP2020036776A JP7336074B2 JP 7336074 B2 JP7336074 B2 JP 7336074B2 JP 2020036776 A JP2020036776 A JP 2020036776A JP 2020036776 A JP2020036776 A JP 2020036776A JP 7336074 B2 JP7336074 B2 JP 7336074B2
Authority
JP
Japan
Prior art keywords
bus
repeater
communication
cgw
electronic control
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
JP2020036776A
Other languages
Japanese (ja)
Other versions
JP2021141406A (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.)
Suzuki Motor Corp
Original Assignee
Suzuki Motor 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 Suzuki Motor Corp filed Critical Suzuki Motor Corp
Priority to JP2020036776A priority Critical patent/JP7336074B2/en
Priority to DE102021104833.8A priority patent/DE102021104833A1/en
Publication of JP2021141406A publication Critical patent/JP2021141406A/en
Application granted granted Critical
Publication of JP7336074B2 publication Critical patent/JP7336074B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/36Repeater circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/03Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for supply of electrical power to vehicle subsystems or for
    • B60R16/0315Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for supply of electrical power to vehicle subsystems or for using multiplexing techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Description

本発明は、ネットワークシステムにおいて通信の中継を行う中継器に関する。 The present invention relates to a repeater that relays communications in a network system.

特許文献1に、外部機器に接続されて該外部機器から外部情報を取得するとともに、通信回線に接続されて該通信回線を介してCANプロトコルに規定される通信データに基づく情報通信を行う通信装置が記載されている。この通信装置は、前記外部機器から取得する外部情報に基づいて前記通信回線を介しての情報通信の要否を判断する通信要否判断部と、前記通信要否判断部による情報通信の要否の判断が「要」であること及び通信エラーが検出されることを条件に情報通信を一定期間停止してその一定期間が経過した後に情報通信を再開する一方、前記通信要否判断部による情報通信の要否の判断が「否」であることを条件に予め定めた送信再開条件が成立するまで通信データの送信を停止する通信制御部とを備えるとされている。 Patent Document 1 discloses a communication device that is connected to an external device to acquire external information from the external device, and that is connected to a communication line and performs information communication based on communication data defined by the CAN protocol via the communication line. is described. This communication device comprises: a communication necessity judgment unit for judging necessity of information communication via the communication line based on external information acquired from the external device; and necessity of information communication by the communication necessity judgment unit. information communication is suspended for a certain period of time on the condition that the judgment is "necessary" and a communication error is detected, and information communication is resumed after the certain period of time has passed, while the information by the communication necessity judgment unit and a communication control unit that stops transmission of communication data until a predetermined transmission resumption condition is established on the condition that the determination of necessity of communication is "no".

特許第5958975号公報Japanese Patent No. 5958975

従来の技術においては、早期のタイミングで再送が停止されず、中継器の負荷を低減することが難しいと考えられる。 In the conventional technology, retransmission is not stopped at an early timing, and it is considered difficult to reduce the load on the repeater.

本発明は、このような状況に鑑みてなされたものであって、再送停止のタイミングを制御して中継器の負荷を低減することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to reduce the load on repeaters by controlling the timing of stopping retransmission.

上記目的を達成するために、第1バスを通じて第1制御装置が接続されるとともに、第2バスを通じて第2制御装置が接続され、前記第1バスと前記第2バスとの間の中継を行う中継器は、前記第1制御装置から前記第2制御装置への通信について、前記第2制御装置から正常な応答信号が得られない通信失敗状態にあり、かつ前記第2バスにおける通信負荷が所定の負荷割合以下である状態が所定時間以上継続した場合に、前記第2バスの通信ステータスを変更する。 To achieve the above object, a first control device is connected through a first bus and a second control device is connected through a second bus to relay between the first bus and the second bus. The repeater is in a communication failure state in which a normal response signal cannot be obtained from the second control device for communication from the first control device to the second control device, and the communication load on the second bus is in a predetermined state. is continued for a predetermined time or longer, the communication status of the second bus is changed.

本発明によれば、再送停止のタイミングを制御して中継器の負荷を低減することができる。 According to the present invention, it is possible to reduce the load on the repeater by controlling the timing of stopping retransmission.

中継器とバスとの間で行われる通信を示す第1のシーケンス図である。FIG. 4 is a first sequence diagram showing communication that takes place between a repeater and a bus; 中継器とバスとの間で行われる通信を示す第2のシーケンス図である。FIG. 11 is a second sequence diagram showing communication that takes place between the repeater and the bus; 中継器とバスとの間で行われる通信を示す第3のシーケンス図である。FIG. 10 is a third sequence diagram showing communication that takes place between the repeater and the bus; 中継器とバスとの間で行われる通信を示す第4のシーケンス図である。FIG. 11 is a fourth sequence diagram showing communication that takes place between the repeater and the bus; 中継器と制御装置の接続関係を示す回路図である。It is a circuit diagram which shows the connection relationship of a repeater and a control apparatus. 中継器により行われる処理の流れを示すフローチャートである。4 is a flow chart showing the flow of processing performed by a repeater; 中継器と制御装置の接続関係を示す別の回路図である。It is another circuit diagram which shows the connection relationship of a repeater and a control apparatus.

以下、本発明を図示の実施の形態に基づいて説明する。ただし、本発明は、以下に説明する実施の形態によって限定されるものではない。 BEST MODE FOR CARRYING OUT THE INVENTION The present invention will be described below based on the illustrated embodiments. However, the present invention is not limited by the embodiments described below.

[第1実施形態]
自動車には一般に、複数のECU(Electronic Control Unit, 電子制御装置)が搭載されている。これらのECUが接続されてなる車載ネットワークには、複数のECU間の通信を取り持つ中継器が設けられている。この中継器は、セントラルゲートウェイ(Central Gateway)とも呼ばれる。
[First Embodiment]
Automobiles are generally equipped with a plurality of ECUs (Electronic Control Units). An in-vehicle network in which these ECUs are connected is provided with a repeater that mediates communication between a plurality of ECUs. This repeater is also called a Central Gateway.

ECU及び中継器は、ハードウェア構成として、プロセッサと記憶装置と通信ポートとを有している。 The ECU and relay have a processor, a storage device, and a communication port as hardware configurations.

中継器は、必要なバスに必要なメッセージを転送するため、自身に接続される各バスの判定を行ってその判定結果を保持している。バスの判定結果の初期値は「無」である。中継器は、あるバスを通して所定のメッセージすなわち判定対象メッセージを受信したときに、当該バスの判定結果を「有」へ更新する。判定結果「有」とは、当該バスに少なくとも1つのECUが接続されていることを意味する。中継器は、あらかじめ定められたルール(転送テーブル)を有しており、そのルールに従って、判定結果が「有」であるバスにのみメッセージを転送する一方、判定結果が「無」のバスにはメッセージの転送を行わない。 In order to transfer the required message to the required bus, the repeater determines each bus connected to itself and holds the determination result. The initial value of the determination result of the bus is "no". When a repeater receives a predetermined message, that is, a judgment target message through a certain bus, the repeater updates the judgment result of the bus to "present". A determination result of "yes" means that at least one ECU is connected to the bus. The repeater has a predetermined rule (forwarding table). According to the rule, the message is transferred only to the bus with the judgment result of "yes", while the message is transferred to the bus with the judgment result of "no". Do not forward messages.

図1及び図2を参照しながら、バスの判定について具体的に説明する。中継器CGWには、第1バスB1を通して第1電子制御装置ECU1が接続され、第2バスB2を通して第2電子制御装置ECU2が接続される。第2バスB2の判定結果の初期値は前述のとおり「無」である。 The determination of the bus will be specifically described with reference to FIGS. 1 and 2. FIG. The relay CGW is connected to the first electronic control unit ECU1 through the first bus B1, and to the second electronic control unit ECU2 through the second bus B2. The initial value of the determination result of the second bus B2 is "no" as described above.

第1バスB1には、第1電子制御装置ECU1以外の電子制御装置(不図示)も接続される。第1バスB1と、第1バスB1に接続される全ての電子制御装置とが、車載ネットワークの第1の系統を構成する。また、第2バスB2には、第2電子制御装置ECU2以外の電子制御装置(不図示)も接続される。第2バスB2と、第2バスB2に接続される全ての電子制御装置とが、車載ネットワークの第2の系統を構成する。第1の系統における通信プロトコルと、第2の系統における通信プロトコルとは同じであってもよいし、異なっていてもよい。中継器CGWはこのような系統間の通信の中継を行う。 An electronic control unit (not shown) other than the first electronic control unit ECU1 is also connected to the first bus B1. The first bus B1 and all the electronic control units connected to the first bus B1 constitute a first system of the in-vehicle network. An electronic control unit (not shown) other than the second electronic control unit ECU2 is also connected to the second bus B2. The second bus B2 and all the electronic control units connected to the second bus B2 constitute a second system of the in-vehicle network. The communication protocol in the first system and the communication protocol in the second system may be the same or different. The relay CGW relays such communication between systems.

まずステップST101にて、中継器CGWは第1電子制御装置ECU1から第1バスB1を通じて、第2バスB2への転送対象であるメッセージAを受信する。この時点で第2バスB2の判定結果が「無」であることから、中継器CGWがメッセージAを第2バスB2へ転送するステップST102は行われない。 First, in step ST101, the repeater CGW receives a message A to be transferred to the second bus B2 from the first electronic control unit ECU1 through the first bus B1. At this time, the determination result of the second bus B2 is "no", so step ST102 in which the repeater CGW transfers the message A to the second bus B2 is not performed.

ステップST103では、中継器CGWは、第2電子制御装置ECU2から第2バスB2を通じて、第1バスB1への転送対象であるメッセージBを受信する。この時点で第1バスB1の判定結果は「有」であるとする。 In step ST103, the repeater CGW receives the message B to be transferred to the first bus B1 from the second electronic control unit ECU2 through the second bus B2. Assume that the determination result of the first bus B1 is "present" at this time.

メッセージBを受信した中継器CGWは、ステップST104において、第2バスB2の判定結果を「有」へ変更する。さらに、同ステップにおいて中継器CGWは、第1バスB1の判定結果が「有」であることから、メッセージBを第1バスB1に転送する。 The repeater CGW that received the message B changes the determination result of the second bus B2 to "present" in step ST104. Further, in the same step, the repeater CGW transfers the message B to the first bus B1 because the determination result of the first bus B1 is "present".

ステップST105にて、第1電子制御装置ECU1はメッセージAの送信を新規に行う。すなわち、中継器CGWは、第1電子制御装置ECU1から第1バスB1を通じて、第2バスB2への転送対象であるメッセージAを受信する。 In step ST105, the first electronic control unit ECU1 transmits message A anew. That is, the repeater CGW receives the message A to be transferred to the second bus B2 from the first electronic control unit ECU1 through the first bus B1.

第2バスB2の判定結果が「有」であることから、ステップST106にて、中継器CGWはメッセージAを第2バスB2に転送する。このメッセージAは、ステップST105にて第1電子制御装置ECU1から新規に送信されたメッセージである。 Since the determination result of the second bus B2 is "present", the repeater CGW transfers the message A to the second bus B2 in step ST106. This message A is a message newly transmitted from the first electronic control unit ECU1 in step ST105.

ここで、ステップST106にてメッセージAの第2バスB2への転送が正常に完了しなかった場合、中継器CGWは、メッセージAの転送が正常に完了するまでメッセージAの転送処理を繰り返し行う。この状態を、中継器における再送状態と呼ぶ。メッセージAの転送が正常に完了しない理由として、第2バスB2に接続されるはずの、第2電子制御装置ECU2を含むすべての電子制御装置(ECU)が取り外されていること、第2バスB2に断線が生じていること等が挙げられる。取り外される可能性のある電子制御装置の例として、カーナビゲーション用のECUが挙げられる。 Here, if the transfer of message A to the second bus B2 is not normally completed in step ST106, the repeater CGW repeats the process of transferring message A until the transfer of message A is normally completed. This state is called a retransmission state in the repeater. The reason why the transfer of message A is not completed normally is that all the electronic control units (ECUs), including the second electronic control unit ECU2, that should be connected to the second bus B2 are removed, and that the second bus B2 disconnection occurs in the An example of an electronic control unit that may be removed is an ECU for car navigation.

再送処理が自動で停止されることはなく、中継器CGWにおける再送状態はメッセージAの転送が正常に完了するまで継続する。中継器の再送状態においては、通常の状態に比べて中継器の処理負荷が増すことから、中継器において他のメッセージの転送遅延等の問題が起きる懸念がある。 The resending process is not automatically stopped, and the resending state in the repeater CGW continues until the transfer of message A is successfully completed. In the retransmission state of the repeater, the processing load of the repeater increases compared to the normal state, so there is concern that problems such as transfer delay of other messages may occur in the repeater.

そこで、あるタイミングで再送状態を停止させる実施形態について図3を参照しながら説明する。前述のとおり、ステップST105にて、中継器CGWは、第1電子制御装置ECU1から第1バスB1を通じて、第2バスB2への転送対象であるメッセージAを受信する。第2バスB2の判定結果が「有」であるため、中継器CGWは、メッセージAを第2バスB2に転送しようとするが、何らかの理由で転送が正常に完了しなかったとする。つまり、第2制御装置から正常な応答信号が得られない通信失敗状態にある。そのため、ステップST201に示すように、メッセージAの再送が繰り返され、中継器CGWは再送状態となる。 Therefore, an embodiment in which the retransmission state is stopped at a certain timing will be described with reference to FIG. As described above, in step ST105, the repeater CGW receives the message A to be transferred to the second bus B2 from the first electronic control unit ECU1 through the first bus B1. Since the determination result of the second bus B2 is "present", the repeater CGW attempts to transfer the message A to the second bus B2, but the transfer is not completed normally for some reason. In other words, it is in a communication failure state in which a normal response signal cannot be obtained from the second control device. Therefore, as shown in step ST201, retransmission of message A is repeated, and the repeater CGW enters a retransmission state.

ステップST202において、再送状態にある中継器CGWは、第2バスB2のバス負荷(単位:%)を定期的に算出する。バス負荷については後述する。本ステップにて算出される複数のバス負荷はいずれも0%である。中継器CGWは、第2バスB2のバス負荷が0%である状態が所定時間(例えば10秒)にわたって継続していると認識する。 In step ST202, the repeater CGW in the retransmission state periodically calculates the bus load (unit: %) of the second bus B2. Bus load will be described later. A plurality of bus loads calculated in this step are all 0%. The repeater CGW recognizes that the state in which the bus load of the second bus B2 is 0% has continued for a predetermined time (for example, 10 seconds).

ステップST203において、中継器CGWは、第2バスB2の通信途絶を検出し、第2バスB2の判定結果を「有」から「無」へ変更する。これ以降、メッセージAの転送が行われることはない。すなわち中継器CGWの再送状態が終了する。 In step ST203, the repeater CGW detects communication interruption of the second bus B2 and changes the determination result of the second bus B2 from "present" to "absent." From now on, message A will not be forwarded. That is, the retransmission state of the repeater CGW ends.

バス負荷について説明する。中継器CGWは、自身に接続される各バスのバス負荷を定期的(例えば1秒おき)に計算する。バス負荷とは、次式に示すように、あるバスにおいて単位時間(例えば1秒)あたりの送受信可能なデータ容量に対する、単位時間あたりの実際に送受信したデータ量の割合である。
バス負荷[%]=100×(単位時間あたりの実際に送受信したデータ量[byte])/(単位時間あたりの送受信可能な全データ量[byte])
Bus load will be explained. The repeater CGW periodically (for example, every second) calculates the bus load of each bus connected to it. The bus load is the ratio of the amount of data actually transmitted/received per unit time to the amount of data that can be transmitted/received per unit time (for example, one second) on a given bus, as shown in the following equation.
Bus load [%] = 100 x (amount of data actually transmitted/received per unit time [byte])/(total amount of data that can be transmitted/received per unit time [byte])

図4に示すように、ステップST105における通信は正常に終了するため、バスB1のバス負荷Rは正の値として算出される。その一方で、ステップS201(再送状態)においては、第2バスB2への転送が正常に完了しない。すなわち、実際に送受信したデータ量は0であるため、第2バスB2のバス負荷Rは0%と算出される。 As shown in FIG. 4, the communication in step ST105 ends normally, so the bus load R1 of the bus B1 is calculated as a positive value. On the other hand, in step S201 (retransmission state), the transfer to the second bus B2 is not normally completed. That is, since the amount of data actually transmitted/received is 0, the bus load R2 of the second bus B2 is calculated as 0%.

バス負荷が0%であるということは、当該バスにおいて単位時間内にデータの正常な送受信が全く行われなかったことを意味する。 A bus load of 0% means that no normal data transmission/reception was performed on the bus within a unit time.

以上のように、中継器はバス負荷を算出する。転送処理が繰り返される再送状態においては、当該バスのバス負荷は0%と算出される。中継器は、バス負荷が0%である状態が所定時間にわたって継続する場合、当該バスの判定結果を「無」へ更新する。中継器は、前述のとおり、判定結果が「無」であるバスにはメッセージ転送を行わないため、再送状態の継続時間を前記所定時間にまで抑え、中継器の転送処理負荷が低減する。本実施形態は、バス負荷を算出するという点において、受信エラーをカウントする従来の技術とは異なる。 As described above, the repeater calculates the bus load. In a retransmission state in which transfer processing is repeated, the bus load of the bus is calculated as 0%. If the bus load remains at 0% for a predetermined period of time, the repeater updates the determination result of the bus to "no". As described above, the repeater does not transfer the message to the bus for which the judgment result is "no", so the duration of the retransmission state is suppressed to the predetermined time, and the transfer processing load of the repeater is reduced. This embodiment differs from the conventional technique of counting reception errors in that the bus load is calculated.

バス負荷を監視することによって、不要な通信を監視することが可能となる。バス負荷に基づいてバス判定結果を変更することで、不要な通信を転送しないようにすることができる。その結果、中継器の処理負荷が低減し、他の転送処理を円滑に行うことができるようになる。 By monitoring the bus load, unnecessary communications can be monitored. By changing the bus determination result based on the bus load, unnecessary communication can be prevented from being transferred. As a result, the processing load on the repeater is reduced, and other transfer processing can be performed smoothly.

バス負荷が所定の負荷割合以下である状態が所定時間にわたって継続した場合に、当該バスの判定結果を「無」へ変更してもよい。 If the bus load remains equal to or less than a predetermined load ratio for a predetermined period of time, the determination result of the bus may be changed to "no".

なお、転送処理が停止されたバスを通じて中継器がメッセージを受信すると、当該バスの判定結果が「有」に更新され、転送が再開される。 Note that when the repeater receives a message through the bus for which the transfer process has been stopped, the determination result of the bus is updated to "yes" and the transfer is restarted.

[第2実施形態]
図5を参照しながら第2実施形態を説明する。図2と同様、中継器CGWには、第1バスB1を通じて第1電子制御装置ECU1が接続され、第2バスB2を通じて第2電子制御装置ECU2が接続される。一例として、第1電子制御装置ECU1はカーナビゲーション用の制御装置であり、第2電子制御装置ECU2は車載カメラ用の制御装置である。加えて、第1バスB1上の節点N1と第2バスB2上の節点N2とを中継器CGWを介さずに接続する第3バスB3が設けられ、この第3バスB3上に第3電子制御装置ECU3(例えば、車両のメータ制御装置)が設けられている。
[Second embodiment]
A second embodiment will be described with reference to FIG. As in FIG. 2, the relay CGW is connected to the first electronic control unit ECU1 through the first bus B1 and to the second electronic control unit ECU2 through the second bus B2. As an example, the first electronic control unit ECU1 is a control device for car navigation, and the second electronic control unit ECU2 is a control device for an in-vehicle camera. In addition, a third bus B3 is provided to connect the node N1 on the first bus B1 and the node N2 on the second bus B2 without the relay CGW. A device ECU 3 (for example, a vehicle meter control device) is provided.

第1電子制御装置ECU1及び第2電子制御装置ECU2は、中継器CGWを介して通信を行う。このような2つの電子制御装置間で通信途絶が発生した場合、第1電子制御装置ECU1及び第2電子制御装置ECU2に加え、中継器CGWもその通信途絶を検出する。中継器CGWは、あるバスを通して所定信号を所定時間にわたって受信できない場合に当該バスの通信途絶を検出する。中継器CGWは、通信途絶を検出すると、その通信途絶を表す故障コード(Diagnostic Trouble Code, DTC)を中継器CGW内のメモリに保存する。 The first electronic control unit ECU1 and the second electronic control unit ECU2 communicate via the repeater CGW. When a communication interruption occurs between such two electronic control units, the communication interruption is detected not only by the first electronic control unit ECU1 and the second electronic control unit ECU2 but also by the repeater CGW. The repeater CGW detects communication failure of a bus when a predetermined signal cannot be received for a predetermined time through the bus. When the repeater CGW detects a communication disruption, it stores a diagnostic trouble code (DTC) representing the communication disruption in a memory within the repeater CGW.

第1電子制御装置ECU1と中継器CGWとの間の通信は、第3電子制御装置ECU3を介さずに行われる。同様に、第2電子制御装置ECU2と中継器CGWとの間の通信も、第3電子制御装置ECU3を介さずに行われる。第1電子制御装置ECU1と第2電子制御装置ECU2との通信は、中継器CGWを介してのみ行われる。第3電子制御装置ECU3に中継機能はない。 Communication between the first electronic control unit ECU1 and the repeater CGW is performed without passing through the third electronic control unit ECU3. Similarly, communication between the second electronic control unit ECU2 and the repeater CGW is performed without going through the third electronic control unit ECU3. Communication between the first electronic control unit ECU1 and the second electronic control unit ECU2 is performed only through the repeater CGW. The third electronic control unit ECU3 does not have a relay function.

第3電子制御装置ECU3は、中継器CGWを介さず、第1電子制御装置ECU1及び第2電子制御装置ECU2との直接的な通信を行うことができる。第3電子制御装置ECU3は、第1電子制御装置ECU1との通信途絶を検出した場合、その通信途絶を意味する通知を、第2節点N2及び第2バスB2を通じて中継器CGWへ送る。また、中継器CGWと第1電子制御装置ECU1との通信途絶が生じた場合、その通信途絶は、上記通知の有無とは無関係に、中継器CGWによっても直接的に検出される。 The third electronic control unit ECU3 can directly communicate with the first electronic control unit ECU1 and the second electronic control unit ECU2 without going through the relay CGW. When the third electronic control unit ECU3 detects a communication interruption with the first electronic control unit ECU1, it sends a notification indicating the communication interruption to the repeater CGW through the second node N2 and the second bus B2. Further, when a communication interruption occurs between the relay CGW and the first electronic control unit ECU1, the communication interruption is also directly detected by the relay CGW regardless of the presence or absence of the notification.

図6に、中継器CGWにおいて行われる処理の流れを示す。まず、ステップS301において、中継器CGWの起動が行われる。 FIG. 6 shows the flow of processing performed in the repeater CGW. First, in step S301, the repeater CGW is activated.

ステップST302にて、中継器CGWは、自身が予め内部メモリに保存している(前述の転送テーブル内の)CANメッセージと一致するCANメッセージを、第1バスB1を通じて受信する。 At step ST302, the repeater CGW receives through the first bus B1 a CAN message that matches the CAN message (in the forwarding table described above) previously stored in the internal memory by itself.

一般に、各通信メッセージには、送り元と送り先がセットとなったID(バス判定用ID)が指示値や検出値とともに含まれている。バス判定用IDを用いることでメッセージの送り元を判別してバス判定を行う。ステップST303において、中継器CGWは、第1バスB1の判定用のCAN IDを受信したかどうかを判定する。具体的に述べると、中継器CGWは、ステップST302にて受信したCANメッセージをどのバスから受信したかという点と、そのCANメッセージのCAN IDとを確認する。中継器CGWはさらに、受信バス情報とCAN IDが前述の転送テーブルと一定しているかどうかを確認する。本ステップの判定結果が肯定的なものであればステップST304に進み、さもなければステップST302に戻る。 In general, each communication message includes an ID (bus determination ID) in which a source and a destination are set together with an indicated value and a detected value. By using the bus determination ID, the source of the message is determined and bus determination is performed. In step ST303, the repeater CGW determines whether or not the CAN ID for determination of the first bus B1 has been received. Specifically, the repeater CGW confirms from which bus the CAN message received in step ST302 was received and the CAN ID of the CAN message. The repeater CGW also checks whether the received bus information and CAN ID are consistent with the forwarding table described above. If the determination result of this step is affirmative, the process proceeds to step ST304; otherwise, the process returns to step ST302.

ステップST304において、中継器CGWは、第1バスB1の判定結果を「有」に更新する。 In step ST304, the repeater CGW updates the determination result of the first bus B1 to "present".

ステップST305において、第1バスB1の判定結果が「無」に変更されるまで、中継器CGWは、第1バスB1への転送を行う状態となる。また、第1バスB1への転送が正常に完了しなかった場合は、正常に完了するまで中継器CGWは再送を繰り返す。また、中継器CGWは、バス負荷が閾値を越えた場合に関連データを中継器CGWの内部メモリに保存する機能(セキュリティ機能)を有しており、判定結果が「有」であるバスのみ当該機能が有効である。 In step ST305, the repeater CGW is in a state of performing transfer to the first bus B1 until the determination result of the first bus B1 is changed to "no". If the transfer to the first bus B1 is not completed normally, the repeater CGW repeats retransmission until it is completed normally. In addition, the repeater CGW has a function (security function) to store relevant data in the internal memory of the repeater CGW when the bus load exceeds a threshold value. Functionality is enabled.

同じくステップST305において、中継器CGWは、バス負荷の算出を開始する。バス負荷の算出は以降、定期的に行われる。 Also in step ST305, the repeater CGW starts calculating the bus load. Calculation of the bus load is performed periodically thereafter.

ステップST306では、中継器CGWは、第3電子制御装置ECU3から通信途絶を意味する通知を受け取ったかどうかを判断する。上記通知を受け取ったと判断されればステップST307に進み、さもなければステップST305に戻る。 In step ST306, the repeater CGW determines whether or not it has received a notification indicating communication interruption from the third electronic control unit ECU3. If it is determined that the notification has been received, the process proceeds to step ST307; otherwise, the process returns to step ST305.

ステップST307において、中継器CGWは、第1電子制御装置ECU1との通信途絶を検出したかどうかを判断する。通信途絶が検出されたと判断されればステップST308に進み、さもなければステップST305に戻る。 In step ST307, the repeater CGW determines whether or not communication disruption with the first electronic control unit ECU1 has been detected. If it is determined that communication disruption has been detected, the process proceeds to step ST308, otherwise returns to step ST305.

ステップST308において、中継器CGWは、ステップST305にて開始されたバス負荷算出の結果から、バス負荷が0%である状態が一定時間にわたって継続しているかどうかを判断する。判断結果が肯定的なものであればステップST309に進み、さもなければステップST305に戻る。第1電子制御装置ECU1との通信途絶が生じている場合、第1バスB1のバス負荷が0%である状態が一定時間にわたって継続するため、ステップST308の判断結果は肯定的なものとなる。 In step ST308, the repeater CGW determines whether or not the state in which the bus load is 0% continues for a certain period of time from the result of the bus load calculation started in step ST305. If the judgment result is affirmative, the process proceeds to step ST309; otherwise, the process returns to step ST305. When the communication with the first electronic control unit ECU1 is interrupted, the bus load of the first bus B1 remains at 0% for a certain period of time, so the determination result in step ST308 becomes affirmative.

なお、ステップST306とステップST307とステップST308とは、任意の順に行うことができる。 In addition, step ST306, step ST307, and step ST308 can be performed in arbitrary order.

ステップST309において、中継器CGWは、第1バスB1の判定結果を「有」から「無」へ更新する。ステップST310にて再送状態が停止する。 In step ST309, the repeater CGW updates the determination result of the first bus B1 from "yes" to "no". The retransmission state is stopped in step ST310.

このように、中継器CGWは、ステップST306~ST308の判定結果がいずれも肯定的なものであった場合に、ステップST309にて第1バスB1の判定結果を「無」へ更新する。それ以降、第1バスB1への不要なメッセージ転送(再送)を実施せず、再送状態が停止される。なお、再送停止後、中継器が、上述の通りリストと一致するCANメッセージを受信すると、当該バスへの転送が再開される。 Thus, when the determination results of steps ST306 to ST308 are all positive, the repeater CGW updates the determination result of the first bus B1 to "no" in step ST309. After that, unnecessary message transfer (retransmission) to the first bus B1 is not performed, and the retransmission state is stopped. After stopping retransmission, when the repeater receives a CAN message that matches the list as described above, transfer to the bus is resumed.

[他の実施形態]
第1電子制御装置ECU1と第2電子制御装置ECU2との組み合わせによっては、第1電子制御装置ECU1との通信が途絶した場合に、第2電子制御装置ECU2は、通信異常を示す故障コード(DTC)を保存しない。中継器CGWも第1電子制御装置ECU1との通信異常を示す故障コードを保存しない。
[Other embodiments]
Depending on the combination of the first electronic control unit ECU1 and the second electronic control unit ECU2, when the communication with the first electronic control unit ECU1 is interrupted, the second electronic control unit ECU2 outputs a failure code (DTC ) is not saved. The repeater CGW also does not store the failure code indicating the communication abnormality with the first electronic control unit ECU1.

このような構成においては、ステップST307を行わなくてもよい。つまり、中継器CGWが検知するバス負荷(ステップST308)と第3電子制御装置ECU3からの通知(ステップST306)を以って、ステップST309にて判定結果を「無」へ更新することができる。 In such a configuration, step ST307 may not be performed. That is, the bus load detected by the repeater CGW (step ST308) and the notification from the third electronic control unit ECU3 (step ST306) can be used to update the determination result to "no" in step ST309.

これにより、第1電子制御装置ECU1自体は正常であっても、節点N1と第3電子制御装置ECU3との間の通信線にのみ断線が生じたときには、判定結果が誤って「無」へ更新されることはない。ステップST308の判定結果が否定的なものとなるからである。そのため、第1電子制御装置ECU1との間のメッセージ通信が誤って終了してしまうことはない。 As a result, even if the first electronic control unit ECU1 itself is normal, if only the communication line between the node N1 and the third electronic control unit ECU3 is disconnected, the determination result is erroneously updated to "no". will not be This is because the determination result of step ST308 is negative. Therefore, the message communication with the first electronic control unit ECU1 is not erroneously terminated.

あるいは、第1電子制御装置ECU1自体が正常であって、かつ節点N1と中継器CGWとの通信線に断線(通信途絶)が生じたときに、中継器CGWは第1バスB1への転送を停止することがない。ステップST306の判定結果が否定的なものとなるからである。そのため、一時的な通信エラーによる「無」判定と通信復帰後の「有」再判定を繰り返すことによるメッセージのロス(転送漏れ)を防ぐことができる。また、判定結果は不揮発性メモリに保存されるため、メモリアクセス回数の増大によるメモリ破壊と中継器の処理負荷の増大を防ぐことができる。 Alternatively, when the first electronic control unit ECU1 itself is normal and the communication line between the node N1 and the repeater CGW is disconnected (communication interruption), the repeater CGW requests transfer to the first bus B1. never stop. This is because the determination result of step ST306 is negative. Therefore, it is possible to prevent message loss (failure to transfer) due to repetition of "absent" judgment due to a temporary communication error and "present" re-judgment after communication recovery. Moreover, since the determination result is stored in the non-volatile memory, it is possible to prevent memory destruction and an increase in the processing load of the repeater due to an increase in the number of memory accesses.

メッセージのロス(転送漏れ)が発生する例として以下に3つの例を挙げる。
(1)バス1の判定結果が「無」に更新されると、次に判定対象メッセージを受信するまで、「無」の状態が継続する。判定対象メッセージの周期が仮に1000msecだった場合、その間に受信した、バス1への転送対象メッセージは転送されない。
(2)バス判定結果を「無」から「有」へ変更するかどうかを判定して実際に変更する場合、ある程度の処理時間を要する。この処理中もバス判定結果は「無」であるため、その間に受信した転送対象メッセージは転送されない。
(3)スリープモード(省電力モード)にある中継器CGWが1つ目の判定対象メッセージを受信した場合、そのメッセージによって中継器CGWがスリープモードから通常モードへと切り替わるだけにとどまる場合がある。すなわち、2つ目の判定対象メッセージを受信して初めて中継器CGWの判定ロジックが動作する場合がある。このような場合、2つ目の判定対象メッセージ受信までに中継器CGWが受信した転送対象メッセージは転送されない。
Three examples of message loss (failure to transfer) are given below.
(1) When the determination result of the bus 1 is updated to "no", the state of "no" continues until the next message to be determined is received. If the cycle of the determination target message is 1000 msec, the transfer target message to the bus 1 received during that period is not transferred.
(2) A certain amount of processing time is required to determine whether or not to change the bus determination result from "absent" to "present" and to actually change it. Since the bus determination result is still "no" during this process, the transfer target messages received during this process are not transferred.
(3) When the repeater CGW in the sleep mode (power saving mode) receives the first message to be determined, the message may cause the repeater CGW to switch from the sleep mode to the normal mode. That is, there is a case where the determination logic of the repeater CGW operates only after receiving the second message to be determined. In such a case, the transfer target messages received by the repeater CGW before receiving the second determination target message are not transferred.

さらに、第3電子制御装置ECU3からの通知の有無により、中継器単独では不可能な異常箇所の特定が可能となる。すなわち、第3電子制御装置ECU3からの通知のみがある場合、第3電子制御装置と節点N1との間に異常箇所があると判断できる。第3電子制御装置ECU3からの通知がなければ、中継器CGWと節点N1との間に異常箇所があると判断できる。 Furthermore, depending on whether or not there is a notification from the third electronic control unit ECU3, it is possible to specify the location of the abnormality, which is not possible with the repeater alone. That is, when there is only a notification from the third electronic control unit ECU3, it can be determined that there is an abnormal portion between the third electronic control unit and the node N1. If there is no notification from the third electronic control unit ECU3, it can be determined that there is an abnormal portion between the repeater CGW and the node N1.

バスの判定結果を当該バスの通信ステータスと呼ぶこともできる。バス負荷を通信負荷と呼ぶこともできる。 The determination result of the bus can also be called the communication status of the bus. A bus load can also be called a communication load.

図5においては、第1バスB1上に節点N1を設け、この節点N1を通して第1電子制御装置ECU1と第3電子制御装置ECU3とが接続されることを示した。しかし、図7に示すように、第1電子制御装置ECU1と中継器CGWとを節点のないバスB1aを通して接続することができる。そして、第1電子制御装置と節点N2とを直接、接続するバスB3aを設けて、そのバスB3a上に第3電子制御装置ECU3を設けてもよい。 In FIG. 5, a node N1 is provided on the first bus B1, and the first electronic control unit ECU1 and the third electronic control unit ECU3 are connected through this node N1. However, as shown in FIG. 7, the first electronic control unit ECU1 and the repeater CGW can be connected through a nodeless bus B1a. A bus B3a that directly connects the first electronic control unit and the node N2 may be provided, and the third electronic control unit ECU3 may be provided on the bus B3a.

以上の実施形態は、自動車に搭載されるネットワークのほか、鉄道車両、飛行機、冷蔵庫に搭載されるネットワークにも適用可能である。 The above embodiments can be applied to networks installed in railcars, airplanes, and refrigerators in addition to networks installed in automobiles.

以上、本発明の実施の形態につき述べたが、本発明は既述の実施の形態に限定されるものではなく、本発明の技術的思想に基づいて各種の変形及び変更が可能である。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications and changes are possible based on the technical idea of the present invention.

CGW 中継器
ECU1~ECU3 電子制御装置
B1~B3 バス
CGW Repeater ECU1~ECU3 Electronic control unit B1~B3 Bus

Claims (3)

第1バスを通じて第1制御装置が接続されるとともに、第2バスを通じて第2制御装置が接続され、前記第1バスと前記第2バスとの間の中継を行う中継器であって、
前記第1制御装置から前記第2制御装置への通信について、前記第2制御装置から正常な応答信号が得られない通信失敗状態にあり、かつ前記第2バスにおける通信負荷が所定の負荷割合以下である状態が所定時間以上継続した場合に、前記第2バスの通信ステータスを変更する中継器。
A repeater connected to a first control device through a first bus and connected to a second control device through a second bus for relaying between the first bus and the second bus,
Communication from the first control device to the second control device is in a communication failure state in which a normal response signal cannot be obtained from the second control device, and the communication load on the second bus is equal to or less than a predetermined load ratio. repeater for changing the communication status of the second bus when the state continues for a predetermined time or longer.
前記第2バスにおける通信負荷を、前記第2バスを通じて単位時間あたりに送受信可能なデータ容量に対する、前記第2バスを通じて単位時間あたりに実際に送受信されたデータ量の割合に基づいて決定し、
前記第2バスにおける通信負荷が0%のときに、前記第2バスの通信ステータスを「無」へ変更する請求項1に記載の中継器。
determining the communication load on the second bus based on the ratio of the amount of data actually transmitted/received per unit time via the second bus to the amount of data that can be transmitted/received per unit time via the second bus;
2. The repeater according to claim 1, wherein the communication status of said second bus is changed to "no" when the communication load on said second bus is 0%.
第1バスを通じて第1制御装置が接続されるとともに、第2バスを通じて第2制御装置が接続され、前記第1バスと前記第2バスとの間の中継を行う中継器であって、
前記第1制御装置と前記第2制御装置を接続する第3バスが設けられ、前記第3バス上に第3制御装置が設けられ、
前記第1バスにおける通信負荷が所定の負荷割合以下であり、
かつ前記第3制御装置が前記第1制御装置との通信が途絶した状態を検出した場合に、
前記第1バスの通信ステータスを「無」へ変更する中継器。
A repeater connected to a first control device through a first bus and connected to a second control device through a second bus for relaying between the first bus and the second bus,
a third bus connecting the first control device and the second control device is provided, a third control device is provided on the third bus;
a communication load on the first bus is equal to or less than a predetermined load ratio;
And when the third control device detects a state in which communication with the first control device is interrupted,
A repeater that changes the communication status of the first bus to "no".
JP2020036776A 2020-03-04 2020-03-04 repeater Active JP7336074B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020036776A JP7336074B2 (en) 2020-03-04 2020-03-04 repeater
DE102021104833.8A DE102021104833A1 (en) 2020-03-04 2021-03-01 Switching facility

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020036776A JP7336074B2 (en) 2020-03-04 2020-03-04 repeater

Publications (2)

Publication Number Publication Date
JP2021141406A JP2021141406A (en) 2021-09-16
JP7336074B2 true JP7336074B2 (en) 2023-08-31

Family

ID=77389182

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020036776A Active JP7336074B2 (en) 2020-03-04 2020-03-04 repeater

Country Status (2)

Country Link
JP (1) JP7336074B2 (en)
DE (1) DE102021104833A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019225259A1 (en) * 2018-05-23 2019-11-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Communication control device, unauthorized access-detecting electronic control unit, mobility network system, communication control method, unauthorized access detection method and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010052892A1 (en) 2008-11-04 2010-05-14 株式会社オートネットワーク技術研究所 Communication device, relay device, communication system, and communication method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5019983B2 (en) * 2007-07-17 2012-09-05 株式会社オートネットワーク技術研究所 In-vehicle communication system, relay device, and communication method
JP5958975B2 (en) 2014-03-10 2016-08-02 トヨタ自動車株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010052892A1 (en) 2008-11-04 2010-05-14 株式会社オートネットワーク技術研究所 Communication device, relay device, communication system, and communication method

Also Published As

Publication number Publication date
DE102021104833A1 (en) 2021-09-09
JP2021141406A (en) 2021-09-16

Similar Documents

Publication Publication Date Title
US8015445B2 (en) Fault location device, communication device, and fault location method
US20110160951A1 (en) Control Unit for Gateway and Automotive Control System
US7577668B2 (en) Information transmission system and information transmission method
US20150009861A1 (en) Technique for Handling a Status Change in an Interconnect Node
JP5198568B2 (en) System and method for detecting signal failure in a ring bus system
JP7336074B2 (en) repeater
CN113572673A (en) Bus-based non-inductive switching redundant communication implementation method and system
JP5019983B2 (en) In-vehicle communication system, relay device, and communication method
JP2003348105A (en) Can controller
JPH0998180A (en) Fault avoid control method for ring network system
JP7088075B2 (en) Electronic control device
JP6527647B1 (en) Fraud detection method, fraud detection device and program
JP2009111911A (en) Communication apparatus, communication system, and communication method
JP6028717B2 (en) COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD
JP7189349B2 (en) Gateway device, data frame transmission method and program
JP6365876B2 (en) node
JP5212339B2 (en) Data relay apparatus and data relay method
JP2008187243A (en) Data repeating device
WO2019187202A1 (en) Control device, in-vehicle communication system, monitoring method, and program
JP5182269B2 (en) Network system
JP4086839B2 (en) Network communication system and failure detection notification method
JP3015441B2 (en) Private communication system
JP2011188414A (en) Ring type switch, ring type ethernet system, method of controlling ring type switch, and method of controlling ring type ethernet system
JP2022161484A (en) Communication network system, monitoring device, and monitoring program
JP4569024B2 (en) Operation / standby switching method, operation / standby determination method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230106

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230803

R151 Written notification of patent or utility model registration

Ref document number: 7336074

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151