JP2009071773A - Relay and connection unit - Google Patents

Relay and connection unit Download PDF

Info

Publication number
JP2009071773A
JP2009071773A JP2007240905A JP2007240905A JP2009071773A JP 2009071773 A JP2009071773 A JP 2009071773A JP 2007240905 A JP2007240905 A JP 2007240905A JP 2007240905 A JP2007240905 A JP 2007240905A JP 2009071773 A JP2009071773 A JP 2009071773A
Authority
JP
Japan
Prior art keywords
message
unit
relay
buffer
data message
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
JP2007240905A
Other languages
Japanese (ja)
Other versions
JP4959484B2 (en
Inventor
Takeo Uchino
剛雄 内野
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
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 Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2007240905A priority Critical patent/JP4959484B2/en
Publication of JP2009071773A publication Critical patent/JP2009071773A/en
Application granted granted Critical
Publication of JP4959484B2 publication Critical patent/JP4959484B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent generation of a delay in a process of an NM message when receiving a network management message (NM message) in a relay and connection unit. <P>SOLUTION: A relay and connection unit 10 which is made to be interposed among a plurality of busses 31 which are respectively connected to ECUs 30 is characterized in comprising a relay processing unit 12, a network management processing unit 14 for performing a network management function with respective ECUs by transmitting and receiving the network management message (NM message) to and from the other ECUs, and a determining unit 22 to be connected to the network management processing unit, to be connected to the relay processing unit via a buffer, for determining whether a massage is a data message or the NM message after receiving the message from the other ECUs, for transmitting the NM message to the network management processing unit without interposing the buffer, and for transmitting the data message to the buffer. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、車載用の中継接続ユニットに関し、詳しくは、中継接続ユニットが受信したメッセージの処理に遅延が発生することを防ぐものである。   The present invention relates to an in-vehicle relay connection unit, and more particularly, to prevent a delay from occurring in processing of a message received by the relay connection unit.

従来、車両に搭載される機器を制御する電子制御ユニット(Electronic Control Unit:ECU)が接続された多重通信用のバス同士を、中継接続ユニット(ゲートウェイ)を介して接続してネットワークを構築し、異なるバスに属するECU間で送受信されるデータメッセージを該中継接続ユニットで中継する車載用通信システムが採用されている。   Conventionally, a network is constructed by connecting buses for multiplex communication connected with an electronic control unit (ECU) for controlling devices mounted on a vehicle via a relay connection unit (gateway), An in-vehicle communication system that relays data messages transmitted and received between ECUs belonging to different buses by the relay connection unit is employed.

前記車載用通信システムの通信の安全性と信頼性を確保するために、ネットワークマネジメントシステムが提案されている。ネットワークマネジメンシステムとは、非特許文献1に示すように、多重通信用バスに接続されたECUや中継接続ユニット等のノードが互いにネットワークマネジメントメッセージ(NMメッセージ)を送受信することで、ネットワーク協調制御やノードのエラー判定等を行うものである。ネットワーク協調制御により、NMメッセージから他のノードの動作状態が高電力消費状態であるノーマル状態(通常動作状態)や省電力消費状態であるスリープ状態等であることを検知し、該検知結果に基づいて自ノードをどの動作状態に移行させるかを判断して移行処理を行っている。   In order to ensure the safety and reliability of communication of the in-vehicle communication system, a network management system has been proposed. As shown in Non-Patent Document 1, a network management system is a network management control or node where nodes such as ECUs and relay connection units connected to a multiplex communication bus send and receive network management messages (NM messages) to each other. It is used to determine node errors. By network cooperative control, it is detected from the NM message that the operation state of another node is a normal state (normal operation state) that is a high power consumption state, a sleep state that is a power saving consumption state, and the like, and based on the detection result Thus, the transition processing is performed by determining to which operating state the own node is to be shifted.

前記車載用通信システムにおいて、ネットワークマネジメントシステムが実行された場合、中継接続ユニットは、異なるバスに属するECU間で送受信されるデータメッセージに加え、NMメッセージを受信する。
前記NMメッセージは、データメッセージとフォーマットが同一である可能性がある。このようなシステムの場合、中継接続ユニットはデータメッセージ、NMメッセージの区別なくこれらのメッセージを受信している。図7は従来の中継接続ユニット1の構成図であり、中継接続ユニット1はバス2A,2Bと接続している。CANコントローラ3がバス2からメッセージを受信すると、バッファ4に受信した全てのメッセージを格納する。バッファ4と接続された管理部5は、各メッセージに固有の識別子(ID)から、バッファ4に格納されたメッセージの種類を判定している。さらに、管理部5は、バッファ4のメッセージがNMメッセージである場合にはバッファ4からネットワークマネジメント処理部6にNMメッセージを送信し、データメッセージである場合にはバッファから中継処理部7にデータメッセージを送信し、各処理部はバッファ4から受信した各メッセージを用いて所定の処理を行っている。
In the in-vehicle communication system, when the network management system is executed, the relay connection unit receives an NM message in addition to a data message transmitted and received between ECUs belonging to different buses.
The NM message may have the same format as the data message. In such a system, the relay connection unit receives these messages without distinguishing between data messages and NM messages. FIG. 7 is a configuration diagram of a conventional relay connection unit 1, which is connected to buses 2A and 2B. When the CAN controller 3 receives a message from the bus 2, all the received messages are stored in the buffer 4. The management unit 5 connected to the buffer 4 determines the type of message stored in the buffer 4 from an identifier (ID) unique to each message. Further, the management unit 5 transmits the NM message from the buffer 4 to the network management processing unit 6 when the message in the buffer 4 is an NM message, and the data message from the buffer to the relay processing unit 7 when the message is a data message. Each processing unit performs a predetermined process using each message received from the buffer 4.

複数のECUが多くのデータメッセージをバスに送信した場合、中継接続ユニットは多量のデータメッセージを受信するため、上記のような管理部の処理に時間がかかり、バッファに処理待ちの多量のデータメッセージが格納された状態となる。管理部は、バッファに格納されたメッセージが複数ある場合には先に格納されたメッセージから順にメッセージの処理を行うため、この状態で中継接続ユニットがNMメッセージを受信すると、該NMメッセージの処理は処理待ちのデータメッセージの後に行われることになる。
一方で、ネットワークマネジメントシステムは、車載用通信システムに接続されたECUや中継接続ユニット間でNMメッセージを送受信することでエラー判定や動作状態の検知を行っており、NMメッセージを受信した中継接続ユニットは、所定時間内に応答用のNMメッセージをバスに送信する必要がある。
しかし、中継接続ユニットが、上記のようにバッファに処理待ちの多量のデータメッセージが格納された状態でNMメッセージを受信すると、管理部及びネットワークマネジメント処理部でのNMメッセージの処理に遅延が生じ、中継接続ユニットが所定時間内に応答用のNMメッセージをバスに送信することができないという問題がある。
When a plurality of ECUs send a large number of data messages to the bus, the relay connection unit receives a large amount of data messages. Therefore, it takes a long time to process the management unit as described above, and a large amount of data messages waiting to be processed in the buffer. Is stored. When there are a plurality of messages stored in the buffer, the management unit processes the messages in order from the message stored first. When the relay connection unit receives the NM message in this state, the processing of the NM message is performed. It will be done after the data message awaiting processing.
On the other hand, the network management system performs error determination and operation state detection by transmitting and receiving NM messages between ECUs and relay connection units connected to the in-vehicle communication system, and the relay connection unit that has received the NM messages. Needs to send a response NM message to the bus within a predetermined time.
However, when the relay connection unit receives an NM message in a state where a large amount of data messages waiting for processing are stored in the buffer as described above, a delay occurs in processing of the NM message in the management unit and the network management processing unit, There is a problem that the relay connection unit cannot transmit a response NM message to the bus within a predetermined time.

Network Management Concept and Application Programming Interface 発行:2004年7月26日 発行者:OSEK/VDX インターネット(URL:http://portal.osek-vdx.org/files/pdf/specs/nm253.pdf)Network Management Concept and Application Programming Interface Published: July 26, 2004 Publisher: OSEK / VDX Internet (URL: http://portal.osek-vdx.org/files/pdf/specs/nm253.pdf)

本発明は、前記問題に鑑みてなされたもので、中継接続ユニットが中継すべき多量のデータメッセージをバッファに格納している状態でさらにNMメッセージを受信した場合においても、NMメッセージの処理の遅延の発生を防ぎ、ネットワークマネジメント機能を確実に実行することを課題としている。   The present invention has been made in view of the above-described problem. Even when an NM message is further received in a state where a large amount of data messages to be relayed by the relay connection unit are stored in a buffer, the processing delay of the NM message is achieved. The issue is to prevent the occurrence of network problems and to reliably execute the network management function.

前記課題を解決するため、本発明は、電子制御ユニットが夫々接続している複数のバスの間に介在させ、異なるバスに属する前記電子制御ユニットとメッセージを中継する車載用の中継接続ユニットであって、
前記他の電子制御ユニットからのメッセージを受信する受信部と、
前記他の電子制御ユニットにメッセージを送信する送信部と、
前記受信部で受信したメッセージを前記送信部から送信する中継処理部と、
ネットワークマネジメントメッセージ(NMメッセージ)を前記他の電子制御ユニットと送受信して各電子制御ユニットのネットワークマネジメント機能を実行するネットワークマネジメント処理部と、
前記ネットワークマネジメント処理部と接続されると共にバッファを介して前記中継処理部と接続され、前記バスから前記他の電子制御ユニットからのメッセージを受信して、該メッセージがデータメッセージか前記NMメッセージかを判別し、前記NMメッセージは前記バッファを介さずに前記ネットワークマネジメント処理部に送信し、前記データメッセージはバッファに送信する判別部と、
を備えていることを特徴とする中継接続ユニットを提供している。
In order to solve the above problems, the present invention is an in-vehicle relay connection unit that is interposed between a plurality of buses to which electronic control units are connected, and relays messages with the electronic control units belonging to different buses. And
A receiver for receiving a message from the other electronic control unit;
A transmitter for transmitting a message to the other electronic control unit;
A relay processing unit for transmitting a message received by the receiving unit from the transmitting unit;
A network management processing unit that transmits and receives a network management message (NM message) to and from the other electronic control unit to execute a network management function of each electronic control unit;
Connected to the network management processing unit and connected to the relay processing unit via a buffer, receives a message from the other electronic control unit from the bus, and determines whether the message is a data message or the NM message. A determination unit that transmits the NM message to the network management processing unit without passing through the buffer, and transmits the data message to the buffer;
A relay connection unit is provided.

本発明の中継接続ユニットの判別部は、メッセージを受信すると、データメッセージ、NMメッセージのいずれであるかメッセージ種類の判別を行い、受信したメッセージがNMメッセージであると判別した場合には、バッファに格納せずに直接ネットワークマネジメント処理部にNMメッセージを送信している。
中継接続ユニットが中継すべき多量のデータメッセージをバッファに格納している状態でNMメッセージを受信した場合に、従来技術ではNMメッセージもバッファに格納されていたためにデータメッセージの処理の後でNMメッセージが処理されるケースが想定され、NMメッセージの処理に遅延が発生する可能性がある。しかし、本発明では判別部において即座にメッセージの種類を判定して各処理部に送信するため、NMメッセージの処理の遅延が発生することがなく、ネットワーク協調制御などのネットワークマネジメント機能を確実に実行することができる。
When receiving the message, the determination unit of the relay connection unit of the present invention determines the message type, which is either a data message or an NM message, and if it determines that the received message is an NM message, The NM message is transmitted directly to the network management processing unit without storing.
When the relay connection unit receives an NM message in a state where a large amount of data message to be relayed is stored in the buffer, the NM message is also stored in the buffer in the prior art. May be processed, and there is a possibility that a delay occurs in the processing of the NM message. However, in the present invention, since the discriminating unit immediately determines the type of message and transmits it to each processing unit, there is no delay in processing the NM message, and the network management function such as network cooperative control is reliably executed. can do.

具体的には、
少なくとも前記NMメッセージのIDを記憶する識別子記憶部と、前記判別部と、前記受信部と、前記送信部と、を有するコントローラを備え、
前記判別部は、受信するメッセージのIDと前記識別子記憶部に記憶されたIDとを比較して前記メッセージがデータメッセージか前記NMメッセージかを判別している。
In particular,
A controller having at least an identifier storage unit that stores an ID of the NM message, the determination unit, the reception unit, and the transmission unit;
The determination unit determines whether the message is a data message or the NM message by comparing the ID of the received message with the ID stored in the identifier storage unit.

データメッセージ、NMメッセージのフォーマットは同一であり、各メッセージ毎に固有の識別子(ID)を備えている。判別部は該IDによりデータメッセージとNMメッセージを判別しており、識別子記憶部に記憶されたIDと、受信したメッセージのIDとを比較し、受信したメッセージのIDが識別子記憶部に記憶されたIDであれば、該メッセージをNMメッセージとしている。   The format of the data message and the NM message is the same, and each message has a unique identifier (ID). The discriminating unit discriminates the data message and the NM message based on the ID, compares the ID stored in the identifier storage unit with the ID of the received message, and stores the ID of the received message in the identifier storage unit. If it is an ID, the message is an NM message.

故障検知用のダイアグメッセージを受信するダイアグ処理部を備え、
前記識別子記憶部はダイアグメッセージのIDを記憶しており、
前記判別部は、前記ダイアグメッセージであることを判別すると、前記ダイアグメッセージを前記バッファを介さずに前記ダイアグ処理部に送信してもよい。
受信部において、NMメッセージだけでなくダイアグメッセージもIDから判別し、ダイアグメッセージを直接ダイアグ処理部に送信することで、ダイアグメッセージの処理の遅延が発生することを防ぐことができる。
A diagnostic processing unit is provided for receiving diagnostic diagnostic messages.
The identifier storage unit stores an ID of a diagnostic message,
When determining that the message is the diagnosis message, the determination unit may transmit the diagnosis message to the diagnosis processing unit without passing through the buffer.
In the receiving unit, not only the NM message but also the diagnostic message is discriminated from the ID, and the diagnostic message is transmitted directly to the diagnostic processing unit, thereby preventing a delay of the diagnostic message processing.

前記判別部と前記バッファの間に中継判別部を介在させ、
前記判別部は、前記受信するメッセージのIDが前記識別子記憶部に記載されていない場合には、該メッセージを前記データメッセージであると判断して前記中継判別部に送信し、
前記中継判別部は、前記データメッセージのIDから前記データメッセージの中継または廃棄を判別し、中継の場合には前記データメッセージを前記バッファに送信し、廃棄の場合には前記データメッセージを廃棄することが好ましい。
Interposing a relay discriminator between the discriminator and the buffer;
If the ID of the received message is not described in the identifier storage unit, the determination unit determines that the message is the data message and transmits the message to the relay determination unit.
The relay determining unit determines whether the data message is relayed or discarded based on the ID of the data message, transmits the data message to the buffer in the case of relay, and discards the data message in the case of discard. Is preferred.

判別部においてNMメッセージまたはダイアグメッセージと判別されなかったメッセージは、データメッセージとして中継判別部に送信される。中継判別部では該データメッセージが、他のECUに中継されるメッセージかどのECUにも中継されず廃棄されるメッセージかを判別し、他のECUに中継されるデータメッセージをバッファに送信している。このため、バッファにはNMメッセージやダイアグメッセージ、また廃棄されるデータメッセージが格納されることがなく、中継が必要なデータメッセージのみが格納され、中継処理部は該バッファのデータメッセージの中継処理を順次行う。   A message that is not determined to be an NM message or a diagnostic message by the determination unit is transmitted as a data message to the relay determination unit. The relay determination unit determines whether the data message is a message relayed to another ECU or a message discarded without being relayed to any ECU, and transmits the data message relayed to another ECU to the buffer. . Therefore, NM messages, diagnostic messages, and data messages to be discarded are not stored in the buffer, only data messages that need to be relayed are stored, and the relay processing unit performs relay processing of the data messages in the buffer. Do it sequentially.

前記識別子記憶部に、中継が必要なデータメッセージのID及び廃棄するデータメッセージのIDを記憶しており、
前記判別部は、受信するメッセージが前記中継が必要なデータメッセージであると判別した場合は該データメッセージを前記バッファに送信し、廃棄するデータメッセージであると判別した場合には、該データメッセージを廃棄してもよい。
The identifier storage unit stores an ID of a data message that needs to be relayed and an ID of a data message to be discarded,
The determination unit transmits the data message to the buffer when determining that the received message is a data message that needs to be relayed, and determines that the data message is determined to be a data message to be discarded. It may be discarded.

前述したように、本発明の中継接続ユニットによれば、受信部の判別部がメッセージを受信すると、データメッセージ、NMメッセージのいずれであるかの判別を行い、受信したメッセージがNMメッセージであると判別した場合には、バッファに格納せずに直接ネットワークマネジメント処理部にNMメッセージを送信している。このため、中継接続ユニットが中継すべき多量のデータメッセージをバッファに格納している状態でNMメッセージを受信した場合であっても、NMメッセージの処理の遅延が発生することがなく、ネットワーク協調制御などのネットワークマネジメント機能を確実に実行することができる。   As described above, according to the relay connection unit of the present invention, when the determination unit of the reception unit receives a message, it determines whether it is a data message or an NM message, and the received message is an NM message. If it is determined, the NM message is transmitted directly to the network management processing unit without being stored in the buffer. For this reason, even when a NM message is received in a state where a large amount of data messages to be relayed by the relay connection unit are stored in the buffer, there is no delay in processing the NM message, and network cooperative control is performed. Network management functions such as can be executed reliably.

本発明の実施形態を図面を参照して説明する。
図1乃至図4に本発明の第1実施形態を示す。
本発明の車載用の中継接続ユニット10は、電子制御ユニット(ECU)30を夫々接続しているバス31間に介在させてネットワークを形成し、異なるバス31に属する前記ECU3030間で送受信するデータメッセージを中継するものである。
本実施形態では、中継接続ユニット10を2本のバス31A、31Bの間に介在させてネットワークを形成すると共に、2本のバス31A、31Bに夫々2つのECU30A,30Bを接続している。通信プロトコルはCAN(Controller Area Network)である。
Embodiments of the present invention will be described with reference to the drawings.
1 to 4 show a first embodiment of the present invention.
The in-vehicle relay connection unit 10 of the present invention forms a network by interposing electronic control units (ECUs) 30 between buses 31 connected to each other, and transmits and receives data messages between the ECUs 3030 belonging to different buses 31. Is relayed.
In this embodiment, the relay connection unit 10 is interposed between the two buses 31A and 31B to form a network, and the two ECUs 30A and 30B are connected to the two buses 31A and 31B, respectively. The communication protocol is CAN (Controller Area Network).

図1に示すように、中継接続ユニット10は、CANコントローラ20A,20Bと、ダイアグ処理部11と、中継処理部12と、バッファ13と、ネットワークマネジメント処理部14と、中継判別部15を備えている。   As shown in FIG. 1, the relay connection unit 10 includes CAN controllers 20 </ b> A and 20 </ b> B, a diagnosis processing unit 11, a relay processing unit 12, a buffer 13, a network management processing unit 14, and a relay determination unit 15. Yes.

CANコントローラ20A,20Bはバス31A,31Bと夫々接続しており、他のECU30が送信したメッセージをバス31を介して受信している。
CANコントローラ20によって送受信されるメッセージは、データメッセージ、ダイアグメッセージ、NMメッセージの3つである。データメッセージは、異なるバス31に接続されたECU30間で送受信されるものであり、中継接続ユニット10が中継し、ECU30に接続された車載機器の制御等に用いるメッセージである。ダイアグメッセージはダイアグ処理部11で使用されるメッセージであり、NMメッセージはネットワークマネジメント処理部14で使用されるメッセージである。
The CAN controllers 20A and 20B are connected to the buses 31A and 31B, respectively, and receive messages transmitted from other ECUs 30 via the bus 31.
There are three messages transmitted / received by the CAN controller 20: a data message, a diagnostic message, and an NM message. The data message is transmitted / received between the ECUs 30 connected to different buses 31 and is a message used for controlling the in-vehicle device connected by the relay connection unit 10 and connected to the ECU 30. The diagnostic message is a message used in the diagnostic processing unit 11, and the NM message is a message used in the network management processing unit 14.

CANコントローラ20Aは図2に示すように、受信部及び送信部を構成する送受信バッファ21と、判別部を構成するID判別部22と識別子記憶部23を備えている。CANコントローラ20Bも同様の構成である。
送受信バッファ21はバス31と接続しており、バス31から受信したメッセージを一時的に記憶している。データメッセージ、ダイアグメッセージ、NMメッセージのメッセージフレームは同じ構成をしており、送受信バッファ21はこれらのメッセージを区別せず送受信している。
As shown in FIG. 2, the CAN controller 20 </ b> A includes a transmission / reception buffer 21 that constitutes a reception unit and a transmission unit, an ID discrimination unit 22 that constitutes a discrimination unit, and an identifier storage unit 23. The CAN controller 20B has the same configuration.
The transmission / reception buffer 21 is connected to the bus 31 and temporarily stores messages received from the bus 31. The message frames of the data message, the diagnostic message, and the NM message have the same configuration, and the transmission / reception buffer 21 transmits / receives these messages without distinction.

識別子記憶部23は、受信したメッセージの種類を判別するためのテーブルを備えている。データメッセージ、ダイアグメッセージ、NMメッセージは各メッセージに固有の値である識別子(ID)により区別されている。図3はテーブルの例であり、中継接続ユニット10が受信するメッセージのID毎に、メッセージがダイアグメッセージ、NMメッセージのいずれであるかを記載している。テーブルには、ダイアグメッセージ、NMメッセージのIDのみを記載しており、テーブルにIDが記載されていないメッセージはデータメッセージである。
なお、テーブルにデータメッセージのIDを記載していてもよい。この場合、後述するID判別部22はテーブルを用いて、受信したメッセージのIDがデータメッセージであることを判別する。
The identifier storage unit 23 includes a table for determining the type of received message. Data messages, diagnostic messages, and NM messages are distinguished by an identifier (ID) that is a unique value of each message. FIG. 3 is an example of a table, and describes whether a message is a diagnostic message or an NM message for each message ID received by the relay connection unit 10. Only the IDs of the diagnosis message and the NM message are described in the table, and the message whose ID is not described in the table is a data message.
Note that the ID of the data message may be described in the table. In this case, the ID determination unit 22 described later uses the table to determine that the received message ID is a data message.

ID判別部22は送受信バッファ21と接続していると共に、識別子記憶部23と接続している。送受信バッファ21からメッセージを受け取ると、識別子記憶部23からテーブルを読み出し、該テーブルを参照して、受信したメッセージの種類を判別している。ID判別部22は、例えば、受信したメッセージのIDが1の時には、図3のテーブルを参照して該メッセージはダイアグメッセージであると判別している。   The ID determination unit 22 is connected to the transmission / reception buffer 21 and is also connected to the identifier storage unit 23. When a message is received from the transmission / reception buffer 21, a table is read from the identifier storage unit 23, and the type of the received message is determined with reference to the table. For example, when the ID of the received message is 1, the ID determination unit 22 determines that the message is a diagnostic message with reference to the table of FIG.

またID判別部22はネットワークマネジメント処理部14及びダイアグ処理部11及び中継判別部15と接続している。受信したメッセージをNMメッセージと判別した場合には、ID判別部22は該NMメッセージをネットワークマネジメント処理部14に送信している。また、受信したメッセージをダイアグメッセージと判別した場合には、ID判別部22は該ダイアグメッセージをダイアグ処理部11に送信している。受信したメッセージのIDがテーブルにない場合は、データメッセージとして中継判別部15に送信している。   The ID determination unit 22 is connected to the network management processing unit 14, the diagnosis processing unit 11, and the relay determination unit 15. When it is determined that the received message is an NM message, the ID determination unit 22 transmits the NM message to the network management processing unit 14. When the received message is determined as a diagnosis message, the ID determination unit 22 transmits the diagnosis message to the diagnosis processing unit 11. If the received message ID is not in the table, it is transmitted to the relay determination unit 15 as a data message.

なお、メッセージのフレームのうちIDが格納されたアービトレーションフィールドまで送受信バッファ21に記憶されると、ID判別部22は送受信バッファ21からメッセージを受信してIDを読み出し、メッセージの種類の判別を行っている。なお、送受信バッファ21にメッセージが最後まで記憶された後に、ID判別部22がメッセージの種類の判別を行ってもよい。   When the arbitration field in which the ID is stored in the message frame is stored in the transmission / reception buffer 21, the ID determination unit 22 receives the message from the transmission / reception buffer 21, reads the ID, and determines the type of the message. Yes. Note that after the message is stored in the transmission / reception buffer 21 to the end, the ID determination unit 22 may determine the type of the message.

ダイアグ処理部11は、車載用通信システムに中継接続ユニット10の故障診断を行うダイアグノーシス(図示せず)が接続された場合に、ダイアグノーシスとダイアグメッセージの送受信を行っている。
ネットワークマネジメント処理部14は、バス31に接続された他のECU30とNMメッセージを送受信することで、ネットワーク協調制御やエラー判定を行い、車載用通信システムの通信の安全性と信頼性を確保している。
The diagnosis processing unit 11 transmits and receives a diagnosis message and a diagnosis message when a diagnosis (not shown) for diagnosing a failure of the relay connection unit 10 is connected to the in-vehicle communication system.
The network management processing unit 14 transmits and receives NM messages to and from other ECUs 30 connected to the bus 31, thereby performing network cooperative control and error determination, and ensuring communication safety and reliability of the in-vehicle communication system. Yes.

中継判別部15はCANコントローラ20からデータメッセージを受信すると、中継接続ユニット10が該データメッセージを他のECU30に中継する必要があるか否かを判別する。中継判別部15には、中継が必要なデータメッセージのIDを記載した中継テーブル(図示せず)を備えている。中継判別部15は受信したデータメッセージのIDが中継テーブルにあるか否かを判断し、中継テーブルにある場合にはデータメッセージをバッファ13に記憶させる。中継テーブルにない場合にはデータメッセージを破棄する。   When receiving the data message from the CAN controller 20, the relay determination unit 15 determines whether or not the relay connection unit 10 needs to relay the data message to another ECU 30. The relay discriminating unit 15 includes a relay table (not shown) that describes the ID of a data message that needs to be relayed. The relay determination unit 15 determines whether or not the ID of the received data message is in the relay table, and if it is in the relay table, stores the data message in the buffer 13. If it is not in the relay table, discard the data message.

バッファ13は中継判別部15と接続しており、データメッセージを受信した順に記憶している。また、バス31に送信するデータメッセージを一時的に記憶している。
中継処理部12はバッファ13と接続しており、バッファ13に記憶されたデータメッセージの中継処理を行っている。中継処理部12には、データメッセージのID毎に中継先を示したルーティングテーブル(図示せず)を備えている。中継処理部12はバッファ13に格納されたデータメッセージのうち先に格納されたものから順に読み出し、データメッセージのIDからルーティングテーブルを参照して中継先を判断し、バッファ13に送信する。
The buffer 13 is connected to the relay determination unit 15 and stores data messages in the order received. In addition, a data message to be transmitted to the bus 31 is temporarily stored.
The relay processing unit 12 is connected to the buffer 13 and performs relay processing of the data message stored in the buffer 13. The relay processing unit 12 includes a routing table (not shown) indicating a relay destination for each data message ID. The relay processing unit 12 sequentially reads out the data messages stored in the buffer 13 in advance, determines the relay destination by referring to the routing table from the ID of the data message, and transmits the data message to the buffer 13.

中継接続ユニット10のCANコントローラ20A,20Bと、ダイアグ処理部11と、中継処理部12と、バッファ13と、ネットワークマネジメント処理部14と、中継判別部15は、集積回路(IC)で構成してもよい。   The CAN controllers 20A and 20B, the diagnosis processing unit 11, the relay processing unit 12, the buffer 13, the network management processing unit 14, and the relay determination unit 15 of the relay connection unit 10 are configured by an integrated circuit (IC). Also good.

次に、本発明の中継接続ユニット10がメッセージを受信して中継処理部12、ダイアグ処理部11、ネットワークマネジメント処理部14に送信される場合の動作を図4のフローチャートを用いて説明する。
ステップS1では、CANコントローラ20Aがメッセージを受信し、送受信バッファ21にメッセージが記憶される。
ステップS2では、ID判別部22は送受信バッファ21からメッセージを読み出すと共に識別子記憶部23からテーブルを読み出し、テーブルを参照してメッセージのIDからメッセージの種類を判別している。メッセージがNMメッセージである場合はステップS3に、ダイアグメッセージである場合はステップS5に進む。またテーブルにメッセージIDが記載されていない場合は、データメッセージであると判断してステップS7に進む。
Next, the operation when the relay connection unit 10 of the present invention receives a message and transmits it to the relay processing unit 12, the diagnosis processing unit 11, and the network management processing unit 14 will be described with reference to the flowchart of FIG.
In step S <b> 1, the CAN controller 20 </ b> A receives the message, and the message is stored in the transmission / reception buffer 21.
In step S2, the ID determination unit 22 reads a message from the transmission / reception buffer 21 and reads a table from the identifier storage unit 23, and refers to the table to determine the message type from the message ID. If the message is an NM message, the process proceeds to step S3. If the message is a diagnostic message, the process proceeds to step S5. If the message ID is not described in the table, it is determined that the message is a data message and the process proceeds to step S7.

ステップS3では、ID判別部22はNMメッセージをネットワークマネジメント処理部14に送信している。
ステップS4では、ネットワークマネジメント処理部14では、該NMメッセージを用いてECU30の状態遷移などの処理を行っている。
ステップS5では、ID判別部22はダイアグメッセージをダイアグ処理部11に送信している。
ステップS6では、ダイアグ処理部11は、ダイアグメッセージを用いて故障診断等の処理を行っている。
In step S <b> 3, the ID determination unit 22 transmits an NM message to the network management processing unit 14.
In step S4, the network management processing unit 14 performs processing such as state transition of the ECU 30 using the NM message.
In step S <b> 5, the ID determination unit 22 transmits a diagnosis message to the diagnosis processing unit 11.
In step S6, the diagnosis processing unit 11 performs processing such as failure diagnosis using a diagnosis message.

ステップS7では、ID判別部22はデータメッセージを中継判別部15に送信している。
ステップS8では、中継判別部15は、データメッセージのIDから中継テーブルを参照して、データメッセージについて他のECU30に中継が必要であるか否かを判断している。中継が必要である場合にはステップS9に進む。中継が必要でない場合には、ステップS11に進む。
ステップS9では、データメッセージをバッファ13に記憶している。
ステップS10では、中継処理部12はバッファ13からデータメッセージを読み出し、ルーティングテーブルを参照して、該データメッセージの中継先を判断している。
ステップS11では、中継判別部15は、該データメッセージをバス31に中継不要と判断したので、データメッセージを廃棄している。
In step S <b> 7, the ID determination unit 22 transmits a data message to the relay determination unit 15.
In step S8, the relay determination unit 15 refers to the relay table from the ID of the data message, and determines whether or not the other ECU 30 needs to relay the data message. If relaying is necessary, the process proceeds to step S9. If relaying is not necessary, the process proceeds to step S11.
In step S9, the data message is stored in the buffer 13.
In step S10, the relay processing unit 12 reads the data message from the buffer 13, and refers to the routing table to determine the relay destination of the data message.
In step S11, the relay determination unit 15 determines that the data message is not relayed to the bus 31, and therefore discards the data message.

本発明によれば、CANコントローラ20のD判別部は、メッセージを受信すると、データメッセージ、NMメッセージのいずれであるかメッセージ種類の判別を行い、受信したメッセージがNMメッセージであると判別した場合には、バッファ13に格納せずに直接ネットワークマネジメント処理部14にNMメッセージを送信しているため、中継接続ユニット10が中継すべき多量のデータメッセージをバッファ13に格納している状態でNMメッセージを受信した場合であっても、NMメッセージの処理の遅延が発生することがなく、ネットワーク協調制御などのネットワークマネジメント機能を確実に実行することができる。   According to the present invention, when the D determination unit of the CAN controller 20 receives a message, the D determination unit determines whether the message is a data message or an NM message, and determines that the received message is an NM message. Transmits the NM message directly to the network management processing unit 14 without storing it in the buffer 13, so that the NM message is stored in the buffer 13 with a large amount of data messages to be relayed by the relay connection unit 10. Even if it is received, a delay in processing of the NM message does not occur, and a network management function such as network cooperative control can be reliably executed.

図5及び図6に本発明の第2実施形態を示す。
第2実施形態では中継判別部15を設けておらず、CANコントローラ20はバッファ13と接続している。CANコントローラ20のID判別部22においてデータメッセージの中継を行うか否かを判断している。
CANコントローラ20の識別子記憶部23には、例えば図6に示すテーブルを備えている。該テーブルは、中継接続ユニット10が受信するメッセージのID毎に、メッセージがダイアグメッセージ、NMメッセージ及びデータメッセージのいずれであるかを記載している。また、データメッセージであるが中継処理部12が中継を行わないメッセージである場合には、廃棄することが記載されている。
5 and 6 show a second embodiment of the present invention.
In the second embodiment, the relay determination unit 15 is not provided, and the CAN controller 20 is connected to the buffer 13. The ID determination unit 22 of the CAN controller 20 determines whether to relay the data message.
The identifier storage unit 23 of the CAN controller 20 includes, for example, a table shown in FIG. This table describes whether the message is a diagnostic message, an NM message, or a data message for each message ID received by the relay connection unit 10. Further, it is described that if the message is a data message but the relay processing unit 12 does not relay, the message is discarded.

ID判別部22は送受信バッファ21に記憶されたメッセージを読み出すと、メッセージのIDとテーブルを比較する。例えば、メッセージのIDが100の場合、ID判別部22は該メッセージはデータメッセージであると判断してバッファ13に送信する。また、メッセージのIDが110の場合、ID判別部22は該メッセージは廃棄するものと判断し、廃棄の処理を行う。   When the ID determination unit 22 reads the message stored in the transmission / reception buffer 21, the ID of the message is compared with the table. For example, when the message ID is 100, the ID determination unit 22 determines that the message is a data message and transmits the message to the buffer 13. When the message ID is 110, the ID determination unit 22 determines that the message is to be discarded, and performs the discarding process.

このように、中継判別部15の機能をCANコントローラ20のID判別部22で行うことで、部品点数を削減することができ、中継接続ユニット10の構成が簡単になる。
なお、他の構成および作用効果は第1実施形態と同様のため、同一の符号を付して説明を省略する。
Thus, by performing the function of the relay determination unit 15 by the ID determination unit 22 of the CAN controller 20, the number of parts can be reduced, and the configuration of the relay connection unit 10 is simplified.
In addition, since another structure and an effect are the same as that of 1st Embodiment, the same code | symbol is attached | subjected and description is abbreviate | omitted.

本発明である中継接続ユニットの第1実施形態を示す構成図である。It is a block diagram which shows 1st Embodiment of the relay connection unit which is this invention. CANコントローラの構成図である。It is a block diagram of a CAN controller. メッセージの種類を判別するテーブルの例である。It is an example of the table which discriminates the kind of message. 中継接続ユニットの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a relay connection unit. 第2実施形態を示す中継接続ユニットの構成図である。It is a block diagram of the relay connection unit which shows 2nd Embodiment. メッセージの種類を判別するテーブルの例である。It is an example of the table which discriminates the kind of message. 従来例を示す図である。It is a figure which shows a prior art example.

符号の説明Explanation of symbols

10 中継接続ユニット
11 ダイアグ処理部
12 中継処理部
13 バッファ
14 ネットワークマネジメント処理部
15 中継判別部
20(20A,20B) CANコントローラ
21 送受信バッファ
22 ID判別部
23 識別子記憶部
30 電子制御ユニット(ECU)
31(31A、31B) バス
DESCRIPTION OF SYMBOLS 10 Relay connection unit 11 Diag processing part 12 Relay processing part 13 Buffer 14 Network management processing part 15 Relay discrimination | determination part 20 (20A, 20B) CAN controller 21 Transmission / reception buffer 22 ID discrimination | determination part 23 Identifier storage part 30 Electronic control unit (ECU)
31 (31A, 31B) Bus

Claims (5)

電子制御ユニットが夫々接続している複数のバスの間に介在させ、異なるバスに属する前記電子制御ユニットとメッセージを中継する車載用の中継接続ユニットであって、
前記他の電子制御ユニットからのメッセージを受信する受信部と、
前記他の電子制御ユニットにメッセージを送信する送信部と、
前記受信部で受信したメッセージを前記送信部から送信する中継処理部と、
ネットワークマネジメントメッセージ(NMメッセージ)を前記他の電子制御ユニットと送受信して各電子制御ユニットのネットワークマネジメント機能を実行するネットワークマネジメント処理部と、
前記ネットワークマネジメント処理部と接続されると共にバッファを介して前記中継処理部と接続され、前記バスから前記他の電子制御ユニットからのメッセージを受信して、該メッセージがデータメッセージか前記NMメッセージかを判別し、前記NMメッセージは前記バッファを介さずに前記ネットワークマネジメント処理部に送信し、前記データメッセージはバッファに送信する判別部と、
を備えていることを特徴とする中継接続ユニット。
An in-vehicle relay connection unit that is interposed between a plurality of buses to which electronic control units are connected, and relays messages with the electronic control units belonging to different buses,
A receiver for receiving a message from the other electronic control unit;
A transmitter for transmitting a message to the other electronic control unit;
A relay processing unit for transmitting a message received by the receiving unit from the transmitting unit;
A network management processing unit that transmits and receives a network management message (NM message) to and from the other electronic control unit to execute a network management function of each electronic control unit;
Connected to the network management processing unit and connected to the relay processing unit via a buffer, receives a message from the other electronic control unit from the bus, and determines whether the message is a data message or the NM message. A determination unit that transmits the NM message to the network management processing unit without passing through the buffer, and transmits the data message to the buffer;
A relay connection unit characterized by comprising:
少なくとも前記NMメッセージのIDを記憶する識別子記憶部と、前記判別部と、前記受信部と、前記送信部と、を有するコントローラを備え、
前記判別部は、受信するメッセージのIDと前記識別子記憶部に記憶されたIDとを比較して前記メッセージがデータメッセージか前記NMメッセージかを判別する請求項1に記載の中継接続ユニット。
A controller having at least an identifier storage unit that stores an ID of the NM message, the determination unit, the reception unit, and the transmission unit;
The relay connection unit according to claim 1, wherein the determination unit determines whether the message is a data message or the NM message by comparing an ID of a received message with an ID stored in the identifier storage unit.
故障検知用のダイアグメッセージを受信するダイアグ処理部を備え、
前記識別子記憶部はダイアグメッセージのIDを記憶しており、
前記判別部は、前記ダイアグメッセージであることを判別すると、前記ダイアグメッセージを前記バッファを介さずに前記ダイアグ処理部に送信する請求項1または請求項2に記載の中継接続ユニット。
A diagnostic processing unit is provided for receiving diagnostic diagnostic messages.
The identifier storage unit stores an ID of a diagnostic message,
3. The relay connection unit according to claim 1, wherein when the determination unit determines that the message is the diagnosis message, the determination unit transmits the diagnosis message to the diagnosis processing unit without passing through the buffer.
前記判別部と前記バッファの間に中継判別部を介在させ、
前記判別部は、前記受信するメッセージのIDが前記識別子記憶部に記載されていない場合には、該メッセージを前記データメッセージであると判断して前記中継判別部に送信し、
前記中継判別部は、前記データメッセージのIDから前記データメッセージの中継または廃棄を判別し、中継の場合には前記データメッセージを前記バッファに送信し、廃棄の場合には前記データメッセージを廃棄する請求項2または請求項3に記載の中継接続ユニット。
Interposing a relay discriminator between the discriminator and the buffer;
If the ID of the received message is not described in the identifier storage unit, the determination unit determines that the message is the data message and transmits the message to the relay determination unit.
The relay determination unit determines whether the data message is relayed or discarded based on the ID of the data message, transmits the data message to the buffer in the case of relay, and discards the data message in the case of discard. The relay connection unit according to claim 2 or claim 3.
前記識別子記憶部に、中継が必要なデータメッセージのID及び廃棄するデータメッセージのIDを記憶しており、
前記判別部は、受信するメッセージが前記中継が必要なデータメッセージであると判別した場合は該データメッセージを前記バッファに送信し、廃棄するデータメッセージであると判別した場合には、該データメッセージを廃棄している請求項2または請求項3に記載の中継接続ユニット。
The identifier storage unit stores an ID of a data message that needs to be relayed and an ID of a data message to be discarded,
The determination unit transmits the data message to the buffer when determining that the received message is a data message that needs to be relayed, and determines that the data message is determined to be a data message to be discarded. The relay connection unit according to claim 2 or 3, which is discarded.
JP2007240905A 2007-09-18 2007-09-18 Relay connection unit Expired - Fee Related JP4959484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007240905A JP4959484B2 (en) 2007-09-18 2007-09-18 Relay connection unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007240905A JP4959484B2 (en) 2007-09-18 2007-09-18 Relay connection unit

Publications (2)

Publication Number Publication Date
JP2009071773A true JP2009071773A (en) 2009-04-02
JP4959484B2 JP4959484B2 (en) 2012-06-20

Family

ID=40607540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007240905A Expired - Fee Related JP4959484B2 (en) 2007-09-18 2007-09-18 Relay connection unit

Country Status (1)

Country Link
JP (1) JP4959484B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012153945A2 (en) * 2011-05-11 2012-11-15 성균관대학교 산학협력단 Method for managing an osek network path

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001045329A1 (en) * 1999-12-15 2001-06-21 Hitachi, Ltd. Gateway and distributed system using the gateway
JP2003283527A (en) * 2002-03-22 2003-10-03 Sumitomo Electric Ind Ltd On-vehicle network system and vehicle information management device
JP2006222649A (en) * 2005-02-09 2006-08-24 Fujitsu Ten Ltd Gateway device with network monitoring function
JP2007161092A (en) * 2005-12-14 2007-06-28 Auto Network Gijutsu Kenkyusho:Kk Load synchronous control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001045329A1 (en) * 1999-12-15 2001-06-21 Hitachi, Ltd. Gateway and distributed system using the gateway
JP2003283527A (en) * 2002-03-22 2003-10-03 Sumitomo Electric Ind Ltd On-vehicle network system and vehicle information management device
JP2006222649A (en) * 2005-02-09 2006-08-24 Fujitsu Ten Ltd Gateway device with network monitoring function
JP2007161092A (en) * 2005-12-14 2007-06-28 Auto Network Gijutsu Kenkyusho:Kk Load synchronous control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012153945A2 (en) * 2011-05-11 2012-11-15 성균관대학교 산학협력단 Method for managing an osek network path
WO2012153945A3 (en) * 2011-05-11 2013-03-21 성균관대학교 산학협력단 Method for managing an osek network path
US9323629B2 (en) 2011-05-11 2016-04-26 Research & Business Foundation Sungkyunkwan University Method for managing path failures of OSEK networks

Also Published As

Publication number Publication date
JP4959484B2 (en) 2012-06-20

Similar Documents

Publication Publication Date Title
US10693905B2 (en) Invalidity detection electronic control unit, in-vehicle network system, and communication method
JP4407752B2 (en) FAILURE LOCATION DETECTION DEVICE, COMMUNICATION DEVICE, AND FAILURE LOCATION DETECTION METHOD
JP2007038904A (en) Car-mounted gateway device and message forwarding method used in gateway device
JP5050653B2 (en) Electronic control device
JP2008219555A (en) On-board relay connection unit
JP2006222649A (en) Gateway device with network monitoring function
JP6760199B2 (en) In-vehicle communication system, in-vehicle relay device and message relay method
US11909748B2 (en) Anti-fraud control system, monitoring device, and anti-fraud control method
US20160283432A1 (en) Protocol-tolerant communications in controller area networks
JP6176199B2 (en) Transmission line abnormality detection device
JP2019146145A (en) Communication device, communication method, and program
JP5696685B2 (en) In-vehicle communication system, communication abnormality monitoring method for in-vehicle communication system, and communication abnormality monitoring program for in-vehicle communication system
JP4959484B2 (en) Relay connection unit
JP2004349961A (en) Repeating device and program
JP4361540B2 (en) Gateway device, data transfer method, and program
JP2009267853A (en) Communication system and communication method
JP5212339B2 (en) Data relay apparatus and data relay method
JP6593230B2 (en) Communications system
JP6137033B2 (en) In-vehicle network system and in-vehicle relay device
JP2008042562A (en) Gateway device
JP2020150442A (en) Gateway unit
JP6183281B2 (en) Communication system and electronic control device
WO2023037711A1 (en) In-vehicle relay device, in-vehicle relay method, and in-vehicle relay program
JP7205439B2 (en) electronic controller
JP2014187544A (en) Communication system, communication node, and communication method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100804

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120207

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120321

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150330

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees