JP2008078769A - Communicating system - Google Patents

Communicating system Download PDF

Info

Publication number
JP2008078769A
JP2008078769A JP2006252924A JP2006252924A JP2008078769A JP 2008078769 A JP2008078769 A JP 2008078769A JP 2006252924 A JP2006252924 A JP 2006252924A JP 2006252924 A JP2006252924 A JP 2006252924A JP 2008078769 A JP2008078769 A JP 2008078769A
Authority
JP
Japan
Prior art keywords
ecu
request
processing
time
electronic control
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.)
Pending
Application number
JP2006252924A
Other languages
Japanese (ja)
Inventor
Yuji Kojima
裕次 小島
Tatsuya Kato
達矢 加藤
Jiro Sato
二郎 佐藤
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 JP2006252924A priority Critical patent/JP2008078769A/en
Publication of JP2008078769A publication Critical patent/JP2008078769A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To allow a proper period to be set with respect to a time-out period of waiting for reception. <P>SOLUTION: In a communication system having a plurality of ECUs (Electronic Control Units) connected to an in-vehicle LAN, a remote operation accepting ECU communicates with slave ECUs such as a collating ECU and a body ECU to perform processing relating to remote operations such as door locking/unlocking, in cooperation with other ECUs. On reception of request data from the remote operation accepting ECU, each slave ECU transmits acceptance response data wherein information showing a maximum execution period required for the completion of processing (door locking/unlocking processing or the like) requested by the request data is stored, to a request source ECU before transmitting completion response data showing an execution result of the processing. Meanwhile, on reception of the acceptance response data, the remote operation accepting ECU sets a period corresponding to the maximum execution period of the requested processing, as the time-out period of a reception waiting operation relating to the completion response data, on the basis of information of the maximum execution period shown by the acceptance response data (S250). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ネットワークに、複数の電子制御装置が接続された通信システムであって、これら複数の電子制御装置の内、少なくとも一つの電子制御装置が、ネットワーク内の他の電子制御装置と通信し、この電子制御装置と協働して、一連の処理を実現する通信システムに関する。   The present invention is a communication system in which a plurality of electronic control devices are connected to a network, and at least one of the plurality of electronic control devices communicates with other electronic control devices in the network. The present invention relates to a communication system that realizes a series of processes in cooperation with the electronic control unit.

従来、通信システムとしては、複数の電子制御装置をネットワークに接続してなるシステムであって、複数の電子制御装置を連携動作させ、車両制御を実現するようにした車内LANシステムが知られている。   2. Description of the Related Art Conventionally, as a communication system, an in-vehicle LAN system in which a plurality of electronic control devices are connected to a network and a plurality of electronic control devices are operated in cooperation to realize vehicle control is known. .

この種の通信システムにおいては、要求信号を受信したノードが、要求信号を送信してきたノードに対し、要求信号に対する応答信号を送信することにより、各ノード間で情報交換が行われ、一連の処理が実現される。   In this type of communication system, a node that receives a request signal transmits a response signal to the request signal to a node that has transmitted the request signal, whereby information is exchanged between the nodes, and a series of processes is performed. Is realized.

また、この種の通信システムにおいては、応答信号が要求信号送信元のノードに届かなかった時のために、要求信号送信元のノードにて、応答信号の受信待ち動作についてのタイムアウト処理を行うのが一般的である。   Further, in this type of communication system, a time-out process is performed for the response signal reception waiting operation at the request signal transmission source node in case the response signal does not reach the request signal transmission source node. Is common.

この他、タイムアウト時間の設定方法としては、ネットワークトラフィックや、要求信号受信側ノードの処理負荷に応じて、適切なタイムアウト時間を設定するために、前回の要求信号の送信時に、応答信号の受信に成功したか否かを記録しておき、次回の要求信号の送信時には、前回、応答信号の受信に成功したか否かにより、タイムアウト時間を変更する方法が知られている(例えば、特許文献1参照)。   In addition, as a method for setting the timeout time, in order to set an appropriate timeout time according to the network traffic and the processing load on the request signal receiving node, the response signal is received when the previous request signal is transmitted. A method is known in which whether or not it has succeeded is recorded, and when the next request signal is transmitted, the timeout time is changed depending on whether or not the response signal has been successfully received last time (for example, Patent Document 1). reference).

受信待ち動作に関してタイムアウト時間を設定する場合には、タイムアウト時間を冗長に設定すると、タイムアウト時間が経過するまでエラー処理を実行することができないため、応答信号の受信に失敗した際、これらの処理を迅速に実行することができなくなる。一方、タイムアウト時間を短く設定しすぎると、タイムアウト時間が経過するまでに、応答信号の受信が間に合わず、要求信号送信元のノードにて、無駄なエラー処理が頻繁に実行されてしまう。上述の設定方法は、この種の問題を解消するためのものである。
特開2002−26908号公報
When setting the timeout time for the reception waiting operation, if the timeout time is set redundantly, error processing cannot be executed until the timeout time elapses. It becomes impossible to execute quickly. On the other hand, if the timeout time is set too short, the response signal cannot be received before the timeout time elapses, and useless error processing is frequently executed at the request signal transmission source node. The above setting method is for solving this type of problem.
JP 2002-26908 A

ところで、自動車分野では、車両制御にかかる機能を細分化して、細分化した各機能を個別の電子制御装置にて実現するようにし、汎用的な機能を実現する電子制御装置については、電子制御装置を、車種に拠らず共通化することが行われている。   By the way, in the automobile field, functions related to vehicle control are subdivided, and each subdivided function is realized by an individual electronic control device. Is being made common regardless of the vehicle type.

しかしながら、このようにして電子制御装置を共通化し、電子制御装置の組み合わせを車種に応じて変更して、車内LANシステムを構成する場合には、要求信号送信元の電子制御装置が同一の電子制御装置でも、要求信号受信側の電子制御装置が同一でない車内LANシステムが構築される。   However, when the electronic control device is shared in this way and the combination of the electronic control devices is changed according to the vehicle type to configure the in-vehicle LAN system, the request signal transmission source electronic control device is the same electronic control. Even in the case of the device, an in-vehicle LAN system is constructed in which the electronic control devices on the request signal receiving side are not the same.

従って、要求信号送信元の電子制御装置を、車種に拠らず共通化する場合には、この電子制御装置と組み合わせられる電子制御装置の内、応答信号の送信に最も時間を要する電子制御装置に合わせて、受信待ち動作のタイムアウト時間を設定する必要がある。このため、要求信号送信元の電子制御装置を、車種に拠らず共通化する場合には、タイムアウト時間が長くなりがちで、エラー処理を迅速に実行することができないといった問題があった。   Therefore, in the case where the request control signal transmission source electronic control device is made common regardless of the vehicle type, among the electronic control devices combined with this electronic control device, the electronic control device that requires the most time to transmit the response signal. In addition, it is necessary to set a timeout period for the reception waiting operation. For this reason, when the requesting signal transmission source electronic control device is made common regardless of the vehicle type, there is a problem that the time-out time tends to be long and the error processing cannot be executed quickly.

また、要求信号受信側の電子制御装置を、複数種類の要求信号を受付可能な構成にし、この電子制御装置に複数種類の処理を実行させる場合には、処理毎に、処理が完了するまでの時間が異なるため、要求信号を送信しても、その要求信号の応答信号として、要求信号受信側の電子制御装置から、処理の実行結果を表す応答信号が送信されてくるまでの時間が、処理毎に大きく異なり、要求信号送信元の電子制御装置に、タイムアウト時間として適切な時間を設定するのが難しいといった問題があった。   In addition, when the electronic control device on the request signal receiving side is configured to accept a plurality of types of request signals and when the electronic control device is to execute a plurality of types of processing, the processing is completed for each processing. Since the time is different, even if a request signal is transmitted, the time until the response signal indicating the execution result of the process is transmitted from the electronic control unit on the request signal reception side as the response signal of the request signal There is a problem that it is difficult to set an appropriate time as a timeout time in the electronic control device that is a request signal transmission source.

即ち、処理が完了するまでの時間が最も長い処理に合わせて、タイムアウト時間を設定すると、エラー処理を迅速に実行することができないといった問題があった。
本発明は、こうした問題に鑑みなされたものであり、要求信号受信側の電子制御装置の処理動作に合わせて、受信待ち動作のタイムアウト時間に関し、適切な時間を設定することが可能な通信システムを提供することを目的とする。
That is, there is a problem that error processing cannot be executed quickly if a timeout time is set in accordance with the processing that takes the longest time to complete the processing.
The present invention has been made in view of such problems, and provides a communication system capable of setting an appropriate time for the timeout time of the reception waiting operation in accordance with the processing operation of the electronic control device on the request signal receiving side. The purpose is to provide.

かかる目的を達成するためになされた請求項1記載の通信システムは、ネットワークに、複数の電子制御装置が接続され、これらの電子制御装置の内、少なくとも一つの電子制御装置Aが、ネットワーク内の他の電子制御装置Bと通信し、この電子制御装置Bと協働して、一連の処理を実現するものである。   A communication system according to claim 1, which is made to achieve the above object, includes a plurality of electronic control devices connected to a network, and at least one of the electronic control devices A is connected to the network. A series of processing is realized by communicating with another electronic control device B and cooperating with the electronic control device B.

この通信システムにおいて、電子制御装置Bは、電子制御装置Aから、処理の実行を要求する要求信号を受信すると、受付応答手段により、要求信号にて要求された処理が完了するまでの所要時間を表す情報、を格納した応答信号であって、要求が受け付けられたことを示す受付応答信号を、要求信号の送信元装置に送信する。   In this communication system, when the electronic control unit B receives a request signal requesting execution of processing from the electronic control unit A, the electronic control unit B determines the time required until the processing requested by the request signal is completed by the reception response unit. An acknowledgment response signal indicating that the request is accepted is transmitted to the request signal transmission source device.

また、要求信号を受信すると、処理実行手段にて、要求信号にて要求された処理を実行し、この処理が完了すると、完了応答手段にて、要求信号に対応する処理が完了したことを示す応答信号であって、処理の実行結果を表す情報を格納した完了応答信号を、要求信号の送信元装置に送信する。   Further, when the request signal is received, the process execution means executes the process requested by the request signal. When this process is completed, the completion response means indicates that the process corresponding to the request signal is completed. A completion response signal, which is a response signal and stores information representing the execution result of the process, is transmitted to the request signal transmission source device.

一方、電子制御装置Aは、イベントの発生に応じ、要求手段にて、発生したイベントに対応した処理の実行を要求する要求信号を、その処理を実行可能な電子制御装置Bに送信し、受信処理手段にて、この要求信号に対応する完了応答信号を、電子制御装置Bから受信し、この完了応答信号に基づき、イベントに対応する処理を実行する。また、完了応答信号の受信に際しては、電子制御装置Bから受信した受付応答信号に格納された所要時間を表す情報に基づき、タイムアウト時間設定手段にて、受信処理手段に対し、対応する完了応答信号の受信待ち動作についてのタイムアウト時間を設定する。   On the other hand, in response to the occurrence of the event, the electronic control unit A transmits a request signal for requesting execution of the process corresponding to the generated event to the electronic control unit B capable of executing the process, and receives the request signal. The processing means receives a completion response signal corresponding to the request signal from the electronic control unit B, and executes processing corresponding to the event based on the completion response signal. Further, upon reception of the completion response signal, a corresponding completion response signal is sent from the time-out time setting means to the reception processing means based on the information indicating the required time stored in the reception response signal received from the electronic control unit B. Set the timeout period for the reception waiting operation.

即ち、この通信システムでは、要求信号送信元の電子制御装置Aが、要求信号受信側の電子制御装置Bから、要求に対応した処理の実行に要する時間の予測値を取得し、この時間に基づいて、受信待ち動作についてのタイムアウト時間を設定する。   That is, in this communication system, the request signal transmission source electronic control unit A obtains a predicted value of the time required to execute the processing corresponding to the request from the request signal receiving side electronic control unit B, and based on this time Set the timeout period for the reception waiting operation.

従って、この通信システムによれば、要求信号送信先の電子制御装置Bの種類に拘わらず、要求信号送信先の電子制御装置Bの処理動作(処理内容)に合わせて、適切にタイムアウト時間を設定することができる。また、この通信システムによれば、要求信号送信先の電子制御装置Bが実行する処理毎に、個別に適切なタイムアウト時間を設定することができる。結果、この通信システムによれば、処理の実行結果を電子制御装置Bから取得することができない場合に、電子制御装置Aにて、エラー処理を迅速に実行することができる。また、タイムアウト時間が短すぎることにより、電子制御装置Aにて、無駄なエラー処理が頻繁に行われてしまうのを防止することができる。   Therefore, according to this communication system, the time-out time is appropriately set according to the processing operation (processing contents) of the electronic control device B as the request signal transmission destination regardless of the type of the electronic control device B as the request signal transmission destination. can do. Further, according to this communication system, an appropriate timeout time can be set individually for each process executed by the electronic control device B that is the request signal transmission destination. As a result, according to this communication system, when the execution result of the process cannot be obtained from the electronic control apparatus B, the electronic control apparatus A can execute the error process quickly. Further, since the timeout time is too short, it is possible to prevent the electronic control device A from frequently performing unnecessary error processing.

尚、要求信号送信元の電子制御装置Aは、タイムアウト時間設定手段により設定されたタイムアウト時間が経過するまでの期間に、要求信号に対応する完了応答信号を受信することができなかった場合、各種のエラー処理を実行する構成にすることができる。具体的に、エラー処理としては、完了応答信号の取得を再試行する手順を含むリトライ処理を挙げることができる(請求項2)。   Note that the electronic control device A that is the request signal transmission source cannot receive the completion response signal corresponding to the request signal in the period until the timeout time set by the timeout time setting means elapses. The error processing can be configured to be executed. Specifically, the error process can include a retry process including a procedure for retrying acquisition of the completion response signal.

タイムアウト時間設定手段により設定されたタイムアウト時間が経過するまでの期間に、要求信号に対応する完了応答信号を受信することができなかった場合、完了応答信号の取得を再試行する手順を含むリトライ処理を実行するように、受信処理手段を構成すれば、要求信号送信元の電子制御装置では、ノイズ等の影響を受けて、要求信号送信先の電子制御装置から応答信号を受信することができなかった場合、迅速に、完了応答信号の取得を再試行することができる。   Retry processing including a procedure for retrying acquisition of a completion response signal when the completion response signal corresponding to the request signal cannot be received in the period until the timeout time set by the timeout time setting means elapses If the reception processing means is configured to execute the request signal, the request signal transmission source electronic control device cannot receive a response signal from the request signal transmission destination electronic control device due to the influence of noise or the like. In this case, the acquisition of the completion response signal can be retried quickly.

具体的に、リトライ処理として、受信処理手段は、タイムアウト時間設定手段により設定されたタイムアウト時間が経過するまでの期間に、要求信号に対応する完了応答信号を受信することができなかった場合、完了応答信号に対応する要求信号を送信した送信先の電子制御装置Bに、この要求信号に対応する再要求信号を、送信する構成にされるとよい。また、これに対応して、電子制御装置Bは、電子制御装置Aから、再要求信号を受信すると、処理実行手段が上記再要求信号に対応する要求信号の受信の際に実行を開始した処理、の実行結果を表す情報を格納した完了応答信号を、リトライ応答手段にて、再要求信号の送信元装置に、送信する構成にされるとよい(請求項3)。   Specifically, as the retry processing, the reception processing means completes when it cannot receive the completion response signal corresponding to the request signal in the period until the timeout time set by the timeout time setting means elapses. A re-request signal corresponding to the request signal may be transmitted to the transmission destination electronic control apparatus B that has transmitted the request signal corresponding to the response signal. Correspondingly, when the electronic control unit B receives the re-request signal from the electronic control unit A, the process executed by the process execution means upon reception of the request signal corresponding to the re-request signal The completion response signal storing the information indicating the execution result is preferably transmitted to the re-request signal transmission source device by the retry response means.

この他、再要求時には、上記所要時間を表す情報を格納した受付応答信号を電子制御装置A−B間で授受することなく、完了応答信号のみを授受するようにしてもよいが、要求信号に対応する処理が未完了の場合には、再度、受付応答信号を送信するように、電子制御装置Bを構成すると、好ましい。   In addition, at the time of a re-request, only the completion response signal may be transmitted / received without transmitting / receiving the reception response signal storing the information indicating the required time between the electronic control devices A and B. It is preferable to configure the electronic control unit B so that the reception response signal is transmitted again when the corresponding processing is incomplete.

即ち、リトライ応答手段は、再要求信号を受信した時点で、この再要求信号に対応する要求信号の受信の際に処理実行手段が実行を開始した処理が処理実行手段にて完了していない場合、完了応答信号の送信に先駆けて、要求信号に対応する処理が完了するまでの所要時間を表す情報、を格納した受付応答信号を、再要求信号の送信元装置に送信する構成にされるとよい(請求項4)。   That is, when the retry response means receives the re-request signal, the process execution means has started to execute when the request signal corresponding to the re-request signal is received, but the process execution means has not completed the process. Prior to the transmission of the completion response signal, the reception response signal storing information indicating the time required until the processing corresponding to the request signal is completed is transmitted to the re-request signal transmission source device. Good (Claim 4).

初回の要求信号の受信時に、要求信号送信元の電子制御装置Aに通知する所要時間は、予測値であるため、要求信号受信側の電子制御装置Bにて、処理の実行が捗らない場合には、要求信号送信元の電子制御装置Aに通知した所要時間を越えて、要求信号に対応した処理が電子制御装置Bで実行されることになる。   When the first request signal is received, the required time to be notified to the electronic control device A that is the request signal transmission source is a predicted value, and therefore the electronic control device B on the request signal receiving side does not proceed with processing. The processing corresponding to the request signal is executed by the electronic control device B beyond the required time notified to the electronic control device A as the request signal transmission source.

この際、再要求信号送信元の電子制御装置Aに、処理の完了までに要する所要時間を、受付応答信号により再度通知すれば、電子制御装置Aでは、リトライ処理時においても、タイムアウト時間設定手段により、完了応答信号の受信待ち動作に対して、適切なタイムアウト時間を設定することができる。従って、このように通信システムを構成すれば、リトライ処理によっても完了応答信号を受信することができない場合に、再度、迅速にエラー処理(リトライ処理)を実行することができる。   At this time, if the electronic control device A that is the transmission source of the re-request signal is notified again of the time required for the completion of the processing by the acceptance response signal, the electronic control device A can set the timeout time setting means even during the retry processing. Thus, an appropriate timeout time can be set for the operation of waiting for reception of the completion response signal. Therefore, if the communication system is configured in this way, error processing (retry processing) can be quickly executed again when a completion response signal cannot be received even by retry processing.

また、タイムアウト時間設定手段は、要求手段による要求信号の送信後、送信先の電子制御装置Bから受付応答信号を受信することができない場合、デフォルトのタイムアウト時間を、受信処理手段に対し設定する構成にされてもよいが、受付応答信号を受信することができなかった場合には、要求信号そのものが、要求信号送信先の電子制御装置Bにて受信されていない可能性があるので、タイムアウト時間設定手段は、次のように構成されるのが好ましい。   The time-out time setting means is configured to set a default time-out time for the reception processing means when the request response signal cannot be received from the transmission destination electronic control apparatus B after the request signal is transmitted by the request means. However, if the reception response signal cannot be received, the request signal itself may not be received by the electronic control device B that is the request signal transmission destination. The setting means is preferably configured as follows.

即ち、タイムアウト時間設定手段は、要求手段による要求信号の送信後、所定時間内に、送信先の電子制御装置Bから受付応答信号を受信することができなかった場合、その時点で(上記所定時間が経過した時点で)、受信処理手段に、リトライ処理を開始させる構成にされるとよい(請求項5)。このように、電子制御装置Aを構成すれば、迅速に、要求信号に対応する処理の実行結果を、電子制御装置Bから取得することができて、以後の処理を迅速に行うことができる。   That is, if the time-out time setting means fails to receive the acceptance response signal from the transmission destination electronic control device B within a predetermined time after the transmission of the request signal by the request means, at that time (the predetermined time It is preferable that the reception processing means is configured to start a retry process when the time elapses. As described above, if the electronic control device A is configured, the execution result of the processing corresponding to the request signal can be quickly acquired from the electronic control device B, and the subsequent processing can be performed quickly.

また、電子制御装置Bが、再要求信号に対応する処理が処理実行手段にて完了していない場合、上記処理が完了するまでの所要時間を表す情報を格納した受付応答信号を、再要求信号の送信元装置に送信する構成にされている場合には、タイムアウト時間設定手段を、次のように構成するとよい。   In addition, when the process corresponding to the re-request signal is not completed by the process execution unit, the electronic control device B generates an acceptance response signal storing information indicating the time required until the process is completed. In this case, the timeout time setting means may be configured as follows.

即ち、タイムアウト時間設定手段は、受信処理手段による再要求信号の送信後、完了応答信号の受信が成功していない状態で、所定時間内に、送信先の電子制御装置Bから受付応答信号を受信することができなかった場合、上記所定時間が経過した時点で、受信処理手段に、再度、リトライ処理を実行させる構成にされるとよい。   That is, the timeout time setting means receives an acceptance response signal from the transmission destination electronic control unit B within a predetermined time in a state where the completion response signal has not been successfully received after the re-request signal is transmitted by the reception processing means. When the predetermined time has not passed, the reception processing means may be configured to execute the retry process again.

電子制御装置Bにて再要求信号に対応する処理が完了している場合には、再要求信号に対応する処理が完了していない場合に受付応答信号が送信されてくる時期と、同時期に、電子制御装置Bから完了応答信号が送信されてくるので、受付応答信号の受信待ち動作を適当な時間行っても、受付応答信号又は完了応答信号を受信することができなかった場合には、再要求信号が電子制御装置Bで受け付けられていない可能性が高い。   When the processing corresponding to the re-request signal is completed in the electronic control device B, at the same time as the reception response signal is transmitted when the processing corresponding to the re-request signal is not completed Since the completion response signal is transmitted from the electronic control unit B, if the reception response signal or the completion response signal cannot be received even if the reception response signal reception waiting operation is performed for an appropriate time, There is a high possibility that the re-request signal is not accepted by the electronic control unit B.

従って、本発明のようにタイムアウト時間設定手段を構成すれば、再要求信号が電子制御装置Bで受け付けられていない場合に、再度、迅速に、リトライ処理を実行することができる。よって、本発明によれば、電子制御装置A−B間の通信が、ノイズ等で妨害される場合であっても、リトライ処理を効率的に行って、迅速に、要求した処理の実行結果を、電子制御装置Bから取得することができる。   Therefore, if the time-out time setting means is configured as in the present invention, when the re-request signal is not accepted by the electronic control device B, the retry process can be executed again quickly. Therefore, according to the present invention, even when the communication between the electronic control units A and B is obstructed by noise or the like, the retry process is efficiently performed and the execution result of the requested process is quickly obtained. Can be obtained from the electronic control unit B.

以下、本発明の実施例について、図面と共に説明する。図1は、本発明が適用された通信システム1の構成を表すブロック図である。
図1に示すように、本実施例の通信システム1は、ネットワークNT(車内LAN)に、複数の電子制御装置(以下、「ECU」ともいう。)が接続されてなる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a communication system 1 to which the present invention is applied.
As shown in FIG. 1, the communication system 1 according to the present embodiment includes a plurality of electronic control units (hereinafter also referred to as “ECUs”) connected to a network NT (in-vehicle LAN).

具体的に、この通信システム1は、遠隔操作受付用の電子制御装置(以下、「遠隔操作受付ECU」という。)10と、ユーザ認証に係る照合機能を有した電子制御装置(以下、「照合ECU」という。)20と、車両ドアのロック/アンロック制御や、パワーウィンドウの制御、ハザードを含むライトのオン/オフ制御を行うボデー制御用の電子制御装置(以下、「ボデーECU」という。)30と、がネットワークNTに接続されてなる。   Specifically, the communication system 1 includes an electronic control device for remote operation reception (hereinafter referred to as “remote operation reception ECU”) 10 and an electronic control device (hereinafter referred to as “verification”) having a verification function related to user authentication. ECU ”) 20 and an electronic control device for body control (hereinafter referred to as“ body ECU ”) that performs lock / unlock control of a vehicle door, control of a power window, and on / off control of a light including a hazard. 30) is connected to the network NT.

遠隔操作受付ECU10には、ユーザが携帯するユーザ端末40と無線通信可能な無線通信装置15が接続されており、遠隔操作受付ECU10は、無線通信装置15を介して、ユーザ端末40から、ボデー系(ドア系、ライト系、パワーウィンドウ系等)に対する遠隔操作信号を受信すると、遠隔操作信号に含まれる送信元ユーザ端末40の端末IDを、照合ECU20に送信して、照合ECU20に、この端末IDを、正当なユーザ端末の端末IDと照合させ、両端末IDが一致するか否かを判断させる。   The remote operation reception ECU 10 is connected to a wireless communication device 15 capable of wireless communication with a user terminal 40 carried by the user. The remote operation reception ECU 10 is connected to the body system from the user terminal 40 via the wireless communication device 15. When a remote operation signal for a door system, a light system, a power window system, or the like is received, the terminal ID of the transmission source user terminal 40 included in the remote operation signal is transmitted to the verification ECU 20, and this terminal ID is transmitted to the verification ECU 20. Is compared with the terminal ID of the legitimate user terminal to determine whether or not both terminal IDs match.

また、遠隔操作受付ECU10は、この照合結果に基づいて、遠隔操作信号の送信元ユーザ端末40が正当なユーザ端末であると認められると、受信した遠隔操作信号に対応する処理を実現するために、ボデーECU30に対し、遠隔操作信号に対応する処理の実行を要求する要求データを、ネットワークNTを介して送信し、ボデーECU30に、遠隔操作信号に対応する処理を実行させる。そして、この処理結果を、無線通信装置15を介して、ユーザ端末40に送信する。   Further, when the remote operation reception ECU 10 recognizes that the remote operation signal transmission source user terminal 40 is a valid user terminal based on the collation result, the remote operation reception ECU 10 realizes processing corresponding to the received remote operation signal. Then, request data requesting execution of the process corresponding to the remote operation signal is transmitted to the body ECU 30 via the network NT, and the body ECU 30 is caused to execute the process corresponding to the remote operation signal. Then, the processing result is transmitted to the user terminal 40 via the wireless communication device 15.

尚、ボデーECU30には、車両ドアのロック/アンロック機構を備えたドア装置31、車両窓の自動開閉機構を備えたパワーウィンドウ装置33、及び、ライトの点灯装置35が接続されており、ボデーECU30は、遠隔操作受付ECU10や、図示しない他のECUからの要求に従って、これらの装置31,33,35を制御し、車両ドアをロック/アンロックしたり、窓を開閉したり、ライトをオン/オフ等する。   The body ECU 30 is connected to a door device 31 having a vehicle door lock / unlock mechanism, a power window device 33 having a vehicle window automatic opening / closing mechanism, and a light lighting device 35. The ECU 30 controls these devices 31, 33, and 35 according to requests from the remote operation reception ECU 10 and other ECUs (not shown) to lock / unlock the vehicle door, open / close the window, and turn on the light. / Off etc.

このようにして、本実施例の通信システム1では、遠隔操作受付ECU10が、ネットワークNT内の照合ECU20及びボデーECU30と通信し、これらのECU20,30と協働して、遠隔操作に係る一連の処理を実現する。   In this way, in the communication system 1 of the present embodiment, the remote operation reception ECU 10 communicates with the verification ECU 20 and the body ECU 30 in the network NT, and cooperates with these ECUs 20 and 30 to perform a series of remote operations. Realize processing.

ところで、本実施例の通信システム1は、遠隔操作に係る一連の処理を複数のECU10,20,30により協働して実現する際に実行する通信処理、に特徴を有する。
図2は、本実施例の通信システム1で行われる通信処理の形態を示したラダーチャートであり、図3は、この通信の際に、送受信される要求データ、受付応答データ、完了応答データの構成を表す説明図である。具体的に、図3(a)は、要求データの構成を表す図であり、図3(b)は、受付応答データの構成を表す図であり、図3(c)は、完了応答データの構成を表す図である。
By the way, the communication system 1 of the present embodiment is characterized by a communication process that is executed when a series of processes related to a remote operation are realized by a plurality of ECUs 10, 20, and 30 in cooperation.
FIG. 2 is a ladder chart showing a form of communication processing performed in the communication system 1 of the present embodiment. FIG. 3 shows request data, reception response data, and completion response data transmitted and received during this communication. It is explanatory drawing showing a structure. Specifically, FIG. 3A is a diagram illustrating the configuration of request data, FIG. 3B is a diagram illustrating the configuration of reception response data, and FIG. 3C is a diagram illustrating completion response data. It is a figure showing a structure.

本実施例では、通信処理において、各種処理の実行を他ECUに要求する要求元ECUとしてのマスタECU(具体的には、遠隔操作受付ECU10)が、要求先ECUとしてのスレーブECU(具体的には、照合ECU20やボデーECU30)に対し、図3(a)に示す要求データを、ネットワークNT経由で送信する。   In the present embodiment, in the communication process, a master ECU (specifically, remote operation reception ECU 10) as a requesting ECU that requests other ECUs to execute various processes is a slave ECU (specifically, a requesting ECU). Transmits the request data shown in FIG. 3A to the verification ECU 20 and the body ECU 30) via the network NT.

本実施例において、マスタECU−スレーブECU間で送受信される通信データは、8バイトのデータであり、要求データは、その上位6バイトにおいて、サービス識別情報、データ識別情報、コマンド情報、指示対象情報、要求同期カウンタを有する。   In this embodiment, the communication data transmitted / received between the master ECU and the slave ECU is 8-byte data, and the request data is service identification information, data identification information, command information, instruction target information in the upper 6 bytes. And a request synchronization counter.

サービス識別情報は、サービス(処理)の系統を表す情報であり、例えば、ボデーECU30に対し車両ドアに関連する処理の実行を要求する場合には、要求データにおいて、サービス識別情報として「ドア系」を表すコードが記述される。その他、窓の開閉に関連する処理の実行を要求する場合には、サービス識別情報として「パワーウィンドウ系」を表すコードが記述され、ライトに関連する処理の実行を要求する場合には、サービス識別情報として「ライト系」を表すコードが記述される。   The service identification information is information representing a service (processing) system. For example, when requesting the body ECU 30 to execute a process related to a vehicle door, “door system” is used as service identification information in the request data. Is described. In addition, when requesting execution of processing related to opening / closing of a window, a code representing “power window system” is described as service identification information, and when requesting execution of processing related to light, service identification is performed. As information, a code representing “light system” is described.

また、照合ECU20に対し照合処理の実行を要求する場合には、要求データにおいて、サービス識別情報として「照合系」を表すコードが記述される。
また、データ識別情報は、当該通信データが、要求データ、受付応答データ、及び、完了応答データのいずれに該当するものであるのかを示す情報であり、要求データにおいては、データ識別情報として、当該通信データが要求データであることを示すコードが記述される。
When requesting the verification ECU 20 to execute the verification process, a code representing “verification system” is described as the service identification information in the request data.
The data identification information is information indicating whether the communication data corresponds to request data, reception response data, or completion response data. In the request data, the data identification information includes A code indicating that the communication data is request data is described.

その他、コマンド情報は、サービス(処理)の具体的な内容を示す情報であり、例えば、ボデーECU30に対し車両ドアのアンロック(解錠)処理の実行を要求する場合には、要求データにおいて、サービス識別情報として「ドア系」を表すコードが記述され、コマンド情報として「アンロック」を表すコードが記述される。一方、ボデーECU30に対し車両ドアのロック(施錠)処理の実行を要求する場合には、要求データにおいて、コマンド情報として「ロック」を表すコードが記述される(図8参照)。   In addition, the command information is information indicating the specific contents of the service (process). For example, when requesting the body ECU 30 to execute the unlocking process of the vehicle door, in the request data, A code representing “door system” is described as service identification information, and a code representing “unlock” is described as command information. On the other hand, when requesting the body ECU 30 to execute a vehicle door lock (locking) process, a code representing “lock” is described as command information in the request data (see FIG. 8).

また、ボデーECU30に対し窓の閉鎖処理の実行を要求する場合には、サービス識別情報として「パワーウィンドウ系」を表すコードが記述されると共に、コマンド情報として「全閉」を表すコードが記述される。その他、ボデーECU30に対し窓の開放処理の実行を要求する場合には、コマンド情報として「開放」を表すコードが記述される。   When requesting the body ECU 30 to execute the window closing process, a code representing “power window system” is described as service identification information, and a code representing “fully closed” is described as command information. The In addition, when the body ECU 30 is requested to execute a window opening process, a code representing “open” is described as command information.

また、指示対象情報は、サービス(処理)を及ぼす対象を指示する情報であり、ボデーECU30に対し車両ドアのロック/アンロック処理の実行を要求する場合には、指示対象情報として、「車両ドア」を表すコードが記述され、ボデーECU30に対し窓の開閉処理の実行を要求する場合には、指示対象情報として、開閉する窓の位置を表すコードが記述される。   The instruction target information is information for instructing a target to be subjected to service (processing). When the body ECU 30 is requested to execute the lock / unlock process of the vehicle door, the instruction target information is “vehicle door”. When the body ECU 30 is requested to execute the window opening / closing process, a code representing the position of the window to be opened / closed is described as the instruction target information.

例えば、運転席(D席)側の窓について開閉処理の実行を要求する場合には、指示対象情報として、「D席」を表すコードが記述される。また、助手席(P席)側の窓について開閉処理の実行を要求する場合には、指示対象情報として、「P席」を表すコードが記述され、後部右側席(RR席)側の窓について開閉処理の実行を要求する場合には、指示対象情報として、「RR席」を表すコードが記述され、後部左側席(RL席)側の窓について開閉処理の実行を要求する場合には、指示対象情報として、「RL席」を表すコードが記述される(図8参照)。   For example, when the opening / closing process is requested for the window on the driver's seat (D seat) side, a code representing “D seat” is described as the instruction target information. In addition, when the opening / closing process is requested for the window on the passenger seat (P seat) side, a code representing “P seat” is described as the instruction target information, and the window on the rear right seat (RR seat) side is described. When requesting the execution of the opening / closing process, a code indicating “RR seat” is described as the instruction target information, and when requesting the execution of the opening / closing process for the window on the rear left seat (RL seat) side, As the target information, a code representing “RL seat” is described (see FIG. 8).

この他、要求同期カウンタは、要求データの識別情報であり、要求データが生成される度に、その要求データに対しては、ユニークな値が要求同期カウンタとして記述される。尚、この要求同期カウンタは、受付応答データ及び完了応答データと、要求データとの対応関係を採るためのものであり、更には、要求データが再送されたものであるかを、スレーブECUに把握させるためのものである。即ち、本実施例において、再送される要求データには、要求同期カウンタとして、前回送信された要求データと同一の値が記述される。   In addition, the request synchronization counter is identification information of request data, and each time request data is generated, a unique value is described as the request synchronization counter for the request data. The request synchronization counter is used to establish a correspondence relationship between the reception response data, the completion response data, and the request data. Further, the slave ECU knows whether the request data has been retransmitted. It is for making it happen. In other words, in the present embodiment, the request data to be retransmitted describes the same value as the previously transmitted request data as the request synchronization counter.

このような構成の要求データを、マスタECUが、スレーブECUに送信すると、スレーブECUからマスタECUには、通常、図3(b)に示す受付応答データが送信される。マスタECUは、この受付応答データを受信すると、受信した受付応答データに基づき、スレーブECUから引き続き送信される予定の完了応答データの受信待ち動作に関して、タイムアウト時間T1を設定する。   When the master ECU transmits the request data having such a configuration to the slave ECU, the reception response data shown in FIG. 3B is normally transmitted from the slave ECU to the master ECU. When the master ECU receives the reception response data, the master ECU sets a timeout time T1 for the operation of waiting for reception of completion response data scheduled to be continuously transmitted from the slave ECU based on the received reception response data.

図3(b)に示すように、受付応答データは、上述したサービス識別情報、データ識別情報、コマンド情報、指示対象情報、要求同期カウンタを有すると共に、最大実行時間情報を有する。   As shown in FIG. 3B, the reception response data includes the above-described service identification information, data identification information, command information, instruction target information, request synchronization counter, and maximum execution time information.

この受付応答データにおいては、データ識別情報として、当該通信データが受付応答データであることを示すコードが記述され、サービス識別情報、コマンド情報、指示対象情報、及び、要求同期カウンタとして、当該受付応答データに対応する要求データと同一の値が記述される。また、この受付応答データにおいては、最大実行時間情報として、サービス識別情報、コマンド情報、及び指示対象情報にて特定される処理に関して、その処理の実行に要する時間が記述される。   In the reception response data, a code indicating that the communication data is reception response data is described as the data identification information, and the reception response is used as service identification information, command information, instruction target information, and a request synchronization counter. The same value as the request data corresponding to the data is described. Also, in this reception response data, the time required to execute the process is described as the maximum execution time information regarding the process specified by the service identification information, the command information, and the instruction target information.

即ち、マスタECUは、受付応答データを受信すると、受信した受付応答データが有する最大実行時間情報に基づき、スレーブECUから送信される予定の完了応答データの受信待ち動作に関して、タイムアウト時間T1を設定する。   That is, when receiving the reception response data, the master ECU sets the timeout time T1 for the operation of waiting for reception of the completion response data scheduled to be transmitted from the slave ECU, based on the maximum execution time information included in the received reception response data. .

また、この処理を終えると、マスタECUは、タイムアウト時間T1が経過するか、図3(c)に示す構成の完了応答データを、スレーブECUから受信するまで待機する。そして、完了応答データを受信すると、完了応答データが示す処理の実行結果に基づき、遠隔操作の実行結果を、遠隔操作元のユーザ端末40に、無線通信装置15を介して送信する。   When this process is finished, the master ECU waits until the timeout time T1 elapses or the completion response data having the configuration shown in FIG. 3C is received from the slave ECU. When the completion response data is received, the remote operation execution result is transmitted to the remote operation source user terminal 40 via the wireless communication device 15 based on the execution result of the process indicated by the completion response data.

尚、図3(c)に示すように、完了応答データは、要求データ及び受付応答データと同様、サービス識別情報、データ識別情報、コマンド情報、指示対象情報、要求同期カウンタを有する他、実行成否情報及び補助情報を有する。   As shown in FIG. 3C, the completion response data includes service identification information, data identification information, command information, instruction target information, a request synchronization counter, as well as request data and reception response data. Information and auxiliary information.

この完了応答データにおいては、データ識別情報として、当該通信データが完了応答データであることを示すコードが記述され、サービス識別情報、コマンド情報、指示対象情報、及び、要求同期カウンタとして、当該完了応答データに対応する要求データと同一の値が記述される。また、この完了応答データにおいては、実行成否情報として、要求データの送信によりスレーブECUにて実行された処理の実行結果であって、処理の成功を表す値、又は、処理の失敗を表す値が記述される。また、補助情報として、処理の実行結果に関する詳細な情報が記述される。   In this completion response data, a code indicating that the communication data is completion response data is described as data identification information, and the completion response is used as service identification information, command information, instruction target information, and request synchronization counter. The same value as the request data corresponding to the data is described. In the completion response data, the execution success / failure information includes an execution result of the process executed by the slave ECU by transmitting the request data, and a value indicating the success of the process or a value indicating the failure of the process. Described. Further, detailed information regarding the execution result of the process is described as auxiliary information.

即ち、マスタECUは、完了応答データを受信すると、完了応答データが有する実行成否情報及び補助情報に基づき、遠隔操作の実行結果を、遠隔操作元のユーザ端末40に、無線通信装置15を介して送信する。   That is, when the master ECU receives the completion response data, the master ECU sends the remote operation execution result to the remote operation source user terminal 40 via the wireless communication device 15 based on the execution success / failure information and auxiliary information included in the completion response data. Send.

尚、完了応答データを、タイムアウト時間T1内に受信することができなかった場合の処理等、マスタECU(遠隔操作受付ECU10)、及び、スレーブECU(照合ECU20、ボデーECU30)が実行する処理の具体的な内容については、図4〜図10を用いて、以下に詳細に説明する。   Specific processing executed by the master ECU (remote operation receiving ECU 10) and the slave ECU (verification ECU 20, body ECU 30), such as processing when the completion response data cannot be received within the timeout time T1. Specific contents will be described in detail below with reference to FIGS.

まず、遠隔操作受付ECU10が実行する遠隔操作受付処理について説明する。図4は、遠隔操作受付ECU10が繰返し実行する遠隔操作受付処理を表すフローチャートである。この遠隔操作受付処理は、遠隔操作受付ECU10が有するプログラムに基づき、遠隔操作受付ECU10内の図示しないマイクロコンピュータが実行する。   First, the remote operation reception process executed by the remote operation reception ECU 10 will be described. FIG. 4 is a flowchart showing a remote operation reception process repeatedly executed by the remote operation reception ECU 10. This remote operation reception process is executed by a microcomputer (not shown) in the remote operation reception ECU 10 based on a program that the remote operation reception ECU 10 has.

遠隔操作受付処理を開始すると、遠隔操作受付ECU10は、無線通信装置15を介して外部のユーザ端末40から、遠隔操作信号を受信するまで待機し(S110)、遠隔操作信号を受信すると(S110でYes)、S120に移行する。   When the remote operation acceptance process is started, the remote operation acceptance ECU 10 waits until a remote operation signal is received from the external user terminal 40 via the wireless communication device 15 (S110), and upon receiving the remote operation signal (in S110). Yes), the process proceeds to S120.

また、S120に移行すると、遠隔操作受付ECU10は、遠隔操作に係る要求データの送信先(即ち、要求先)として、照合ECU20を設定し、この要求先の照合ECU20に対して、遠隔操作信号送信元のユーザ端末40の端末IDを、正当なユーザ端末の端末IDと照合するように要求する要求データを生成する(S130)。   In S120, the remote operation reception ECU 10 sets the verification ECU 20 as a transmission destination (that is, a request destination) of request data related to the remote operation, and transmits a remote operation signal to the verification ECU 20 of the request destination. Request data for requesting the terminal ID of the original user terminal 40 to be compared with the terminal ID of the legitimate user terminal is generated (S130).

具体的には、サービス識別情報として、「照合系」を表すコードを記述し、データ識別情報として、「要求データ」を表すコードを記述し、コマンド情報として、「照合」を表すコードを記述し、指示対象情報として、遠隔操作信号送信元ユーザ端末40の端末IDを記述した要求データを生成する。また、この際には、要求データに、要求同期カウンタとして、ユニークな値を記述する。   Specifically, a code representing “collation” is described as service identification information, a code representing “request data” is described as data identification information, and a code representing “collation” is described as command information. Then, request data describing the terminal ID of the remote operation signal transmission source user terminal 40 is generated as the instruction target information. At this time, a unique value is described in the request data as a request synchronization counter.

