JP4457966B2 - Data relay device, terminal device, and data communication system - Google Patents

Data relay device, terminal device, and data communication system Download PDF

Info

Publication number
JP4457966B2
JP4457966B2 JP2005138616A JP2005138616A JP4457966B2 JP 4457966 B2 JP4457966 B2 JP 4457966B2 JP 2005138616 A JP2005138616 A JP 2005138616A JP 2005138616 A JP2005138616 A JP 2005138616A JP 4457966 B2 JP4457966 B2 JP 4457966B2
Authority
JP
Japan
Prior art keywords
data
type information
reception
transmission
relay
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.)
Expired - Fee Related
Application number
JP2005138616A
Other languages
Japanese (ja)
Other versions
JP2006319540A (en
Inventor
一浩 上原
友久 岸上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2005138616A priority Critical patent/JP4457966B2/en
Publication of JP2006319540A publication Critical patent/JP2006319540A/en
Application granted granted Critical
Publication of JP4457966B2 publication Critical patent/JP4457966B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、データフレームに含まれるデータ本体の種類を識別可能なデータ識別子に基づいて転送先のネットワークを決定し得るデータ中継装置、その端末装置およびデータ通信システムに関するもので、例えば、車載LANに好適に適用し得るものである。   The present invention relates to a data relay device that can determine a transfer destination network based on a data identifier that can identify the type of a data body included in a data frame, a terminal device thereof, and a data communication system. It can be suitably applied.

車載LAN(車両に搭載されるローカルエリアネットワークのこと)は、例えば、基幹系のメインネットワークとこれに接続されるサブネットワークとに分けて構成されることがある。このような場合、例えば、メインネットワークにはCAN(Controller Area Network)が採用され、サブネットワークにはそれぞれの用途に適したプロトコル、例えば、車体系にはLIN(Local Interconnect Network)、J1850やBEAN(Body Electronics Area Network)、制御系にはTTCANやFlexRay、安全系にはSafe-by-WireやBST、情報系にはMOST(Media Oriented System Transport)やD2B(Digital Domestic Bus)、等が採用されている。なお、CANをはじめ、これら各プロトコルの名称は、登録商標等である。   An in-vehicle LAN (a local area network mounted on a vehicle) may be divided into, for example, a main system main network and a sub-network connected thereto. In such a case, for example, a CAN (Controller Area Network) is adopted for the main network, and a protocol suitable for each application is used for the sub-network, for example, LIN (Local Interconnect Network), J1850 and BEAN (BEAN (for the vehicle body system). Body Electronics Area Network), TTCAN and FlexRay for control systems, Safe-by-Wire and BST for safety systems, MOST (Media Oriented System Transport) and D2B (Digital Domestic Bus) for information systems, etc. Yes. The names of these protocols including CAN are registered trademarks.

このようにプロトコルの異なったネットワーク同士を相互に接続するためには、一般に「ゲートウェイ」と称されるデータ中継装置が用いられる。ところが、これらのネットワークを介してデータ通信を行う端末装置(「ノード」ともいう)の接続構成、いわゆるネットワーク構成に変更が生じると、その都度、データ中継装置や端末装置のネットワーク情報を変更しネットワークを再構築しなければならないという問題が発生していた。   In order to connect networks having different protocols to each other as described above, a data relay device generally called “gateway” is used. However, whenever a change occurs in the connection configuration of a terminal device (also referred to as a “node”) that performs data communication via these networks, so-called network configuration, the network information of the data relay device or the terminal device is changed to change the network. There was a problem that had to be rebuilt.

そこで、ネットワーク構成の変更(ノードの追加や削除)に伴う端末装置の設定変更の煩雑さを解消し得る技術として、例えば、下記特許文献1に開示される「データ中継装置および多重通信システム」が提案されている。この開示技術では、各ノード(端末装置)からデータ中継装置に送信されてくるデータフレーム(データ本体にヘッダを付加したもの)について、そのデータ本体のデータ種類から中継先テーブルにより中継先を参照し、中継先のプロトコルに対応したヘッダをデータ本体に付加した後、中継先のネットワークに送信し得る構成を採っている(特許文献1;段落番号0022〜0032)。   Thus, as a technique that can eliminate the complexity of terminal device setting changes accompanying network configuration changes (addition or deletion of nodes), for example, “Data Relay Device and Multiplex Communication System” disclosed in Patent Document 1 below is disclosed. Proposed. In this disclosed technique, for a data frame (with a header added to the data body) transmitted from each node (terminal device) to the data relay device, the relay destination is referred to by the relay destination table from the data type of the data body. In this configuration, a header corresponding to the relay destination protocol is added to the data body, and then transmitted to the relay destination network (Patent Document 1; paragraph numbers 0022 to 0032).

これにより、ノードの機能変更等によるネットワーク構成に変更が生じても、中継先テーブル等の内容を変更することで、送信元のノードの設定変更と実質的に等価になるので、中継先テーブル等の再設定を行うだけで対応可能であるとしている(特許文献1;段落番号0009、0036)。
特開2002−26924号公報
As a result, even if there is a change in the network configuration due to a change in the function of the node, etc., by changing the contents of the relay destination table etc., it becomes substantially equivalent to the setting change of the transmission source node. It can be handled by simply resetting (Patent Document 1; paragraphs 0009 and 0036).
JP 2002-26924 A

しかしながら、上記特許文献1の開示技術によると、ネットワークの再構築に伴う各端末装置の設定変更はその必要がなくなったものの、データ中継装置の設定作業は相変わらず必要となる。そのため、ネットワーク構成が多様な場合には、データ中継装置の中継先テーブルやヘッダーテーブルを記憶したROMの書き換えや交換によって当該データ中継テーブル等を変更して対応することを予定している(特許文献1;段落番号0036)。   However, according to the technology disclosed in Patent Document 1, the setting change of each terminal device associated with the network reconstruction is no longer necessary, but the setting operation of the data relay device is still necessary. Therefore, when the network configuration is diverse, it is planned to change the data relay table and the like by rewriting or exchanging the ROM storing the relay destination table and header table of the data relay device (Patent Literature). 1; paragraph number 0036).

特に、多種多様な種類の車両に対応し得る車載LANの構築を想定した場合には、このようなデータ中継装置の設定作業を車種ごとに行うと、当該ROMの書込作業や交換作業が頻繁に発生するばかりでなく、ROMデータや交換用ROMの管理も煩雑になる。また、データ中継装置の故障により当該データ中継装置を交換する必要が生じた場合にも、このようなROMの書込や交換作業が発生し得るため、ROMデータや交換用ROMの管理の煩雑は解消し難い。   In particular, assuming the construction of an in-vehicle LAN that can handle a wide variety of vehicles, if such data relay device setting operations are performed for each vehicle type, the ROM writing and replacement operations are frequently performed. In addition, the management of ROM data and replacement ROM becomes complicated. In addition, even when it is necessary to replace the data relay device due to a failure of the data relay device, such ROM writing or replacement work can occur. Therefore, the management of the ROM data and the replacement ROM is complicated. It is difficult to eliminate.

また、ネットワーク構成ごとに設定内容の異なるデータ中継装置を、予め複数種類準備しておく方策も考えられるが、多種多様な車種に加えて車両のユーザ仕様に対応させたオプション設定の有無等により想定されるネットワーク構成の種類が膨大なものになる。そのため、多様なネットワーク構成に対応したデータ中継装置をその種類ごとに準備することはデータ中継装置の種類情報を管理するうえで煩雑になるほか、データ中継装置の誤組付けの原因にもなり得るという新たな問題を招来する。   In addition, it is possible to prepare multiple types of data relay devices with different settings for each network configuration in advance, but it is assumed depending on whether there are optional settings corresponding to the user specifications of the vehicle in addition to various types of vehicles. The number of types of network configurations to be made becomes enormous. For this reason, preparing data relay devices corresponding to various network configurations for each type is troublesome in managing the data relay device type information, and may cause erroneous assembly of the data relay devices. Invite a new problem.

さらに、ユーザにより車両のオプション設定等が変更された場合には、出荷時のネットワーク構成とは異なることから、ネットワークの再構築によるデータ中継装置のROMの書換作業や交換作業が必要になる。このような場合にも上述と同様の問題が発生し得る。   Furthermore, when the vehicle option setting is changed by the user, the network configuration at the time of shipment is different. Therefore, the data relay device ROM must be rewritten or replaced by reconfiguring the network. In such a case, the same problem as described above may occur.

本発明は、上述した課題を解決するためになされたものであり、その目的とするところは、ネットワーク構成に関するデータ中継装置の設定作業の負担を軽減し得るデータ中継装置、端末装置およびデータ通信システムを提供することにある。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a data relay device, a terminal device, and a data communication system that can reduce the burden of setting the data relay device related to the network configuration. Is to provide.

上記目的を達成するため、特許請求の範囲に記載の請求項1のデータ中継装置では、一のネットワーク[NW-n]から送信されたデータフレームを他のネットワーク[NW-1]に接続される端末装置[50a、50b、50c]に転送し得るデータ中継装置[20]において、前記データフレームに含まれるデータ本体の種類を識別可能なデータ識別子[受信データID]に基づいて転送先の他のネットワーク[NW-1]を決定可能な中継先決定手段[23b1]を備えたデータ中継装置であって、前記端末装置[50a等]から送信される情報で、当該端末装置[50a等]が受信すべきデータフレームに含まれるデータ本体の種類に関する受信種別情報[受信データID]を、受信可能な受信種別情報受信手段[23a2]と、前記受信種別情報受信手段[23a2]により受信された前記受信種別情報[受信データID]に基づいて前記中継先決定手段[23b1]を生成可能な中継先決定手段生成手段[23a5]と、前記受信種別情報[受信データID]の送信を前記端末装置[50a等]に対して要求可能な受信種別情報要求手段[23a3,23a5]とを備え、前記受信種別情報要求手段[23a3,23a5]は、前記受信種別情報[受信データID]の送信要求を受ける複数の前記端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした前記受信種別情報[受信データID]の要求を送信することを技術的特徴とする。
なお、[ ]内の数字等は、[発明を実施するための最良の形態]の欄で説明する符号に対応し得るものである(以下同じ)。
In order to achieve the above object, in the data relay apparatus according to claim 1, the data frame transmitted from one network [NW-n] is connected to another network [NW-1]. In the data relay device [20] that can be transferred to the terminal device [50a, 50b, 50c], the other destination of the transfer is determined based on the data identifier [received data ID] that can identify the type of the data body included in the data frame. A data relay apparatus including a relay destination determination unit [23b1] capable of determining the network [NW-1], which is received by the terminal apparatus [50a, etc.] with information transmitted from the terminal apparatus [50a, etc.]. Receiving type information receiving means [23a2] for receiving type information [received data ID] relating to the type of data body included in the data frame to be received, and the receiving type information receiving means Relay destination determining means generating means [23a5] capable of generating the relay destination determining means [23b1] based on the reception type information [received data ID] received by [23a2], and the reception type information [received data ID] ], The reception type information requesting means [23a3, 23a5] capable of requesting the terminal device [50a etc.] to transmit, the reception type information requesting means [23a3, 23a5] Sending a request for the reception type information [received data ID] for all of the plurality of terminal devices [50a, etc.] to the plurality of terminal devices [50a, etc.] that receive the transmission request of [data ID]. Technical features.
The numbers in [] can correspond to the symbols described in the [Best Mode for Carrying Out the Invention] column (the same applies hereinafter).

ここで、端末装置が受信すべきデータフレームに含まれるデータ本体の種類に関する『受信種別情報』は、データ本体の種類を識別可能な情報であれば足りるものであるが、[発明を実施するための最良の形態]の欄で説明する実施形態では、情報処理の簡便性から、当該『受信種別情報』の一例としてデータ識別子[受信データID]を用いている。そのため、便宜上、受信種別情報[受信データID]と表記している(以下同じ)。   Here, the “reception type information” relating to the type of the data body included in the data frame to be received by the terminal device is sufficient if it is information that can identify the type of the data body. In the embodiment described in the column of “Best Mode”, a data identifier [reception data ID] is used as an example of the “reception type information” for ease of information processing. Therefore, for convenience, it is described as reception type information [reception data ID] (the same applies hereinafter).

特許請求の範囲に記載の請求項2のデータ中継装置では、一のネットワーク[NW-n]から送信されたデータフレームを他のネットワーク[NW-1]に接続される端末装置[50a、50b、50c]に転送し得るデータ中継装置[20]において、前記データフレームに含まれるデータ本体の種類を識別可能なデータ識別子[受信データID]に基づいて転送先の他のネットワーク[NW-1]を決定可能な中継先決定手段[23b1]を備えたデータ中継装置であって、前記端末装置[50a等]から送信される情報で、当該端末装置[50a等]が受信すべきデータフレームに含まれるデータ本体の種類に関する受信種別情報[受信データID]を、受信可能な受信種別情報受信手段[23a2]と、前記受信種別情報受信手段[23a2]により受信された前記受信種別情報[受信データID]に基づいて前記中継先決定手段[23b1]を生成可能な中継先決定手段生成手段[23a5]と、前記受信種別情報[受信データID]の送信を前記端末装置[50a等]に対して要求可能な受信種別情報要求手段[23a3,23a5]とを備え、前記受信種別情報要求手段[23a3,23a5]は、前記受信種別情報[受信データID]の送信要求を受ける全ての前記端末装置[50a等]に対し、
データ中継装置[20]の起動時に前記受信種別情報[受信データID]の要求を送信することを技術的特徴とする。
In the data relay device according to claim 2, terminal devices [50 a, 50 b, data terminals transmitted from one network [NW-n] are connected to another network [NW-1]. 50c], the other data transfer destination network [NW-1] is determined based on the data identifier [received data ID] that can identify the type of the data body included in the data frame. This is a data relay device provided with a determinable relay destination determining means [23b1], and is information transmitted from the terminal device [50a etc.] and included in the data frame to be received by the terminal device [50a etc.]. The reception type information [reception data ID] relating to the type of data body is received by the receivable reception type information receiving means [23a2] and the reception type information receiving means [23a2]. Relay destination determining means generating means [23a5] capable of generating the relay destination determining means [23b1] based on the reception type information [received data ID], and transmission of the reception type information [received data ID] to the terminal device Reception type information requesting means [23a3, 23a5] that can request [50a etc.], and the reception type information requesting means [23a3, 23a5] sends a transmission request for the reception type information [reception data ID]. For all the terminal devices [50a etc.]
A technical feature is that a request for the reception type information [reception data ID] is transmitted when the data relay device [20] is activated .

特許請求の範囲に記載の請求項3のデータ中継装置では、請求項2記載のデータ中継装置において、前記受信種別情報要求手段[23a3,23a5]は、前記受信種別情報[受信データID]の送信要求を受ける複数の前記端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした前記受信種別情報[受信データID]の同報要求を送信することを技術的特徴とする。   In the data relay device according to claim 3, in the data relay device according to claim 2, the reception type information requesting unit [23 a 3, 23 a 5] transmits the reception type information [reception data ID]. A technical feature is that a broadcast request for the reception type information [received data ID] for all of the plurality of terminal devices [50a, etc.] is transmitted to the plurality of terminal devices [50a, etc.] that receive the request. And

特許請求の範囲に記載の請求項4のデータ中継装置では、請求項1〜3のいずれか一項に記載のデータ中継装置において、前記端末装置[50a等]から送信される情報で、当該端末装置[50a等]が送信すべきデータフレームに含まれるデータ本体の種類に関する送信種別情報[送信データID]を、受信可能な送信種別情報受信手段[23a2]を備え、前記中継先決定手段生成手段[23a5]は、前記受信種別情報[受信データID]、および、前記送信種別情報受信手段[23a2]により受信された前記送信種別情報[送信データID]、に基づいて前記中継先決定手段[23b1]を生成し得ることを技術的特徴とする。   In the data relay device according to claim 4, the information relay device according to any one of claims 1 to 3, wherein the information is transmitted from the terminal device [50a etc.], and the terminal The device [50a etc.] comprises transmission type information receiving means [23a2] capable of receiving transmission type information [transmission data ID] relating to the type of data body included in the data frame to be transmitted, and the relay destination determining means generating means [23a5] is the relay destination determination unit [23b1] based on the reception type information [reception data ID] and the transmission type information [transmission data ID] received by the transmission type information reception unit [23a2]. Is a technical feature.

特許請求の範囲に記載の請求項5のデータ中継装置では、請求項4記載のデータ中継装置において、前記データ中継装置は、前記送信種別情報[送信データID]の送信を前記端末装置[50a等]に対して要求可能な送信種別情報要求手段[23a3,23a5]を備えることを技術的特徴とする。   In the data relay device according to claim 5, the data relay device according to claim 4, wherein the data relay device transmits the transmission type information [transmission data ID] to the terminal device [50a, etc.]. ] Is provided with a transmission type information requesting means [23a3, 23a5] that can be requested.

特許請求の範囲に記載の請求項6のデータ中継装置では、請求項5記載のデータ中継装置において、前記送信種別情報要求手段[23a3,23a5]は、前記送信種別情報[送信データID]の送信要求を受ける複数の前記端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした前記送信種別情報[送信データID]の同報要求を送信することを技術的特徴とする。   In the data relay device according to claim 6, the transmission type information requesting means [23a3, 23a5] transmits the transmission type information [transmission data ID] in the data relay device according to claim 5. Technical feature of transmitting a broadcast request for the transmission type information [transmission data ID] for all of the plurality of terminal devices [50a, etc.] to the plurality of terminal devices [50a, etc.] receiving the request And

特許請求の範囲に記載の請求項7のデータ中継装置では、請求項1〜6のいずれか一項に記載のデータ中継装置において、前記中継先決定手段生成手段[23a5]は、前記受信種別情報受信手段[23a2]による前記受信種別情報[受信データID]の受信前に、前記受信種別情報[受信データID]を取得している場合には、当該取得済みの受信種別情報[受信データID]に基づいて前記中継先決定手段[23b1]を生成し得ることを技術的特徴とする。   In the data relay device according to claim 7, the relay destination determination unit generation means [23a5] includes the reception type information in the data relay device according to any one of claims 1 to 6. If the reception type information [reception data ID] is acquired before the reception type information [reception data ID] is received by the reception means [23a2], the acquired reception type information [reception data ID]. It is a technical feature that the relay destination determination means [23b1] can be generated based on the above.

特許請求の範囲に記載の請求項8のデータ中継装置では、請求項4〜6のいずれか一項に記載のデータ中継装置において、前記中継先決定手段生成手段[23a5]は、前記送信種別情報受信手段[23a2]による前記送信種別情報[送信データID]の受信前に、前記送信種別情報[送信データID]を取得している場合には、当該取得済みの送信種別情報[送信データID]に基づいて前記中継先決定手段[23b1]を生成し得ることを技術的特徴とする。   In the data relay device according to claim 8, the relay destination determination unit generation unit [23 a 5] is configured to transmit the transmission type information in the data relay device according to any one of claims 4 to 6. If the transmission type information [transmission data ID] is acquired before the transmission type information [transmission data ID] is received by the receiving means [23a2], the acquired transmission type information [transmission data ID]. It is a technical feature that the relay destination determination means [23b1] can be generated based on the above.

特許請求の範囲に記載の請求項9のデータ中継装置では、請求項1〜8のいずれか一項に記載のデータ中継装置において、前記中継先決定手段生成手段[23a5]は、第1の所定条件を満たす場合に前記中継先決定手段[23b1]を生成し、当該第1の所定条件を満たさない場合には前記中継先決定手段[23b1]を生成しないことを技術的特徴とする。   In the data relay device according to claim 9 in the claims, in the data relay device according to any one of claims 1 to 8, the relay destination determination means generation means [23a5] has a first predetermined value. The technical feature is that the relay destination determination unit [23b1] is generated when the condition is satisfied, and the relay destination determination unit [23b1] is not generated when the first predetermined condition is not satisfied.

特許請求の範囲に記載の請求項10のデータ中継装置では、請求項1〜8のいずれか一項に記載のデータ中継装置において、前記中継先決定手段生成手段[23a5]は、第2の所定条件を満たす場合に前記中継先決定手段[23b1]を再度生成し、当該第2の所定条件を満たさない場合には前記中継先決定手段[23b1]を再度生成しないことを技術的特徴とする。   In the data relay device according to claim 10 according to the claims, in the data relay device according to any one of claims 1 to 8, the relay destination determination means generating means [23a5] is a second predetermined The technical feature is that the relay destination determination unit [23b1] is generated again when the condition is satisfied, and the relay destination determination unit [23b1] is not generated again when the second predetermined condition is not satisfied.

特許請求の範囲に記載の請求項11の端末装置では、データ本体とこのデータ本体の種類を識別可能なデータ識別子[受信データID]とを含んで構成されるデータフレームをネットワークから受信し得る端末装置であって、自らが受信すべき前記データフレームの前記データ本体の種類に関する受信種別情報[受信データID]を生成可能な受信種別情報生成手段[53a6]と、前記受信種別情報生成手段[53a6]により生成された前記受信種別情報[受信データID]を前記ネットワークに送信可能な受信種別情報送信手段[53a3]と、を備えることを技術的特徴とする。   The terminal device according to claim 11, wherein the terminal can receive a data frame including a data body and a data identifier [received data ID] capable of identifying the type of the data body from the network. A reception type information generation unit [53a6] capable of generating reception type information [reception data ID] related to the type of the data body of the data frame to be received by the device; and the reception type information generation unit [53a6] The receiving type information [receiving data ID] generated by the receiving type information transmitting means [53a3] capable of transmitting to the network is a technical feature.

特許請求の範囲に記載の請求項12の端末装置では、請求項11記載の端末装置において、前記受信種別情報送信手段[53a3]は、前記ネットワークに接続されたデータ中継装置の要求に応じて、前記受信種別情報[受信データID]を前記ネットワークに送信することを技術的特徴とする。   In the terminal device according to claim 12, the reception type information transmitting unit [53a3] according to the terminal device according to claim 11, in response to a request from the data relay device connected to the network, The reception type information [reception data ID] is transmitted to the network as a technical feature.

特許請求の範囲に記載の請求項13の端末装置では、請求項11または12記載の端末装置において、自らが送信すべき前記データフレームの前記データ本体の種類に関する送信種別情報[送信データID]を生成可能な送信種別情報生成手段[53a7]と、前記送信種別情報生成手段[53a7]により生成された前記送信種別情報[送信データID]を前記ネットワークに送信可能な送信種別情報送信手段[53a3]と、を備えることを技術的特徴とする。   In the terminal device according to claim 13 according to the claims, in the terminal device according to claim 11 or 12, transmission type information [transmission data ID] relating to the type of the data body of the data frame to be transmitted by itself is set. Transmission type information generation means [53a7] that can be generated and transmission type information transmission means [53a3] that can transmit the transmission type information [transmission data ID] generated by the transmission type information generation means [53a7] to the network. And a technical feature thereof.

特許請求の範囲に記載の請求項14の端末装置では、請求項13記載の端末装置において、前記送信種別情報送信手段[53a3]は、前記ネットワークに接続されたデータ中継装置の要求に応じて、前記送信種別情報[送信データID]を前記ネットワークに送信することを技術的特徴とする。   In the terminal device according to claim 14, according to claim 14, in the terminal device according to claim 13, the transmission type information transmitting unit [53 a 3] responds to a request from the data relay device connected to the network, A technical feature is that the transmission type information [transmission data ID] is transmitted to the network.

