JP6504062B2 - Task execution method and task execution system - Google Patents
Task execution method and task execution system Download PDFInfo
- Publication number
- JP6504062B2 JP6504062B2 JP2016007301A JP2016007301A JP6504062B2 JP 6504062 B2 JP6504062 B2 JP 6504062B2 JP 2016007301 A JP2016007301 A JP 2016007301A JP 2016007301 A JP2016007301 A JP 2016007301A JP 6504062 B2 JP6504062 B2 JP 6504062B2
- Authority
- JP
- Japan
- Prior art keywords
- task
- information
- charge
- vehicle
- execution
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Traffic Control Systems (AREA)
Description
本発明は、タスクの実行処理に関し、特に、タスクの実行依頼を受け付けたグループが当該タスクを実行する装置を適切に決定するタスク実行処理に関する。 The present invention relates to task execution processing, and more particularly to task execution processing in which a group that receives a task execution request appropriately determines an apparatus that executes the task.
近年、車両には高機能な計算処理装置、記憶装置、無線通信装置、センサが搭載されている。このような計算リソースを他車両や車両以外の装置に提供することで、車両ネットワークシステムはICT基盤(巨大なCPUやストレージ等)として活用できる。 2. Description of the Related Art In recent years, vehicles are equipped with highly functional calculation processing devices, storage devices, wireless communication devices, and sensors. By providing such computing resources to other vehicles and devices other than vehicles, the vehicle network system can be utilized as an ICT base (large CPU, storage, etc.).
例えば、特許文献1は、データ処理装置と通信可能になった端末装置がデータ処理装置に分散処理要求を送信し、データ処理装置は予測ターンアラウンド時間が要求を満たすかを判定して、要求された分散処理を実行するか否かを決定することを開示する。 For example, in Patent Document 1, a terminal device that has become communicable with the data processing device transmits a distributed processing request to the data processing device, and the data processing device determines whether the predicted turnaround time satisfies the request and is requested. It is disclosed to determine whether or not to execute distributed processing.
また、非特許文献1は、スマートフォン端末の電池消費量削減のためアプリケーションプログラムをインフラにオフロードする。この際に、コネクション状況やエネルギー消費量を考慮して分割粒度を適切に調整することが、非特許文献1では検討されている。 In addition, Non-Patent Document 1 offloads an application program to an infrastructure to reduce battery consumption of a smartphone terminal. At this time, in Non-Patent Document 1, it is studied to appropriately adjust the division particle size in consideration of the connection situation and the energy consumption.
車両ネットワークシステムが外部装置からタスクの実行依頼を受け付けた場合、車両群の中から最適な車両(計算リソース)を用いて当該タスクを実行することが望まれる。そして、複数の外部装置が同時に車両リソースを利用する環境においては、その時々によってタスク処理に適する車両リソースが変化するため、リアルタイムにタスク実行車両を決定する必要がある。 When the vehicle network system receives a task execution request from an external device, it is desirable to execute the task using an optimal vehicle (calculation resource) from among a group of vehicles. Then, in an environment where a plurality of external devices use vehicle resources at the same time, it is necessary to determine a task execution vehicle in real time because vehicle resources suitable for task processing change from time to time.
特許文献1は、タスクの実行依頼を受け付けるか否かの判断については検討されているが、タスクの実行依頼を受け付けた後のタスク処理方法については検討されていない。特に、タスクの依頼先として単一の計算機を前提としているため、タスクの実行依頼を受け付けた後に、複数の計算装置の中からタスク実行に適した計算装置を選択することは考慮されていない。非特許文献1も同様に、複数の計算機の中からタスクを代替する計算機を決定することは考慮していない。 Although patent document 1 is examined about determination of whether to receive the execution request of a task, it is not examined about the task processing method after receiving the execution request of a task. In particular, since a single computer is assumed as a request destination of a task, it is not considered to select a computing device suitable for task execution from among a plurality of computing devices after accepting a task execution request. Similarly, Non-Patent Document 1 does not consider determining a computer that substitutes a task among a plurality of computers.
本発明は、複数の情報処理装置から構成されるグループにおいて、タスクを実行する情報処理装置を適切に決定可能なタスク実行方法およびタスク実行システムを提供することを目的とする。 An object of the present invention is to provide a task execution method and a task execution system capable of appropriately determining an information processing apparatus that executes a task in a group including a plurality of information processing apparatuses.
上記の目的を達成するために、本発明は、グループ内でタスク情報を送信し、当該タス
ク情報に基づいてグループ内の各装置がタスクを実行するか否かを自律的に判断する。また、タスク情報に現在タスクを実行している装置の実行終了予測時刻を格納することで、当該実行終了予測時刻を考慮してタスクを実行するか否かを各装置が判断可能とする。また、本発明では、1つのタスクをグループ内の2つ以上の装置で実行することによって冗長性を確保する。
In order to achieve the above object, the present invention transmits task information in a group, and autonomously determines whether or not each device in the group executes a task based on the task information. Further, by storing the predicted execution end time of the device currently executing the task in the task information, each device can determine whether or not to execute the task in consideration of the predicted execution end time. Also, in the present invention, redundancy is ensured by performing one task on two or more devices in a group.
より具体的には、本発明の一態様は、複数の情報処理装置から構成されるグループにおけるタスク実行方法であって、タスク情報を受信する受信ステップと、受信したタスク情報に基づいて、当該タスク情報に対応するタスクを実行するか否かを判定する判定ステップと、前記タスクに関するタスク情報を送信する送信ステップと、を含む。 More specifically, one aspect of the present invention is a task execution method in a group configured of a plurality of information processing devices, wherein the step of receiving task information and the task based on the received task information The method includes a determination step of determining whether or not to execute a task corresponding to information, and a transmission step of transmitting task information related to the task.
本発明では、1つのタスクをグループ内の少なくとも2つの情報処理装置が実行することを想定する。そのため、タスク情報には、タスクの第1担当装置を特定する情報(例えば、識別子)と、第1担当装置によるタスクの実行終了予測時刻と、タスクの第2担当装置を特定する情報と、第2担当装置によるタスクの実行終了予測時刻と、が含まれる。タスク情報には、タスクを特定する情報や、タスクの内容(例えば、ソースコードや中間コードなど)が含まれることも好ましい。 In the present invention, it is assumed that one task is executed by at least two information processors in a group. Therefore, the task information includes information (for example, an identifier) identifying the first device in charge of the task, predicted execution end time of the task by the first device in charge, information identifying the second device in charge of the task, and (2) The predicted execution end time of the task by the device in charge is included. It is also preferable that the task information includes information specifying a task, and the content of the task (for example, source code, intermediate code, etc.).
判定ステップでは、自装置が第1担当装置としていずれのタスクも実行しておらず、かつ、前記タスク情報に含まれる前記第1担当装置の実行終了予測時刻よりも早くに前記タスクを終了できる場合に、第1担当装置として前記タスクを実行すると判定する。この場合、送信ステップでは、受信したタスク情報の第1担当装置を自装置に更新し、第2担当装置をそれまでの第1担当装置に更新してから、更新されたタスク情報を送信する。 In the determination step, when the own device does not execute any task as the first device in charge, and the task can be terminated earlier than the predicted execution end time of the first device in charge included in the task information It is determined to execute the task as a first device in charge. In this case, in the transmission step, the first responsible device of the received task information is updated to the own device, and the second responsible device is updated to the first responsible device up to that point, and then the updated task information is transmitted.
また、判定ステップにおいて、自装置が第1担当装置または第2担当装置としていずれのタスクも実行しておらず、かつ、前記タスク情報に含まれる前記第2担当装置の実行終了予測時刻よりも早くに前記タスクを終了できる場合に、第2担当装置として前記タスクを実行すると判定する。この場合、送信ステップでは、受信したタスク情報の第2担当装置を自装置に更新して(第1担当装置は更新せず)、更新されたタスク情報を送信する。 In addition, in the determination step, the own device does not execute any task as the first device in charge or the second device in charge, and earlier than the predicted execution end time of the second device in charge included in the task information. It is determined to execute the task as a second device in charge when the task can be ended. In this case, in the transmitting step, the second device in charge of the received task information is updated to the own device (the first device in charge is not updated), and the updated task information is transmitted.
また、判定ステップにおいて前記タスク情報に対応するタスクを実行しないと判定する場合、前記送信ステップでは受信した前記タスク情報の第1担当装置と第2担当装置に関する情報を更新せずに送信する。タスク情報におけるその他の情報は更新されても構わない。 When it is determined in the determination step that the task corresponding to the task information is not to be executed, the transmission step transmits the information on the first responsible device and the second responsible device of the received task information without updating. Other information in the task information may be updated.
このような構成によれば、タスク情報をグループ内で送信することにより、各情報処理装置がタスクを実行すべきかどうかをリアルタイムかつ自律的に判断できる。また、タスク実行に適した装置を探索するために必要な時間浪費を削減することもできる。さらに、1つのタスクを複数の装置で実行するため、冗長性を確保できる。 According to such a configuration, it is possible to determine in real time and autonomously whether or not each information processing apparatus should execute a task by transmitting task information in a group. In addition, it is also possible to reduce the time required for searching for a device suitable for task execution. Furthermore, redundancy can be ensured because one task is executed by multiple devices.
本発明における判定ステップにおいて、前記タスク情報が自装置で実行しているタスクに関するタスク情報であり、かつ、当該タスク情報に自装置に関する情報が含まれない場合には、当該タスク情報に対応するタスクの実行を中止すると判定する、ことができる。また、判定ステップにおいて、前記タスク情報が、自装置が第1担当装置として実行しているタスクに関するタスク情報であり、かつ、当該タスク情報に自装置に関する情報が第2担当装置として含まれている場合には、自装置においてタスクの実行は継続するが、第2担当装置として実行していると認識し直すことが好ましい。 In the determination step of the present invention, when the task information is task information regarding a task being executed by the own device, and the task information does not include information regarding the own device, the task corresponding to the task information It can be determined to discontinue the execution of Further, in the determination step, the task information is task information regarding a task that the own device is executing as a first device in charge, and information regarding the own device is included in the task information as a second device in charge In this case, although the execution of the task continues in the own device, it is preferable to recognize that it is being performed as the second device in charge again.
このような構成によれば、タスク情報の送信により、それまでタスクを実行していた装置でのタスク実行中止や、第1担当装置から第2担当装置への変更が可能となる。 According to such a configuration, by transmitting the task information, it is possible to stop the task execution on the device that has been executing the task and to change the first device in charge to the second device in charge.
上記のようにタスク情報に自装置に関する情報が含まれていない場合には、さらに、タスク情報に含まれるタスク終了予測時刻のいずれもが、自装置における当該タスクの終了予測時刻よりも早いという条件をさらに満たすかどうかを判定するとよい。当該条件を満たす場合には、前記タスクの実行を中止すると判定し、当該条件を満たさない場合には、前記タスクの実行を継続すると判定し、前記送信ステップにおいて前記タスク情報を更新して送信する、とよい。第1担当装置から第2担当装置に変更する場合も同様である。 As described above, when the task information does not include the information related to the own device, the condition that any predicted task end time included in the task information is earlier than the estimated end time of the task in the own device. It is desirable to determine whether or not When the condition is satisfied, it is determined that the execution of the task is stopped, and when the condition is not satisfied, it is determined that the execution of the task is continued, and the task information is updated and transmitted in the transmission step. , And good. The same applies to the case of changing from the first device in charge to the second device in charge.
タスク情報のみに依存すると、タスクの実行終了時刻が自装置よりも遅い装置がタスクを実行する事態も生じうる。タスクの実行終了予測時刻を再度比較することで、このような事態を防止し、タスクを実行する装置をより適切に決定できる。 Relying on task information alone may cause a device whose task execution end time is later than its own device to execute the task. By comparing the task execution end prediction times again, such a situation can be prevented, and the device that executes the task can be determined more appropriately.
また、本発明は、ユーザ装置からタスクの実行依頼を取得する実行依頼取得ステップをさらに含み、実行依頼されたタスクを第1担当装置として実行するとともに、第1担当装置が自装置であり、第2担当装置に関する情報が空のタスク情報を送信する、ことも好ましい。 The present invention further includes an execution request acquisition step of acquiring a task execution request from the user device, the task requested to be executed is executed as the first device in charge, and the first device in charge is the own device, It is also preferable that the information on the device in charge 2 send empty task information.
このようにユーザ装置からタスクの実行依頼を受け付けた装置が即座にタスクを実行することで、時間の浪費を削減できる。 As described above, the apparatus that has received the task execution request from the user apparatus can immediately execute the task, thereby reducing time waste.
なお、ユーザ装置からタスクの実行依頼を取得した装置が、第1担当装置として他のタスクを実行している場合には、ユーザ装置のタスクを実行せずに第1担当装置および第2担当装置に関する情報が空のタスク情報を送信するとよい。また、ユーザ装置からタスクの実行依頼を取得した装置が、第2担当装置として他のタスクを実行している場合には、ユーザ装置からのタスクを第1担当装置として実行してもよい。あるいは、ユーザ装置からタスクの実行依頼を取得した装置は、他のタスクを実行していないことを条件として、ユーザ装置からのタスクを第1担当装置として実行してもよい。 When the device that has acquired the task execution request from the user device is executing another task as the first device in charge, the first device in charge and the second device in charge are not executing the task of the user device. It is good to send information about empty task information. In addition, when the device which has acquired the task execution request from the user device executes another task as the second device in charge, the task from the user device may be executed as the first device in charge. Alternatively, the device which has acquired the task execution request from the user device may execute the task from the user device as the first device in charge, on the condition that no other task is being executed.
本発明の判定ステップにおいて、前記タスク情報に対応するタスクを、最初から実行する場合と、途中結果を取得して途中から実行する場合の両方について実行終了時刻を推定し、いずれか早いほうを自装置での実行終了予測時刻とする、ことも好ましい。これは特に、タスク情報に含まれる情報からタスクを最初から実行できるが、途中からタスクを実行するには他の装置との間で通信が必要な場合に有効である。タスクの途中結果を取得して途中から実行する方が最初から実行するよりも早い場合は、当該タスクの途中結果を取得して途中から当該タスクを実行する。 In the determination step of the present invention, the execution end time is estimated for both the case where the task corresponding to the task information is executed from the beginning and the case where an intermediate result is acquired and halfway from being executed. It is also preferable to set the predicted end time of execution on the device. This is particularly effective when the task can be executed from the beginning from the information contained in the task information but communication with other devices is necessary to execute the task halfway. If it is quicker to execute the task from the beginning after acquiring the task intermediate result, the task intermediate result is acquired and the task is executed from the middle.
また、本発明において、タスクを第1担当装置または第2担当装置として実行している情報処理装置の前記グループからの離脱を検知した場合に、当該タスクに対応するタスク情報を更新して送信するステップをさらに含むことも好ましい。第1担当装置が離脱した場合には、それまでの第2担当装置を第1担当装置にし、第2担当装置を空としたタスク情報を送信するとよい。第2担当装置が離脱した場合には、第1担当装置は変更せずに、第2担当装置を空としたタスク情報を送信するとよい。このようにすれば、タスクの実行を担当していた情報処理装置が離脱した場合に、残された装置の中から新たな装置がタスクを実行できる。 Further, in the present invention, when it is detected that the information processing apparatus executing the task as the first apparatus or the second apparatus leaves the group, the task information corresponding to the task is updated and transmitted. It is also preferred to include further steps. When the first device in charge is disconnected, it is preferable to set the second device in charge until that time as the first device in charge and transmit task information in which the second device in charge is empty. When the second device in charge is disconnected, it is preferable to transmit task information with the second device in charge empty, without changing the first device in charge. In this way, when the information processing apparatus that is in charge of task execution has left, a new apparatus can execute the task from among the remaining apparatuses.
本発明において、1つのタスクをN台(Nは2以上の整数)の情報処理装置で実行することができる。この場合、タスクを実行する装置は、第1担当装置から第N担当装置となる。第1担当装置としてタスクを実行している装置は、他のタスクを実行しない。一方、第k担当装置(kは2以上N以下の整数)としてタスクを実行している装置は、受信したタスク情報の第j担当装置(jは1以上k−1以下の整数)よりも早くにタスクの実行を
完了できる場合に、第j担当装置として当該タスクを実行するようにする。
In the present invention, one task can be executed by N (N is an integer of 2 or more) information processing apparatuses. In this case, the device that executes the task is from the first device in charge to the Nth device in charge. The device executing the task as the first device in charge does not execute other tasks. On the other hand, a device executing a task as the k-th device in charge (k is an integer of 2 or more and N or less) is faster than the j-th device in charge of received task information (j is an integer of 1 or more and k-1 or less) If the task execution can be completed, the task is executed as the j-th responsible apparatus.
本発明において、上記の情報処理装置は、移動可能であってもよいし、固定されていてもよい。上記の情報処理装置は、例えば、車両などの移動体に搭載された情報処理装置あるいは、車両などの移動体に持ち込まれた情報処理装置とすることができる。 In the present invention, the above-described information processing apparatus may be movable or fixed. The above-described information processing apparatus can be, for example, an information processing apparatus mounted on a mobile object such as a vehicle or an information processing apparatus brought in a mobile object such as a vehicle.
本発明において、タスクとは、情報処理装置(コンピュータ)において実行可能な任意の処理を意味する。したがって、タスクには、数式の演算だけでなく、外部装置からのデータの取得や、外部装置へのデータの出力・送信などの処理も含まれる。 In the present invention, a task means any process that can be executed by an information processing apparatus (computer). Therefore, the task includes not only arithmetic operation but also processing such as acquisition of data from an external device and output / transmission of data to an external device.
本発明において、タスクの実行依頼は、どのような態様によって実施されてもよい。例えば、実行依頼は、バイナリ、実行可能なスクリプト言語を含むソースコード、中間コード(バイトコードとも呼ばれる)、実行コマンドあるいは関数名、または一般的な作業指示書とすることができ、これにデータ、パラメータ、引数、処理結果などを加えて渡してもよい。 In the present invention, task submission may be performed in any manner. For example, the submission can be binary, source code including an executable scripting language, an intermediate code (also called byte code), an execution command or function name, or a general work order, including data, Parameters, arguments, processing results, etc. may be added and passed.
本明細書において、車載端末とは、車両に備え付けられた情報処理装置(コンピュータ)や、車両内部に持ち運ばれた情報処理装置を意味する。情報処理装置は、CPU(Central Processing Unit)やMPU(Micro Processing Unit)などの汎用の演算プロセッサとプログラムを格納した記憶装置の組み合わせ、FPGA(Field-Programmable Gate Array)などのプログラム可能な集積回路(プログラマブルロジックデバイス)、ASIC
(Application Specific Integrated Circuit)などの集積回路、の少なくともいずれか
を含む。
In the present specification, the on-vehicle terminal means an information processing apparatus (computer) provided in a vehicle or an information processing apparatus carried into the interior of the vehicle. The information processing apparatus is a combination of a general-purpose arithmetic processor such as a central processing unit (CPU) or a micro processing unit (MPU) and a storage device storing a program, and a programmable integrated circuit (field-programmable gate array) such as an FPGA (field-programmable gate array). Programmable logic device), ASIC
And / or an integrated circuit such as an application specific integrated circuit.
なお、本発明は、上記処理の少なくとも一部を実行するタスク実行方法として捉えることもできる。本発明は、上記処理の少なくとも一部を実行する手段を備えるタスク実行システムあるいは情報処理装置として捉えることができる。また、本発明は、この方法をコンピュータに実行させるためのコンピュータプログラム、あるいはこのコンピュータプログラムを非一時的に記憶したコンピュータ可読記憶媒体として捉えることもできる。上記手段および処理の各々は可能な限り互いに組み合わせて本発明を構成することができる。 The present invention can also be understood as a task execution method that executes at least a part of the above-described processing. The present invention can be grasped as a task execution system or an information processing apparatus including means for executing at least a part of the above-mentioned processing. Also, the present invention can be regarded as a computer program for causing a computer to execute this method, or a computer readable storage medium storing this computer program non-temporarily. Each of the above means and processes can be combined with one another as much as possible to constitute the present invention.
本発明によれば、複数の情報処理装置から構成されるグループにおいて、タスクを実行する情報処理装置を適切に決定できる。 According to the present invention, in a group constituted by a plurality of information processing apparatuses, it is possible to appropriately determine an information processing apparatus which executes a task.
以下では説明の簡略化のために、車載端末と車両とを区別せずに相互に交換可能な意味
として用いる。例えば、車両に搭載された車載端末が処理を行うことを、車両が処理を行うと表現することがある。あるいは、車両の位置や移動経路のことを、車載端末の位置や移動経路と表現することもある。また、車両と当該車両に搭載された車載端末に対して、同一の参照符号を用いることもある。
In the following, in order to simplify the description, the on-vehicle terminal and the vehicle are used interchangeably as they are not distinguished. For example, it may be expressed that a vehicle performs processing that a vehicle-mounted terminal mounted in the vehicle performs processing. Alternatively, the position of the vehicle or the movement route may be expressed as the position of the on-vehicle terminal or the movement route. Also, the same reference numeral may be used for a vehicle and an on-vehicle terminal mounted on the vehicle.
<概要>
図1は、本実施形態に係る計算システムのシステム概要を説明する図である。本実施形態に係る計算システムは、ユーザが利用するユーザ端末200および車両に搭載された複数の車載端末100から構成され、ユーザ端末200が車載端末100に対して計算タスクの実行を委託する。
<Overview>
FIG. 1 is a diagram for explaining the system outline of the calculation system according to the present embodiment. The calculation system according to the present embodiment includes a
本実施形態では、複数の車載端末100が車群10を形成し、ユーザ端末200からは車群10が1つの計算リソースとして把握できるようにする。例えば、ユーザ端末200が車群10内のある車両にタスクを実行依頼した後の車群10内での計算タスクの移送には、ユーザ端末200が関与する必要がないように構成する。ユーザ端末から委託された計算タスクは、車群10内の2つの車載端末100によって実行され、いずれかの車載端末100からユーザ端末に計算結果が送信される。
In the present embodiment, a plurality of in-
ユーザ端末200からタスクの実行依頼を受けた車群10は、車群10内の適切な車載端末100において当該タスクを実行する。本実施形態では、迅速にタスク実行車両を決定でき、かつ、車両の車群からの離脱にも対応できるように、タスク実行車両を決定する。以下では主に、車群10がユーザ端末200からタスクの実行依頼を受け付けてから、車群10内で当該タスクを実行する処理について説明する。
The
<構成>
図2Aは、本実施形態における車載端末100の装置構成を示す図である。車載端末100は、演算装置101、記憶装置102、GPS装置103、入出力装置104、無線通信装置105、複数のセンサ106を含む。
<Configuration>
FIG. 2A is a diagram showing a device configuration of the on-
演算装置101は、CPU(Central Processing Unit)やMPU(Micro Processing Unit)などのプロセッサを含み、記憶装置102に格納されたプログラムを実行することで所定の機能を提供する。記憶装置102は、RAM(Random Access Memory)などの主記憶装置や半導体メモリ・磁気ディスク・光ディスク・光磁気ディスクなどの補助記憶装置を含む。GPS装置103は、不図示のGPS受信機からGPS衛星信号を受信し、車両100の位置情報を取得する。入出力装置104は、キーボードや種々のポインティングデバイス(マウス、タッチパッド、タッチパネル、ペンタブレット等)やマイクなどの入力装置、ディスプレイ装置(液晶ディスプレイ・CRTディスプレイ・プロジェクタ等)や音声出力装置などの出力装置を含む。無線通信装置105、他の車両100およびユーザ端末200との間で通信可能な無線通信装置である。無線通信の通信方式は、任意であってよい。また、車両間での通信とユーザ端末との通信は、同一方式であってもよいし、それぞれ異なる方式であってもよい。センサ106は、車両100の内部および外部に関する情報を取得するためのセンサであり、例えば、車外カメラ(可視光カメラや赤外カメラ、ステレオカメラも含む)、測距レーダー(ミリ波レーダー、超音波レーダー)、車速センサ、加速度センサなどが含まれる。
The
図2Bは、車載端末100の機能構成を示す機能ブロック図である。車両100の演算装置101が記憶装置102に格納されているプログラムを実行することで、以下の機能が実現される。すなわち、車載端末100は、タスク実行依頼受信部11、タスク情報受信部12、判定部13、タスク実行部14、実行結果送信部15、更新部16、タスク情報記憶部17、タスク情報送信部18等の機能を提供する。これら各機能の詳細について
、後ほど処理内容を説明する際にあわせて説明する。
FIG. 2B is a functional block diagram showing a functional configuration of the on-
<処理内容>
[全体処理]
図3は、本実施形態に係る計算システムが実行する全体処理の概要を示すフローチャートである。このフローチャートでは、ユーザ端末200と車両システムが実行する処理を記載している。車両システムが実行すると示されている処理は、車両システム内の少なくとも一部の車両100が独自に行う処理、車両システム内の複数の車両100が協調して行う処理が含まれる。
<Processing content>
[Overall processing]
FIG. 3 is a flowchart showing an outline of the overall processing performed by the computing system according to the present embodiment. In this flowchart, processing executed by the
まず、ユーザ端末200が車両システムに対してタスク実行依頼を送信し、車両システムがこのタスク実行依頼を受信する(S301,S302)。ステップS302では、ユーザ端末200と通信可能な車両100のタスク実行依頼受信部11が、ユーザ端末200からのタスク実行依頼を受信する。ユーザ端末200が車群10に対してタスク実行を依頼するか否か、あるいは車群10がユーザ端末200からのタスク実行依頼を受け付けるか否かは、適宜の方法により決定すればよい。例えば、車群10がユーザ端末200と通信可能な間に、車群10がタスクを実行できる場合にユーザ端末200から車群10へのタスクの実行依頼が行われるように構成することができる。
First, the
ステップS303において、車群10内で実行依頼されたタスクが実行される。具体的な手順は、図4以降を参照して以下で詳しく説明する。
In step S303, the task requested to be executed in the
ステップS304では、車群10からユーザ端末200に対してタスクの実行結果が送信される。具体的には、ユーザ端末200と直接通信可能な車両100が実行結果送信部15によって決定され、当該車両100を介して実行結果がユーザ端末200に送信される。ステップS305では、ユーザ端末200が車両システムからこの実行結果を受信する。なお、実行結果は必ずしもタスクが最後まで実行された結果である必要はなく、途中結果であっても構わない。
In step S304, the execution result of the task is transmitted from the
[タスク実行依頼受信時処理]
ステップS303の車群10内でのタスク実行処理のうち、ユーザ端末200からタスク実行依頼を受け付けた車両100による処理を、図4Aを参照して説明する。ここでは、ユーザ端末200からタスクを受け付けた車両100、すなわち図4Aの処理を実行する車両のことを、車両Pと称する。
[Process when receiving task submission]
Among the task execution processing in the
ステップS401において、タスク実行依頼受信部11がユーザ端末200からタスク実行依頼を受け付ける。タスク実行依頼には、ユーザ端末200のID(識別子)や、タスクの内容が含まれる。タスクの内容は、例えば、ソースコード、中間コード、バイナリによって表すことができる。
In step S401, the task execution request receiving unit 11 receives a task execution request from the
ステップS402において、判定部13は、現在車両Pが他のタスクを主担当装置として実行しているか否かを判定する。
In step S402, the
車両Pが他のタスクを実行していない場合(S402−NO)には、ステップS403において、タスク実行部14が当該タスクを主担当装置として実行を開始する。なお、主担当装置と補助担当装置は後述するように役割が異なるだけであり、タスクの実行方法自体は同様である。そして、ステップS404において、更新部16がタスク情報を生成して、タスク情報記憶部17に記憶する。
If the vehicle P is not executing another task (S402-NO), in step S403, the
図4Bを参照して、タスク情報について説明する。タスク情報410には、タスクID
411、コンテンツ情報412、主担当車両情報414、補助担当車両情報417が含まれる。タスクID411は、タスクを一意に特定するための識別子である。コンテンツ情報412には、タスクを実行するための情報が含まれる。本実施形態では、タスクのソースコードや中間コードなどがコンテンツ情報412として含まれる。主担当車両情報414は、車両情報(Vm)415および終了時刻情報(Tm)416を含む。車両情報415は、主担当車両を特定するための識別子であり、終了時刻情報416は主担当車両がこのタスクの実行を終了すると予想される時刻である。補助担当車両情報417は、同様に、車両情報(Vs)418および終了時刻情報(Ts)419を含む。なお、終了時刻情報は、絶対時刻で表されてもよいし、基準時刻からの相対時刻で表されてもよい。
The task information will be described with reference to FIG. 4B. The
411,
ステップS404のタスク情報生成処理においては、車両Pがタスクを主担当車両として実行するので、主担当車両情報414の車両情報(Vm)415に車両Pの識別子が格納される。また、終了時刻情報(Tm)416に、タスクの終了予測時刻が格納される。タスクの終了時刻は、例えば、静的分析により最悪実行時間(WCET:Worst Case Execution Time)を推定することにより得られる。補助担当車両情報417は空欄のままと
する。
In the task information generation process of step S404, since the vehicle P executes the task as the main vehicle-in-charge, the identifier of the vehicle P is stored in the vehicle information (Vm) 415 of the main vehicle-in-
一方、車両Pが他のタスクを実行している場合(S402−YES)には、タスクの実行はせずに、ステップS405において更新部16がタスク情報を生成しタスク情報記憶部17に記憶する。この場合、タスク情報の主担当車両情報414および補助担当車両情報417は空欄のままとする。
On the other hand, when the vehicle P is executing another task (S402-YES), the
ステップS406では、タスク情報送信部18が、ステップS404またはS405において生成したタスク情報を、周囲の車両に対して送信する。
In step S406, the task
なお、車両Pが他のいずれのタスクも実行していない場合にユーザ端末から実行依頼を受けたタスクを実行するものとして説明したが、車両Pが他のタスクを主担当車両として実行していない場合に、実行依頼を受けたタスクを実行するようにしてもよい。すなわち、車両Pが他のタスクを補助実行車両として実行している場合は、当該タスクの実行を中断して、ユーザ端末から依頼されたタスクを主担当装置として実行してもよい。この場合、車両Pは、ユーザ端末から依頼されたタスクに関するタスク情報だけでなく、実行を中断したタスクに関してもタスク情報を送信する。 In addition, although it demonstrated as what performs the task which received the execution request from the user terminal when the vehicle P is not performing any other task, the vehicle P is not performing the other task as a main handling vehicle In this case, the task requested to be executed may be executed. That is, when the vehicle P is executing another task as an auxiliary execution vehicle, the execution of the task may be interrupted, and the task requested from the user terminal may be executed as the main device in charge. In this case, the vehicle P transmits the task information not only to the task information on the task requested from the user terminal but also to the task whose execution has been interrupted.
[タスク情報受信時処理]
ステップS303の車群10内でのタスク実行処理のうち、他の車両からタスク情報を受信した車両100による処理を、図5、図6を参照して説明する。ここでは、他の車両からタスク情報を受信した車両100、すなわち図5、図6の処理を実行する車両のことを、車両Pと称する。
[Process when receiving task information]
Among the task execution processing in the
ステップS501において、タスク情報受信部12がタスク情報を受信する。ここでは受信したタスク情報がタスクAに関するものとして説明する。ステップS502において、判定部13は、車両PがタスクAを実行中であるか否かを判定する。車両PがタスクAを実行していない場合(S502−NO)は、ステップS503に進む。
In step S501, the task
ステップS503において、判定部13は、現在車両PがタスクA以外のタスクを主担当車両として実行しているか否かを判定する。車両Pが他のタスクを主担当車両として実行している場合(S503−YES)には、何もせずにステップS512に進む。一方、車両Pが他のタスクを主担当車両として実行していない場合(S503−NO)にはステップS504に進む。
In step S503, the
ステップS504では、判定部13が、車両PでタスクAを実行した場合のタスク実行終了時刻Txを推定する。タスクの実行方法として2通りの方法が考えられる。1つ目の方法は、タスク情報に含まれる情報のみに基づいてタスクAを実行する方法である。2つ目の方法は、タスクAを現在実行している車両から計算の途中結果を取得して、途中からタスクAを実行する手法である。2つ目の方法は、計算時間自体は短くなるが、通信に時間を要する。本実施形態では、判定部13は、これら2つの方法についての実行終了時刻を推定し、より早く終了する方法を実行終了時刻Txとする。
In step S504, the
ステップS505において、判定部13は、車両Pのタスク終了時刻Txと、タスク情報に含まれる主担当車両のタスク終了時刻Tmとを比較する。車両Pの方がタスクAを早く終了できる、すなわち、Tx<Tmの場合(S505−YES)には、ステップS506に進み、タスク実行部14がタスクAを主担当車両として実行開始する。タスクの実行方法は、上記2つのうち、より早く終了する方法を採用する。ステップS507において、更新部16は、ステップS501で受信したタスク情報の内容を更新する。具体的には、主担当車両の車両情報Vm(415)と終了時刻情報Tm(416)を、車両Pの識別子および終了時刻に変更し、補助担当車両の車両情報Vs(418)と終了時刻情報Ts(419)をそれまでの主担当車両の識別子および終了時刻に変更する。
In step S505, the
なお、ステップS506において、それまで補助担当車両として他のタスクBを実行していた場合には、車両PはタスクBの実行を中断してタスクAの実行を開始する。この際、周囲の車両に対して車両PにおけるタスクBの実行中断を知らせるために、車両PはタスクBのタスク情報を更新して周囲の車両に送信する。具体的には、車両Pは、タスクBのタスク情報から補助担当車両に関する情報を削除し、補助担当車両情報が空のタスク情報を送信する。 In addition, in step S506, when the other task B has been executed as the vehicle in charge of assistance until then, the vehicle P interrupts the execution of the task B and starts the execution of the task A. At this time, the vehicle P updates the task information of the task B and transmits it to the surrounding vehicles in order to notify the surrounding vehicles of the suspension of the execution of the task B in the vehicle P. Specifically, the vehicle P deletes the information on the auxiliary responsible vehicle from the task information of the task B, and transmits task information in which the auxiliary responsible vehicle information is empty.
ステップS505の判定において、車両PのタスクAの終了時刻が現在のタスクAの主担当車両の終了時刻よりも遅い場合(S505−NO)には、ステップS508に進み、判定部13が、車両Pが補助担当車両としてタスクA以外のタスクを実行しているか否かを判定する。車両Pが他のタスクを補助担当車両として実行している場合(S508−YES)には、何もせずにステップS512に進む。一方、車両Pが他のタスクを補助担当車両としても実行していない場合(S508−NO)にはステップS509に進む。
If it is determined in step S505 that the finish time of task A of vehicle P is later than the finish time of the main duty vehicle of task A (S505-NO), the process proceeds to step S508, and
ステップS509において、判定部13は、車両Pのタスク終了時刻Txと、タスク情報に含まれる補助担当車両のタスク終了時刻Tsとを比較する。車両Pの方がタスクAを早く終了できる、すなわち、Tx<Tsの場合(S509−YES)には、ステップS106に進み、タスク実行部14がタスクAを補助担当車両として実行開始する。ステップS511において、更新部16は、ステップS501で受信したタスク情報の内容を更新する。具体的には、主担当車両に関する情報はそのままとし、補助担当車両の車両情報Vs(418)と終了時刻情報Ts(419)を、自車両の識別子および終了時刻に変更に変更する。
In step S509, the
なお、ステップS505、S509のタスク実行終了時刻の比較において、タスク情報に主担当車両あるいは補助担当車両の終了時刻Tm,Tsが格納されていない場合には、車両Pのタスク終了時刻Txの方が早いと判定すればよい。表現を変えれば、主担当車両あるいは補助担当車両が存在しない場合の終了時刻Tm,Tsは無限大として扱えばよい。 In the comparison of the task execution end times in steps S505 and S509, when the end times Tm and Ts of the main responsible vehicle or the auxiliary responsible vehicle are not stored in the task information, the task end time Tx of the vehicle P is the one. It may be determined as early. In other words, the end times Tm and Ts in the absence of the main responsible vehicle or the auxiliary responsible vehicle may be treated as infinity.
ステップS512において、タスク情報送信部18は、タスク情報を送信する。具体的には、タスクAを主担当車両として実行する場合にはステップS507において更新したタスク情報が送信され、タスクAを補助担当車両として実行する場合にはステップS51
1において更新したタスク情報が送信され、タスクAを実行しない場合にはステップS501において受信したタスク情報が送信される。
In step S512, the task
The task information updated in 1 is transmitted, and when the task A is not executed, the task information received in step S501 is transmitted.
次に、受信したタスク情報に対応するタスクAを車両Pが実行している場合(S502−YES)の処理について、図6を参照して説明する。 Next, processing in the case where the vehicle P is executing the task A corresponding to the received task information (S502-YES) will be described with reference to FIG.
ステップS601において、判定部13は、タスク情報の主担当車両情報または補助担当車両情報に車両Pに関する情報(識別子)が含まれるか判定する。タスク情報に車両Pに関する情報が含まれる場合(S601−YES)には、ステップS602に進みタスクAの実行を継続する。この際、車両PがタスクAの主担当車両であるか補助担当車両であるかを、タスク情報において車両Pが主担当車両と補助担当車両のいずれとして設定されているかによって判断する。
In step S601, the
タスク情報に車両Pに関する情報が含まれない場合(S601−NO)には、他の車両が車両Pに変わってタスクAの実行担当車両になったことが分かる。この場合、車両Pは即座にタスクAの実行を終了してもよいが、本実施形態では、ステップS603において、車両PのタスクAの終了時刻Txと、タスク情報に含まれる補助担当車両の終了時刻Tsとを比較する。タスク情報に含まれる補助担当車両の終了時刻Tsの方が早い場合(S603−YES)、タスク情報に指定されている車両がタスクAを実行するのが適切といえるので、車両PはタスクAの実行を終了する(S604)。一方、車両Pのタスク終了時刻Txの方が早い場合(S603−NO)は、車両PがタスクAの実行を継続することが適切といえる。そこで、この場合はタスクAの実行を終了せずに、タスク情報を更新して周囲の車両に向けて送信する(S605)。なお、車両Pのタスク終了時刻が、タスク情報における主担当車両のタスク終了時刻Tmよりも早ければ車両PはタスクAの主担当車両となり、主担当車両のタスク終了時刻Tmよりも遅ければ車両PはタスクAの補助担当車両となる。 When the task information does not include the information on the vehicle P (S601-NO), it is known that the other vehicle is changed to the vehicle P and the vehicle in charge of the task A is in charge. In this case, the vehicle P may immediately finish the execution of the task A, but in the present embodiment, in step S603, the finish time Tx of the task A of the vehicle P and the termination of the auxiliary responsible vehicle included in the task information The time Ts is compared. When the end time Ts of the vehicle in charge of assistance included in the task information is earlier (S603-YES), it can be said that it is appropriate for the vehicle specified in the task information to execute the task A. The execution is ended (S604). On the other hand, when the task end time Tx of the vehicle P is earlier (S603-NO), it can be said that the vehicle P continues executing the task A. Therefore, in this case, the task information is updated and transmitted to surrounding vehicles without ending the execution of the task A (S605). If the task end time of the vehicle P is earlier than the task end time Tm of the main responsible vehicle in the task information, the vehicle P becomes the main responsible vehicle for the task A, and if it is later than the task responsible time Tm of the main responsible vehicle Is the assistant vehicle in charge of task A.
<動作例>
図7を参照して、本実施形態におけるタスク実行処理の動作例を説明する。図7Aは、6台の車両N1〜N6から構成される車群が、ユーザ端末UTからタスクAの実行依頼を受け付けたときの状況を説明する図である。ここでは、車両N1がユーザ端末UTからタスクAの実行依頼を受け付けている。また、この時点で、車両N2はタスクBを主担当車両として実行しており、車両N4はタスクCを補助担当車両として実行しているものとする。その他の車両はタスクを実行していない。
<Operation example>
An operation example of task execution processing according to the present embodiment will be described with reference to FIG. FIG. 7A is a diagram for explaining a situation when a vehicle group including six vehicles N1 to N6 receives an execution request for task A from the user terminal UT. Here, the vehicle N1 receives an execution request for task A from the user terminal UT. Further, at this time, it is assumed that the vehicle N2 executes the task B as a main vehicle in charge, and the vehicle N4 executes the task C as an auxiliary vehicle. Other vehicles are not performing tasks.
図7Bに示すように、まず車両N1はタスクAを主担当車両として実行し(S402−NO,S403)、主担当車両が車両N1であることを示すタスク情報701を送信する。このタスク情報701を受信した車両N2は、他のタスクを主担当車両として実行中であるため、タスクAを実行せず、タスク情報701をそのまま送信する(S503−YES,S512)。車両N3でのタスクAの終了時刻TN3は、現在の主担当車両(車両N1)の終了時刻Tm(=TN1)よりも遅い。しかし、タスクAの補助担当車両が存在しないので、車両N3はタスクAを補助担当車両として実行する(S505−NO,S509−YES,S510)。
As shown in FIG. 7B, first, the vehicle N1 executes task A as a main handling vehicle (S402-NO, S403), and transmits
図7Cに示すように、車両N3は、主担当車両が車両N1であり補助担当車両が車両N3である旨のタスクAのタスク情報702を周囲の車両に送信する。なお、図7Cではタスク情報702が車群の後方のみに伝播するように描いているが、車群の前方にも伝播する。
As shown in FIG. 7C, the vehicle N3 transmits
タスク情報702を受信した車両N4は、タスクCを補助担当車両として実行中である
。車両N4のタスクAの終了時刻TN4は、タスクAの主担当車両(車両N1)の終了時刻Tmよりも遅い。したがって、車両N4はタスクCの実行を継続する(S505−NO,S508−YES)。なお、仮に車両N4のタスクAの終了時刻TN4が補助担当車両N3の終了時刻Ts(=TN3)よりも早くても、車両N4はタスクCの補助担当車両としての実行を継続する。
The vehicle N4 having received the
車両N5はタスクを実行中ではないが、車両N5のタスクAの終了時刻TN5は、タスクAの主担当車両(N1)の終了時刻Tm(=TN1)および補助担当車両(N3)の終了時刻Ts(=TN3)のいずれよりも遅いため、タスクAを実行しない(S505−NO,S509−NO)。 Although the vehicle N5 is not executing a task, the end time T N5 of the task A of the vehicle N5 is the end time Tm (= T N1 ) of the main responsible vehicle (N1) of the task A and the auxiliary responsible vehicle (N3) Since it is later than any of the time Ts (= T N3 ), the task A is not executed (S505-NO, S509-NO).
車両N6はタスクを実行中でなく、車両N6のタスクAの終了時刻TN6が、タスクAの主担当車両(N1)の終了時刻Tm(=TN1)よりも早い。そこで、車両N6は、タスクAを主担当車両として実行する(S505−YES,S506)。 The vehicle N6 is not executing a task, and the finish time TN6 of the task A of the vehicle N6 is earlier than the finish time Tm (= T N1 ) of the main responsible vehicle (N1) of the task A. Therefore, the vehicle N6 executes the task A as a main vehicle in charge (S505-YES, S506).
図7Dに示すように、車両N6は、タスクAのタスク情報を更新して、主担当車両が車両N6であり、補助担当車両が車両N1である旨のタスク情報703を周囲の車両に送信する。
As shown in FIG. 7D, the vehicle N6 updates the task information of task A, and transmits
タスク情報703を車両N3が受信すると、自身で実行中のタスクに関するタスク情報に、自車両の情報が含まれていないことから、車両N3は他の車両が補助担当車両になったことを検知できる。したがって、車両N3はタスクAの実行を中断する(S601−NO,S604)。なお、補助担当車両N1のタスク終了時刻Ts(=TN1)は、車両N3のタスク終了時刻TN3よりも早いものとする。
When the vehicle N3 receives the
タスク情報703を車両N1が受信すると、車両N6がタスクAの主担当車両になり、車両N1がタスクAの補助担当車両になったことを検知できる。車両N1はタスクAの実行を継続するが、補助担当車両として実行していると認識する(S601−YES、S602)。
When the vehicle N1 receives the
<本実施形態の有利な効果>
本実施形態によれば、タスク情報に基づいて、車群内の各車両が自律的にタスクを実行すべきかどうかを判断できる。また、最新のリソース状況を考慮してタスクの終了時刻の比較が可能であり、より早く実行を完了できる車両がタスクを実行できる。また、車群内で複数の車両が1つのタスクを実行しているため、タスク実行車両が車群から離脱する場合でも、タスクの実行結果が失われる事態を避けることができる。
<Benefit of this embodiment>
According to the present embodiment, it is possible to determine whether each vehicle in the vehicle group should execute the task autonomously based on the task information. In addition, the end time of the task can be compared in consideration of the latest resource status, and vehicles that can complete the execution can execute the task more quickly. In addition, since a plurality of vehicles execute one task in the vehicle group, it is possible to avoid a situation where the task execution result is lost even when the task execution vehicle leaves the vehicle group.
<その他>
上記の説明は、本発明を例示的に説明したものであり、本発明を限定するものではない。本発明は、その技術的思想の範囲内で、種々の変形が可能である。
<Others>
The above description exemplifies the present invention, and does not limit the present invention. The present invention can be variously modified within the scope of the technical idea.
上記の説明では、新しいタスク情報が生成・送信されるタイミングは、車両が新たにタスクの実行を開始する場合のみである。しかしながら、タスク情報を受信するタイミングが、タスクを実行するか否かの判定タイミングであることを考慮すると、タスク情報はより頻繁に車群内で送信されることが好ましい。したがって、タスクの主担当車両(および補助担当車両)が、そのタスクのタスク情報を定期的に送信することが好ましい。 In the above description, the new task information is generated and transmitted only when the vehicle newly starts the execution of the task. However, it is preferable that the task information be transmitted more frequently in the vehicle group, considering that the timing of receiving the task information is the determination timing of whether to execute the task. Therefore, it is preferable that the main responsible vehicle (and the auxiliary responsible vehicle) of the task regularly transmit task information of the task.
車群からタスク実行車両が離脱する事態が想定される。このような事態に対処するために、タスク実行車両の離脱を検知した車両は、離脱した車両が実行していたタスクに関するタスク情報を更新して周囲に送信することが好ましい。具体的には、主担当車両が離脱
した場合には、それまでの補助担当車両を主担当車両とし、補助担当車両を空(もしくは自車両)としたタスク情報を生成して送信する。また、補助担当車両が離脱した場合には、主担当車両に関する情報は変更せずに、補助担当車両を空(もしくは自車両)としてタスク情報を生成して送信する。あるいは、タスク実行車両の離脱を検知した車両は、自車両が主担当車両または補助担当車両として当該タスクを実行するかを判定してから、その結果に基づくタスク情報を送信するようにしてもよい。
It is assumed that the task execution vehicle is detached from the vehicle group. In order to cope with such a situation, it is preferable that the vehicle that has detected the departure of the task execution vehicle updates the task information related to the task being executed by the detached vehicle and transmits it to the surroundings. Specifically, when the main responsible vehicle leaves the vehicle, task information is generated and transmitted with the auxiliary responsible vehicle up to that point as the main responsible vehicle and the auxiliary responsible vehicle empty (or own vehicle). In addition, when the auxiliary responsible vehicle leaves, the task information is generated and transmitted with the auxiliary responsible vehicle empty (or the own vehicle) without changing the information on the main responsible vehicle. Alternatively, the vehicle that has detected the departure of the task execution vehicle may transmit task information based on the result after determining whether the host vehicle executes the task as the main responsible vehicle or the auxiliary responsible vehicle. .
タスク実行車両が離脱する際に、離脱するタスク実行車両がタスク情報を送信してもよい。すなわち、タスク実行車両が車群から離脱する場合に、上述のようなタスク情報(この場合、補助担当車両は空とする)を送信してもよい。車群からの離脱予測は、車群内の他の車両の予測経路と自車両の予測経路に基づいて判定できる。タスク実行車両が車群から離脱する際に、タスク実行の途中結果もタスク情報に含めて送信すれば、当該タスク情報を受信した車両はタスクを途中から実行できるため好ましい。 When the task execution vehicle leaves, the task execution vehicle leaving may transmit task information. That is, when the task execution vehicle leaves the vehicle group, the task information as described above (in this case, the auxiliary responsible vehicle is empty) may be transmitted. The departure prediction from the vehicle group can be determined based on the predicted route of another vehicle in the vehicle group and the predicted route of the host vehicle. If the task execution vehicle leaves the vehicle group and the result of the task execution is also included in the task information and transmitted, it is preferable because the vehicle that has received the task information can execute the task from the middle.
上記の実施形態の説明では、タスク情報にタスクのソースコード等を含めていたが、タスク情報生成時におけるタスクの途中結果をもタスク情報に含めてもよい。このようにすれば、タスク情報の容量が大きくなるが、他の車両がタスクの途中から即座に実行開始できるという利点がある。また逆に、タスク情報にタスクのソースコード等を含めなくてもよい。この場合、タスクを実行する車両はタスクのソースコード等を他の車両から取得する必要が生じるが、タスク情報の容量を小さくすることができる。 Although the task information includes the task source code and the like in the description of the above embodiment, an intermediate result of the task at the time of task information generation may be included in the task information. In this way, the capacity of the task information increases, but there is an advantage that other vehicles can immediately start execution from the middle of the task. Conversely, the task information may not include the source code of the task. In this case, the vehicle that executes the task needs to obtain the task source code and the like from another vehicle, but the volume of task information can be reduced.
上記の実施形態では、タスクを実行する情報処理装置が車載端末である場合を例に説明しているが、タスクを実行する情報処理装置は任意の情報処理装置であって構わない。上記の実施形態の手法は、車載端末に限られず任意の情報処理装置から構成されるシステムに適用可能であり、情報処理装置が移動してもよいし移動しなくてもよい。 In the above embodiment, although the case where the information processing apparatus executing a task is an on-vehicle terminal is described as an example, the information processing apparatus executing a task may be any information processing apparatus. The method of the above embodiment is applicable not only to the in-vehicle terminal but also to a system configured by an arbitrary information processing apparatus, and the information processing apparatus may or may not move.
上記の実施形態では、1つのタスクを主担当装置と補助担当装置の2台の装置が実行するものとして説明したが、1つのタスクを3台以上の装置が実行するようにしてもよい。タスクを実行する情報処理装置の台数をN台(Nは2以上の整数)とし、タスクを実行する装置を第1担当装置から第N担当装置とする。第1担当装置としてタスクを実行している装置は、タスク情報を受信しても他のタスクを実行しない。一方、第k担当装置(kは2以上N以下の整数)としてタスクを実行している装置は、受信したタスク情報の第j担当装置(jは1以上k−1以下の整数)よりも早くにタスクの実行を完了できる場合に、第j担当装置として当該タスクを実行するようにすればよい。 In the above embodiment, one task is described as being performed by two devices, the main device and the auxiliary device, but one task may be performed by three or more devices. The number of information processing apparatuses executing a task is N (N is an integer of 2 or more), and the apparatuses executing the task are the first apparatus in charge to the Nth apparatus in charge. The device executing the task as the first device in charge does not execute other tasks even if it receives the task information. On the other hand, a device executing a task as the k-th device in charge (k is an integer of 2 or more and N or less) is faster than the j-th device in charge of received task information (j is an integer of 1 or more and k-1 or less) If execution of the task can be completed, the task may be executed as the j-th device in charge.
100:車両(車載車載端末)
11:タスク実行依頼受信部 12:タスク情報受信部 13:判定部
14:タスク実行部 15:実行結果送信部 16:更新部
17:タスク情報記憶部 18:タスク情報送信部
100: Vehicle (vehicle-mounted in-vehicle terminal)
11: task execution request reception unit 12: task information reception unit 13: determination unit 14: task execution unit 15: execution result transmission unit 16: update unit 17: task information storage unit 18: task information transmission unit
Claims (10)
タスクの第1担当装置およびその実行終了予測時刻と、前記タスクの第2担当装置およびその実行終了予測時刻とを含むタスク情報を受信する受信ステップと、
受信したタスク情報に基づいて、当該タスク情報に対応するタスクを実行するか否かを判定する判定ステップと、
前記タスクに関するタスク情報を送信する送信ステップと、
を含み、
前記判定ステップでは、(A)第1担当装置としていずれのタスクも実行しておらず、かつ、前記タスク情報に含まれる前記第1担当装置の実行終了予測時刻よりも早くに前記タスクを終了できる場合に、第1担当装置として前記タスクを実行すると判定し、(B)第1担当装置または第2担当装置としていずれのタスクも実行しておらず、かつ、前記タスク情報に含まれる前記第2担当装置の実行終了予測時刻よりも早くに前記タスクを終了できる場合に、第2担当装置として前記タスクを実行すると判定し、
前記送信ステップでは、(A)第1担当装置として前記タスクを実行する場合は、タスク情報の第1担当装置を自装置に更新し、第2担当装置をそれまでの第1担当装置に更新して、更新されたタスク情報を送信し、(B)第2担当装置として前記タスクを実行する場合は、タスク情報の第2担当装置を自装置に更新して、更新されたタスク情報を送信する、
タスク実行方法。 A task execution method in a group including a plurality of information processing apparatuses, comprising:
A receiving step of receiving task information including a first device in charge of a task and its predicted execution end time, and a second device in charge of the task and its predicted completion time of the task;
A determination step of determining whether to execute a task corresponding to the task information based on the received task information;
Sending the task information regarding the task;
Including
In the determination step, (A) any task is not executed as the first device in charge, and the task can be terminated earlier than the predicted execution end time of the first device in charge included in the task information In this case, it is determined that the task is executed as the first device in charge, and (B) no task is executed as the first device in charge or the second device in charge, and the second information included in the task information When it is possible to end the task earlier than the predicted execution end time of the device in charge, it is determined that the task is to be executed as the second device in charge,
In the transmission step, when the task is executed as (A) the first device in charge, the first device in charge of task information is updated to the own device, and the second device in charge is updated to the first devices in charge until that time. (B) When executing the task as the second device in charge, the second device in charge of task information is updated to the own device, and the updated task information is transmitted. ,
Task execution method.
請求項1に記載のタスク実行方法。 When it is determined in the determination step that the task corresponding to the task information is not to be executed, the transmission step transmits, without updating, the information on the first responsible device and the second responsible device of the received task information.
A task execution method according to claim 1.
請求項1または2に記載のタスク実行方法。 In the determination step, when the task information is task information regarding a task being executed by the own device, and when the task information does not include information regarding the own device, execution of the task corresponding to the task information is performed Determine to cancel
A task execution method according to claim 1 or 2.
請求項3に記載のタスク実行方法。 In the determination step, when the task information is task information regarding a task being executed by the own device, and when the task information does not include information regarding the own device, the task end prediction included in the task information If any of the times further satisfies the condition that it is earlier than the predicted end time of the task in the own device, it is determined that the execution of the task is stopped, and if the condition is not satisfied, the execution of the task is continued Then, the task information is updated and transmitted in the transmission step.
A task execution method according to claim 3.
実行依頼されたタスクを第1担当装置として実行するとともに、第1担当装置が自装置であり、第2担当装置に関する情報が空のタスク情報を送信する、
請求項1から4のいずれか1項に記載のタスク実行方法。 Further including an execution request acquisition step of acquiring a task execution request from the user device;
The task requested to be executed is executed as a first device in charge, and the first device in charge is an own device, and information on the second device in charge sends empty task information.
The task execution method according to any one of claims 1 to 4.
請求項1から5のいずれか1項に記載のタスク実行方法。 In the determination step, the execution end time is estimated for both the case where the task corresponding to the task information is executed from the beginning and the case where the result is obtained halfway and executed from the middle, and whichever is earlier in the own device Let the predicted end time of the run
The task execution method according to any one of claims 1 to 5.
請求項6に記載のタスク実行方法。 If it is determined in the determination step that the task corresponding to the task information is to be executed, and if it is faster to execute the process from the beginning by acquiring the process result of the task and performing the process from the beginning, the process result of the task To execute the task from the middle,
A task execution method according to claim 6.
請求項1から7のいずれか1項に記載のタスク実行方法。 Updating and transmitting task information corresponding to the task when it is detected that the information processing apparatus executing the task as a first apparatus or a second apparatus leaves the group;
The task execution method according to any one of claims 1 to 7.
受信したタスク情報に基づいて、当該タスク情報に対応するタスクを実行するか否かを判定する判定手段と、
前記タスクに関するタスク情報を送信する送信手段と、
を備え、
前記判定手段は、(A)第1担当装置としていずれのタスクも実行しておらず、かつ、前記タスク情報に含まれる前記第1担当装置の実行終了予測時刻よりも早くに前記タスクを終了できる場合に、第1担当装置として前記タスクを実行すると判定し、(B)第1担当装置または第2担当装置としていずれのタスクも実行しておらず、かつ、前記タスク情報に含まれる前記第2担当装置の実行終了予測時刻よりも早くに前記タスクを終了できる場合に、第2担当装置として前記タスクを実行すると判定し、
前記送信手段は、(A)第1担当装置として前記タスクを実行する場合は、タスク情報の第1担当装置を自装置に更新し、第2担当装置をそれまでの第1担当装置に更新して、更新されたタスク情報を送信し、(B)第2担当装置として前記タスクを実行する場合は、タスク情報の第2担当装置を自装置に更新して、更新されたタスク情報を送信する、
情報処理装置。 A receiving unit for receiving task information including a first device in charge of a task and its predicted execution end time, and a second device in charge of the task and its predicted completion time of the task;
A determination unit that determines whether or not to execute a task corresponding to the task information based on the received task information;
Transmitting means for transmitting task information related to the task;
Equipped with
The determination means (A) does not execute any task as the first device in charge, and can finish the task earlier than the predicted execution end time of the first device in charge included in the task information In this case, it is determined that the task is executed as the first device in charge, and (B) no task is executed as the first device in charge or the second device in charge, and the second information included in the task information When it is possible to end the task earlier than the predicted execution end time of the device in charge, it is determined that the task is to be executed as the second device in charge,
(A) When executing the task as the first device in charge, the transmission means updates the first device in charge of task information to the own device and updates the second device in charge to the first device in charge so far. (B) When executing the task as the second device in charge, the second device in charge of task information is updated to the own device, and the updated task information is transmitted. ,
Information processing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016007301A JP6504062B2 (en) | 2016-01-18 | 2016-01-18 | Task execution method and task execution system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016007301A JP6504062B2 (en) | 2016-01-18 | 2016-01-18 | Task execution method and task execution system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017129921A JP2017129921A (en) | 2017-07-27 |
| JP6504062B2 true JP6504062B2 (en) | 2019-04-24 |
Family
ID=59396198
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016007301A Expired - Fee Related JP6504062B2 (en) | 2016-01-18 | 2016-01-18 | Task execution method and task execution system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6504062B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7193429B2 (en) * | 2019-08-15 | 2022-12-20 | Kddi株式会社 | DEVICE SYSTEM, DEVICE, COMPUTER PROGRAM AND DEVICE SYSTEM CONTROL METHOD |
| WO2021229707A1 (en) * | 2020-05-13 | 2021-11-18 | 本田技研工業株式会社 | Information processing device, program, system, and information processing method |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61138360A (en) * | 1984-12-10 | 1986-06-25 | Fujitsu Ltd | Assigning system of processing in compound processor system |
| JP3512080B2 (en) * | 1995-12-27 | 2004-03-29 | ソニー株式会社 | Computing device and method |
| JPH09218859A (en) * | 1996-02-07 | 1997-08-19 | Oki Electric Ind Co Ltd | Multiprocessor control system |
-
2016
- 2016-01-18 JP JP2016007301A patent/JP6504062B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017129921A (en) | 2017-07-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11228640B2 (en) | Cross device application discovery and control | |
| KR102245247B1 (en) | GPU remote communication using triggered actions | |
| US20240291898A1 (en) | Screen mirroring device discovery method and apparatus, electronic device, and storage medium | |
| JP6041991B2 (en) | Method, apparatus, and computer program for providing protocol for resolving synchronization collision during synchronization between multiple devices | |
| WO2018102240A1 (en) | Joint language understanding and dialogue management | |
| EP2873255B1 (en) | Automated sharing of application data over a near field communication link | |
| CN108028851B (en) | Equipment group management method, device and system | |
| JPWO2014128755A1 (en) | Communications system | |
| JP6520693B2 (en) | Calculation resource provision method and calculation resource provision system | |
| WO2023246757A1 (en) | Computing power service method and apparatus, and terminal | |
| JP6504062B2 (en) | Task execution method and task execution system | |
| CN112586003B (en) | Improvements in and relating to SMS in telecommunications networks | |
| CN111949833B (en) | Index construction method, data processing method, device, electronic equipment and medium | |
| US12423091B1 (en) | Systems and methods for non-interruptive update | |
| CN111098842B (en) | Vehicle speed control method and related equipment | |
| CN112418389A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
| JP7832265B2 (en) | Data transmission methods, devices, equipment, and storage media | |
| KR102936097B1 (en) | Electronic device performing communication in neighbor awareness networking and method for operating thereof | |
| US20210099830A1 (en) | Communication between autonomous vehicles and operations personnel | |
| US9774372B1 (en) | Techniques for sharing documents stored at a remote file storage server using short range wireless communication-enabled computing devices | |
| EP3225072B1 (en) | Virtual sensor apparatus and method | |
| CN113076053A (en) | Cursor remote control method and device, electronic equipment and storage medium | |
| CN116394958B (en) | Driving function switching method, driving function switching device, electronic device and computer readable medium | |
| CN111984001A (en) | Method and apparatus for controlling a robot | |
| CN116263718B (en) | Process management method and device, storage medium and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180426 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190118 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20190226 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190311 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6504062 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| LAPS | Cancellation because of no payment of annual fees |