JP2009010852A - On-vehicle gateway device - Google Patents

On-vehicle gateway device Download PDF

Info

Publication number
JP2009010852A
JP2009010852A JP2007172161A JP2007172161A JP2009010852A JP 2009010852 A JP2009010852 A JP 2009010852A JP 2007172161 A JP2007172161 A JP 2007172161A JP 2007172161 A JP2007172161 A JP 2007172161A JP 2009010852 A JP2009010852 A JP 2009010852A
Authority
JP
Japan
Prior art keywords
frame
bus line
transmission
information
gateway device
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.)
Withdrawn
Application number
JP2007172161A
Other languages
Japanese (ja)
Inventor
Ryoji Kimura
亮司 木村
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.)
Mitsubishi Fuso Truck and Bus Corp
Original Assignee
Mitsubishi Fuso Truck and Bus 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 Mitsubishi Fuso Truck and Bus Corp filed Critical Mitsubishi Fuso Truck and Bus Corp
Priority to JP2007172161A priority Critical patent/JP2009010852A/en
Publication of JP2009010852A publication Critical patent/JP2009010852A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a gateway device reducing a communication load on a bus line and enabling stable communication. <P>SOLUTION: The on-vehicle gateway device has: a reception buffer temporarily storing a frame received from a first or second bus line for each kind of frame; a transmission buffer temporarily storing a frame transmitted to the second or first bus line; and a transmission means for transmitting the frame temporarily stored in the transmission buffer to the second or first bus line for a prescribed period. In this case, a plurality of kinds of frames temporarily stored in the reception buffer are rearranged in a single frame, and the single frame is stored in the transmission buffer. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、互いに異なるバスライン上に接続された車載の電子制御装置が通信できるように、複数のバスラインを中継するゲートウェイ装置に関する。   The present invention relates to a gateway device that relays a plurality of bus lines so that vehicle-mounted electronic control devices connected to different bus lines can communicate with each other.

従来、車両には各種の電子制御装置(Electronic Control Unit:ECU)が搭載されており、これら車載ECUは、共通の多重通信線に接続されてバス型のネットワークを構成し、互いに情報通信を行っている。また、近年では車載ECUの数やECU同士で通信する情報量の増加に伴い、例えばパワートレイン系統、車体電装品系統等ように、バスラインをいくつかの系統にグループ分けすることで、一つのバスライン上で送受信される情報量が過大とならないようにしている。   Conventionally, vehicles are equipped with various electronic control units (ECUs). These in-vehicle ECUs are connected to a common multiplex communication line to form a bus-type network and communicate information with each other. ing. In recent years, with the increase in the number of in-vehicle ECUs and the amount of information communicated between ECUs, bus lines can be grouped into several systems, such as powertrain systems and body electrical system systems. The amount of information transmitted and received on the bus line is prevented from becoming excessive.

グループ分けされたバスラインは、ゲートウェイ装置により互いに接続され、異なるバスラインに接続されている車載ECU同士でもゲートウェイ装置の中継により通信ができるようになる。   The grouped bus lines are connected to each other by the gateway device, so that vehicle-mounted ECUs connected to different bus lines can communicate with each other by relaying the gateway device.

これら車載ECU同士の標準的な通信プロトコルとして、CAN(Controller Area Network)が知られており、広く採用されている。CANバス内ではフレーム単位で情報通信がなされ、CANバス間の通信を中継する車載ゲートウェイ装置は、フレームを受信すると、同一のバスライン内で送受信されるフレームなのか、他のバスラインに転送すべきフレームなのかフレームの種類によって判断し、他のバスラインに送信されないようにブロックしたり、他のバスラインに転送したりして、中継を行っている。   As a standard communication protocol between these in-vehicle ECUs, CAN (Controller Area Network) is known and widely used. In-vehicle gateway devices that perform information communication in units of frames within the CAN bus and relay communications between CAN buses, when receiving frames, transfer frames to other bus lines, whether they are frames transmitted or received within the same bus line. The frame is determined according to the type of the frame, and relaying is performed by blocking the frame from being transmitted to another bus line or by transferring it to another bus line.

このようなフレームをバスライン間で中継する装置が、特許文献1によって開示されている。また、バスライン上のネットワーク負荷を計測して、その負荷に応じて送信周期を変化させることで、バスライン上の通信負荷を低く抑えるようにしたゲートウェイ装置が特許文献2によって開示されている。
特開2000−244548号公報 特開2006−287571号公報
An apparatus for relaying such a frame between bus lines is disclosed in Patent Document 1. Further, Patent Document 2 discloses a gateway device in which a network load on a bus line is measured and a transmission cycle is changed according to the load, thereby suppressing a communication load on the bus line.
JP 2000-244548 A JP 2006-287571 A