特許請求の範囲に記載の請求項15のデータ通信システムでは、一のネットワーク[NW-n]と、他のネットワーク[NW-1]と、この他のネットワーク[NW-1]に接続される端末装置[50a等]と、これらのネットワークに接続され前記一のネットワーク[NW-n]から送信されたデータフレームを前記他のネットワーク[NW-1]の端末装置[50a等]に転送し得るデータ中継装置で前記データフレームに含まれるデータ本体の種類を識別可能なデータ識別子[受信データID]に基づいて転送先の前記他のネットワーク[NW-1]を決定可能な中継先決定手段[23b1]を備えたデータ中継装置と、を含んで構成されるデータ通信システムであって、前記端末装置[50a等]は、自らが受信すべき前記データフレームの前記データ本体の種類に関する受信種別情報[受信データID]を生成可能な受信種別情報生成手段[53a6]と、前記受信種別情報生成手段[53a6]により生成された前記受信種別情報[受信データID]を前記データ中継装置に送信可能な受信種別情報送信手段[53a3]と、を備え、前記データ中継装置は、前記端末装置[50a等]から送信される前記受信種別情報[受信データID]を受信可能な受信種別情報受信手段[23a2]と、前記受信種別情報受信手段[23a2]により受信された前記受信種別情報[受信データID]に基づいて前記中継先決定手段[23b1]を生成可能な中継先決定手段生成手段[23a5]と、前記受信種別情報[受信データID]の送信を前記端末装置[50a等]に対して要求可能な受信種別情報要求手段[23a3,23a5]とを備え、前記受信種別情報要求手段[23a3,23a5]は、前記受信種別情報[受信データID]の送信要求を受ける複数の前記端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした前記受信種別情報[受信データID]の要求を送信することを技術的特徴とする。
In the data communication system according to claim 15, the terminal connected to one network [NW-n], another network [NW-1], and the other network [NW-1] Device [50a etc.] and data that can be transferred to the terminal device [50a etc.] of the other network [NW-1] connected to these networks and transmitted from the one network [NW-n] Relay destination determining means [23b1] capable of determining the other network [NW-1] as the transfer destination based on the data identifier [received data ID] that can identify the type of the data body included in the data frame in the relay device The terminal device [50a etc.] relates to the type of the data body of the data frame to be received by the terminal device [50a etc.] Reception type information generation means [53a6] capable of generating reception type information [reception data ID] and the reception type information [reception data ID] generated by the reception type information generation means [53a6] to the data relay device Receiving type information transmission means [53a3] capable of transmitting, wherein the data relay device receives the receiving type information [receiving data ID] transmitted from the terminal device [50a etc.]. Means [23a2] and relay destination determining means generating means [23b1] capable of generating the relay destination determining means [23b1] based on the reception type information [received data ID] received by the reception type information receiving means [23a2]. and 23a5], Bei a request a receiving type information request unit [23A3,23a5] transmission to the terminal device [50a, etc.] of the received type information [received data ID] The reception type information request means [23a3, 23a5] sends all of the plurality of terminal devices [50a, etc.] to the plurality of terminal devices [50a, etc.] that receive the transmission request for the reception type information [reception data ID]. A technical feature is that a request for the reception type information [reception data ID] is sent to the subject.

請求項1の発明では、受信種別情報受信手段[23a2]により受信された受信種別情報[受信データID]に基づいて、中継先決定手段生成手段[23a5]により中継先決定手段[23b1]を生成する。これにより、端末装置[50a等]から送信される情報で、当該端末装置[50a等]が受信すべきデータフレームに含まれるデータ本体の種類に関する受信種別情報[受信データID]を受信することで、中継先決定手段[23b1]を適宜生成することが可能となる。つまり、中継先決定手段[23b1]を生成するために必要となる当該受信種別情報[受信データID]を人手に頼ることなく、受信種別情報受信手段[23a2]により受信し、自ら学習(中継先決定手段[23b1]を生成)するので、ネットワークの構築を容易にできる。したがって、中継先決定手段[23b1]に関する作業として中継先テーブルやヘッダーテーブルを記憶したROMの書込作業や交換作業の発生を防ぐので、ネットワーク構成に関するデータ中継装置の設定作業の負担を軽減することができる。
また、請求項1の発明では、データ中継装置[20]は、受信種別情報[受信データID]の送信を端末装置[50a等]に対して要求可能な受信種別情報要求手段[23a3,23a5]を備えることから、例えば、中継先決定手段[23b1]が生成されていない場合や中継先決定手段[23b1]の更新を要する場合に、受信種別情報要求手段[23a3,23a5]による受信種別情報[受信データID]の送信要求によって、端末装置[50a等]から受信種別情報[受信データID]を得ることができる。これにより、必要に応じて適宜、受信種別情報[受信データID]に基づいてネットワークの構成情報を自ら学習(中継先決定手段[23b1]を生成)できる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。
そして、請求項1の発明では、受信種別情報要求手段[23a3,23a5]は、受信種別情報[受信データID]の送信要求を受ける複数の端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした受信種別情報[受信データID]の要求を送信する。つまり、同じネットワークに接続された複数の端末装置[50a等]に対し、受信種別情報[受信データID]の送信要求をブロードキャスト(またはマルチキャスト)するので、このような送信要求を複数の端末装置[50a等]に対して個々に送信する場合(ユニキャスト)に比べて短時間に受信種別情報[受信データID]を受信することができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置の設定作業時間を短縮できる。
In the first aspect of the invention, based on the reception type information [received data ID] received by the reception type information receiving unit [23a2], the relay destination determining unit [23a5] generates the relay destination determining unit [23b1]. To do. As a result, by receiving information received from the terminal device [50a etc.] and receiving type information [received data ID] related to the type of data body included in the data frame to be received by the terminal device [50a etc.]. Thus, it is possible to appropriately generate the relay destination determining means [23b1]. That is, the reception type information [reception data ID] necessary for generating the relay destination determination unit [23b1] is received by the reception type information reception unit [23a2] without relying on human hands, and learning (relay destination) Since the determination means [23b1] is generated), the network can be easily constructed. Therefore, the writing of the ROM storing the relay destination table and the header table and the exchange work are prevented from occurring as the work related to the relay destination determining means [23b1], so that the burden of setting the data relay device related to the network configuration can be reduced. Can do.
Further, in the first aspect of the invention, the data relay device [20] allows the reception type information [reception data ID] to be requested to the terminal device [50a, etc.] reception type information request means [23a3, 23a5]. For example, when the relay destination determination unit [23b1] is not generated or when the relay destination determination unit [23b1] needs to be updated, the reception type information request unit [23a3, 23a5] receives the reception type information [ The reception type information [reception data ID] can be obtained from the terminal device [50a etc.] by the transmission request of the reception data ID]. As a result, the network configuration information can be learned by itself (relay destination determination means [23b1] is generated) based on the reception type information [reception data ID] as necessary. Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.
In the first aspect of the invention, the reception type information requesting means [23a3, 23a5] sends the plurality of terminal devices to the plurality of terminal devices [50a etc.] that receive the transmission request for the reception type information [reception data ID]. [50a etc.] A request for reception type information [reception data ID] for all is transmitted. That is, since a transmission request for reception type information [received data ID] is broadcast (or multicast) to a plurality of terminal devices [50a, etc.] connected to the same network, such a transmission request is transmitted to a plurality of terminal devices [ 50a, etc.], it is possible to receive the reception type information [reception data ID] in a shorter time compared to the case of individual transmission (unicast). Therefore, since the network construction process can be performed at high speed, it is possible to shorten the setting work time of the data relay apparatus related to the network configuration.

請求項2の発明では、データ中継装置[20]は、受信種別情報[受信データID]の送信を端末装置[50a等]に対して要求可能な受信種別情報要求手段[23a3,23a5]を備えることから、例えば、中継先決定手段[23b1]が生成されていない場合や中継先決定手段[23b1]の更新を要する場合に、受信種別情報要求手段[23a3,23a5]による受信種別情報[受信データID]の送信要求によって、端末装置[50a等]から受信種別情報[受信データID]を得ることができる。これにより、必要に応じて適宜、受信種別情報[受信データID]に基づいてネットワークの構成情報を自ら学習(中継先決定手段[23b1]を生成)できる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。
また、請求項2の発明では、受信種別情報要求手段[23a3,23a5]が、受信種別情報[受信データID]の送信要求を受ける全ての端末装置[50a等]に対し、データ中継装置[20]の起動時に受信種別情報[受信データID]の要求を送信するため、複数の端末装置[50a等]に起動電源の電圧が異なるものが混在していても、全ての端末装置[50a等]から確実に受信種別情報[受信データID]を取得することができる。したがって、受信種別情報[受信データID]について欠落のない中継先決定手段[23b1]を生成することが可能となる。
In the invention of claim 2, the data relay device [20] includes reception type information requesting means [23a3, 23a5] capable of requesting the terminal device [50a etc.] to transmit the reception type information [reception data ID]. Therefore, for example, when the relay destination determination unit [23b1] is not generated or when the relay destination determination unit [23b1] needs to be updated, the reception type information [reception data by the reception type information request unit [23a3, 23a5] The reception type information [reception data ID] can be obtained from the terminal device [50a etc.] by the transmission request of [ID]. As a result, the network configuration information can be learned by itself (relay destination determination means [23b1] is generated) based on the reception type information [reception data ID] as necessary. Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.
Further, in the invention of claim 2, the reception type information requesting means [23a3, 23a5] sends the data relay device [20 to all the terminal devices [50a etc.] that receive the transmission request of the reception type information [reception data ID]. ], A request for reception type information [received data ID] is transmitted, so that even if a plurality of terminal devices [50a, etc.] have different start-up power supply voltages, all terminal devices [50a, etc.] Thus, it is possible to reliably acquire the reception type information [reception data ID]. Therefore, it is possible to generate the relay destination determination means [23b1] that is free from the reception type information [received data ID].

請求項3の発明では、受信種別情報要求手段[23a3,23a5]は、受信種別情報[受信データID]の送信要求を受ける複数の端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした受信種別情報[受信データID]の同報要求を送信する。つまり、同じネットワークに接続された複数の端末装置[50a等]に対し、受信種別情報[受信データID]の送信要求をブロードキャスト(またはマルチキャスト)するので、このような送信要求を複数の端末装置[50a等]に対して個々に送信する場合(ユニキャスト)に比べて短時間に受信種別情報[受信データID]を受信することができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置の設定作業時間を短縮できる。   In the invention of claim 3, the reception type information requesting means [23a3, 23a5] sends a plurality of terminal devices [50a] to the plurality of terminal devices [50a etc.] that receive the transmission request of the reception type information [reception data ID]. Etc.] A broadcast request of reception type information [received data ID] for all is transmitted. That is, since a transmission request for reception type information [received data ID] is broadcast (or multicast) to a plurality of terminal devices [50a, etc.] connected to the same network, such a transmission request is transmitted to a plurality of terminal devices [ 50a, etc.], it is possible to receive the reception type information [reception data ID] in a shorter time compared to the case of individual transmission (unicast). Therefore, since the network construction process can be performed at high speed, it is possible to shorten the setting work time of the data relay apparatus related to the network configuration.

請求項4の発明では、送信種別情報受信手段[23a2]を備え、受信種別情報[受信データID]に加えて、これにより受信された送信種別情報[送信データID]にも基づいて中継先決定手段[23b1]を生成する。これにより、当該他のネットワークに接続される端末装置[50a等]間、つまり同一のネットワークに接続される端末装置同士で相互に送受信されるデータフレームを認識することができるので、このようなデータ中継装置[20]では中継する必要のないデータフレームを除いて中継を行う中継先決定手段[23b1]を生成することができる。これによって、中継先決定手段[23b1]の構成を簡素にできるので、例えば、中継先決定手段[23b1]による中継先の決定処理速度を速くすることができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置の設定作業時間を短縮できる。   In the invention of claim 4, the transmission type information receiving means [23a2] is provided, and the relay destination is determined based on the received transmission type information [transmission data ID] in addition to the reception type information [reception data ID]. A means [23b1] is generated. This makes it possible to recognize data frames transmitted and received between terminal devices [50a, etc.] connected to the other network, that is, between terminal devices connected to the same network. The relay device [20] can generate the relay destination determination means [23b1] that performs relaying except for data frames that do not need to be relayed. As a result, the configuration of the relay destination determination unit [23b1] can be simplified. For example, the relay destination determination processing speed by the relay destination determination unit [23b1] can be increased. Therefore, since the network construction process can be performed at high speed, it is possible to shorten the setting work time of the data relay apparatus related to the network configuration.

請求項5の発明では、データ中継装置[20]は、送信種別情報[送信データID]の送信を端末装置[50a等]に対して要求可能な送信種別情報要求手段[23a3,23a5]を備えることから、例えば、中継先決定手段[23b1]が生成されていない場合や中継先決定手段[23b1]の更新を要する場合に、端末装置[50a等]から受信種別情報[受信データID]に加えて送信種別情報[送信データID]も得ることができる。これにより、必要に応じて適宜、受信種別情報[受信データID]および送信種別情報[送信データID]に基づいてネットワークの構成情報を自ら学習(中継先決定手段[23b1]を生成)できるので、高速なネットワークの構築処理が適宜可能となる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。   In the invention of claim 5, the data relay device [20] includes transmission type information requesting means [23a3, 23a5] capable of requesting the terminal device [50a etc.] to transmit the transmission type information [transmission data ID]. Therefore, for example, when the relay destination determining unit [23b1] is not generated or when the relay destination determining unit [23b1] needs to be updated, the terminal device [50a etc.] adds to the reception type information [received data ID]. The transmission type information [transmission data ID] can also be obtained. As a result, network configuration information can be learned by itself based on the reception type information [reception data ID] and the transmission type information [transmission data ID] as needed (generate relay destination determination means [23b1]). A high-speed network construction process can be performed as appropriate. Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.

請求項6の発明では、送信種別情報要求手段[23a3,23a5]は、送信種別情報[送信データID]の送信要求を受ける複数の端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした送信種別情報[送信データID]の同報要求を送信する。つまり、同じネットワークに接続された複数の端末装置[50a等]に対し、送信種別情報[送信データID]の送信要求をブロードキャスト(またはマルチキャスト)するので、このような送信要求を複数の端末装置[50a等]に対して個々に送信する場合(ユニキャスト)に比べて短時間に送信種別情報[送信データID]を受信することができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置の設定作業時間を短縮できる。   In the invention of claim 6, the transmission type information requesting means [23a3, 23a5] sends the plurality of terminal devices [50a] to the plurality of terminal devices [50a etc.] that receive the transmission request for the transmission type information [transmission data ID]. Etc.] A broadcast request of transmission type information [transmission data ID] for all is transmitted. That is, since a transmission request for transmission type information [transmission data ID] is broadcast (or multicast) to a plurality of terminal devices [50a, etc.] connected to the same network, such a transmission request is transmitted to a plurality of terminal devices [ 50a etc.], it is possible to receive the transmission type information [transmission data ID] in a shorter time compared to the case of individual transmission (unicast). Therefore, since the network construction process can be performed at high speed, it is possible to shorten the setting work time of the data relay apparatus related to the network configuration.

請求項7の発明では、中継先決定手段生成手段[23a5]は、受信種別情報受信手段[23a2]による受信種別情報[受信データID]の受信前に、受信種別情報[受信データID]を取得している場合には、当該取得済みの受信種別情報[受信データID]に基づいて中継先決定手段[23b1]を生成し得る。これにより、例えば、予め判明しているネットワークの基本構成については、受信種別情報受信手段[23a2]によることなく、受信種別情報[受信データID]を与えておくことでそれに基づいて中継先決定手段[23b1]を生成することができる。このため、その後の受信種別情報受信手段[23a2]により受信された受信種別情報[受信データID]に基づく中継先決定手段[23b1]の生成では、既に取得済みの受信種別情報[受信データID]とその後に受信した受信種別情報[受信データID]との差分情報について中継先決定手段[23b1]の生成処理を行うことで、受信した受信種別情報[受信データID]に基づく中継先決定手段[23b1]の生成を高速に処理することができる。また、受信種別情報受信手段[23a2]では受信できない受信種別情報[受信データID]を予め与えておき、この取得済みの受信種別情報[受信データID]とその後に受信した受信種別情報[受信データID]との差分情報について中継先決定手段[23b1]の生成処理を行うことで、このような受信種別情報受信手段[23a2]では受信できない受信種別情報[受信データID]に関しても中継先決定手段[23b1]を生成することができる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。   In the invention of claim 7, the relay destination determination means generation means [23a5] obtains the reception type information [reception data ID] before the reception type information [reception data ID] is received by the reception type information reception means [23a2]. If it is, the relay destination determination means [23b1] can be generated based on the acquired reception type information [received data ID]. As a result, for example, for the basic configuration of the network that has been known in advance, the reception type information [reception data ID] is given without using the reception type information reception unit [23a2], so that the relay destination determination unit is based on it. [23b1] can be generated. Therefore, in the subsequent generation of the relay destination determining means [23b1] based on the reception type information [received data ID] received by the received reception type information receiving means [23a2], the already received reception type information [received data ID] And the reception type information [received data ID] received thereafter, the relay destination determining means [23b1] is generated for the difference information between the received type information [received data ID] and the relay destination determining means based on the received reception type information [received data ID] [ 23b1] can be processed at high speed. Also, reception type information [reception data ID] that cannot be received by the reception type information receiving means [23a2] is given in advance, and the received reception type information [reception data ID] and the received reception type information [reception data received thereafter]. The relay destination determination means [23b1] is generated for the difference information from the ID], so that the relay destination determination means can also be received for the reception type information [received data ID] that cannot be received by the reception type information reception means [23a2]. [23b1] can be generated. Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.

請求項8の発明では、中継先決定手段生成手段[23a5]は、送信種別情報受信手段[23a2]による送信種別情報[送信データID]の受信前に、送信種別情報[送信データID]を取得している場合には、当該取得済みの送信種別情報[送信データID]に基づいて中継先決定手段[23b1]を生成し得る。これにより、例えば、予め判明しているネットワークの基本構成については、送信種別情報受信手段[23a2]によることなく、送信種別情報[送信データID]を与えておくことでそれに基づいて中継先決定手段[23b1]を生成することができる。このため、その後の送信種別情報受信手段[23a2]により受信された送信種別情報[送信データID]に基づく中継先決定手段[23b1]の生成では、既に取得済みの送信種別情報[送信データID]とその後に受信した送信種別情報[送信データID]との差分情報について中継先決定手段[23b1]の生成処理を行うことで、受信した送信種別情報[送信データID]に基づく中継先決定手段[23b1]の生成を高速に処理することができる。また、送信種別情報受信手段[23a2]では受信できない送信種別情報[送信データID]を予め与えておき、この取得済みの送信種別情報[送信データID]とその後に受信した送信種別情報[送信データID]との差分情報について中継先決定手段[23b1]の生成処理を行うことで、このような送信種別情報受信手段[23a2]では受信できない送信種別情報[送信データID]に関しても中継先決定手段[23b1]を生成することができる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。   In the invention of claim 8, the relay destination determining means generating means [23a5] acquires the transmission type information [transmission data ID] before receiving the transmission type information [transmission data ID] by the transmission type information receiving means [23a2]. If it is, the relay destination determination means [23b1] can be generated based on the acquired transmission type information [transmission data ID]. Thereby, for example, the basic configuration of the network that has been known in advance is not based on the transmission type information receiving unit [23a2], but is given the transmission type information [transmission data ID], so that the relay destination determining unit is based on it. [23b1] can be generated. For this reason, in the subsequent generation of the relay destination determining means [23b1] based on the transmission type information [transmission data ID] received by the transmission type information receiving means [23a2], the already acquired transmission type information [transmission data ID] Then, the relay destination determination means [23b1] is generated for the difference information between the received transmission type information [transmission data ID] and the relay destination determination means [23b1] based on the received transmission type information [transmission data ID]. 23b1] can be processed at high speed. Further, transmission type information [transmission data ID] that cannot be received by the transmission type information receiving means [23a2] is given in advance, and the acquired transmission type information [transmission data ID] and the transmission type information received thereafter [transmission data] The relay destination determining means [23b1] is generated for the difference information from the ID], so that the relay destination determining means can also be used for transmission type information [transmission data ID] that cannot be received by the transmission type information receiving means [23a2]. [23b1] can be generated. Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.

請求項9の発明では、中継先決定手段生成手段[23a5]は、第1の所定条件を満たす場合に中継先決定手段[23b1]を生成し、当該第1の所定条件を満たさない場合には中継先決定手段[23b1]を生成しない。ここでの「第1の所定条件」として例えば、(1-1) 中継先決定手段[23b1]が生成されていないことや、(1-2) ネットワークや入力装置(例えば、診断装置や検査装置等)等の外部から当該データ中継装置[20]に入力され得る特定の命令コード(特定のコマンド)の入力があること、(1-3) (1-1),(1-2) の条件を共に満たすこと、等が例示される。これにより、当該第1の所定条件を満たす場合にのみ、中継先決定手段[23b1]が生成されるので、既に中継先決定手段[23b1]が生成されているにもかかわらず、不必要あるいは誤って中継先決定手段[23b1]が生成されたり((1-1) に対応)、ネットワーク構成が不完全な状態で中継先決定手段[23b1]が生成されたり((1-2) に対応)、さらにネットワーク等の伝送媒体上の伝送誤り等により偶然、当該特定の命令コード(特定のコマンド)と同様の意味内容を持つデータが入力された場合についても誤って中継先決定手段[23b1]が生成される((1-3) に対応)、等の中継先決定手段[23b1]の誤生成を防止できる。   In the invention of claim 9, the relay destination determining means generating means [23a5] generates the relay destination determining means [23b1] when the first predetermined condition is satisfied, and when the first predetermined condition is not satisfied. The relay destination determining means [23b1] is not generated. As the “first predetermined condition”, for example, (1-1) the relay destination determination means [23b1] is not generated, or (1-2) a network or an input device (for example, a diagnostic device or an inspection device) Etc.) There is an input of a specific instruction code (specific command) that can be input to the data relay device [20] from the outside, and the conditions of (1-3) (1-1), (1-2) Are satisfied together. As a result, the relay destination determining unit [23b1] is generated only when the first predetermined condition is satisfied. Therefore, even though the relay destination determining unit [23b1] has already been generated, it is unnecessary or erroneous. The relay destination determining means [23b1] is generated (corresponding to (1-1)), or the relay destination determining means [23b1] is generated in an incomplete network configuration (corresponding to (1-2)) Further, when data having the same meaning and content as the specific instruction code (specific command) is accidentally input due to a transmission error on a transmission medium such as a network, the relay destination determining means [23b1] It is possible to prevent erroneous generation of the relay destination determining means [23b1] such as generated (corresponding to (1-3)).