このようにして、要求データを生成すると、遠隔操作受付ECU10は、S140に移行し、図5に示す通信処理を実行することにより、生成した要求データを、要求先の照合ECU20に、ネットワークNTを介して送信し、照合ECU20に、遠隔操作信号送信元のユーザ端末40の端末IDを、正当なユーザ端末の端末IDと照合させる。   When the request data is generated in this way, the remote operation acceptance ECU 10 proceeds to S140, and executes the communication process shown in FIG. 5 to transmit the generated request data to the requesting collation ECU 20 and the network NT. And the collation ECU 20 collates the terminal ID of the user terminal 40 that is the remote operation signal transmission source with the terminal ID of the legitimate user terminal.

また、S140での通信処理を終えると、遠隔操作受付ECU10は、その通信結果に基づき、遠隔操作信号送信元のユーザ端末40が、正当なユーザ端末であるか否かを判断する(S150)。尚、S140の通信処理にて受信した完了応答データの実行成否情報が、「成功」を示す場合には、遠隔操作信号送信元ユーザ端末40の端末IDが、正当なユーザ端末の端末IDと一致したことを意味するので、この場合には、遠隔操作信号送信元のユーザ端末40が、正当なユーザ端末であると判断する。   When the communication process in S140 is completed, the remote operation reception ECU 10 determines whether or not the remote operation signal transmission source user terminal 40 is a valid user terminal based on the communication result (S150). If the execution success / failure information of the completion response data received in the communication processing of S140 indicates “success”, the terminal ID of the remote operation signal transmission source user terminal 40 matches the terminal ID of the valid user terminal. In this case, it is determined that the user terminal 40 that is the remote operation signal transmission source is a valid user terminal.

一方、完了応答データの実行成否情報が「失敗」を示す場合や、完了応答データを照合ECU20から受信することができなかった場合には、遠隔操作信号送信元のユーザ端末40が、正当なユーザ端末ではないと判断する。   On the other hand, when the execution success / failure information of the completion response data indicates “failure” or when the completion response data cannot be received from the verification ECU 20, the user terminal 40 that is the remote operation signal transmission source is authorized Judge that it is not a terminal.

S150で、遠隔操作信号送信元のユーザ端末40が、正当なユーザ端末ではないと判断すると、遠隔操作受付ECU10は、認証に失敗した旨のエラー情報を、無線通信装置15を介して、遠隔操作信号送信元のユーザ端末40に送信し(S155)、当該遠隔操作受付処理を一旦終了する。その後、次の遠隔操作信号を受信するまで待機する(S110)。   If the remote operation signal transmission source user terminal 40 determines in S150 that the user terminal 40 is not a valid user terminal, the remote operation reception ECU 10 sends error information indicating that the authentication has failed via the wireless communication device 15 to the remote operation. The signal is transmitted to the user terminal 40 of the signal transmission source (S155), and the remote operation acceptance process is temporarily terminated. Then, it waits until it receives the next remote control signal (S110).

この他、S150で、遠隔操作信号送信元のユーザ端末40が、正当なユーザ端末であると判断すると、遠隔操作受付ECU10は、S160に移行し、遠隔操作に係る要求データの送信先(要求先)として、上記照合ECU20の代わりに、ボデーECU30を設定し、この要求先のボデーECU30に、遠隔操作信号に対応する処理(ボデー制御)の実行を要求するための要求データを生成する(S170)。   In addition, when it is determined in S150 that the user terminal 40 that is the remote operation signal transmission source is a valid user terminal, the remote operation reception ECU 10 proceeds to S160 and transmits the request data transmission destination (request destination for remote operation). ), Instead of the verification ECU 20, the body ECU 30 is set, and request data for requesting the request body ECU 30 to execute processing corresponding to the remote operation signal (body control) is generated (S170). .

例えば、車両ドアのアンロック操作がユーザ端末40でなされて、それに対応する遠隔操作信号をユーザ端末40から受信した場合には、サービス識別情報として、「ドア系」を表すコードを記述し、データ識別情報として、「要求データ」を表すコードを記述し、コマンド情報として、「アンロック」を表すコードを記述し、指示対象情報として、「車両ドア」を表すコードを記述し、要求同期カウンタとして、ユニークな値を記述した要求データを生成する。   For example, when an unlocking operation of the vehicle door is performed at the user terminal 40 and a corresponding remote operation signal is received from the user terminal 40, a code representing “door system” is described as service identification information, and data As identification information, describe a code representing “request data”, as command information, describe a code representing “unlock”, as instruction target information, describe a code representing “vehicle door”, and as a request synchronization counter , Request data describing a unique value is generated.

その他、運転席側の窓の開放操作がユーザ端末40でなされて、それに対応する遠隔操作信号をユーザ端末40から受信した場合には、サービス識別情報として、「パワーウィンドウ系」を表すコードを記述し、データ識別情報として、「要求データ」を表すコードを記述し、コマンド情報として、「開放」を表すコードを記述し、指示対象情報として、「D席」を表すコードを記述し、要求同期カウンタとして、ユニークな値を記述した要求データを生成する。   In addition, when a driver's side window opening operation is performed at the user terminal 40 and a corresponding remote operation signal is received from the user terminal 40, a code representing "power window system" is described as service identification information The code indicating “request data” is described as the data identification information, the code indicating “open” is described as the command information, the code indicating “D seat” is described as the instruction target information, and the request synchronization Request data describing a unique value is generated as a counter.

また、このようにして要求データを生成すると、遠隔操作受付ECU10は、図5に示す通信処理を実行することにより(S180)、S170で生成した要求データを、要求先のボデーECU30に、ネットワークNTを介して送信し、ボデーECU30に、遠隔操作信号に対応した処理(ボデー制御)を実行させる。   When the request data is generated in this way, the remote operation reception ECU 10 executes the communication process shown in FIG. 5 (S180), and sends the request data generated in S170 to the requesting body ECU 30 in the network NT. To cause the body ECU 30 to execute processing (body control) corresponding to the remote operation signal.

また、S180での処理を終えると、遠隔操作受付ECU10は、その通信結果に基づき、要求した処理(ボデー制御)がボデーECU30において成功したか否かを判断する(S190)。具体的に、S180で受信した完了応答データの実行成否情報が「成功」を示す場合には、要求した処理が成功したと判断する。一方、受信した完了応答データの実行成否情報が「失敗」を示す場合や、完了応答データをボデーECU30から受信することができなかった場合には、ボデーECU30において要求した処理が失敗したと判断する。   When the process in S180 is completed, the remote operation reception ECU 10 determines whether the requested process (body control) is successful in the body ECU 30 based on the communication result (S190). Specifically, when the success / failure information of the completion response data received in S180 indicates “success”, it is determined that the requested process has been successful. On the other hand, when the execution success / failure information of the received completion response data indicates “failure”, or when the completion response data cannot be received from the body ECU 30, it is determined that the process requested in the body ECU 30 has failed. .

S190で、要求した処理がボデーECU30において失敗したと判断すると判断すると(S190でNo)、遠隔操作受付ECU10は、遠隔操作に失敗した旨のエラー情報を、無線通信装置15を介して、遠隔操作信号送信元のユーザ端末40に送信し(S195)、その後、当該遠隔操作受付処理を一旦終了する。   If it is determined in S190 that the requested process is determined to have failed in the body ECU 30 (No in S190), the remote operation acceptance ECU 10 transmits error information indicating that the remote operation has failed via the wireless communication device 15 to the remote operation. The signal is transmitted to the user terminal 40 of the signal transmission source (S195), and then the remote operation acceptance process is temporarily terminated.

この他、S190で、要求した処理がボデーECU30において成功したと判断すると判断すると、遠隔操作受付ECU10は、S200に移行し、遠隔操作に成功した旨の情報と、成功した遠隔操作の内容を示す情報とを、無線通信装置15を介して、遠隔操作信号送信元のユーザ端末40に送信する。その後、当該遠隔操作受付処理を一旦終了する。   In addition, when it is determined in S190 that the requested process is determined to have been successful in the body ECU 30, the remote operation reception ECU 10 proceeds to S200 and indicates information indicating that the remote operation has been successful and the content of the successful remote operation. Information is transmitted to the user terminal 40 that is the remote operation signal transmission source via the wireless communication device 15. Thereafter, the remote operation acceptance process is temporarily terminated.

続いて、S140及びS180で実行される通信処理について説明する。図5は、遠隔操作受付ECU10が実行する通信処理を表すフローチャートである。この通信処理は、遠隔操作受付ECU10が有するプログラムに基づき、遠隔操作受付ECU10内の図示しないマイクロコンピュータが実行する。   Next, the communication process executed in S140 and S180 will be described. FIG. 5 is a flowchart showing communication processing executed by the remote operation reception ECU 10. This communication process is executed by a microcomputer (not shown) in the remote operation reception ECU 10 based on a program that the remote operation reception ECU 10 has.

図5に示す通信処理を開始すると、遠隔操作受付ECU10は、予め生成された要求データを、予め設定された要求先ECUに、ネットワークNTを介して送信する(S210)。即ち、S140で当該通信処理を実行する場合には、S130で生成された要求データを、S120で要求先ECUに設定された照合ECU20に送信する。一方、S180で当該通信処理を実行する場合には、S170で生成された要求データを、S160で要求先ECUに設定されたボデーECU30に送信する。   When the communication process shown in FIG. 5 is started, the remote operation reception ECU 10 transmits the request data generated in advance to the preset request destination ECU via the network NT (S210). That is, when the communication process is executed in S140, the request data generated in S130 is transmitted to the verification ECU 20 set in the request destination ECU in S120. On the other hand, when the communication process is executed in S180, the request data generated in S170 is transmitted to the body ECU 30 set in the request destination ECU in S160.

また、S210での処理を終えると、遠隔操作受付ECU10は、S220に移行し、S210の処理実行後、所定時間T0が経過したか否かを判断する。尚、この時間T0については、設計段階で、予め固定値(例えば、4秒程度)に設定する。具体的には、受付応答データを適切に受信することができる程度に、必要十分な時間に設定する。   When the process in S210 is completed, the remote operation acceptance ECU 10 proceeds to S220, and determines whether or not a predetermined time T0 has elapsed after executing the process in S210. The time T0 is set to a fixed value (for example, about 4 seconds) in advance at the design stage. Specifically, it is set to a necessary and sufficient time so that the reception response data can be properly received.

S220において、所定時間T0が経過したと判断すると(S220でYes)、遠隔操作受付ECU10は、S300に移行し、所定時間T0が経過していないと判断すると(S220でNo)、S230に移行する。   If it is determined in S220 that the predetermined time T0 has elapsed (Yes in S220), the remote operation acceptance ECU 10 proceeds to S300, and if it is determined that the predetermined time T0 has not elapsed (No in S220), the process proceeds to S230. .

また、S230に移行すると、遠隔操作受付ECU10は、S210で送信した要求データに対応する完了応答データを、ネットワークNTを介して要求先ECUから受信したか否かを判断し(S230)、完了応答データを要求先ECUから受信したと判断すると(S230でYes)、S280に移行し、完了応答データを要求先ECUから受信していないと判断すると(S230でNo)、S240に移行する。   In S230, the remote operation reception ECU 10 determines whether or not the completion response data corresponding to the request data transmitted in S210 is received from the request destination ECU via the network NT (S230). If it is determined that the data is received from the request destination ECU (Yes in S230), the process proceeds to S280, and if it is determined that the completion response data is not received from the request destination ECU (No in S230), the process proceeds to S240.

また、S240に移行すると、遠隔操作受付ECU10は、S210で送信した要求データに対応する受付応答データを、ネットワークNTを介して要求先ECUから受信したか否かを判断し、受付応答データを要求先ECUから受信していないと判断すると(S240でNo)、S220に移行して、所定時間T0が経過するか、要求データに対応する受付応答データ又は完了応答データを受信するまで待機する。   In S240, the remote operation reception ECU 10 determines whether or not reception response data corresponding to the request data transmitted in S210 has been received from the request destination ECU via the network NT, and requests reception response data. If it is determined that it has not been received from the previous ECU (No in S240), the process proceeds to S220 and waits until a predetermined time T0 elapses or reception response data or completion response data corresponding to the request data is received.

一方、受付応答データを要求先ECUから受信したと判断すると(S240でYes)、遠隔操作受付ECU10は、S250に移行し、受信した受付応答データが有する最大実行時間情報に基づき、この最大実行時間情報が表す値に、一定時間αを加算した値を、完了応答データの受信待ち動作についてのタイムアウト時間T1に設定する。   On the other hand, when it is determined that the reception response data has been received from the request destination ECU (Yes in S240), the remote operation reception ECU 10 proceeds to S250, and based on the maximum execution time information included in the received reception response data, this maximum execution time A value obtained by adding a certain time α to the value represented by the information is set as the timeout time T1 for the operation of waiting for reception of the completion response data.

T1=最大実行時間+α
尚、時間αは、ゼロ以上で任意の値に設定することができる。但し、この時間αは、タイムアウト時間T1を、要求先ECUから通知された最大実行時間よりも若干余裕をもって設定するためのものであるので、必要以上に大きな値に設定しないようにする。
T1 = Maximum execution time + α
Note that the time α can be set to an arbitrary value greater than or equal to zero. However, since the time α is for setting the time-out time T1 with a margin slightly longer than the maximum execution time notified from the request destination ECU, it is not set to a value larger than necessary.

また、S250での処理を終了すると、遠隔操作受付ECU10は、S250でタイムアウト時間T1を設定した時点から、このタイムアウト時間T1が経過したか否かを判断し(S260)、タイムアウト時間T1が経過したと判断すると(S260でYes)、S300に移行し、タイムアウト時間T1が経過していないと判断すると(S260でNo)、要求先ECUから、S210で送信した要求データに対応する完了応答データを、ネットワークNTを介して受信したか否かを判断する(S270)。そして、要求先ECUから完了応答データを受信していないと判断すると(S270でNo)、タイムアウト時間T1が経過するか、完了応答データを受信するまで待機する。   When the processing in S250 is completed, the remote operation acceptance ECU 10 determines whether or not the timeout time T1 has elapsed since the time-out time T1 was set in S250 (S260), and the timeout time T1 has elapsed. (Yes in S260), the process proceeds to S300, and if it is determined that the timeout time T1 has not elapsed (No in S260), the completion response data corresponding to the request data transmitted in S210 is obtained from the request destination ECU. It is determined whether it is received via the network NT (S270). If it is determined that the completion response data is not received from the request destination ECU (No in S270), the process waits until the timeout time T1 elapses or the completion response data is received.