ところで、これら車載ECUの種類や送受信情報量の増加傾向は今後も続くと思われ、バスライン上の通信負荷の軽減が一層望まれている。最も簡単には、バスライン系統の数を増やすことで、一つのバスライン上に接続される制御装置の数を減らすようにすれば、それぞれのバスライン上の通信負荷は軽減されるが、この方法では、配線の複雑化やコスト増を招くという問題がある。   By the way, it is considered that these types of in-vehicle ECUs and the amount of transmitted / received information will continue to increase in the future, and reduction of the communication load on the bus line is further desired. In the simplest case, if the number of control devices connected to one bus line is reduced by increasing the number of bus line systems, the communication load on each bus line is reduced. However, this method has a problem that the wiring is complicated and the cost is increased.

特許文献1の技術では、データの種類毎にバッファが用意されているので、データ消失を防止することはできるものの、通信負荷を軽減するものではない。特許文献2の技術では、実際のネットワーク負荷に応じて送信周期を加減するので、一定の効果は期待できるが、通信負荷の増減に応じて送信周期を変化させるので、通信負荷が不安定になりやすいというデメリットがある。   In the technique of Patent Document 1, since a buffer is prepared for each type of data, data loss can be prevented, but communication load is not reduced. In the technique of Patent Document 2, the transmission cycle is adjusted according to the actual network load, so a certain effect can be expected, but the transmission cycle is changed according to the increase or decrease of the communication load, so the communication load becomes unstable. There is a demerit that it is easy.

本願発明はかかる事情に鑑みてなされたものであり、バスライン上の通信負荷を軽減するとともに、安定させることが可能なゲートウェイ装置を提供することを目的の一つとする。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide a gateway device that can reduce and stabilize the communication load on the bus line.

このため、本願発明に係る車載ゲートウェイ装置では、第一のバスラインと第二のバスラインとを中継し、前記第一のバスラインまたは第二のバスラインから受信したフレームをその種類毎に一時保存する受信バッファと、前記第二のバスラインまたは第一のバスラインに送信するフレームを一時保存する送信バッファと、前記送信バッファに一時保存されているフレームを所定の周期で前記第二のバスラインまたは第一のバスラインに送信する送信手段と、を備え、さらに、前記受信バッファに一時保存されている複数種類のフレームを単一フレームに再配置し、当該単一フレームを前記送信バッファに保存する再配置手段を有する。したがって、本願発明に係る車載ゲートウェイ装置は、バスラインから受信した複数のフレームを単一のフレームに再配置して、これを所定の周期で送信する。   Therefore, in the in-vehicle gateway device according to the present invention, the first bus line and the second bus line are relayed, and the frames received from the first bus line or the second bus line are temporarily stored for each type. A reception buffer to store, a transmission buffer to temporarily store a frame to be transmitted to the second bus line or the first bus line, and a frame temporarily stored in the transmission buffer to the second bus at a predetermined cycle Transmitting means for transmitting to the line or the first bus line, and further rearranging a plurality of types of frames temporarily stored in the reception buffer into a single frame, and the single frame to the transmission buffer. Relocation means for storing. Therefore, the in-vehicle gateway device according to the present invention rearranges a plurality of frames received from the bus line into a single frame and transmits them in a predetermined cycle.

また、好ましくは、前記再配置手段は、前記受信バッファに保存されているフレームの情報のうち、所定の情報のみを選択して、前記単一フレームに再配置する。   Preferably, the rearrangement unit selects only predetermined information from the frame information stored in the reception buffer and rearranges the information in the single frame.

また、好ましくは、前記選択される所定の情報がそれぞれ、最後に送信フレームが送信されてから更新されたかどうかを記録する更新記録手段を備え、前記再配置手段は、前記更新記録手段の記録に基づいて前記選択される所定の情報が更新されていない場合には、更新されていないことを示す情報を、前記単一フレームに付加する。したがって、単一フレームには、最後に送信フレームが送信された後に、情報が更新されているか否かの情報が含まれる。より具体的には、前記再配置手段は、前記選択される所定の情報が更新されていないことを示す情報を前記単一フレームに付加することを、当該単一フレームにおいて前記所定の情報を示す領域のビットパターンを予め定めたものにすることによって実現する。   Preferably, the predetermined information to be selected includes update recording means for recording whether or not each of the selected predetermined information has been updated since the last transmission frame was transmitted, and the rearrangement means records the update recording means in the record. If the predetermined information selected based on the information is not updated, information indicating that the information is not updated is added to the single frame. Accordingly, the single frame includes information indicating whether or not the information has been updated since the last transmission frame was transmitted. More specifically, the rearrangement unit indicates that the predetermined information is added to the single frame indicating that the selected predetermined information is not updated, and indicates the predetermined information in the single frame. This is realized by making the bit pattern of the area predetermined.