請求項10の発明では、中継先決定手段生成手段[23a5]は、第2の所定条件を満たす場合に中継先決定手段[23b1]を再度生成し、当該第2の所定条件を満たさない場合には中継先決定手段[23b1]を再度生成しない。ここでの「第2の所定条件」として、例えば、(2-1) ネットワークや入力装置(例えば、診断装置や検査装置等)等の外部から当該データ中継装置[20]に入力され得る特定の命令コード(特定のコマンド)の入力があることや、(2-2) 当該データ中継装置[20]に設定され得る所定の電圧や電流の入力(常時供給されるべき電源(バッテリ等)が接続された時の電圧や電流の入力)があること、等が挙げられる。これにより、当該第2の所定条件を満たす場合にのみ、中継先決定手段[23b1]が再度生成されるので、既に中継先決定手段[23b1]が生成されているにもかかわらず、不必要に中継先決定手段[23b1]が再度生成されたり、誤って中継先決定手段[23b1]が再度生成されたりすることを防止できる。また、ユーザにより車両のオプション設定等が変更された場合(途中からの機器の追加や削除)にも、必要に応じ、中継先決定手段[23b1]の再生成が可能となる。   In the invention of claim 10, the relay destination determining means generating means [23a5] generates the relay destination determining means [23b1] again when the second predetermined condition is satisfied, and when the second predetermined condition is not satisfied. Does not generate the relay destination determination means [23b1] again. Here, as the “second predetermined condition”, for example, (2-1) a specific that can be input to the data relay device [20] from the outside such as a network or an input device (for example, a diagnostic device or an inspection device) Input of command code (specific command), (2-2) Input of predetermined voltage or current that can be set in the data relay device [20] (power supply (battery etc.) to be constantly supplied is connected The input of voltage and current at the time of being performed). Thereby, only when the second predetermined condition is satisfied, the relay destination determining means [23b1] is generated again, so that it is unnecessary even though the relay destination determining means [23b1] has already been generated. It is possible to prevent the relay destination determination unit [23b1] from being generated again or the relay destination determination unit [23b1] from being generated again by mistake. Further, even when the option setting of the vehicle is changed by the user (addition or deletion of a device from the middle), the relay destination determination unit [23b1] can be regenerated as necessary.

請求項11の発明では、自らが受信すべきデータフレームのデータ本体の種類に関する受信種別情報[受信データID]を受信種別情報生成手段[53a6]により生成し、それを受信種別情報送信手段[53a3]によりをネットワークに送信する。これにより、例えば、当該ネットワークに接続される請求項1〜9に記載のデータ中継装置[20]は、当該端末装置の受信種別情報[受信データID]を受信することができる。このため、当該データ中継装置[20]では、前述したように、中継先決定手段[23b1]を生成するために必要となる当該受信種別情報[受信データID]を人手に頼ることなく、受信種別情報受信手段[23a2]により受信し、自ら学習(中継先決定手段[23b1]を生成)するので、ネットワークの構築を容易にできる。したがって、中継先決定手段[23b1]に関する作業として中継先テーブルやヘッダーテーブルを記憶したROMの書込作業や交換作業の発生を防ぐので、ネットワーク構成に関するデータ中継装置の設定作業の負担を軽減することができる。   In the invention of claim 11, the reception type information [reception data ID] relating to the type of the data body of the data frame to be received by the reception type information generation means [53a6] is generated, and the reception type information transmission means [53a3] is generated. ] Is sent to the network. Thereby, for example, the data relay device [20] according to claims 1 to 9 connected to the network can receive the reception type information [received data ID] of the terminal device. Therefore, in the data relay device [20], as described above, the reception type information [reception data ID] necessary for generating the relay destination determination means [23b1] is not manually relied on. Since the information is received by the information receiving means [23a2] and learned by itself (relay destination determining means [23b1] is generated), the network can be easily constructed. Therefore, the writing of the ROM storing the relay destination table and the header table and the exchange work are prevented from occurring as the work related to the relay destination determining means [23b1], so that the burden of setting the data relay device related to the network configuration can be reduced. Can do.

請求項12の発明では、受信種別情報送信手段[53a3]は、ネットワークに接続されたデータ中継装置の要求に応じて、受信種別情報[受信データID]をネットワークに送信する。これにより、例えば、請求項2または請求項3に記載のデータ中継装置[20]による受信種別情報[受信データID]の送信要求に応えることができるので、当該データ中継装置[20]では、前述したように、必要に応じて適宜、受信種別情報[受信データID]に基づいてネットワークの構成情報を自ら学習(中継先決定手段[23b1]を生成)できる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。   In the invention of claim 12, the reception type information transmitting means [53a3] transmits the reception type information [reception data ID] to the network in response to a request from the data relay apparatus connected to the network. Accordingly, for example, the data relay device [20] according to claim 2 or claim 3 can respond to a transmission request for the reception type information [received data ID] by the data relay device [20]. As described above, the network configuration information can be learned by itself based on the reception type information [reception data ID] as necessary (the relay destination determination unit [23b1] is generated). Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.

請求項13の発明では、自らが送信すべきデータフレームのデータ本体の種類に関する送信種別情報[送信データID]を送信種別情報生成手段[53a7]により生成し、それを送信種別情報送信手段[53a3]によりをネットワークに送信する。これにより、例えば、当該ネットワークに接続される請求項4〜6に記載のデータ中継装置[20]は、当該端末装置の送信種別情報[送信データID]を受信することができる。このため、当該データ中継装置[20]では、前述したように、当該他のネットワークに接続される端末装置[50a等]間、つまり同一のネットワークに接続される端末装置同士で相互に送受信されるデータフレームを認識することができるので、このようなデータ中継装置[20]では中継する必要のないデータフレームを除いて中継を行う中継先決定手段[23b1]を生成することができる。これによって、中継先決定手段[23b1]の構成を簡素にできるので、例えば、中継先決定手段[23b1]による中継先の決定処理速度を速くすることができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置の設定作業時間を短縮できる。   In the invention of claim 13, the transmission type information [transmission data ID] relating to the type of the data body of the data frame to be transmitted by itself is generated by the transmission type information generation means [53a7], and the transmission type information transmission means [53a3] ] Is sent to the network. Thereby, for example, the data relay device [20] according to claims 4 to 6 connected to the network can receive the transmission type information [transmission data ID] of the terminal device. Therefore, in the data relay device [20], as described above, data is transmitted and received between the terminal devices [50a etc.] connected to the other network, that is, between the terminal devices connected to the same network. Since the data frame can be recognized, such a data relay device [20] can generate the relay destination determination means [23b1] that relays data frames that do not need to be relayed. As a result, the configuration of the relay destination determination unit [23b1] can be simplified. For example, the relay destination determination processing speed by the relay destination determination unit [23b1] can be increased. Therefore, since the network construction process can be performed at high speed, it is possible to shorten the setting work time of the data relay apparatus related to the network configuration.

請求項14の発明では、送信種別情報送信手段[53a3]は、ネットワークに接続されたデータ中継装置の要求に応じて、送信種別情報[送信データID]をネットワークに送信する。これにより、例えば、請求項5または請求項6に記載のデータ中継装置[20]による送信種別情報[送信データID]の送信要求に応えることができるので、当該データ中継装置[20]では、前述したように、必要に応じて適宜、受信種別情報[受信データID]および送信種別情報[送信データID]に基づいてネットワークの構成情報を自ら学習(中継先決定手段[23b1]を生成)できるので、高速なネットワークの構築処理が適宜可能となる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。   In the invention of claim 14, the transmission type information transmitting means [53a3] transmits the transmission type information [transmission data ID] to the network in response to a request from the data relay apparatus connected to the network. As a result, for example, the data relay apparatus [20] according to claim 5 or claim 6 can respond to a transmission request for transmission type information [transmission data ID]. As described above, the network configuration information can be learned by itself based on the reception type information [reception data ID] and the transmission type information [transmission data ID] as necessary (the relay destination determination means [23b1] is generated). High-speed network construction processing can be performed as appropriate. Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.

請求項15の発明では、端末装置[50a等]は、自らが受信すべきデータフレームのデータ本体の種類に関する受信種別情報[受信データID]を受信種別情報生成手段[53a6]により生成し、それを受信種別情報送信手段[53a3]によりをネットワークに送信する。一方、データ中継装置[20]は、端末装置[50a等]から送信される受信種別情報[受信データID]を受信種別情報受信手段[23a2]により受信し、それに基づいて、中継先決定手段生成手段[23a5]により中継先決定手段[23b1]を生成する。これにより、端末装置[50a等]から送信される情報で、当該端末装置[50a等]が受信すべきデータフレームに含まれるデータ本体の種類に関する受信種別情報[受信データID]を受信することで、中継先決定手段[23b1]を適宜生成することが可能となる。つまり、中継先決定手段[23b1]を生成するために必要となる当該受信種別情報[受信データID]を人手に頼ることなく、受信種別情報受信手段[23a2]により受信し、自ら学習(中継先決定手段[23b1]を生成)するので、ネットワークの構築を容易にできる。したがって、中継先決定手段[23b1]に関する作業として中継先テーブルやヘッダーテーブルを記憶したROMの書込作業や交換作業の発生を防ぐので、ネットワーク構成に関するデータ中継装置の設定作業の負担を軽減することができる。
また、請求項15の発明では、データ中継装置[20]は、受信種別情報[受信データID]の送信を端末装置[50a等]に対して要求可能な受信種別情報要求手段[23a3,23a5]を備えることから、例えば、中継先決定手段[23b1]が生成されていない場合や中継先決定手段[23b1]の更新を要する場合に、受信種別情報要求手段[23a3,23a5]による受信種別情報[受信データID]の送信要求によって、端末装置[50a等]から受信種別情報[受信データID]を得ることができる。これにより、必要に応じて適宜、受信種別情報[受信データID]に基づいてネットワークの構成情報を自ら学習(中継先決定手段[23b1]を生成)できる。したがって、ネットワーク構成に関するデータ中継装置の設定作業の負担をさらに軽減することができる。
そして、請求項15の発明では、受信種別情報要求手段[23a3,23a5]は、受信種別情報[受信データID]の送信要求を受ける複数の端末装置[50a等]に対し、これら複数の端末装置[50a等]すべてを対象とした受信種別情報[受信データID]の要求を送信する。つまり、同じネットワークに接続された複数の端末装置[50a等]に対し、受信種別情報[受信データID]の送信要求をブロードキャスト(またはマルチキャスト)するので、このような送信要求を複数の端末装置[50a等]に対して個々に送信する場合(ユニキャスト)に比べて短時間に受信種別情報[受信データID]を受信することができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置の設定作業時間を短縮できる。
In the invention of claim 15, the terminal device [50a etc.] generates reception type information [reception data ID] related to the type of data body of the data frame to be received by the reception type information generation means [53a6]. Is transmitted to the network by the reception type information transmitting means [53a3]. On the other hand, the data relay device [20] receives the reception type information [received data ID] transmitted from the terminal device [50a, etc.] by the reception type information receiving unit [23a2], and based on this, generates the relay destination determining unit. The relay destination determining means [23b1] is generated by the means [23a5]. As a result, by receiving information received from the terminal device [50a etc.] and receiving type information [received data ID] related to the type of data body included in the data frame to be received by the terminal device [50a etc.]. Thus, it is possible to appropriately generate the relay destination determining means [23b1]. That is, the reception type information [reception data ID] necessary for generating the relay destination determination unit [23b1] is received by the reception type information reception unit [23a2] without relying on human hands, and learning (relay destination) Since the determination means [23b1] is generated), the network can be easily constructed. Therefore, the writing of the ROM storing the relay destination table and the header table as the work relating to the relay destination determining means [23b1] and the exchange work are prevented, so that the burden of the data relay device setting work relating to the network configuration can be reduced. Can do.
Further, in the invention of claim 15, the data relay device [20] allows the reception type information [reception data ID] to be requested to the terminal device [50a, etc.] reception type information request means [23a3, 23a5]. For example, when the relay destination determination unit [23b1] is not generated or when the relay destination determination unit [23b1] needs to be updated, the reception type information request unit [23a3, 23a5] receives the reception type information [ The reception type information [reception data ID] can be obtained from the terminal device [50a etc.] by the transmission request of the reception data ID]. As a result, the network configuration information can be learned by itself (relay destination determination means [23b1] is generated) based on the reception type information [reception data ID] as necessary. Therefore, it is possible to further reduce the burden of setting the data relay device regarding the network configuration.
In the fifteenth aspect of the invention, the reception type information requesting means [23a3, 23a5] sends the plurality of terminal devices to the plurality of terminal devices [50a etc.] that receive the transmission request for the reception type information [reception data ID]. [50a etc.] A request for reception type information [reception data ID] for all is transmitted. That is, since a transmission request for reception type information [received data ID] is broadcast (or multicast) to a plurality of terminal devices [50a, etc.] connected to the same network, such a transmission request is transmitted to a plurality of terminal devices [ 50a, etc.], it is possible to receive the reception type information [reception data ID] in a shorter time compared to the case of individual transmission (unicast). Therefore, since the network construction process can be performed at high speed, it is possible to shorten the setting work time of the data relay apparatus related to the network configuration.

以下、本発明のデータ中継装置、端末装置およびデータ通信システムを、車載LANのシステムに適用した実施形態を各図に基づいて説明する。まず、本実施形態に係るデータ通信システムの構成例を図1を参照して説明する。以下、特許請求の範囲の記載との関係において、ネットワークNW-1を「他のネットワーク」に、ネットワークNW-nを「一のネットワーク」にそれぞれ対応付けて説明するが、この対応は一例を示すものに過ぎず、例えば、ネットワークNW-1,NW-2,NW-3を「一のネットワーク」、ネットワークNW-nを「他のネットワーク」とするものや、ネットワークNW-1,NW-2,NW-3を「他のネットワーク」、ネットワークNW-nを「一のネットワーク」とするもの等、あらゆる組み合わせが想定でき、これら以外の対応関係であっても良い。   Hereinafter, embodiments in which a data relay device, a terminal device, and a data communication system of the present invention are applied to an in-vehicle LAN system will be described with reference to the drawings. First, a configuration example of a data communication system according to the present embodiment will be described with reference to FIG. In the following, in relation to the description in the claims, the network NW-1 will be described as being associated with “another network”, and the network NW-n will be described as being associated with a “one network”. For example, the network NW-1, NW-2, NW-3 is “one network”, the network NW-n is “other network”, the network NW-1, NW-2, Any combination of NW-3 as “other network” and network NW-n as “one network” can be assumed, and other correspondence relationships may be used.

なお、ゲートウェイ装置20は、特許請求の範囲に記載の「データ中継装置」に相当し得るもので、またノード50a、50b、50c、50d、50e、50f、50g、50h、50i、50x、50y、50z(以下、これらを総称して「ノード50a等」という)は、特許請求の範囲に記載の「端末装置」に相当し得るものである。   The gateway device 20 can correspond to the “data relay device” described in the claims, and the nodes 50a, 50b, 50c, 50d, 50e, 50f, 50g, 50h, 50i, 50x, 50y, 50z (hereinafter collectively referred to as “node 50a etc.”) can correspond to the “terminal device” described in the claims.

図1に示すように、本実施形態に係るデータ通信システムは、複数の異なる通信プロトコルによるネットワークNW-1,NW-2,NW-3,…,NW-n(nは正の整数)(以下、これらを総称して「ネットワークNW-1等」という)と、これらのネットワークNW-1等に接続されるゲートウェイ装置20とにより構成される車載LANのシステムである。各ネットワークNW-1等は、データ通信の伝送媒体となるバスと、このバスに接続される複数のノードと、により構成されている。   As shown in FIG. 1, the data communication system according to the present embodiment includes a network NW-1, NW-2, NW-3,..., NW-n (n is a positive integer) (hereinafter referred to as “a positive integer”). These are collectively referred to as “network NW-1 etc.”) and a gateway device 20 connected to these networks NW-1 etc. Each network NW-1 and the like is configured by a bus serving as a data communication transmission medium and a plurality of nodes connected to the bus.

例えば、1番目のネットワークNW-1であれば、3台のノード50a、50b、50cがバスbus-1にそれぞれデータ通信可能に接続されている。同様に、2番目のネットワークNW-2のバスbus-2には、ノード50d、50e、50fが、また3番目のネットワークNW-3のバスbus-3には、ノード50g、50h、50iが、それぞれデータ通信可能に接続されており、最後のn番目のネットワークのバスbus-nには、例えば、ノード50x、50y、50zが接続されている。   For example, in the case of the first network NW-1, three nodes 50a, 50b, and 50c are connected to the bus bus-1 so that data communication is possible. Similarly, nodes 50d, 50e, and 50f are included in the bus bus-2 of the second network NW-2, and nodes 50g, 50h, and 50i are included in the bus bus-3 of the third network NW-3. For example, nodes 50x, 50y, and 50z are connected to the bus n of the last nth network.

このように構成される各ネットワークNW-1等では、それぞれの用途に適した通信プロトコルに従って各ノード間の通信が行われている。例えば、ネットワークNW-1は制御系に適した通信プロトコルとしてCANが用いられており、ネットワークNW-2は車体制御等の低速向きの通信プロトコルとしてJ1850やBEANが用いられている。また、ネットワークNW-3の通信プロトコルはマルチメディア用のIE−BUS、ネットワークNW-nの通信プロトコルは診断制御用のISO9141、がそれぞれ用いられている。   In each network NW-1 and the like configured as described above, communication between nodes is performed according to a communication protocol suitable for each application. For example, the network NW-1 uses CAN as a communication protocol suitable for the control system, and the network NW-2 uses J1850 or BEAN as a low-speed communication protocol for vehicle body control or the like. Further, the network NW-3 communication protocol uses multimedia IE-BUS, and the network NW-n communication protocol uses diagnostic control ISO 9141.

したがって、CANによるネットワークNW-1には、ノード50aとしてエンジン制御用のECU、ノード50bとしてブレーキ制御用のECU、ノード50cとしてトランスミッション制御用のECUがそれぞれバスbus-1に接続され、またJ1850によるネットワークNW-2には、ノード50dとしてエアコン制御用のECU、ノード50eとしてシート制御用のECU、ノード50fとしてワイパ制御用のECUがそれぞれバスbus-2に接続されている。さらにIE−BUSによるネットワークNW-3には、ノード50gとしてカーナビゲーション制御用のECU、ノード50hとしてカーオーディオ制御用のECU、ノード50iとしてビデオシステム制御用のECUがそれぞれバスbus-3に接続されている。そして、ISO9141によるネットワークNW-nには、ノード50x、50y、50zとして車両制御機能の診断用ECUがそれぞれバスbus-nに接続されている。   Therefore, in the network NW-1 by CAN, the ECU for engine control as the node 50a, the ECU for brake control as the node 50b, and the ECU for transmission control as the node 50c are connected to the bus bus-1, respectively, and according to J1850 In the network NW-2, an ECU for air conditioner control as a node 50d, an ECU for seat control as a node 50e, and an ECU for wiper control as a node 50f are connected to the bus bus-2. Further, in the network NW-3 based on IE-BUS, an ECU for car navigation control as a node 50g, an ECU for car audio control as a node 50h, and an ECU for video system control as a node 50i are connected to the bus bus-3, respectively. ing. In the network NW-n based on ISO 9141, diagnosis ECUs for vehicle control functions are connected to the bus bus-n as nodes 50x, 50y, and 50z, respectively.

このように各ネットワークNW-1等に接続されるノード50a等は、ネットワークごとに定められた通信プロトコルに従って各ノード間でデータフレームの送受信を行っている。そのため、同一のネットワーク内おいてはノード同士の通信は可能であっても、当該ネットワークを超えた他のネットワークに接続されるノードとの間においては、通信プロトコルが異なるため、通常、データフレームのやりとりを行うことができない。つまり、図1に示すネットワークNW-1のノード50aは、ノード50bやノード50cとは通信できても、ネットワークNW-2のノード50dやネットワークNW-nのノード50xとは通信することができない。   As described above, the nodes 50a and the like connected to the networks NW-1 and the like perform transmission and reception of data frames between the nodes in accordance with a communication protocol determined for each network. Therefore, even if communication between nodes is possible in the same network, the communication protocol differs between nodes connected to other networks beyond the network. I can't communicate. That is, the node 50a of the network NW-1 illustrated in FIG. 1 cannot communicate with the node 50d of the network NW-2 or the node 50x of the network NW-n, even though the node 50a can communicate with the node 50b and the node 50c.

そこで、これら各ネットワークNW-1等をゲートウェイ装置20に接続することにより、通信プロトコルの異なるネットワーク間に介在し、これらのネットワークの各ノード同士の通信を可能にしている。なお、このゲートウェイ装置20は、各ノード50a等から送信されてくるデータフレームに含まれるデータ本体の種類を識別可能な受信データIDに基づいて、当該データフレームの転送先のネットワークを決定し得るもので、各ノード50a等を識別し得るノードIDに基づいて転送先のネットワークを決定しているものではない。ここで、ゲートウェイ装置20の構成例を図2を参照して説明する。なお、図2(A) にはゲートウェイ装置20のハードウェア構成が示されており、また図2(B) は、ゲートウェイ装置20による処理概要の構成が示されている。また、図2では、インターフェイスを「I/F」と、またテーブルを「TBL」と、それぞれ略記している。   Therefore, by connecting each of these networks NW-1 and the like to the gateway device 20, it is interposed between networks having different communication protocols and enables communication between the nodes of these networks. The gateway device 20 can determine the data transfer destination network based on the received data ID that can identify the type of the data body included in the data frame transmitted from each node 50a or the like. Thus, the transfer destination network is not determined based on the node ID that can identify each node 50a and the like. Here, a configuration example of the gateway device 20 will be described with reference to FIG. 2A shows the hardware configuration of the gateway device 20, and FIG. 2B shows the configuration of the outline of processing by the gateway device 20. In FIG. 2, the interface is abbreviated as “I / F”, and the table is abbreviated as “TBL”.

図2(A) に示すように、ゲートウェイ装置20は、主に、CPU21、メモリ23、インターフェイス部27により構成されており、それぞれ内部バスを介して相互に電気的に接続されている。CPU21は、中央演算処理装置で、「MPU」とも称されるマイクロプロセッシングユニットである。   As shown in FIG. 2A, the gateway device 20 is mainly composed of a CPU 21, a memory 23, and an interface unit 27, and they are electrically connected to each other via an internal bus. The CPU 21 is a central processing unit and is a microprocessing unit also called “MPU”.

メモリ23は、DRAM等の揮発性メモリ装置とROMやEEPROM等の不揮発性メモリ装置とからなる半導体記憶装置である。通常、不揮発性メモリにプログラム領域23aや中継先テーブル領域23bを確保して、後述する各処理部による演算処理を可能にする所定の制御プログラムやデータを格納する。これに対し、揮発性メモリには、プログラムによる作業領域等が確保され、スタックや各種中間データ等が暫定的に記憶される。なお、中継先テーブル領域23bには、中継先テーブル23b1が確保される。   The memory 23 is a semiconductor memory device including a volatile memory device such as a DRAM and a non-volatile memory device such as a ROM or an EEPROM. Usually, a program area 23a and a relay destination table area 23b are secured in a non-volatile memory, and a predetermined control program and data that enable arithmetic processing by each processing unit described later are stored. On the other hand, in the volatile memory, a work area or the like by a program is secured, and a stack, various intermediate data, and the like are temporarily stored. The relay destination table 23b1 is secured in the relay destination table area 23b.