この他、要求先ECUから完了応答データを受信したと判断すると(S270でYes)、遠隔操作受付ECU10は、完了応答データが示す実行成否情報及び補助情報を、返値として出力し、これらの情報を遠隔操作受付処理タスクに提供する(S280)。その後、当該通信処理を終了する。   In addition, when it is determined that the completion response data has been received from the request destination ECU (Yes in S270), the remote operation reception ECU 10 outputs the execution success / failure information and the auxiliary information indicated by the completion response data as return values. Is provided to the remote operation reception processing task (S280). Thereafter, the communication process ends.

また、S300に移行すると、遠隔操作受付ECU10は、図6に示すリトライ処理を実行する。図6は、遠隔操作受付ECU10が実行するリトライ処理を表すフローチャートである。   In S300, the remote operation reception ECU 10 executes a retry process shown in FIG. FIG. 6 is a flowchart showing a retry process executed by the remote operation reception ECU 10.

リトライ処理を開始すると、遠隔操作受付ECU10は、まずS310にて、リトライ回数を表すパラメータnを、ゼロに初期化する。その後、S320に移行し、S210で送信した要求データと同一の要求データを、要求先ECUに再送信する。そして、再送信後には、S330にて、パラメータnを1加算する(n←n+1)。   When the retry process is started, the remote operation reception ECU 10 first initializes a parameter n representing the number of retries to zero in S310. Thereafter, the process proceeds to S320, and the same request data as the request data transmitted in S210 is retransmitted to the request destination ECU. Then, after retransmission, 1 is added to the parameter n in S330 (n ← n + 1).

また、この処理を終えると、遠隔操作受付ECU10は、S320での再送信後、所定時間T0が経過するか、S320で送信した要求データに対応する完了応答データを、ネットワークNTを介して要求先ECUから受信するか、S320で送信した要求データに対応する受付応答データを、ネットワークNTを介して要求先ECUから受信するまで待機し(S340〜S360)、所定時間T0が経過したと判断すると(S340でYes)、S410に移行し、完了応答データを要求先ECUから受信したと判断すると(S350でYes)、S400に移行し、受付応答データを要求先ECUから受信したと判断すると(S360でYes)、S370に移行する。   When this processing is completed, the remote operation acceptance ECU 10 sends a completion response data corresponding to the request data transmitted in S320 via the network NT after the predetermined time T0 has elapsed after the retransmission in S320. The system waits until reception response data corresponding to the request data received from the ECU or transmitted in S320 is received from the request destination ECU via the network NT (S340 to S360), and determines that the predetermined time T0 has passed ( If it is determined that the completion response data is received from the requested ECU (Yes in S350), the process proceeds to S400 and if it is determined that the reception response data is received from the requested ECU (S360). Yes), the process proceeds to S370.

また、S370に移行すると、遠隔操作受付ECU10は、受信した受付応答データが有する最大実行時間情報に基づき、この最大実行時間情報が表す値に、一定時間αを加算した値を、完了応答データの受信待ち動作についてのタイムアウト時間T1に設定する。   In S370, the remote operation acceptance ECU 10 sets a value obtained by adding a fixed time α to the value represented by the maximum execution time information based on the maximum execution time information included in the received reception response data. The timeout time T1 for the reception waiting operation is set.

そして、この処理を終了すると、遠隔操作受付ECU10は、S370でタイムアウト時間T1を設定した時点から、このタイムアウト時間T1が経過するか、S320で送信した要求データに対応する完了応答データを、ネットワークNTを介して要求先ECUから受信するまで待機し(S380〜S390)、タイムアウト時間T1が経過したと判断すると(S380でYes)、S410に移行し、完了応答データを要求先ECUから受信したと判断すると(S390でYes)、S400に移行する。   When this processing is finished, the remote operation acceptance ECU 10 sends the completion response data corresponding to the request data transmitted in S320 after the timeout time T1 has elapsed from the time when the timeout time T1 is set in S370 or the network NT. Until the time-out period T1 has elapsed (Yes in S380), the process proceeds to S410, and it is determined that the completion response data has been received from the request-destination ECU. Then (Yes in S390), the process proceeds to S400.

また、S400に移行すると、遠隔操作受付ECU10は、受信した完了応答データが示す実行成否情報及び補助情報を、返値として出力し、これらの情報を遠隔操作受付処理タスクに提供する。その後、当該リトライ処理を終了する。また、S300で、このリトライ処理を終えると、上記通信処理を終了する。   In S400, the remote operation reception ECU 10 outputs execution success / failure information and auxiliary information indicated by the received completion response data as return values, and provides these information to the remote operation reception processing task. Thereafter, the retry process is terminated. In S300, when the retry process is finished, the communication process is finished.

一方、S410に移行すると、遠隔操作受付ECU10は、リトライ回数を表すパラメータnの値が、予め定められたリトライ回数の上限値(例えば、値2)未満であるか否かを判断し、パラメータnの値が、上限値未満であると判断すると(S410でYes)、S320に移行して、再び、要求データを再送信する。そして、パラメータnの値を1加算し(S330)、S340以降の処理を実行する。   On the other hand, when the process proceeds to S410, the remote operation reception ECU 10 determines whether or not the value of the parameter n indicating the number of retries is less than a predetermined upper limit (for example, value 2) of the number of retries, and parameter n If the value is less than the upper limit (Yes in S410), the process proceeds to S320, and the request data is retransmitted again. Then, the value of the parameter n is incremented by 1 (S330), and the processes after S340 are executed.

また、リトライ回数が上限値以上であると判断すると(S410でNo)、遠隔操作受付ECU10は、通信失敗の旨のエラー情報を、返値として出力し、これらの情報を遠隔操作受付処理タスクに提供する(S420)。その後、当該リトライ処理を終了する。また、S300で、このリトライ処理を終えると、遠隔操作受付ECU10は、上記通信処理を終了する。   If it is determined that the number of retries is equal to or greater than the upper limit value (No in S410), the remote operation reception ECU 10 outputs error information indicating a communication failure as a return value, and these information is sent to the remote operation reception processing task. Provide (S420). Thereafter, the retry process is terminated. In S300, when this retry process is completed, the remote operation reception ECU 10 ends the communication process.

続いて、マスタECUから送信される要求データを受信するスレーブECU(具体的には、照合ECU20及びボデーECU30)が実行する要求受付処理について説明する。図7は、スレーブECUが繰返し実行する要求受付処理を表すフローチャートである。この要求受付処理は、スレーブECUが有するプログラムに基づき、スレーブECU内の図示しないマイクロコンピュータが実行する。   Next, a request receiving process executed by the slave ECU (specifically, the verification ECU 20 and the body ECU 30) that receives the request data transmitted from the master ECU will be described. FIG. 7 is a flowchart showing a request receiving process repeatedly executed by the slave ECU. This request reception process is executed by a microcomputer (not shown) in the slave ECU based on a program that the slave ECU has.

要求受付処理を開始すると、スレーブECUは、まず、マスタECU(遠隔操作受付ECU10)から、要求データを受信するまで待機し(S510)、要求データを受信すると(S510でYes)、受信した要求データが受付可能な要求データであるか否かを判断する(S520)。即ち、受信した要求データが示すサービス識別情報及びコマンド情報並びに指示対象情報に基づき、自装置にて要求データに対応する処理を実行可能か否か判断する。   When the request acceptance process is started, the slave ECU first waits until request data is received from the master ECU (remote operation acceptance ECU 10) (S510). When the request data is received (Yes in S510), the received request data is received. Is request data that can be accepted (S520). That is, based on the service identification information, command information, and instruction target information indicated by the received request data, it is determined whether or not the process corresponding to the request data can be executed by the own apparatus.

そして、受信した要求データが受付可能な要求データではないと判断すると(S520でNo)、スレーブECUは、実行失敗の旨の情報を記した完了応答データを生成する(S530)。   If it is determined that the received request data is not acceptable request data (No in S520), the slave ECU generates completion response data in which information indicating execution failure has been described (S530).

具体的に、S530では、データ識別情報として、「完了応答データ」を表すコードを記し、サービス識別情報、コマンド情報、指示対象情報、及び、要求同期カウンタとして、受信した要求データと同一のコードを記し、実行成否情報として、「失敗」を表すコードを記し、補助情報として、要求受付不可を表すコードを記した完了応答データを生成する。そして、このような構成の完了応答データを生成すると、生成した完了応答データを、要求元のマスタECUに、ネットワークNTを介して送信する(S535)。その後、当該要求受付処理を一旦終了し、次の要求データを受信するまで待機する(S510)。   Specifically, in S530, a code representing "completion response data" is written as the data identification information, and the same code as the received request data is used as the service identification information, command information, instruction target information, and request synchronization counter. In addition, a completion response data in which a code indicating “failure” is described as the execution success / failure information and a code indicating that the request cannot be accepted is generated as auxiliary information is generated. When the completion response data having such a configuration is generated, the generated completion response data is transmitted to the requesting master ECU via the network NT (S535). Thereafter, the request acceptance process is temporarily ended, and the process waits until the next request data is received (S510).

一方、スレーブECUは、S520にて、受信した要求データが受付可能な要求データであると判断すると(S520でYes)、S540に移行し、受信した要求データに記された要求同期カウンタと同一値の要求同期カウンタを有する処理実行履歴データを、当該スレーブECUのRAMが記憶する実行履歴ファイル(図9参照)内で検索する。   On the other hand, if the slave ECU determines in S520 that the received request data is acceptable request data (Yes in S520), the slave ECU proceeds to S540 and has the same value as the request synchronization counter described in the received request data. The process execution history data having the request synchronization counter is searched in the execution history file (see FIG. 9) stored in the RAM of the slave ECU.

当該スレーブECUが記憶する実行履歴ファイルは、対応する処理が完了し、対応する完了応答データが送信されている要求データ毎に、その要求データに対応する処理実行履歴データが格納されてなるものである。この実行履歴ファイルが有する処理実行履歴データは、図9に示すように、当該処理実行履歴データの登録時刻と、完了応答データの送信内容を表す情報とを有する。具体的に、処理実行履歴データは、完了応答データの送信内容を表す情報として、送信された完了応答データに記された各情報(実行成否情報、補助情報、要求同期カウンタ等)を有する。   The execution history file stored in the slave ECU stores the processing execution history data corresponding to the request data for each request data for which the corresponding processing is completed and the corresponding completion response data is transmitted. is there. As shown in FIG. 9, the process execution history data included in the execution history file includes a registration time of the process execution history data and information indicating transmission contents of the completion response data. Specifically, the process execution history data includes each piece of information (execution success / failure information, auxiliary information, request synchronization counter, etc.) described in the transmitted completion response data as information indicating the transmission content of the completion response data.

S540での検索結果に基づき、受信した要求データに記された要求同期カウンタと同一値の要求同期カウンタを有する処理実行履歴データが実行履歴ファイル内に存在すると判断すると(S550)、スレーブECUは、その処理実行履歴データに基づいて、完了応答データを生成し(S560)、生成した完了応答データを、要求元のマスタECUに、ネットワークNTを介して送信する(S565)。尚、処理実行履歴データには、既に前回送信した完了応答データの内容が記述されているので、S560〜S565では、処理実行履歴データの内容に基づき、前回送信した完了応答データと同内容の完了応答データを、要求元のマスタECUに送信する。また、S565での処理を終えると、スレーブECUは、当該要求受付処理を一旦終了し、次の要求データを受信するまで待機する(S510)。   If it is determined that the process execution history data having the request synchronization counter having the same value as the request synchronization counter described in the received request data is present in the execution history file based on the search result in S540 (S550), the slave ECU Completion response data is generated based on the process execution history data (S560), and the generated completion response data is transmitted to the requesting master ECU via the network NT (S565). The process execution history data already contains the contents of the completion response data transmitted last time, so in S560 to S565, the completion of the same contents as the previously transmitted completion response data is based on the contents of the process execution history data. The response data is transmitted to the requesting master ECU. When the process in S565 is finished, the slave ECU ends the request reception process and waits until the next request data is received (S510).

この他、スレーブECUは、S550において、受信した要求データに記された要求同期カウンタと同一値の要求同期カウンタを有する処理実行履歴データが実行履歴ファイル内に存在しないと判断すると(S550でNo)、S570に移行し、受信した要求データに対応する処理が既に開始されているか否かを判断する。尚、この判断は、後述する実行管理テーブル内に、受信した要求データに記された要求同期カウンタと同一値の要求同期カウンタが記された実行管理データが存在するか否かを判断することにより行われる。   In addition, if the slave ECU determines in S550 that the process execution history data having the request synchronization counter having the same value as the request synchronization counter described in the received request data does not exist in the execution history file (No in S550). , The process proceeds to S570, and it is determined whether or not the processing corresponding to the received request data has already been started. This determination is made by determining whether or not execution management data having a request synchronization counter having the same value as the request synchronization counter described in the received request data exists in the execution management table described later. Done.

S570において、対応する処理が未だ実行開始されていないと判断すると(S570でNo)、スレーブECUは、自装置のROMが記憶する処理時間テーブルから、受信した要求データにより実行を要求された処理についての処理時間情報を取得する(S580)。尚、図8は、処理時間テーブルの構成を示した図であり、具体的には、ボデーECU30が有する処理時間テーブルの構成を示した図である。   If it is determined in S570 that the corresponding process has not yet been started (No in S570), the slave ECU determines the process requested to be executed by the received request data from the processing time table stored in the ROM of its own device. Processing time information is acquired (S580). FIG. 8 is a diagram showing a configuration of the processing time table, and more specifically, a diagram showing a configuration of the processing time table that the body ECU 30 has.

図8に示すように、処理時間テーブルは、要求データに基づいて実行可能な処理の種類毎に、その処理の実行に要する時間が、処理時間Tcとして、記述されてなるものである。換言すると、処理時間テーブルは、受付可能な要求データに記述されるサービス、コマンド及び指示対象の組合せ毎に、その組合せに対応する処理の実行に要する時間が、処理時間Tcとして、記述されてなるものである。   As shown in FIG. 8, in the processing time table, the time required to execute the processing is described as processing time Tc for each type of processing that can be executed based on the request data. In other words, in the processing time table, for each combination of service, command, and instruction target described in the acceptable request data, the time required to execute the processing corresponding to the combination is described as the processing time Tc. Is.

