Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7704020B2 - Repeater - Google Patents
[go: Go Back, main page]

JP7704020B2 - Repeater - Google Patents

Repeater Download PDF

Info

Publication number
JP7704020B2
JP7704020B2 JP2021193137A JP2021193137A JP7704020B2 JP 7704020 B2 JP7704020 B2 JP 7704020B2 JP 2021193137 A JP2021193137 A JP 2021193137A JP 2021193137 A JP2021193137 A JP 2021193137A JP 7704020 B2 JP7704020 B2 JP 7704020B2
Authority
JP
Japan
Prior art keywords
request
reply
relay device
time
relay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021193137A
Other languages
Japanese (ja)
Other versions
JP2023079600A (en
Inventor
悟士 金子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2021193137A priority Critical patent/JP7704020B2/en
Publication of JP2023079600A publication Critical patent/JP2023079600A/en
Application granted granted Critical
Publication of JP7704020B2 publication Critical patent/JP7704020B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、リクエスト-リプライ型情報取得通信を行う複数の接続ノード間における通信を中継する中継装置に関する。 The present invention relates to a relay device that relays communication between multiple connection nodes that perform request-reply type information acquisition communication.

従来、例えば自動車などの車両に搭載される電子制御装置は、同じく車両に搭載される他の電子制御装置との間で通信を行うとともに、車両の外部に設けられるデータセンターなどとの間で通信を行うようになっている。なお、本明細書では、電子制御装置のことを、その略称であるECUと称することがある。上記した通信のうち、ECUとデータセンターなどとの間の通信は、例えば車両においてクラウドアプリケーションを利用する際に行われるものであるため、ECUとクラウドアプリケーションとの間の通信と言い換えることができる。 Conventionally, an electronic control device mounted on a vehicle such as an automobile communicates with other electronic control devices also mounted on the vehicle, and also communicates with a data center or the like provided outside the vehicle. In this specification, the electronic control device may be referred to as an ECU, which is an abbreviation for the electronic control device. Of the above-mentioned communications, the communication between the ECU and a data center or the like is performed when using a cloud application in the vehicle, and therefore can be rephrased as communication between the ECU and a cloud application.

特許文献1に開示されるように、このような通信のシステムにおいて、複数のECU間の通信およびECUとクラウドアプリケーションとの間の通信を中継する中継装置として機能するECUが設けられる場合がある。このような中継装置が設けられる通信システムにおいて、ECUおよびクラウドアプリケーションは、中継装置に接続されるノードである。そこで、本明細書では、ECUおよびクラウドアプリケーションのことを接続ノードと総称することがある。 As disclosed in Patent Document 1, in such a communication system, an ECU may be provided that functions as a relay device that relays communication between multiple ECUs and communication between the ECU and a cloud application. In a communication system in which such a relay device is provided, the ECU and the cloud application are nodes that are connected to the relay device. Thus, in this specification, the ECU and the cloud application may be collectively referred to as a connection node.

特開2021-048439号公報JP 2021-048439 A

従来の中継装置では、接続ノードの数が増えることにより通信量が増加すると、中継装置と接続ノードとの間の通信バス負荷が増大し、通信の品質が低下するといった問題が生じるおそれがある。また、従来の中継装置では、通信量が増加すると、接続ノードにおける計算リソースの多くが通信に使われるようになり、肝心の制御処理に割り当てられる計算リソースが少なくなるといった問題が生じるおそれがある。 In conventional relay devices, when the number of connection nodes increases and communication volume increases, the communication bus load between the relay device and the connection nodes increases, which can cause problems such as a decrease in communication quality. In addition, in conventional relay devices, when communication volume increases, many of the computing resources in the connection nodes are used for communication, which can cause problems such as fewer computing resources being allocated to essential control processing.

車載の通信システムにおいては、接続ノード間の通信としてリクエスト-リプライ型情報取得通信が採用されることがある。このような通信が採用されることを想定した場合、従来の中継装置では次のような問題が生じる。すなわち、複数の接続ノードが1つの別の接続ノードに対して同一のリクエストを発行するようなケースが考えられるが、このようなケースでは、中継装置が同じ通信データを同じ送信先に対して複数回転送することになり、その結果、通信に無駄が生じ、通信バス負荷が増大するおそれがある。 In vehicle-mounted communication systems, request-reply type information acquisition communication may be adopted for communication between connection nodes. When this type of communication is adopted, the following problem occurs with conventional relay devices. That is, there may be cases where multiple connection nodes issue the same request to another connection node. In such cases, the relay device will forward the same communication data to the same destination multiple times, which may result in wasteful communication and increased load on the communication bus.

本発明は上記事情に鑑みてなされたものであり、その目的は、接続ノード間における通信負荷およびリクエスト先の接続ノードにおける処理負荷を軽減することができる中継装置を提供することにある。 The present invention has been made in consideration of the above circumstances, and its purpose is to provide a relay device that can reduce the communication load between connection nodes and the processing load at the connection node to which the request is sent.

請求項1に記載の中継装置は、リクエスト-リプライ型情報取得通信を行う複数の接続ノード(3~8)間における通信を中継する。ここで、情報取得を要求するためのリクエストを送信する接続ノードをリクエスト元ノードとし、リクエストを受信するとリクエスト元ノードが要求する情報を含むリプライをリクエスト元ノードに返送する接続ノードをリクエスト先ノードとしたとき、中継装置は、記憶部(11)、記憶処理部(14、23)、判断処理部(15)および中継処理部(16、24)を備える。 The relay device described in claim 1 relays communication between a plurality of connection nodes (3-8) that perform request-reply type information acquisition communication. Here, when a connection node that transmits a request for requesting information acquisition is defined as a request source node, and a connection node that receives the request and returns a reply including the information requested by the request source node to the request source node is defined as a request destination node, the relay device comprises a memory unit (11), a memory processing unit (14, 23), a judgment processing unit (15), and a relay processing unit (16, 24).

記憶部は、リプライを記憶することができる。記憶処理部は、リクエスト先ノードからリクエスト元ノードへと返送されるリプライを中継すると、そのリプライを記憶部に記憶する記憶処理を実行する。判断処理部は、リクエスト元ノードからリクエスト先ノードへと送信されるリクエストを中継する際に記憶部に記憶されたリプライの中に中継する対象となるリクエストである中継対象リクエストに対応するリプライである対応リプライが存在するか否かを判断する判断処理を実行する。中継処理部は、対応リプライが存在する場合に中継対象リクエストをリクエスト先ノードに送信することなく、記憶部に記憶された対応リプライを中継対象リクエストに対するリプライとしてリクエスト元ノードに返送する返送処理を実行する。記憶処理部(23)は、記憶処理を実行する際、リプライを中継した時刻に対応する時刻であるリプライ時刻を前記リプライに付与して記憶するようになっている。中継処理部(24)は、対応リプライのリプライ時刻から現在時刻までの経過時間が、予め定められた経過許容時間以内の時間であるか否かに基づいて対応リプライが有効であるか否かを判断し、対応リプライの経過時間が経過許容時間以内の時間であり対応リプライが有効であると判断される場合には返送処理を実行し、対応リプライの経過時間が経過許容時間を超える時間であり対応リプライが有効ではないと判断される場合には中継対象リクエストをリクエスト先ノードに送信する中継処理を実行する。経過許容時間には、リクエスト先ノード毎に個別に設定された時間であるAT-Dと、リクエストにより要求される情報毎に個別に設定された時間であるAT-Sと、リクエスト元ノードが送信するリクエスト毎に個別に設定された時間であるAT-Cと、が含まれている。リクエスト元ノードは、リクエストを送信する際、そのリクエストにAT-Cを付与するようになっている。AT-D、AT-SおよびAT-Cについて、対応リプライが有効であるか否かの判断に使用する優先度が定められている。 The storage unit can store the reply. When the storage processing unit relays a reply returned from the request destination node to the request source node, it executes a storage process to store the reply in the storage unit. The determination processing unit executes a determination process to determine whether or not a corresponding reply, which is a reply corresponding to a relay target request, which is a request to be relayed, exists among the replies stored in the storage unit when relaying a request transmitted from the request source node to the request destination node. If a corresponding reply exists, the relay processing unit executes a return process to return the corresponding reply stored in the storage unit as a reply to the relay target request to the request source node without transmitting the relay target request to the request destination node. When executing the storage process, the storage processing unit (23) is configured to store the reply by adding a reply time, which is a time corresponding to the time when the reply was relayed, to the reply. The relay processing unit (24) judges whether the corresponding reply is valid based on whether the elapsed time from the reply time of the corresponding reply to the current time is within a predetermined elapsed time, and executes a return process if the elapsed time of the corresponding reply is within the elapsed time and the corresponding reply is judged to be valid, and executes a relay process to transmit the request to be relayed to the request destination node if the elapsed time of the corresponding reply exceeds the elapsed time and the corresponding reply is judged to be invalid. The elapsed time includes AT-D, which is a time individually set for each request destination node, AT-S, which is a time individually set for each piece of information requested by a request, and AT-C, which is a time individually set for each request transmitted by the request source node. When transmitting a request, the request source node assigns AT-C to the request. Priorities are set for AT-D, AT-S, and AT-C to be used in judging whether the corresponding reply is valid.

このような構成によれば、複数の接続ノードが1つの別の接続ノードに対して同一のリクエストを発行するようなケースにおいて、中継装置が同じ通信データを同じ送信先に対して複数回転送すること、具体的には中継装置が同じリクエストを同じリクエスト先ノードに対して複数回転送することが無くなり、その結果、中継装置とリクエスト先ノードとの間における通信が削減されるとともに、リクエスト先ノードにおける処理負荷が軽減される。したがって、上記構成によれば、接続ノード間における通信負荷およびリクエスト先の接続ノードにおける処理負荷を軽減することができるという優れた効果が得られる。 With this configuration, in cases where multiple connection nodes issue the same request to one other connection node, the relay device will not forward the same communication data to the same destination multiple times, specifically, the relay device will not forward the same request to the same request destination node multiple times, resulting in a reduction in communication between the relay device and the request destination node, and a reduction in the processing load on the request destination node. Therefore, with the above configuration, the excellent effect of reducing the communication load between connection nodes and the processing load on the request destination connection node can be obtained.

第1実施形態に係る中継装置を含む通信システムの構成を模式的に示す図FIG. 1 is a diagram illustrating a configuration of a communication system including a relay device according to a first embodiment; 第1実施形態に係るリクエストのデータ構造の一例を模式的に示す図FIG. 2 is a diagram illustrating an example of a data structure of a request according to the first embodiment; 第1実施形態に係るリプライのデータ構造の一例を模式的に示す図FIG. 1 is a diagram illustrating an example of a data structure of a reply according to the first embodiment; 第1実施形態に係る保存データのデータ構造の一例を模式的に示す図FIG. 2 is a diagram illustrating an example of a data structure of stored data according to the first embodiment; 第1実施形態に係る中継装置の入出力を説明するための図FIG. 1 is a diagram for explaining input and output of a relay device according to a first embodiment; 第1実施形態に係る中継装置により実行される通信の中継に関連する処理の流れを模式的に示す図FIG. 4 is a diagram illustrating a process flow related to relaying communication executed by a relay device according to the first embodiment; 第1実施形態に係る中継装置が通信を中継してリプライを返送する具体的な事例を説明するための図FIG. 1 is a diagram for explaining a specific example in which a relay device according to the first embodiment relays communication and returns a reply; 第1実施形態に係る中継装置が通信を中継せずリプライを返送する具体的な事例を説明するための図FIG. 1 is a diagram for explaining a specific example in which a relay device according to the first embodiment returns a reply without relaying communication. 第2実施形態に係る中継装置を含む通信システムの構成を模式的に示す図FIG. 11 is a diagram illustrating a configuration of a communication system including a relay device according to a second embodiment. 第2実施形態に係るコンフィギュレーション時における中継装置の入力を説明するための図FIG. 11 is a diagram for explaining input to a relay device during configuration according to the second embodiment; 第2実施形態に係る中継処理時およびパラメータ設定時における中継装置の入出力を説明するための図FIG. 11 is a diagram for explaining input/output of a relay device during relay processing and parameter setting according to the second embodiment; 第2実施形態に係るAT-Dの設定パラメータのデータ構造を模式的に示す図FIG. 13 is a diagram showing a data structure of setting parameters of the AT-D according to the second embodiment; 第2実施形態に係るAT-Sの設定パラメータのデータ構造を模式的に示す図FIG. 13 is a diagram showing a data structure of setting parameters of the AT-S according to the second embodiment; 第2実施形態に係るリクエストのデータ構造の一例を模式的に示す図FIG. 13 is a diagram illustrating an example of a data structure of a request according to a second embodiment. 第2実施形態に係る保存データのデータ構造の一例を模式的に示す図FIG. 13 is a diagram illustrating an example of a data structure of stored data according to a second embodiment; 第2実施形態に係る管理テーブルのデータ例を模式的に示す図FIG. 13 is a diagram illustrating an example of data in a management table according to the second embodiment; 第2実施形態に係るパラメータ設定処理の内容を模式的に示す図FIG. 11 is a diagram illustrating the content of a parameter setting process according to a second embodiment. 第2実施形態に係る中継装置により実行される通信の中継に関連する処理の流れを模式的に示す図FIG. 11 is a diagram illustrating a process flow related to relaying communication executed by a relay device according to a second embodiment. 第2実施形態に係るAT設定処理の内容を模式的に示す図FIG. 11 is a diagram illustrating the contents of an AT setting process according to the second embodiment. 第2実施形態に係る中継装置が通信を中継してリプライを返送する具体的な事例を説明するための図FIG. 11 is a diagram for explaining a specific example in which a relay device according to the second embodiment relays communication and returns a reply; 第2実施形態に係る中継装置が通信を中継せずAT-Cを使用してリプライを返送する具体的な事例を説明するための図FIG. 11 is a diagram for explaining a specific example in which a relay device according to the second embodiment does not relay communication but returns a reply using an AT-C. 第2実施形態に係る中継装置が通信を中継せずAT-Sを使用してリプライを返送する具体的な事例を説明するための図FIG. 11 is a diagram for explaining a specific example in which a relay device according to the second embodiment does not relay communication but returns a reply using AT-S. 第2実施形態に係る中継装置が通信を中継せずAT-Dを使用してリプライを返送する具体的な事例を説明するための図FIG. 11 is a diagram for explaining a specific example in which a relay device according to the second embodiment does not relay communication but returns a reply using AT-D.

以下、本発明の複数の実施形態について図面を参照して説明する。なお、各実施形態において実質的に同一の構成には同一の符号を付して説明を省略する。
(第1実施形態)
以下、第1実施形態について図1~図8を参照して説明する。
Hereinafter, a number of embodiments of the present invention will be described with reference to the drawings. Note that in the respective embodiments, substantially the same configurations are given the same reference numerals and the description thereof will be omitted.
First Embodiment
Hereinafter, the first embodiment will be described with reference to FIGS.

図1に示すように、本実施形態の中継装置1は、例えば自動車などの車両2の通信システムに用いられるものであり、車両2に搭載される複数のECU3~7間における通信および複数のECU3~7と車両2の外部のクラウドアプリケーション8との間における通信を中継する。中継装置1は、車両2に搭載されるECUにより構成されている。中継装置1とECU3~7とは、車載の通信バス9を介して通信可能となっている。また、中継装置1とクラウドアプリケーション8とは、ネットワーク10を介して通信可能となっている。ネットワーク10としては、例えば、移動体通信網、無線LANなどを挙げることができる。 As shown in FIG. 1, the relay device 1 of this embodiment is used in a communication system of a vehicle 2, such as an automobile, and relays communications between multiple ECUs 3-7 mounted on the vehicle 2, and between the multiple ECUs 3-7 and a cloud application 8 external to the vehicle 2. The relay device 1 is composed of an ECU mounted on the vehicle 2. The relay device 1 and the ECUs 3-7 can communicate with each other via an on-board communication bus 9. The relay device 1 and the cloud application 8 can communicate with each other via a network 10. Examples of the network 10 include a mobile communication network and a wireless LAN.

ECU3~7は、いわゆるドメインECUと呼ばれるものである。ECU3は、先進運転支援システム全体を統合して制御するADASECUである。ECU4は、メータ表示全体を統合して制御するメータECUである。ECU5は、ナビゲーション機能全体を統合して制御するナビゲーションECUである。ECU6は、ボデー系の機器全体を統合して制御するボデーECUである。ECU7は、エンジンの駆動系を統合して制御するエンジンECUである。 ECUs 3 to 7 are so-called domain ECUs. ECU 3 is an ADASECU that provides integrated control of the entire advanced driving assistance system. ECU 4 is a meter ECU that provides integrated control of the entire meter display. ECU 5 is a navigation ECU that provides integrated control of the entire navigation function. ECU 6 is a body ECU that provides integrated control of all body equipment. ECU 7 is an engine ECU that provides integrated control of the engine drive system.

なお、以下の説明および図1などの図面では、ECU3、4、5、6および7のことを、それぞれADASECU3、メータECU4、ナビゲーションECU5、ボデーECU6およびエンジンECU7と称することがある。また、図1では、車両2に搭載される一部のドメインECUであるECU3~7だけを図示しているが、実際には、これら以外にもドメインECUが存在している。図示しない他のドメインECUについても、ECU3~7と同様にして、中継装置1により通信が中継される。 In the following explanation and in the drawings such as FIG. 1, ECUs 3, 4, 5, 6, and 7 may be referred to as ADASECU 3, meter ECU 4, navigation ECU 5, body ECU 6, and engine ECU 7, respectively. Also, FIG. 1 illustrates only ECUs 3 to 7, which are some of the domain ECUs mounted on vehicle 2, but in reality there are other domain ECUs besides these. Communications for other domain ECUs not shown are also relayed by relay device 1 in the same manner as ECUs 3 to 7.

クラウドアプリケーション8は、車両2の外部に設けられたデータセンターなどにより実現される各種のクラウドサービスに相当する。ECU3~7およびクラウドアプリケーション8は、いずれも中継装置1に接続されるノードであり、複数の接続ノードに相当する。これら複数の接続ノードに相当するECU3~7およびクラウドアプリケーション8は、リクエスト-リプライ型情報取得通信を行うようになっている。 Cloud application 8 corresponds to various cloud services implemented by a data center or the like provided outside vehicle 2. ECUs 3 to 7 and cloud application 8 are all nodes connected to relay device 1, and correspond to multiple connection nodes. ECUs 3 to 7 and cloud application 8, which correspond to multiple connection nodes, are configured to perform request-reply type information acquisition communication.

以下の説明では、情報取得を要求するためのリクエストを送信する接続ノードをリクエスト元ノードと称することがあるとともに、リクエストを受信するとリクエスト元ノードが要求する情報を含むリプライをリクエスト元ノードに返送する接続ノードをリクエスト先ノードと称することがある。中継装置1は、その基本動作として、次のような中継動作を実行する。すなわち、中継装置1は、リクエスト元ノードから送信されたリクエストを受信すると、そのリクエストをリクエスト先ノードへと中継し、リクエスト先ノードから返送されたリプライを受信すると、そのリプライをリクエスト元ノードへと中継する。 In the following description, a connection node that transmits a request to obtain information may be referred to as a requesting node, and a connection node that receives a request and returns a reply including the information requested by the requesting node to the requesting node may be referred to as a requested destination node. The relay device 1 performs the following relay operation as its basic operation. That is, when the relay device 1 receives a request transmitted from the requesting node, it relays the request to the requested destination node, and when it receives a reply returned from the requested destination node, it relays the reply to the requesting node.

中継装置1は、記憶部11、通信部12および制御部13などを備えている。記憶部11は、例えばROM、RAMなど、各種の記憶装置により構成されており、リプライを記憶することができる。なお、記憶部11としては、リプライ以外の各種データを記憶するために別途設けられた記憶装置を利用することも可能である。記憶部11は、少なくともリプライを十分に記憶することができる程度に大きい記憶容量を有する大容量の記憶装置となっている。通信部12は、中継装置1に設けられたネットワークポートを介してECU3~7およびクラウドアプリケーション8との間で通信を行う通信インターフェースである。 The relay device 1 includes a memory unit 11, a communication unit 12, and a control unit 13. The memory unit 11 is composed of various storage devices, such as ROM and RAM, and is capable of storing replies. Note that the memory unit 11 may also be a separately provided storage device for storing various data other than replies. The memory unit 11 is a large-capacity storage device having a storage capacity large enough to store at least replies. The communication unit 12 is a communication interface that communicates with the ECUs 3 to 7 and the cloud application 8 via a network port provided in the relay device 1.

制御部13は、例えばソフトウェア演算が可能なCPUを含む構成となっている。制御部13は、記憶処理部14、判断処理部15および中継処理部16といった機能ブロックを備えている。これら各機能ブロックは、制御部13が備えるCPUが非遷移的実体的記憶媒体に格納されているコンピュータプログラムを実行してコンピュータプログラムに対応する処理を実行することにより実現されている、つまりソフトウェアにより実現されている。なお、各機能ブロックのうち少なくとも一部をハードウェアにより実現する構成としてもよい。 The control unit 13 is configured to include, for example, a CPU capable of software calculations. The control unit 13 has functional blocks such as a storage processing unit 14, a judgment processing unit 15, and a relay processing unit 16. Each of these functional blocks is realized by the CPU of the control unit 13 executing a computer program stored in a non-transitive physical storage medium to execute processing corresponding to the computer program, that is, by software. Note that at least a portion of each functional block may be configured to be realized by hardware.

記憶処理部14は、リクエスト先ノードからリクエスト元ノードへと返送されるリプライを中継すると、そのリプライを記憶部11に記憶する記憶処理を実行する。また、記憶処理部14は、記憶処理を実行する際、中継したリプライと同一のリクエストに対応するリプライが記憶部11に既に記憶されていた場合、その記憶されていたリプライを削除するようになっている。 When the storage processing unit 14 relays a reply sent from the request destination node to the request source node, it executes a storage process to store the reply in the storage unit 11. In addition, when executing the storage process, if a reply corresponding to the same request as the relayed reply has already been stored in the storage unit 11, the storage processing unit 14 is configured to delete the stored reply.

判断処理部15は、リクエスト元ノードからリクエスト先ノードへと送信されるリクエストを中継する際に記憶部11に記憶されたリプライの中に中継対象リクエストに対応する対応リプライが存在するか否かを判断する判断処理を実行する。なお、中継対象リクエストは、中継する対象となるリクエストであり、対応リプライは、中継リクエストに対応するリプライである。中継処理部16は、対応リプライが存在する場合に中継対象リクエストをリクエスト先ノードに送信することなく、記憶部11に記憶された対応リプライを中継対象リクエストに対するリプライとしてリクエスト元ノードに返送する返送処理を実行する。 The determination processing unit 15 executes a determination process to determine whether or not a corresponding reply corresponding to the request to be relayed exists among the replies stored in the memory unit 11 when relaying a request sent from the request originating node to the request destination node. The request to be relayed is the request to be relayed, and the corresponding reply is a reply corresponding to the relay request. The relay processing unit 16 executes a return process to return the corresponding reply stored in the memory unit 11 to the request originating node as a reply to the request to be relayed, without sending the request to be relayed to the request destination node, if a corresponding reply exists.

上記構成において接続ノード間でやり取りされるとともに中継装置1が受け付けるリクエストは、例えば図2に示すようなデータ構造となっている。すなわち、リクエストは、リクエストキーを含む。リクエストキーは、リクエスト元ノードが要求する情報を表す文字列であり、取得したい情報に対して一意的に定められる。具体的には、リクエストキーは、例えばGPS位置情報、クラウドアプリステータス、トランクのドアロックステータス、ヘッドライトステータスなどである。 In the above configuration, the request exchanged between the connection nodes and accepted by the relay device 1 has a data structure, for example, as shown in FIG. 2. That is, the request includes a request key. The request key is a character string that represents the information requested by the requesting node, and is uniquely determined for the information to be acquired. Specifically, the request key is, for example, GPS location information, cloud application status, trunk door lock status, headlight status, etc.

この場合、リクエストキーの内容に応じて、そのリクエストキーの送信先となるリクエスト先ノードが一意に決まるようになっている。例えば、リクエストキーがクラウドアプリステータスである場合、そのリクエストキーを含むリクエストの送信先となるリクエスト先ノードは、クラウドアプリケーション8となる。また、例えば、リクエストキーがトランクのドアロックステータスである場合、そのリクエストキーを含むリクエストの送信先となるリクエスト先ノードは、ボデーECU6となる。 In this case, the request destination node to which the request key is sent is uniquely determined depending on the contents of the request key. For example, if the request key is cloud app status, the request destination node to which the request including the request key is sent is cloud application 8. Also, for example, if the request key is trunk door lock status, the request destination node to which the request including the request key is sent is body ECU 6.

上記構成において接続ノード間でやり取りされるとともに中継装置1が返送するリプライは、例えば図3に示すようなデータ構造となっている。すなわち、リプライは、リクエストキーおよびリプライデータを含む。リクエストキーは、リクエストのリクエストキーに対応する文字列であり、リクエスト先ノードが提供する情報に対して一意的に定められる。リプライデータは、リクエスト先が提供する情報であり、そのデータ形式としては、例えば文字列、数値、バイナリなど、様々な形式を採用することができる。例えば、リクエストキーが「トランクのドアロックステータス」であるときのリプライデータは、「Locked」または「Unlocked」といったデータとなる。 In the above configuration, the reply exchanged between connection nodes and returned by relay device 1 has a data structure, for example, as shown in FIG. 3. That is, the reply includes a request key and reply data. The request key is a character string corresponding to the request key of the request, and is uniquely determined for the information provided by the request destination node. The reply data is information provided by the request destination, and various data formats can be adopted, for example, character strings, numbers, binary, etc. For example, when the request key is "trunk door lock status", the reply data will be data such as "Locked" or "Unlocked".

上記構成において中継装置1が中継したリプライを記憶部11へ保存した保存データは、例えば図4に示すようなデータ構造となっている。すなわち、保存データは、リプライと同様、リクエストキーおよびリプライデータを含む。 In the above configuration, the reply relayed by the relay device 1 is stored in the memory unit 11 as stored data, which has a data structure such as that shown in FIG. 4. That is, the stored data includes a request key and reply data, just like the reply.

図5に示すように、中継装置21は、ECU3~7およびクラウドアプリケーション8である接続ノードと通信し、次のようなデータの入出力を行う。すなわち、中継装置21は、中継時、リクエスト元ノードである接続ノードNaからリクエストが入力されるとともに、リクエスト先ノードである接続ノードNbへリクエストを出力する。また、中継装置21は、中継処理時、接続ノードNbからリプライが入力されるとともに、接続ノードNaへリプライを出力する。 As shown in FIG. 5, the relay device 21 communicates with the connection nodes, which are the ECUs 3 to 7 and the cloud application 8, and inputs and outputs data as follows. That is, when relaying, the relay device 21 receives a request from the connection node Na, which is the request source node, and outputs the request to the connection node Nb, which is the request destination node. Also, when relaying, the relay device 21 receives a reply from the connection node Nb, and outputs a reply to the connection node Na.

このとき、中継装置21は、接続ノードNbから入力されたリプライを記憶部11へ保存する。リプライの保存は、同一のリクエストキーを含む古い保存データに対して上書き保存される形となる。ただし、中継装置21がリクエストを中継せずに記憶部11から対応リプライである保存データを取り出す場合には、接続ノードNbに対する入出力は行われない。 At this time, the relay device 21 stores the reply input from the connection node Nb in the memory unit 11. The reply is stored by overwriting the old stored data that contains the same request key. However, if the relay device 21 does not relay the request and retrieves the stored data that is the corresponding reply from the memory unit 11, no input/output is performed to the connection node Nb.

次に、上記構成の中継装置1により実行される通信の中継に関連する処理の流れについて図6を参照して説明する。なお、中継装置1は、図6に示すような内容の処理、つまりリクエスト-リプライ中継処理を所定の周期で繰り返し実行するようになっている。まず、ステップS101では、中継装置1がリクエスト元ノードから送信されたリクエストを受信する。ステップS101の実行後、ステップS102に進む。 Next, the flow of processing related to relaying communication executed by the relay device 1 configured as above will be described with reference to FIG. 6. Note that the relay device 1 is configured to repeatedly execute the processing shown in FIG. 6, that is, the request-reply relay processing, at a predetermined cycle. First, in step S101, the relay device 1 receives a request sent from the request source node. After executing step S101, the process proceeds to step S102.

ステップS102では、記憶部11に記憶された保存データの中に、受信したリクエストである中継対象リクエストに含まれるリクエストキーと一致するリクエストキーを含むリプライ、つまり対応リプライが存在するか否かが判断される。つまり、ステップS102は、前述した判断処理に対応する処理ステップである。ここで、記憶部11に対応リプライが存在しない場合、ステップS102で「NO」となり、ステップS103に進む。ステップS103では、中継対象リクエストがリクエスト先ノードへと送信される。つまり、ステップS103は、リクエストを中継する中継処理に対応する処理ステップである。 In step S102, it is determined whether or not a reply containing a request key that matches the request key contained in the received request to be relayed, that is, a corresponding reply, is present in the saved data stored in memory unit 11. In other words, step S102 is a processing step corresponding to the determination process described above. Here, if a corresponding reply is not present in memory unit 11, step S102 becomes "NO" and the process proceeds to step S103. In step S103, the request to be relayed is sent to the request destination node. In other words, step S103 is a processing step corresponding to the relay process of relaying a request.

ステップS103の実行後、ステップS104~S106がこの順に実行される。ステップS104では、中継装置1がリクエスト先ノードから返送されたリプライを受信する。ステップS105では、ステップS104で受信したリプライが保存データとして記憶部11に記憶される。つまり、ステップS105は、前述した記憶処理に対応する処理ステップである。ステップS106では、ステップS104で受信したリプライがリクエスト元ノードへと返送される。ステップS106の実行後、本処理が終了となる。 After step S103 is executed, steps S104 to S106 are executed in this order. In step S104, the relay device 1 receives a reply sent back from the requested node. In step S105, the reply received in step S104 is stored in the memory unit 11 as saved data. In other words, step S105 is a processing step corresponding to the storage processing described above. In step S106, the reply received in step S104 is sent back to the request source node. After step S106 is executed, this processing ends.

一方、記憶部11に対応リプライが存在する場合、ステップS102で「YES」となり、ステップS107に進む。ステップS107では、記憶部11から対応リプライに相当する保存データが取り出される。ステップS107の実行後、ステップS108に進む。ステップS108では、ステップS107で取り出された対応リプライに相当する保存データが中継対象リクエストに対応するリプライとしてリクエスト元ノードに返送される。ステップS108の実行後、本処理が終了となる。 On the other hand, if a corresponding reply exists in memory unit 11, step S102 becomes "YES" and the process proceeds to step S107. In step S107, stored data corresponding to the corresponding reply is retrieved from memory unit 11. After step S107 is executed, the process proceeds to step S108. In step S108, the stored data corresponding to the corresponding reply retrieved in step S107 is returned to the request source node as a reply corresponding to the request to be relayed. After step S108 is executed, this process ends.

次に、上記構成の接続ノード間で通信が行われる際における中継装置1による動作について、図7および図8に示す具体的な事例に沿って説明する。なお、図7および図8に示す具体的な事例は、メータECU4がボデーECU6からトランクのドアロックステータスを取得する場合の通信を表している。また、図7および図8などでは、動作説明に不要な構成要素についての図示を省略している。 Next, the operation of the relay device 1 when communication is performed between the connection nodes of the above configuration will be described with reference to the specific example shown in Figures 7 and 8. Note that the specific example shown in Figures 7 and 8 represents communication when the meter ECU 4 obtains the trunk door lock status from the body ECU 6. Also, in Figures 7 and 8, etc., illustrations of components that are not necessary for the explanation of the operation are omitted.

[1]中継装置が通信を中継してリプライを返送する場合
図7に示すように、中継装置1は、メータECU4から送信された「トランクのドアロックステータス」を表すリクエストキーを含むリクエストを受け取ると、記憶部11の保存データをリプライとして返送可能であるか否かを判断する、つまり前述した判断処理を実行する。この場合、記憶部11に対応リプライが存在しないものとする。そのため、中継装置1は、リクエストをそのままリクエスト先ノードであるボデーECU6に転送する。
[1] When the relay device relays communication and returns a reply As shown in Fig. 7, when the relay device 1 receives a request including a request key indicating the "trunk door lock status" transmitted from the meter ECU 4, it judges whether or not it is possible to return the data stored in the memory unit 11 as a reply, that is, it executes the judgment process described above. In this case, it is assumed that there is no corresponding reply in the memory unit 11. Therefore, the relay device 1 transfers the request as it is to the body ECU 6, which is the request destination node.

その後、中継装置1は、リクエスト先ノードであるボデーECU6からリクエストキーに対応したリプライが返送されると、そのリプライをリクエスト元ノードであるメータECU4へ中継する。このとき、中継装置1は、中継したリプライを記憶部11に保存データとして記憶する、つまり前述した記憶処理を実行する。 After that, when the relay device 1 receives a reply corresponding to the request key from the body ECU 6, which is the request destination node, the relay device 1 relays the reply to the meter ECU 4, which is the request source node. At this time, the relay device 1 stores the relayed reply as saved data in the memory unit 11, that is, executes the storage process described above.

[2]中継装置が通信を中継せずリプライを返送する場合
図8に示すように、中継装置1は、メータECU4から送信された「トランクのドアロックステータス」を表すリクエストキーを含むリクエストを受け取ると、記憶部11の保存データをリプライとして返送可能であるか否かを判断する、つまり前述した判断処理を実行する。この場合、記憶部11に対応リプライが存在するものとする。そのため、中継装置1は、記憶部11に記憶された保存データを取り出し、その保存データをリプライとしてリクエスト元ノードであるメータECU4へ転送する、つまり前述した返送処理を実行する。この場合、リクエスト先ノードであるボデーECU6は、通信に関連する動作を一切実行しない。
[2] When the relay device returns a reply without relaying communication As shown in Fig. 8, when the relay device 1 receives a request including a request key indicating the "trunk door lock status" transmitted from the meter ECU 4, the relay device 1 judges whether or not the stored data in the memory unit 11 can be returned as a reply, that is, executes the judgment process described above. In this case, it is assumed that a corresponding reply exists in the memory unit 11. Therefore, the relay device 1 retrieves the stored data stored in the memory unit 11 and transfers the stored data to the meter ECU 4, which is the request source node, as a reply, that is, executes the return process described above. In this case, the body ECU 6, which is the request destination node, does not execute any operation related to communication.

以上説明した本実施形態によれば、次のような効果が得られる。
上記構成によれば、複数の接続ノードが1つの別の接続ノードに対して同一のリクエストを発行するようなケースにおいて、中継装置1が同じ通信データを同じ送信先に対して複数回転送すること、具体的には中継装置1が同じリクエストを同じリクエスト先ノードに対して複数回転送することが無くなり、その結果、中継装置1とリクエスト先ノードとの間における通信のトラフィックが削減されるとともに、リクエスト先ノードにおける処理負荷が軽減される。したがって、本実施形態によれば、接続ノード間における通信負荷およびリクエスト先の接続ノードにおける処理負荷を軽減することができるという優れた効果が得られる。
According to the present embodiment described above, the following effects can be obtained.
According to the above configuration, in a case where multiple connection nodes issue the same request to one other connection node, the relay device 1 does not forward the same communication data to the same destination multiple times, specifically, the relay device 1 does not forward the same request to the same request destination node multiple times, and as a result, the communication traffic between the relay device 1 and the request destination node is reduced, and the processing load at the request destination node is also reduced. Therefore, according to this embodiment, it is possible to obtain the excellent effect of reducing the communication load between the connection nodes and the processing load at the request destination connection node.

上記構成では、記憶処理部14は、記憶処理を実行する際、中継したリプライと同一のリクエストに対応するリプライが記憶部11に記憶されていた場合、その記憶されていたリプライを削除するようになっている。このようにすれば、中継装置1が同一のリクエストに対応するリプライを複数回中継した場合、それら複数のリプライのうち最も新しいデータだけが記憶部11に残ることになり、古いデータは削除されていくことになる。そのため、上記構成によれば、記憶部11の記憶容量を有効に活用することができ、その結果、記憶部11として、むやみに記憶容量が大きいものを用いる必要がなくなり、その分だけ中継装置1の製造コストを低減することができる。 In the above configuration, when the storage processing unit 14 executes the storage process, if a reply corresponding to the same request as the relayed reply is stored in the storage unit 11, the storage processing unit 14 deletes the stored reply. In this way, if the relay device 1 relays replies corresponding to the same request multiple times, only the most recent data of the multiple replies will remain in the storage unit 11, and older data will be deleted. Therefore, with the above configuration, the storage capacity of the storage unit 11 can be effectively utilized, and as a result, it is no longer necessary to use a storage unit 11 with an unnecessarily large storage capacity, and the manufacturing costs of the relay device 1 can be reduced accordingly.

(第2実施形態)
以下、第2実施形態について図9~図23を参照して説明する。
図9に示すように、本実施形態の中継装置21は、図1に示した第1実施形態の中継装置1に対し、制御部13に代えて制御部22を備えている点などが異なっている。制御部22は、制御部13に対し、記憶処理部14に代えて記憶処理部23を備えている点、中継処理部16に代えて中継処理部24を備えている点などが異なっている。
Second Embodiment
The second embodiment will be described below with reference to FIGS.
9, relay device 21 of the present embodiment differs from relay device 1 of the first embodiment shown in FIG 1 in that it includes a control unit 22 instead of control unit 13. Control unit 22 differs from control unit 13 in that it includes a storage processing unit 23 instead of storage processing unit 14, and a relay processing unit 24 instead of relay processing unit 16.

記憶処理部23は、記憶処理を実行する際、リプライを中継した時刻、つまり中継装置1がリプライを受信した時刻に対応する時刻であるリプライ時刻をリプライに付与して記憶するようになっている。中継処理部24は、対応リプライのリプライ時刻から現在時刻までの経過時間が、予め定められた経過許容時間以内の時間である場合には返送処理を実行し、対応リプライの経過時間が経過許容時間を超える時間である場合には中継対応リクエストをリクエスト先ノードに送信する中継処理を実行するようになっている。なお、本明細書では、経過許容時間のことをATと称することがある。 When the storage processing unit 23 executes the storage process, it assigns to the reply the reply time, which is the time when the reply was relayed, that is, the time corresponding to the time when the relay device 1 received the reply, and stores the reply. The relay processing unit 24 executes a return process if the elapsed time from the reply time of the corresponding reply to the current time is within a predetermined elapsed time, and executes a relay process to send a relay response request to the request destination node if the elapsed time of the corresponding reply exceeds the elapsed time. Note that in this specification, the elapsed time is sometimes referred to as AT.

このように、中継装置21は、記憶部11に記憶されている保存データが有効であるか否かをATに基づいて判断する。ATに基づく判断により有効であると判断された保存データは、一定水準の新しさが保証されたデータであると言える。そして、中継装置21は、有効であると判断された保存データだけを対応リプライとしてリクエスト元ノードに返送することができるようになっている。 In this way, the relay device 21 judges whether the stored data stored in the memory unit 11 is valid or not based on the AT. Stored data that is judged to be valid based on the AT can be said to be data that is guaranteed to have a certain level of freshness. Then, the relay device 21 is capable of returning only stored data that is judged to be valid to the requesting node as a corresponding reply.

ATには、リクエスト時にリクエスト元ノードが指定する経過許容時間であるAT-Client、リクエスト先ノードが特定のリクエストに対して予め指定する経過許容時間であるAT-Serviceおよびリクエスト先ノードの規定の経過許容時間であるAT-Defaultがある。なお、以下の説明および図面では、AT-Client、AT-ServiceおよびAT-Defaultのことを、それぞれAT-C、AT-SおよびAT-Dと省略することがある。 The AT has AT-Client, which is the allowable elapsed time specified by the requesting node at the time of the request, AT-Service, which is the allowable elapsed time specified in advance by the request destination node for a particular request, and AT-Default, which is the allowable elapsed time prescribed by the request destination node. Note that in the following explanations and drawings, AT-Client, AT-Service, and AT-Default may be abbreviated as AT-C, AT-S, and AT-D, respectively.

AT-Cは、リクエスト元ノードが送信するリクエスト毎に個別に設定された時間となっている。リクエスト元ノードは、リクエストを送信する際、そのリクエストにAT-Cを付与するようになっている。AT-Sは、リクエストにより要求される情報毎に個別に設定された時間となっている。AT-Dは、リクエスト先ノード毎に個別に設定された時間となっている。 AT-C is a time that is set individually for each request sent by the requesting node. When sending a request, the requesting node assigns an AT-C to the request. AT-S is a time that is set individually for each piece of information requested by a request. AT-D is a time that is set individually for each request receiving node.

図10に示すように、中継装置21は、装置起動時に実行されるコンフィギュレーションなどにおいてAT-Dの設定パラメータが入力される。AT-Dは、接続ノード毎に定められたリプライデータの有効時間を表すものである。このようにして入力されたAT-Dの設定パラメータは、記憶部11に保存される。なお、AT-Dの設定パラメータは、対応リプライである保存データが記憶される記憶部11とは別の記憶装置に保存するようにしてもよい。 As shown in FIG. 10, the setting parameters of AT-D are input to the relay device 21 during configuration, which is executed when the device is started up. AT-D represents the validity time of reply data determined for each connection node. The setting parameters of AT-D input in this manner are stored in the memory unit 11. Note that the setting parameters of AT-D may be stored in a storage device other than the memory unit 11 in which the saved data, which is the corresponding reply, is stored.

AT-Dは、具体的には次のような考え方に基づいて設定されている。例えば、ボデーECU6が提供する情報、つまりリプライデータを中継装置21が10ms以内の精度で提供する必要がある場合、ボデーECU6に対応するAT-Dが10msに設定される。このようにすれば、例えばボデーECUなど要求されるリアルタイム性が比較的高い接続ノードが提供するリプライについては記憶部11に記憶された際の保存データが有効となる期間が短く設定される。また、このようにすれば、例えばクラウドアプリケーションなど要求されるリアルタイム性が比較的低い接続ノードが提供するリプライについては記憶部11に記憶された際の保存データが有効となる期間が長く設定される。 Specifically, the AT-D is set based on the following concept. For example, if the relay device 21 needs to provide information provided by the body ECU 6, i.e., reply data, with an accuracy of within 10 ms, the AT-D corresponding to the body ECU 6 is set to 10 ms. In this way, for replies provided by a connection node that requires a relatively high level of real-time performance, such as a body ECU, the period during which the stored data is valid when stored in the memory unit 11 is set to be short. In addition, in this way, for replies provided by a connection node that requires a relatively low level of real-time performance, such as a cloud application, the period during which the stored data is valid when stored in the memory unit 11 is set to be long.

図11に示すように、中継装置21は、ECU3~7およびクラウドアプリケーション8である接続ノードと通信し、中継装置1と同様のデータの入出力に加え、次のようなデータの入出力を行う。すなわち、中継装置21は、パラメータ設定処理時、リクエスト先ノードである接続ノードNbからAT-Sの設定パラメータが入力される。AT-Sは、リプライデータを返送するリクエスト先ノードが指定するリプライデータの有効時間を表すものである。このようにして入力されたAT-Sの設定パラメータは、記憶部11に保存される。なお、AT-Sの設定パラメータは、対応リプライである保存データが記憶される記憶部11とは別の記憶装置に保存するようにしてもよい。 As shown in FIG. 11, relay device 21 communicates with ECUs 3-7 and connection nodes which are cloud application 8, and in addition to inputting and outputting data similar to that of relay device 1, relay device 21 also inputs and outputs the following data. That is, during parameter setting processing, relay device 21 receives AT-S setting parameters from connection node Nb which is the request destination node. AT-S represents the validity time of reply data specified by the request destination node which returns reply data. The AT-S setting parameters input in this manner are stored in memory unit 11. Note that the AT-S setting parameters may be stored in a storage device separate from memory unit 11 which stores the saved data which is the corresponding reply.

AT-Sは、具体的には次のような考え方に基づいて設定されている。例えば、車両2のトランクのドアロックステータスを10ms以内の精度でリクエスト元ノードに提供する必要がある場合、トランクのドアロックステータスのAT-Sが10msに設定される。このようにすれば、例えばヘッドライトステータスなど要求されるリアルタイム性が比較的高いリクエストキーに対応するリプライについては記憶部11に記憶された際の保存データが有効となる期間が短く設定される。また、このようにすれば、例えばGPS位置情報など要求されるリアルタイム性が比較的低いリクエストキーに対応するリプライについては記憶部11に記憶された際の保存データが有効となる期間が長く設定される。 Specifically, the AT-S is set based on the following concept. For example, if the trunk door lock status of vehicle 2 needs to be provided to the requesting node with an accuracy of within 10 ms, the AT-S for the trunk door lock status is set to 10 ms. In this way, for replies corresponding to request keys that require a relatively high degree of real-timeness, such as headlight status, the period during which the stored data is valid when stored in memory unit 11 is set to be short. In addition, in this way, for replies corresponding to request keys that require a relatively low degree of real-timeness, such as GPS location information, the period during which the stored data is valid when stored in memory unit 11 is set to be long.

上記構成においてコンフィギュレーション時に中継装置21に設定されるAT-Dの設定パラメータは、図12に示すようなデータ構造となっている。すなわち、AT-Dの設定パラメータは、接続ノードとAT-Dとが紐付けられたものとなっている。また、上記構成においてパラメータ設定処理時に中継装置21に通知されるAT-Sの設定パラメータは、図13に示すようなデータ構造となっている。すなわち、AT-Sの設定パラメータは、リクエストキーとAT-Sとが紐付けられたものとなっている。 In the above configuration, the setting parameters of the AT-D set in the relay device 21 during configuration have the data structure shown in FIG. 12. That is, the setting parameters of the AT-D are linked to the connection node and the AT-D. Also, in the above configuration, the setting parameters of the AT-S notified to the relay device 21 during the parameter setting process have the data structure shown in FIG. 13. That is, the setting parameters of the AT-S are linked to the request key and the AT-S.

上記構成において接続ノード間でやり取りされるとともに中継装置21が受け付けるリクエストは、例えば図14に示すようなデータ構造となっている。すなわち、リクエストは、リクエストキーおよびAT-Cを含む。AT-Cは、リクエストを送信するリクエスト元ノードが指定するリプライデータの有効時間を表すものである。AT-Cは、具体的には次のような考え方に基づいて設定されている。例えば、リクエストを送信するメータECU4が10ms以内の精度で車両2のトランクのドアロックステータスを取得したい場合、そのリクエストにおけるAT-Cを10msに設定される。なお、リクエストにおけるAT-Cは省略可能である。 In the above configuration, the request exchanged between connection nodes and received by the relay device 21 has a data structure, for example, as shown in FIG. 14. That is, the request includes a request key and an AT-C. The AT-C indicates the validity time of the reply data specified by the request source node that sends the request. Specifically, the AT-C is set based on the following concept. For example, if the meter ECU 4 that sends the request wants to obtain the trunk door lock status of the vehicle 2 with an accuracy of within 10 ms, the AT-C in the request is set to 10 ms. Note that the AT-C in the request can be omitted.

上記構成において中継装置21が中継したリプライを記憶部11へ保存した保存データは、例えば図15に示すようなデータ構造となっている。すなわち、保存データは、リクエストキー、リプライデータおよびリプライ時刻を含む。リプライ時刻は、リプライを中継した時刻、つまり中継装置21がリプライを受信した時刻に対応する時刻データである。 In the above configuration, the stored data, which is the reply relayed by the relay device 21 and stored in the memory unit 11, has a data structure, for example, as shown in FIG. 15. That is, the stored data includes a request key, reply data, and reply time. The reply time is time data corresponding to the time when the reply was relayed, that is, the time when the relay device 21 received the reply.

上記構成において記憶部11に格納される管理テーブルは、例えば図16に示すようなデータとなっている。管理テーブルには、すなわち、AT-DおよびAT-Sが格納されている。前述したように、AT-Dはコンフィギュレーション時に設定されるものであり、AT-Sはパラメータ設定処理時に設定されるものである。接続ノードが通知してきたAT-Sの設定パラメータは動的にAT-Sとして管理テーブルに登録される。AT-Dの管理テーブルは、接続ノードとAT-Dの値とが紐付けられたものとなっている。 In the above configuration, the management table stored in the memory unit 11 has data such as that shown in FIG. 16, for example. The management table stores AT-D and AT-S. As described above, AT-D is set during configuration, and AT-S is set during the parameter setting process. The setting parameters for AT-S notified by the connection node are dynamically registered as AT-S in the management table. The AT-D management table associates the connection node with the value of AT-D.

具体的には、クラウドアプリケーション8のAT-Dの値は1000ms、ADASECU3、メータECU4およびナビゲーションECU5の各AT-Dの値は100ms、ボデーECU6のAT-Dの値は10msとなっている。AT-Sの管理テーブルは、リクエストキーとAT-Sの値とが紐付けられたものとなっている。具体的には、GPS位置情報のAT-Sの値は100ms、クラウドアプリステータスのAT-Sの値は1000ms、トランクのドアロックステータスのAT-Sの値は50ms、ヘッドライトステータスのAT-Sの値は20msとなっている。 Specifically, the AT-D value of the cloud application 8 is 1000 ms, the AT-D values of the ADASECU 3, meter ECU 4 and navigation ECU 5 are 100 ms, and the AT-D value of the body ECU 6 is 10 ms. The AT-S management table associates request keys with AT-S values. Specifically, the AT-S value of the GPS location information is 100 ms, the AT-S value of the cloud application status is 1000 ms, the AT-S value of the trunk door lock status is 50 ms, and the AT-S value of the headlight status is 20 ms.

ECU3~7およびクラウドアプリケーション8である接続ノードは、中継装置21に対して、自身が提供するリプライに対応するAT-Sの設定パラメータを通知するようになっている。このような通知は任意のタイミングで送信可能となっている。中継装置21は、このような通知を受け取ると、受け取ったAT-Sの設定パラメータを前述した管理テーブルへ随時反映するようになっている。 The connection nodes, which are the ECUs 3 to 7 and the cloud application 8, are configured to notify the relay device 21 of the AT-S setting parameters that correspond to the reply that they provide. Such notifications can be sent at any time. When the relay device 21 receives such notifications, it is configured to update the received AT-S setting parameters in the aforementioned management table as needed.

次に、上記構成の中継装置21により実行されるパラメータ設定処理について図17を参照して説明する。なお、中継装置21は、図17に示すような内容のパラメータ設定処理を所定の周期で繰り返し実行するようになっている。まず、ステップS201では、中継装置21が接続ノードから通知されたAT-Sの設定パラメータを受信する。ステップS201の実行後、ステップS202に進む。ステップS202では、ステップS201で受信したAT-Sの設定パラメータが管理テーブルに登録される。ステップS202の実行後、本処理が終了となる。 Next, the parameter setting process executed by the relay device 21 configured as above will be described with reference to FIG. 17. The relay device 21 is configured to repeatedly execute the parameter setting process shown in FIG. 17 at a predetermined cycle. First, in step S201, the relay device 21 receives the AT-S setting parameters notified from the connection node. After executing step S201, the process proceeds to step S202. In step S202, the AT-S setting parameters received in step S201 are registered in the management table. After executing step S202, this process ends.

次に、上記構成の中継装置21により実行される通信の中継に関連する処理の流れについて図17および図18を参照して説明する。なお、中継装置21は、図17に示すような内容の処理、つまりリクエスト-リプライ中継処理を所定の周期で繰り返し実行するようになっている。図17に示す本実施形態の中継処理は、図6に示した第1実施形態の中継処理に対し、ステップS201およびS202が追加されている点などが異なっている。 Next, the process flow related to the relay of communication executed by the relay device 21 configured as above will be described with reference to Figs. 17 and 18. Note that the relay device 21 is configured to repeatedly execute the process shown in Fig. 17, that is, the request-reply relay process, at a predetermined cycle. The relay process of this embodiment shown in Fig. 17 differs from the relay process of the first embodiment shown in Fig. 6 in that steps S201 and S202 are added.

本実施形態の中継処理では、記憶部11に対応リプライが存在する場合、ステップS102で「YES」となり、ステップS201に進む。ステップS201では、AT設定処理が実行される。AT設定処理は、AT-D、AT-SおよびAT-Cの中からいずれか1つをステップS202の判断で用いるATとして設定するための処理であり、図18に示すような内容となっている。 In the relay process of this embodiment, if a corresponding reply exists in the memory unit 11, the result in step S102 becomes "YES" and the process proceeds to step S201. In step S201, an AT setting process is executed. The AT setting process is a process for setting one of AT-D, AT-S, and AT-C as the AT to be used in the judgment in step S202, and has the contents as shown in FIG. 18.

図18に示すように、AT設定処理が開始されると、まずステップS301が実行される。ステップS301では、受信したリクエストにAT-Cが付与されているか否かが判断される。ここで、受信したリクエストにAT-Cが付与されている場合、ステップS301で「YES」となり、ステップS302に進む。ステップS302では、ATとしてAT-Cが設定される。一方、受信したリクエストにAT-Cが付与されていない場合、ステップS301で「NO」となり、ステップS303に進む。 As shown in FIG. 18, when the AT setting process is started, step S301 is executed first. In step S301, it is determined whether or not an AT-C has been assigned to the received request. If an AT-C has been assigned to the received request, step S301 becomes "YES" and the process proceeds to step S302. In step S302, the AT-C is set as the AT. On the other hand, if an AT-C has not been assigned to the received request, step S301 becomes "NO" and the process proceeds to step S303.

ステップS303では、受信したリクエストにより要求される情報、つまり受信したリクエストに含まれるリクエストキーに対応するAT-Sが管理テーブルに存在するか否かが判断される。ここで、受信したリクエストに含まれるリクエストキーに対応するAT-Sが管理テーブルに存在する場合、ステップS303で「YES」となり、ステップS304に進む。ステップS304では、ATとしてAT-Sが設定される。一方、受信したリクエストに含まれるリクエストキーに対応するAT-Sが管理テーブルに存在しない場合、ステップS303で「NO」となり、ステップS305に進む。ステップS305では、ATとしてAT-Dが設定される。ステップS305の実行後、リターンとなる。 In step S303, it is determined whether or not an AT-S corresponding to the information requested by the received request, i.e., the request key included in the received request, exists in the management table. If an AT-S corresponding to the request key included in the received request exists in the management table, step S303 becomes "YES" and the process proceeds to step S304. In step S304, the AT-S is set as the AT. On the other hand, if an AT-S corresponding to the request key included in the received request does not exist in the management table, step S303 becomes "NO" and the process proceeds to step S305. In step S305, an AT-D is set as the AT. After step S305 is executed, the process returns.

AT設定処理からリターンすると、ステップS107に進み、記憶部11から対応リプライに相当する保存データが取り出される。ステップS107の実行後、ステップS202に進む。ステップS202では、ステップS201で設定されたATを用いて、ステップS107で取り出された保存データが有効であるか否かが判断される。この判断は、下記(1)式を満たすか否かに基づいて行われる。ただし、保存データに含まれるリプライ時刻をTrとし、現在時刻をTcとする。
Tr<Tc-AT …(1)
When returning from the AT setting process, the process proceeds to step S107, where stored data corresponding to the corresponding reply is retrieved from the memory unit 11. After execution of step S107, the process proceeds to step S202. In step S202, using the AT set in step S201, it is determined whether or not the stored data retrieved in step S107 is valid. This determination is made based on whether or not the following formula (1) is satisfied. Here, the reply time included in the stored data is denoted as Tr, and the current time is denoted as Tc.
Tr<Tc-AT...(1)

上記(1)式を満たす場合、保存データのリプライ時刻Trから現在時刻Tcまでの経過時間がAT以内の時間であるため、保存データが有効であると判断することができる。また、上記(1)式を満たさない場合、保存データのリプライ時刻Trから現在時刻Tcまでの経過時間がATを超える時間であるため、保存データが無効であると判断することができる。 If the above formula (1) is satisfied, the time that has elapsed from the reply time Tr of the stored data to the current time Tc is within the AT, and therefore the stored data can be determined to be valid. If the above formula (1) is not satisfied, the time that has elapsed from the reply time Tr of the stored data to the current time Tc exceeds the AT, and therefore the stored data can be determined to be invalid.

ここで、上記(1)を満たす場合、ステップS202で「YES」となり、ステップS108に進み、ステップS107で取り出された対応リプライに相当する保存データが中継対象リクエストに対応するリプライとしてリクエスト元ノードに返送される。一方、上記(1)を満たさない場合、ステップS202で「NO」となり、ステップS103に進み、中継対象リクエストがリクエスト先ノードへと送信される。ステップS103の実行後、ステップS104~S106が順次実行される。ステップS106またはS108の実行後、本処理が終了となる。 If the above (1) is satisfied, step S202 becomes "YES" and the process proceeds to step S108, where the stored data corresponding to the corresponding reply extracted in step S107 is returned to the request source node as a reply corresponding to the request to be relayed. On the other hand, if the above (1) is not satisfied, step S202 becomes "NO" and the process proceeds to step S103, where the request to be relayed is sent to the request destination node. After step S103 is executed, steps S104 to S106 are executed in sequence. After step S106 or S108 is executed, this process ends.

次に、上記構成の接続ノード間で通信が行われる際における中継装置21による動作について、図20~図23に示す具体的な事例に沿って説明する。なお、図20~図23に示す具体的な事例は、メータECU4がボデーECU6からトランクのドアロックステータスを取得する場合の通信を表している。 Next, the operation of the relay device 21 when communication is performed between the connection nodes in the above configuration will be described with reference to the specific examples shown in Figures 20 to 23. Note that the specific examples shown in Figures 20 to 23 represent communication when the meter ECU 4 obtains the trunk door lock status from the body ECU 6.

[1]中継装置が通信を中継してリプライを返送する場合
図20に示すように、中継装置21は、メータECU4から送信された「トランクのドアロックステータス」を表すリクエストキーを含むリクエストを受け取ると、記憶部11の保存データをリプライとして返送可能であるか否かを判断する。この場合、記憶部11に有効な対応リプライが存在しないものとする。そのため、中継装置21は、リクエストをそのままリクエスト先ノードであるボデーECU6に転送する。
[1] When a relay device relays communication and returns a reply, as shown in Fig. 20, when the relay device 21 receives a request including a request key indicating the "trunk door lock status" transmitted from the meter ECU 4, it determines whether or not it is possible to return the data stored in the memory unit 11 as a reply. In this case, it is assumed that there is no valid corresponding reply in the memory unit 11. Therefore, the relay device 21 transfers the request as is to the body ECU 6, which is the request destination node.

その後、中継装置21は、リクエスト先ノードであるボデーECU6からリクエストキーに対応したリプライが返送されると、そのリプライをリクエスト元ノードであるメータECU4へ中継する。このとき、中継装置21は、中継したリプライをリプライ時刻を付与したうえで記憶部11に保存データとして記憶する、つまり前述した記憶処理を実行する。 After that, when the relay device 21 receives a reply corresponding to the request key from the body ECU 6, which is the request destination node, the relay device 21 relays the reply to the meter ECU 4, which is the request source node. At this time, the relay device 21 adds a reply time to the relayed reply and stores it as saved data in the memory unit 11, that is, it executes the storage process described above.

[2]中継装置が通信を中継せずAT-Cを使用してリプライを返送する場合
図21に示すように、中継装置21は、メータECU4から送信された「トランクのドアロックステータス」を表すリクエストキーを含むリクエストを受け取ると、そのリクエストにAT-Cが付与されているか否かを判断する。リクエストにAT-Cが付与されている場合、AT-Cを使用して記憶部11の保存データをリプライとして返送可能であるか否かを判断する。
[2] When the relay device does not relay communication and returns a reply using AT-C As shown in Fig. 21, when the relay device 21 receives a request including a request key indicating the "trunk door lock status" transmitted from the meter ECU 4, the relay device 21 judges whether or not the request has an AT-C attached thereto. If the request has an AT-C attached thereto, the relay device 21 judges whether or not the data stored in the memory unit 11 can be returned as a reply using the AT-C.

この場合、記憶部11に対応リプライが存在し且つ対応リプライのリプライ時刻から現在時刻までの経過時間がAT-Cの値以内の時間であるものとする。そのため、中継装置21は、記憶部11に記憶された保存データを取り出し、その保存データをリプライとしてリクエスト元ノードであるメータECU4へ転送する、つまり前述した返送処理を実行する。この場合、リクエスト先ノードであるボデーECU6は、通信に関連する動作を一切実行しない。 In this case, it is assumed that a corresponding reply exists in the memory unit 11 and that the elapsed time from the reply time of the corresponding reply to the current time is within the value of AT-C. Therefore, the relay device 21 retrieves the stored data stored in the memory unit 11 and transfers the stored data as a reply to the meter ECU 4, which is the request source node, in other words, it executes the return process described above. In this case, the body ECU 6, which is the request destination node, does not execute any operations related to communication.

[3]中継装置が通信を中継せずAT-Sを使用してリプライを返送する場合
図22に示すように、中継装置21は、メータECU4から送信された「トランクのドアロックステータス」を表すリクエストキーを含むリクエストを受け取ると、そのリクエストにAT-Cが付与されているか否かを判断する。リクエストにAT-Cが付与されていない場合、中継装置21は、そのリクエストに含まれるリクエストキーに対応するAT-Sが管理テーブルに存在するか否かを判断する。
[3] When the relay device does not relay communication and returns a reply using AT-S As shown in Fig. 22, when the relay device 21 receives a request including a request key indicating the "trunk door lock status" transmitted from the meter ECU 4, the relay device 21 judges whether or not an AT-C is attached to the request. If an AT-C is not attached to the request, the relay device 21 judges whether or not an AT-S corresponding to the request key included in the request exists in the management table.

リクエストキーに対応するAT-Sが管理テーブルに存在する場合、AT-Sを使用して記憶部11の保存データをリプライとして返送可能であるか否かを判断する。この場合、記憶部11に対応リプライが存在し且つ対応リプライのリプライ時刻から現在時刻までの経過時間がAT-Sの値以内の時間であるものとする。そのため、中継装置21は、記憶部11に記憶された保存データを取り出し、その保存データをリプライとしてリクエスト元ノードであるメータECU4へ転送する、つまり前述した返送処理を実行する。この場合、リクエスト先ノードであるボデーECU6は、通信に関連する動作を一切実行しない。 If an AT-S corresponding to the request key exists in the management table, it is determined whether the data stored in the memory unit 11 can be returned as a reply using the AT-S. In this case, it is assumed that a corresponding reply exists in the memory unit 11 and the elapsed time from the reply time of the corresponding reply to the current time is within the value of the AT-S. Therefore, the relay device 21 retrieves the stored data stored in the memory unit 11 and transfers the stored data as a reply to the meter ECU 4, which is the request source node, in other words, it executes the return process described above. In this case, the body ECU 6, which is the request destination node, does not execute any operations related to communication.

[4]中継装置が通信を中継せずAT-Dを使用してリプライを返送する場合
図23に示すように、中継装置21は、メータECU4から送信された「トランクのドアロックステータス」を表すリクエストキーを含むリクエストを受け取ると、そのリクエストにAT-Cが付与されているか否かを判断する。リクエストにAT-Cが付与されていない場合、中継装置21は、そのリクエストに含まれるリクエストキーに対応するAT-Sが管理テーブルに存在するか否かを判断する。リクエストキーに対応するAT-Sが管理テーブルに存在しない場合、AT-Dを使用して記憶部11の保存データをリプライとして返送可能であるか否かを判断する。
[4] Case where the relay device does not relay communication and uses AT-D to return a reply As shown in Fig. 23, when the relay device 21 receives a request including a request key indicating "trunk door lock status" transmitted from the meter ECU 4, it determines whether or not an AT-C is attached to the request. If an AT-C is not attached to the request, the relay device 21 determines whether or not an AT-S corresponding to the request key included in the request exists in the management table. If an AT-S corresponding to the request key does not exist in the management table, it determines whether or not the data stored in the memory unit 11 can be returned as a reply using AT-D.

なお、管理テーブルに存在する複数のAT-Dのうちどの値を用いるのかは、リクエスト先ノードに応じて定まることになる。この場合、リクエスト先ノードはボデーECU6であるため、ボデーECU6に対応するAT-Dが用いられる。そして、この場合、記憶部11に対応リプライが存在し且つ対応リプライのリプライ時刻から現在時刻までの経過時間がAT-Dの値以内の時間であるものとする。そのため、中継装置21は、記憶部11に記憶された保存データを取り出し、その保存データをリプライとしてリクエスト元ノードであるメータECU4へ転送する、つまり前述した返送処理を実行する。この場合、リクエスト先ノードであるボデーECU6は、通信に関連する動作を一切実行しない。 Which of the multiple AT-D values in the management table is used depends on the request destination node. In this case, the request destination node is the body ECU 6, so the AT-D corresponding to the body ECU 6 is used. In this case, it is assumed that a corresponding reply exists in the memory unit 11 and that the elapsed time from the reply time of the corresponding reply to the current time is within the value of AT-D. Therefore, the relay device 21 retrieves the stored data stored in the memory unit 11 and transfers the stored data as a reply to the meter ECU 4, which is the request source node, in other words, it executes the return process described above. In this case, the body ECU 6, which is the request destination node, does not execute any operations related to communication.

以上説明した本実施形態によれば、第1実施形態と同様の効果に加え、次のような効果が得られる。
上記構成では、記憶処理部23は、記憶処理を実行する際、リプライ時刻をリプライに付与して記憶するようになっており、中継処理部24は、対応リプライのリプライ時刻から現在時刻までの経過時間が予め定められたAT以内の時間である場合には返送処理を実行し、対応リプライの経過時間がATを超える時間である場合には中継対応リクエストをリクエスト先ノードに送信する中継処理を実行するようになっている。つまり、上記構成では、中継処理部24は、ATを用いて対応リプライが有効であるか否かを判断し、対応リプライが有効である場合には返送処理を実行し、対応リプライが無効である場合には中継処理を実行するようになっている。
According to the present embodiment described above, in addition to the same effects as those of the first embodiment, the following effects can be obtained.
In the above configuration, when the storage processing unit 23 executes the storage process, it assigns the reply time to the reply and stores it, and the relay processing unit 24 executes the return process if the elapsed time from the reply time of the corresponding reply to the current time is within a predetermined AT, and executes the relay process of sending a relay corresponding request to the request destination node if the elapsed time of the corresponding reply exceeds the AT. In other words, in the above configuration, the relay processing unit 24 uses the AT to determine whether the corresponding reply is valid or not, executes the return process if the corresponding reply is valid, and executes the relay process if the corresponding reply is invalid.

このようにすれば、中継装置21が通信を中継せずに記憶部11に記憶された対応リプライに相当する保存データをリクエスト元ノードへと返送する際、その対応リプライについて一定の水準で新しさを保証することができる。すなわち、上記構成によれば、中継装置21が通信を中継せずに記憶部11に記憶された対応リプライに相当する保存データをリクエスト元ノードへと返送する際、その対応リプライのリアルタイム性を所望する水準で確保することができる。 In this way, when the relay device 21 returns stored data equivalent to the corresponding reply stored in the memory unit 11 to the request source node without relaying communication, the corresponding reply can be guaranteed to be up-to-date at a certain level. In other words, with the above configuration, when the relay device 21 returns stored data equivalent to the corresponding reply stored in the memory unit 11 to the request source node without relaying communication, the real-time nature of the corresponding reply can be ensured at a desired level.

ATには、リクエスト先ノード毎に個別に設定された時間であるAT-D、リクエストにより要求される情報毎に個別に設定された時間であるAT-Sおよびリクエスト元ノードが送信するリクエスト毎に個別に設定された時間であるAT-Cが含まれている。中継装置21がAT-Dを用いて対応リプライの有効性を判断する場合、リクエスト元ノードへと返送される対応リプライについて接続ノード毎に予め定められた水準のリアルタイム性を保証することができる。 The AT includes AT-D, which is a time set individually for each request destination node, AT-S, which is a time set individually for each piece of information requested by a request, and AT-C, which is a time set individually for each request sent by the requesting node. When the relay device 21 uses AT-D to determine the validity of a corresponding reply, it can guarantee a predetermined level of real-timeness for each connected node for the corresponding reply sent back to the requesting node.

また、中継装置21がAT-Sを用いて対応リプライの有効性を判断する場合、リクエスト元ノードへと返送される対応リプライについて保証するリアルタイム性の水準をリクエスト先ノードが指定することが可能となる。また、中継装置21がAT-Cを用いて対応リプライの有効性を判断する場合、リクエスト元ノードへと返送される対応リプライについて保証するリアルタイム性の水準をリクエスト元ノードがリクエストを送信する毎に指定することが可能となる。 In addition, when relay device 21 uses AT-S to determine the validity of a corresponding reply, the requested node can specify the level of real-timeness guaranteed for the corresponding reply returned to the requesting node.In addition, when relay device 21 uses AT-C to determine the validity of a corresponding reply, the requesting node can specify the level of real-timeness guaranteed for the corresponding reply returned to the requesting node each time it sends a request.

AT-D、AT-SおよびAT-Cのうち、AT-Cはリクエストにより要求される情報毎に最も詳細に定められた時間となり、それに次いでAT-Sが詳細に定められた時間となり、AT-Dは最も大まかに定められた時間となる。そこで、この場合、AT-D、AT-SおよびAT-Cについて、有効性の判断に使用する優先度は、AT-Cが最も高く、AT-Sが2番目に高く、AT-Dが最も低くなっている。このようにすれば、各ATのうちリクエストにより要求される情報毎に詳細に定められたATを優先的に用いて対応リプライの有効性を判断することが可能となるため、対応リプライのリアルタイム性について所望する水準をより確実に保証することができる。 Of AT-D, AT-S and AT-C, AT-C is the time that is most specifically defined for each piece of information requested by the request, followed by AT-S as the most specifically defined time, and AT-D as the most roughly defined time. In this case, the priority used to determine validity for AT-D, AT-S and AT-C is AT-C with the highest priority, AT-S with the second highest, and AT-D with the lowest. In this way, it is possible to determine the validity of the corresponding reply by preferentially using the AT that is specifically defined for each piece of information requested by the request, and therefore it is possible to more reliably guarantee the desired level of real-timeness of the corresponding reply.

(その他の実施形態)
なお、本発明は上記し且つ図面に記載した各実施形態に限定されるものではなく、その要旨を逸脱しない範囲で任意に変形、組み合わせ、あるいは拡張することができる。
上記各実施形態で示した数値などは例示であり、それに限定されるものではない。
本発明は、車両2の通信システムに用いられる中継装置1、21に限らず、リクエスト-リプライ型情報取得通信を行う複数の接続ノード間における通信を中継する中継装置全般に適用することができる。
Other Embodiments
The present invention is not limited to the embodiments described above and shown in the drawings, and can be modified, combined, or expanded as desired without departing from the spirit and scope of the present invention.
The numerical values and the like shown in the above embodiments are merely examples and are not intended to be limiting.
The present invention is not limited to the relay devices 1 and 21 used in the communication system of the vehicle 2, but can be applied to any relay device that relays communication between a plurality of connection nodes that perform request-reply type information acquisition communication.

本開示は、実施例に準拠して記述されたが、本開示は当該実施例や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、さらには、それらに一要素のみ、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範疇や思想範囲に入るものである。 Although the present disclosure has been described with reference to the embodiment, it is understood that the present disclosure is not limited to the embodiment or structure. The present disclosure also encompasses various modifications and modifications within the scope of equivalents. In addition, various combinations and forms, as well as other combinations and forms including only one element, more than one element, or less than one element, are also within the scope and concept of the present disclosure.

本開示に記載の制御部及びその手法は、コンピュータプログラムにより具体化された一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリーを構成することによって提供された専用コンピュータにより、実現されてもよい。あるいは、本開示に記載の制御部及びその手法は、一つ以上の専用ハードウェア論理回路によってプロセッサを構成することによって提供された専用コンピュータにより、実現されてもよい。もしくは、本開示に記載の制御部及びその手法は、一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリーと一つ以上のハードウェア論理回路によって構成されたプロセッサとの組み合わせにより構成された一つ以上の専用コンピュータにより、実現されてもよい。また、コンピュータプログラムは、コンピュータにより実行されるインストラクションとして、コンピュータ読み取り可能な非遷移有形記録媒体に記憶されていてもよい。 The control unit and the method described in the present disclosure may be realized by a dedicated computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a computer program. Alternatively, the control unit and the method described in the present disclosure may be realized by a dedicated computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method described in the present disclosure may be realized by one or more dedicated computers configured by combining a processor and a memory programmed to execute one or more functions with a processor configured with one or more hardware logic circuits. In addition, the computer program may be stored in a computer-readable non-transient tangible recording medium as instructions executed by the computer.

1、21…中継装置、3~7…ECU、8…クラウドアプリケーション、11…記憶部、14、23…記憶処理部、15…判断処理部、16、24…中継処理部。 1, 21... relay device, 3-7... ECU, 8... cloud application, 11... storage unit, 14, 23... storage processing unit, 15... judgment processing unit, 16, 24... relay processing unit.

Claims (2)

リクエスト-リプライ型情報取得通信を行う複数の接続ノード(3~8)間における通信を中継する中継装置において、
情報取得を要求するためのリクエストを送信する前記接続ノードをリクエスト元ノードとし、前記リクエストを受信すると前記リクエスト元ノードが要求する情報を含むリプライを前記リクエスト元ノードに返送する前記接続ノードをリクエスト先ノードとしたとき、
前記リプライを記憶することができる記憶部(11)と、
前記リクエスト先ノードから前記リクエスト元ノードへと返送される前記リプライを中継すると、そのリプライを前記記憶部に記憶する記憶処理を実行する記憶処理部(14、23)と、
前記リクエスト元ノードから前記リクエスト先ノードへと送信される前記リクエストを中継する際に前記記憶部に記憶された前記リプライの中に中継する対象となる前記リクエストである中継対象リクエストに対応する前記リプライである対応リプライが存在するか否かを判断する判断処理を実行する判断処理部(15)と、
前記対応リプライが存在する場合に前記中継対象リクエストを前記リクエスト先ノードに送信することなく、前記記憶部に記憶された前記対応リプライを前記中継対象リクエストに対する前記リプライとして前記リクエスト元ノードに返送する返送処理を実行する中継処理部(16、24)と、
を備え
前記記憶処理部(23)は、前記記憶処理を実行する際、前記リプライを中継した時刻に対応する時刻であるリプライ時刻を前記リプライに付与して記憶するようになっており、
前記中継処理部(24)は、
前記対応リプライの前記リプライ時刻から現在時刻までの経過時間が、予め定められた経過許容時間以内の時間であるか否かに基づいて前記対応リプライが有効であるか否かを判断し、
前記対応リプライの前記経過時間が前記経過許容時間以内の時間であり前記対応リプライが有効であると判断される場合には前記返送処理を実行し、
前記対応リプライの前記経過時間が前記経過許容時間を超える時間であり前記対応リプライが有効ではないと判断される場合には前記中継対象リクエストを前記リクエスト先ノードに送信する中継処理を実行し、
前記経過許容時間には、前記リクエスト先ノード毎に個別に設定された時間であるAT-Dと、前記リクエストにより要求される前記情報毎に個別に設定された時間であるAT-Sと、前記リクエスト元ノードが送信する前記リクエスト毎に個別に設定された時間であるAT-Cと、が含まれており、
前記リクエスト元ノードは、前記リクエストを送信する際、そのリクエストに前記AT-Cを付与するようになっており、
前記AT-D、前記AT-Sおよび前記AT-Cについて、前記対応リプライが有効であるか否かの判断に使用する優先度が定められている中継装置。
A relay device that relays communication between a plurality of connection nodes (3 to 8) that perform request-reply type information acquisition communication,
The connection node that transmits a request for requesting information acquisition is defined as a request source node, and the connection node that receives the request and returns a reply including the information requested by the request source node to the request source node is defined as a request destination node.
A memory unit (11) capable of storing the reply;
a storage processing unit (14, 23) that executes a storage process for storing the reply in the storage unit when the reply is relayed from the request destination node to the request source node;
a determination processing unit (15) that executes a determination process to determine whether or not a corresponding reply, which is the reply corresponding to a relay target request, which is the request to be relayed, exists among the replies stored in the storage unit when relaying the request transmitted from the request source node to the request destination node;
a relay processing unit (16, 24) that executes a return process of returning the corresponding reply stored in the storage unit to the request source node as the reply to the relay target request without transmitting the relay target request to the request destination node when the corresponding reply exists;
Equipped with
When executing the storage process, the storage processing unit (23) is configured to add a reply time, which is a time corresponding to a time when the reply was relayed, to the reply and store the reply,
The relay processing unit (24)
determining whether the corresponding reply is valid based on whether an elapsed time from the reply time of the corresponding reply to a current time is within a predetermined elapsed allowable time;
If the elapsed time of the corresponding reply is within the elapsed time limit and the corresponding reply is determined to be valid, the return process is executed;
If the elapsed time of the corresponding reply exceeds the permitted elapsed time and the corresponding reply is determined to be invalid, a relay process is executed to transmit the request to be relayed to the request destination node;
The allowable elapsed time includes AT-D, which is a time individually set for each of the request destination nodes, AT-S, which is a time individually set for each of the information requested by the request, and AT-C, which is a time individually set for each of the requests transmitted by the request source node,
the request source node is adapted to attach the AT-C to the request when transmitting the request,
A relay device in which priorities are determined for the AT-D, the AT-S, and the AT-C to be used in determining whether the corresponding reply is valid .
前記記憶処理部は、前記記憶処理を実行する際、中継した前記リプライと同一の前記リクエストに対応する前記リプライが前記記憶部に記憶されていた場合、その記憶されていた前記リプライを削除するようになっている請求項1に記載の中継装置。 The relay device according to claim 1, wherein the memory processing unit is configured to delete a reply corresponding to the same request as the relayed reply if the reply corresponding to the same request as the relayed reply is stored in the memory unit when the memory processing unit executes the storage process.
JP2021193137A 2021-11-29 2021-11-29 Repeater Active JP7704020B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021193137A JP7704020B2 (en) 2021-11-29 2021-11-29 Repeater

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021193137A JP7704020B2 (en) 2021-11-29 2021-11-29 Repeater

Publications (2)

Publication Number Publication Date
JP2023079600A JP2023079600A (en) 2023-06-08
JP7704020B2 true JP7704020B2 (en) 2025-07-08

Family

ID=86647166

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021193137A Active JP7704020B2 (en) 2021-11-29 2021-11-29 Repeater

Country Status (1)

Country Link
JP (1) JP7704020B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011186903A (en) 2010-03-10 2011-09-22 Fuji Electric Co Ltd Remote monitoring device and data access method in the device
JP2013203236A (en) 2012-03-28 2013-10-07 Denso Corp Data output device for vehicle
JP2017182665A (en) 2016-03-31 2017-10-05 富士通株式会社 Information processing device, data providing system, data providing method, and data providing program
JP2019003463A (en) 2017-06-16 2019-01-10 パナソニック株式会社 Node device and cache management method in node device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011186903A (en) 2010-03-10 2011-09-22 Fuji Electric Co Ltd Remote monitoring device and data access method in the device
JP2013203236A (en) 2012-03-28 2013-10-07 Denso Corp Data output device for vehicle
JP2017182665A (en) 2016-03-31 2017-10-05 富士通株式会社 Information processing device, data providing system, data providing method, and data providing program
JP2019003463A (en) 2017-06-16 2019-01-10 パナソニック株式会社 Node device and cache management method in node device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ボスワーシック デビッド David Boswarthick,M2M基本技術書 第1版 ETSI標準の理論と体系、[原題] M2M Communications、,第1版,株式会社リックテレコム 新関 卓哉,2013年12月26日,P.72-73, 115-132

Also Published As

Publication number Publication date
JP2023079600A (en) 2023-06-08

Similar Documents

Publication Publication Date Title
JP6060782B2 (en) Relay device
US20120185876A1 (en) Control device, control method, and computer readable medium
CN118312196A (en) Gateway device, vehicle network system and firmware update method
US11947824B2 (en) Electronic control unit, method, and program
US11803364B2 (en) Server, software updating device, vehicle, software updating system, control method, and non-transitory storage medium
KR20230161889A (en) Electronic control unit, vehicle information providing method and continuous computer reading storage medium
US20100281010A1 (en) Relay device, communication system and communication method
CN106973031B (en) Resource access control method, device and system
CN110574015A (en) Vehicle-mounted relay device, control program and memory sharing method
CN113810270A (en) Method and device for realizing SOA (service oriented architecture) of local area network of vehicle-mounted controller
US20190171585A1 (en) Information processing device, information processing method, and computer program product
JP7124660B2 (en) In-vehicle system
JP7704020B2 (en) Repeater
EP3961380A1 (en) Onboard device, information generating method, non-transitory storage medium, and vehicle
JP7359061B2 (en) relay device
US8605744B2 (en) Semiconductor integrated circuit device
US11977503B2 (en) Control device, onboard system, control method, and non-transitory computer-readable recording medium
CN117215803B (en) Process communication method and device, electronic equipment and readable storage medium
JP7828268B2 (en) Network system and network management method
EP4521234A1 (en) Vehicle control method and device, and vehicle
US12219015B2 (en) Method and system for data communication network in a vehicle
US20260030339A1 (en) Communication method, apparatus, and system, and mobile carrier
KR20230004153A (en) Routing device and method
JP2025128720A (en) Communication device
WO2020195034A1 (en) Vehicle-mounted update device, update processing system, update processing method, and processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240409

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250609

R150 Certificate of patent or registration of utility model

Ref document number: 7704020

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150