さらに、好ましくは、前記受信バッファに一時保存されている複数種類のフレーム毎に送信優先度を判断する優先度判断手段を備え、前記送信手段は、前記優先度判断手段および前記更新記録手段による記録に基づいて、前記受信バッファに一時保存されている複数種類のフレームのうち、更新されたフレームの送信優先度が高いほど、前記所定の周期を短くするようにしてもよい。このようにすると、本願発明にかかる車載ゲートウェイ装置は、送信優先度の高いフレームを受信すると、短い周期で再配置、送信する。   Furthermore, preferably, a priority determination unit that determines a transmission priority for each of a plurality of types of frames temporarily stored in the reception buffer is provided, and the transmission unit performs recording by the priority determination unit and the update recording unit. On the basis of the above, the predetermined period may be shortened as the transmission priority of the updated frame among the plurality of types of frames temporarily stored in the reception buffer increases. If it does in this way, the vehicle-mounted gateway apparatus concerning this invention will rearrange and transmit in a short period, if a flame | frame with a high transmission priority is received.

本発明によれば、受信バッファに一時保存されている複数種類のフレームを単一フレームに再配置し、当該単一フレームを前記送信バッファに保存し、所定の周期でバスラインに送信するので、通信負荷を軽減し、安定してフレームを送信(中継)することができる。   According to the present invention, a plurality of types of frames temporarily stored in the reception buffer are rearranged into a single frame, the single frame is stored in the transmission buffer, and transmitted to the bus line at a predetermined cycle. It is possible to reduce communication load and transmit (relay) frames stably.

(第一実施形態)
図1に本発明の一実施形態に係る車載ゲートウェイ装置を搭載した車両のネットワーク構成図を示す。この車両では、主に車体に搭載される電装品を制御する電子制御装置(ECU)が接続されているバスライン1(第一のバスライン)と、主にパワートレイン系のECUが接続されているバスライン2(第二のバスライン)とがゲートウェイ装置30により通信可能に接続されている。具体的には、バスライン1には、エアコントローラー用ECU11、運転注意力監視装置用ECU12、ヘッドライトの光軸調整装置用ECU13等が接続されている。また、バスライン2には、エンジンECU21、変速機コントローラ22、アイドルストップスタート(ISS)用ECU23等が接続されており、主に比較的速い通信速度が求められる制御装置が接続されている。また、各制御装置およびゲートウェイ装置30はそれぞれ、公知の中央処理装置(CPU)、RAM、ROM等の電子部品から構成される。
(First embodiment)
FIG. 1 shows a network configuration diagram of a vehicle equipped with an in-vehicle gateway device according to an embodiment of the present invention. In this vehicle, a bus line 1 (first bus line) to which an electronic control unit (ECU) that mainly controls electrical components mounted on the vehicle body is connected, and a powertrain system ECU are mainly connected. The bus line 2 (second bus line) is connected by the gateway device 30 so as to be communicable. Specifically, an air controller ECU 11, a driving attention monitoring device ECU 12, a headlight optical axis adjusting device ECU 13, and the like are connected to the bus line 1. The bus line 2 is connected to an engine ECU 21, a transmission controller 22, an idle stop start (ISS) ECU 23, and the like, and is connected to a control device that is mainly required to have a relatively high communication speed. Each control device and gateway device 30 are each composed of a known central processing unit (CPU), electronic components such as RAM, ROM and the like.

図1のネットワークは、通信プロトコルとしてCAN(Controller Area Network)を利用している。各バスラインに接続されたECUは、フレーム単位で情報を受発信しており、図2にフレームの構成の概要を示す。CANプロトコルにおけるフレーム構成については公知であるので、詳細説明は省くが、フレームの開始を示すSOF、フレームの種類毎に与えられるIDの領域、実際に送信するデータのための領域等を含んで構成される。   The network in FIG. 1 uses CAN (Controller Area Network) as a communication protocol. The ECU connected to each bus line transmits and receives information in frame units, and FIG. 2 shows an outline of the frame configuration. Since the frame structure in the CAN protocol is well known, a detailed description is omitted, but it includes an SOF indicating the start of the frame, an ID area given for each frame type, an area for data to be actually transmitted, etc. Is done.