例えば、ボデーECU30は、遠隔操作受付ECU10から、要求データとして、車両ドアのアンロック処理を要求するデータを受信すると、その要求データに、サービス識別情報として記述された「ドア系」を表すコード、コマンド情報として記述された「アンロック」を表すコード、指示対象情報として記述された「車両ドア」を表すコードに基づき、対応する処理時間情報として、図8に示す処理時間情報の内、最上段から2段目の処理時間情報(「2秒」との値)を取得する。   For example, when the body ECU 30 receives data requesting the unlocking process of the vehicle door as request data from the remote operation reception ECU 10, the code representing the “door system” described as service identification information in the request data, Based on the code indicating “unlock” described as command information and the code indicating “vehicle door” described as instruction target information, as the corresponding processing time information, among the processing time information shown in FIG. To the second stage processing time information (value of “2 seconds”).

S580において、上述のようにして、処理時間テーブルから処理時間情報を取得すると、スレーブECUは、S583に移行し、取得した処理時間情報が示す値Tcを、最大実行時間情報として記した受付応答データを生成する。具体的には、サービス識別情報、コマンド情報、指示対象情報、要求同期カウンタとして、S510で受信した要求データと同一値を記述し、S580で取得した処理時間情報が示す値Tcを、最大実行時間情報として記した受付応答データを生成する。   In S580, when the processing time information is acquired from the processing time table as described above, the slave ECU proceeds to S583 and accepts response data that describes the value Tc indicated by the acquired processing time information as the maximum execution time information. Is generated. Specifically, as the service identification information, command information, instruction target information, and request synchronization counter, the same value as the request data received in S510 is described, and the value Tc indicated by the processing time information acquired in S580 is set as the maximum execution time. The reception response data described as information is generated.

そして、この処理を終えると、スレーブECUは、要求データにより要求された処理の実行を開始すると共に(S587)、生成した受付応答データを、要求元のマスタECUに送信する(S600)。例えば、S587では、要求データにより車両ドアのアンロック処理の実行を要求された場合、当該スレーブECUにて、車両ドアのアンロック処理を実行し、ドア装置31を制御して、車両ドアをアンロックする。   When this process is completed, the slave ECU starts executing the process requested by the request data (S587) and transmits the generated reception response data to the requesting master ECU (S600). For example, in S587, when execution of the vehicle door unlock process is requested by the request data, the slave ECU executes the vehicle door unlock process and controls the door device 31 to unlock the vehicle door. Lock it.

尚、要求データにより要求された処理の実行を開始する際には、実行を開始する処理に対して、処理IDを割り当てて、この処理IDと処理を実行する原因となった要求データの受信内容を表す情報とを記述したレコードを、当該スレーブECUのRAMが記憶する実行管理テーブルに登録する。レコードに記述される要求データの受信内容を表す情報としては、要求データが有する各情報の他、要求データの送信元ECUの情報が含まれる。   When the execution of the process requested by the request data is started, a process ID is assigned to the process to be executed, and the process ID and the received content of the request data that causes the process to be executed. Is recorded in the execution management table stored in the RAM of the slave ECU. The information indicating the reception contents of the request data described in the record includes information on the request data transmission source ECU in addition to the information included in the request data.

また、S600にて、受付応答データを要求元のマスタECUに送信すると、スレーブECUは、S587で実行を開始した処理の実行を継続した状態で、当該要求受付処理を一旦終了し、次の要求データを受信するまで待機する。   In S600, when the reception response data is transmitted to the requesting master ECU, the slave ECU temporarily ends the request reception process in a state where the process started in S587 is continued, and the next request Wait until data is received.

一方、スレーブECUは、S570にて、受信した要求データに対応する処理が既に開始されていると判断すると(S570でYes)、S590に移行し、当該スレーブECUのROMが記憶する処理時間テーブルから、受信した要求データにより実行を要求された処理についての処理時間情報を取得する。   On the other hand, if the slave ECU determines in S570 that the process corresponding to the received request data has already been started (Yes in S570), the process proceeds to S590, and from the processing time table stored in the ROM of the slave ECU. The processing time information about the processing requested to be executed by the received request data is acquired.

また、処理時間テーブルから処理時間情報を取得すると、スレーブECUは、S593に移行し、取得した処理時間情報が示す値Tcと、実行中の処理の進行度r(rは、0以上1未満の値)とに基づいて、その処理が完了するまでの残り処理時間Trを導出する(Tr=Tc・(1−r))。   In addition, when the processing time information is acquired from the processing time table, the slave ECU proceeds to S593, and the value Tc indicated by the acquired processing time information and the progress r of the process being executed (r is 0 or more and less than 1). Value), a remaining processing time Tr until the processing is completed is derived (Tr = Tc · (1−r)).

そして、導出した残り処理時間Trを最大実行時間情報として記した受付応答データを、生成する(S597)。具体的に、S597では、サービス識別情報、コマンド情報、指示対象情報、要求同期カウンタとして、S510で受信した要求データと同一値を記述し、S593で導出した残り処理時間Trを、最大実行時間情報として記述してなる受付応答データを生成する。   Then, reception response data in which the derived remaining processing time Tr is described as maximum execution time information is generated (S597). Specifically, in S597, the same value as the request data received in S510 is described as service identification information, command information, instruction target information, and request synchronization counter, and the remaining processing time Tr derived in S593 is used as the maximum execution time information. The reception response data described as is generated.

そして、この処理を終えると、スレーブECUは、S600に移行し、上記生成した受付応答データを、要求元のマスタECUに送信し、その後、当該要求受付処理を一旦終了する。   When this process ends, the slave ECU proceeds to S600, transmits the generated reception response data to the requesting master ECU, and then ends the request reception process once.

続いて、スレーブECUが、完了応答データを送信するために実行する応答制御処理について説明する。図9は、スレーブECUが繰返し実行する応答制御処理を表すフローチャートである。   Subsequently, a response control process executed by the slave ECU to transmit completion response data will be described. FIG. 9 is a flowchart showing a response control process repeatedly executed by the slave ECU.

応答制御処理を開始すると、スレーブECUは、要求データにより実行を要求された処理であって、実行を開始した各処理の経過を監視し、処理終了のタイミングを検出する(S610)。即ち、ここでは、要求データにより実行を要求された処理であって、実行を開始した各処理の実行経過を監視し、監視対象の各処理のいずれかが、実行状態から実行終了状態に遷移するまで待機する。   When the response control process is started, the slave ECU monitors the progress of each process that has been requested to be executed based on the request data, and detects the end timing of the process (S610). That is, here, the process that is requested to be executed by the request data is monitored and the progress of execution of each process that has started execution is monitored, and any of the monitored processes transitions from the execution state to the execution end state. Wait until.

そして、監視対象の各処理のいずれかが、実行状態から実行終了状態に遷移すると(S610でYes)、スレーブECUは、S620に移行し、実行終了状態に遷移した処理の実行結果を記した完了応答データを生成する。   When any of the processes to be monitored transitions from the execution state to the execution end state (Yes in S610), the slave ECU proceeds to S620 and completes the execution result of the process transitioned to the execution end state Generate response data.

具体的には、実行終了状態に遷移した処理に関しての実行管理データを、実行管理テーブルから読み出し、この実行管理データが示す要求データの受信内容に基づき、サービス識別情報、コマンド情報、指示対象情報、及び、要求同期カウンタとして、要求データと同一値を記した完了応答データを生成すると共に、実行終了状態に遷移した処理の実行結果に基づき、この完了応答データに、処理の実行に成功したか否かを表す実行成否情報及び補助情報を記す。   Specifically, the execution management data relating to the process transitioned to the execution end state is read from the execution management table, and based on the received content of the request data indicated by the execution management data, service identification information, command information, instruction target information, In addition, as the request synchronization counter, completion response data indicating the same value as the request data is generated, and whether or not the process has been successfully executed based on the execution result of the process transitioned to the execution end state. Execution success / failure information and auxiliary information indicating the above are described.

また、このようにして、S620での処理を終えると、スレーブECUは、S630に移行し、S620で生成した完了応答データを、要求元(実行管理データが示す要求データ送信元)のマスタECUに送信する。尚、完了応答データの送信時には、上記読み出した実行管理データを、実行管理テーブルから消去する。   In addition, when the processing in S620 is completed in this way, the slave ECU proceeds to S630, and the completion response data generated in S620 is transmitted to the master ECU of the request source (request data transmission source indicated by the execution management data). Send. When the completion response data is transmitted, the read execution management data is deleted from the execution management table.

また、S630での処理を終えると、スレーブECUは、S640に移行し、送信した完了応答データの送信内容と、現在時刻とを記述した処理実行履歴データを生成し、これを、上述の実行履歴ファイルに登録する。その後、当該応答制御処理を一旦終了し、新しく、監視対象の処理のいずれかが、実行状態から実行終了状態に遷移するまで待機する(S610)。尚、実行履歴ファイルに登録された処理実行履歴データは、その登録時刻から所定時間経過後に、スレーブECUの動作により、実行履歴ファイルから消去される。   When the processing in S630 is completed, the slave ECU proceeds to S640, and generates processing execution history data describing the transmission content of the transmitted completion response data and the current time. Register to a file. After that, the response control process is temporarily ended, and a new one of the monitoring target processes waits until the transition from the execution state to the execution end state (S610). The process execution history data registered in the execution history file is deleted from the execution history file by the operation of the slave ECU after a predetermined time has elapsed from the registration time.

以上、マスタECU及びスレーブECUの動作について説明したが、このような通信手法により、本実施例のマスタECUでは、スレーブECUに対して処理の実行を要求した際、その処理の実行結果を表す完了応答データについての受信待ち動作を、スレーブECUから通知された最大実行時間に対応する期間、実行する。そして、この期間内に完了応答データを受信することができなかった場合には、リトライ処理を行って、完了応答データの取得を再試行する。また、完了応答データに先駆けて送信されてくる受付応答データを、所定時間T0内に受信することができなかった場合にも、同様に、リトライ処理を行う。   The operations of the master ECU and the slave ECU have been described above. With such a communication method, when the master ECU according to the present embodiment requests the slave ECU to execute the process, the completion indicating the execution result of the process is completed. The reception waiting operation for the response data is executed for a period corresponding to the maximum execution time notified from the slave ECU. If the completion response data cannot be received within this period, retry processing is performed, and acquisition of the completion response data is retried. Similarly, when the reception response data transmitted prior to the completion response data cannot be received within the predetermined time T0, the retry process is performed in the same manner.

例えば、マスタECUから送信された要求データが、ノイズ等の影響によりスレーブECUで受信されなかった場合や、スレーブECUから送信された受付応答データが、ノイズ等の影響により、マスタECUで受信されなかった場合には、図10(a)に示すように、要求データの送信時点から所定時間T0経過後、マスタECUから要求データが再送信される(リトライ処理)。   For example, the request data transmitted from the master ECU is not received by the slave ECU due to the influence of noise or the like, or the reception response data transmitted from the slave ECU is not received by the master ECU due to the influence of noise or the like. In this case, as shown in FIG. 10A, the request data is retransmitted from the master ECU after a predetermined time T0 has elapsed since the request data was transmitted (retry process).

また別例として、図10(b)に示すように、マスタECU−スレーブECU間で、要求データ及び受付応答データの授受が成功したにも拘わらず、スレーブECUで、マスタECUから要求された処理の実行が捗らず、スレーブECUからマスタECUに通知された最大実行時間よりも大きく超えて、上記処理の実行が継続され、マスタECUが、タイムアウト時間T1内に、完了応答データを受信することができなかった場合には、受付応答データの受信時点から時間T1の経過後に、マスタECUから要求データが再送信される(リトライ処理)。尚、スレーブECUは、マスタECUから再送信された要求データを受信すると、実行中の処理に関して、残り処理時間Trを導出して、この残り処理時間Trを最大実行時間情報として記した受付応答データを、マスタECUに送信する。そして、マスタECUでは、この受付応答データに記された最大実行時間情報に対応する時間がタイムアウト時間T1として設定される。そして、この時間T1が経過するまでの期間、マスタECUでは、完了応答データの受信待ち動作が行われる。   As another example, as shown in FIG. 10 (b), the processing requested from the master ECU in the slave ECU despite the successful transmission and reception of the request data and the reception response data between the master ECU and the slave ECU. The execution of the above process does not progress, and the execution of the above process is continued beyond the maximum execution time notified from the slave ECU to the master ECU, and the master ECU receives the completion response data within the timeout time T1. If not, the request data is retransmitted from the master ECU after a lapse of time T1 from the reception of the reception response data (retry process). When the slave ECU receives the request data retransmitted from the master ECU, the slave ECU derives the remaining processing time Tr for the process being executed, and accepts response data in which the remaining processing time Tr is described as maximum execution time information. Is transmitted to the master ECU. In the master ECU, a time corresponding to the maximum execution time information described in the reception response data is set as the timeout time T1. Then, during the period until the time T1 elapses, the master ECU performs an operation of waiting for reception of completion response data.

また別例として、図10(c)に示すように、マスタECU−スレーブECU間で、要求データ及ぶ受付応答データの授受が成功し、スレーブECUからは、完了応答データが送信されたにも拘わらず、ノイズ等の影響により、完了応答データが、マスタECUで受信されなかった場合には、タイムアウト時間T1の経過後に、マスタECUから要求データが再送信される(リトライ処理)。この際には、スレーブECUにて、既に要求された処理が完了しているので、スレーブECUからは、受付応答データに代えて、直ちに完了応答データが送信される。   As another example, as shown in FIG. 10 (c), the master ECU and the slave ECU have successfully exchanged the request response data and the reception response data, and the slave ECU has transmitted the completion response data. First, when the completion response data is not received by the master ECU due to the influence of noise or the like, the request data is retransmitted from the master ECU after the timeout time T1 has elapsed (retry processing). At this time, since the requested processing has already been completed in the slave ECU, the completion response data is immediately transmitted from the slave ECU instead of the reception response data.

また別例として、図10(d)に示すように、マスタECU−スレーブECU間で、要求データ及ぶ受付応答データの授受が成功し、スレーブECUからは、完了応答データが送信されたにも拘わらず、ノイズ等の影響により、完了応答データが、マスタECUにて受信されなかった場合であって、リトライ処理の際においても、ノイズ等の影響により、完了応答データが、マスタECUにて受信されなかった場合には、初回のリトライ処理の実行時点から、所定時間T0後に、再度、要求データが再送信される(二度目のリトライ処理)。   As another example, as shown in FIG. 10 (d), the master ECU and the slave ECU succeeded in receiving and receiving the acceptance response data and the completion response data is transmitted from the slave ECU. First, the completion response data is not received by the master ECU due to the influence of noise or the like, and the completion response data is received by the master ECU due to the influence of noise or the like even during the retry process. If not, the request data is retransmitted again after a predetermined time T0 from the execution time of the first retry process (second retry process).