このように中継先テーブル領域23bをPROMやEEPROM等の不揮発性メモリに確保することにより、ゲートウェイ装置20に供給される電源が切断されても中継先テーブル23b1に記憶された受信データIDや送信データID等の各情報が失われることがないので、ゲートウェイ装置20の工場出荷時に設定されたネットワーク情報の喪失を防止することができる。また電気的に消去可能なEEPROMに中継先テーブル領域23bを確保しこれに中継先テーブル23b1を登録することで、当該中継先テーブル23b1を容易に書き換えることが可能となる。これにより、PROMのようにROM自体を交換する必要がなくなるので、交換用のROMを管理する必要もない。   Thus, by securing the relay destination table area 23b in a non-volatile memory such as PROM or EEPROM, the reception data ID and transmission data stored in the relay destination table 23b1 even when the power supplied to the gateway device 20 is cut off. Since each information such as an ID is not lost, it is possible to prevent loss of network information set at the time of gateway device 20 shipment from the factory. Further, by securing the relay destination table area 23b in the electrically erasable EEPROM and registering the relay destination table 23b1 in this area, the relay destination table 23b1 can be easily rewritten. As a result, there is no need to replace the ROM itself as in the PROM, so there is no need to manage the replacement ROM.

インターフェイス部27は、複数のバスbus-1,bus-2,bus-3,…,bus-n(以下、これらを総称して「バスbus-1等」という)に対応したインターフェイスユニットをこれらのバス数ぶん有するもので、例えば、バスbus-1に接続可能なインターフェイスユニットとしてバス1対応インターフェイス部27aを備えている。同様に、バスbus-2に接続可能なインターフェイスユニットとしてバス2対応インターフェイス部27b、バスbus-3に接続可能なインターフェイスユニットとしてバス3対応インターフェイス部27c、バスbus-nに接続可能なインターフェイスユニットとしてバスn対応インターフェイス部27nをそれぞれ備えている。なお、バス1対応インターフェイス部27a、バス2対応インターフェイス部27b、バス3対応インターフェイス部27c、バスn対応インターフェイス部27nは、特許請求の範囲に記載の「受信種別情報受信手段」、「送信種別情報受信手段」、「受信種別情報要求手段」および「送信種別情報要求手段」に相当し得るものである。   The interface unit 27 includes interface units corresponding to a plurality of buses bus-1, bus-2, bus-3,..., Bus-n (hereinafter collectively referred to as “bus bus-1 etc.”). For example, an interface unit 27a corresponding to the bus 1 is provided as an interface unit connectable to the bus bus-1. Similarly, as an interface unit connectable to the bus bus-2, an interface unit 27b corresponding to the bus 2, an interface unit connectable to the bus 3 as an interface unit connectable to the bus bus-3, and an interface unit connectable to the bus bus-n. Each interface unit 27n is provided with a bus n. Note that the interface unit 27a corresponding to the bus 1, the interface unit 27b corresponding to the bus 2, the interface unit 27c corresponding to the bus 3 and the interface unit 27n corresponding to the bus n are “reception type information receiving means” and “transmission type information” recited in the claims. It can correspond to “receiving means”, “reception type information requesting means” and “transmission type information requesting means”.

このようにゲートウェイ装置20のハードウェアを構成することにより、図2(B) に示すように構成される各処理がCPU21により実行される。即ち、CPU21により実行される各処理は、基本システム部23a1、中継フレーム受信部23a2、中継フレーム送信部23a3、データID参照部23a4、中継先テーブル生成部23a5、中継先テーブル23b1により構成されている。   By configuring the hardware of the gateway device 20 in this way, each process configured as shown in FIG. That is, each process executed by the CPU 21 includes a basic system unit 23a1, a relay frame receiving unit 23a2, a relay frame transmitting unit 23a3, a data ID reference unit 23a4, a relay destination table generating unit 23a5, and a relay destination table 23b1. .

基本システム部23a1は、CPU21とメモリ23、インターフェイス部27等のハードウェア資源との間の基本制御を担うオペレーティングシステムで、コンピュータシステムとして不可欠なプログラム群からなる。   The basic system unit 23a1 is an operating system that performs basic control between the CPU 21 and hardware resources such as the memory 23 and the interface unit 27, and includes a group of programs that are indispensable as a computer system.

中継フレーム受信部23a2は、インターフェイス部27に入力されて受信バッファにバッファリングされているデータフレームを適宜取り出す処理や、所定のアルゴリズムに従って伝送誤りの有無を調べるエラーチェック処理や伝送誤りの生じたデータを正すエラー訂正処理等を行い得るもので、これらの処理の後、データフレームをデータID参照部23a4に渡す。なお、この中継フレーム受信部23a2は、データフレームを受信する機能を有することから、特許請求の範囲に記載の「受信種別情報受信手段」や「送信種別情報受信手段」に相当し得るものである。   The relay frame reception unit 23a2 appropriately extracts a data frame that is input to the interface unit 27 and buffered in the reception buffer, an error check process that checks whether there is a transmission error according to a predetermined algorithm, and data in which a transmission error has occurred. The error correction process etc. which correct | amend can be performed, and after these processes, a data frame is passed to data ID reference part 23a4. Since this relay frame receiving unit 23a2 has a function of receiving data frames, it can correspond to “reception type information receiving means” or “transmission type information receiving means” described in the claims. .

中継フレーム送信部23a3は、データID参照部23a4により転送先が決定されたデータフレームを受け取ると、これに誤り検出用または誤り訂正用のデータを付加して適宜、インターフェイス部27の送信バッファに出力する処理を行い得るものである。なお、この中継フレーム送信部23a3は、データフレームを送信する機能を有することから、特許請求の範囲に記載の「受信種別情報要求手段」や「送信種別情報要求手段」に相当し得るものである。   When receiving the data frame whose transfer destination has been determined by the data ID reference unit 23a4, the relay frame transmission unit 23a3 adds data for error detection or error correction to the data frame and outputs it to the transmission buffer of the interface unit 27 as appropriate. Can be performed. Since this relay frame transmission unit 23a3 has a function of transmitting a data frame, it can correspond to a “reception type information request unit” or “transmission type information request unit” described in the claims. .

データID参照部23a4は、中継フレーム受信部23a2により渡されたデータフレームから受信データIDを抽出する処理や、中継先テーブル23b1に格納された各ノード50a等が受信すべきデータIDを参照して、この参照したデータIDと受信データIDとが一致するか否かを判断する処理を行い得るものである(以下、データID参照部23a4により参照されるデータIDを「参照データID」という)。そして、データID参照部23a4では、両データIDが、一致する場合には当該データフレームを中継フレーム送信部23a3に渡し、一致しない場合には当該データフレームを破棄する。つまり、ゲートウェイ装置20は、各ノード50a等から送信されてくるデータフレームに含まれるデータ本体の種類を識別可能な受信データIDに基づいて、当該データフレームの転送先のネットワークを決定している。なお、受信データIDは、特許請求の範囲に記載の「データ識別子」および「受信情報種別」に相当し得るものである。   The data ID reference unit 23a4 refers to the process of extracting the received data ID from the data frame passed by the relay frame receiving unit 23a2, and the data ID to be received by each node 50a and the like stored in the relay destination table 23b1 Thus, it is possible to perform processing for determining whether or not the referred data ID and the received data ID match (hereinafter, the data ID referred to by the data ID reference unit 23a4 is referred to as “reference data ID”). Then, the data ID reference unit 23a4 passes the data frame to the relay frame transmission unit 23a3 when the two data IDs match, and discards the data frame when they do not match. That is, the gateway device 20 determines a network to which the data frame is to be transferred based on the received data ID that can identify the type of the data body included in the data frame transmitted from each node 50a or the like. The reception data ID can correspond to a “data identifier” and a “reception information type” described in the claims.

なお、このように中継フレーム受信部23a2によりインターフェイス部27の受信バッファから取り出されたデータフレームがデータID参照部23a4を経て中継フレーム送信部23a3に渡される流れは、図2(B) において白抜き矢印によって表されている。また、データID参照部23a4による、中継先テーブル23b1に格納された参照データIDの参照は、図2(B) において両矢印により表されている。   The flow in which the data frame extracted from the reception buffer of the interface unit 27 by the relay frame receiving unit 23a2 as described above is passed to the relay frame transmitting unit 23a3 via the data ID reference unit 23a4 is outlined in FIG. 2B. It is represented by an arrow. The reference of the reference data ID stored in the relay destination table 23b1 by the data ID reference unit 23a4 is represented by a double arrow in FIG. 2 (B).

中継先テーブル生成部23a5は、ゲートウェイ装置20の問い合わせに応えてノード50a等から送信されるデータフレームに含まれる受信データIDに基づいて中継先テーブル23b1を生成する処理や、当該中継先テーブル23b1が生成されていない場合にノード50a等に対し当該ノード50a等が受信すべきデータフレームの受信データIDや当該ノード50a等が送信すべきデータフレームの送信データIDを問い合わせる処理を行い得るものである。なお中継先テーブル生成部23a5は、特許請求の範囲に記載の「中継先決定手段生成手段」、「受信種別情報要求手段」や「送信種別情報要求手段」に相当し得るものである。この中継先テーブル23b1の生成処理については、図9等を参照しながら後述する。   The relay destination table generation unit 23a5 generates a relay destination table 23b1 based on the received data ID included in the data frame transmitted from the node 50a in response to the inquiry from the gateway device 20, and the relay destination table 23b1 When the node 50a or the like has not been generated, the node 50a or the like can be inquired about the received data ID of the data frame to be received by the node 50a or the like, or the transmission data ID of the data frame to be transmitted by the node 50a or the like. The relay destination table generating unit 23a5 can correspond to “relay destination determining means generating means”, “reception type information requesting means” and “transmission type information requesting means” described in the claims. The generation process of the relay destination table 23b1 will be described later with reference to FIG.

この中継先テーブル生成部23a5による受信データIDや送信データIDの問い合わせは、対象となるノード50a等が自分のノードIDを認識できる構成であれば、該当するノード50a等に対してゲートウェイ装置20から個々に受信データIDや送信データIDの問い合わせを行っても良いが、本実施形態では、対象となるノード50a等に対して特定のデータフレームをブロードキャストし得るように構成している。   The inquiry about the reception data ID and transmission data ID by the relay destination table generation unit 23a5 is made from the gateway device 20 to the corresponding node 50a or the like if the target node 50a or the like can recognize its own node ID. Although the inquiry about the reception data ID and the transmission data ID may be made individually, in the present embodiment, a specific data frame can be broadcast to the target node 50a and the like.

具体的には、例えば、ゲートウェイ装置20から送信されるデータフレームのデータIDにワイルドカードとして予め決められている特定のコード(例えば全ビット「1」)を設定することによって、ネットワークNW-1等に接続されているノード50a等すべてを対象として当該データフレームが有用であることを通知する。これにより、このような問い合わせを端末装置50a等に対して個々に送信する場合(ユニキャスト)に比べてゲートウェイ装置20からノード50a等に対する送信回数を1/n(nはノード数)に減少させることができるので、短時間に受信データIDを受信することができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置20の設定作業時間を短縮できる(請求項2、3に実質的に対応)。   Specifically, for example, by setting a specific code (for example, all bits “1”) predetermined as a wild card to the data ID of the data frame transmitted from the gateway device 20, the network NW-1 or the like It is notified that the data frame is useful for all the nodes 50a connected to the. As a result, the number of transmissions from the gateway device 20 to the node 50a etc. is reduced to 1 / n (n is the number of nodes) compared to the case where such an inquiry is individually sent to the terminal device 50a etc. (unicast). Therefore, the received data ID can be received in a short time. Accordingly, since the network construction process can be performed at high speed, it is possible to reduce the setting work time of the data relay device 20 relating to the network configuration (substantially corresponding to claims 2 and 3).

なお、この受信データIDや送信データIDの問い合わせは、1回に限られず、例えば、無条件に2回以上行い、それぞれの問い合わせに対して回答のあった受信データIDや送信データIDを照合して受信データID等に誤りのないことを確認可能に構成しても良い。これにより、伝送誤りによる中継先テーブル23b1を誤生成を防止することができる。また、ノード50a等の応答がない場合や受信データIDや送信データIDの送信がされない場合に、当該問い合わせを所定回数、繰り返すようなリトライ可能な構成にしても良い。これにより、当該問い合わせがノード50a等の受信エラーにより消失等し得る場合にも効果的に対処することができる。   The inquiry about the reception data ID and the transmission data ID is not limited to one time. For example, the inquiry is performed twice or more unconditionally, and the received data ID and the transmission data ID for which each inquiry is answered are collated. Thus, it may be configured to be able to confirm that there is no error in the received data ID or the like. As a result, it is possible to prevent the relay destination table 23b1 from being erroneously generated due to a transmission error. Moreover, when there is no response of the node 50a or the like, or when the reception data ID or the transmission data ID is not transmitted, the inquiry may be retried a predetermined number of times. Thereby, it is possible to effectively cope with the case where the inquiry can be lost due to a reception error of the node 50a or the like.

中継先テーブル23b1は、各バスbus-1等に対応してメモリ23の中継先テーブル領域23bに構成される不揮発性の記憶領域で、データフレームに含まれるデータ本体の種類を識別可能な受信データIDに基づいて転送先の他のネットワークを決定し得るものである。例えば、バスbus-1に接続されるノード50a、50b、50cが受信すべき受信データIDはバスメモリ1に登録され、バスbus-2に接続されるノード50d、50e、50fが受信すべき受信データIDはバスメモリ2に登録され、バスbus-3に接続されるノード50g、50h、50iが受信すべき受信データIDはバスメモリ3に登録され、バスbus-nに接続されるノード50x、50y、50zが受信すべき受信データIDはバスメモリnに登録される。なお、この中継先テーブル23b1は、特許請求の範囲に記載の「中継先決定手段」に相当し得るもので、詳細は図6等を参照しながら後述する。   The relay destination table 23b1 is a non-volatile storage area configured in the relay destination table area 23b of the memory 23 corresponding to each bus bus-1, etc., and received data that can identify the type of data body included in the data frame. It is possible to determine another network of the transfer destination based on the ID. For example, reception data IDs to be received by the nodes 50a, 50b, and 50c connected to the bus bus-1 are registered in the bus memory 1, and receptions to be received by the nodes 50d, 50e, and 50f connected to the bus bus-2. The data ID is registered in the bus memory 2, and the received data ID to be received by the nodes 50g, 50h, and 50i connected to the bus bus-3 is registered in the bus memory 3 and the nodes 50x and 50x connected to the bus bus-n. Received data IDs to be received by 50y and 50z are registered in the bus memory n. The relay destination table 23b1 can correspond to “relay destination determining means” described in the claims, and details will be described later with reference to FIG.

なお、このように中継フレーム受信部23a2により取得されたデータフレームに含まれる受信データIDに基づいて中継先テーブル23b1を生成する処理の伝達は、図2(B) において斜線塗り矢印によって表されている。また、中継先テーブル23b1が生成されていない場合における中継先テーブル生成部23a5による受信データIDや送信データIDの問合せ伝達は、図2(B) において点線矢印によって表されている。   Note that the transmission of the process of generating the relay destination table 23b1 based on the received data ID included in the data frame acquired by the relay frame receiving unit 23a2 is represented by a hatched arrow in FIG. Yes. Further, the inquiry transmission of the reception data ID and the transmission data ID by the relay destination table generation unit 23a5 when the relay destination table 23b1 is not generated is represented by a dotted arrow in FIG.

次に、ノード50a等の構成例を図3を参照して説明する。なお、各ノード50a等の基本構成はほぼ同様であるので、ここではノード50aの構成例を代表して説明する。また、図3(A) にはノード50aのハードウェア構成が示されており、また図3(B) は、ノード50aによる処理概要の構成が示されている。なお、図3では、インターフェイスを「I/F」と、またアプリケーションを「AP」と、それぞれ略記している。   Next, a configuration example of the node 50a and the like will be described with reference to FIG. Since the basic configuration of each node 50a and the like is substantially the same, here, a configuration example of the node 50a will be described as a representative. 3A shows the hardware configuration of the node 50a, and FIG. 3B shows the configuration of the outline of processing by the node 50a. In FIG. 3, the interface is abbreviated as “I / F”, and the application is abbreviated as “AP”.

図3(A) に示すように、ノード50aは、主に、CPU51、メモリ53、インターフェイス部57により構成されており、それぞれ内部バスを介して相互に電気的に接続されている。CPU51は、中央演算処理装置で、CPU21と同様にマイクロプロセッシングユニットである。   As shown in FIG. 3A, the node 50a is mainly composed of a CPU 51, a memory 53, and an interface unit 57, which are electrically connected to each other via an internal bus. The CPU 51 is a central processing unit and is a microprocessing unit like the CPU 21.

メモリ53も、前述したメモリ23と同様に、DRAM等の揮発性メモリ装置とROMやEEPROM等の不揮発性メモリ装置とからなる半導体記憶装置で、不揮発性メモリにプログラム領域53aや送受信IDテーブル領域53bを確保している。このプログラム領域53aには、各処理部による演算処理を可能にする所定のプログラムやデータが格納されており、また揮発性メモリには、プログラムによる作業領域等が確保される。なお、送受信IDテーブル領域53bには、受信IDテーブル53b1や送信IDテーブル53b2が確保される。   Similarly to the memory 23 described above, the memory 53 is a semiconductor storage device including a volatile memory device such as a DRAM and a nonvolatile memory device such as a ROM or an EEPROM, and a program area 53a or a transmission / reception ID table area 53b in the nonvolatile memory. Is secured. The program area 53a stores predetermined programs and data that enable arithmetic processing by each processing unit, and a work area or the like by the programs is secured in the volatile memory. Note that a reception ID table 53b1 and a transmission ID table 53b2 are secured in the transmission / reception ID table area 53b.

インターフェイス部57は、バスbus-1に対応したバス1対応インターフェイス部57aと所定のアプリケーションに対応したアプリケーション対応インターフェイス部57bを備えている。なお、このアプリケーション対応インターフェイス部57bは、ノード50a等の用途により異なったインターフェイス、例えば、アナログ信号を処理するものであればA/D変換器やD/A変換器が用意される。   The interface unit 57 includes a bus 1 compatible interface unit 57a corresponding to the bus bus-1 and an application compatible interface unit 57b corresponding to a predetermined application. The application-compatible interface unit 57b is provided with an interface that differs depending on the use of the node 50a, for example, an A / D converter or a D / A converter if it processes analog signals.

このようにノード50aのハードウェアを構成することにより、図3(B) に示すように構成される各処理がCPU51により実行される。即ち、CPU51により実行される各処理は、基本システム部53a1、データフレーム受信部53a2、データフレーム送信部53a3、データID参照部53a4、所定処理部53a5、受信ID生成部53a6、送信ID生成部53a7、受信IDテーブル53b1、送信IDテーブル53b2により構成されている。   By configuring the hardware of the node 50a in this way, each process configured as shown in FIG. 3B is executed by the CPU 51. That is, each process executed by the CPU 51 includes a basic system unit 53a1, a data frame reception unit 53a2, a data frame transmission unit 53a3, a data ID reference unit 53a4, a predetermined processing unit 53a5, a reception ID generation unit 53a6, and a transmission ID generation unit 53a7. The reception ID table 53b1 and the transmission ID table 53b2.

基本システム部53a1は、CPU51とメモリ53、インターフェイス部57等のハードウェア資源との間の基本制御を担うオペレーティングシステムで、コンピュータシステムとして不可欠なプログラム群からなる。   The basic system unit 53a1 is an operating system that performs basic control between the CPU 51, hardware resources such as the memory 53, the interface unit 57, and the like, and includes an indispensable program group as a computer system.

データフレーム受信部53a2は、インターフェイス部57に入力されて受信バッファにバッファリングされているデータフレームを適宜取り出す処理や、所定のアルゴリズムに従って伝送誤りの有無を調べるエラーチェック処理や伝送誤りの生じたデータを正すエラー訂正処理等を行い得るもので、この処理の後、データフレームをデータID参照部53a4に渡す。   The data frame reception unit 53a2 appropriately extracts a data frame input to the interface unit 57 and buffered in the reception buffer, an error check process for checking whether there is a transmission error according to a predetermined algorithm, and data in which a transmission error has occurred. Error correction processing or the like can be performed, and after this processing, the data frame is passed to the data ID reference unit 53a4.

データフレーム送信部53a3は、所定処理部53a5、受信ID生成部53a6や送信ID生成部53a7によって所定の情報処理が施されたデータフレームを受け取ると、これに誤り検出用または誤り訂正用のデータを付加して適宜、インターフェイス部57の送信バッファに出力する処理を行い得るものである。なお、このデータフレーム送信部53a3は、データフレームを送信する機能を有することから、特許請求の範囲に記載の「受信種別情報送信手段」や「送信種別情報送信手段」に相当し得るものである。   When the data frame transmission unit 53a3 receives the data frame subjected to the predetermined information processing by the predetermined processing unit 53a5, the reception ID generation unit 53a6, or the transmission ID generation unit 53a7, the data frame transmission unit 53a3 receives data for error detection or error correction. In addition, processing to output to the transmission buffer of the interface unit 57 can be appropriately performed. Since the data frame transmission unit 53a3 has a function of transmitting a data frame, the data frame transmission unit 53a3 can correspond to “reception type information transmission unit” or “transmission type information transmission unit” recited in the claims. .

データID参照部53a4は、データフレーム受信部53a2により渡されたデータフレームから受信データIDを抽出する処理や、受信IDテーブル53b1に格納された当該ノード50aが受信すべきデータIDを参照して、この参照データIDと抽出した受信データIDとが一致するか否かを判断する処理を行い得るものである。両データIDが、一致する場合には当該データフレームを所定処理部53a5に渡し、一致しない場合には当該データフレームを破棄する。つまり、ノード50aは、他のノード50b等やゲートウェイ装置20から送信されてくるデータフレームに含まれるデータ本体の種類を識別可能な受信データIDに基づいて、当該データフレームが有用なものであるか否かを判断している。ノードIDに基づいては当該データフレームの有用性を判断していない。   The data ID reference unit 53a4 refers to the process of extracting the received data ID from the data frame passed by the data frame receiving unit 53a2, or the data ID to be received by the node 50a stored in the reception ID table 53b1, A process for determining whether or not the reference data ID matches the extracted received data ID can be performed. If the two data IDs match, the data frame is passed to the predetermined processing unit 53a5. If the data IDs do not match, the data frame is discarded. That is, is the node 50a useful for the data frame based on the received data ID that can identify the type of the data body included in the data frame transmitted from the other node 50b or the gateway device 20 or the like? Judging whether or not. The usefulness of the data frame is not determined based on the node ID.

所定処理部53a5は、ノード50aが備えるべき機能に従った所定の処理や、当該所定の処理後、送信IDテーブル53b2を参照して、処理後のデータフレームのデータ本体が他のノード50b等に送信する必要のあるものである場合には、当該データフレームをデータフレーム送信部53a3に渡す処理を行い得るものである。例えば、当該ノード50aがエンジン制御用のECUである場合には、所定のデータフレームのデータ本体から得られるスロットル開度情報等に基づいてインジェクタ(燃料噴射弁)に出力すべき燃料噴射量に関する制御情報を演算する処理を行った後、送信IDテーブル53b2を参照して当該インジェクタを制御し得るインジェクタ制御用のECUに送信すべきデータフレームをデータフレーム送信部53a3に渡す処理を行う。   The predetermined processing unit 53a5 refers to the predetermined process according to the function that the node 50a should have, or the transmission ID table 53b2 after the predetermined process, and the data body of the processed data frame is transferred to another node 50b or the like. If the data frame needs to be transmitted, the data frame can be transferred to the data frame transmission unit 53a3. For example, when the node 50a is an engine control ECU, control related to a fuel injection amount to be output to an injector (fuel injection valve) based on throttle opening information obtained from a data body of a predetermined data frame. After performing the process of calculating the information, the process of passing the data frame to be transmitted to the ECU for controlling the injector capable of controlling the injector with reference to the transmission ID table 53b2 is performed to the data frame transmitting unit 53a3.

