JP2008160574A - Data relay device - Google Patents
Data relay device Download PDFInfo
- Publication number
- JP2008160574A JP2008160574A JP2006348283A JP2006348283A JP2008160574A JP 2008160574 A JP2008160574 A JP 2008160574A JP 2006348283 A JP2006348283 A JP 2006348283A JP 2006348283 A JP2006348283 A JP 2006348283A JP 2008160574 A JP2008160574 A JP 2008160574A
- Authority
- JP
- Japan
- Prior art keywords
- data
- relay device
- bus
- transmission
- data frame
- 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
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
【課題】データを伝送する複数の多重通信線の間に介設されて複数の種類のデータを中継するデータ中継装置において、通信ノードの接続先バスを変更する場合であっても、ルーティングテーブルの書換作業を発生させないようにする。
【解決手段】多重通信システム1において、データ中継装置10は、データIDおよび送信元チャンネル情報と送信先バスとを対応付けて記録したルーティングテーブル17を備えている。データ中継装置10は、データフレーム内容を特定するためのデータIDが付加されたデータフレームを任意のバスから受信し、このデータフレームに送信元のバスを識別するための送信元チャンネル情報を付加し、このデータフレームをメインバッファ15に保持させる。そして、ルーティングテーブル17を参照することにより送信先バスを特定し、このバスに対してメインバッファ15に保持されたデータフレームを送信する。
【選択図】図2In a data relay device that is provided between a plurality of multiplex communication lines for transmitting data and relays a plurality of types of data, even if a connection destination bus of a communication node is changed, a routing table Avoid rewriting work.
In a multiplex communication system, a data relay device includes a routing table that records data IDs, transmission source channel information, and transmission destination buses in association with each other. The data relay apparatus 10 receives a data frame to which a data ID for specifying the data frame content is added from an arbitrary bus, and adds transmission source channel information for identifying the transmission source bus to the data frame. The data frame is held in the main buffer 15. Then, the destination bus is specified by referring to the routing table 17, and the data frame held in the main buffer 15 is transmitted to this bus.
[Selection] Figure 2
Description
本発明は、データを伝送する複数の多重通信線の間に介設されて複数の種類のデータを中継するデータ中継装置に関する。 The present invention relates to a data relay apparatus that is interposed between a plurality of multiplex communication lines that transmit data and relays a plurality of types of data.
従来、例えばCAN等の送信先通信ノードを特定しない通信プロトコルを用いたデータ伝送を行う複数のバス(多重通信線)の間に介設されて、データの中継を行うデータ中継装置が広く知られている。このようなデータ中継装置には、データを受信すると、データ内容と送信先バスとが対応付けられたルーティングテーブルを参照し、このルーティングテーブルに基づいて送信先バスを特定し、特定された送信先バスのみに受信したデータを転送する機能を有するものが知られている(例えば、特許文献1参照)。 2. Description of the Related Art Conventionally, for example, data relay apparatuses that relay data by being interposed between a plurality of buses (multiplex communication lines) that perform data transmission using a communication protocol that does not specify a destination communication node such as CAN are widely known. ing. In such a data relay device, when receiving data, the routing table in which the data contents and the destination bus are associated is referred to, the destination bus is specified based on the routing table, and the specified destination is specified. One having a function of transferring received data only to a bus is known (for example, see Patent Document 1).
特に、このようなデータ中継装置としては、各通信ノード間では、送信元通信ノードおよびデータ内容を特定する固有のIDをデータに付してデータ伝送を実施し、データ中継装置においては、IDと送信先バスとが対応付けられたルーティングテーブルを参照し、送信先バスを特定するものも開発されている。 In particular, as such a data relay device, between each communication node, a transmission source communication node and a unique ID for specifying data contents are attached to the data, and data transmission is performed. A device that identifies a destination bus by referring to a routing table associated with the destination bus has also been developed.
ここで、IDを利用してデータの中継を実施するデータ中継装置に用いられるルーティングテーブルとしては、例えば図9に示すようなものが使用される。ただし、図9においては、「1」と表示されたバスに対してデータを送信し、「0」と表示されたバスに対してはデータを送信しないことを示す。 Here, for example, a routing table as shown in FIG. 9 is used as a routing table used in a data relay apparatus that relays data using an ID. However, in FIG. 9, data is transmitted to the bus labeled “1”, and data is not transmitted to the bus labeled “0”.
即ち、このルーティングテーブルによれば、例えばIDが004であるデータは、送信元バスがBus1であって、送信先バスがBus2およびBus3であることが分かる。つまり、IDが004であるデータをデータ中継装置が中継すると、Bus2およびBus3に接続された通信ノードにおいてこのデータを受信することができるようになる。
That is, according to this routing table, for example, for data with
また、データ中継装置がデータを中継するか否かに拘わらず、送信元バスであるBus1に接続された通信ノードもこのデータを受信することができる。
ところで、上記データ中継装置が接続された通信系においては、ある通信ノードを接続するバス(接続先バス)を変更するような設計変更がしばしば起こり得る。
このような場合において、上記データ中継装置では、IDに対して送信先バスが特定されるルーティングテーブルを備えているだけであるので、データを必要とするバスに対してデータを中継することができなくなるという問題点がある。
By the way, in a communication system to which the data relay device is connected, a design change such as changing a bus (connection destination bus) connecting a certain communication node can often occur.
In such a case, the data relay device only includes a routing table for specifying the transmission destination bus with respect to the ID, so that data can be relayed to a bus that requires data. There is a problem of disappearing.
具体的に、図9を用いて説明すると、IDが004であるデータは、上記のように、送信元通信ノードの接続先バスがBus1に設定されている場合には、Bus1、Bus2、およびBus3に接続された通信ノードがデータを受信することができる。しかしながら、この送信元通信ノードの接続先バスがBus2に変更されたと仮定すると、ルーティングテーブルには送信先バスにBus1が指定されていないため、Bus1に接続された通信ノードではこの送信元通信ノードからのデータを受信することができなくなる。 Specifically, referring to FIG. 9, when the connection destination bus of the transmission source communication node is set to Bus1 as described above, the data whose ID is 004 is Bus1, Bus2, and Bus3. A communication node connected to can receive data. However, assuming that the connection destination bus of the transmission source communication node is changed to Bus2, Bus1 is not specified as the transmission destination bus in the routing table, and therefore the communication node connected to Bus1 does not have this transmission source communication node. Data cannot be received.
このため、上記データ中継装置においては、通信ノードの接続先バスを変更するような場合には、その都度ルーティングテーブルの書換作業を実施する必要があり、その作業が煩雑になっていた。 For this reason, in the data relay device, when the connection destination bus of the communication node is changed, it is necessary to rewrite the routing table each time, which is complicated.
そこで、このような問題点を鑑み、データを伝送する複数の多重通信線の間に介設されて複数の種類のデータを中継するデータ中継装置において、通信ノードの接続先バスを変更する場合であっても、ルーティングテーブルの書換作業を発生させないようにすることを本発明の目的とする。 Therefore, in view of such a problem, in a data relay device that relays a plurality of types of data that is interposed between a plurality of multiplex communication lines that transmit data, the connection destination bus of the communication node is changed. Even if it exists, it is an object of the present invention to prevent the routing table from being rewritten.
かかる目的を達成するために成された請求項1に記載のデータ中継装置においては、付加手段が、データ内容を特定するための特定情報が付加されたデータを受信し、受信したデータに送信元の多重通信線を識別するための識別情報を付加し、識別情報を付加したデータをメインバッファに保持させる。そして、送信手段が特定情報および識別情報と送信先の多重通信線とを予め対応付けて記録したルーティングテーブルを参照することによりメインバッファに保持されたデータにおける送信先の多重通信線を特定し、特定された送信先の多重通信線に対してメインバッファに保持されたデータを送信する。
The data relay device according to
即ち、本発明においては、送信手段が参照するルーティングテーブルには、特定情報および識別情報の両方が指定されると、送信先の多重通信線が特定されるようにデータが書き込まれている。従って、このようなデータ中継装置によれば、送信元の通信ノード(データ送信元の装置)を接続した多重通信線が変更されたとしても、ルーティングテーブルにその変更後における識別情報に対応して中継先の多重通信線を特定するデータが書き込まれていれば、ルーティングテーブルを書き換えることなくデータを良好に中継することができる。 That is, in the present invention, data is written in the routing table referred to by the transmission means so that when both the specific information and the identification information are specified, the destination multiple communication line is specified. Therefore, according to such a data relay device, even if the multiplex communication line connected to the transmission source communication node (data transmission source device) is changed, the routing table corresponds to the identification information after the change. If data specifying the multiplex communication line of the relay destination is written, the data can be favorably relayed without rewriting the routing table.
なお、本発明におけるルーティングテーブルは、任意の装置に備えられた記録手段に予め格納されていればよい。
ところで、請求項1に記載のデータ中継装置においては、請求項2に記載のように、送信元の多重通信線を介して受信したデータを一時保持する受信バッファを備え、付加手段は、受信バッファに保持されたデータに識別情報を付加し、識別情報を付加したデータをメインバッファに保持させるようにしてもよい。
Note that the routing table in the present invention may be stored in advance in recording means provided in an arbitrary apparatus.
By the way, the data relay device according to
このようなデータ中継装置によれば、受信バッファにデータを一時保持することができるので、付加手段および送信手段が実行する処理に余裕を持たせることができる。よって、処理が追いつかないことによって中継すべきデータが破棄されることを防止することができる。 According to such a data relay device, data can be temporarily stored in the reception buffer, so that the processing executed by the adding means and the transmitting means can be given a margin. Therefore, it is possible to prevent the data to be relayed from being discarded due to the process not catching up.
さらに、請求項1または請求項2に記載のデータ中継装置において、送信手段は、請求項3に記載のように、付加された識別情報を送信先の多重通信線に送信する前に削除するようにしてもよい。
Furthermore, in the data relay apparatus according to
このようなデータ中継装置によれば、通信には不要なデータを削除するので、多重通信線における通信負荷を軽減することができる。
また、請求項1〜請求項3の何れかに記載のデータ中継装置において、特定情報がデータ内容およびデータを送信した通信ノードを特定するIDである場合には、請求項4に記載のように、ルーティングテーブルには、IDおよび識別情報と送信先の多重通信線とが対応付けて記録されていてもよい。
According to such a data relay device, data unnecessary for communication is deleted, so the communication load on the multiplex communication line can be reduced.
Further, in the data relay device according to any one of
このようなデータ中継装置によれば、IDによって送信元の通信ノードを特定することができる。
また、従来装置のルーティングテーブルにおいては、1つのIDに対して1つのルーティング(IDに対応する送信先の多重通信線)しか書き込むことができなかったが、本発明のデータ中継装置においては、1つのIDに対して複数の識別情報を対応付けることにより、1つのIDに対して複数のルーティングをルーティングテーブルに書き込むことができる。
According to such a data relay device, the transmission source communication node can be specified by the ID.
Further, in the routing table of the conventional apparatus, only one routing (the destination multiple communication line corresponding to the ID) can be written for one ID, but in the data relay apparatus of the present invention, 1 By associating a plurality of identification information with one ID, a plurality of routings can be written to the routing table for one ID.
よって、このようなデータ中継装置によれば、IDによって送信先の多重通信線を特定する場合であって、送信元の通信ノードを接続する多重通信線を変更した場合であっても、ルーティングテーブルの書換作業を不要とすることができる。 Therefore, according to such a data relay apparatus, even when the multiplex communication line of the transmission destination is specified by the ID and the multiplex communication line connecting the communication node of the transmission source is changed, the routing table The rewriting work can be made unnecessary.
以下に本発明にかかる実施形態を図面と共に説明する。
[データ中継装置1の構成]
図1および図2には、本発明のデータ中継装置10を含む多重通信システム1の模式図を示す。
Embodiments according to the present invention will be described below with reference to the drawings.
[Configuration of Data Relay Device 1]
1 and 2 are schematic diagrams of a
本実施形態にて説明する多重通信システム1は、自動車の制御装置間のデータのやりとりに使用されるものであり、図1および図2に示すように、複数の通信バス(本発明でいう多重通信線、以下単に「バス」ともいう。)と、各バス(Bus1、Bus2、Bus3、…、Busn(nは任意の自然数))に接続された複数の制御装置と、データ中継装置10とを備えて構成されている。
The
複数の制御装置としては、図1に示すように、燃料の噴射量や点火タイミング等を制御するエンジンECU(電子制御装置)31、ブレーキを制御するブレーキECU32、変速制御を実施するトランスミッションECU33、空調装置を制御するエアコンECU43等を備えている。これらの制御装置は、予め設定されたバスに接続されている。
As shown in FIG. 1, the plurality of control devices include an engine ECU (electronic control device) 31 that controls the fuel injection amount, ignition timing, and the like, a
なお、図2においては各制御装置に備えられた通信ノード40のみを表示している。また、各バスは、データ中継装置10と接続されている。
この多重通信システム1では、データ中継装置10が、ある通信ノード40から送信されたデータを必要に応じて別のバスに接続された通信ノード40へと中継するようになっている。
In FIG. 2, only the
In the
ここで、各通信ノード40間のデータのやりとりは、各通信ノード40が所定のプロトコルにてデータを送受信することにより行われる。本実施形態において各通信ノード40は、例えば、周知のCAN(Controller Area Network)プロトコルで通信を実施する。
Here, the exchange of data between the
この通信プロトコルにおいて、各通信ノード40は、図3(a)に示すような形式のデータ(データフレーム)を送信する。即ち、各通信ノード40は、通信を実施する際に、他の制御装置が必要とする所望の通信データ(データ部)に、通信データの内容(ここでは、送信元通信ノード40および通信データの種別)を特定するためのデータID(識別子、本発明でいう特定情報)を付加したデータフレームを生成して送信する。
In this communication protocol, each
次に、データ中継装置1は、図2に示すように、制御用のマイクロコンピュータ(図示省略)、ドライバ/レシーバ11、受信バッファ13、メインバッファ15、フレーム転送制御部16、ルーティングテーブル17、送信バッファ18を備えて構成されている。制御用のマイクロコンピュータは、図2における通信制御部12、送信元チャンネル情報処理部14、およびフレーム転送制御部16としての機能をソフトウェアによる処理として実現する。
Next, as shown in FIG. 2, the
なお、通信制御部12、送信元チャンネル情報処理部14、およびフレーム転送制御部16としての機能の少なくとも一部分は、例えば、通信用IC等のハードウェアにより実現されていてもよい。このように、通信制御部12、送信元チャンネル情報処理部14、およびフレーム転送制御部16としての機能の少なくとも一部分がハードウェアにより構成されている場合には、後述する格納処理(図4)、ルーティング処理(図5)、および送信処理(図7)の少なくとも一部分が、このハードウェアによる処理に置き換えられて実施される。
Note that at least a part of the functions as the
また、図2においては、各バス(Bus1〜Busn)、ドライバ/レシーバ11、通信制御部12、および送信元チャンネル情報処理部14は、データの流れを明確にするために2つずつ記載しているが、実際には1つずつだけ備えられていればよい。
In FIG. 2, each bus (
さらに、ドライバ/レシーバ11、受信バッファ13、および送信バッファ18は、接続された複数のバスの本数に応じて、その記憶領域が1対1に対応して設けられている。つまり、本実施形態の場合、データ中継装置1にはバスがn本接続されているので、ドライバ/レシーバ11、受信バッファ13、および送信バッファ18における記憶領域は、n本のバスに対応してn個ずつ設けられていることを意味する。
Furthermore, the driver /
また、受信バッファ13および送信バッファ18は、データフレームが送信バッファ18に格納されてもすぐに転送される保証がないため、複数のデータフレームを格納できるだけのバッファ容量が確保されている。なお、ドライバ/レシーバ11におけるバッファ容量については、各バスにおける通信速度に応じて最低限の容量が確保されていれば、受信バッファ13および送信バッファ18におけるバッファ容量に対して少ない容量であってもよい。
In addition, the
ここで、通信制御部12および送信元チャンネル情報処理部の機能を用いて受信したデータフレームをメインバッファ15に格納する処理を図4を用いて説明する。図4は制御用のマイクロコンピュータが実施する格納処理を示すフローチャートである。
Here, the process of storing the data frame received using the functions of the
格納処理は、例えば、車両におけるイグニッションスイッチ(図示省略)がON状態にされたときに開始される処理であって、まず、何れかの通信ノード40(何れかのバス)からデータフレームを受信したか否かを判定する(S110)。データフレームを受信していなければ(S110:No)、S110の処理を繰り返す。 The storage process is a process that is started when, for example, an ignition switch (not shown) in the vehicle is turned on. First, a data frame is received from any communication node 40 (any bus). It is determined whether or not (S110). If no data frame has been received (S110: No), the process of S110 is repeated.
また、データフレームを受信していれば(S110:Yes)、データフレームをデータ中継装置10のドライバ/レシーバ11のメモリに格納する(S120)。この処理においてドライバ/レシーバ11には、接続されたバスに対応してチャンネル(CH)番号(Bus1にはCH1、Bus2にはCH2、BusnにはCHn)が割り当てられており、データフレームが送信されてきたバスに対応した記憶領域にデータフレームが格納される。
If a data frame has been received (S110: Yes), the data frame is stored in the memory of the driver /
続いて、ドライバ/レシーバ11のメモリ内のデータフレームを受信バッファ13のメモリに格納する(S130)。この処理においても、データフレームが送信されてきたバス(チャンネル番号)毎に対応する受信バッファ13の記憶領域(RxBuf1、RxBuf2、…、RxBufn)にデータフレームを格納する。
Subsequently, the data frame in the memory of the driver /
次いで、受信バッファ13にて受信されたデータフレームに対して、送信元チャンネル情報(本発明でいう識別情報)を付加する(S140:本発明でいう付加手段)。この処理を実施する直前においては、当該データ中継装置10によりデータフレームを受信したときと同様のデータフレーム(図3(a)に示すデータIDとデータ部とからなるもの)が受信バッファ13に格納されており、この処理にて、このデータフレームに送信元チャンネル情報を付加する。
Next, transmission source channel information (identification information referred to in the present invention) is added to the data frame received by the reception buffer 13 (S140: addition means referred to in the present invention). Immediately before the execution of this process, the same data frame as that when the data frame is received by the data relay device 10 (consisting of the data ID and the data part shown in FIG. 3A) is stored in the
なお、この処理においては、データ部の後に送信元チャンネル情報を付加してもよいし(図3(b)参照)、データIDの前に送信元チャンネル情報を付加してもよい(図3(c)参照)。また、読み出し可能であれば、データIDとデータ部との間等、任意の位置に送信元チャンネル情報を付加することもできる。 In this process, transmission source channel information may be added after the data portion (see FIG. 3B), or transmission source channel information may be added before the data ID (FIG. 3 (FIG. 3). c)). Further, the source channel information can be added to an arbitrary position such as between the data ID and the data portion as long as it can be read.
ここで、送信元チャンネル情報としては、ドライバ/レシーバ11に割り当てられたチャンネル番号に対応したデータが付加される。よって、この送信元チャンネル情報が付加されたデータフレームは、データ内の送信元チャンネル情報が参照されることにより、何れのバスから送信されたデータフレームであるかを特定することができるようになる。
Here, as the transmission source channel information, data corresponding to the channel number assigned to the driver /
続いて、送信元チャンネル情報を付加したデータフレームを、メインバッファ15のメモリに格納し(S150)、格納処理を終了する。なお、このメインバッファ15のメモリは、チャンネル番号毎に記憶領域が分離されていることはなく、周知のFIFO方式のメモリとして構成されており、多数のデータフレームを格納することができる構成にされている。
Subsequently, the data frame to which the transmission source channel information is added is stored in the memory of the main buffer 15 (S150), and the storage process is terminated. Note that the memory of the
次に、フレーム転送制御部16および送信元チャンネル情報処理部14としての機能を用いて、メインバッファ15に格納されたデータフレームを送信先バスに対応した送信バッファへ転送する処理について図5を用いて説明する。図5は制御用のマイクロコンピュータが実施するルーティング処理を示すフローチャートである。なお、このルーティング処理および後述する送信処理は、本発明でいう送信手段に相当する。
Next, FIG. 5 is used to explain the process of transferring the data frame stored in the
このルーティング処理は、例えば、車両におけるイグニッションスイッチがON状態にされたときに開始される処理であって、前述の送信処理とは独立して実施される。具体的には、まず、メインバッファ15にデータフレームが格納されているか否かを判定する(S210)。メインバッファ15にデータフレームが格納されていなければ(S210)、ルーティング処理を初めから繰り返す。 This routing process is a process that is started, for example, when an ignition switch in the vehicle is turned on, and is performed independently of the transmission process described above. Specifically, first, it is determined whether or not a data frame is stored in the main buffer 15 (S210). If no data frame is stored in the main buffer 15 (S210), the routing process is repeated from the beginning.
また、メインバッファ15にデータフレームが格納されていれば(S210:Yes)、メインバッファ15に格納されたデータフレームのうち受信してから最も時間が経過しているデータフレームについて、データIDおよび送信元チャンネル情報を読み出し、この読み出した情報とルーティングテーブル17とを比較する(S220)。
Further, if a data frame is stored in the main buffer 15 (S210: Yes), the data ID and transmission of the data frame that has passed the longest time since the data frame stored in the
ここで、ルーティングテーブル17について、図6を用いて説明する。図6は本実施形態のルーティングテーブルを示す説明図である。
本実施形態におけるルーティングテーブル17には、図6に示すように、データIDのそれぞれについて、異なる複数の送信元チャンネル番号がそれぞれ対応付けて記録されており、複数の送信元チャンネル番号毎にそれぞれ送信先チャンネル番号(送信先バスと同義)が記録されている。つまり、このルーティングテーブル17によれば、データIDと送信元チャンネル番号とを特定することによって、異なる送信先チャンネル番号を特定する処理(ルーティング)を実施することができるようになる。
Here, the routing table 17 will be described with reference to FIG. FIG. 6 is an explanatory diagram showing the routing table of this embodiment.
In the routing table 17 in this embodiment, as shown in FIG. 6, a plurality of different transmission source channel numbers are recorded in association with each of the data IDs, and transmission is performed for each of the plurality of transmission source channel numbers. The destination channel number (synonymous with the destination bus) is recorded. That is, according to the routing table 17, by specifying the data ID and the transmission source channel number, a process (routing) for specifying a different transmission destination channel number can be performed.
このため、このルーティングテーブル17によれば、同じデータIDであったとしても、送信元バス(送信元チャンネル番号)が異なれば、異なるルーティングを実施することができるようになっている。 Therefore, according to the routing table 17, even if the data ID is the same, different routing can be performed if the transmission source bus (transmission source channel number) is different.
なお、図6に示す例においては、データフレームを転送する必要がある送信先バスに対応する送信先チャンネル番号については「1」と記載され、データフレームを転送する必要がない送信先バスに対応する送信先チャンネル番号については「0」と記載されている。このため、全ての送信先チャンネル番号で「0」と記載されていれば、このデータフレームを他のバスに転送する必要がないことを意味する。 In the example shown in FIG. 6, the transmission destination channel number corresponding to the transmission destination bus to which the data frame needs to be transferred is described as “1” and corresponds to the transmission destination bus that does not need to transfer the data frame. The transmission destination channel number to be transmitted is described as “0”. Therefore, if “0” is written in all the transmission destination channel numbers, this means that it is not necessary to transfer this data frame to another bus.
また、このルーティングテーブル17は、データ中継装置10内の所定のメモリに記録されている。具体的にルーティングテーブル17の記載内容を説明すると、例えば、データID「002」に対しては、送信元チャンネル番号「CH1」「CH2」「CH3」…「CHn」が対応付けられている。そして、送信元チャンネル番号「CH1」においては、送信先チャンネル番号「CH1」が「0」、送信先チャンネル番号「CH2」「CH3」が「1」に設定されている。
The routing table 17 is recorded in a predetermined memory in the
また、送信元チャンネル番号「CH2」においては、送信先チャンネル番号「CH1」「CH2」が「0」、送信先チャンネル番号「CH3」が「1」に設定されている。さらに、送信元チャンネル番号「CH3」においては、送信先チャンネル番号「CH1」「CH3」が「0」、送信先チャンネル番号「CH2」が「1」に設定されている。 In the transmission source channel number “CH2”, the transmission destination channel numbers “CH1” and “CH2” are set to “0”, and the transmission destination channel number “CH3” is set to “1”. Further, in the transmission source channel number “CH3”, the transmission destination channel numbers “CH1” and “CH3” are set to “0”, and the transmission destination channel number “CH2” is set to “1”.
続いて、図5に戻り、このデータフレームを何れかのバスに転送する必要があるか否かを判定する(S230)。データフレームを何れかのバスに転送する必要があれば(S230:Yes)、このデータフレームをメインバッファ15から読み出し(S240)、データフレームから送信元チャンネル情報を削除し、ルーティングテーブルにより特定された送信先チャンネル番号が対応する送信バッファの記憶領域に、このデータフレームを転送する(S250)。このようにS250の処理が終了すると、ルーティング処理を始めから繰り返す。 Subsequently, returning to FIG. 5, it is determined whether or not this data frame needs to be transferred to any bus (S230). If it is necessary to transfer the data frame to any of the buses (S230: Yes), this data frame is read from the main buffer 15 (S240), the source channel information is deleted from the data frame, and specified by the routing table This data frame is transferred to the storage area of the transmission buffer corresponding to the transmission destination channel number (S250). Thus, when the process of S250 is completed, the routing process is repeated from the beginning.
一方、S230にて、データフレームを何れのバスにも転送する必要がなければ(S230:No)、このデータフレームを転送する処理を中断(中止)し(S260)、ルーティング処理を始めから繰り返す。 On the other hand, if it is not necessary to transfer the data frame to any bus at S230 (S230: No), the process of transferring this data frame is interrupted (stopped) (S260), and the routing process is repeated from the beginning.
次に、通信制御部12の機能を用いてデータフレームをメインバッファ15から所定のバスに対して送信する処理を図7を用いて説明する。図7は制御用のマイクロコンピュータが実施する送信処理を示すフローチャートである。
Next, a process of transmitting a data frame from the
送信処理は、例えば、車両におけるイグニッションスイッチがON状態にされたときに開始される処理であって、前述の送信処理およびルーティング処理とは独立して実施される。具体的には、まず、送信バッファ18に対してデータフレームの転送があったか否かを判定する。
The transmission process is a process that is started when, for example, an ignition switch in the vehicle is turned on, and is performed independently of the transmission process and the routing process described above. Specifically, first, it is determined whether or not a data frame has been transferred to the
データフレームの転送がなければ(S310:No)、S310の処理を繰り返す。また、データフレームの転送があれば(S310:Yes)、転送されたデータフレームを送信バッファ18の所定の記憶領域に格納する(S320)。ここで、送信バッファ18の記憶領域(TxBuf1、TxBuf2、…、TxBufn)は、データフレームを送信するバス(チャンネル番号)毎に設定されており、この処理では、ルーティング処理にて設定されたチャンネル番号に対応する記憶領域にデータフレームが格納される。
If there is no data frame transfer (S310: No), the process of S310 is repeated. If there is a data frame transfer (S310: Yes), the transferred data frame is stored in a predetermined storage area of the transmission buffer 18 (S320). Here, the storage area (TxBuf1, TxBuf2,..., TxBufn) of the
続いて、送信バッファ18に格納されたデータフレームをドライバ/レシーバ11のメモリに格納する(S330)。そして、データフレームをドライバ/レシーバ11から送信し(S340)、送信処理を始めから繰り返す。
Subsequently, the data frame stored in the
なお、データフレームがドライバ/レシーバ11に送信されると、データフレームが送信されたバスに接続された通信ノード40は、データフレームを受信することができるようになる。
When the data frame is transmitted to the driver /
[データ中継装置1の作動例]
次に、より具体的にデータ中継装置10の作動例を説明する。ここでは、データ中継装置10において、ドライバ/レシーバ11のCH2からCH3へデータフレームを中継する場合(つまり、Bus2からBus3に対してデータフレームを中継する場合)の作動例を説明する。
[Example of operation of data relay device 1]
Next, an operation example of the
まず、Bus2上の通信ノード40からデータフレームが送信されると、データ中継装置10は、通信制御部12としての機能を用いて、Bus2上の通信ノード40から送信されたデータフレームをドライバ/レシーバ11のCH2を介して受信バッファ13のRxBuf2に格納する。そして、データ中継装置10は、送信元チャンネル情報処理部14としての機能を用いて、受信バッファ13のRxBuf2に格納されたデータフレームに送信元チャンネル情報(ここではCH2)を付加し、このデータフレームをメインバッファ15に格納する。
First, when a data frame is transmitted from the
さらに、データ中継装置10は、フレーム転送制御部16としての機能を用いて、メインバッファ15に格納されたデータフレームのデータID(ここでは例えば「002」とする。)と送信元チャンネル情報とをルーティングテーブルの内容と比較することで、データフレームの送信先バスに対応する送信先チャンネル番号を決定する。
Furthermore, the
ここで、データID「002」、送信元チャンネル番号「CH2」に基づいて、図6に示すルーティングテーブル17を参照すると、メインバッファに格納されたデータフレームは、CH3に送信すべきデータフレームであることがわかる。従って、このデータフレームは、送信バッファ18のTxBuf3に転送されることになるが、この転送に先立って、送信元チャンネル情報処理部14としての機能を用いて、送信元チャンネル情報が削除される。
Here, referring to the routing table 17 shown in FIG. 6 based on the data ID “002” and the transmission source channel number “CH2”, the data frame stored in the main buffer is a data frame to be transmitted to CH3. I understand that. Therefore, this data frame is transferred to TxBuf3 of the
そして、データ中継装置10は、データフレームを送信バッファ18のTxBuf3に転送後、通信制御部12としての機能を用いて、送信バッファ18のTxBuf3に格納されたデータフレームをドライバ/レシーバ11のCH3を介してBus3へ送信する。
Then, after transferring the data frame to TxBuf3 of the
このような作動によって、Bus2およびBus3に接続された通信ノード40により、このデータフレームを受信することができるようになる。
ここで、この通信ノード40がBus2から切り離され、Bus3に接続された場合おける処理について説明する。データ中継装置10は、Bus3上の通信ノード40からデータフレームを受信すると、ドライバ/レシーバ11のCH3、受信バッファ13のRxBuf3の順にデータフレームを転送し、送信元チャンネル情報(CH3)を付加したデータフレームをメインバッファ15に格納する。
By such an operation, the data node can be received by the
Here, processing when the
そして、データ中継装置10は、ルーティングテーブル17を参照することにより、送信先バスを特定する。即ち、データID「002」、送信元チャンネル番号「CH3」に基づいて、図6に示すルーティングテーブル17を参照すると、メインバッファに格納されたデータフレームは、CH2に送信すべきデータフレームであることがわかる。従って、このデータフレームは、送信バッファ18のTxBuf2に転送されることになる。
Then, the
その後、データ中継装置10は、ドライバ/レシーバ11のCH2を介して、データフレームをBus2に送信する。このような作動によって、通信ノード40をBus2からBus3に繋ぎ換えた場合であっても、Bus2およびBus3に接続された通信ノード40により、このデータフレームを受信することができるようになる。
Thereafter, the
[データ中継装置1による効果]
以上のように詳述した多重通信システム1において、データ中継装置10は、データIDおよび送信元チャンネル情報と送信先バスとを予め対応付けて記録したルーティングテーブル17を備えている。
[Effects of data relay device 1]
In the
また、データ中継装置10は、格納処理にて、データフレーム内容を特定するためのデータIDが付加されたデータフレームを任意のバスから受信し、受信したデータフレームに送信元のバスを識別するための送信元チャンネル情報を付加し、このデータフレームをメインバッファ15に保持させる。さらに、データ中継装置10は、ルーティング処理にて、ルーティングテーブル17を参照することによりメインバッファ15に保持されたデータフレームにおける送信先バスを特定し、送信処理にて、特定された送信先バスに対してメインバッファ15に保持されたデータフレームを送信する。
In addition, the
従って、このようなデータ中継装置10によれば、送信元の通信ノード40(データフレーム送信元の装置)を接続したバスが変更されたとしても、ルーティングテーブル17にその変更後における送信元チャンネル情報に対応して中継先のバスを特定するデータフレームが書き込まれていれば、ルーティングテーブル17を書き換えることなくデータフレームを良好に中継することができる。
Therefore, according to such a
また、このようなデータ中継装置10によれば、データIDによって送信元の通信ノード40を特定することができる。
さらに、従来装置のルーティングテーブル(図9参照)においては、1つのデータIDに対して1つのルーティング(1つのデータIDに対応する送信先バス)しか書き込むことができなかったが、本実施形態のルーティングテーブル17においては、1つのデータIDに対して複数の送信元チャンネル情報を対応付けることにより、1つのデータIDに対して複数のルーティングを書き込むことができる。
Moreover, according to such a
Furthermore, in the routing table of the conventional apparatus (see FIG. 9), only one routing (transmission destination bus corresponding to one data ID) can be written for one data ID. In the routing table 17, it is possible to write a plurality of routings for one data ID by associating a plurality of transmission source channel information with one data ID.
よって、このようなデータ中継装置10によれば、データIDによって送信先バスを特定する場合であって、送信元の通信ノード40を接続するバスを変更した場合であっても、ルーティングテーブル17の書換作業を不要とすることができる。
Therefore, according to such a
また、データ中継装置10においては、送信元のバスを介して受信したデータフレームを一時保持する受信バッファ13を備えている。そして、データ中継装置10は、格納処理にて、受信バッファ13に保持されたデータフレームに送信元チャンネル情報を付加し、送信元チャンネル情報を付加したデータフレームをメインバッファ15に保持させる。
In addition, the
従って、このようなデータ中継装置10によれば、受信バッファ13にデータフレームを一時保持することができるので、格納処理、ルーティング処理、および送信処理にて実行される処理に余裕を持たせることができる。よって、処理が追いつかないことによって中継すべきデータフレームが破棄されることを防止することができる。
Therefore, according to such a
さらに、データ中継装置10は、ルーティング処理にて、付加された送信元チャンネル情報が送信先バスに送信される前に削除する。
このようなデータ中継装置10によれば、通信には不要なデータフレームを削除するので、バスにおける通信負荷を軽減することができる。
Further, the
According to such a
[その他の実施形態]
本発明の実施の形態は、上記の実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の形態を採りうる。
[Other Embodiments]
Embodiments of the present invention are not limited to the above-described embodiments, and can take various forms as long as they belong to the technical scope of the present invention.
例えば、本実施形態のデータ中継装置1には、受信バッファ13を備える構成としたが、格納処理、ルーティング処理、および送信処理が充分高速で実施可能であるか、メインバッファ15の容量が充分であれば、図8に示すデータ中継装置2のように、受信バッファ13を備えない構成にすることもできる。
For example, although the
また、本実施形態においては、通信プロトコルとしてCANを用いた多重通信システム1において本発明を適用したが、CAN以外の通信プロトコルであっても、送信先通信ノード40を指定しない通信プロトコルを用いて通信を実施する多重通信システムであれば、本発明を適用することができる。
In the present embodiment, the present invention is applied to the
このようにしても、上記実施形態と同様の効果が得られる。 Even if it does in this way, the effect similar to the said embodiment is acquired.
1…多重通信システム、10…データ中継装置、11…ドライバ/レシーバ、12…通信制御部、13…受信バッファ、14…送信元チャンネル情報処理部、15…メインバッファ、16…フレーム転送制御部、17…ルーティングテーブル、18…送信バッファ、40…通信ノード。
DESCRIPTION OF
Claims (4)
送信元の多重通信線を介して受信したデータを一時保持するメインバッファと、
送信元の多重通信線を介して、データ内容を特定するための特定情報が付加されたデータを受信し、該受信したデータに送信元の多重通信線を識別するための識別情報を付加し、該識別情報を付加したデータを前記メインバッファに保持させる付加手段と、
前記特定情報および前記識別情報と送信先の多重通信線とを予め対応付けて記録したルーティングテーブルを参照することにより前記メインバッファに保持されたデータにおける送信先の多重通信線を特定し、該特定された送信先の多重通信線に対して前記メインバッファに保持されたデータを送信する送信手段と、
を備えたことを特徴とするデータ中継装置。 A data relay device connected to a plurality of multiplex communication lines for transmitting data and outputting each data transmitted to each multiplex communication line to another multiplex communication line,
A main buffer that temporarily holds data received via the source multiplex communication line;
Receiving data to which specific information for specifying data content is added via the transmission source multiplex communication line, adding identification information for identifying the transmission multiplex communication line to the received data, Adding means for holding the data added with the identification information in the main buffer;
The destination information multiplex communication line in the data held in the main buffer is specified by referring to the routing table in which the specific information and the identification information and the destination multiplex communication line are recorded in association with each other. Transmitting means for transmitting the data held in the main buffer to the destination multiplex communication line;
A data relay device comprising:
前記付加手段は、前記受信バッファに保持されたデータに前記識別情報を付加し、該識別情報を付加したデータを前記メインバッファに保持させること、
を特徴とする請求項1に記載のデータ中継装置。 It has a reception buffer that temporarily holds data received via the multiplex communication line of the transmission source,
The adding means adds the identification information to the data held in the reception buffer, and holds the data added with the identification information in the main buffer;
The data relay device according to claim 1.
を特徴とする請求項1または請求項2に記載のデータ中継装置。 The transmitting means deletes the added identification information before transmitting it to a destination multiplex communication line;
The data relay device according to claim 1, wherein the data relay device is a data relay device.
前記ルーティングテーブルには、前記IDおよび前記識別情報と送信先の多重通信線とが対応付けて記録されていること、
を特徴とする請求項1〜請求項3の何れかに記載のデータ中継装置。 The specific information is an ID for specifying a data node and a communication node that has transmitted the data,
In the routing table, the ID and the identification information are recorded in association with a multiplex communication line of a transmission destination,
The data relay device according to any one of claims 1 to 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006348283A JP4973182B2 (en) | 2006-12-25 | 2006-12-25 | Data relay device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006348283A JP4973182B2 (en) | 2006-12-25 | 2006-12-25 | Data relay device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008160574A true JP2008160574A (en) | 2008-07-10 |
| JP4973182B2 JP4973182B2 (en) | 2012-07-11 |
Family
ID=39660968
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006348283A Active JP4973182B2 (en) | 2006-12-25 | 2006-12-25 | Data relay device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4973182B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014027517A (en) * | 2012-07-27 | 2014-02-06 | Toyota Motor Corp | Communication system and communication method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09307581A (en) * | 1996-05-16 | 1997-11-28 | Oki Electric Ind Co Ltd | Bridge |
| JP2002026924A (en) * | 2000-07-06 | 2002-01-25 | Denso Corp | Data repeater and multiplex communication system |
| JP2003348151A (en) * | 2002-05-29 | 2003-12-05 | Hitachi Ltd | Relaying apparatus and multicast pass control method |
| JP2006287739A (en) * | 2005-04-01 | 2006-10-19 | Fujitsu Ten Ltd | Gateway unit |
-
2006
- 2006-12-25 JP JP2006348283A patent/JP4973182B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09307581A (en) * | 1996-05-16 | 1997-11-28 | Oki Electric Ind Co Ltd | Bridge |
| JP2002026924A (en) * | 2000-07-06 | 2002-01-25 | Denso Corp | Data repeater and multiplex communication system |
| JP2003348151A (en) * | 2002-05-29 | 2003-12-05 | Hitachi Ltd | Relaying apparatus and multicast pass control method |
| JP2006287739A (en) * | 2005-04-01 | 2006-10-19 | Fujitsu Ten Ltd | Gateway unit |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014027517A (en) * | 2012-07-27 | 2014-02-06 | Toyota Motor Corp | Communication system and communication method |
| US9537744B2 (en) | 2012-07-27 | 2017-01-03 | Toyota Jidosha Kabushiki Kaisha | Communication system and communication method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4973182B2 (en) | 2012-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4910182B2 (en) | In-vehicle communication system | |
| JP6961062B2 (en) | Electronic control unit, communication method and in-vehicle network system | |
| US8582586B2 (en) | Vehicle onboard gateway apparatus | |
| JP5362668B2 (en) | In-car data relay device | |
| JP2021007269A (en) | Network hub, transfer method, and on-vehicle network system | |
| JP6798413B2 (en) | In-vehicle relay device, control program and memory sharing method | |
| JP2009253557A (en) | On-board relay connection unit | |
| JP2008205913A (en) | Gateway device, data relay method and data relay program | |
| JP4973182B2 (en) | Data relay device | |
| JP2014019280A (en) | Vehicular electronic control system | |
| JP2007251722A (en) | Communication device, on-vehicle system, data storing method and program | |
| JP4786330B2 (en) | In-vehicle LAN system, electronic control unit and relay connection unit | |
| JP7107277B2 (en) | repeater | |
| CN113162671B (en) | Relay device, relay method, storage medium storing relay program, and relay system | |
| CN108028785B (en) | Buffer control device, communication node, and relay device | |
| JP2009017154A (en) | On-vehicle gateway device | |
| JP4709037B2 (en) | In-vehicle database system | |
| JP2014204160A (en) | Gateway unit | |
| JP2013192092A (en) | On-vehicle device | |
| JP4690857B2 (en) | Bulk transmission system | |
| JP2004350138A (en) | Data relaying apparatus and multiplex communication system | |
| JP7192244B2 (en) | repeater | |
| JP4839115B2 (en) | In-vehicle database distribution node | |
| CN119652695B (en) | CAN bus for simultaneously transmitting standard frame message and extended frame message and configuration method | |
| US20090006678A1 (en) | Data input-output control apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090121 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100929 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101005 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101206 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110705 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110902 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111220 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120217 |
|
| 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: 20120326 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 4973182 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150420 Year of fee payment: 3 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |