JP5692345B2 - Gateway device - Google Patents

Gateway device Download PDF

Info

Publication number
JP5692345B2
JP5692345B2 JP2013259012A JP2013259012A JP5692345B2 JP 5692345 B2 JP5692345 B2 JP 5692345B2 JP 2013259012 A JP2013259012 A JP 2013259012A JP 2013259012 A JP2013259012 A JP 2013259012A JP 5692345 B2 JP5692345 B2 JP 5692345B2
Authority
JP
Japan
Prior art keywords
channel
frame
transfer
received
channels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013259012A
Other languages
Japanese (ja)
Other versions
JP2014053970A (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.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2013259012A priority Critical patent/JP5692345B2/en
Publication of JP2014053970A publication Critical patent/JP2014053970A/en
Application granted granted Critical
Publication of JP5692345B2 publication Critical patent/JP5692345B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、ゲートウェイ装置に関するものである。   The present invention relates to a gateway device.

従来、ゲートウェイ装置として、複数の通信ノード間のデータを中継するものが知られている(例えば、特許文献1参照)。特許文献1記載の装置は、通信ノードから受信した受信データを一時保存する受信バッファと、受信バッファ又は一時的に受信データを保存するメインバッファから受信データが転送される送信バッファと、各バッファ間のデータの転送を制御するデータコントローラとを備えている。受信バッファ及び送信バッファは、装置に接続された伝送路(チャネル)ごとに配置されている。   Conventionally, a gateway device that relays data between a plurality of communication nodes is known (see, for example, Patent Document 1). The apparatus described in Patent Document 1 includes a reception buffer that temporarily stores reception data received from a communication node, a transmission buffer that transfers reception data from a reception buffer or a main buffer that temporarily stores reception data, and a buffer between each buffer. And a data controller for controlling the data transfer. The reception buffer and the transmission buffer are arranged for each transmission path (channel) connected to the apparatus.

特開2004−350138号公報JP 2004-350138 A

ところで、データコントローラによるバッファ間のデータ転送制御として、例えば、転送元や転送先を定義する転送ルールをゲートウェイの一時的な記憶領域にテーブルとして格納し、当該転送ルールを参照してデータの転送を行う制御が考えられる。ここで、従来のゲートウェイ装置では、装置に接続されるチャネル数が多くなるほど受信バッファ及び送信バッファが多く配置される。このため、従来のゲートウェイ装置にあっては、テーブルを用いて転送ルールを管理する場合には、チャネル数が多くなるほど転送ルールの数が増加するので、テーブルの容量が増大するおそれがある。   By the way, as a data transfer control between the buffers by the data controller, for example, a transfer rule defining a transfer source and a transfer destination is stored as a table in a temporary storage area of the gateway, and data transfer is performed with reference to the transfer rule. The control to be performed can be considered. Here, in the conventional gateway device, as the number of channels connected to the device increases, more reception buffers and transmission buffers are arranged. For this reason, in the conventional gateway device, when the transfer rules are managed using a table, the number of transfer rules increases as the number of channels increases, and thus the capacity of the table may increase.

そこで、本発明はこのような技術課題を解決するためになされたものであって、記憶領域を効率的に利用することができるゲートウェイ装置を提供することを目的とする。   Accordingly, the present invention has been made to solve such a technical problem, and an object thereof is to provide a gateway device that can efficiently use a storage area.

すなわち本発明に係るゲートウェイ装置は、車載され、複数のチャネルが接続されたゲートウェイ装置であって、複数のチャネルのそれぞれに対応して設けられ、チャネルを介して受信された受信フレームが保存されるチャネルごとの受信バッファと、複数のチャネルのそれぞれに対応して設けられ、チャネルを用いて送信される送信フレームが保存されるチャネルごとの送信バッファと、複数のチャネルのそれぞれに対応し、1つのチャネルが受信した受信フレームに含まれるデータの一部又は全部を、1つのチャネルに対応する送信バッファの所定の格納位置に転送するルールが定義されたチャネルごとの転送テーブルと、受信フレームを受信したチャネルに対応する転送テーブルを参照し、受信フレームに含まれるデータの一部又は全部を送信バッファへ転送するデータ転送手段と、を備え、転送テーブルそれぞれは、転送テーブルそれぞれに対応する1つのチャネルのみを介して受信される受信フレームに含まれるデータの一部又は全部を用いて1つのチャネルに対応する送信フレームが構成されるように、フレームを受信するチャネル別に定義されている。 In other words, the gateway device according to the present invention is a gateway device mounted on a vehicle and connected to a plurality of channels, provided corresponding to each of the plurality of channels, and receiving frames received via the channels are stored. A reception buffer for each channel, a transmission buffer for each channel that is provided corresponding to each of the plurality of channels and stores a transmission frame transmitted using the channel, and one for each of the plurality of channels A transfer table for each channel in which a rule for transferring a part or all of data included in a received frame received by a channel to a predetermined storage position of a transmission buffer corresponding to one channel is defined, and the received frame is received. refers to the transfer table corresponding to the channel, a portion of data included in the received frame or full And a data transfer means for transferring to the transmission buffer, respectively forwarding table, using a part or all of the data included in the received frame received through only one channel corresponding to each forwarding table 1 One of such transmission frame corresponding to the channel is configured, Ru Tei defined per channel to receive the frame.

本発明に係るゲートウェイ装置では、受信バッファから送信バッファへの転送を定義する転送テーブルが、1つのカテゴリの受信フレームに含まれるデータから送信フレームが構成されるように、所定のカテゴリ別に定義されている。このように構成することで、同一のカテゴリに属する受信フレームのみを用いて、フレームを統合したり組み換えたりすることができる。このため、カテゴリの異なる受信フレームの統合・組み換えについては考慮する必要がないので、転送テーブルで管理すべきルールの数を減少させることが可能となる。よって、転送テーブルの容量を削減することができる。さらに、転送元や転送先を定義するためのデータ量も削減することが可能となる。したがって、記憶領域を効率的に利用することができる。また、送信フレームをチャネル別に再構成して保存することができる。   In the gateway device according to the present invention, the transfer table that defines the transfer from the reception buffer to the transmission buffer is defined for each predetermined category so that the transmission frame is configured from data included in one category of reception frame. Yes. With this configuration, frames can be integrated or recombined using only received frames belonging to the same category. For this reason, there is no need to consider integration / recombination of received frames of different categories, and the number of rules to be managed in the forwarding table can be reduced. Therefore, the capacity of the transfer table can be reduced. Furthermore, it is possible to reduce the amount of data for defining the transfer source and transfer destination. Therefore, the storage area can be used efficiently. In addition, transmission frames can be reconfigured and stored for each channel.

ここで、転送テーブルには、受信フレームに含まれるデータのうち送信バッファへ転送するデータのデータ長及び当該データが格納される格納先を示す転送元アドレスと、送信バッファの所定の格納位置を示す転送先アドレスとを関連付けするルールが定義されてもよい。   Here, the transfer table indicates the data length of the data to be transferred to the transmission buffer among the data included in the received frame, the transfer source address indicating the storage destination where the data is stored, and the predetermined storage position of the transmission buffer. A rule for associating the forwarding address may be defined.

また、転送テーブルは、受信フレームの周期別に定義されてもよい。このように構成することで、送信フレームを受信フレームの周期別に再構成して保存することができる。さらに、転送テーブルは、プロトコル別に定義されてもよい。このように構成することで、送信フレームをプロトコル別に再構成して保存することができる。   The forwarding table may be defined for each received frame period. With this configuration, the transmission frame can be reconfigured and stored for each period of the reception frame. Furthermore, the forwarding table may be defined for each protocol. With this configuration, the transmission frame can be reconfigured and stored for each protocol.

本発明によれば、記憶領域を効率的に利用することができる。   According to the present invention, the storage area can be used efficiently.

実施形態に係るゲートウェイ装置を備える車両の構成概要を示すブロック図である。It is a block diagram which shows the structure outline | summary of a vehicle provided with the gateway apparatus which concerns on embodiment. 実施形態に係るゲートウェイ装置の構成概要を示すブロック図である。It is a block diagram which shows the structure outline | summary of the gateway apparatus which concerns on embodiment. 実施形態に係るゲートウェイ装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the gateway apparatus which concerns on embodiment. 実施形態に係るゲートウェイ装置の動作を説明する概要図である。It is a schematic diagram explaining operation | movement of the gateway apparatus which concerns on embodiment. 実施形態に係るゲートウェイ装置の動作を説明する概要図である。It is a schematic diagram explaining operation | movement of the gateway apparatus which concerns on embodiment. 実施形態に係るゲートウェイ装置の動作を説明する概要図である。It is a schematic diagram explaining operation | movement of the gateway apparatus which concerns on embodiment.

以下、添付図面を参照して本発明の実施形態について説明する。なお、各図において同一又は相当部分には同一の符号を付し、重複する説明を省略する。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In addition, in each figure, the same code | symbol is attached | subjected to the same or an equivalent part, and the overlapping description is abbreviate | omitted.

本実施形態に係るゲートウェイ装置は、例えば複数のECUを備える車両に好適に採用されるものである。   The gateway device according to the present embodiment is preferably employed for a vehicle including a plurality of ECUs, for example.

最初に、本実施形態に係るゲートウェイ装置を備える車両の概要から説明する。図1は、本実施形態に係るゲートウェイ装置を備える車両の構成概要を示すブロック図である。図1に示すように、車両3は、例えば、統合ECU(Electronic Control Unit)10〜12、ECU20〜25及びチャネルL1〜L4を備えている。ECUは、電子制御する自動車デバイスのコンピュータであり、CPU(CentralProcessing Unit)、ROM(Read Only Memory)やRAM(Random Access Memory)等のメモリ、及び入出力インターフェイスなどを備えて構成されている。チャネルL1〜L4は、所定の通信プロトコルに従って通信を行う伝送路であり、ECUが用いる情報をフレームとして伝送する。   First, an outline of a vehicle including the gateway device according to the present embodiment will be described. FIG. 1 is a block diagram illustrating a schematic configuration of a vehicle including a gateway device according to the present embodiment. As shown in FIG. 1, the vehicle 3 includes, for example, integrated ECUs (Electronic Control Units) 10 to 12, ECUs 20 to 25, and channels L1 to L4. The ECU is a computer of an electronically controlled automobile device, and includes a CPU (Central Processing Unit), a memory such as a ROM (Read Only Memory) and a RAM (Random Access Memory), an input / output interface, and the like. Channels L1 to L4 are transmission paths for performing communication according to a predetermined communication protocol, and transmit information used by the ECU as a frame.

統合ECU10〜12及びECU20〜25は、通信により取得した情報等を用いてそれぞれが所定の車両機能を発揮する。図1に示す車両3では、チャネルL1には統合ECU10〜12がそれぞれ接続され、チャネルL2には統合ECU10、ECU20,21がそれぞれ接続され、チャネルL3には、統合ECU10,11、ECU22,23がそれぞれ接続され、チャネルL4には、統合ECU12、ECU24,25がそれぞれ接続されている。統合ECU10〜12及びECU20〜25は、チャネルL1〜L4を介して情報を通信する。   Each of the integrated ECUs 10 to 12 and the ECUs 20 to 25 performs a predetermined vehicle function using information acquired through communication. In the vehicle 3 shown in FIG. 1, the integrated ECUs 10 to 12 are connected to the channel L1, the integrated ECUs 10 and 20 and 21 are connected to the channel L2, and the integrated ECUs 10 and 11 and ECUs 22 and 23 are connected to the channel L3. The integrated ECU 12, ECUs 24 and 25 are connected to the channel L4. The integrated ECUs 10 to 12 and the ECUs 20 to 25 communicate information via the channels L1 to L4.

ECU20〜25としては、例えば、走行制御を行うパワートレイン系ECU、走行の安全性を高めるシャーシ系ECU、乗員とのインターフェイスを実現するマルチメディア系ECU、車両設備の動作を実現するボディ系ECU等が用いられる。パワートレイン系ECUとしては、エンジンECU、ABS(Anti-lock brake system)に関するECU等が用いられる。また、シャーシ系ECUとしては、エアバックECU、衝突センサに関するECU等が用いられる。また、ボディ系ECUとしては、ドアECU,シートECU等が用いられる。また、マルチメディア系ECUとしては、ナビECU,オーディオECU等が用いられる。   The ECUs 20 to 25 include, for example, a powertrain ECU that controls driving, a chassis ECU that improves driving safety, a multimedia ECU that implements an interface with passengers, a body ECU that implements the operation of vehicle equipment, and the like. Is used. As the powertrain ECU, an engine ECU, an ECU related to an anti-lock brake system (ABS), and the like are used. As the chassis ECU, an airbag ECU, an ECU related to a collision sensor, or the like is used. As the body ECU, a door ECU, a seat ECU, or the like is used. As the multimedia ECU, a navigation ECU, an audio ECU or the like is used.

チャネルL1〜L4の通信プロトコルとしては、例えば、CAN(ControllerAreaNetwork)、LIN(Local Interconnect Network)、FlexRay、MOST(Media OrientedSystem Transport)、EtherNet(登録商標)等が用いられる。チャネルL1〜L4の通信プロトコルは、接続するECUに合わせて決定される。例えば、統合ECU10〜12を接続するチャネルL1は、CAN等の通信プロトコルに従って通信を行う。また、パワートレイン系ECUを接続するチャネルは、CAN,LIN,FlexRay等の通信プロトコルに従って通信を行う。また、シャーシ系ECUを接続するチャネルは、FlexRay等の通信プロトコルに従って通信を行う。また、ボディ系ECUを接続するチャネルは、CAN,LIN等の通信プロトコルに従って通信を行う。また、マルチメディア系ECUを接続するチャネルは、CAN,LIN,MOST等の通信プロトコルに従って通信を行う。   For example, CAN (Controller Area Network), LIN (Local Interconnect Network), FlexRay, MOST (Media Oriented System Transport), EtherNet (registered trademark), or the like is used as the communication protocol of the channels L1 to L4. The communication protocol of the channels L1 to L4 is determined according to the ECU to be connected. For example, the channel L1 connecting the integrated ECUs 10 to 12 performs communication according to a communication protocol such as CAN. The channel connecting the powertrain ECU performs communication according to a communication protocol such as CAN, LIN, FlexRay, or the like. The channel connecting the chassis ECU communicates according to a communication protocol such as FlexRay. The channel connecting the body system ECU performs communication according to a communication protocol such as CAN or LIN. A channel connecting the multimedia ECU communicates according to a communication protocol such as CAN, LIN, MOST.

統合ECU10〜12は、チャネルL1を介して互いに通信可能に構成されているとともに、チャネルL2〜L4を用いてECU20〜25と通信可能に構成されている。統合ECU10〜12は、例えば、通信可能なECU20〜25の中で重複する機能を取りまとめて実行する機能を有している。また、統合ECU10〜12は、例えば、通信可能なECU20〜25の動作を制御する機能を有している。さらに、統合ECU10〜12は、データを中継するゲートウェイ処理部(ゲートウェイ装置)を備えている。   The integrated ECUs 10 to 12 are configured to be able to communicate with each other via the channel L1 and are configured to be able to communicate with the ECUs 20 to 25 using the channels L2 to L4. For example, the integrated ECUs 10 to 12 have a function of collecting and executing overlapping functions in the communicable ECUs 20 to 25. Moreover, integrated ECU10-12 has the function to control operation | movement of ECU20-25 which can communicate, for example. Further, the integrated ECUs 10 to 12 include a gateway processing unit (gateway device) that relays data.

統合ECU10が備えるゲートウェイ処理部の機能の概要について、図2を用いて説明する。図2は、図1の一部(図中2)を拡大した構成図である。図2では、例えば、チャネルL1がCAN通信、チャネルL2,L3がFlexRay規格に準拠した通信を行うものとする。また、チャネルL1をグローバル、チャネルL2,L3をローカルとして説明する。図2に示すように、チャネルL2,L3は統合ECU10を介してチャネルL1に接続されている。ここで、ローカルのチャネルL2,L3に接続されたECUからチャネルL2,L3にフレーム(ローカルフレームF1,F2)が送信されたとする。この場合、ローカルフレームF1,F2は、ゲートウェイ処理部により中継されてチャネルL1に向けて伝送される。このとき、ゲートウェイ処理部は、チャネルL1の許容量限界を考慮して不要なデータを削除・間引きして新たなグローバルフレームFg1を生成し、生成したグローバルフレームFg1をチャネルL1に送信する。このように、ゲートウェイ処理部は、フレームの中継機能だけでなく、必要な情報を用いて新たなフレームを生成することで通信容量を制御する機能を備えている。   The outline of the function of the gateway processing unit provided in the integrated ECU 10 will be described with reference to FIG. FIG. 2 is a configuration diagram enlarging a part of FIG. 1 (2 in the figure). In FIG. 2, for example, it is assumed that channel L1 performs CAN communication and channels L2 and L3 perform communication conforming to the FlexRay standard. The channel L1 will be described as global, and the channels L2 and L3 will be described as local. As shown in FIG. 2, the channels L2 and L3 are connected to the channel L1 via the integrated ECU 10. Here, it is assumed that a frame (local frames F1, F2) is transmitted to the channels L2, L3 from the ECU connected to the local channels L2, L3. In this case, the local frames F1 and F2 are relayed by the gateway processing unit and transmitted toward the channel L1. At this time, the gateway processing unit generates a new global frame Fg1 by deleting and thinning out unnecessary data in consideration of the allowable limit of the channel L1, and transmits the generated global frame Fg1 to the channel L1. As described above, the gateway processing unit has not only a frame relay function but also a function of controlling a communication capacity by generating a new frame using necessary information.

図3を用いて、ゲートウェイ処理部の構成の詳細を説明する。図3は、ゲートウェイ処理部1の構成概要を示すブロック図である。図3に示すように、ゲートウェイ処理部1は、複数のチャネルL1〜Ln(n:自然数)が接続されており、複数の受信バッファ30n(n:自然数)、転送部(データ転送手段)31、転送テーブル32及び複数の送信バッファ33n(n:自然数)を備えている。   Details of the configuration of the gateway processing unit will be described with reference to FIG. FIG. 3 is a block diagram illustrating a configuration outline of the gateway processing unit 1. As shown in FIG. 3, the gateway processing unit 1 has a plurality of channels L1 to Ln (n: natural number) connected thereto, a plurality of reception buffers 30n (n: natural number), a transfer unit (data transfer means) 31, A transfer table 32 and a plurality of transmission buffers 33n (n: natural number) are provided.

複数の受信バッファ30n及び複数の送信バッファ33nは、チャネルLnに対応してそれぞれ設けられている。例えば、1つのチャネルに対してそれぞれ1つの受信バッファ及び送信バッファが設けられている。複数の受信バッファ30nは、接続されたそれぞれのチャネルLnを介して受信されたフレーム(受信フレーム)を保存する機能を有している。例えば、受信バッファ301は、チャネルL1を介して受信した受信フレームを保存する。また、複数の送信バッファ33nは、当該送信バッファに対応するチャネルを用いて送信されるフレーム(送信フレーム)を保存する機能を有している。例えば、送信バッファ331は、チャネルL1を介して送信される送信フレームを保存する。   The plurality of reception buffers 30n and the plurality of transmission buffers 33n are provided corresponding to the channels Ln, respectively. For example, one reception buffer and one transmission buffer are provided for each channel. The plurality of reception buffers 30n have a function of storing a frame (reception frame) received via each connected channel Ln. For example, the reception buffer 301 stores a reception frame received via the channel L1. The plurality of transmission buffers 33n have a function of storing a frame (transmission frame) transmitted using a channel corresponding to the transmission buffer. For example, the transmission buffer 331 stores a transmission frame transmitted via the channel L1.

転送部31は、複数の受信バッファ30n及び複数の送信バッファ33nに接続されており、複数の受信バッファ30nに保存された受信フレームを特定の送信バッファへ転送する機能を有している。転送部31は、例えば、転送テーブル32を参照し、受信フレームに含まれるデータの一部又は全部を特定の送信バッファへ転送する機能を有している。この機能によって、図2を用いて説明した通信容量を制御する機能が実現される。   The transfer unit 31 is connected to the plurality of reception buffers 30n and the plurality of transmission buffers 33n, and has a function of transferring reception frames stored in the plurality of reception buffers 30n to a specific transmission buffer. For example, the transfer unit 31 refers to the transfer table 32 and has a function of transferring a part or all of the data included in the received frame to a specific transmission buffer. With this function, the function of controlling the communication capacity described with reference to FIG. 2 is realized.

転送テーブル32は、受信フレームに含まれるデータの一部又は全部を送信バッファの所定の格納位置に転送するルールを定義するものであり、例えば統合ECU10内のROM等に格納される。転送テーブル32には、例えば、受信フレームに含まれるデータのうち所定の送信バッファ33nへ転送するデータのデータ長及び当該データが格納される格納先を示す転送元アドレスと、所定の送信バッファ33nの所定の格納位置を示す転送先アドレスとを関連付けするルールが定義されている。また、この転送テーブルは、例えば、送信フレームが1つのカテゴリの受信フレームに含まれるデータから構成されるように所定のカテゴリ別に定義されて構成される。フレームのカテゴリは、例えば、受信フレームを受信したチャネルごと、受信フレームを受信したチャネルのプロトコルごと、又は受信フレームの周期ごとに分類してもよい。例えば、カテゴリとしてチャネルごとにフレームを分類する場合には、チャネルL1を介して受信された受信フレームに関しては、当該受信フレームに含まれるデータのみから送信フレームが構成され、チャネルL2を介して受信された受信フレームに関しては、当該受信フレームに含まれるデータのみから送信フレームが構成されるように、チャネル別に転送テーブルがそれぞれ定義される。   The transfer table 32 defines a rule for transferring a part or all of data included in the received frame to a predetermined storage position of the transmission buffer, and is stored in, for example, a ROM or the like in the integrated ECU 10. The transfer table 32 includes, for example, a data length of data to be transferred to a predetermined transmission buffer 33n among data included in the received frame, a transfer source address indicating a storage destination in which the data is stored, and a predetermined transmission buffer 33n. A rule for associating a transfer destination address indicating a predetermined storage position is defined. In addition, this forwarding table is defined and configured for each predetermined category so that a transmission frame is composed of data included in one category of reception frame, for example. The category of the frame may be classified, for example, for each channel that has received the received frame, for each protocol of the channel that has received the received frame, or for each period of the received frame. For example, when a frame is classified for each channel as a category, with respect to a reception frame received via the channel L1, a transmission frame is formed only from data included in the reception frame and is received via the channel L2. With respect to the received frame, a transfer table is defined for each channel so that the transmission frame is composed only of data included in the received frame.

次に、本実施形態に係るゲートウェイ処理部1の動作について説明する。図4は、本実施形態に係るゲートウェイ処理部1のバッファ間転送動作を示すフローチャートである。図4に示す制御処理は、例えば車両がイグニッションオンされたタイミングから所定の間隔で繰り返し実行される。なお、説明理解の容易性を考慮して、チャネルごとにフレームを分類した場合の例を説明する。   Next, the operation of the gateway processing unit 1 according to the present embodiment will be described. FIG. 4 is a flowchart showing the inter-buffer transfer operation of the gateway processing unit 1 according to the present embodiment. The control process shown in FIG. 4 is repeatedly executed at a predetermined interval from the timing when the vehicle is ignited, for example. An example in which frames are classified for each channel will be described in consideration of ease of understanding.

図4に示すように、ゲートウェイ処理部1は、最初に受信フレーム入力処理から開始する(S10)。S10の処理では、転送部31が、受信バッファ30nに保存された受信フレームを受信したチャネル及び当該受信フレームのバンク番地を確認する。バンク番地は、メモリ上の格納位置を示すアドレスである。   As shown in FIG. 4, the gateway processing unit 1 first starts from a received frame input process (S10). In the process of S10, the transfer unit 31 confirms the channel that has received the received frame stored in the reception buffer 30n and the bank address of the received frame. The bank address is an address indicating a storage position on the memory.

S10の処理について、図5を用いて詳細に説明する。図5は、ゲートウェイ処理部1の動作を説明する概要図である。なお、説明理解の容易性を考慮して、図5に示すゲートウェイ処理部1に接続されるチャネルは、チャネルL1,L2,L3とする。また、伝送されるフレーム又はチャネルごとにバンク番地が設定されているものとする。ここでは、チャネルL1で受信したフレームは、全て0x0XXX(X:0〜F)で標記されるバンク番地に格納されるものとする。そして、チャネルL1を介して受信フレームFr1〜Fr4を順に受信し、チャネルL3を介して伝送するものとする。そして、アドレス0x0000〜0x0007に受信フレームFr1が格納され、アドレス0x0008〜0x000Fに受信フレームFr2が格納され、アドレス0x0010〜0x0017に受信フレームFr3が格納され、アドレス0x0018〜0x001Fに受信フレームFr4が格納されるものとする。転送部31は、受信バッファを確認して受信フレームFr1〜Fr4のバンク番地をそれぞれ取得する。そして、転送部31が、バンク番地に基づいて当該受信フレームFr1〜Fr4を受信したチャネルL1を特定する。S10の処理が終了すると、転送テーブル参照処理へ移行する(S12)。   The process of S10 will be described in detail with reference to FIG. FIG. 5 is a schematic diagram for explaining the operation of the gateway processing unit 1. In consideration of ease of understanding, the channels connected to the gateway processing unit 1 shown in FIG. 5 are channels L1, L2, and L3. Further, it is assumed that a bank address is set for each frame or channel to be transmitted. Here, it is assumed that all the frames received through the channel L1 are stored in the bank address indicated by 0x0XXX (X: 0 to F). Then, it is assumed that the reception frames Fr1 to Fr4 are sequentially received via the channel L1 and transmitted via the channel L3. The received frame Fr1 is stored at addresses 0x0000 to 0x0007, the received frame Fr2 is stored at addresses 0x0008 to 0x000F, the received frame Fr3 is stored at addresses 0x0010 to 0x0017, and the received frame Fr4 is stored at addresses 0x0018 to 0x001F. Shall. The transfer unit 31 confirms the reception buffer and acquires the bank addresses of the reception frames Fr1 to Fr4. And the transfer part 31 specifies the channel L1 which received the said receiving frame Fr1-Fr4 based on a bank address. When the process of S10 ends, the process proceeds to a transfer table reference process (S12).

S12の処理では、転送部31が転送テーブル32を参照する処理である。転送テーブル32は、転送元アドレス(転送元バンク番地)、転送対象のデータ長、転送先アドレス(転送先バンク番地)が関連付けされたテーブルであり、ここではチャネルごとに定義されている。すなわち、転送部31は、チャネルL1から受信した受信フレームを転送する場合には、チャネルL1に対応した転送テーブル32を参照する。例えば、転送部31は、以下の表1に示す転送テーブル32を参照する。

Figure 0005692345

表1に示す転送テーブル32では、アドレス0x01から格納されたデータのうち1バイト分のデータをアドレス0x00へ転送するルールが定義されている。また、アドレス0x09から2バイト分のデータをアドレス0x01へ転送されるルールが定義されている。ここで、表1中のアドレス0x00は以下の表2に示すアドレス0xYZ00のYZで示す部分を省略して割り振られたアドレスである。
Figure 0005692345

Yで示される部分は、例えば受信したチャネルごとに割り当てられるアドレスであって、例えばチャネルL1では0、チャネルL3では8である。また、Zで示される部分は、例えばバッファごとに割り当てられるアドレスであって、例えばチャネルL1に対応する受信バッファでは0、チャネルL3に対応する送信バッファは8である。チャネルL1を介して受信フレームFr1〜Fr4を順に受信し、チャネルL3を介して伝送する場合には、YZで示す部分は受信バッファ内では00、送信バッファ内では08の定数となるので、表1に示すチャネルごとに定義された転送テーブル32を用いることにより、転送テーブル32のYZのアドレスを省略しても全ての受信フレームのバンク番地を指定することができる。すなわち、受信バッファにおいて、表1に示すアドレス0x00と図5に示すアドレス0x0000とは対応しており、表1に示すアドレス0x09と図5に示すアドレス0x0009とは対応している。また、送信バッファにおいて、表1に示すアドレス0x00と図5に示すアドレス0x0800とは対応している。転送部31は、表1の転送テーブル32に基づいて、転送元アドレス及びデータ長を取得し、転送元データ及び転送先アドレスを特定する。なお、上記ではチャネルL1と対応する転送テーブルのみを説明したが、チャネルL2と対応する転送テーブルもほぼ同様に定義され、チャネルL1と対応する転送テーブルで定義されたバンク番地とは異なるバンク番地を有する点のみが相違する。S12の処理が終了すると、バッファ間転送処理へ移行する(S14)。 In the process of S12, the transfer unit 31 refers to the transfer table 32. The transfer table 32 is a table in which a transfer source address (transfer source bank address), a transfer target data length, and a transfer destination address (transfer destination bank address) are associated with each other, and is defined here for each channel. That is, the transfer unit 31 refers to the transfer table 32 corresponding to the channel L1 when transferring the received frame received from the channel L1. For example, the transfer unit 31 refers to the transfer table 32 shown in Table 1 below.
Figure 0005692345

In the transfer table 32 shown in Table 1, a rule for transferring one byte of data stored from the address 0x01 to the address 0x00 is defined. Further, a rule for transferring data of 2 bytes from address 0x09 to address 0x01 is defined. Here, the address 0x00 in Table 1 is an address assigned by omitting the YZ portion of the address 0xYZ00 shown in Table 2 below.
Figure 0005692345

The portion indicated by Y is, for example, an address assigned to each received channel, and is, for example, 0 for channel L1 and 8 for channel L3. The portion indicated by Z is, for example, an address assigned for each buffer. For example, the reception buffer corresponding to channel L1 is 0, and the transmission buffer corresponding to channel L3 is 8. When receiving frames Fr1 to Fr4 are sequentially received via the channel L1 and transmitted via the channel L3, the portion indicated by YZ is a constant of 00 in the reception buffer and 08 in the transmission buffer. By using the transfer table 32 defined for each channel, the bank addresses of all received frames can be specified even if the YZ address of the transfer table 32 is omitted. That is, in the reception buffer, address 0x00 shown in Table 1 corresponds to address 0x0000 shown in FIG. 5, and address 0x09 shown in Table 1 corresponds to address 0x0009 shown in FIG. Further, in the transmission buffer, the address 0x00 shown in Table 1 corresponds to the address 0x0800 shown in FIG. The transfer unit 31 acquires the transfer source address and the data length based on the transfer table 32 of Table 1, and specifies the transfer source data and the transfer destination address. Although only the transfer table corresponding to the channel L1 has been described above, the transfer table corresponding to the channel L2 is defined in substantially the same manner, and a bank address different from the bank address defined in the transfer table corresponding to the channel L1 is selected. The only difference is that it has. When the process of S12 is completed, the process proceeds to an inter-buffer transfer process (S14).

S14の処理では、転送部31がS14の処理で特定された転送元データを転送先アドレスへ転送する処理である。これにより、図5に示すように、受信フレームFr1,Fr2に含まれるデータがそれぞれバンク番地0x0800,0x0801に送信されて、バンク番地0x0800〜0x0807に送信フレームFs1が生成される。S14の処理が終了すると、図4に示す制御処理を終了する。   In the process of S14, the transfer unit 31 transfers the transfer source data specified in the process of S14 to the transfer destination address. Thereby, as shown in FIG. 5, the data included in the reception frames Fr1 and Fr2 are transmitted to the bank addresses 0x0800 and 0x0801, respectively, and the transmission frame Fs1 is generated at the bank addresses 0x0800 to 0x0807. When the process of S14 ends, the control process shown in FIG. 4 ends.

以上で図4に示す制御処理を終了する。図4に示す制御処理を実行することにより、受信するチャネルごとに異なる転送テーブル32が参照され、異なるチャネル間でのフレームの統合及び組み替えが禁止される。例えば図6に示すように、チャネルL1で受信されたローカルフレームF1,F2は、チャネルL1と対応する転送テーブルに基づいて、チャネルL2で受信されたローカルフレームF3,F4とは統合・組み換えが行われることなく、ローカルフレームF1,F2に含まれるデータのみでグローバルフレームFg1が生成される。同様に、チャネルL2で受信されたローカルフレームF3,F4は、チャネルL2と対応する転送テーブルに基づいて、チャネルL1で受信されたローカルフレームF1,F2とは統合・組み換えが行われることなく、ローカルフレームF3,F4に含まれるデータのみでグローバルフレームFg2が生成される。これにより、異なるチャネル間でのフレームの統合及び組み替えを行うルールを管理する必要がないので、転送テーブル32で管理すべきルールの数を減少させることが可能となる。さらに、異なるチャネル間でのフレームの統合及び組み替えを禁止することで、チャネルごとに特定されるアドレス部分を省略した転送テーブル32を利用することが可能となる。例えば、ECUが採用するマイコンが16ビットであれば転送元アドレスで1バイト、転送先アドレスで1バイトの計2バイトを省略することができる。あるいは、ECUが採用するマイコンが8ビットであれば転送元アドレスで3バイト、転送先アドレスで3バイトの計6バイトを省略することができる。よって、転送テーブル32の容量を低減することが可能となる。   Thus, the control process shown in FIG. 4 is completed. By executing the control processing shown in FIG. 4, different transfer tables 32 are referred to for each channel to be received, and frame integration and rearrangement between different channels is prohibited. For example, as shown in FIG. 6, the local frames F1 and F2 received on the channel L1 are integrated and recombined with the local frames F3 and F4 received on the channel L2 based on the forwarding table corresponding to the channel L1. The global frame Fg1 is generated with only the data included in the local frames F1 and F2. Similarly, the local frames F3 and F4 received on the channel L2 are not integrated / recombined with the local frames F1 and F2 received on the channel L1 based on the transfer table corresponding to the channel L2. The global frame Fg2 is generated only from the data included in the frames F3 and F4. As a result, it is not necessary to manage the rules for integrating and rearranging frames between different channels, so that the number of rules to be managed in the transfer table 32 can be reduced. Further, by prohibiting the integration and rearrangement of frames between different channels, it is possible to use the transfer table 32 in which the address portion specified for each channel is omitted. For example, if the microcomputer employed by the ECU is 16 bits, a total of 2 bytes can be omitted: 1 byte for the transfer source address and 1 byte for the transfer destination address. Alternatively, if the microcomputer employed by the ECU is 8 bits, a total of 6 bytes, 3 bytes for the transfer source address and 3 bytes for the transfer destination address, can be omitted. Therefore, the capacity of the transfer table 32 can be reduced.

以上、本実施形態に係るゲートウェイ処理部1によれば、受信バッファ30nから送信バッファ33nへの転送を定義する転送テーブル32が、1つのカテゴリの受信フレームに含まれるデータから送信フレームが構成されるように、所定のカテゴリ別に定義されている。このように構成することで、同一のカテゴリに属する受信フレームのみを用いて、フレームを統合したり組み換えたりすることができる。このため、カテゴリの異なる受信フレームの統合・組み換えについては考慮する必要がないので、転送テーブルで管理すべきルールの数を減少させることが可能となる。よって、転送テーブルの容量を削減することができる。さらに、転送元や転送先を定義するためのデータ量も削減することが可能となる。したがって、ゲートウェイ処理部1が利用するROM等の記憶領域を効率的に利用することができる。   As described above, according to the gateway processing unit 1 according to the present embodiment, the transfer table 32 that defines the transfer from the reception buffer 30n to the transmission buffer 33n includes a transmission frame composed of data included in one category of reception frame. As described above, it is defined for each predetermined category. With this configuration, frames can be integrated or recombined using only received frames belonging to the same category. For this reason, there is no need to consider integration / recombination of received frames of different categories, and the number of rules to be managed in the forwarding table can be reduced. Therefore, the capacity of the transfer table can be reduced. Furthermore, it is possible to reduce the amount of data for defining the transfer source and transfer destination. Therefore, a storage area such as a ROM used by the gateway processing unit 1 can be efficiently used.

なお、上述した実施形態は本発明に係るゲートウェイ装置の一例を示すものである。本発明に係るゲートウェイ装置は、実施形態に係るゲートウェイ処理部1に限られるものではなく、各請求項に記載した要旨を変更しない範囲で、実施形態に係るゲートウェイ装置を変形し、又は他のものに適用したものであってもよい。   The embodiment described above shows an example of the gateway device according to the present invention. The gateway device according to the present invention is not limited to the gateway processing unit 1 according to the embodiment, and the gateway device according to the embodiment is modified or other within the scope not changing the gist described in each claim. It may be applied to.

例えば、上述した実施形態では、転送テーブルはチャネル別に定義される例を説明したが、プロトコル別に定義されてもよいし、受信フレームの周期別に定義されてもよい。例えば、CAN、FlexRayでカテゴリ分けし、それぞれのカテゴリ別に転送テーブル32のバンク番地を切替えてもよい。また、例えば、受信フレームの周期が周期10ms以下、10〜100ms、100〜1000ms、1000ms以上でカテゴリ分けし、それぞれのカテゴリ別に転送テーブル32のアドレス番地を切替えてもよい。   For example, in the above-described embodiment, an example in which the forwarding table is defined for each channel has been described. However, the forwarding table may be defined for each protocol, or may be defined for each period of a received frame. For example, categorization may be performed by CAN and FlexRay, and the bank address of the transfer table 32 may be switched for each category. Further, for example, the received frame period may be categorized by a period of 10 ms or less, 10 to 100 ms, 100 to 1000 ms, or 1000 ms or more, and the address address of the transfer table 32 may be switched for each category.

また、上述した実施形態では、1つのチャネルに対して1つの受信バッファ及び送信バッファが備わる例を説明したが、複数のチャネルに対して1つの受信バッファ及び送信バッファが備わってもよいし、1つのチャネルに対して複数の受信バッファ及び送信バッファが備わってもよい。   In the above-described embodiment, an example in which one reception buffer and transmission buffer are provided for one channel has been described. However, one reception buffer and transmission buffer may be provided for a plurality of channels. A plurality of reception buffers and transmission buffers may be provided for one channel.

1…ゲートウェイ装置、2…ECU、3…車両、30n…受信バッファ、31…転送部(データ転送手段)、32…転送テーブル、33n…送信バッファ、Ln…チャネル。 DESCRIPTION OF SYMBOLS 1 ... Gateway apparatus, 2 ... ECU, 3 ... Vehicle, 30n ... Reception buffer, 31 ... Transfer part (data transfer means), 32 ... Transfer table, 33n ... Transmission buffer, Ln ... Channel.

Claims (4)

車載され、複数のチャネルが接続されたゲートウェイ装置であって、
前記複数のチャネルのそれぞれに対応して設けられ、チャネルを介して受信された受信フレームが保存されるチャネルごとの受信バッファと、
前記複数のチャネルのそれぞれに対応して設けられ、チャネルを用いて送信される送信フレームが保存されるチャネルごとの送信バッファと、
前記複数のチャネルのそれぞれに対応し、1つのチャネルが受信した前記受信フレームに含まれるデータの一部又は全部を、1つのチャネルに対応する前記送信バッファの所定の格納位置に転送するルールが定義されたチャネルごとの転送テーブルと、
前記受信フレームを受信したチャネルに対応する前記転送テーブルを参照し、前記受信フレームに含まれるデータの一部又は全部を前記送信バッファへ転送するデータ転送手段と、
を備え、
前記転送テーブルそれぞれは、前記転送テーブルそれぞれに対応する1つのチャネルのみを介して受信される前記受信フレームに含まれる前記データの一部又は全部を用いて1つのチャネルに対応する前記送信フレームが構成されるように、フレームを受信するチャネル別に定義されているゲートウェイ装置。
A gateway device mounted on a vehicle and connected to a plurality of channels,
A reception buffer for each channel that is provided corresponding to each of the plurality of channels and that stores a reception frame received via the channel ;
A transmission buffer for each channel that is provided corresponding to each of the plurality of channels and that stores transmission frames transmitted using the channels ;
Corresponding to each of the plurality of channels, a rule is defined that transfers a part or all of data included in the received frame received by one channel to a predetermined storage position of the transmission buffer corresponding to one channel. A per-channel forwarding table,
Data transfer means for referring to the transfer table corresponding to the channel that received the received frame and transferring a part or all of the data included in the received frame to the transmission buffer;
With
Each of the forwarding tables is composed of the transmission frame corresponding to one channel using a part or all of the data included in the received frame received via only one channel corresponding to each of the forwarding tables. is the way, the gateway device Ru Tei defined per channel to receive the frame.
前記転送テーブルには、前記受信フレームに含まれるデータのうち前記送信バッファへ転送するデータのデータ長及び当該データが格納される格納先を示す転送元アドレスと、前記送信バッファの所定の格納位置を示す転送先アドレスとを関連付けする前記ルールが定義される請求項1に記載のゲートウェイ装置。   The transfer table includes a data length of data to be transferred to the transmission buffer among data included in the reception frame, a transfer source address indicating a storage destination in which the data is stored, and a predetermined storage position of the transmission buffer. The gateway device according to claim 1, wherein the rule for associating a transfer destination address to be indicated is defined. 前記転送テーブルは、前記受信フレームの周期別に定義される請求項1又は2に記載のゲートウェイ装置。   The gateway device according to claim 1, wherein the forwarding table is defined for each period of the received frame. 前記転送テーブルは、プロトコル別に定義される請求項1又は2に記載のゲートウェイ装置。   The gateway device according to claim 1, wherein the forwarding table is defined for each protocol.
JP2013259012A 2013-12-16 2013-12-16 Gateway device Active JP5692345B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013259012A JP5692345B2 (en) 2013-12-16 2013-12-16 Gateway device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013259012A JP5692345B2 (en) 2013-12-16 2013-12-16 Gateway device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010002157A Division JP2011142508A (en) 2010-01-07 2010-01-07 Gateway device

Publications (2)

Publication Number Publication Date
JP2014053970A JP2014053970A (en) 2014-03-20
JP5692345B2 true JP5692345B2 (en) 2015-04-01

Family

ID=50611946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013259012A Active JP5692345B2 (en) 2013-12-16 2013-12-16 Gateway device

Country Status (1)

Country Link
JP (1) JP5692345B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015216494A (en) * 2014-05-09 2015-12-03 株式会社東芝 Gateway device
JP6783174B2 (en) * 2016-05-27 2020-11-11 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Network hub, transfer method and in-vehicle network system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3445183B2 (en) * 1999-02-18 2003-09-08 株式会社日本自動車部品総合研究所 Data relay device and multiplex communication system
JP2006333438A (en) * 2005-04-28 2006-12-07 Fujitsu Ten Ltd Gateway apparatus and routing method
JP4804307B2 (en) * 2006-10-27 2011-11-02 富士通テン株式会社 Gateway apparatus and transfer control method
JP2009010852A (en) * 2007-06-29 2009-01-15 Mitsubishi Fuso Truck & Bus Corp On-vehicle gateway device
JP2009147786A (en) * 2007-12-17 2009-07-02 Nec Corp Communication apparatus, data frame transmission control method, and program

Also Published As

Publication number Publication date
JP2014053970A (en) 2014-03-20

Similar Documents

Publication Publication Date Title
JP6961063B2 (en) Network hub, transfer method and in-vehicle network system
CN108476161B (en) Electronic control unit, communication method, and in-vehicle network system
JP2017212724A (en) Gateway device, on-vehicle network system, transfer method, and program
WO2017203902A1 (en) Gateway device, in-vehicle network system, transfer method, and program
WO2019004173A1 (en) In-vehicle communication system, in-vehicle relay device, and relay program
JP2010021806A (en) Relay apparatuses, communication system, and communication method
US20180063246A1 (en) Method and apparatus for efficient data transfer protocol in a limited-bandwidth vehicle environment
JP2009212939A (en) Relay device, communication system, and communication method
JP5692345B2 (en) Gateway device
JP2017168994A (en) Communication device and communication system
CN112968821B (en) Electronic control unit, communication method, and in-vehicle network system
JP5900198B2 (en) COMMUNICATION SYSTEM, RELAY DEVICE, AND COMMUNICATION DEVICE
JP2008099014A (en) In-vehicle communication method, in-vehicle communication system, relay device and on-vehicle communication equipment
JP4839140B2 (en) Relay connection unit
JP2011142508A (en) Gateway device
CN112787901B (en) Network hub, forwarding method and vehicle-mounted network system
JP5728043B2 (en) Gateway device
KR20220141271A (en) Gateway for vehicle Ethernet communication and message routing method thereof
JP2009010852A (en) On-vehicle gateway device
JP2009089286A (en) Relay connection unit
JP2019009678A (en) On-vehicle communication network system
JP4033040B2 (en) Data relay apparatus and multiplex communication system
JP2021197602A (en) On-vehicle device, on-vehicle communication system, and communication control method
JP2008131481A (en) Data relay apparatus
JP7306020B2 (en) repeater

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141001

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141007

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141203

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150119

R151 Written notification of patent or utility model registration

Ref document number: 5692345

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151