このようなフレームを受発信する各ECUは、フレームのID番号によって、自らが受信すべきフレームを区別する。例えば、バスライン2に接続されているエンジンECU21は、エンジン運転状態等の情報を含むフレームをバスライン2上に送信する。同じくバスライン2に接続されている変速機コントローラ22は、バスライン2上に送信された当該フレームのID番号を読み取り、自らが受信すべきフレームとして予め記憶しているID番号と比較する。その結果、一致するものがあれば、そのフレームは自らが受信すべきフレームであると判断し、なければ自らが受信すべきフレームではないと判断する。このようにして、フレームを受発信するECU同士で通信を行う。   Each ECU that receives and transmits such a frame distinguishes the frame that it should receive by the ID number of the frame. For example, the engine ECU 21 connected to the bus line 2 transmits a frame including information such as the engine operating state on the bus line 2. Similarly, the transmission controller 22 connected to the bus line 2 reads the ID number of the frame transmitted on the bus line 2 and compares it with the ID number stored in advance as a frame to be received by the transmission controller 22. As a result, if there is a match, it is determined that the frame is to be received by itself, and if it is not, it is determined that the frame is not to be received by itself. In this way, communication is performed between ECUs that receive and transmit frames.

一方、ゲートウェイ装置30は、フレームを受信すると、その種類によって、一つのバスラインに接続されたECU同士でのみに受発信されるものか、別のバスラインに接続されたECUとの間でも受発信されるものかを予め記憶しているテーブルを参照して判断し、フレームをブロックしたり転送したりする。   On the other hand, when the gateway device 30 receives a frame, depending on the type of the gateway device 30, the gateway device 30 receives / transmits only between ECUs connected to one bus line, or receives / receives data from / to an ECU connected to another bus line. It is judged by referring to a previously stored table whether it is transmitted, and the frame is blocked or transferred.

図3に、ゲートウェイ装置30の記録領域の概念図を示す。ゲートウェイ装置30は、記録領域として、転送処理を行うフレームを一時的に保存しておく受信バッファ301と、当該受信バッファに保存されているフレームの更新の有無をチェックするための更新フラグ用記録領域302(更新記録手段)とを備える。受信バッファ301は更にフレーム単位で分割されており、フレームの種類毎にその保存領域が定められる。例えば、エンジンECU21から送信されるフレームは、受信バッファ301の中の特定の領域301aに保存されるようになっている。また、更新フラグ用記憶領域302は、これらフレームの種類毎に設けられた記憶領域に対応して設けられており、対応するフレームの更新の有無を記録する(更新記録手段)。この他、ゲートウェイ装置30は、送信フレームを一時的に保存しておく送信バッファ303と、フレームの種類毎にどのバスラインから受信してどのバスラインに転送するのかを示したテーブル保存領域304とを備える。   FIG. 3 shows a conceptual diagram of the recording area of the gateway device 30. The gateway device 30 has, as recording areas, a reception buffer 301 for temporarily storing a frame to be transferred, and an update flag recording area for checking whether or not the frame stored in the reception buffer is updated. 302 (update recording means). The reception buffer 301 is further divided in units of frames, and a storage area is determined for each frame type. For example, a frame transmitted from the engine ECU 21 is stored in a specific area 301 a in the reception buffer 301. The update flag storage area 302 is provided corresponding to the storage area provided for each type of frame, and records whether or not the corresponding frame has been updated (update recording means). In addition, the gateway device 30 includes a transmission buffer 303 that temporarily stores transmission frames, a table storage area 304 that indicates which bus line is received and transferred to which bus line for each frame type, and Is provided.

次に、ゲートウェイ装置30の機能について図4のフローチャートを用いて説明する。
ゲートウェイ装置30は、フレームの受信、受信バッファへの保存、および更新フラグのセットを行う(ステップS100)。フレームを受信すると、当該受信フレームを受信バッファに保存するが、前述のとおり、フレームの種類に応じて予め保存すべき領域が定められているので、その定めにしたがって保存される。このとき、受信フレーム毎に予め定められた更新フラグの記録領域302において、対応するフラグをセットする。所定の送信周期が経過するまでは、この処理を繰り返す(ステップS200)。
Next, functions of the gateway device 30 will be described with reference to the flowchart of FIG.
The gateway device 30 receives a frame, stores it in a reception buffer, and sets an update flag (step S100). When a frame is received, the received frame is stored in the reception buffer. As described above, since an area to be stored is determined in advance according to the type of the frame, it is stored in accordance with the determination. At this time, the corresponding flag is set in the update flag recording area 302 predetermined for each received frame. This process is repeated until a predetermined transmission cycle elapses (step S200).