尚、リトライ処理時に、所定時間T0のみしか、受付応答データ及び完了応答データの受信待ちをしないのは、所定時間T0内に受付応答データ及び完了応答データのいずれも受信することができなかった場合には、通信データの伝送過程で問題が生じている可能性が高く、これ以上待機しても、完了応答データを受信できる可能性が低いためである。   During the retry process, only the predetermined time T0 waits for reception of the reception response data and the completion response data when neither the reception response data nor the completion response data can be received within the predetermined time T0. This is because there is a high possibility that a problem has occurred in the transmission process of communication data, and there is a low possibility that the completion response data can be received even when waiting for longer.

即ち、要求データに対応する処理が完了している場合には、処理待ちによって完了応答データの送信に時間がかかるといったことがなく、受付応答データの受信待ち時間と同程度の時間で完了応答データを受信することができるため、所定時間T0内に受付応答データ及び完了応答データのいずれも受信することができなかった場合、マスタECUにおいては、二度目のリトライ処理を行う。   That is, when the processing corresponding to the request data is completed, it does not take time to transmit the completion response data due to the waiting for processing, and the completion response data is as long as the reception waiting time of the reception response data. Therefore, when neither the reception response data nor the completion response data can be received within the predetermined time T0, the master ECU performs a second retry process.

尚、所定時間T0については、受付応答データを適切に受信することができる程度に、必要十分な時間に設定すべきと上述したが、この時間T0については、完了応答データの再送信時に、完了応答データを適切に受信することができる程度に設定する必要もある。但し、この時間T0については、あまり長い時間を設定すると、タイムアウト時間T1を設定する意味がなくなってしまうので、これを考慮して、時間を設定する必要がある。   As described above, the predetermined time T0 should be set to a necessary and sufficient time so that the reception response data can be properly received. However, the time T0 is completed when the completion response data is retransmitted. It is also necessary to set the response data so that it can be received appropriately. However, if the time T0 is set too long, there is no point in setting the timeout time T1, so it is necessary to set the time in consideration of this.

以上、本実施例の通信システム1について説明したが、本実施例の通信システム1では、遠隔操作受付ECU10が、ネットワークNT内の他のECUである照合ECU20やボデーECU30と通信し、これらのECU20,30と協働して、遠隔操作に係る一連の処理を実現する。具体的に、照合ECU20やボデーECU30は、遠隔操作受付ECU10から、要求データを受信すると、要求データにより要求された処理が完了するまでの所要時間を表す最大実行時間情報、を格納した応答データであって、要求が受け付けられたことを示す受付応答データを、要求元の遠隔操作受付ECU10に送信する。   The communication system 1 of the present embodiment has been described above. However, in the communication system 1 of the present embodiment, the remote operation reception ECU 10 communicates with the verification ECU 20 and the body ECU 30 that are other ECUs in the network NT, and these ECUs 20 , 30 to realize a series of processes related to remote operation. Specifically, when the verification ECU 20 or the body ECU 30 receives the request data from the remote operation reception ECU 10, the verification ECU 20 or the body ECU 30 is response data that stores maximum execution time information indicating a time required for completing the process requested by the request data. Then, the reception response data indicating that the request has been received is transmitted to the remote operation reception ECU 10 as the request source.

一方、本実施例の通信システム1では、遠隔操作信号がユーザ端末40から入力されると、遠隔操作受付ECU10が、遠隔操作に対する処理を実現するために、照合ECU20やボデーECU30に対して要求データを送信する。そして、遠隔操作受付ECU10は、この際照合ECU20やボデーECU30から送信されてくる受付応答データが示す最大実行時間情報に基づき、照合ECU20やボデーECU30で要求した処理が完了した後に送信されてくる処理の実行結果を表す完了応答データの受信待ち動作に関して、タイムアウト時間を設定する。   On the other hand, in the communication system 1 of the present embodiment, when a remote operation signal is input from the user terminal 40, the remote operation reception ECU 10 sends request data to the verification ECU 20 and the body ECU 30 in order to realize processing for the remote operation. Send. The remote operation reception ECU 10 then transmits a process that is transmitted after the process requested by the verification ECU 20 or the body ECU 30 is completed based on the maximum execution time information indicated by the reception response data transmitted from the verification ECU 20 or the body ECU 30 at this time. A timeout period is set for the operation of waiting for reception of the completion response data representing the execution result of.

そして、タイムアウト時間内に、完了応答データを受信できた場合には、遠隔操作に係る処理の実行結果を、ユーザ端末40に送信し、タイムアウト時間内に、完了応答データを受信することができなかった場合には、リトライ処理を実行する。   When the completion response data can be received within the timeout time, the execution result of the process related to the remote operation is transmitted to the user terminal 40, and the completion response data cannot be received within the timeout time. If it does, retry processing is executed.

従って、この通信システム1によれば、スレーブECUに実行させる処理毎に、その処理についての完了応答データの受信待ち動作に関して、適切なタイムアウト時間を設定することができる。例えば、処理完了までに時間を要する(換言すると完了応答データの送信までに時間を要する)パワーウィンドウ系のサービスに合わせて、各サービスに共通するタイムアウト時間を設定する場合には、処理完了までの時間が短いドア系のサービスを要求する際、冗長にタイムアウト時間を設定することになり、リトライ処理の実行までに時間を要することになるが、本実施例によれば、要求する処理毎に、適切なタイムアウト時間を設定することができるので、リトライ処理の実行までに要する時間を短縮することができる。   Therefore, according to this communication system 1, it is possible to set an appropriate time-out period for the operation of waiting for reception of completion response data for each process to be executed by the slave ECU. For example, if a time-out period common to each service is set in accordance with a power window service that takes time to complete processing (in other words, it takes time to send completion response data), When requesting a door-type service with a short time, the timeout time will be set redundantly, and it will take time to execute the retry process, but according to this embodiment, for each requested process, Since an appropriate time-out period can be set, the time required for executing the retry process can be shortened.

また、本実施例の通信システム1では、スレーブECUに対して処理の実行を要求するマスタECUが、要求された処理を実行するスレーブECUから処理の実行時間に係る最大実行時間情報を取得するので、マスタECUとスレーブECUとの組合せが異なる場合においても、マスタECUでは、スレーブECUでの処理内容や処理能力に合わせて、適切なタイムアウト時間を設定することができる。   In the communication system 1 of the present embodiment, the master ECU that requests the slave ECU to execute the process acquires the maximum execution time information related to the execution time of the process from the slave ECU that executes the requested process. Even when the combination of the master ECU and the slave ECU is different, the master ECU can set an appropriate time-out time in accordance with the processing contents and processing capability of the slave ECU.

従って、本実施例の手法で、車内LANシステムを構成すれば、ECUを機能毎に細分化して、細分化した各機能を個別の電子ECUにて実現するようにし、遠隔操作受付ECU10のような汎用的な機能を実現するECUについては、ECUを車種に拠らず共通化する場合に、ECUの組合せを考慮して、予め、マスタECUに対し、処理結果待ち動作のタイムアウト時間を設定する必要がなく、マスタECUにおいては、スレーブECUの種類によらず、常時、適切にタイムアウト時間を設定することができる。   Therefore, if the in-vehicle LAN system is configured by the method of this embodiment, the ECU is subdivided for each function, and each subdivided function is realized by an individual electronic ECU. For an ECU that realizes a general-purpose function, it is necessary to set a time-out period for the processing result waiting operation for the master ECU in advance in consideration of the combination of the ECUs when the ECU is shared regardless of the vehicle type. In the master ECU, the time-out time can always be set appropriately regardless of the type of the slave ECU.

その他、本実施例では、マスタECUから再送信された要求データを、スレーブECUが受信した時点で、要求データに対応する処理がスレーブECUで完了していない場合、この処理に関して、残り処理時間Trを算出し、この時間Trを最大実行時間情報として格納した受付応答データを、要求元のマスタECUに送信するようにした。従って、本実施零によれば、リトライ処理時においても、マスタECUで、完了応答データの受信待ち動作に関して、適切なタイムアウト時間を設定することができる。よって、本実施例の通信システム1によれば、リトライ処理によっても完了応答データを受信することができない場合に、再度、迅速にリトライ処理を実行することができる。   In addition, in this embodiment, when the slave ECU receives the request data retransmitted from the master ECU, if the processing corresponding to the request data is not completed in the slave ECU, the remaining processing time Tr is related to this processing. And receiving response data storing this time Tr as maximum execution time information is transmitted to the requesting master ECU. Therefore, according to this embodiment zero, even during the retry process, the master ECU can set an appropriate time-out period for the operation of waiting for reception of the completion response data. Therefore, according to the communication system 1 of the present embodiment, when the completion response data cannot be received even by the retry process, the retry process can be quickly executed again.

また、本実施例では、要求データの送信後、受付応答データを所定時間T0内に受信することができなかった場合には、その後、完了応答データの受信待機をすることなく、直ちにリトライ処理を実行するようにした。また、リトライ処理による要求データの再送信後、スレーブECUから所定時間T0内に、何ら応答がない場合、リトライ処理を再度直ちに行うようにした。従って、本実施例によれば、リトライ処理を効率的に行って、迅速に、要求した処理の実行結果を、スレーブECUから取得することができる。   Further, in this embodiment, after the request data is transmitted, if the reception response data cannot be received within the predetermined time T0, the retry process is immediately performed without waiting for the completion response data to be received. I tried to run. In addition, after the request data is retransmitted by the retry process, if there is no response from the slave ECU within the predetermined time T0, the retry process is immediately performed again. Therefore, according to the present embodiment, the retry process can be efficiently performed, and the execution result of the requested process can be quickly acquired from the slave ECU.

尚、本発明の受付応答手段は、S580,S583,S600の処理にて実現され、処理実行手段は、S587の処理にて実現され、完了応答手段は、応答制御処理(図9参照)にて実現されている。また、要求手段は、S120〜S130,S160〜S170,S210の処理にて実現され、受信処理手段は、S260〜S300,S200等の処理にて実現され、タイムアウト時間設定手段は、S220〜S250,S340〜S370の処理にて実現されている。また、リトライ応答手段は、S540〜S570,S590〜S600の処理及び応答制御処理にて実現されている。   The acceptance response means of the present invention is realized by the processes of S580, S583, S600, the process execution means is realized by the process of S587, and the completion response means is a response control process (see FIG. 9). It has been realized. Further, the request means is realized by the processing of S120 to S130, S160 to S170, S210, the reception processing means is realized by the processing of S260 to S300, S200, etc., and the timeout time setting means is S220 to S250, This is realized by the processing of S340 to S370. The retry response means is realized by the processing of S540 to S570 and S590 to S600 and the response control processing.

また、本発明の通信システムは、上記実施例に限定されるものではなく、種々の態様を採ることができる。
例えば、上記実施例では、窓の開閉処理の要求を遠隔操作受付ECU10から受けた場合に、窓の現在の開度を考慮せずに、処理時間テーブルに基づいて、受付応答データにより、最大実行時間情報を、ボデーECU30から遠隔操作受付ECU10に通知するようにしたが、窓の開閉に要する時間は、開閉開始時点での窓の開度に依存するため、ボデーECU20については、窓の開度を考慮して、受付応答データに記述する最大実行時間を算出する構成にされてもよい。
Further, the communication system of the present invention is not limited to the above-described embodiments, and can take various forms.
For example, in the above-described embodiment, when a window opening / closing process request is received from the remote operation reception ECU 10, the maximum execution is performed based on the reception response data based on the processing time table without considering the current opening of the window. Although the time information is notified from the body ECU 30 to the remote operation reception ECU 10, the time required for opening and closing the window depends on the opening of the window at the start of opening and closing. In consideration of this, the maximum execution time described in the reception response data may be calculated.

また、上記実施例では、現在実行中の処理に対応する要求データを、マスタECUから受信した場合に、スレーブECUが、残り処理時間Trを導出して、導出した残り処理時間Trを、最大実行時間情報として受付応答データに記述するが、スレーブECUは、現在実行中の処理に対応する要求データを、マスタECUから受信した場合にも、実行中でない処理についての要求データを、マスタECUから受信した場合と同様に、処理時間テーブルから読み出した処理時間Tcを、最大実行時間情報として受付応答データに記述する構成にされてもよい。   Further, in the above embodiment, when the request data corresponding to the currently executed process is received from the master ECU, the slave ECU derives the remaining processing time Tr, and the derived remaining processing time Tr is maximized. Although it is described in the reception response data as time information, the slave ECU receives request data for a process that is not being executed from the master ECU even when request data corresponding to the process that is currently being executed is received from the master ECU. Similarly to the case, the processing time Tc read from the processing time table may be described in the reception response data as the maximum execution time information.

その他、上記実施例では、遠隔操作受付ECU10、照合ECU20、ボデーECU30により協働して、遠隔操作に係る処理を実現するシステムに、本発明を適用した例を示したが、本発明の通信システムは、このようなECUの組合せに限定されるものではないことは、言うまでもない。   In addition, in the said Example, although the remote operation reception ECU10, collation ECU20, and body ECU30 cooperated, the example which applied this invention to the system which implement | achieves the process which concerns on remote operation was shown, The communication system of this invention Needless to say, the combination of the ECUs is not limited to this.

本実施例の通信システム1の構成を表すブロック図である。It is a block diagram showing the structure of the communication system 1 of a present Example. 本実施例の通信形態を示したラダーチャートである。It is the ladder chart which showed the communication form of a present Example. 通信の際に、送受信される要求データ(a)、受付応答データ(b)、完了応答データ(c)の構成を示した説明図である。It is explanatory drawing which showed the structure of the request data (a), reception response data (b), and completion response data (c) transmitted / received in the case of communication. 遠隔操作受付ECU10が実行する遠隔操作受付処理を表すフローチャートである。It is a flowchart showing the remote operation reception process which remote operation reception ECU10 performs. 遠隔操作受付ECU10が実行する通信処理を表すフローチャートである。It is a flowchart showing the communication process which remote operation reception ECU10 performs. 遠隔操作受付ECU10が実行するリトライ処理を表すフローチャートである。It is a flowchart showing the retry process which remote control reception ECU10 performs. スレーブECUが実行する要求受付処理を表すフローチャートである。It is a flowchart showing the request | requirement reception process which slave ECU performs. 処理時間テーブルの構成を表す図である。It is a figure showing the structure of a processing time table. スレーブECUが実行する応答制御処理を表すフローチャートである。It is a flowchart showing the response control process which slave ECU performs. 本実施例の通信形態を示したラダーチャートである。It is the ladder chart which showed the communication form of a present Example.

