JP4882401B2 - In-vehicle gateway device and data transmission order determination method for in-vehicle gateway device - Google Patents

In-vehicle gateway device and data transmission order determination method for in-vehicle gateway device Download PDF

Info

Publication number
JP4882401B2
JP4882401B2 JP2006033616A JP2006033616A JP4882401B2 JP 4882401 B2 JP4882401 B2 JP 4882401B2 JP 2006033616 A JP2006033616 A JP 2006033616A JP 2006033616 A JP2006033616 A JP 2006033616A JP 4882401 B2 JP4882401 B2 JP 4882401B2
Authority
JP
Japan
Prior art keywords
data
transmission
identification information
gateway device
waiting
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
JP2006033616A
Other languages
Japanese (ja)
Other versions
JP2007214963A (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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP2006033616A priority Critical patent/JP4882401B2/en
Publication of JP2007214963A publication Critical patent/JP2007214963A/en
Application granted granted Critical
Publication of JP4882401B2 publication Critical patent/JP4882401B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、車両内の複数のネットワーク間でデータの中継を行なう車載ゲートウェイ装置に関する。   The present invention relates to an in-vehicle gateway device that relays data between a plurality of networks in a vehicle.

従来、車両内の異なるネットワークに接続された車載装置間でのデータ転送を実現するために、ネットワーク間のデータ中継を行う車載ゲートウェイ装置が用いられている。この車載ゲートウェイ装置において、送信先を示すIDコードが付されたデータを一方のネットワークから受信し、予め記憶されたIDコードの優先順位に従って、別のネットワークへと送信するものが知られている(特許文献1)。   Conventionally, an in-vehicle gateway device that relays data between networks has been used in order to realize data transfer between in-vehicle devices connected to different networks in the vehicle. In this in-vehicle gateway device, a device that receives data with an ID code indicating a transmission destination from one network and transmits it to another network according to the priority order of ID codes stored in advance is known ( Patent Document 1).

特開2005−159568号公報JP 2005-159568 A

特許文献1に開示される車載ゲートウェイ装置は、優先順位の高いIDコードのデータを優先的に送信し、優先順位の低いIDコードのデータは後回しにする。そのため、送信エラーによるリトライの発生や送信先ネットワークの回線容量不足などにより、送信待ちのデータが車載ゲートウェイ装置において多数蓄積された場合、優先順位の低いIDコードのデータをいつまでたっても送信することができない。   The in-vehicle gateway device disclosed in Patent Document 1 preferentially transmits data of an ID code having a high priority, and postpones data of an ID code having a low priority. For this reason, if a large number of data waiting for transmission is accumulated in the in-vehicle gateway device due to the occurrence of a retry due to a transmission error or insufficient line capacity of the destination network, ID code data with a low priority can be transmitted forever. Can not.

本発明は、少なくとも1つ以上の端末機器をそれぞれ有する複数のネットワーク間で授受されるデータの中継を行う車載ゲートウェイ装置において適用される。本発明による車載ゲートウェイ装置は、送信先の識別情報が付されたデータを受信し、その受信データを送信待ちデータとして一時保存して所定の送信順序で他のネットワークに送信する。このとき、受信データに付された識別情報と、過去に一時保存された送信待ちデータに付された識別情報とを比較して、両識別情報が一致するか否かを判定し、両識別情報が一致すると判定した場合、その一致する識別情報が付された送信待ちデータを優先的に送信する。 The present invention is applied to an in-vehicle gateway device that relays data exchanged between a plurality of networks each having at least one or more terminal devices. The in-vehicle gateway device according to the present invention receives data to which transmission destination identification information is attached, temporarily stores the received data as transmission waiting data, and transmits the data to another network in a predetermined transmission order. At this time, the identification information attached to the received data is compared with the identification information attached to the transmission-waiting data temporarily stored in the past, and it is determined whether or not both pieces of the identification information match. Are determined to match, the transmission-waiting data with the matching identification information is preferentially transmitted.

本発明によれば、一方のネットワークから受信したデータを適切な順序で他のネットワークへ送信することができる。   According to the present invention, data received from one network can be transmitted to another network in an appropriate order.

−第1の実施の形態−
本発明による車載ゲートウェイ装置の一実施形態を用いた車載ネットワークの構成を図1に示す。この車載ネットワークは、ノードA1およびノードA2が接続された通信ネットワークAと、ノードB1およびノードB2が接続された通信ネットワークBとが、ゲートウェイ装置1を介して接続されている。ゲートウェイ装置1は、通信ネットワークAと通信ネットワークBの間でデータの中継や転送を行うための装置であり、通信プロトコル変換やパケットフィルタリングなどの各種ゲートウェイ機能を有している。ゲートウェイ装置1を用いることにより、通信ネットワークAと通信ネットワークBは互いのノード間で通信を行うことができる。
-First embodiment-
A configuration of an in-vehicle network using an embodiment of an in-vehicle gateway device according to the present invention is shown in FIG. In this in-vehicle network, a communication network A to which a node A1 and a node A2 are connected and a communication network B to which a node B1 and a node B2 are connected are connected via a gateway device 1. The gateway device 1 is a device for relaying and transferring data between the communication network A and the communication network B, and has various gateway functions such as communication protocol conversion and packet filtering. By using the gateway device 1, the communication network A and the communication network B can communicate with each other between the nodes.

通信ネットワークAは、たとえば車両の各種状態の情報を扱うボディー系LANに該当する。このときノードA1とノードA2は、たとえばドアロック状態、パワーウィンドウの開閉状態、ルームランプの点灯状態などに関するデータを、ネットワークAを介してそれぞれ送受信する。ネットワークBは、たとえば車両内に備えられた各種情報機器の情報を扱う情報系LANに該当する。このときノードB1およびノードB2は、たとえばオーディオECU、ナビゲーションECUなどに該当する。そして、オーディオやナビゲーション装置などに関する各種のデータを、ネットワークBを介してそれぞれ送受信する。なお、これらは通信ネットワークの一例であるため、他の内容であってもよい。   The communication network A corresponds to, for example, a body LAN that handles information on various states of the vehicle. At this time, the node A1 and the node A2 respectively transmit and receive data regarding the door lock state, the open / close state of the power window, the lighting state of the room lamp, and the like via the network A. The network B corresponds to an information LAN that handles information on various information devices provided in the vehicle, for example. At this time, the node B1 and the node B2 correspond to, for example, an audio ECU and a navigation ECU. Various types of data related to audio, navigation devices, and the like are transmitted / received via the network B. Since these are examples of communication networks, other contents may be used.

ゲートウェイ装置1の構成を図2に示す。ゲートウェイ装置1は、受信処理部4、送信待ちデータ一時保存部5、送信処理部6および送信優先順位決定部7を有している。送信優先順位決定部7は、優先順位記録部8および最優先送信データ決定部9を含んでいる。   The configuration of the gateway device 1 is shown in FIG. The gateway device 1 includes a reception processing unit 4, a transmission waiting data temporary storage unit 5, a transmission processing unit 6, and a transmission priority order determination unit 7. The transmission priority order determination unit 7 includes a priority order recording unit 8 and a highest priority transmission data determination unit 9.

受信処理部4は通信ネットワークAと接続されており、通信ネットワークAに出力されたデータの受信処理を行う。この受信データは、図1のノードA1またはノードA2から通信ネットワークAに対して出力されたものであり、送信先を示すための識別情報であるIDコードが出力時に付されている。受信処理部4は、受信データに付されたIDコードから送信先を判別し、送信先が通信ネットワークBに接続されているノードB1またはノードB2である場合は、その受信データおよびIDコードを、最優先送信データ決定部9を経由して送信待ちデータ一時保存部5へ出力する。   The reception processing unit 4 is connected to the communication network A and performs a reception process of data output to the communication network A. This received data is output from the node A1 or node A2 of FIG. 1 to the communication network A, and an ID code, which is identification information for indicating a transmission destination, is attached at the time of output. The reception processing unit 4 determines the transmission destination from the ID code attached to the reception data. When the transmission destination is the node B1 or the node B2 connected to the communication network B, the reception data and the ID code are The data is output to the transmission waiting data temporary storage unit 5 via the highest priority transmission data determination unit 9.

送信待ちデータ一時保存部5は、受信処理部4から最優先送信データ決定部9を経由して出力された受信データをIDコードと共に送信待ちデータとして一時的に保存することにより、バッファメモリ処理を行う。送信待ちデータ一時保存部5によって一時保存されたデータとIDコードは、送信処理部6からの出力要求に応じて、送信待ちデータ一時保存部5から送信処理部6へ出力される。このとき、後で説明するような方法により、出力するデータとIDコードの順序が決定される。   The transmission-waiting data temporary storage unit 5 temporarily stores received data output from the reception processing unit 4 via the highest priority transmission data determination unit 9 together with an ID code as transmission-waiting data, thereby performing buffer memory processing. Do. The data and ID code temporarily stored by the transmission waiting data temporary storage unit 5 are output from the transmission waiting data temporary storage unit 5 to the transmission processing unit 6 in response to an output request from the transmission processing unit 6. At this time, the order of data to be output and the ID code is determined by a method described later.

最優先送信データ決定部9は、受信処理部4から出力される受信データおよびIDコードを送信待ちデータ一時保存部5へ出力して一時保存させる。さらに、受信データのIDコードと、送信待ちデータ一時保存部5において既に一時保存されているIDコード、すなわち過去に一時保存された送信待ちデータのIDコードとを比較し、その比較結果に基づいて、一致するIDコードの有無を判別する。その結果、過去に一時保存されたIDコードの中に、受信データのIDコードと一致するものがあった場合は、そのIDコードが付された送信待ちデータを優先的に送信すべき最優先送信データに設定する。   The highest-priority transmission data determination unit 9 outputs the reception data and ID code output from the reception processing unit 4 to the transmission-waiting data temporary storage unit 5 for temporary storage. Furthermore, the ID code of the received data is compared with the ID code already temporarily stored in the transmission waiting data temporary storage unit 5, that is, the ID code of the transmission waiting data temporarily stored in the past, and based on the comparison result Then, it is determined whether or not there is a matching ID code. As a result, if there is an ID code temporarily stored in the past that matches the ID code of the received data, the highest priority transmission to which transmission waiting data with the ID code should be transmitted preferentially Set to data.

優先順位記録部8は、予め設定されたIDコードの優先順位が記録されている。最優先送信データ決定部9において上記のようなIDコードの比較を行った結果、過去に一時保存されたIDコードの中に受信データのIDコードと一致するものがなかった場合は、この優先順位に基づいて、送信待ちデータ一時保存部5に記録された送信待ちデータの送信順序が決定される。なお前述のように、過去に一時保存されたIDコードの中に受信データのIDコードと一致するものがあった場合は、優先順位記録部8に記録された優先順位に関わらず、そのIDコードが付されたデータは最優先送信データとして最も早い送信順序が設定される。   The priority order recording unit 8 records the priority order of ID codes set in advance. As a result of the comparison of the ID codes as described above in the highest priority transmission data determination unit 9, if no ID code temporarily stored in the past matches the ID code of the received data, this priority order Based on the above, the transmission order of the transmission waiting data recorded in the transmission waiting data temporary storage unit 5 is determined. As described above, if there is an ID code temporarily stored in the past that matches the ID code of the received data, the ID code is used regardless of the priority order recorded in the priority order recording unit 8. The earliest transmission order is set as data with the highest priority for data marked with.

送信処理部6は通信ネットワークBと接続されており、通信ネットワークBへのデータ送信処理を行う。送信処理部6は、通信ネットワークBの状態を監視しており、送信可能状態となったときに送信データの出力要求を行う。この要求に応じて、前述のようにして決定されるデータの送信順序に従って、送信待ちデータ一時保存部5から送信処理部6へ送信データおよびIDコードが出力される。この送信データとIDコードを、通信ネットワークBに対して送信する。送信処理部6からの送信データは、送信先として指定されたノードB1またはノードB2において受信される。このとき、送信データに付されたIDコードに基づいて送信先が判断される。以上説明したようにして、通信ネットワークAから通信ネットワークBへのデータ転送が行われる。   The transmission processing unit 6 is connected to the communication network B and performs data transmission processing to the communication network B. The transmission processing unit 6 monitors the state of the communication network B and makes an output request for transmission data when the transmission is possible. In response to this request, transmission data and an ID code are output from the transmission waiting data temporary storage unit 5 to the transmission processing unit 6 in accordance with the data transmission order determined as described above. The transmission data and the ID code are transmitted to the communication network B. Transmission data from the transmission processing unit 6 is received at the node B1 or the node B2 designated as the transmission destination. At this time, the transmission destination is determined based on the ID code attached to the transmission data. As described above, data transfer from the communication network A to the communication network B is performed.

なお、上記の説明では通信ネットワークAから通信ネットワークBへデータを転送する場合を説明したが、同様にして通信ネットワークBから通信ネットワークAへデータを転送するようにしてもよい。その場合、通信ネットワークBと受信処理部4が接続され、通信ネットワークAと送信処理部6が接続される。あるいは、ゲートウェイ装置1の各構成を送受信について反転したものをもう一組ゲートウェイ装置内に設けることにより、通信ネットワークBから通信ネットワークAへデータを転送できるようにしてもよい。   In the above description, the case where data is transferred from the communication network A to the communication network B has been described. However, data may be transferred from the communication network B to the communication network A in the same manner. In that case, the communication network B and the reception processing unit 4 are connected, and the communication network A and the transmission processing unit 6 are connected. Alternatively, data may be transferred from the communication network B to the communication network A by providing another set of gateway devices 1 in which each configuration of the gateway device 1 is inverted for transmission and reception.

以上説明したようにして通信ネットワークAから通信ネットワークBへデータを転送する際に実行される最優先送信データ決定処理のフローチャートを図3に示す。ステップS10では、通信ネットワークAに出力されたデータを受信処理部4において受信する。この受信データには送信先のIDコードが付されている。受信データおよびIDコードは、受信処理部4から最優先送信データ決定部9に出力される。   FIG. 3 shows a flowchart of the highest priority transmission data determination process executed when data is transferred from the communication network A to the communication network B as described above. In step S <b> 10, the data output to the communication network A is received by the reception processing unit 4. This received data is attached with the ID code of the transmission destination. The reception data and the ID code are output from the reception processing unit 4 to the highest priority transmission data determination unit 9.

ステップS20では、最優先送信データ決定部9において、ステップS10で受信した受信データに付されたIDコードと、送信待ちデータ一時保存部5において過去に一時保存されたIDコードとを比較し、受信データのIDと同じIDのデータが送信待ちデータ一時保存部5に一時保存されている送信待ちデータの中に存在するか否かを判定する。同じIDのデータが存在する場合、すなわち、送信待ちデータ一時保存部5に保存されているIDコードの中に受信データのIDコードと一致するものがあった場合は、ステップS30へ進む。   In step S20, the highest-priority transmission data determination unit 9 compares the ID code attached to the reception data received in step S10 with the ID code temporarily stored in the transmission-waiting data temporary storage unit 5 in the past. It is determined whether or not data having the same ID as the data ID exists in the transmission waiting data temporarily stored in the transmission waiting data temporary storage unit 5. If data with the same ID exists, that is, if there is an ID code stored in the transmission-waiting data temporary storage unit 5 that matches the ID code of the received data, the process proceeds to step S30.

ステップS30では、ステップS20において受信データと同じIDを持つと判定された送信待ちデータ、すなわち受信データのIDコードと一致するIDコードが付されたデータを、最優先送信データに設定する。ここで設定された最優先送信データには最初の送信順序が設定される。ステップS30を実行したら、ステップS40へ進む。この場合、送信処理部6から送信データの出力要求が行われると、それに応じて、対応するIDコードと共に最優先送信データが送信待ちデータ一時保存部5から送信処理部6へ出力される。これにより、送信処理部6において最優先送信データが優先的に通信ネットワークBに対して送信される。   In step S30, the transmission waiting data determined to have the same ID as the received data in step S20, that is, the data with the ID code that matches the ID code of the received data is set as the highest priority transmission data. The first transmission order is set for the highest priority transmission data set here. If step S30 is performed, it will progress to step S40. In this case, when a transmission data output request is made from the transmission processing unit 6, the highest priority transmission data is output from the transmission waiting data temporary storage unit 5 to the transmission processing unit 6 together with the corresponding ID code. As a result, the transmission processing unit 6 preferentially transmits the highest priority transmission data to the communication network B.

一方、ステップS20において同じIDのデータが存在しないと判定された場合、すなわち、送信待ちデータ一時保存部5に保存されているIDコードの中に受信データのIDコードと一致するものがなかった場合は、ステップS30を実行せずにステップS40へ進む。この場合、送信処理部6から送信データの出力要求が行われると、それに応じて、優先順位記録部8に記録されたIDコードの優先順位に基づいて決定された送信順序に従って、いずれかの送信待ちデータがIDコードと共に送信待ちデータ一時保存部5から送信処理部6へ出力され、通信ネットワークBに送信される。   On the other hand, if it is determined in step S20 that there is no data with the same ID, that is, if there is no ID code stored in the transmission-waiting data temporary storage unit 5 that matches the ID code of the received data. Advances to step S40 without executing step S30. In this case, when a transmission data output request is made from the transmission processing unit 6, any transmission is performed according to the transmission order determined based on the priority order of the ID codes recorded in the priority order recording unit 8 accordingly. The waiting data is output together with the ID code from the transmission waiting data temporary storage unit 5 to the transmission processing unit 6 and transmitted to the communication network B.

ステップS40では、ステップS10で受信した受信データを、IDコードと共に、送信待ちデータとして送信待ちデータ一時保存部5に一時保存する。ステップS40を実行したら、図3のフローチャートを終了する。   In step S40, the reception data received in step S10 is temporarily stored in the transmission waiting data temporary storage unit 5 as transmission waiting data together with the ID code. If step S40 is performed, the flowchart of FIG. 3 will be complete | finished.

以上説明した第1の実施の形態によれば、次の作用効果を奏する。
(1)受信処理部4により受信された通信ネットワークAからの受信データを送信待ちデータとして送信待ちデータ一時保存部5により一時保存し、その一時保存された送信待ちデータを、送信処理部6により所定の送信順序でネットワークBに送信する。このとき、最優先送信データ決定部9において、受信データに付されたIDコードと、過去に一時保存された送信待ちデータに付されたIDコードとを比較し(ステップS20)、その比較結果に基づいて、送信待ちデータの送信順序を決定する(ステップS30)こととした。このようにしたので、一方のネットワークから受信したデータを適切な順序で他のネットワークへ送信することができる。
According to 1st Embodiment described above, there exists the following effect.
(1) Data received from the communication network A received by the reception processing unit 4 is temporarily stored by the transmission waiting data temporary storage unit 5 as transmission waiting data, and the temporarily stored transmission waiting data is transmitted by the transmission processing unit 6. Transmit to network B in a predetermined transmission order. At this time, the highest-priority transmission data determination unit 9 compares the ID code attached to the received data with the ID code attached to the transmission-waiting data temporarily stored in the past (step S20). Based on this, the transmission order of the transmission waiting data is determined (step S30). Since it did in this way, the data received from one network can be transmitted to another network in an appropriate order.

(2)ステップS20では、受信データに付されたIDコードと、送信待ちデータ一時保存部5により過去に一時保存された送信待ちデータに付されたIDコードとを比較して、両IDコードが一致するか否かを判定する。両IDコードが一致すると判定した場合、ステップS30において、その一致するIDコードが付された送信待ちデータを最優先送信データに設定することにより、送信処理部6に優先的に送信させる。このようにして送信待ちデータの送信順序を決定することとしたので、予め記録された優先順位に関わらず、ネットワーク間の通信状態に応じて送信順序を決定することができる。 (2) In step S20, the ID code attached to the received data is compared with the ID code attached to the transmission waiting data temporarily stored by the transmission waiting data temporary storage unit 5 in the past, and both ID codes are found. It is determined whether or not they match. If it is determined that the two ID codes match, in step S30, the transmission processing unit 6 is preferentially transmitted by setting the transmission waiting data with the matching ID code as the highest priority transmission data. Since the transmission order of the transmission waiting data is determined in this way, the transmission order can be determined according to the communication state between the networks regardless of the priority order recorded in advance.

−第2の実施の形態−
本発明による車載ゲートウェイ装置の第2の実施形態について説明する。本実施形態におけるゲートウェイ装置1の構成を図4に示す。このゲートウェイ装置は、受信データが不要である場合にその受信データを削除するための不要データ削除部10を備えている以外の点については、図2に示した第1の実施の形態のものと同じである。
-Second Embodiment-
A second embodiment of the in-vehicle gateway device according to the present invention will be described. FIG. 4 shows the configuration of the gateway device 1 in the present embodiment. This gateway apparatus is the same as that of the first embodiment shown in FIG. 2 except that the gateway apparatus includes an unnecessary data deleting unit 10 for deleting the received data when the received data is unnecessary. The same.

不要データ削除部10は、ゲートウェイ装置1において送信優先順位決定部7の一部に設けられており、受信データのIDと同じIDのデータが送信待ちデータの中に存在する場合、これらのデータ内容を比較することにより、受信データが不要であるか否かを判断する。その結果、両者のデータ内容が一致していれば、受信データが不要であると判断して受信データを削除する。これにより、重複するデータが送信待ちデータ一時保存部5に一時保存されないようにしてバッファメモリのオーバーフローを防ぐと共に、不必要なデータ転送を防いでネットワークの回線負荷を抑えることができる。   The unnecessary data deletion unit 10 is provided in a part of the transmission priority order determination unit 7 in the gateway device 1, and when data having the same ID as the ID of the reception data exists in the transmission waiting data, the contents of these data To determine whether the received data is unnecessary. As a result, if both data contents match, it is determined that the received data is unnecessary, and the received data is deleted. This prevents duplicate data from being temporarily stored in the transmission-waiting data temporary storage unit 5 to prevent the buffer memory from overflowing, and prevents unnecessary data transfer, thereby reducing the network line load.

本実施形態において通信ネットワークAから通信ネットワークBへデータを転送する際に実行される最優先送信データ決定処理のフローチャートを図5に示す。このフローチャートでは、図3に示す第1の実施の形態におけるフローチャートと同一内容の処理ステップについて、同じステップ番号としている。以下の説明では、この第1の実施の形態と同じステップ番号の部分については、特に必要がない限りその説明を省略する。   FIG. 5 shows a flowchart of the highest priority transmission data determination process executed when data is transferred from the communication network A to the communication network B in this embodiment. In this flowchart, the same step numbers are used for processing steps having the same contents as those in the flowchart in the first embodiment shown in FIG. In the following description, the description of the same step number as that in the first embodiment is omitted unless particularly necessary.

ステップS10およびステップS20の処理を前述のようにして実行した後は、不要データ削除部10において、ステップS21およびステップS22の不要データ削除処理を行う。ステップS21では、ステップS20において受信データと同じIDを持つと判定された送信待ちデータについて、その送信待ちデータと受信データの内容を比較し、両者の内容が違っているかどうか判定する。受信データと送信待ちデータの内容が違っている場合、受信データは必要であると判断してステップS30へ進む。一方、受信データと送信待ちデータの内容が一致している場合、受信データは不要であると判断してステップSS22へ進む。なお、このとき受信データと送信待ちデータの全データ内容を比較するのではなく、パリティチェックやCRC(Cyclic Redundancy Check)などを行うことにより、データ内容が一致するか否かを判定してもよい。   After the processes of step S10 and step S20 are executed as described above, the unnecessary data deletion unit 10 performs the unnecessary data deletion process of steps S21 and S22. In step S21, with respect to the transmission waiting data determined to have the same ID as the reception data in step S20, the contents of the transmission waiting data and the reception data are compared to determine whether the contents are different. If the contents of the received data and the data waiting for transmission are different, it is determined that the received data is necessary, and the process proceeds to step S30. On the other hand, if the contents of the received data and the data waiting for transmission match, it is determined that the received data is unnecessary, and the process proceeds to step SS22. At this time, it is possible to determine whether or not the data contents match by performing a parity check, CRC (Cyclic Redundancy Check), or the like instead of comparing the entire data contents of the received data and the transmission waiting data. .

ステップS22では、ステップS10で受信した受信データをIDコードと共に削除する。この場合、受信データは送信待ちデータとして送信待ちデータ一時保存部5に一時保存されない。ステップS22を実行したらステップS30へ進む。   In step S22, the received data received in step S10 is deleted together with the ID code. In this case, the received data is not temporarily stored in the transmission waiting data temporary storage unit 5 as transmission waiting data. If step S22 is performed, it will progress to step S30.

ステップS30およびステップS40では、前述したような処理をそれぞれ実行することにより、最優先送信データの設定および送信待ちデータの一時保存を行う。ステップS40を実行したら、図5のフローチャートを終了する。   In steps S30 and S40, the above-described processing is executed to set the highest priority transmission data and temporarily store the transmission waiting data. If step S40 is performed, the flowchart of FIG. 5 will be complete | finished.

以上説明した第2の実施の形態によれば、次の作用効果を奏する。
(1)ステップS20において、受信データに付されたIDコードと、過去に一時保存された送信待ちデータに付されたIDコードとが一致すると判定した場合、さらに不要データ削除部10において、その受信データの内容と、一致するIDコードが付された送信待ちデータの内容とを比較し(ステップS21)、その比較結果に基づいて、送信待ちデータの送信順序を決定する(ステップS30)こととした。このようにしたので、第1の実施の形態よりもさらに適切な順序で、一方のネットワークから受信したデータを他のネットワークへ送信することができる。
According to 2nd Embodiment described above, there exists the following effect.
(1) If it is determined in step S20 that the ID code attached to the received data matches the ID code attached to the transmission-waiting data temporarily stored in the past, the unnecessary data deleting unit 10 further receives the received data. The content of the data is compared with the content of the transmission waiting data with the matching ID code (step S21), and the transmission order of the transmission waiting data is determined based on the comparison result (step S30). . Since it did in this way, the data received from one network can be transmitted to another network in a more appropriate order than in the first embodiment.

(2)ステップS21では、受信データの内容と、受信データと一致するIDコードが付された送信待ちデータとを比較して、両データ内容が一致するか否かを判定する。両データ内容が一致しないと判定した場合、ステップS30において、その送信待ちデータを最優先送信データに設定することにより、送信処理部6に優先的に送信させる。このようにして送信待ちデータの送信順序を決定することとしたので、第1の実施の形態と同様に、予め記録された優先順位に関わらず、ネットワーク間の通信状態に応じて送信順序を決定することができる。 (2) In step S21, the content of the received data is compared with the transmission-waiting data with the ID code that matches the received data, and it is determined whether or not the data content matches. If it is determined that the data contents do not match, in step S30, the transmission processing unit 6 is preferentially transmitted by setting the transmission waiting data as the highest priority transmission data. Since the transmission order of the transmission waiting data is determined in this way, the transmission order is determined according to the communication state between the networks regardless of the priority order recorded in advance, as in the first embodiment. can do.

(3)ステップS21において両データ内容が一致すると判定した場合、受信データを削除する(ステップS22)こととしたので、重複するデータが送信待ちデータ一時保存部5に一時保存されないようにしてバッファメモリのオーバーフローを防ぐと共に、不必要なデータ転送を防いでネットワークの回線負荷を抑えることができる。 (3) If it is determined in step S21 that the contents of both data match, the received data is deleted (step S22), so that duplicate data is not temporarily stored in the transmission-waiting data temporary storage unit 5 so that the buffer memory Network overflow, and unnecessary data transfer can be prevented to reduce the network line load.

−第3の実施の形態−
本発明による車載ゲートウェイ装置の第3の実施形態について説明する。本実施形態では、第1または第2の実施の形態において説明した最優先送信データが同時に複数設定された場合に、それらのデータの送信優先順位を決定する方法について説明する。なお、本実施形態におけるゲートウェイ装置1の構成は、図2または図4に示したものと同じであるため、ここでは説明を省略する。
-Third embodiment-
A third embodiment of the in-vehicle gateway device according to the present invention will be described. In the present embodiment, a method for determining the transmission priority of data when a plurality of highest priority transmission data described in the first or second embodiment is set at the same time will be described. Note that the configuration of the gateway device 1 in the present embodiment is the same as that shown in FIG. 2 or FIG.

本実施形態において同時に複数設定された最優先送信データの送信優先順位を決定する際に最優先送信データ決定部9において実行される最優先送信データの優先順位決定処理のフローチャートを図6に示す。図3または図5のステップS30において最優先送信データが設定されることにより、ステップS110において最優先送信データが発生すると、次にステップS120の処理が実行される。   FIG. 6 shows a flowchart of the priority determination process for the highest priority transmission data executed by the highest priority transmission data determination unit 9 when determining the transmission priority of the highest priority transmission data set at the same time in the present embodiment. If the highest priority transmission data is set in step S110 by setting the highest priority transmission data in step S30 of FIG. 3 or FIG. 5, the process of step S120 is executed next.

ステップS120では、既に設定されている送信待ち中の最優先送信データが存在するか否かを判定する。ステップS110で最優先送信データが発生するよりも前に、既に他の最優先送信データが設定されて送信待ちの状態となっている場合は、ステップS130へ進む。ステップS130では、ステップS110で発生した最優先送信データの送信優先順位を、複数存在する最優先送信データの中で最下位に設定する。このようにすることで、複数の最優先送信データが送信待ちの状態となっている場合は、過去に設定された最優先送信データから先に送信することができる。ステップS130を実行したら、図6のフローチャートを終了する。   In step S120, it is determined whether or not there is already set highest priority transmission data waiting for transmission. If other highest-priority transmission data is already set and waiting for transmission before the highest-priority transmission data is generated in step S110, the process proceeds to step S130. In step S130, the transmission priority of the highest priority transmission data generated in step S110 is set to the lowest among a plurality of highest priority transmission data. By doing in this way, when a plurality of highest priority transmission data is in a transmission waiting state, the highest priority transmission data set in the past can be transmitted first. If step S130 is performed, the flowchart of FIG. 6 will be complete | finished.

一方、ステップS120において送信待ち中の最優先送信データが存在しないと判定された場合は、ステップS140へ進む。ステップS140では、ステップS110で発生した最優先送信データの送信優先順位を第1位に設定する。ステップS140を実行したら、図6のフローチャートを終了する。   On the other hand, if it is determined in step S120 that there is no highest priority transmission data waiting for transmission, the process proceeds to step S140. In step S140, the transmission priority of the highest priority transmission data generated in step S110 is set to the first. If step S140 is performed, the flowchart of FIG. 6 will be complete | finished.

以上説明した第3の実施の形態によれば、複数の最優先送信データが同時に設定された場合であっても、過去に設定された最優先送信データから先に送信することにより、複数の最優先送信データを適切な順序で送信することができる。   According to the third embodiment described above, even when a plurality of highest priority transmission data are set simultaneously, a plurality of highest priority transmission data are transmitted by transmitting the highest priority transmission data set in the past first. The priority transmission data can be transmitted in an appropriate order.

なお、上記の各実施形態では、通信ネットワークが2つのノードによって構成されている例について説明したが、本発明はこの内容には限定されず、任意の数のノードによって通信ネットワークを構成することができる。   In each of the above embodiments, the example in which the communication network is configured by two nodes has been described. However, the present invention is not limited to this content, and the communication network may be configured by an arbitrary number of nodes. it can.

また、上記の各実施形態では、2つの通信ネットワークがゲートウェイ装置を介して接続されている車載ネットワークの例について説明したが、本発明はこの内容には限定されない。車載ネットワークにおいて用いられ、2つ以上の複数の通信ネットワークを接続して各通信ネットワーク間のデータ中継やデータ転送を行うゲートウェイ装置であれば、同様に本発明を適用することができる。   Moreover, although each said embodiment demonstrated the example of the vehicle-mounted network in which two communication networks are connected via the gateway apparatus, this invention is not limited to this content. The present invention can be similarly applied to any gateway device that is used in an in-vehicle network and connects two or more communication networks to perform data relay and data transfer between the communication networks.

以上説明した各実施の形態では、受信手段を受信処理部4、保存手段を送信待ちデータ一時保存部5、送信手段を送信処理部6、送信順序決定手段を最優先送信データ決定部9、データ削除手段を不要データ削除部9によりそれぞれ実現することとした。しかし、以上の説明はあくまで一例であり、発明を解釈する際、上記の実施形態の記載事項と特許請求の範囲の記載事項の対応関係には何ら限定も拘束もされない。   In each of the embodiments described above, the reception means is the reception processing section 4, the storage means is the transmission waiting data temporary storage section 5, the transmission means is the transmission processing section 6, the transmission order determination means is the highest priority transmission data determination section 9, and the data The deletion means is realized by the unnecessary data deletion unit 9. However, the above description is merely an example, and when interpreting the invention, there is no limitation or restriction on the correspondence between the items described in the above embodiment and the items described in the claims.

以上説明した各実施の形態や各種の変形例はあくまで一例であり、発明の特徴が損なわれない限り、本発明はこれらの内容に限定されない。   Each embodiment and various modifications described above are merely examples, and the present invention is not limited to these contents as long as the features of the invention are not impaired.

車載ネットワークの構成を示す図である。It is a figure which shows the structure of a vehicle-mounted network. 第1の実施の形態によるゲートウェイ装置の構成を示す図である。It is a figure which shows the structure of the gateway apparatus by 1st Embodiment. 第1の実施の形態において実行される最優先送信データ決定処理のフローチャートである。It is a flowchart of the highest priority transmission data determination process performed in 1st Embodiment. 第2の実施の形態によるゲートウェイ装置の構成を示す図である。It is a figure which shows the structure of the gateway apparatus by 2nd Embodiment. 第2の実施の形態において実行される最優先送信データ決定処理のフローチャートである。It is a flowchart of the highest priority transmission data determination process performed in 2nd Embodiment. 第3の実施の形態において実行される最優先送信データの優先順位決定処理のフローチャートである。It is a flowchart of the priority determination process of the highest priority transmission data performed in 3rd Embodiment.

符号の説明Explanation of symbols

1:ゲートウェイ装置 4:受信処理部
5:送信待ちデータ一時保存部 6:送信処理部
7:送信優先順位決定部 8:優先順位記録部
9:最優先送信データ決定部 10:不要データ削除部
1: Gateway device 4: Reception processing unit 5: Temporary transmission data storage unit 6: Transmission processing unit 7: Transmission priority determination unit 8: Priority recording unit 9: Top priority transmission data determination unit 10: Unnecessary data deletion unit

Claims (4)

少なくとも1つ以上の端末機器をそれぞれ有する複数のネットワーク間で授受されるデータの中継を行う車載ゲートウェイ装置であって、
前記端末機器から前記複数のネットワークのいずれかに出力されたデータであって、送信先の識別情報が付されたデータを受信データとして受信する受信手段と、
前記受信手段により受信された受信データを送信待ちデータとして一時保存する保存手段と、
前記保存手段により一時保存された送信待ちデータを所定の送信順序で他のネットワークに送信する送信手段と、
前記受信データに付された識別情報と、前記保存手段により過去に一時保存された送信待ちデータに付された識別情報とを比較して、両識別情報が一致するか否かを判定し、両識別情報が一致すると判定した場合、その一致する識別情報が付された送信待ちデータを前記送信手段に優先的に送信させる送信順序決定手段とを備えることを特徴とする車載ゲートウェイ装置。
An in-vehicle gateway device that relays data exchanged between a plurality of networks each having at least one or more terminal devices,
Receiving means for receiving, as received data, data output from the terminal device to any of the plurality of networks and having identification information of a transmission destination attached thereto;
Storage means for temporarily storing received data received by the receiving means as transmission-waiting data;
Transmission means for transmitting the transmission waiting data temporarily stored by the storage means to another network in a predetermined transmission order;
The identification information attached to the received data is compared with the identification information attached to the transmission-waiting data temporarily stored by the storage means in the past, and it is determined whether or not both identification information matches, An in-vehicle gateway device comprising: a transmission order determining unit that preferentially transmits the transmission waiting data with the matching identification information to the transmission unit when it is determined that the identification information matches .
請求項1の車載ゲートウェイ装置において、The in-vehicle gateway device according to claim 1,
前記送信順序決定手段は、前記両識別情報が一致すると判定した場合、さらに、前記受信データの内容と、前記一致する識別情報が付された送信待ちデータの内容とを比較して、両データ内容が一致するか否かを判定し、When it is determined that the two identification information matches, the transmission order determining means further compares the content of the received data with the content of the transmission waiting data to which the matching identification information is attached. Determine whether they match,
両データ内容が一致しないと判定した場合、その送信待ちデータを前記送信手段に優先的に送信させることを特徴とする車載ゲートウェイ装置。An in-vehicle gateway device characterized in that when it is determined that the contents of both data do not match, the transmission waiting data is preferentially transmitted to the transmission means.
請求項2の車載ゲートウェイ装置において、The in-vehicle gateway device according to claim 2,
前記保存手段により一時保存する前に前記受信データを削除するデータ削除手段をさらに備え、Further comprising data deletion means for deleting the received data before temporarily storing by the storage means;
前記送信順序決定手段は、前記両データ内容が一致すると判定した場合、前記データ削除手段により前記受信データを削除することを特徴とする車載ゲートウェイ装置。The in-vehicle gateway device characterized in that the transmission order determining means deletes the received data by the data deleting means when it is determined that the contents of both data match.
少なくとも1つ以上の端末機器をそれぞれ有する複数のネットワーク間で授受されるデータの中継を行う車載ゲートウェイ装置において、いずれかのネットワークから他のネットワークへデータを送信するときの送信順序の決定方法であって、In a vehicle-mounted gateway device that relays data exchanged between a plurality of networks each having at least one or more terminal devices, a transmission order determination method for transmitting data from any network to another network. And
前記端末機器から前記複数のネットワークのいずれかに出力されたデータであって、送信先の識別情報が付されたデータを受信データとして受信し、The data output to any one of the plurality of networks from the terminal device, the data with the identification information of the destination is received as received data,
前記受信データを送信待ちデータとして一時保存し、Temporarily store the received data as transmission-waiting data;
前記受信データに付された識別情報と、過去に一時保存された送信待ちデータに付された識別情報とを比較して、両識別情報が一致するか否かを判定し、両識別情報が一致すると判定した場合、その一致する識別情報が付された送信待ちデータを優先的に送信することを特徴とする車載ゲートウェイ装置のデータ送信順序決定方法。The identification information attached to the received data is compared with the identification information attached to the transmission-waiting data temporarily stored in the past, and it is determined whether or not both identification information matches. If it is determined, the data transmission order determination method for the in-vehicle gateway device, wherein the transmission waiting data with the matching identification information is preferentially transmitted.
JP2006033616A 2006-02-10 2006-02-10 In-vehicle gateway device and data transmission order determination method for in-vehicle gateway device Active JP4882401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006033616A JP4882401B2 (en) 2006-02-10 2006-02-10 In-vehicle gateway device and data transmission order determination method for in-vehicle gateway device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006033616A JP4882401B2 (en) 2006-02-10 2006-02-10 In-vehicle gateway device and data transmission order determination method for in-vehicle gateway device

Publications (2)

Publication Number Publication Date
JP2007214963A JP2007214963A (en) 2007-08-23
JP4882401B2 true JP4882401B2 (en) 2012-02-22

Family

ID=38492994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006033616A Active JP4882401B2 (en) 2006-02-10 2006-02-10 In-vehicle gateway device and data transmission order determination method for in-vehicle gateway device

Country Status (1)

Country Link
JP (1) JP4882401B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4799351B2 (en) * 2006-09-29 2011-10-26 株式会社オートネットワーク技術研究所 In-vehicle communication method, in-vehicle communication system, and relay device
JP5310138B2 (en) * 2009-03-13 2013-10-09 株式会社デンソー Vehicle control system
WO2012004859A1 (en) * 2010-07-06 2012-01-12 トヨタ自動車株式会社 Vehicle control system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005159769A (en) * 2003-11-26 2005-06-16 Calsonic Kansei Corp Gateway apparatus

Also Published As

Publication number Publication date
JP2007214963A (en) 2007-08-23

Similar Documents

Publication Publication Date Title
JP5308802B2 (en) CAN node
CN102696205B (en) Communication control system and communication control method
JP2013123998A (en) Communication control device for vehicle
JP2010258990A (en) Control system and control program updating method
US20230048058A1 (en) Anomaly determination method, anomaly determination device, and recording medium
JP4606438B2 (en) Burst scheduling method in optical burst switching system of mesh network
US7764616B2 (en) Transmitter device for controlling data transmission
JP4882401B2 (en) In-vehicle gateway device and data transmission order determination method for in-vehicle gateway device
US20150256441A1 (en) Neighbor relationship processing method and routing device
JP2014086812A (en) Can system and node
JP2006253922A (en) Gateway apparatus and data transfer method for the gateway apparatus
US8031730B2 (en) System and method for transmitting a sequence of messages in an interconnection network
US11159456B2 (en) Control apparatus
Phung et al. Enhancing rest http with random linear network coding in dynamic edge computing environments
JPH0458215B2 (en)
CN107769897A (en) Communication equipment and re-transmission controlling method
JP4361540B2 (en) Gateway device, data transfer method, and program
CN103002518A (en) Method, terminal and system for link parameter auto-negotiation based on HDLC (high-level data link control) protocol
JP4655733B2 (en) Receiving method and apparatus in ring-type duplex network
JP2008131481A (en) Data relay apparatus
JP4581925B2 (en) Data transfer apparatus and data transfer method
CN109981229A (en) Data processing method, device, computer equipment and the storage medium of rlc layer
CN113328921B (en) Data link layer communication method and device of virtual network
JP2005094249A (en) Packet relay method and packet relay apparatus
US20240137332A1 (en) Transmission of a signal from a first electronic component of a vehicle to at least one second electronic component of the vehicle

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110610

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110804

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

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

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

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4882401

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150