所定の送信周期が経過すると、ゲートウェイ装置30は、受信バッファに一時保存されている受信フレームを単一のフレームに再配置する(ステップS300)。このとき、これらの受信フレームに示されている全ての情報を単一のフレームに再配置するようにしても良いが、本実施形態においては、ここで情報の取捨選択を行う。すなわち、一つのフレーム内には複数の情報が示されているが、ゲートウェイ装置30が中継を必要としない情報、すなわち、バスラインを越えて他のECUに伝達する必要のない情報も含まれている場合がある。このような情報を再配置時に省き、所定の情報のみを選択して再配置することにより、複数のフレームを単一の送信フレームに再配置することができるので、バスラインの通信負荷を低減することができる。   When the predetermined transmission cycle has elapsed, the gateway device 30 rearranges the reception frames temporarily stored in the reception buffer into a single frame (step S300). At this time, all the information shown in these received frames may be rearranged in a single frame, but in this embodiment, the information is selected. That is, a plurality of pieces of information are shown in one frame, but information that the gateway device 30 does not need to relay, that is, information that does not need to be transmitted to other ECUs across the bus line is also included. There may be. By omitting such information during rearrangement and selecting and rearranging only predetermined information, a plurality of frames can be rearranged into a single transmission frame, thereby reducing the communication load on the bus line. be able to.

一方、再配置に際しては、更新フラグの情報も考慮される。すなわち、更新フラグがセットされている場合は、今回の送信周期において新たにフレームが受信されているが、セットされていない場合には、今回の送信周期において新たにフレームが受信されていないことになるので、この情報を単一の送信フレームに含める。具体的には、更新フラグがセットされている場合、すなわち、今回の送信周期において新たにフレームが受信されている場合には、その情報をそのまま利用する。一方、更新フラグがセットされていない場合、すなわち、今回の送信周期において新たにフレームを受信しなかった場合には、受信バッファに保存されている情報をそのまま利用するのではなく、特定のビットパターンに置き換えて、単一の送信フレームを構成する。   On the other hand, the information on the update flag is also taken into consideration in the rearrangement. That is, if the update flag is set, a new frame is received in the current transmission cycle, but if it is not set, no new frame is received in the current transmission cycle. Therefore, this information is included in a single transmission frame. Specifically, when the update flag is set, that is, when a new frame is received in the current transmission cycle, the information is used as it is. On the other hand, when the update flag is not set, that is, when a new frame is not received in the current transmission cycle, the information stored in the reception buffer is not used as it is, but a specific bit pattern is used. To form a single transmission frame.

例えば、単一の送信フレームに含めるものとして選択された情報が2ビットの情報だった場合、「00」、「01」、「10」、「11」の4つのビットパターンが表現可能であるが、これらのうち、「11」を更新がなかった場合のビットパターンとして予め定めておく。このようにすることで、送信フレーム内のデータ領域を有効活用でき、更新有無の情報を効率良く送信フレームに付加することができる。勿論、更新有無を示す領域を送信フレームの一部に加えるようにしても良いが、その場合には、その分だけ送信フレーム内における再配置可能なデータ領域が減少するので、単一の送信フレームに再配置できるフレームの数が減少し、結果として、通信負荷が増加するというデメリットを伴う。   For example, when information selected to be included in a single transmission frame is 2-bit information, four bit patterns of “00”, “01”, “10”, and “11” can be expressed. Of these, “11” is determined in advance as a bit pattern when there is no update. By doing in this way, the data area in a transmission frame can be used effectively and the information on the presence or absence of an update can be added to a transmission frame efficiently. Of course, an area indicating the presence / absence of update may be added to a part of the transmission frame, but in that case, the data area that can be relocated in the transmission frame is reduced by that amount. The number of frames that can be rearranged is reduced, and as a result, the communication load increases.

そして、ゲートウェイ装置30は、送信バッファに保存されている単一の送信フレームを第一のバスライン上または第二のバスライン上に送信し(ステップS400)、更新フラグ302を全てリセットする(ステップS500)。   Then, the gateway device 30 transmits a single transmission frame stored in the transmission buffer onto the first bus line or the second bus line (step S400), and resets all the update flags 302 (step S400). S500).