なお、このようにデータフレーム受信部53a2によりインターフェイス部57の受信バッファから取り出されたデータフレームがデータID参照部53a4を経て所定処理部53a5に渡され、所定処理部53a5による所定処理の後、データフレーム送信部53a3に渡される流れは、図3(B) において白抜き矢印によって表されている。また、データID参照部53a4による、受信IDテーブル53b1に格納された受信データIDの参照や、所定処理部53a5による、送信IDテーブル53b2に格納された送信データIDの参照は、図3(B) において両矢印により表されている。   In this way, the data frame taken out from the reception buffer of the interface unit 57 by the data frame receiving unit 53a2 is passed to the predetermined processing unit 53a5 through the data ID reference unit 53a4, and after the predetermined processing by the predetermined processing unit 53a5, the data The flow passed to the frame transmission unit 53a3 is represented by a white arrow in FIG. Further, referring to the reception data ID stored in the reception ID table 53b1 by the data ID reference unit 53a4 and the reference to the transmission data ID stored in the transmission ID table 53b2 by the predetermined processing unit 53a5 are shown in FIG. Is represented by a double arrow.

受信ID生成部53a6は、ゲートウェイ装置20の問い合わせに応じて、当該ノード50aが受信すべきデータフレームの受信データIDを受信IDテーブル53b1を参照し、当該受信データIDを含んだデータフレームを生成する処理を行い得るもので、生成されたデータフレームをデータフレーム送信部53a3に渡す。なお、ゲートウェイ装置20に送信する当該受信データIDが複数存在する場合には、これらを一度に送信可能にデータ本体に複数の当該受信データIDを設定してデータフレームを構成しても良いし、また1回の送信で1つの受信データIDを送る構成をとり、複数回に分けてデータフレームを送信しても良い。この受信ID生成部53a6は、特許請求の範囲に記載の「受信種別情報生成手段」に相当し得るものである。なお、この受信ID生成部53a6による受信IDの生成処理については、図11等を参照しながら後述する。   In response to the inquiry from the gateway device 20, the reception ID generation unit 53a6 refers to the reception ID table 53b1 for the reception data ID of the data frame to be received by the node 50a, and generates a data frame including the reception data ID. The generated data frame is transferred to the data frame transmission unit 53a3. In addition, when there are a plurality of reception data IDs to be transmitted to the gateway device 20, a plurality of the reception data IDs may be set in the data body so that these can be transmitted at once, and a data frame may be configured. In addition, a configuration may be adopted in which one received data ID is sent in one transmission, and the data frame is transmitted in multiple times. The reception ID generation unit 53a6 may correspond to “reception type information generation means” described in the claims. The reception ID generation processing by the reception ID generation unit 53a6 will be described later with reference to FIG.

送信ID生成部53a7も、ゲートウェイ装置20の問い合わせに応じて、当該ノード50aが送信すべきデータフレームの送信データIDを送信IDテーブル53b2を参照し、当該送信データIDを含んだデータフレームを生成する処理を行い得るもので、生成されたデータフレームをデータフレーム送信部53a3に渡す。なお、ゲートウェイ装置20に送信する当該送信データIDが複数存在する場合には、受信ID生成部53a6の場合と同様に、一度に送信可能に構成したり、複数回に分けてデータフレームを送信しても良い。この送信ID生成部53a7は、特許請求の範囲に記載の「送信種別情報生成手段」に相当し得るものである。なお、この送信ID生成部53a7による送信IDの生成処理については、図12等を参照しながら後述する。   The transmission ID generation unit 53a7 also generates a data frame including the transmission data ID by referring to the transmission ID table 53b2 for the transmission data ID of the data frame to be transmitted by the node 50a in response to the inquiry from the gateway device 20. The generated data frame is transferred to the data frame transmission unit 53a3. In addition, when there are a plurality of transmission data IDs to be transmitted to the gateway device 20, as in the case of the reception ID generation unit 53a6, it can be configured to transmit at one time, or a data frame is transmitted in multiple times. May be. The transmission ID generation unit 53a7 can correspond to “transmission type information generation means” described in the claims. The transmission ID generation process by the transmission ID generation unit 53a7 will be described later with reference to FIG.

受信IDテーブル53b1は、メモリ53の送受信IDテーブル領域53bに構成される記憶領域で、当該ノード50aが受信すべきデータフレームの受信データIDを格納している。このテーブルは、データID参照部53a4や受信ID生成部53a6に参照され得るものである。   The reception ID table 53b1 is a storage area configured in the transmission / reception ID table area 53b of the memory 53, and stores a reception data ID of a data frame to be received by the node 50a. This table can be referred to by the data ID reference unit 53a4 and the reception ID generation unit 53a6.

送信IDテーブル53b2も、受信IDテーブル53b1と同様に、メモリ53の送受信IDテーブル領域53bに構成される記憶領域で、当該ノード50aが送信すべきデータフレームの送信データIDを格納している。このテーブルは、所定処理部53a5や送信ID生成部53a7に参照され得るものである。   Similarly to the reception ID table 53b1, the transmission ID table 53b2 is a storage area configured in the transmission / reception ID table area 53b of the memory 53, and stores the transmission data ID of the data frame to be transmitted by the node 50a. This table can be referred to by the predetermined processing unit 53a5 and the transmission ID generation unit 53a7.

なお、ゲートウェイ装置20の中継先テーブル生成部23a5から送られてくる受信データIDや送信データIDの問合せ伝達は、図3(B) において点線矢印によって表されており、またこれらの問い合わせに従った受信ID生成部53a6による受信IDテーブル53b1の参照や送信ID生成部53a7による送信IDテーブル53b2の参照は、図3(B) において両矢印により表されている。さらに受信ID生成部53a6や送信ID生成部53a7により生成されるデータフレームの流れは、図3(B) において斜線塗り矢印によって表されている。   The inquiry transmission of the received data ID and the transmitted data ID sent from the relay destination table generating unit 23a5 of the gateway device 20 is represented by a dotted arrow in FIG. The reference of the reception ID table 53b1 by the reception ID generation unit 53a6 and the reference of the transmission ID table 53b2 by the transmission ID generation unit 53a7 are represented by double arrows in FIG. Furthermore, the flow of data frames generated by the reception ID generation unit 53a6 and the transmission ID generation unit 53a7 is represented by hatched arrows in FIG.

ここで、これら各通信プロトコルのフレームフォーマットについて、図4を参照して説明する。なお、図4(A) にはCANプロトコル、図4(B) にはJ1850プロトコル、図4(C) にはBEANプロトコル、図4(D) にはIE−BUSプロトコル、図4(E) にはISO9141プロトコル、によるそれぞれのフレームフォーマットが示されている。   Here, the frame format of each of these communication protocols will be described with reference to FIG. 4A is the CAN protocol, FIG. 4B is the J1850 protocol, FIG. 4C is the BEAN protocol, FIG. 4D is the IE-BUS protocol, and FIG. Each frame format according to ISO 9141 protocol is shown.

図4(A) に示すように、CANプロトコルによるフレームフォーマットでは、フレームの始まりを示すSOF(Start Of Flame)領域からCNT(Control)領域までの範囲が「ヘッダ」であり、そのうちのID領域に、データ領域に格納されるデータ本体の種類が含まれている。つまり、CANプロトコルではこのID領域が受信データIDや送信データID(データ識別子)に相当する。   As shown in FIG. 4 (A), in the frame format according to the CAN protocol, the range from the SOF (Start Of Flame) area indicating the start of the frame to the CNT (Control) area is a “header”, and the ID area thereof includes The type of data body stored in the data area is included. That is, in the CAN protocol, this ID area corresponds to a reception data ID or a transmission data ID (data identifier).

図4(B) に示すように、J1850プロトコルによるフレームフォーマットでは、フレームの始まりを示すSOF領域の後に位置するヘッダ領域に、データ領域に格納されるデータ本体の種類が含まれている。つまり、J1850プロトコルでは、このヘッダ領域が受信データIDや送信データID(データ識別子)に相当する。   As shown in FIG. 4B, in the frame format according to the J1850 protocol, the type of the data body stored in the data area is included in the header area located after the SOF area indicating the start of the frame. That is, in the J1850 protocol, this header area corresponds to a reception data ID or a transmission data ID (data identifier).

図4(C) に示すように、BEANプロトコルによるフレームフォーマットでは、フレームの始まりを示すSOF領域からメッセージID領域までの範囲が「ヘッダ」であり、そのうちのメッセージID領域に、データ領域に格納されるデータ本体の種類が含まれている。つまり、BEANプロトコルでは、このメッセージID領域が受信データIDや送信データID(データ識別子)に相当する。   As shown in FIG. 4C, in the frame format according to the BEAN protocol, the range from the SOF area indicating the start of the frame to the message ID area is a “header”, and the message ID area is stored in the data area. Type of data body to be included. That is, in the BEAN protocol, this message ID area corresponds to a reception data ID or a transmission data ID (data identifier).

図4(D) に示すように、IE−BUSプロトコルによるフレームフォーマットでは、送信元物理アドレス領域からOPC(OperationCode)領域までの範囲が「ヘッダ」であり、そのうちのOPC領域に、データ領域に格納されるデータ本体の種類が含まれている。つまり、IE−BUSプロトコルでは、このOPC領域が受信データIDや送信データID(データ識別子)に相当する。   As shown in FIG. 4D, in the frame format according to the IE-BUS protocol, the range from the source physical address area to the OPC (OperationCode) area is a “header”, and stored in the data area in the OPC area. The type of data body to be included. That is, in the IE-BUS protocol, this OPC area corresponds to a reception data ID or a transmission data ID (data identifier).

図4(E) に示すように、ISO9141プロトコルによるフレームフォーマットでは、FB(FormatByte)領域からPID領域までの範囲が「ヘッダ」であり、そのうちの宛先アドレス領域とPID領域に、データ領域に格納されるデータ本体の種類が含まれている。つまり、ISO9141プロトコルでは、この宛先アドレス領域およびPID領域が受信データIDや送信データID(データ識別子)に相当する。   As shown in FIG. 4 (E), in the frame format according to the ISO 9141 protocol, the range from the FB (Format Byte) area to the PID area is a “header” and is stored in the data area in the destination address area and the PID area. Type of data body to be included. That is, in the ISO 9141 protocol, the destination address area and the PID area correspond to a reception data ID and a transmission data ID (data identifier).

なお、これらのプロトコルのフレームフォーマットは、特許請求の範囲に記載の「データフレーム」に相当し得るもので、またデータ領域は、特許請求の範囲に記載の「データ本体」に相当し得るものである。   The frame format of these protocols can correspond to the “data frame” described in the claims, and the data area can correspond to the “data body” described in the claims. is there.

次に、このようなデータフレームに含まれる受信データID、送信データIDについて図5〜図8を参照して説明する。なお、図5は、図1に示すネットワーク構成からネットワークNW-1、NW-nの部分を抜粋したもので、ネットワークNW-2、NW-3については割愛されている。   Next, reception data ID and transmission data ID included in such a data frame will be described with reference to FIGS. FIG. 5 shows the network NW-1 and NW-n extracted from the network configuration shown in FIG. 1, and the networks NW-2 and NW-3 are omitted.

図5および図6(A) に示すように、まずノード50aから送信されるデータフレームの送信データIDとして、「MsgA_GW」、「MsgA_B」、「MsgA_C」を想定する。これに対し、ノード50aが受信するフレームの受信データIDとして「MsgGW_A」を想定する。なお、「Msg○_□」の表記は、○印から□印に向かって送信されるデータフレームのデータIDである旨を示しているが、受信データIDや送信データIDとしてこのような表記によるものが必要となることを示しているのではなく、単なるデータIDの例示であることに留意されたい。   As shown in FIG. 5 and FIG. 6A, first, “MsgA_GW”, “MsgA_B”, and “MsgA_C” are assumed as transmission data IDs of data frames transmitted from the node 50a. On the other hand, “MsgGW_A” is assumed as the reception data ID of the frame received by the node 50a. The notation “Msg ○ _ □” indicates that the data ID is the data ID of the data frame transmitted from the ○ mark to the □ mark. Note that this is not an illustration of what is needed, but merely an example of a data ID.

同様に、図6(B) に示すように、ノード50bから送信されるデータフレームの送信データIDとして、「MsgB_A」、「MsgB_GW」、「MsgB_C」を想定する。これに対し、ノード50bが受信するフレームの受信データIDとして「MsgGW_B」を想定する。ノード50cについても同様に、図6(C) に示すように、ノード50cから送信されるデータフレームの送信データIDとして、「MsgC_A」、「MsgC_B」、「MsgC_GW」を想定する。これに対し、ノード50cが受信するフレームの受信データIDとして「MsgGW_C」を想定する。   Similarly, as shown in FIG. 6B, “MsgB_A”, “MsgB_GW”, and “MsgB_C” are assumed as the transmission data IDs of the data frames transmitted from the node 50b. On the other hand, “MsgGW_B” is assumed as the reception data ID of the frame received by the node 50b. Similarly for the node 50c, as shown in FIG. 6C, “MsgC_A”, “MsgC_B”, and “MsgC_GW” are assumed as the transmission data IDs of the data frames transmitted from the node 50c. On the other hand, “MsgGW_C” is assumed as the reception data ID of the frame received by the node 50c.

すると、これらノード50a、50b、50cが接続されたバスbus-1に関する受信データIDは、バスbus-1に接続された全ノード50a、50b、50cの受信すべき受信データIDとなる。即ち、図5および図6に示す想定例では、バスbus-1に接続された全ノードノード50a、50b、50cに対して受信すべきデータフレームの受信データIDを図6の各表から抽出することによって、図7(A) に示すような表ができる。   Then, the reception data ID related to the bus bus-1 to which the nodes 50a, 50b, and 50c are connected becomes the reception data ID to be received by all the nodes 50a, 50b, and 50c connected to the bus bus-1. That is, in the assumption examples shown in FIGS. 5 and 6, the received data ID of the data frame to be received for all the node nodes 50a, 50b, and 50c connected to the bus bus-1 is extracted from each table of FIG. As a result, a table as shown in FIG.

つまり、図6(A) 〜図6(C) のなかから、受信ノードがノード50aであるものを選択することによって、図7(A) の「ノード50aが受信すべきデータID」の欄に示す表ができる。同様に図6から、受信ノードがノード50bであるものを選択することによって、図7(A) の「ノード50bが受信すべきデータID」の欄に示す表ができる。さらに同様に図6から、受信ノードがノード50cであるものを選択することによって、図7(A) の「ノード50cが受信すべきデータID」の欄に示す表ができる。   That is, by selecting the receiving node that is the node 50a from FIG. 6 (A) to FIG. 6 (C), the “data ID to be received by the node 50a” column in FIG. A table can be shown. Similarly, from FIG. 6, by selecting a node whose receiving node is the node 50b, a table shown in the column of “Data ID to be received by the node 50b” in FIG. Similarly, from FIG. 6, by selecting a node whose receiving node is the node 50c, a table shown in the column of “data ID to be received by the node 50c” in FIG.

これにより、図5および図6に示す想定例の場合、ゲートウェイ装置20の中継先テーブル23b1として、バスbus-1に対応するバスメモリ1には、ノード50aが受信すべきデータIDとして、「MsgGW_A」,「MsgB_A」,「MsgC_A」の3種類の受信データIDが登録され、またノード50bが受信すべきデータIDとして、「MsgA_B」,「MsgGW_B」,「MsgC_B」の3種類の受信データIDが登録され、ノード50cが受信すべきデータIDとして、「MsgA_C」,「MsgB_C」,「MsgGW_C」の3種類の受信データIDが登録される。   As a result, in the case of the assumption example shown in FIGS. 5 and 6, “MsgGW_A” is used as the data ID to be received by the node 50 a in the bus memory 1 corresponding to the bus bus-1 as the relay destination table 23 b 1 of the gateway device 20. ”,“ MsgB_A ”, and“ MsgC_A ”are registered, and three types of received data IDs“ MsgA_B ”,“ MsgGW_B ”, and“ MsgC_B ”are received as data IDs to be received by the node 50b. Three types of received data IDs “MsgA_C”, “MsgB_C”, and “MsgGW_C” are registered as data IDs that are registered and should be received by the node 50c.

しかし、前述したように、ゲートウェイ装置20は、通信プロトコルの異なるネットワーク間に介在し、これらのネットワークの各ノード同士の通信を可能にするものである。そのため、図7(A) に示すように、例えば、ゲートウェイ装置20の中継先テーブル23b1に、ノード50aが受信すべきデータIDとして、「MsgGW_A」,「MsgB_A」,「MsgC_A」の3種類の受信データIDが登録されていても、実際には同一のネットワーク内のノード間でやりとりされる「MsgB_A」、「MsgC_A」についてはゲートウェイ装置20が関与する必要はない。本来、ゲートウェイ装置20が必要とする受信データIDは、一のネットワークを超えて他のネットワークに送信されるデータフレームのデータIDであるから、この場合、「MsgGW_A」,「MsgB_A」,「MsgC_A」の受信データIDのうち、「MsgGW_A」だけとなる。   However, as described above, the gateway device 20 is interposed between networks having different communication protocols, and enables communication between nodes of these networks. For this reason, as shown in FIG. 7A, for example, three types of reception of “MsgGW_A”, “MsgB_A”, and “MsgC_A” are received as data IDs to be received by the node 50a in the relay destination table 23b1 of the gateway device 20. Even if the data ID is registered, the gateway device 20 does not need to be involved in “MsgB_A” and “MsgC_A” that are actually exchanged between nodes in the same network. Originally, the received data ID required by the gateway device 20 is the data ID of a data frame transmitted to another network beyond one network. In this case, “MsgGW_A”, “MsgB_A”, “MsgC_A” Among the received data IDs, only “MsgGW_A”.

つまり、図8に示すように、受信すべきデータIDから送信すべきデータIDを除いたものがゲートウェイ装置20に必要な受信データIDである。図5および図6に示す想定例の場合、図7(B) に示すように、ノード50a、50b、50cがそれぞれ送信すべきデータIDを取得することで、本来必要となる受信データIDを求めることができる。   That is, as shown in FIG. 8, the reception data ID necessary for the gateway device 20 is obtained by subtracting the data ID to be transmitted from the data ID to be received. In the case of the assumption example shown in FIGS. 5 and 6, as shown in FIG. 7B, the node 50a, 50b, 50c obtains the data ID to be transmitted, thereby obtaining the originally required reception data ID. be able to.

例えば、ノード50aについては、図7(A) に示すように、受信すべきデータIDが「MsgGW_A」,「MsgB_A」,「MsgC_A」であるのに対し、これらデータIDには、ノード50bが送信すべきデータIDの「MsgB_A」と、ノード50cが送信すべきデータIDの「MsgC_A」とが含まれている。そのため、この2つのデータIDに関する通信は、同一のネットワークNW-1内で閉じたものであるので、ゲートウェイ装置20が関与する必要のない。したがって、この2つのデータID「MsgB_A」、「MsgC_A」は除外してもゲートウェイ装置20の中継判断に影響を与えることはないことから、ノード50aが受信すべきデータIDは、「MsgGW_A」だけになることがわかる。同様に、ノード50bやノード50cについても本来必要な受信データIDを求めることができ、その結果が図7(C) に示されいる(不要な受信データIDは二重線で消してある)。   For example, for the node 50a, as shown in FIG. 7A, the data IDs to be received are “MsgGW_A”, “MsgB_A”, and “MsgC_A”, whereas the node 50b transmits these data IDs. The data ID “MsgB_A” to be transmitted and the data ID “MsgC_A” to be transmitted by the node 50c are included. For this reason, the communication related to the two data IDs is closed in the same network NW-1, and therefore the gateway device 20 does not need to be involved. Therefore, even if these two data IDs “MsgB_A” and “MsgC_A” are excluded, the relay determination of the gateway device 20 is not affected. Therefore, the data ID to be received by the node 50a is only “MsgGW_A”. I understand that Similarly, the originally required reception data ID can be obtained for the node 50b and the node 50c, and the result is shown in FIG. 7C (the unnecessary reception data ID is erased with a double line).

このように、ゲートウェイ装置20では、ノード50a等の送信ID生成部53a7により生成されて送信されてくる送信データIDを受信データIDに加えて取得することにより、同一のネットワークに接続される端末装置同士で相互に送受信されるデータフレームを認識することができるので、このようなデータ中継装置20では中継する必要のないデータフレームを除いて中継を行う中継先決定手段23b1を生成することができる。これによって、中継先決定手段23b1の構成を簡素にできる。   As described above, the gateway device 20 obtains the transmission data ID generated and transmitted by the transmission ID generation unit 53a7 such as the node 50a in addition to the reception data ID, thereby connecting to the same network. Since data frames transmitted and received between each other can be recognized, the data relay device 20 can generate the relay destination determination unit 23b1 that relays data frames that do not need to be relayed. As a result, the configuration of the relay destination determination unit 23b1 can be simplified.

なお、このような送信データIDの問い合わせは、前述した受信データIDの問い合わせと同様に、例えば、ゲートウェイ装置20から送信されるデータフレームがネットワークNW-1等に接続されているノード50a等すべてを対象として有用であることを通知するブローキャストにより行っても良い。これにより、このような問い合わせを端末装置50a等に対して個々に送信する場合(ユニキャスト)に比べてゲートウェイ装置20からノード50a等に対する送信回数を1/n(nはノード数)に減少させることができるので、短時間に送信データIDを受信することができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置20の設定作業時間を短縮できる(請求項5、6に実質的に対応)。   Note that such an inquiry about the transmission data ID is similar to the above-described inquiry about the reception data ID, for example, all the nodes 50a etc. in which the data frame transmitted from the gateway device 20 is connected to the network NW-1, etc. You may perform by the broadcast which notifies that it is useful as object. As a result, the number of transmissions from the gateway device 20 to the node 50a etc. is reduced to 1 / n (n is the number of nodes) compared to the case where such an inquiry is individually sent to the terminal device 50a etc. (unicast). Therefore, the transmission data ID can be received in a short time. Accordingly, since the network construction process can be performed at high speed, it is possible to reduce the setting work time of the data relay device 20 relating to the network configuration (substantially corresponding to claims 5 and 6).

次に、ゲートウェイ装置20のCPU21により実行される中継先テーブル生成部23a5による処理の流れを、図1、図9および図10を参照して説明する。なお、この中継先テーブル生成部23a5の処理(中継先テーブル生成処理)は、ゲートウェイ装置20のメモリ23に格納される所定の制御プログラムをCPU21により実行することにより実現される。   Next, the flow of processing by the relay destination table generation unit 23a5 executed by the CPU 21 of the gateway device 20 will be described with reference to FIGS. 1, 9, and 10. FIG. The processing of the relay destination table generation unit 23a5 (relay destination table generation processing) is realized by the CPU 21 executing a predetermined control program stored in the memory 23 of the gateway device 20.