符号の説明Explanation of symbols

1…通信システム、10…遠隔操作受付ECU、15…無線通信装置、20…照合ECU、30…ボデーECU、31…ドア装置、33…パワーウィンドウ装置、35…点灯装置、40…ユーザ端末、NT…ネットワーク DESCRIPTION OF SYMBOLS 1 ... Communication system, 10 ... Remote operation reception ECU, 15 ... Wireless communication apparatus, 20 ... Collation ECU, 30 ... Body ECU, 31 ... Door apparatus, 33 ... Power window apparatus, 35 ... Lighting apparatus, 40 ... User terminal, NT …network

Claims (6)

ネットワークに、複数の電子制御装置が接続され、前記複数の電子制御装置の内、少なくとも一つの電子制御装置Aが、ネットワーク内の他の電子制御装置Bと通信し、前記他の電子制御装置Bと協働して、一連の処理を実現する通信システムであって、
前記電子制御装置Bは、
前記電子制御装置Aから、処理の実行を要求する要求信号を受信すると、前記受信した要求信号にて要求された処理が完了するまでの所要時間を表す情報、を格納した応答信号であって、前記要求が受け付けられたことを示す受付応答信号を、前記要求信号の送信元装置に送信する受付応答手段と、
前記電子制御装置Aから、処理の実行を要求する要求信号を受信すると、前記受信した要求信号にて要求された処理を実行する処理実行手段と、
前記処理実行手段にて前記要求信号に対応する処理が完了すると、前記要求信号に対応する処理が完了したことを示す応答信号であって、処理の実行結果を表す情報を格納した完了応答信号を、前記要求信号の送信元装置に送信する完了応答手段と、
を備え、
前記電子制御装置Aは、
イベントの発生に応じて、前記発生したイベントに対応した処理の実行を要求する要求信号を、その処理を実行可能な前記電子制御装置Bに送信する要求手段と、
前記要求手段により送信された要求信号に対応する完了応答信号を、前記電子制御装置Bから受信して、前記受信した完了応答信号に基づき、前記イベントに対応する処理を実行する受信処理手段と、
前記電子制御装置Bから受付応答信号を受信すると、前記受信した受付応答信号に格納された前記所要時間を表す情報に基づき、前記受信処理手段に対し、前記受信した受付応答信号に対応する完了応答信号の受信待ち動作についてのタイムアウト時間を設定するタイムアウト時間設定手段と、
を備えることを特徴とする通信システム。
A plurality of electronic control devices are connected to the network, and at least one of the plurality of electronic control devices A communicates with another electronic control device B in the network, and the other electronic control device B A communication system that realizes a series of processing in cooperation with
The electronic control unit B is
When a request signal for requesting execution of processing is received from the electronic control unit A, the response signal stores information indicating a time required until the processing requested by the received request signal is completed, An acceptance response means for transmitting an acceptance response signal indicating that the request has been accepted to a transmission source device of the request signal;
When a request signal for requesting execution of processing is received from the electronic control unit A, processing execution means for executing processing requested by the received request signal;
When the process corresponding to the request signal is completed by the process execution means, a response signal indicating that the process corresponding to the request signal is completed, and a completion response signal storing information indicating the result of the process is stored. A completion response means for transmitting the request signal to a transmission source device;
With
The electronic control unit A includes
Request means for transmitting a request signal for requesting execution of a process corresponding to the generated event to the electronic control unit B capable of executing the process in response to the occurrence of the event;
A reception processing means for receiving a completion response signal corresponding to the request signal transmitted by the request means from the electronic control device B, and executing a process corresponding to the event based on the received completion response signal;
Upon receipt of an acceptance response signal from the electronic control unit B, a completion response corresponding to the received acceptance response signal is sent to the reception processing means based on information representing the required time stored in the received acceptance response signal. A timeout time setting means for setting a timeout time for the signal reception waiting operation;
A communication system comprising:
前記受信処理手段は、前記タイムアウト時間設定手段により設定されたタイムアウト時間が経過するまでの期間に、前記要求信号に対応する完了応答信号を受信することができなかった場合、前記完了応答信号の取得を再試行する手順を含むリトライ処理を実行する構成にされていることを特徴とする請求項1記載の通信システム。   The reception processing unit obtains the completion response signal when the completion response signal corresponding to the request signal cannot be received in a period until the timeout time set by the timeout time setting unit elapses. The communication system according to claim 1, wherein the communication system is configured to execute a retry process including a procedure for retrying. 前記受信処理手段は、前記タイムアウト時間設定手段により設定されたタイムアウト時間が経過するまでの期間に、前記要求信号に対応する完了応答信号を受信することができなかった場合、前記リトライ処理として、前記完了応答信号に対応する要求信号を送信した送信先の前記電子制御装置Bに、この要求信号に対応する再要求信号を、送信する構成にされ、
前記電子制御装置Bは、
前記電子制御装置Aから、再要求信号を受信すると、この再要求信号に対応する要求信号の受信の際に前記処理実行手段が実行を開始した処理の実行結果を表す情報を格納した完了応答信号を、前記再要求信号の送信元装置に、送信するリトライ応答手段、
を備えることを特徴とする請求項2記載の通信システム。
When the reception processing unit cannot receive a completion response signal corresponding to the request signal in a period until the timeout time set by the timeout time setting unit elapses, as the retry processing, A re-request signal corresponding to the request signal is transmitted to the electronic control device B that has transmitted the request signal corresponding to the completion response signal;
The electronic control unit B is
When a re-request signal is received from the electronic control unit A, a completion response signal storing information indicating the execution result of the process started by the process execution means when receiving the request signal corresponding to the re-request signal Retry response means for transmitting to the transmission source device of the re-request signal,
The communication system according to claim 2, further comprising:
前記リトライ応答手段は、前記再要求信号を受信した時点で、この再要求信号に対応する要求信号の受信の際に前記処理実行手段が実行を開始した処理が前記処理実行手段にて完了していない場合、前記完了応答信号の送信に先駆けて、前記要求信号に対応する処理が完了するまでの所要時間を表す情報、を格納した受付応答信号を、前記再要求信号の送信元装置に送信する構成にされていることを特徴とする請求項3記載の通信システム。   The retry response means, at the time of receiving the re-request signal, the process executed by the process execution means when receiving the request signal corresponding to the re-request signal has been completed by the process execution means. If not, prior to transmission of the completion response signal, an acceptance response signal storing information indicating a time required until the processing corresponding to the request signal is completed is transmitted to the re-request signal transmission source device. The communication system according to claim 3, wherein the communication system is configured. 前記タイムアウト時間設定手段は、前記要求手段による要求信号の送信後、所定時間内に、送信先の前記電子制御装置Bから受付応答信号を受信することができなかった場合、前記受信処理手段に、前記所定時間が経過した時点で、前記リトライ処理を開始させる構成にされていることを特徴とする請求項2〜請求項4のいずれかに記載の通信システム。   The time-out time setting means, if the reception response signal cannot be received from the electronic control device B as the transmission destination within a predetermined time after the transmission of the request signal by the request means, The communication system according to any one of claims 2 to 4, wherein the retry process is started when the predetermined time has elapsed. 前記タイムアウト時間設定手段は、前記受信処理手段による再要求信号の送信後、前記完了応答信号の受信が成功していない状態で、所定時間内に、送信先の前記電子制御装置Bから受付応答信号を受信することができなかった場合、前記所定時間が経過した時点で、前記受信処理手段に、再度、前記リトライ処理を実行させる構成にされていることを特徴とする請求項4記載の通信システム。   The time-out time setting means receives an acceptance response signal from the electronic control device B as a transmission destination within a predetermined time in a state where the completion response signal has not been successfully received after transmission of the re-request signal by the reception processing means 5. The communication system according to claim 4, wherein when the predetermined time has not been received, the reception processing means is made to execute the retry processing again when the predetermined time has elapsed. .
JP2006252924A 2006-09-19 2006-09-19 Communicating system Pending JP2008078769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006252924A JP2008078769A (en) 2006-09-19 2006-09-19 Communicating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006252924A JP2008078769A (en) 2006-09-19 2006-09-19 Communicating system

Publications (1)

Publication Number Publication Date
JP2008078769A true JP2008078769A (en) 2008-04-03

Family

ID=39350414

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006252924A Pending JP2008078769A (en) 2006-09-19 2006-09-19 Communicating system

Country Status (1)

Country Link
JP (1) JP2008078769A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078694A1 (en) * 2008-07-30 2011-03-31 Autonetworks Technologies, Ltd. Control apparatus, control system and computer program
JP2015228622A (en) * 2014-06-02 2015-12-17 株式会社デンソー On-vehicle network system and on-vehicle relay device
WO2018211816A1 (en) * 2017-05-17 2018-11-22 株式会社デンソー Communication system, master node, slave node, and control program
JP2019175222A (en) * 2018-03-29 2019-10-10 日本電気株式会社 Telegram message guarantee system and telegram message guarantee method
US20220377068A1 (en) * 2021-05-19 2022-11-24 Toyota Jidosha Kabushiki Kaisha Vehicle control device, vehicle, vehicle control method, and non-transitory recording medium
WO2023189955A1 (en) * 2022-03-30 2023-10-05 株式会社デンソー Vehicle control device and vehicle control system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0270142A (en) * 1988-09-06 1990-03-09 Matsushita Electric Ind Co Ltd Method for controlling communication
JPH08321895A (en) * 1995-05-25 1996-12-03 Toyota Motor Corp Communication system
JPH0983565A (en) * 1995-09-13 1997-03-28 Toshiba Corp Communication system
JP2000013442A (en) * 1998-06-26 2000-01-14 Nec Corp Distributed processing system, server, client, remote processing starting method and recording medium
JP2005135076A (en) * 2003-10-29 2005-05-26 Canon Inc Electronic equipment and information processor, communication system and its communication control method, and data processor
JP2005346175A (en) * 2004-05-31 2005-12-15 Matsushita Electric Ind Co Ltd Apparatus and method for command communication
JP2006157633A (en) * 2004-11-30 2006-06-15 Anritsu Corp Pseudo base station apparatus and videophone terminal test method employing same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0270142A (en) * 1988-09-06 1990-03-09 Matsushita Electric Ind Co Ltd Method for controlling communication
JPH08321895A (en) * 1995-05-25 1996-12-03 Toyota Motor Corp Communication system
JPH0983565A (en) * 1995-09-13 1997-03-28 Toshiba Corp Communication system
JP2000013442A (en) * 1998-06-26 2000-01-14 Nec Corp Distributed processing system, server, client, remote processing starting method and recording medium
JP2005135076A (en) * 2003-10-29 2005-05-26 Canon Inc Electronic equipment and information processor, communication system and its communication control method, and data processor
JP2005346175A (en) * 2004-05-31 2005-12-15 Matsushita Electric Ind Co Ltd Apparatus and method for command communication
JP2006157633A (en) * 2004-11-30 2006-06-15 Anritsu Corp Pseudo base station apparatus and videophone terminal test method employing same

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078694A1 (en) * 2008-07-30 2011-03-31 Autonetworks Technologies, Ltd. Control apparatus, control system and computer program
US8776072B2 (en) * 2008-07-30 2014-07-08 Autonetworks Technologies, Ltd. Control apparatus, control system and computer program
JP2015228622A (en) * 2014-06-02 2015-12-17 株式会社デンソー On-vehicle network system and on-vehicle relay device
WO2018211816A1 (en) * 2017-05-17 2018-11-22 株式会社デンソー Communication system, master node, slave node, and control program
JP2018195990A (en) * 2017-05-17 2018-12-06 株式会社デンソー Communication system, master node, slave node, and control program
US11140005B2 (en) 2017-05-17 2021-10-05 Denso Corporation In-vehicle communication system between master node and slave node
JP2019175222A (en) * 2018-03-29 2019-10-10 日本電気株式会社 Telegram message guarantee system and telegram message guarantee method
JP7124384B2 (en) 2018-03-29 2022-08-24 日本電気株式会社 Telegram Assurance System and Telegram Assurance Method
US20220377068A1 (en) * 2021-05-19 2022-11-24 Toyota Jidosha Kabushiki Kaisha Vehicle control device, vehicle, vehicle control method, and non-transitory recording medium
JP2022178229A (en) * 2021-05-19 2022-12-02 トヨタ自動車株式会社 Vehicle control device, vehicle, vehicle control method and program
JP7355073B2 (en) 2021-05-19 2023-10-03 トヨタ自動車株式会社 Vehicle control device, vehicle, vehicle control method and program
WO2023189955A1 (en) * 2022-03-30 2023-10-05 株式会社デンソー Vehicle control device and vehicle control system

Similar Documents

Publication Publication Date Title
JP6782446B2 (en) Monitoring equipment, communication systems, vehicles, monitoring methods, and computer programs
US9648023B2 (en) Vehicle module update, protection and diagnostics
JP5729337B2 (en) VEHICLE AUTHENTICATION DEVICE AND VEHICLE AUTHENTICATION SYSTEM
US9452733B2 (en) Vehicle-mounted control system and vehicle-mounted control device
US20160150407A1 (en) Method And System For Connecting A Mobile Communication Device To An Automobile
US8033350B2 (en) Starting control apparatus
JP2008078769A (en) Communicating system
CN108791190B (en) Authentication, retention and revocation of one-way key fob and vehicle pairings
JP2008265491A (en) Remote engine control system
WO2022078193A1 (en) Vehicle control method and apparatus, and storage medium
JP7006335B2 (en) In-vehicle communication system, in-vehicle communication method, and program
JP6981755B2 (en) In-vehicle network system
JP2011021428A (en) Electronic key system and electronic key matching method
JP2010532888A (en) Vehicle information transmission method and device, vehicle identifier, and computer program
JP4168771B2 (en) Communication system for vehicle remote control, transmission device, and reception device
JP2010222898A (en) Keyless authentication system and vehicle with keyless authentication system
US7804845B2 (en) Method to confirm the server identity for server-initiated services
WO2016067595A1 (en) Smart key system
JP6449665B2 (en) In-vehicle communication device
JP4013592B2 (en) Vehicle communication system
US20080107266A1 (en) Cryptology calculation for last used authentication device
CN115460561A (en) Vehicle control device, vehicle control method, and storage medium
JP2006306290A (en) Control device for vehicle
WO2018037894A1 (en) Authentication device for vehicles
JP2014021617A (en) Authentication device, and authentication system for vehicles

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110725

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120403