以上のように、本実施形態に係るゲートウェイ装置30は、フレームの種類毎に受信バッファに保存されている情報を単一のフレームに再配置して、所定の周期で送信するので、受信タイミングの異なる複数のフレームを均一のタイミングで中継する。これにより、ゲートウェイ装置30によって中継される送信フレームの送信周期が安定し、システム全体の通信負荷が安定する。また、再配置する情報を取捨選択するので、送信フレームのデータ領域を有効活用でき、単一の送信フレームで送信できるようになり、通信負荷を低減することができる。さらに、送信フレームには更新情報を含ませているので、これを受信したECUは、受け取った情報が更新されているものか否かを区別することができる。すなわち、受信頻度の異なる複数のフレームを所定のタイミングで単一フレームに再配置することによって、情報の更新が不明となるような事態を未然に防止している。更新の有無が不明とはならないので、例えば、所定時間以上更新がない場合に異常と判断するようなロジックを受信側ECUで成立させることができる。さらに、所定の送信周期は、受信フレームの受信周期と無関係に設定できるので、実験や机上計算により予めシステム全体の通信負荷を考慮した適切な値に設定することもできるし、車両の状態等に応じて臨機応変に変化させることもできる。すなわち、送信周期の設計自由度が増すことで、通信システム全体の負荷を安定させることができる。   As described above, the gateway device 30 according to the present embodiment rearranges the information stored in the reception buffer for each frame type into a single frame and transmits it in a predetermined cycle. A plurality of different frames are relayed at a uniform timing. Thereby, the transmission cycle of the transmission frame relayed by the gateway apparatus 30 is stabilized, and the communication load of the entire system is stabilized. Further, since the information to be rearranged is selected, the data area of the transmission frame can be used effectively, and transmission can be performed with a single transmission frame, thereby reducing the communication load. Further, since update information is included in the transmission frame, the ECU that has received the information can distinguish whether or not the received information has been updated. That is, by rearranging a plurality of frames having different reception frequencies into a single frame at a predetermined timing, it is possible to prevent a situation in which the update of information is unknown. Since the presence or absence of the update does not become unknown, for example, a logic that determines that there is an abnormality when there is no update for a predetermined time or more can be established in the receiving ECU. Furthermore, since the predetermined transmission period can be set regardless of the reception period of the received frame, it can be set to an appropriate value in consideration of the communication load of the entire system in advance through experiments and desktop calculations, and it can be set according to the state of the vehicle. You can change it accordingly. That is, the load on the entire communication system can be stabilized by increasing the design freedom of the transmission cycle.

本実施形態は上述のように構成したが、これらは一例に過ぎず、本願発明は必ずしも当該内容に限定されない。例えば、本実施形態においては、更新フラグは受信フレームの種類毎に設定したが、再配置手段で選択する情報単位で設定するようにしても良い。また、本実施形態においては、バスラインは2系統のみとしたが、3系統以上のバスラインを中継するようなゲートウェイ装置としても良い。また、本実施形態においては、単一の送信フレームを1種類のみとしたが、複数の受信フレームを単一に再配置される送信フレームが複数あってもよい。受信フレームの数、情報量が多すぎて、全ての受信フレームを一つの送信フレームに再配置することが困難な場合には、有効である。この他、本願発明の趣旨を逸脱しない範囲で、技術常識等を加味して種々の変更が可能である。
Although the present embodiment is configured as described above, these are merely examples, and the present invention is not necessarily limited to the contents. For example, in this embodiment, the update flag is set for each type of received frame, but may be set for each information unit selected by the rearrangement means. In this embodiment, only two bus lines are provided, but a gateway device that relays three or more bus lines may be used. In the present embodiment, only one type of single transmission frame is used. However, there may be a plurality of transmission frames in which a plurality of reception frames are rearranged into a single one. This is effective when the number of received frames and the amount of information are too large and it is difficult to rearrange all received frames into one transmission frame. In addition, various modifications can be made in consideration of technical common sense and the like without departing from the spirit of the present invention.

(第二実施形態)
第二実施形態においては、第一実施形態に加えて、さらに送信優先度の概念を取り入れたものである。すなわち、第一実施形態においては、車載ゲートウェイ装置は所定の周期で単一の送信フレームを送信していたが、第二実施形態においては、更新された情報の重要度に応じて送信する周期を可変とするものである。
(Second embodiment)
The second embodiment further incorporates the concept of transmission priority in addition to the first embodiment. That is, in the first embodiment, the in-vehicle gateway device transmits a single transmission frame at a predetermined cycle, but in the second embodiment, a cycle for transmitting according to the importance of updated information is set. It is assumed to be variable.