図9に示すように、中継先テーブル生成部23a5による処理では、まずステップS101により、受信データIDを問い合わせるべきバス、つまり問い合わせバスを選択する処理が行われる。例えば、中継先テーブル領域23bの中継先テーブル23b1を参照し、バスメモリ1〜nのうち、当該バスに対応した受信データIDが生成されていないものを問い合わせバスとして選択する。この問い合わせバスの選択は、複数であっても良い。ここでは、図1に示すバスbus-1(ネットワークNW-1)を問い合わせバスとして選択したこととする。   As shown in FIG. 9, in the process by the relay destination table generation unit 23a5, first, in step S101, a process of selecting a bus to be inquired about the received data ID, that is, an inquiry bus is performed. For example, referring to the relay destination table 23b1 in the relay destination table area 23b, the bus memory 1 to n for which the reception data ID corresponding to the bus is not generated is selected as the inquiry bus. A plurality of inquiry buses may be selected. Here, it is assumed that the bus bus-1 (network NW-1) shown in FIG. 1 is selected as the inquiry bus.

続くステップS103では、当該問い合わせバスに接続された全てのノードに対して受信データIDを問い合わせる処理が行われる。例えば、先の例では、問い合わせバスとして選択されたネットワークNW-1に接続される全てのノード50a、ノード50b、ノード50cに対して当該ノードが受信すべき受信データIDを応えさせる。ここでは、図7(A) に示すように、ノード50aが受信すべきデータIDとして、「MsgGW_A」,「MsgB_A」,「MsgC_A」の3種類の受信データIDがゲートウェイ装置20に送信される。   In the subsequent step S103, processing for inquiring received data IDs from all nodes connected to the inquiry bus is performed. For example, in the previous example, all nodes 50a, 50b, and 50c connected to the network NW-1 selected as the inquiry bus are made to respond to the received data ID that the node should receive. Here, as shown in FIG. 7A, three types of received data IDs “MsgGW_A”, “MsgB_A”, and “MsgC_A” are transmitted to the gateway device 20 as data IDs to be received by the node 50a.

次のステップS105では、受信データIDを取得する処理が行われる。これにより、ステップS101によりノード50a等から送信されてきたデータフレームを受信すると、当該データフレームから受信データIDを抽出する。ここでは、ノード50aが送信したデータフレームには、3種類の受信データID「MsgGW_A」,「MsgB_A」,「MsgC_A」が含まれており、それらは当該ステップS105により取得される。   In the next step S105, a process for obtaining the received data ID is performed. Thus, when the data frame transmitted from the node 50a or the like is received in step S101, the received data ID is extracted from the data frame. Here, the data frame transmitted by the node 50a includes three types of received data IDs “MsgGW_A”, “MsgB_A”, and “MsgC_A”, which are acquired in step S105.

続くステップS107では、中継先テーブル23b1を生成する処理が行われる。この処理では、例えば、ステップS105により取得した受信データIDを中継先テーブル23b1のバスメモリに格納することにより中継先テーブル23b1を生成する。ここでは、ステップS105により3種類の受信データID「MsgGW_A」,「MsgB_A」,「MsgC_A」が取得されているので、受信データIDを中継先テーブル23b1のバスメモリ1に格納(登録)する。   In the subsequent step S107, processing for generating the relay destination table 23b1 is performed. In this process, for example, the relay destination table 23b1 is generated by storing the received data ID acquired in step S105 in the bus memory of the relay destination table 23b1. Here, since three types of received data IDs “MsgGW_A”, “MsgB_A”, and “MsgC_A” have been acquired in step S105, the received data IDs are stored (registered) in the bus memory 1 of the relay destination table 23b1.

ステップS109では、タイムアウト時間が経過しているか否かを判断する処理が行われる。この判断処理により、所定のタイムアウト時間の経過前であれば(S109:No)、ステップS105に処理を移行して同一のバスbus-1(ネットワークNW-1)に接続される他のノード50b等から送信され得る受信データIDの取得を試み、ステップS107等の処理を前述と同様に行う。   In step S109, processing for determining whether or not the timeout time has elapsed is performed. If it is determined that the predetermined time-out period has not elapsed (S109: No), the process proceeds to step S105, and another node 50b connected to the same bus bus-1 (network NW-1) or the like. An attempt is made to acquire a received data ID that can be transmitted from the terminal, and the processing in step S107 and the like is performed in the same manner as described above.

一方、所定のタイムアウト時間の経過した後であれば(S109:Yes)、続くステップS111に処理を移行して全てのバスbus-1〜bus-nについて受信データIDの取得が完了したか否かの判断処理を行う。そして、まだ受信データIDの取得が完了していない場合には(S111:No)、ステップS101に処理を移行して、問い合わせバスを選択する処理を行い、ステップS103等の処理を前述したように行う。   On the other hand, if the predetermined time-out period has elapsed (S109: Yes), the process proceeds to the subsequent step S111, and whether or not the acquisition of the reception data ID for all the buses bus-1 to bus-n has been completed. The determination process is performed. If the acquisition of the received data ID has not been completed (S111: No), the process proceeds to step S101, the process of selecting the inquiry bus is performed, and the process of step S103 and the like is performed as described above. Do.

ステップS111により、受信データIDの取得が完了していると判断した場合には(S111:Yes)、中継先テーブル23b1の生成が完了したことになるので、上述した中継先テーブル生成部23a5による一連の処理を終了する。   If it is determined in step S111 that acquisition of the received data ID has been completed (S111: Yes), generation of the relay destination table 23b1 has been completed. Terminate the process.

このように中継先テーブル生成部23a5による処理(中継先テーブル生成処理)では、中継フレーム受信部23a2により受信された受信データIDに基づいて中継先テーブル23b1を生成するので、ノード50a等から送信される情報で、当該ノード50a等が受信すべきデータフレームに含まれるデータ本体の種類に関する受信データIDを受信することで、中継先テーブル23b1を適宜生成することが可能となる。これにより、中継先テーブル23b1を生成するために必要となる当該受信データIDを人手に頼ることなく、中継フレーム受信部23a2により受信し、自ら学習(中継先テーブル23b1を生成)するので、ネットワークの構築を容易にできる。したがって、中継先テーブル23b1を記憶したメモリ23の書込作業や交換作業の発生を防ぐので、ネットワーク構成に関するゲートウェイ装置20の設定作業の負担を軽減することができる(請求項1に実質的に対応)。   In this way, in the processing (relay destination table generation processing) by the relay destination table generation unit 23a5, the relay destination table 23b1 is generated based on the received data ID received by the relay frame reception unit 23a2, so that it is transmitted from the node 50a or the like. By receiving the received data ID related to the type of the data body included in the data frame to be received by the node 50a or the like, the relay destination table 23b1 can be appropriately generated. As a result, the reception data ID necessary for generating the relay destination table 23b1 is received by the relay frame receiving unit 23a2 and learned by itself (generates the relay destination table 23b1) without relying on humans. Easy to build. Therefore, since the writing work and the exchange work of the memory 23 storing the relay destination table 23b1 are prevented, the burden of the setting work of the gateway device 20 relating to the network configuration can be reduced (corresponding substantially to claim 1). ).

なお、ステップS101より後でステップS109よりも前の処理、つまりステップS103、S105、S107を、図10に示すように、ステップS103’、S105’、S106’、S107’に変更することにより、受信データIDに加えて送信データIDも取得し、これらのIDに基づいて中継先テーブル生成部23a5を生成しても良い。   Note that the processing after step S101 and before step S109, that is, steps S103, S105, and S107, is changed to steps S103 ′, S105 ′, S106 ′, and S107 ′ as shown in FIG. The transmission data ID may be acquired in addition to the data ID, and the relay destination table generation unit 23a5 may be generated based on these IDs.

即ち、図10に示すように、ステップS103’により、問い合わせバスに接続された全てのノードに対して受信データIDおよび送信データIDを問い合わせる処理が行われた後、ステップS105’により、受信データIDおよび送信データIDを取得して、さらにステップS106’により、受信データIDを選択する処理が行われる。   That is, as shown in FIG. 10, after the process of inquiring the reception data ID and the transmission data ID for all nodes connected to the inquiry bus is performed in step S103 ′, the reception data ID is acquired in step S105 ′. Then, the transmission data ID is acquired, and the process of selecting the reception data ID is further performed in step S106 ′.

このステップS106’による受信データIDの選択は、図7および図8を参照して説明したように、受信すべきデータID(受信データID)から送信すべきデータID(送信データID)を除くことによって、ゲートウェイ装置20に必要な受信データIDを求めるものである。   As described with reference to FIG. 7 and FIG. 8, the selection of the reception data ID in step S106 ′ excludes the data ID (transmission data ID) to be transmitted from the data ID (reception data ID) to be received. Thus, the reception data ID necessary for the gateway device 20 is obtained.

続くステップS107’では、中継先テーブル23b1を生成する処理が行われる。ここでは、例えば、ステップS106’により選択された受信データIDを中継先テーブル23b1のバスメモリに格納することにより中継先テーブル23b1を生成する。この処理は、格納の対象が「選択された受信データID」であること以外は、図9に示すステップS107と同様である。   In the subsequent step S107 ', processing for generating the relay destination table 23b1 is performed. Here, for example, the relay destination table 23b1 is generated by storing the received data ID selected in step S106 'in the bus memory of the relay destination table 23b1. This process is the same as step S107 shown in FIG. 9 except that the storage target is “selected received data ID”.

このように図10に示す中継先テーブル生成処理によると、受信データIDに加えて、送信データIDにも基づいて中継先テーブル23b1を生成する。これにより、当該ネットワークNW-1に接続されるノード50a等間、つまり同一のネットワークに接続されるノード50a等同士で相互に送受信されるデータフレームを認識することができるので、このようなゲートウェイ装置20では中継する必要のないデータフレームを除いて中継を行う中継先テーブル23b1を生成することができる。これによって、中継先テーブル23b1の構成を簡素にできるので、例えば、中継先テーブル23b1による中継先の決定処理速度を速くすることができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するゲートウェイ装置20の設定作業時間を短縮できる(請求項4に実質的に対応)。   As described above, according to the relay destination table generation process shown in FIG. 10, the relay destination table 23b1 is generated based on the transmission data ID in addition to the reception data ID. As a result, it is possible to recognize data frames transmitted and received between the nodes 50a and the like connected to the network NW-1, that is, between the nodes 50a and the like connected to the same network. At 20, it is possible to generate a relay destination table 23b1 that relays data frames that do not need to be relayed. As a result, the configuration of the relay destination table 23b1 can be simplified. For example, the relay destination determination processing speed by the relay destination table 23b1 can be increased. Therefore, since the network construction process can be performed at high speed, the setting work time of the gateway device 20 related to the network configuration can be shortened (corresponding substantially to claim 4).

続いて、ノード50a等のCPU51により実行される受信ID生成部53a6の処理(受信ID生成処理)の流れや、ノード50a等のCPU51により実行される送信ID生成部53a7の処理(送信ID生成処理)の流れを図11、図12を参照して説明する。なお、受信ID生成処理および送信ID生成処理は、ノード50a等のメモリ53に格納される所定の制御プログラムをCPU51により実行することにより実現されるもので、いずれのノード50a等においても同様に実行されるので、ここではノード50aによる処理を代表して説明する。   Subsequently, the process of the reception ID generation unit 53a6 (reception ID generation process) executed by the CPU 51 such as the node 50a, or the process of the transmission ID generation unit 53a7 executed by the CPU 51 such as the node 50a (transmission ID generation process) ) Will be described with reference to FIGS. The reception ID generation process and the transmission ID generation process are realized by the CPU 51 executing a predetermined control program stored in the memory 53 such as the node 50a, and are similarly executed in any node 50a. Therefore, here, the processing by the node 50a will be described as a representative.

図11に示すように、ノード50aの受信ID生成部53a6では、まずステップS301によりゲートウェイ装置20により受信データIDの問い合わせ(図3(B) に示す点線矢印)があるか否かの判断処理が行われる。そして、受信データIDの問い合わせがある場合には(S301:Yes)、続くステップS303により受信データIDの取得処理が行われる。一方、受信データIDの問い合わせがない場合には(S301:No)、受信データIDをゲートウェイ装置20に送信する必要がないので、受信ID生成部53a6による一連の処理を終了する。   As shown in FIG. 11, the reception ID generation unit 53a6 of the node 50a first determines whether or not there is a reception data ID inquiry (dotted arrow shown in FIG. 3B) by the gateway device 20 in step S301. Done. If there is an inquiry about the received data ID (S301: Yes), a received data ID acquisition process is performed in the subsequent step S303. On the other hand, when there is no inquiry about the received data ID (S301: No), it is not necessary to transmit the received data ID to the gateway device 20, and the series of processing by the received ID generating unit 53a6 is terminated.

ステップS303では、受信データIDの取得処理が行われる。受信IDテーブル53b1には、当該ノード50aが受信すべきデータフレームの受信データIDが格納されているので、この受信IDテーブル53b1を参照することで、ゲートウェイ装置20の問い合わせに対応する受信データIDを取得する。   In step S303, reception data ID acquisition processing is performed. Since the reception ID table 53b1 stores the reception data ID of the data frame to be received by the node 50a, the reception data ID corresponding to the inquiry of the gateway device 20 can be obtained by referring to the reception ID table 53b1. get.

続くステップS305では、ステップS303により取得した受信データIDを所定のデータフレームに組み立ててデータフレーム送信部53a3によりゲートウェイ装置20に送信する処理が行われる。なお、ゲートウェイ装置20に送信すべき受信データIDが複数存在する場合には、前述したように、一度にまとめて送信したり、個々に分けて送信する。これにより、ゲートウェイ装置20への送信が完了するので、上述した受信ID生成部53a6による一連の処理を終了する。   In the subsequent step S305, a process of assembling the reception data ID acquired in step S303 into a predetermined data frame and transmitting it to the gateway device 20 by the data frame transmission unit 53a3 is performed. When there are a plurality of reception data IDs to be transmitted to the gateway device 20, as described above, they are transmitted all at once or transmitted separately. Thereby, since transmission to the gateway device 20 is completed, a series of processes by the reception ID generation unit 53a6 described above is terminated.

このように受信ID生成部53a6による処理(受信ID生成処理)では、ノード50a等(自ら)が受信すべきデータフレームのデータ本体の種類に関する受信データIDを生成し、それをデータフレーム送信部53a3によりをネットワークNW-1等に送信する。またこの送信は、ネットワークNW-1等に接続されたゲートウェイ装置20の要求に応じて行われる。これにより、ネットワークNW-1等に接続されたゲートウェイ装置20は、必要に応じて当該ノード50a等の受信データIDを受信することができるので、当該ゲートウェイ装置20では、前述したように、中継先テーブル23b1を生成するために必要となる当該受信データIDを人手に頼ることなく、中継フレーム受信部23a2により受信し、自ら学習(中継先テーブル23b1を生成)するので、ネットワークNW-1等の構築を容易にできる。したがって、中継先テーブル23b1を記憶したメモリ23の書込作業や交換作業の発生を防ぐので、ネットワーク構成に関するゲートウェイ装置20の設定作業の負担を軽減することができる(請求項11、12に実質的に対応)。   As described above, in the process (reception ID generation process) by the reception ID generation unit 53a6, the reception data ID related to the type of the data body of the data frame to be received by the node 50a or the like (self) is generated, and is generated as the data frame transmission unit 53a3. Is transmitted to the network NW-1 or the like. This transmission is performed in response to a request from the gateway device 20 connected to the network NW-1 or the like. As a result, the gateway device 20 connected to the network NW-1 or the like can receive the reception data ID of the node 50a or the like as necessary. Therefore, as described above, the gateway device 20 relays the relay destination. The reception data ID necessary for generating the table 23b1 is received by the relay frame reception unit 23a2 without relying on humans, and learning is performed (generation of the relay destination table 23b1). Can be easily done. Accordingly, since the writing work and the exchange work of the memory 23 storing the relay destination table 23b1 are prevented, the burden of the setting work of the gateway device 20 relating to the network configuration can be reduced (substantially in claims 11 and 12). Corresponding).

一方、送信ID生成部53a7による処理(送信ID生成処理)では、図11に示す各ステップ(S301、S303、S305)における受信データIDを送信データIDに置き換えた処理が行われる。即ち、ステップS301では、ゲートウェイ装置20より送信データIDの問い合わせがあるか否かを判断し、ステップS303では、送信データIDの取得を行い、その取得した送信データIDをステップS305によりゲートウェイ装置20へ送信する。なお、送信データIDの取得においては(S303)、受信IDテーブル53b1とほぼ同様に、当該ノード50aが送信すべきデータフレームの送信データIDが格納されている送信IDテーブル53b2を参照することで、ゲートウェイ装置20の問い合わせに対応する送信データIDを取得する。   On the other hand, in the processing (transmission ID generation processing) by the transmission ID generation unit 53a7, processing is performed in which the reception data ID in each step (S301, S303, S305) shown in FIG. 11 is replaced with the transmission data ID. That is, in step S301, it is determined whether or not there is an inquiry about the transmission data ID from the gateway device 20. In step S303, the transmission data ID is acquired, and the acquired transmission data ID is transmitted to the gateway device 20 in step S305. Send. In acquiring the transmission data ID (S303), by referring to the transmission ID table 53b2 in which the transmission data ID of the data frame to be transmitted by the node 50a is stored, as in the reception ID table 53b1, The transmission data ID corresponding to the inquiry of the gateway device 20 is acquired.

このように送信ID生成部53a7による処理(送信ID生成処理)では、ノード50a等(自ら)が送信すべきデータフレームのデータ本体の種類に関する送信データIDを生成し、それをデータフレーム送信部53a3によりをネットワークNW-1等に送信する。またこの送信は、ネットワークNW-1等に接続されたゲートウェイ装置20の要求に応じて行われる。これにより、ネットワークNW-1等に接続されたゲートウェイ装置20は、必要に応じて当該ノード50a等の送信データIDを受信することができる。   Thus, in the process (transmission ID generation process) by the transmission ID generation unit 53a7, the transmission data ID related to the type of the data body of the data frame to be transmitted by the node 50a or the like (self) is generated, and is generated as the data frame transmission unit 53a3. Is transmitted to the network NW-1 or the like. This transmission is performed in response to a request from the gateway device 20 connected to the network NW-1 or the like. Thereby, the gateway apparatus 20 connected to the network NW-1 or the like can receive the transmission data ID of the node 50a or the like as necessary.

なお、図12に示すように、ステップS301’により受信データIDに加え送信データIDの問い合わせがゲートウェイ装置20からあるか否かを判断し、さらにステップS303により受信データIDを取得しそれをステップS305により受信データIDをゲートウェイ装置20に送信したのと同様に、ステップS304’により送信データIDを取得しそれをステップS306’によりゲートウェイ装置20に送信するように構成しても良い。   As shown in FIG. 12, it is determined in step S301 ′ whether there is an inquiry about the transmission data ID in addition to the reception data ID from the gateway device 20, and the reception data ID is acquired in step S303. As in the case where the reception data ID is transmitted to the gateway apparatus 20 by the above, the transmission data ID may be acquired by step S304 ′ and transmitted to the gateway apparatus 20 by step S306 ′.

即ち、ステップS304’では、受信IDテーブル53b1とほぼ同様に、送信IDテーブル53b2には、当該ノード50aが送信すべきデータフレームの送信データIDが格納されているので、この送信IDテーブル53b2を参照することで、ゲートウェイ装置20の問い合わせに対応する送信データIDを取得する。そして、ステップS306’では、ステップS305とほぼ同様に、ステップS304’により取得した送信データIDを所定のデータフレームに組み立ててデータフレーム送信部53a3によりゲートウェイ装置20に送信する。なお、ゲートウェイ装置20に送信すべき送信データIDが複数存在する場合にも、一度にまとめて送信したり、個々に分けて送信する。   That is, in step S304 ′, as in the reception ID table 53b1, the transmission ID table 53b2 stores the transmission data ID of the data frame to be transmitted by the node 50a. Refer to this transmission ID table 53b2. Thus, the transmission data ID corresponding to the inquiry of the gateway device 20 is acquired. In step S306 ', the transmission data ID acquired in step S304' is assembled into a predetermined data frame and transmitted to the gateway apparatus 20 by the data frame transmission unit 53a3 in substantially the same manner as in step S305. In addition, even when there are a plurality of transmission data IDs to be transmitted to the gateway device 20, the transmission data IDs are transmitted all at once or transmitted separately.

これにより、ゲートウェイ装置20から、受信データIDに加えて送信データIDの問い合わせがあってもそれに応えることができるので、ネットワークNW-1等に接続されたゲートウェイ装置20は、受信データIDおよび送信データIDも受信することができる。このため、当該ゲートウェイ装置20では、前述したように、当該ネットワークNW-1等に接続されるノード50a等]間、つまり同一のネットワークに接続されるノード50a等同士で相互に送受信されるデータフレームを認識することができるので、このようなゲートウェイ装置20では中継する必要のないデータフレームを除いて中継を行う中継先テーブル23b1を生成することができる。これによって、中継先テーブル23b1の構成を簡素にできるので、例えば、中継先テーブル23b1による中継先の決定処理速度を速くすることができる。したがって、ネットワークの構築処理を高速にできるので、ネットワーク構成に関するデータ中継装置の設定作業時間を短縮できる(請求項13、14に実質的に対応)。   As a result, even if there is an inquiry about the transmission data ID in addition to the reception data ID from the gateway device 20, it can respond to the inquiry, so that the gateway device 20 connected to the network NW-1 or the like can receive the reception data ID and the transmission data. An ID can also be received. Therefore, in the gateway device 20, as described above, data frames transmitted / received between the nodes 50a connected to the network NW-1 etc.], that is, between the nodes 50a connected to the same network, etc. Therefore, the gateway apparatus 20 can generate a relay destination table 23b1 that relays data frames that do not need to be relayed. As a result, the configuration of the relay destination table 23b1 can be simplified. For example, the relay destination determination processing speed by the relay destination table 23b1 can be increased. Therefore, since the network construction process can be performed at high speed, the setting work time of the data relay device relating to the network configuration can be shortened (substantially corresponding to claims 13 and 14).

続いて、ゲートウェイ装置20によるデータフレーム中継処理の流れを図13を参照して説明する。なお、このデータフレーム中継処理は、図2を参照して説明した中継フレーム受信部23a2、中継フレーム送信部23a3およびデータID参照部23a4に対応する所定の制御プログラムでゲートウェイ装置20のメモリ23に格納されるものをCPU21により実行することにより実現される。   Next, the flow of data frame relay processing by the gateway device 20 will be described with reference to FIG. This data frame relay process is stored in the memory 23 of the gateway device 20 with a predetermined control program corresponding to the relay frame receiving unit 23a2, the relay frame transmitting unit 23a3, and the data ID reference unit 23a4 described with reference to FIG. This is realized by executing what is executed by the CPU 21.

まず、データフレーム中継処理では、ステップS501によりデータフレームの受信処理が行われる。この処理は、中継フレーム受信部23a2により行われるもので、インターフェイス部57の受信バッファからデータフレームを適宜取り出すことにより行われる。なお、この受信バッファは、ゲートウェイ装置20に接続された複数のバスbus-1等に対応するバス1応インターフェイス部27a、バス2対応インターフェイス部27b、バス3対応インターフェイス部27c、…、バスn対応インターフェイス部27nごとに設けられているため、中継フレーム受信部23a2は取り出したデータフレームがどのバス(「送信元のバス番号」という)から受信したものであるかを認識している。   First, in the data frame relay process, a data frame reception process is performed in step S501. This process is performed by the relay frame receiving unit 23a2, and is performed by appropriately extracting a data frame from the reception buffer of the interface unit 57. The reception buffer corresponds to a bus 1 interface unit 27a, a bus 2 interface unit 27b, a bus 3 interface unit 27c,..., Bus n corresponding to a plurality of buses bus-1 connected to the gateway device 20. Since it is provided for each interface unit 27n, the relay frame receiving unit 23a2 recognizes from which bus (referred to as “source bus number”) the extracted data frame is received.