より具体的には、第二実施形態では、図4のステップS100の処理のみ第一実施形態と異なる処理を行う。すなわち、第一実施形態におけるステップS100では、フレームを受信次第、受信バッファへの保存と更新フラグのセットを行うが、第二実施形態においては、さらに、次の処理を行う。すなわち、受信フレーム毎に送信優先度を予め定めておき、例えば、送信優先度として「中(通常)」と「大(緊急)」の二種類を定めておき、更新フラグをセットした後に、当該フレームの送信優先度をチェックする。すなわち、受信したフレームの送信優先度が、「中(通常)」だった場合には、送信周期をデフォルトのままとし、受信したフレームの送信優先度が「大(緊急)」だった場合には、送信周期をデフォルトよりも短いものとする。   More specifically, in the second embodiment, only the process of step S100 in FIG. That is, in step S100 in the first embodiment, as soon as a frame is received, it is stored in the reception buffer and an update flag is set. In the second embodiment, the following processing is further performed. That is, a transmission priority is determined in advance for each received frame, for example, two types of transmission priority “medium (normal)” and “large (emergency)” are determined, and after the update flag is set, Check the frame transmission priority. That is, if the transmission priority of the received frame is “medium (normal)”, the transmission cycle is left as default, and if the transmission priority of the received frame is “high (emergency)” The transmission period is shorter than the default.

このようにすることで、次のステップS200において参照される送信周期が可変となるので、送信優先度の高いフレームを受信した場合には、より短い周期でステップS300に移行し、応答性よく中継することができる。なお、送信優先度を3段階以上とすることも勿論可能である。このような場合でも、送信周期のデフォルト値を最も長いものにしておいて、送信優先度の高いフレームを受信する度に、当該送信周期を短くすることによって、簡単に実現できる。
By doing so, the transmission cycle referred to in the next step S200 becomes variable, so when a frame with a high transmission priority is received, the process moves to step S300 in a shorter cycle and relays with good responsiveness. can do. Of course, it is possible to set the transmission priority to three or more levels. Even in such a case, it can be easily realized by setting the default value of the transmission cycle to the longest and shortening the transmission cycle each time a frame having a high transmission priority is received.

本発明の車載ゲートウェイ装置が適用されるネットワーク構成図である。It is a network block diagram to which the in-vehicle gateway device of the present invention is applied. 本発明の車載ゲートウェイ装置が受発信するデータフレームの構成図である。It is a block diagram of the data frame which the vehicle-mounted gateway apparatus of this invention receives / transmits. 本発明の車載ゲートウェイ装置の記録領域を示す概念図である。It is a conceptual diagram which shows the recording area | region of the vehicle-mounted gateway apparatus of this invention. 本発明の車載ゲートウェイ装置において実行される制御を示すフローチャートである。It is a flowchart which shows the control performed in the vehicle-mounted gateway apparatus of this invention.

符号の説明Explanation of symbols

30 車載ゲートウェイ装置
301 受信バッファ
302 更新フラグ
303 送信バッファ
30 In-vehicle gateway device 301 Reception buffer 302 Update flag 303 Transmission buffer

Claims (5)

第一のバスラインと第二のバスラインとを中継する車載ゲートウェイ装置であって、
前記第一のバスラインまたは第二のバスラインから受信したフレームをその種類毎に一時保存する受信バッファと、
前記第二のバスラインまたは第一のバスラインに送信するフレームを一時保存する送信バッファと、
前記送信バッファに一時保存されているフレームを所定の周期で前記第二のバスラインまたは第一のバスラインに送信する送信手段と、
を有する車載ゲートウェイ装置において、
前記受信バッファに一時保存されている複数種類のフレームを単一フレームに再配置し、当該単一フレームを前記送信バッファに保存する再配置手段
を有する車載ゲートウェイ装置。
An in-vehicle gateway device that relays between a first bus line and a second bus line,
A reception buffer for temporarily storing frames received from the first bus line or the second bus line for each type; and
A transmission buffer for temporarily storing frames to be transmitted to the second bus line or the first bus line;
Transmitting means for transmitting the frame temporarily stored in the transmission buffer to the second bus line or the first bus line at a predetermined cycle;
In-vehicle gateway device having
An in-vehicle gateway device comprising rearrangement means for rearranging a plurality of types of frames temporarily stored in the reception buffer into a single frame and storing the single frame in the transmission buffer.
前記再配置手段は、前記受信バッファに保存されているフレームの情報のうち、所定の情報のみを選択して、前記単一フレームに再配置する
請求項1に記載の車載ゲートウェイ装置。
The in-vehicle gateway device according to claim 1, wherein the rearrangement unit selects only predetermined information from the frame information stored in the reception buffer and rearranges the information in the single frame.
前記選択される所定の情報がそれぞれ、最後に送信フレームが送信されてから更新されたかどうかを記録する更新記録手段を備え、
前記再配置手段は、前記更新記録手段の記録に基づいて前記選択される所定の情報が更新されていない場合には、更新されていないことを示す情報を、前記単一フレームに付加する
請求項2に記載の車載ゲートウェイ装置。
Each of the selected predetermined information includes update recording means for recording whether or not the information has been updated since the last transmission frame was transmitted,
The rearrangement unit adds information indicating that the information is not updated to the single frame when the predetermined information selected based on the record of the update recording unit is not updated. The in-vehicle gateway device according to 2.
前記再配置手段は、前記選択される所定の情報が更新されていないことを示す情報を前記単一フレームに付加することを、当該単一フレームにおいて前記所定の情報を示す領域のビットパターンを予め定めたものにすることによって実現する
請求項3に記載の車載ゲートウェイ装置。
The rearrangement means adds information indicating that the selected predetermined information has not been updated to the single frame, and sets a bit pattern of an area indicating the predetermined information in the single frame in advance. The in-vehicle gateway device according to claim 3, which is realized by making the predetermined one.
前記受信バッファに一時保存されている複数種類のフレーム毎に送信優先度を判断する優先度判断手段を備え、
前記送信手段は、前記優先度判断手段および前記更新記録手段による記録に基づいて、前記受信バッファに一時保存されている複数種類のフレームのうち、更新されたフレームの送信優先度が高いほど、前記所定の周期を短くする
請求項3または4に記載の車載ゲートウェイ装置。
A priority determination means for determining a transmission priority for each of a plurality of types of frames temporarily stored in the reception buffer;
The transmission means, based on the recording by the priority determination means and the update recording means, among the multiple types of frames temporarily stored in the reception buffer, the higher the transmission priority of the updated frame, The in-vehicle gateway device according to claim 3 or 4, wherein the predetermined cycle is shortened.
JP2007172161A 2007-06-29 2007-06-29 On-vehicle gateway device Withdrawn JP2009010852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007172161A JP2009010852A (en) 2007-06-29 2007-06-29 On-vehicle gateway device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007172161A JP2009010852A (en) 2007-06-29 2007-06-29 On-vehicle gateway device