ステップS503では、中継先テーブル23b1のバスメモリに格納された受信データIDを参照する処理が行われる。この処理は、データID参照部23a4により行われるもので、受信したデータフレームから抽出した受信データIDを、中継先テーブル23b1のバスメモリ(バスメモリ番号1〜nのいずれか)に格納された受信データIDと比較して一致するか否かを確認する。そして一致する受信データIDが存在する場合には、一致フラグをセットしその旨を記憶する。   In step S503, processing for referring to the reception data ID stored in the bus memory of the relay destination table 23b1 is performed. This process is performed by the data ID reference unit 23a4, and the received data ID extracted from the received data frame is received in the bus memory (any one of the bus memory numbers 1 to n) of the relay destination table 23b1. Compare with the data ID to check whether they match. If there is a matching received data ID, the match flag is set and stored.

続くステップS505では、ステップS503により比較した中継先テーブル23b1の参照先のバスメモリ番号とデータフレームの送信元のバス番号とが一致しないか否かを判断する処理が行われる。そして、両バス番号とが一致しない場合には(S505:Yes)にはステップS507に処理を移行し、両バス番号とが一致する場合には(S505:No)にはステップS513に処理を移行する。   In the subsequent step S505, a process is performed to determine whether or not the reference destination bus memory number in the relay destination table 23b1 compared in step S503 and the data frame transmission source bus number do not match. If both bus numbers do not match (S505: Yes), the process proceeds to step S507. If both bus numbers match (S505: No), the process proceeds to step S513. To do.

例えば、ステップS503により比較した中継先テーブル23b1の参照先のバスメモリ番号(バスbus-3に対応するもの)が「3」であった場合、これと同じ番号のバス、つまりバスbus-3に当該データフレームを送信しても送信元のネットワークNW-3に戻されることになるので、ネットワークNW-3以外のネットワークNW-1等に転送したことにはならない。そのため、このステップS505では、データフレームの送信元のバス番号と中継先テーブル23b1の参照先のバスメモリ番号とが一致した場合(S505:No)には、当該中継先テーブル23b1の参照先のバスメモリ番号をデータフレームの転送先から除外する処理を行っている。これにより、バス番号k(k=1〜n)からデータフレームを受信した場合には、バス番号k=1のときはバス番号2〜n、バス番号k=nのときはバス番号1〜(n−1)、バス番号kがこれ以外のときには、バス番号1〜(k−1)およびバス番号(k+1)〜n、にそれぞれ転送する(S505:Yes)。   For example, when the reference bus memory number (corresponding to the bus bus-3) of the relay destination table 23b1 compared in step S503 is “3”, the bus of the same number, that is, the bus bus-3 is assigned. Even if the data frame is transmitted, the data frame is returned to the transmission source network NW-3. Therefore, the data frame is not transferred to a network NW-1 other than the network NW-3. Therefore, in this step S505, when the bus number of the transmission source of the data frame and the reference destination bus memory number of the relay destination table 23b1 match (S505: No), the reference destination bus of the relay destination table 23b1 A process of excluding the memory number from the data frame transfer destination is performed. Accordingly, when a data frame is received from the bus number k (k = 1 to n), the bus numbers 2 to n when the bus number k = 1, and the bus numbers 1 to (when the bus number k = n. n-1) When the bus number k is other than this, the data are transferred to the bus numbers 1 to (k-1) and the bus numbers (k + 1) to n (S505: Yes).

ステップS507では、バスメモリ内に受信データIDが存在するか否かを判断する処理が行われる。即ち、ステップS503による処理によって、中継先テーブル23b1のバスメモリ(バスメモリ番号1〜nのいずれか)に格納された受信データIDと比較して一致する受信データIDが存在する場合には、一致フラグがセットされているので、このフラグを確認することによって当該処理による判断が可能となる。   In step S507, processing for determining whether or not the received data ID exists in the bus memory is performed. That is, if there is a received data ID that matches the received data ID stored in the bus memory (any of the bus memory numbers 1 to n) of the relay destination table 23b1 by the processing in step S503, the match is found. Since the flag is set, it is possible to make a determination based on the processing by checking this flag.

そして、バスメモリ内に受信データIDが存在する、つまり一致フラグがセットされていた場合(S507:Yes)には、ステップS509により当該データフレームを中継フレーム送信部23a3に渡す処理が行われ、ステップS511により当該バスにデータフレームが送信される。   If the received data ID exists in the bus memory, that is, if the coincidence flag is set (S507: Yes), a process of passing the data frame to the relay frame transmitting unit 23a3 is performed in step S509. In S511, the data frame is transmitted to the bus.

一方、バスメモリ内に受信データIDが存在しない、つまり一致フラグがセットされていない場合(S507:No)には、当該バスには送信するデータフレームがないので、ステップS513に処理を移行し、全バスメモリ内のデータIDの参照が完了したか否かを判断する処理が行われる。   On the other hand, if the received data ID does not exist in the bus memory, that is, if the match flag is not set (S507: No), there is no data frame to be transmitted on the bus, so the process proceeds to step S513. Processing for determining whether or not the reference of the data ID in all the bus memories is completed is performed.

ステップS511では、データID参照部23a4から渡されたデータフレームを中継フレーム送信部23a3により当該バスに送信する処理が行われる。この処理は、前述したように中継フレーム送信部23a3により行われるものである。   In step S511, a process of transmitting the data frame passed from the data ID reference unit 23a4 to the bus by the relay frame transmission unit 23a3 is performed. This processing is performed by the relay frame transmission unit 23a3 as described above.

そして、ステップS513により全バスメモリ内のデータIDの参照が完了したと判断されると(S513:Yes)、当該データフレームを転送するバスは残っていないので、上述した一連のデータフレーム中継処理を終了する。   If it is determined in step S513 that the reference of the data IDs in all the bus memories has been completed (S513: Yes), the bus for transferring the data frame does not remain, so the series of data frame relay processes described above are performed. finish.

これに対し、ステップS513により全バスメモリ内のデータIDの参照が完了したと判断されない場合には(S513:No)、前回参照したバスメモリの番号をインクリメント(またはディクリメント)した後、ステップS503に処理を移行して、インクリメント(またはディクリメント)後のバスメモリについて前述と同様の各処理を行う。   On the other hand, if it is not determined in step S513 that the reference of the data IDs in all the bus memories has been completed (S513: No), the previously referenced bus memory number is incremented (or decremented), and then step S503 is performed. Then, the same processing as described above is performed for the bus memory after increment (or decrement).

このようにゲートウェイ装置20では、データフレームに含まれるデータ本体の種類を識別可能な受信データIDに基づいてデータID参照部23a4および中継先テーブル23b1により転送先のネットワークを決定できるので、例えば、ネットワークNW-nに接続されるノード50nから送信されたデータフレームを他のネットワークNW-1に接続されるノード50aに転送することが可能となる。   As described above, the gateway device 20 can determine the transfer destination network by the data ID reference unit 23a4 and the relay destination table 23b1 based on the received data ID that can identify the type of the data body included in the data frame. The data frame transmitted from the node 50n connected to the NW-n can be transferred to the node 50a connected to the other network NW-1.

以上説明したように、本実施形態に係るデータ通信システムによると、ノード50a等は、自らが受信すべきデータフレームのデータ本体の種類に関する受信データIDを受信ID生成部53a6により生成し、それをデータフレーム送信部53a3によりをネットワークNW-1等に送信する。一方、ゲートウェイ装置20は、ノード50a等から送信される受信データIDを中継フレーム受信部23a2により受信し、それに基づいて、中継先テーブル生成部23a5により中継先テーブル23b1を生成する。   As described above, according to the data communication system according to the present embodiment, the node 50a and the like generate the reception data ID related to the data body type of the data frame to be received by the reception ID generation unit 53a6. The data frame transmission unit 53a3 transmits the data to the network NW-1 or the like. On the other hand, the gateway device 20 receives the reception data ID transmitted from the node 50a or the like by the relay frame reception unit 23a2, and based on the reception data ID, the relay destination table generation unit 23a5 generates the relay destination table 23b1.

これにより、ノード50a等から送信される情報で、当該ノード50a等が受信すべきデータフレームに含まれるデータ本体の種類に関する受信データIDを受信することで、中継先テーブル23b1を適宜生成することが可能となる。つまり、中継先テーブル23b1を生成するために必要となる当該受信データIDを人手に頼ることなく、中継フレーム受信部23a2により受信し、自ら学習(中継先テーブル23b1を生成)するので、ネットワークの構築を容易にできる。したがって、中継先テーブル23b1を記憶したメモリ23の書込作業や交換作業の発生を防ぐので、ネットワーク構成に関するゲートウェイ装置20の設定作業の負担を軽減することができる(請求項15に実質的に対応)。   Accordingly, the relay destination table 23b1 can be appropriately generated by receiving the received data ID related to the type of the data body included in the data frame to be received by the node 50a or the like with the information transmitted from the node 50a or the like. It becomes possible. In other words, the reception data ID necessary for generating the relay destination table 23b1 is received by the relay frame receiving unit 23a2 and learned by itself (generates the relay destination table 23b1) without relying on humans. Can be easily done. Therefore, since the writing work and the exchange work of the memory 23 storing the relay destination table 23b1 are prevented, the burden of the setting work of the gateway device 20 related to the network configuration can be reduced. ).

<イ>なお、中継先テーブル生成部23a5は、中継フレーム受信部23a2による受信データIDの受信前に、受信データIDを取得している場合には、当該取得済みの受信データIDに基づいて中継先テーブル23b1を生成し得るように構成しても良い。例えば、製造工場において検査装置をゲートウェイ装置20のインターフェイス部27に接続して当該検査装置からゲートウェイ装置20に受信データIDをコマンド入力したり、また修理工場においてダイアグツールをゲートウェイ装置20のネットワークNW-1等に接続し、当該ダイアグツールでのみ受信データID方をゲートウェイ装置20に送信して学習(中継先テーブル23b1を生成)させる(請求項7に実質的に対応)。   <B> If the relay destination table generation unit 23a5 has acquired the reception data ID before the reception of the reception data ID by the relay frame reception unit 23a2, the relay destination table generation unit 23a5 performs relaying based on the acquired reception data ID. The destination table 23b1 may be generated. For example, the inspection device is connected to the interface unit 27 of the gateway device 20 at the manufacturing factory, and the received data ID is input to the gateway device 20 from the inspection device, or the diagnosis tool is connected to the network NW- of the gateway device 20 at the repair factory. 1 is connected, and the received data ID is transmitted to the gateway device 20 only by the diagnostic tool to learn (generate relay destination table 23b1) (substantially corresponds to claim 7).

<ロ>また、中継先テーブル生成部23a5は、中継フレーム受信部23a2による送信データIDの受信前に、送信データIDを取得している場合には、当該取得済みの送信データIDに基づいて中継先テーブル23b1を生成し得るように構成しても良い。例えば、製造工場において検査装置をゲートウェイ装置20のインターフェイス部27に接続して当該検査装置からゲートウェイ装置20に受信データIDと送信データIDの双方をコマンド入力したり、また修理工場においてダイアグツールをゲートウェイ装置20のネットワークNW-1等に接続し、当該ダイアグツールでのみ受信データIDと送信データIDの双方をゲートウェイ装置20に送信して学習(中継先テーブル23b1を生成)させる(請求項8に実質的に対応)。   <B> When the relay destination table generation unit 23a5 has acquired the transmission data ID before receiving the transmission data ID by the relay frame reception unit 23a2, the relay destination table generation unit 23a5 performs relaying based on the acquired transmission data ID. The destination table 23b1 may be generated. For example, an inspection apparatus is connected to the interface unit 27 of the gateway apparatus 20 in a manufacturing factory, and both reception data ID and transmission data ID are command-inputted from the inspection apparatus to the gateway apparatus 20, or a diagnostic tool is connected to a gateway in a repair factory. Connected to the network NW-1 or the like of the device 20 and transmits both the received data ID and the transmitted data ID to the gateway device 20 only by the diagnostic tool to learn (generate the relay destination table 23b1) (substantially in claim 8) ).

これにより、例えば、予め判明しているネットワークNW-1等の基本構成については、中継フレーム受信部23a2によることなく、受信データID(および送信データID)を与えておくことでそれに基づいて中継先テーブル23b1を生成することができる。このため、その後の中継フレーム受信部23a2により受信された受信データID(および送信データID)に基づく中継先テーブル23b1の生成では、既に取得済みの受信データID(および送信データID)とその後に受信した受信データID(および送信データID)との差分情報について中継先テーブル23b1の生成処理を行うことで、受信した受信データID(および送信データID)に基づく中継先テーブル23b1の生成を高速に処理することができる。また、中継フレーム受信部23a2では受信できない受信データID(および送信データID)を当該検査装置やダイアグツールにより予め与えておき、この取得済みの受信データID(および送信データID)とその後に受信した受信データID(および送信データID)との差分情報について中継先テーブル23b1の生成処理を行うことで、このような中継フレーム受信部23a2では受信できない受信データID(および送信データID)に関しても中継先テーブル23b1を生成することができる。したがって、ネットワーク構成に関するゲートウェイ装置20の設定作業の負担をさらに軽減することができる(請求項7、8に実質的に対応)。   As a result, for example, the basic structure of the network NW-1 or the like that has been identified in advance is not based on the relay frame receiving unit 23a2, and a reception data ID (and transmission data ID) is given to the relay destination based on that. A table 23b1 can be generated. For this reason, in the generation of the relay destination table 23b1 based on the reception data ID (and transmission data ID) received by the subsequent relay frame reception unit 23a2, the reception data ID (and transmission data ID) already acquired and then received By generating the relay destination table 23b1 for the difference information from the received data ID (and transmission data ID), the generation of the relay destination table 23b1 based on the received reception data ID (and transmission data ID) is processed at high speed. can do. In addition, a reception data ID (and transmission data ID) that cannot be received by the relay frame reception unit 23a2 is given in advance by the inspection device or diagnostic tool, and the received reception data ID (and transmission data ID) and the received data are received thereafter. By performing the generation process of the relay destination table 23b1 for the difference information from the reception data ID (and transmission data ID), such a reception data ID (and transmission data ID) that cannot be received by the relay frame reception unit 23a2 is also relayed. A table 23b1 can be generated. Therefore, it is possible to further reduce the burden of setting work of the gateway device 20 related to the network configuration (corresponding substantially to claims 7 and 8).

なお、このようなダイアグツールによる学習時(中継先テーブル23b1を生成時)においては、当該ダイアグツールに対しても受信データIDや送信データIDを学習(中継先テーブル23b1を生成)するようにすることで、ゲートウェイ装置20は当該ダイアグツールが接続されているバスbus-1等にもダイアグフレームを中継することが可能になる。これにより、当該ダイアグツールがどのバスbus-1等に接続されていてもダイアグ情報を確実に取得することができる。   When learning with such a diagnosis tool (when generating the relay destination table 23b1), the reception data ID and the transmission data ID are also learned (generating the relay destination table 23b1) with respect to the diagnosis tool. Thus, the gateway device 20 can relay the diagnostic frame to the bus bus-1 or the like to which the diagnostic tool is connected. As a result, the diagnostic information can be reliably acquired regardless of which bus bus-1 or the like the diagnostic tool is connected to.

<ハ>さらに、中継先テーブル生成部23a5は、第1の所定条件を満たす場合に中継先テーブル23b1を生成し、当該第1の所定条件を満たさない場合には中継先テーブル23b1を生成しないように構成しても良い。ここでの「第1の所定条件」として例えば、(1-1) 中継先テーブル23b1が生成されていないことや、(1-2) ネットワークNW-1等や入力装置(例えば、製造工場における検査装置、修理工場におけるダイアグツール)等の外部から当該ゲートウェイ装置20に入力され得る特定の命令コード(特定のコマンド)の入力があること、(1-3) (1-1),(1-2) の条件を共に満たすこと、等が例示される。これにより、当該第1の所定条件を満たす場合にのみ、中継先テーブル23b1が生成されるので、既に中継先テーブル23b1が生成されているにもかかわらず、不必要あるいは誤って中継先テーブル23b1が生成されたり((1-1) に対応)、ネットワーク構成が不完全な状態で中継先テーブル23b1が生成されたり((1-2) に対応)、さらにネットワーク等の伝送媒体上の伝送誤り等により偶然、当該特定の命令コード(特定のコマンド)と同様の意味内容を持つデータが入力された場合についても誤って中継先テーブル23b1が生成される((1-3) に対応)、等の中継先テーブル23b1の誤生成を防止できる(請求項9に実質的に対応)。   <C> Furthermore, the relay destination table generation unit 23a5 generates the relay destination table 23b1 when the first predetermined condition is satisfied, and does not generate the relay destination table 23b1 when the first predetermined condition is not satisfied. You may comprise. As the “first predetermined condition”, for example, (1-1) that the relay destination table 23b1 is not generated, or (1-2) the network NW-1 or the like or an input device (for example, inspection in a manufacturing factory) (1-3) (1-1), (1-2) that there is an input of a specific command code (specific command) that can be input to the gateway device 20 from the outside such as a device or a diagnostic tool in a repair shop) ) And the like together. Thus, since the relay destination table 23b1 is generated only when the first predetermined condition is satisfied, the relay destination table 23b1 is unnecessary or mistakenly generated even though the relay destination table 23b1 is already generated. Generated (corresponding to (1-1)), the relay destination table 23b1 is generated in an incomplete network configuration (corresponding to (1-2)), transmission errors on a transmission medium such as a network, etc. Accidentally, the relay destination table 23b1 is erroneously generated (corresponding to (1-3)) even when data having the same meaning and content as the specific instruction code (specific command) is input. An erroneous generation of the relay destination table 23b1 can be prevented (substantially corresponding to claim 9).

<ニ>さらにまた、中継先テーブル生成部23a5は、第2の所定条件を満たす場合に中継先テーブル23b1を再度生成し、当該第2の所定条件を満たさない場合には中継先テーブル23b1を再度生成しないように構成しても良い。ここでの「第2の所定条件」として、例えば、(2-1) ネットワークNW-1等や入力装置(例えば、製造工場における検査装置、修理工場におけるダイアグツール)等の外部から当該ゲートウェイ装置20に入力され得る特定の命令コード(特定のコマンド)の入力があることや、(2-2) 当該ゲートウェイ装置20に設定され得る所定の電圧や電流の入力(常時供給されるべき電源(バッテリ等)が接続された時の電圧や電流の入力)があること、等が挙げられる。これにより、当該第2の所定条件を満たす場合にのみ、中継先テーブル23b1が再度生成されるので、既に中継先テーブル23b1が生成されているにもかかわらず、不必要に中継先テーブル23b1が再度生成されたり、誤って中継先テーブル23b1が再度生成されたりすることを防止できる。また、ユーザにより車両のオプション設定等が変更された場合(途中からの機器の追加や削除)にも、必要に応じ、中継先テーブル23b1の再生成が可能となる(請求項10に実質的に対応)。   <D> Furthermore, the relay destination table generating unit 23a5 generates the relay destination table 23b1 again when the second predetermined condition is satisfied, and regenerates the relay destination table 23b1 when the second predetermined condition is not satisfied. You may comprise so that it may not produce | generate. Here, as the “second predetermined condition”, for example, (2-1) the network NW-1 or the like or an input device (for example, an inspection device in a manufacturing factory, a diagnostic tool in a repair factory) or the like from the outside of the gateway device 20 There is an input of a specific command code (specific command) that can be input to (2), or (2-2) input of a predetermined voltage or current that can be set in the gateway device 20 (power supply (battery or the like to be constantly supplied) ) Is input when voltage or current is connected. As a result, the relay destination table 23b1 is generated again only when the second predetermined condition is satisfied. Therefore, the relay destination table 23b1 is unnecessarily regenerated even though the relay destination table 23b1 is already generated. It is possible to prevent the relay destination table 23b1 from being generated or being accidentally generated again. Further, even when the option setting of the vehicle is changed by the user (addition or deletion of a device from the middle), the relay destination table 23b1 can be regenerated as necessary (substantially in claim 10). Correspondence).

<ホ>また、各ノード50a等に対する受信データIDや送信データIDの問い合わせのタイミングは、例えば、ゲートウェイ装置20の電源オン直後や、また車両のイグニッションスイッチオン(IG−ON)の直後あるいはアクセサリスイッチオン(ACC−ON)の直後等の、これらのいずれのタイミングでも、ネットワークNW-1等に接続されたノード50a等に問い合わせを行うようにゲートウェイ装置20を構成しても良い。これにより、ネットワークNW-1等に接続されたノード50a等に起動電源の電圧が異なるものが混在していても(例えば、ノード50aはACC−ONにより起動、ノード50xはIG−ONにより起動)、それぞれのタイミングにおいてこれらノード50a等に受信データID等の問い合わせを行うので、全てのノード50a等から確実に受信データIDや送信データIDを取得することができる。したがって、受信データIDや送信データIDについて欠落のない中継先テーブル23b1を生成することが可能となる。   <E> Also, the timing of the inquiry of the reception data ID and transmission data ID to each node 50a, etc. is, for example, immediately after the gateway device 20 is turned on, immediately after the vehicle ignition switch is turned on (IG-ON), or an accessory switch. The gateway device 20 may be configured to make an inquiry to the node 50a or the like connected to the network NW-1 or the like at any timing such as immediately after being turned on (ACC-ON). As a result, even if nodes 50a connected to the network NW-1 or the like have different start-up power supply voltages (for example, the node 50a is activated by ACC-ON and the node 50x is activated by IG-ON). Since each node 50a and the like are inquired about the reception data ID at each timing, the reception data ID and transmission data ID can be reliably acquired from all the nodes 50a and the like. Therefore, it is possible to generate the relay destination table 23b1 that is not missing with respect to the reception data ID and the transmission data ID.

<ヘ>また、ゲートウェイ装置20から本来送信されてくるべきデータフレームが送信されてこない場合、ノード50a等において通信途絶の判定を可能に構成し、通信途絶が発生したと判定した場合には、ゲートウェイ装置20に対してどの受信データIDをもつデータフレームが届いていないかを通知し得る構成をノード50a等に採用し、ゲートウェイ装置20においては、当該通知を受信した場合、当該通知の内容から当該ノード50a等に届いていないデータフレームの受信データIDを、中継先テーブル23b1に追加し得る構成を採用する。これにより、学習漏れが発生したとしても直ちに補正することができる。   <F> Further, when a data frame that should be transmitted from the gateway device 20 is not transmitted, the node 50a or the like is configured to be capable of determining communication interruption, and when it is determined that communication interruption has occurred, A configuration capable of notifying the gateway device 20 of which data frame having the received data ID has not been received is adopted in the node 50a and the like. When the gateway device 20 receives the notification, the content of the notification is used. A configuration is adopted in which the received data ID of a data frame that has not reached the node 50a or the like can be added to the relay destination table 23b1. Thereby, even if learning omission occurs, it can be corrected immediately.