Publications (1)

Publication Number Publication Date
JP2009010852A true JP2009010852A (en) 2009-01-15

Family

ID=40325442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007172161A Withdrawn JP2009010852A (en) 2007-06-29 2007-06-29 On-vehicle gateway device

Country Status (1)

Country Link
JP (1) JP2009010852A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011142508A (en) * 2010-01-07 2011-07-21 Toyota Motor Corp Gateway device
JP2014046818A (en) * 2012-08-31 2014-03-17 Mitsubishi Electric Corp Train radio system
JP2014053970A (en) * 2013-12-16 2014-03-20 Toyota Motor Corp Gateway unit
KR101608356B1 (en) 2014-10-24 2016-04-01 주식회사 유라코퍼레이션 Gateway apparatus and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011142508A (en) * 2010-01-07 2011-07-21 Toyota Motor Corp Gateway device
JP2014046818A (en) * 2012-08-31 2014-03-17 Mitsubishi Electric Corp Train radio system
JP2014053970A (en) * 2013-12-16 2014-03-20 Toyota Motor Corp Gateway unit
KR101608356B1 (en) 2014-10-24 2016-04-01 주식회사 유라코퍼레이션 Gateway apparatus and method

Similar Documents

Publication Publication Date Title
WO2018185994A1 (en) Control device, transfer method, and computer program
JP2018074547A (en) On-vehicle network system
CN112099464B (en) Communication method of Ethernet for vehicle
JP2002026957A (en) Multiplex communication system
JP2007036907A (en) Gateway apparatus
JP2015154185A (en) On-vehicle control device
JP2014072673A (en) Relay device
JP2007300331A (en) Onboard database system
JP2009010852A (en) On-vehicle gateway device
JP2008271040A (en) Communication apparatus and communication system
JP2021035804A (en) On-vehicle control device
JP2007228232A (en) On-vehicle lan system, electronic control unit, and relay connection unit
JP4786330B2 (en) In-vehicle LAN system, electronic control unit and relay connection unit
JP2009027270A (en) Communication system, repeater and communication method
JP2006340099A (en) Gateway unit
JP4839140B2 (en) Relay connection unit
US8605744B2 (en) Semiconductor integrated circuit device
JP4754940B2 (en) Relay connection unit
JP2006192970A (en) On-vehicle communication connector and on-vehicle communication system
JP2009017154A (en) On-vehicle gateway device
JP2009089286A (en) Relay connection unit
JP4954832B2 (en) In-vehicle communication system
JP4361540B2 (en) Gateway device, data transfer method, and program
JP2019009678A (en) On-vehicle communication network system
CN114095528A (en) In-vehicle network system and storage medium storing program for causing computer to execute processing

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20100421

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100907