なお、以上説明したゲートウェイ装置20では、それに接続可能なネットワークの通信プロトコルとして、CAN、J1850、BEAN、IE−BUS、ISO9141を例示したが、データフレームを構成するデータ本体の種類を識別し得るデータ識別子を当該データフレームに含むフレームフォーマットを採るものであれば、例えば、TTCAN、FlexRay、Safe-by-Wire、BST、MOST、D2B、IEEE1394等であっても、本発明を適用することができ、それぞれ上述した作用および効果を得ることができる。   In the gateway device 20 described above, CAN, J1850, BEAN, IE-BUS, and ISO 9141 are exemplified as communication protocols of the network that can be connected to the gateway device 20, but the data that can identify the type of the data body constituting the data frame The present invention can be applied to, for example, TTCAN, FlexRay, Safe-by-Wire, BST, MOST, D2B, IEEE 1394, etc., as long as it adopts a frame format including the identifier in the data frame. The operations and effects described above can be obtained.

本発明の一実施形態に係るデータ通信システムの構成を示す説明図である。It is explanatory drawing which shows the structure of the data communication system which concerns on one Embodiment of this invention. 本実施形態に係るゲートウェイ装置の構成を示すブロック図で、図2(A) はハードウェア構成を示すもの、図2(B) は、処理概要の構成を示すものである。FIG. 2A is a block diagram illustrating a configuration of a gateway device according to the present embodiment, FIG. 2A illustrates a hardware configuration, and FIG. 2B illustrates a configuration of a processing outline. 本実施形態に係るノードの構成を示すブロック図で、図3(A) はハードウェア構成を示すもの、図3(B) は、処理概要の構成を示すものである。FIG. 3A is a block diagram showing a configuration of a node according to the present embodiment, FIG. 3A shows a hardware configuration, and FIG. 3B shows a configuration of a processing outline. 車載LANで使用される各プロトコルによるフレームフォーマットを示す説明図で、図4(A) はCANプロトコルによるもの、図4(B) はJ1850プロトコルによるもの、図4(C) はBEANプロトコルによるもの、図4(D) はIE−BUSプロトコルによるもの、図4(E) はISO9141プロトコルによるものである。FIG. 4A is a CAN protocol protocol, FIG. 4B is a J1850 protocol, and FIG. 4C is a BEAN protocol. 4D is based on the IE-BUS protocol, and FIG. 4E is based on the ISO 9141 protocol. 本データ通信システムでやりとりされるデータフレームに含まれる受信データIDや送信データIDについて補足する説明図である。It is explanatory drawing supplemented about reception data ID and transmission data ID which are contained in the data frame exchanged in this data communication system. 図5に示すデータ通信システムの例における各ノード50a、50b、50cのデータフレームの受信データIDおよび送信データIDを示す図表で、図6(A) はノード50aに対するもの、図6(B) はノード50bに対するもの、図6(C) はノード50cに対するもの、である。FIG. 6A is a diagram showing the reception data ID and transmission data ID of the data frame of each node 50a, 50b, 50c in the example of the data communication system shown in FIG. 5, FIG. 6A is for the node 50a, and FIG. For node 50b, FIG. 6C is for node 50c. 図5に示すデータ通信システムの例におけるゲートウェイ装置の中継先テーブルの登録内容の例を示す図表で、図7(A) は受信データIDに基づくもの、図7(B) は送信データIDに基づくもの、図7(C) は受信データIDに基づくものから送信データIDに基づくものを除外したもの、である。7A and 7B are diagrams illustrating examples of registration contents of the relay destination table of the gateway device in the example of the data communication system illustrated in FIG. 5. FIG. 7A is based on the reception data ID, and FIG. 7B is based on the transmission data ID. FIG. 7 (C) shows a configuration based on the reception data ID excluding the configuration based on the transmission data ID. 図7(C) に示す受信データIDを導くために参考となる説明図である。FIG. 8 is an explanatory diagram that serves as a reference for deriving the reception data ID shown in FIG. 本実施形態に係るデータ通信システムを構成するゲートウェイ装置による中継先テーブル生成処理の流れを示すフローチャートで、その基本形を示すものである。It is a flowchart which shows the flow of the relay destination table production | generation process by the gateway apparatus which comprises the data communication system which concerns on this embodiment, and shows the basic form. 本実施形態のゲートウェイ装置による中継先テーブル生成処理の流れを示すフローチャートで、その変形例を示すものである。It is a flowchart which shows the flow of the relay destination table production | generation process by the gateway apparatus of this embodiment, and shows the modification. 本実施形態に係るデータ通信システムを構成する各ノードによる受信ID生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the reception ID production | generation process by each node which comprises the data communication system which concerns on this embodiment. 本実施形態の各ノードによる送信ID生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the transmission ID production | generation process by each node of this embodiment. 本実施形態のゲートウェイ装置によるデータフレーム中継処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the data frame relay process by the gateway apparatus of this embodiment.

符号の説明Explanation of symbols

20…ゲートウェイ装置(データ中継装置)
23a2…中継フレーム受信部(受信種別情報受信手段、送信種別情報受信手段)
23a3…中継フレーム送信部(受信種別情報要求手段、送信種別情報要求手段)
23a4…データID参照部
23a5…中継先テーブル生成部(中継先決定手段生成手段、受信種別情報要求手段、送信種別情報要求手段)
23b…中継先テーブル領域
23b1…中継先テーブル(中継先決定手段)
27a…バス1対応インターフェイス部(受信種別情報受信手段、送信種別情報受信手段、受信種別情報要求手段、送信種別情報要求手段)
27b…バス2対応インターフェイス部(受信種別情報受信手段、送信種別情報受信手段、受信種別情報要求手段、送信種別情報要求手段)
27c…バス3対応インターフェイス部(受信種別情報受信手段、送信種別情報受信手段、受信種別情報要求手段、送信種別情報要求手段)
27n…バスn対応インターフェイス部(受信種別情報受信手段、送信種別情報受信手段、受信種別情報要求手段、送信種別情報要求手段)
50a、50b、50c、50d、50e、50x、50y、50z…ノード(端末装置)
53a2…データフレーム受信部
53a3…データフレーム送信部(受信種別情報送信手段、送信種別情報送信手段)
53a4…データID参照部
53a5…所定処理部
53a6…受信ID生成部(受信種別情報生成手段)
53a7…送信ID生成部(送信種別情報生成手段)
53b1…受信IDテーブル
53b2…送信IDテーブル
57a…バス1対応インターフェイス部
bus-1、bus-2、bus-3、bus-n…バス
NW-1,NW-2,NW-3,…,NW-n…ネットワーク(一のネットワーク、他のネットワーク)
20 ... Gateway device (data relay device)
23a2 ... Relay frame receiving unit (reception type information receiving means, transmission type information receiving means)
23a3 ... Relay frame transmission unit (reception type information requesting means, transmission type information requesting means)
23a4: Data ID reference unit 23a5: Relay destination table generation unit (relay destination determination unit generation unit, reception type information request unit, transmission type information request unit)
23b: Relay destination table area 23b1: Relay destination table (relay destination determining means)
27a ... Interface unit corresponding to bus 1 (reception type information receiving means, transmission type information receiving means, reception type information requesting means, transmission type information requesting means)
27b ... Interface unit corresponding to bus 2 (reception type information receiving means, transmission type information receiving means, reception type information requesting means, transmission type information requesting means)
27c ... Interface unit corresponding to bus 3 (reception type information receiving means, transmission type information receiving means, reception type information requesting means, transmission type information requesting means)
27n... Bus n compatible interface section (reception type information receiving means, transmission type information receiving means, reception type information requesting means, transmission type information requesting means)
50a, 50b, 50c, 50d, 50e, 50x, 50y, 50z ... Node (terminal device)
53a2 ... Data frame reception unit 53a3 ... Data frame transmission unit (reception type information transmission unit, transmission type information transmission unit)
53a4 ... Data ID reference unit 53a5 ... Predetermined processing unit 53a6 ... Reception ID generation unit (reception type information generation means)
53a7 ... Transmission ID generation unit (transmission type information generation means)
53b1... Reception ID table 53b2... Transmission ID table 57a.
bus-1, bus-2, bus-3, bus-n ... bus
NW-1, NW-2, NW-3, ..., NW-n ... Network (one network, other network)

Claims (15)

一のネットワークから送信されたデータフレームを他のネットワークに接続される端末装置に転送し得るデータ中継装置において、前記データフレームに含まれるデータ本体の種類を識別可能なデータ識別子に基づいて転送先の他のネットワークを決定可能な中継先決定手段を備えたデータ中継装置であって、
前記端末装置から送信される情報で、当該端末装置が受信すべきデータフレームに含まれるデータ本体の種類に関する受信種別情報を、受信可能な受信種別情報受信手段と、
前記受信種別情報受信手段により受信された前記受信種別情報に基づいて前記中継先決定手段を生成可能な中継先決定手段生成手段と、
前記受信種別情報の送信を前記端末装置に対して要求可能な受信種別情報要求手段と
を備え、
前記受信種別情報要求手段は、前記受信種別情報の送信要求を受ける複数の前記端末装置に対し、これら複数の端末装置すべてを対象とした前記受信種別情報の要求を送信することを特徴とするデータ中継装置。
In a data relay device capable of transferring a data frame transmitted from one network to a terminal device connected to another network, based on a data identifier capable of identifying the type of data body included in the data frame, A data relay apparatus comprising a relay destination determination means capable of determining another network,
In the information transmitted from the terminal device, reception type information receiving means for receiving the reception type information related to the type of the data body included in the data frame to be received by the terminal device; and
A relay destination determining means generating means capable of generating the relay destination determining means based on the reception type information received by the reception type information receiving means;
Reception type information requesting means capable of requesting the terminal device to transmit the reception type information;
With
The reception type information requesting unit transmits the request for the reception type information for all of the plurality of terminal devices to the plurality of terminal devices receiving the transmission request for the reception type information. Relay device.
一のネットワークから送信されたデータフレームを他のネットワークに接続される端末装置に転送し得るデータ中継装置において、前記データフレームに含まれるデータ本体の種類を識別可能なデータ識別子に基づいて転送先の他のネットワークを決定可能な中継先決定手段を備えたデータ中継装置であって、
前記端末装置から送信される情報で、当該端末装置が受信すべきデータフレームに含まれるデータ本体の種類に関する受信種別情報を、受信可能な受信種別情報受信手段と、
前記受信種別情報受信手段により受信された前記受信種別情報に基づいて前記中継先決定手段を生成可能な中継先決定手段生成手段と、
前記受信種別情報の送信を前記端末装置に対して要求可能な受信種別情報要求手段と
を備え、
前記受信種別情報要求手段は、前記受信種別情報の送信要求を受ける全ての前記端末装置に対し、データ中継装置の起動時に前記受信種別情報の要求を送信することを特徴とするデータ中継装置。
In a data relay device capable of transferring a data frame transmitted from one network to a terminal device connected to another network, based on a data identifier capable of identifying the type of data body included in the data frame, A data relay apparatus comprising a relay destination determination means capable of determining another network,
In the information transmitted from the terminal device, reception type information receiving means for receiving the reception type information related to the type of the data body included in the data frame to be received by the terminal device; and
A relay destination determining means generating means capable of generating the relay destination determining means based on the reception type information received by the reception type information receiving means;
Reception type information requesting means capable of requesting the terminal device to transmit the reception type information;
With
The reception type information requesting unit transmits a request for the reception type information to all the terminal devices that receive a transmission request for the reception type information when the data relay device is activated .
前記受信種別情報要求手段は、前記受信種別情報の送信要求を受ける複数の前記端末装置に対し、これら複数の端末装置すべてを対象とした前記受信種別情報の同報要求を送信することを特徴とする請求項2記載のデータ中継装置。   The reception type information requesting unit transmits a broadcast request for the reception type information for all of the plurality of terminal devices to the plurality of terminal devices receiving the transmission request for the reception type information. The data relay device according to claim 2. 前記端末装置から送信される情報で、当該端末装置が送信すべきデータフレームに含まれるデータ本体の種類に関する送信種別情報を、受信可能な送信種別情報受信手段を備え、
前記中継先決定手段生成手段は、前記受信種別情報、および、前記送信種別情報受信手段により受信された前記送信種別情報、に基づいて前記中継先決定手段を生成し得ることを特徴とする請求項1〜3のいずれか一項に記載のデータ中継装置。
Transmission type information receiving means capable of receiving transmission type information relating to the type of data body included in the data frame to be transmitted by the terminal device as information transmitted from the terminal device,
The relay destination determining means generating means can generate the relay destination determining means based on the reception type information and the transmission type information received by the transmission type information receiving means. The data relay device according to any one of 1 to 3.
前記データ中継装置は、前記送信種別情報の送信を前記端末装置に対して要求可能な送信種別情報要求手段を備えることを特徴とする請求項4記載のデータ中継装置。   5. The data relay device according to claim 4, further comprising a transmission type information requesting unit capable of requesting the terminal device to transmit the transmission type information. 前記送信種別情報要求手段は、前記送信種別情報の送信要求を受ける複数の前記端末装置に対し、これら複数の端末装置すべてを対象とした前記送信種別情報の同報要求を送信することを特徴とする請求項5記載のデータ中継装置。   The transmission type information requesting means transmits a transmission request for the transmission type information for all of the plurality of terminal devices to the plurality of terminal devices receiving the transmission type information transmission request. The data relay device according to claim 5. 前記中継先決定手段生成手段は、前記受信種別情報受信手段による前記受信種別情報の受信前に、前記受信種別情報を取得している場合には、当該取得済みの受信種別情報に基づいて前記中継先決定手段を生成し得ることを特徴とする請求項1〜6のいずれか一項に記載のデータ中継装置。   If the reception type information is acquired before the reception type information reception unit receives the reception type information, the relay destination determination unit generation unit is configured to perform the relay based on the acquired reception type information. The data relay device according to any one of claims 1 to 6, wherein a predetermination unit can be generated. 前記中継先決定手段生成手段は、前記送信種別情報受信手段による前記送信種別情報の受信前に、前記送信種別情報を取得している場合には、当該取得済みの送信種別情報に基づいて前記中継先決定手段を生成し得ることを特徴とする請求項4〜6のいずれか一項に記載のデータ中継装置。   If the transmission destination information is acquired before the transmission type information receiving unit receives the transmission type information, the relay destination determination unit generation unit may generate the relay based on the acquired transmission type information. The data relay device according to any one of claims 4 to 6, wherein a predetermination unit can be generated. 前記中継先決定手段生成手段は、第1の所定条件を満たす場合に前記中継先決定手段を生成し、当該第1の所定条件を満たさない場合には前記中継先決定手段を生成しないことを特徴とする請求項1〜8のいずれか一項に記載のデータ中継装置。   The relay destination determination unit generation unit generates the relay destination determination unit when a first predetermined condition is satisfied, and does not generate the relay destination determination unit when the first predetermined condition is not satisfied. The data relay device according to any one of claims 1 to 8. 前記中継先決定手段生成手段は、第2の所定条件を満たす場合に前記中継先決定手段を再度生成し、当該第2の所定条件を満たさない場合には前記中継先決定手段を再度生成しないことを特徴とする請求項1〜8のいずれか一項に記載のデータ中継装置。   The relay destination determination unit generation unit generates the relay destination determination unit again when the second predetermined condition is satisfied, and does not generate the relay destination determination unit again when the second predetermined condition is not satisfied. The data relay device according to any one of claims 1 to 8. データ本体とこのデータ本体の種類を識別可能なデータ識別子とを含んで構成されるデータフレームをネットワークから受信し得る端末装置であって、
自らが受信すべき前記データフレームの前記データ本体の種類に関する受信種別情報を生成可能な受信種別情報生成手段と、
前記受信種別情報生成手段により生成された前記受信種別情報を前記ネットワークに送信可能な受信種別情報送信手段と
を備えることを特徴とする端末装置。
A terminal device capable of receiving a data frame including a data body and a data identifier capable of identifying the type of the data body from a network,
Reception type information generating means capable of generating reception type information related to the type of the data body of the data frame to be received by itself;
A terminal device comprising: a reception type information transmission unit capable of transmitting the reception type information generated by the reception type information generation unit to the network.
前記受信種別情報送信手段は、前記ネットワークに接続されたデータ中継装置の要求に応じて、前記受信種別情報を前記ネットワークに送信することを特徴とする請求項11記載の端末装置。   12. The terminal apparatus according to claim 11, wherein the reception type information transmitting unit transmits the reception type information to the network in response to a request from a data relay apparatus connected to the network. 自らが送信すべき前記データフレームの前記データ本体の種類に関する送信種別情報を生成可能な送信種別情報生成手段と、
前記送信種別情報生成手段により生成された前記送信種別情報を前記ネットワークに送信可能な送信種別情報送信手段と
を備えることを特徴とする請求項11または12記載の端末装置。
Transmission type information generating means capable of generating transmission type information related to the type of the data body of the data frame to be transmitted by itself;
The terminal apparatus according to claim 11, further comprising: a transmission type information transmitting unit capable of transmitting the transmission type information generated by the transmission type information generating unit to the network.
前記送信種別情報送信手段は、前記ネットワークに接続されたデータ中継装置の要求に応じて、前記送信種別情報を前記ネットワークに送信することを特徴とする請求項13記載の端末装置。   14. The terminal apparatus according to claim 13, wherein the transmission type information transmitting unit transmits the transmission type information to the network in response to a request from a data relay apparatus connected to the network. 一のネットワークと、他のネットワークと、この他のネットワークに接続される端末装置と、これらのネットワークに接続され前記一のネットワークから送信されたデータフレームを前記他のネットワークの端末装置に転送し得るデータ中継装置で前記データフレームに含まれるデータ本体の種類を識別可能なデータ識別子に基づいて転送先の前記他のネットワークを決定可能な中継先決定手段を備えたデータ中継装置と、を含んで構成されるデータ通信システムであって、
前記端末装置は、
自らが受信すべき前記データフレームの前記データ本体の種類に関する受信種別情報を生成可能な受信種別情報生成手段と、
前記受信種別情報生成手段により生成された前記受信種別情報を前記データ中継装置に送信可能な受信種別情報送信手段と
を備え、
前記データ中継装置は、
前記端末装置から送信される前記受信種別情報を受信可能な受信種別情報受信手段と、
前記受信種別情報受信手段により受信された前記受信種別情報に基づいて前記中継先決定手段を生成可能な中継先決定手段生成手段と、
前記受信種別情報の送信を前記端末装置に対して要求可能な受信種別情報要求手段と
を備え、
前記受信種別情報要求手段は、前記受信種別情報の送信要求を受ける複数の前記端末装置に対し、これら複数の端末装置すべてを対象とした前記受信種別情報の要求を送信することを特徴とするデータ通信システム。
One network, another network, a terminal device connected to the other network, and a data frame connected to these networks and transmitted from the one network can be transferred to the terminal device of the other network A data relay device comprising relay destination determination means capable of determining the other network of the transfer destination based on a data identifier capable of identifying the type of data body included in the data frame in the data relay device. A data communication system,
The terminal device
Reception type information generating means capable of generating reception type information related to the type of the data body of the data frame to be received by itself;
A reception type information transmission unit capable of transmitting the reception type information generated by the reception type information generation unit to the data relay device;
The data relay device
Reception type information receiving means capable of receiving the reception type information transmitted from the terminal device;
A relay destination determining means generating means capable of generating the relay destination determining means based on the reception type information received by the reception type information receiving means;
Reception type information requesting means capable of requesting the terminal device to transmit the reception type information;
With
The reception type information requesting unit transmits the request for the reception type information for all of the plurality of terminal devices to the plurality of terminal devices receiving the transmission request for the reception type information. Communications system.
JP2005138616A 2005-05-11 2005-05-11 Data relay device, terminal device, and data communication system Expired - Fee Related JP4457966B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005138616A JP4457966B2 (en) 2005-05-11 2005-05-11 Data relay device, terminal device, and data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005138616A JP4457966B2 (en) 2005-05-11 2005-05-11 Data relay device, terminal device, and data communication system

Publications (2)

Publication Number Publication Date
JP2006319540A JP2006319540A (en) 2006-11-24
JP4457966B2 true JP4457966B2 (en) 2010-04-28

Family

ID=37539825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005138616A Expired - Fee Related JP4457966B2 (en) 2005-05-11 2005-05-11 Data relay device, terminal device, and data communication system

Country Status (1)

Country Link
JP (1) JP4457966B2 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4804307B2 (en) 2006-10-27 2011-11-02 富士通テン株式会社 Gateway apparatus and transfer control method
JP5084254B2 (en) * 2006-12-26 2012-11-28 株式会社オートネットワーク技術研究所 In-vehicle communication system, relay device, and in-vehicle communication method
US8126611B2 (en) 2007-03-16 2012-02-28 Autonetworks Technologies, Ltd. On-vehicle communication system
WO2009016785A1 (en) * 2007-07-31 2009-02-05 Mitsubishi Electric Corporation Communication control system
JP5113492B2 (en) * 2007-11-06 2013-01-09 株式会社ケーヒン Communication abnormality detection device
JP5255579B2 (en) 2010-02-09 2013-08-07 日立オートモティブシステムズ株式会社 In-car data relay device, vehicle control system
JP5362668B2 (en) 2010-09-16 2013-12-11 日立オートモティブシステムズ株式会社 In-car data relay device
JP5900198B2 (en) * 2012-07-06 2016-04-06 株式会社オートネットワーク技術研究所 COMMUNICATION SYSTEM, RELAY DEVICE, AND COMMUNICATION DEVICE
JP6992433B2 (en) * 2017-11-20 2022-01-13 株式会社デンソー Relay device
JP7384116B2 (en) 2020-06-05 2023-11-21 株式会社デンソー relay device
CN114978793A (en) * 2022-05-20 2022-08-30 深圳创维-Rgb电子有限公司 Network distribution device and network distribution method

Also Published As

Publication number Publication date
JP2006319540A (en) 2006-11-24

Similar Documents

Publication Publication Date Title
JP4457966B2 (en) Data relay device, terminal device, and data communication system
US10951436B2 (en) Network hub, transfer method, and onboard network system
US11012255B2 (en) Electronic control unit, frame generating method, and non-transitory computer-readable recording medium storing a program
JP4910182B2 (en) In-vehicle communication system
JP5500153B2 (en) Vehicle communication device and vehicle data communication system using the vehicle communication device
US11310070B2 (en) Network hub, transfer method, and onboard network system
JP5672275B2 (en) Network system
JP5050653B2 (en) Electronic control device
WO2019004173A1 (en) In-vehicle communication system, in-vehicle relay device, and relay program
JP4786330B2 (en) In-vehicle LAN system, electronic control unit and relay connection unit
JP2007228232A (en) On-vehicle lan system, electronic control unit, and relay connection unit
WO2018235374A1 (en) Network switch
JP5019983B2 (en) In-vehicle communication system, relay device, and communication method
US20170187567A1 (en) Electronic control apparatus
JP6544250B2 (en) Relay device
JP4709037B2 (en) In-vehicle database system
JP6992433B2 (en) Relay device
WO2021177019A1 (en) On-board relay apparatus and computer program
WO2014007067A1 (en) Communication system, relay apparatus and communication apparatus
JP4361540B2 (en) Gateway device, data transfer method, and program
JP5900286B2 (en) Relay device
CN114128222A (en) Relay device system
JP6593230B2 (en) Communications system
JP2020150442A (en) Gateway unit
JP4226209B2 (en) Multiplex transmission equipment for vehicles

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090904

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091013

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091207

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

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

R151 Written notification of patent or utility model registration

Ref document number: 4457966

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140219

Year of fee payment: 4

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

LAPS Cancellation because of no payment of annual fees