JP2013206221A - Electronic device and program - Google Patents
Electronic device and program Download PDFInfo
- Publication number
- JP2013206221A JP2013206221A JP2012075500A JP2012075500A JP2013206221A JP 2013206221 A JP2013206221 A JP 2013206221A JP 2012075500 A JP2012075500 A JP 2012075500A JP 2012075500 A JP2012075500 A JP 2012075500A JP 2013206221 A JP2013206221 A JP 2013206221A
- Authority
- JP
- Japan
- Prior art keywords
- command
- processing
- unit
- function
- executing
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
Description
本発明は、電子機器、およびプログラムに関する。 The present invention relates to an electronic device and a program.
近年、電子機器の多くはCPUが搭載され、CPUで実行するプログラムによって様々な機能を実現している。ところが、様々な電子機器で同様の機能を実現するために機器毎に同じようなプログラムを搭載しなければならないという問題がある。このため、コントローラで一元的に処理を実行する技術などが考えられている(例えば特許文献1参照)。 In recent years, many electronic devices are equipped with a CPU, and various functions are realized by programs executed by the CPU. However, there is a problem that a similar program must be installed for each device in order to realize the same function in various electronic devices. For this reason, the technique etc. which perform a process centrally with a controller are considered (for example, refer patent document 1).
従来、他機器と同じ機能を利用する場合、自機器に他機器と同じアプリケーションソフトなどをインストールしたり、コントローラで一元的に処理を実行する必要があった。 Conventionally, when using the same function as that of another device, it is necessary to install the same application software or the like as that of the other device in the own device or to execute processing centrally by the controller.
本発明は、このような事情に鑑みてなされたもので、その目的は、特別な設定や専用の装置を用いることなく、他機器のコマンドを自機器のコマンドと同様に使用できる電子機器、およびプログラムを提供することにある。 The present invention has been made in view of such circumstances, and an object of the present invention is to provide an electronic device that can use commands of other devices in the same manner as the commands of its own device without using special settings or dedicated devices, and To provide a program.
この発明は上述した課題を解決するためになされたもので、本発明は、他機器と通信を行う通信部と、他機器が備えている機能の処理を実行するコマンドを含むコマンドを管理するコマンド管理部と、前記コマンド管理部が管理するコマンドを実行するとともに、実行することにより得られた実行結果を取得するコマンド処理部と、を備え、前記コマンド処理部は、前記コマンド管理部が管理するコマンドに含まれる第1コマンドを実行することにより、前記第1コマンドを実行することにより得られる実行結果である第1実行結果を取得できなかった場合、前記第1コマンドを代替する第2コマンドを実行することを特徴とする電子機器である。 The present invention has been made to solve the above-described problems, and the present invention relates to a command for managing a command including a communication unit that communicates with another device and a command that executes processing of a function of the other device. A management unit, and a command processing unit that executes a command managed by the command management unit and acquires an execution result obtained by executing the command, and the command management unit manages the command processing unit When the first execution result that is the execution result obtained by executing the first command cannot be obtained by executing the first command included in the command, a second command that replaces the first command is obtained. The electronic device is characterized by being executed.
また、本発明は、上記記載の電子機器、を備えることを特徴とする電子機器連携システムである。 Moreover, this invention is an electronic device cooperation system provided with the above-mentioned electronic device.
また、本発明は、コンピュータに、通信部を介して他機器と通信を行う通信ステップと、他機器が備えている機能の処理を実行するコマンドを含むコマンドを管理するコマンド管理ステップと、前記コマンド管理ステップにおいて管理するコマンドに含まれる第1コマンドを実行することにより、前記第1コマンドを実行することにより得られる実行結果である第1実行結果を取得できなかった場合、前記第1コマンドを代替する第2コマンドを実行するコマンド処理ステップと、を実行させるためのプログラムである。 In addition, the present invention provides a computer with a communication step for communicating with another device via a communication unit, a command management step for managing a command including a command for executing processing of a function provided in the other device, and the command If the first execution result, which is the execution result obtained by executing the first command, cannot be obtained by executing the first command included in the command managed in the management step, the first command is substituted And a command processing step for executing a second command to be executed.
この発明によれば、特別な設定や専用の装置を用いることなく、他機器のコマンドを自機器のコマンドと同様に使用できる。 According to the present invention, commands of other devices can be used in the same manner as commands of the own device without using special settings or dedicated devices.
以下、図面を参照して、本発明の実施の形態について説明する。なお、本実施形態では、複数の様々な機能を有する電子機器(電子カメラ、携帯電話、プリンタなど)の間で互いの機能を利用するコマンド共有機能(以降、C機能と称する)が用いられる。 Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment, a command sharing function (hereinafter referred to as C function) that uses each other's functions among electronic devices (electronic cameras, mobile phones, printers, etc.) having a plurality of various functions is used.
[電子機器10の構成例]
図1は、本発明の一実施形態に係る電子機器10の構成例を示す図である。図1において、電子機器10は、ハードウェア11と、ソフトウェア12とで構成される。
[Configuration Example of Electronic Device 10]
FIG. 1 is a diagram illustrating a configuration example of an
ハードウェア11は、電子機器10本来の機能に対応するための電子機器用回路13と、C機能に対応するための通信回路14(通信部)とを有する。例えば、電子カメラの場合は、撮像回路、表示回路、記録回路などが電子機器用回路13に対応する。なお、携帯電話などの場合は、携帯電話の通信網の基地局との間で通信するための電話機本来の通信回路とは別に、電子機器間で通信可能なBluetooth(登録商標)、Wi−Fi(Wireless Fidelity、登録商標)などの規格に対応する通信回路やその通信回路を使用して通信可能な範囲にある同じ機能に対応する電子機器を探索するソフトウェアを備えたものがあるので、このような携帯電話の場合は通信回路14を新たに設ける必要がなく、電子機器用回路13に含まれている。ここで、通信回路14が行う通信は、無線通信であってもよいし、有線通信であってもよい。
The
ソフトウェア12は、ハードウェア11の各部を制御して電子機器10の動作を実現するOS(オペレーションシステム)を基本とし、OS上で実行される制御プログラム15(制御部)およびC機能プラットホーム16を有する。
The
制御プログラム15は、電子機器10の操作に対応する本来の機能を実現するためのプログラムだけでなく、本実施形態の特徴であるC機能により他機器に搭載された機能を利用するプログラムを有する。例えば、制御プログラム15は、後述のコマンド共有部18において管理されている複数のコマンドのうち選択されたコマンドを、設定されたコマンドの実行順序で実行させる処理を制御するプログラムを有する。なお、自機器の機能および他機器の機能或いは両方を組み合わせた機能のいずれの場合のプログラムであっても、C機能プラットホーム16(コマンド処理部30)に対してコマンド(或いはコマンド実行するタイミングを与えるイベント)を発行して実行結果を得る動作は同じであり、制御プログラム15側で自機器の機能であるか他機器の機能であるかを意識する必要はない。
The
C機能プラットホーム16は、コマンド共有部18(コマンド管理部)と、通信処理部19、コマンドサーチ部22(コマンド探索部)と、コマンド処理部30と、とを有する。
The
コマンド共有部18は、自機器または他機器で実行可能なコマンドをコマンドリスト20として管理する。例えば、コマンド共有部18は、他機器が備えている機能の処理を実行するコマンドである外部コマンドを含む複数のコマンドを管理する。なお、コマンドリスト20に登録されるコマンドには、コマンド種別やコマンド機能名、パラメータなどコマンドに関係する様々な情報が含まれている。但し、コマンドリスト20はコマンドのリストであって、コマンドを実行するプログラム自体はそれぞれの電子機器にある。また、コマンドリスト20には、予め自機器で実行可能な内部コマンドのリストが登録されているが、通信処理部19が通信回路14で接続される他機器から取得する外部コマンドが適宜追加される。ここで、コマンドリスト20に登録されている外部コマンドの実行先である他機器との通信が通信回路14上で切断されたことを通信処理部19で検出した場合は、コマンドリスト20に登録されている当該機器のコマンドを削除する。なお、コマンド共有部18が管理しているコマンドリスト20は、内部コマンドと外部コマンドとが含まれている状態以外に、内部コマンドのみが含まれている状態、または外部コマンドのみが含まれている状態であってもよい。また、コマンド共有部18が管理しているコマンドリスト20は、少なくとも1つのコマンドが含まれている状態であってもよい。
The
通信処理部19は、通信回路14を介して予め決められた所定のプロトコルによる通信を確立し、機器情報、コマンドリスト、イベントなどの送受信、或いはコマンドの送信や実行結果の受信などを行う。
The
コマンドサーチ部22は、通信処理部19が通信回路14を介して接続される他機器から、他機器が備えている機能の処理を実行するコマンドを探索する。そして、コマンドサーチ部22が探索した利用可能な外部コマンドは、コマンドリスト20に適宜追加される。例えば、コマンドサーチ部22は、通常、近距離通信(例えば、Bluetooth(登録商標)の規格に対応する通信)で通信可能な他機器で実行可能な外部コマンドをコマンドリスト20に追加する。一方、コマンドサーチ部22は、近距離通信で通信可能なエリアよりも広いエリアにある他機器で実行可能な外部コマンドをコマンドリスト20に追加する場合、Wi−Fi(登録商標)の規格に対応する通信で通信可能な他機器で実行可能な外部コマンドをコマンドリスト20に追加する。なお、コマンドサーチ部22は、コマンド処理部30からの指令に応じて、探索エリアを変更(探索に利用する通信を変更)する。
The
コマンド処理部30は、コマンド共有部18が管理するコマンドを実行するとともに、実行することにより得られた実行結果を取得する。具体的には、コマンド処理部30は、コマンド共有部18のコマンドリスト20を参照して、制御プログラム15から送られるコマンドが内部コマンド(自機器で実行するコマンド)であるか外部コマンド(他機器で実行するコマンド)であるかを判別する。そして、コマンド処理部30は、制御プログラム15から送られるコマンドが内部コマンドである場合には、自機器において内部コマンドに対応する機能の処理を実行して、その実行結果を制御プログラム15側に返す処理を行う。
The
また、コマンド処理部30は、制御プログラム15から送られるコマンドが外部コマンドである場合には、外部コマンドを通信処理部19からハードウェア11の通信回路14を介して接続される他機器に送信する。そして、コマンド処理部30は、通信回路14および通信処理部19を介して、他機器において外部コマンドを実行することにより得られた実行結果を受信し、これを制御プログラム15側に返す処理を行う。
Further, when the command sent from the
例えば、コマンド処理部30は、制御プログラム15が制御するコマンドの実行順序に従って、外部コマンドを通信回路14(および通信処理部19)を介して他機器に送信するとともに、他機器が外部コマンドを実行することにより得られた実行結果である実行結果を取得する。なお、コマンド処理部30は、他機器から外部コマンド(すなわち自機器で実行するコマンド)を受信した場合、受信した外部コマンドを自機器において実行するとともに、実行することにより得られた実行結果を、他機器に対して送信する。
For example, the
また、コマンド処理部30は、情報取得部31と、コマンド選択部32(選択部)と、条件設定部33と、を備えている。
情報取得部31は、自機器または他機器における性能を示す情報を取得する。なお、情報取得部31は、他機器における性能を示す情報を、通信回路14を介して接続される他機器と通信することにより取得する。例えば、情報取得部31は、性能を示す情報を要求するコマンドを他機器に対して送信するとともに、他機器が応答する性能を示す情報を受信することにより、他機器における性能を示す情報を取得する。
The
The
ここで、性能を示す情報とは、例えば、各機器が備えている機能に応じて予め設定されている性能を示す情報(機能毎に予め設定されている処理速度、処理の正確さや精密さ、等の性能を示す情報)である。また、性能を示す情報とは、例えば、時間の経過にともなって変化する性能を示す情報(リソース状態(例えばCPU使用率、実行タスク数、バッテリ残容量等)を示す情報)である。なお、性能を示す情報は、要求性能を満たすか否かを示す情報であってもよい。例えば、性能を示す情報は、自機器または他機器が実行する処理が要求性能を満たすか否か(処理時間500msec以内の性能を満たすか否か、バッテリ持続時間60分以上の性能を満たすか否か、等)を示す情報であってもよい。 Here, the information indicating the performance is, for example, information indicating the performance set in advance according to the function of each device (processing speed, processing accuracy and precision set in advance for each function, And the like). The information indicating the performance is, for example, information indicating the performance that changes with time (information indicating the resource state (for example, the CPU usage rate, the number of execution tasks, the remaining battery capacity, etc.)). Note that the information indicating the performance may be information indicating whether or not the required performance is satisfied. For example, the information indicating performance indicates whether or not the processing executed by the own device or other device satisfies the required performance (whether the processing satisfies a performance within a processing time of 500 msec or whether the performance satisfies a battery duration of 60 minutes or more. Or the like.
コマンド選択部32は、コマンド共有部18が管理している複数のコマンドそれぞれに対応する機能の処理が実行される機器の性能を示す情報に基づいて、この複数のコマンドのうち実行するコマンドを選択する。例えば、コマンド選択部32は、制御プログラム15の制御により実行されるコマンドの機能と同じような機能を実行させる複数のコマンドがコマンド共有部18に管理されている場合、複数のコマンドそれぞれの処理が実行される機器における性能を示す情報に基づいて、この同じ機能を実行させる複数のコマンドから、実行するコマンドを選択する。
The command selection unit 32 selects a command to be executed from among the plurality of commands based on information indicating the performance of a device that executes processing of a function corresponding to each of the plurality of commands managed by the
条件設定部33は、自機器または他機器の複数の性能を示す情報の優先条件を設定する。例えば、条件設定部33は、複数の機器の性能を示す情報(処理速度、処理の正確さや精密さ、等)の優先条件として、「処理速度を優先」または「処理の正確さや精密さを優先」等の優先条件を設定する。ここで、条件設定部33は、ユーザによって入力された条件、予め設定されている条件、または処理条件(例えば、電子機器10が電子カメラの場合の撮影被写体条件等)に基づいて、上述の優先条件を設定する。そして、コマンド選択部32は、例えば、条件設定部33により設定された優先条件と、各機器における性能を示す情報とに基づいて、上述の同じ機能を実行させる複数のコマンドから、実行するコマンドを選択する。なお、このような、コマンドの選択処理について詳しくは後述する。
The
このように、本実施形態に係る電子機器10は構成され、複数の電子機器10がコマンドを共有して互いの機能を利用できるようになっている。
Thus, the
[電子機器連携システム100の動作例]
次に、電子機器10として、C機能に対応するハードウェア11およびソフトウェア12を備えた電子カメラ101および携帯電話102を用いる場合の電子機器連携システム100の基本動作について説明する。
[Operation Example of Electronic Device Cooperation System 100]
Next, a basic operation of the electronic
図2は、電子機器連携システム100の動作の一例を示す図である。
図2において、電子カメラ101は撮影コマンド151を有し、携帯電話102は電子メールコマンド161と、GPS(Global Positioning system)コマンド162とを有する。撮影コマンド151は、電子カメラ101の撮影を行うコマンドである。電子メールコマンド161は、電子メールを送受信するコマンドである。GPSコマンド162は、緯度、経度などの位置情報を取得するコマンドである。
FIG. 2 is a diagram illustrating an example of the operation of the electronic
In FIG. 2, the
そして、電子カメラ101と携帯電話102のそれぞれのコマンド共有部18は、通信処理部19による通信確立(S101)の後、互いの機器情報とコマンドリスト20(図2では、コマンドリスト131a、コマンドリスト132aに対応)を送受信する。例えば電子カメラ101は、機器情報として自機器がカメラであること、実行可能なコマンドリスト131aとして撮影コマンド151を有すること、などを携帯電話102に送信する(S102)。逆に、携帯電話102は、機器情報として自機器が携帯電話であること、実行可能なコマンドリスト132aとして電子メールコマンド161と、GPSコマンド162とを有すること、などを電子カメラ101に送信する(S103)。
Then, after the
これにより、電子カメラ101は、自機器の撮影コマンド151と、携帯電話102の電子メールコマンド161と、GPSコマンド162とを含むコマンドリスト131bを持つことができる。同様に、携帯電話102は、自機器の電子メールコマンド161およびGPSコマンド162と、電子カメラ101の撮影コマンド151とを含むコマンドリスト131bを持つことができる。なお、送受信するのはコマンドリストであって、コマンドを実行するプログラム自体はそれぞれの電子機器にある。
As a result, the
電子カメラ101と携帯電話102のそれぞれのコマンド処理部30は、コマンド共有部18が保持するコマンドリスト20の中のコマンドを実行する。例えば電子カメラ101はコマンドリスト131aの撮影コマンド151を実行することができ、携帯電話102はコマンドリスト132aの電子メールコマンド161やGPSコマンド162を実行することができる。ここで、コマンドリスト131aおよびコマンドリスト132aは、電子カメラ101および携帯電話102のそれぞれが本来備えているコマンド(内部コマンド)である。さらに、本実施形態に係る電子機器連携システム100では、通信確立後に送受信した他機器のコマンド(外部コマンド)を使用することができる。
The
例えば図2では、電子カメラ101が位置情報を取得したい場合、GPSコマンド162を携帯電話102に送信し(S104)、携帯電話102でGPSコマンド162を実行して取得した位置情報(緯度経度など)を実行結果とするコマンド応答を電子カメラ101に送信する(S105)。
For example, in FIG. 2, when the
このようにして、電子カメラ101は、GPS機能を搭載していなくてもGPSによる位置情報を取得することができ、例えば撮影画像のヘッダ情報に位置情報を付加して保存するような新たな機能を容易に実現することができる。
In this way, the
図3は、本実施形態に係る電子機器連携システム100において、電子機器の電源を投入してからコマンドリストを取得するまでの処理(初期動作)を示すフローチャートである。
FIG. 3 is a flowchart showing processing (initial operation) from when the electronic device is turned on until the command list is acquired in the electronic
(ステップS151)電子機器10の電源が投入されると、C機能プラットホーム16の通信処理部19は通信回路14を起動する。
(Step S151) When the power of the
(ステップS152)通信回路14によって通信可能な範囲にある他の電子機器を探索する。なお、このような機能は、例えばBluetooth(登録商標)などの規格で決められており、通信可能な範囲にある電子機器を見つけることができる。
(Step S <b> 152) Search for other electronic devices within a range in which communication is possible by the
(ステップS153)通信処理部19は、検出した電子機器がC機能に対応する機器であるか否かの判別を行い、C機能に対応しない場合はステップS152に戻って電子機器の探索を継続する。そして、C機能に対応する場合はステップS154に進む。なお、C機能に対応しているか否かの判別は、例えば通信確立時に送受信する制御データにC機能対応有を示す独自の情報を付加することにより実現できる。
(Step S153) The
(ステップS154)機器探索で見つかったC機能に対応する他機器に自機器の機器情報を送信する。 (Step S154) The device information of the own device is transmitted to the other device corresponding to the C function found by the device search.
(ステップS155)機器探索で見つかったC機能に対応する他機器から機器情報を受信する。 (Step S155) Device information is received from another device corresponding to the C function found in the device search.
(ステップS156)自機器が保持するコマンドリストを他機器に送信する。 (Step S156) The command list held by the own device is transmitted to another device.
(ステップS157)他機器が保持するコマンドリストを他機器から受信する。 (Step S157) A command list held by another device is received from the other device.
(ステップS158)他機器から受信したコマンドリストに登録されているコマンドを自機器が保持するコマンドリストに追加する。 (Step S158) The command registered in the command list received from the other device is added to the command list held by the own device.
このようにして、本実施形態に係る電子機器連携システム100では、他機器との間で実行可能なコマンドリストを送受信することによって、他機器のコマンドを自機器のコマンドと同じように実行することができる。しかも、コマンドの実行自体は当該コマンドを有する機器上で行うので、従来のようにコマンドを実行するためのソフトウェアやドライバプログラムをインストールする必要がなく、OSの種類にも依存しない。
In this way, in the electronic
図4は、本実施形態に係る電子機器連携システム100に対応する電子カメラ101においてコマンドを実行する処理を示す図である。図4(a)は、電子カメラ101で撮影した画像に対して画像処理Aを施してメモリカードなどに保存する処理例を示している。ここで、画像処理コマンドAは電子カメラ101では実行できない外部コマンドなので、画像処理プログラムAを有する画像処理サーバ104に画像処理コマンドAと画像データを送信して画像処理サーバ104で画像処理Aを施し、処理後の画像データを電子カメラ101に返信する。そして、電子カメラ101は、画像処理サーバ104から受信した画像処理Aが施された画像データを撮影画像としてメモリカードなどに保存する。
FIG. 4 is a diagram illustrating processing for executing a command in the
さらに、図4(b)は、電子カメラ101で撮影した画像に対して画像処理Bを施してメモリカードなどに保存する処理の流れを示している。ここで、画像処理コマンドBは電子カメラ101で実行可能な内部コマンドなので、自機器内の制御プログラムに画像処理コマンドBと画像データを送って画像処理Bを施し、処理後の画像データを受け取ってメモリカードなどに保存する。
Further, FIG. 4B shows a flow of processing for performing image processing B on an image photographed by the
このように、本実施形態に係る電子機器連携システム100における電子カメラ101は、外部コマンドおよび内部コマンドの区別なく、同じようにコマンドを発行して処理を行うことができる。
As described above, the
[機器情報]
次に、機器情報について説明する。図2で説明したように、本実施形態に係る電子機器連携システム100に対応する電子機器10は、通信確立時に機器情報を送受信する。この機器情報には、例えば以下のような情報が含まれる。
・国ID:各国毎に決められた固有ID、或いは国名でもよい。例えばJAPANなど。・メーカID:メーカ毎に決められた固有ID、或いはメーカ名でもよい。例えばABCDE会社など。
・機器カテゴリID:機器種別毎に決められたカテゴリを示す固有ID、或いは機器名でもよい。例えば電子カメラ、携帯電話、プリンタなど。
・機器ID:機器毎に決められた固有IDで製造番号やシリアル番号など。
・所有者ID:機器の所有者毎に予め決められた固有ID、或いは所有者名や住所、電話番号などであってもよい。
[Equipment information]
Next, device information will be described. As described with reference to FIG. 2, the
Country ID: A unique ID or country name determined for each country may be used. For example, JAPAN. Manufacturer ID: A unique ID determined for each manufacturer or a manufacturer name may be used. For example, ABCDE company.
Device category ID: It may be a unique ID indicating a category determined for each device type, or a device name. For example, electronic cameras, mobile phones, printers, etc.
Device ID: A unique ID determined for each device, such as a manufacturing number or serial number.
Owner ID: It may be a unique ID predetermined for each owner of the device, an owner name, an address, a telephone number, or the like.
このように、本実施形態に係る電子機器連携システム100では、通信確立時に上記のような機器情報を送受信する。これにより、例えば特定国の機器、同一メーカの機器、同じカテゴリの機器、同じ所有者の機器などの特定機器でしかコマンドを利用できないようにすることができる。
As described above, in the electronic
[コマンド]
次に、コマンドに含まれる情報について説明する。図2で説明したように、コマンドには自機器で実行する内部コマンドと、他機器で実行する外部コマンドとがあり、いずれのコマンドにも以下のような情報が含まれる。
・コマンド種別:単体で実行するコマンド、バッチ処理コマンドなど。
・実行可能な機器:例えば電子カメラ、携帯電話などの機器種別や個別の機器IDなど。
(なお、機器種別や機器IDは、通信確立時に送受信される機器情報に含まれる)
・コマンド機能名:例えば撮影機能、位置情報取得機能、プリンタ機能、画像処理機能、超解像度画像処理機能、顔検出機能など。
・コマンドID:コマンド毎に予め決められた固有ID、或いはコマンド名。例えば撮影コマンド、印刷コマンドなど。
・パラメータ:コマンドで参照するパラメータ。例えば撮影コマンドであればシャッタ速度や絞り値或いは撮影モードの選択値(夜景モードなど)。なお、選択可能な数値範囲や全ての選択値の情報も含まれる。
・コマンド実行結果:コマンドの実行によって得られる結果で、数値や画像データなどの実行結果である。例えばGPSコマンドであれば緯度経度などの数値、画像処理であれば処理後の画像データなど。
・アイコン:コマンドを画面に表示する場合に、コマンドを判別し易いようするための画像。例えば電子メールコマンドであれば封書画像のアイコンなど。
・チュートリアル:コマンドの使い方や機能説明。いわゆるHELP情報に相当する。
・コマンドで使用する別のコマンドの情報:バッチ処理などで別のコマンドの実行結果を利用するコマンドなど。例えば現在位置の住所を求める住所コマンドを設けた場合、住所コマンドの中でGPSコマンドを実行して、GPSコマンドで得られる緯度経度の数値から地図上の位置を検索して住所を求める、など。
・コマンドの性能情報:処理速度、処理の正確さや精密さ、等の性能を示す情報。
・作者情報:コマンド作成者のIDや名称など。
[command]
Next, information included in the command will be described. As described with reference to FIG. 2, the command includes an internal command executed by the own device and an external command executed by another device, and each command includes the following information.
-Command type: Commands executed alone, batch processing commands, etc.
Executable devices: device types such as electronic cameras and mobile phones, individual device IDs, etc.
(Note that the device type and device ID are included in device information transmitted and received when communication is established)
Command function name: For example, a shooting function, a position information acquisition function, a printer function, an image processing function, a super-resolution image processing function, a face detection function, etc.
Command ID: A unique ID or command name predetermined for each command. For example, shooting command, printing command, etc.
• Parameter: A parameter that is referenced by a command. For example, in the case of a shooting command, the shutter speed, aperture value, or shooting mode selection value (night view mode, etc.). Information on selectable numerical ranges and information on all selected values is also included.
Command execution result: A result obtained by executing a command, which is an execution result of a numerical value or image data. For example, numerical values such as latitude and longitude are used for GPS commands, and processed image data are used for image processing.
Icon: An image that makes it easy to identify a command when the command is displayed on the screen. For example, if it is an e-mail command, an icon of a sealed image.
・ Tutorial: How to use commands and explanation of functions. This corresponds to so-called HELP information.
-Information on other commands used in commands: Commands that use the execution results of other commands in batch processing, etc. For example, when an address command for obtaining an address at the current position is provided, a GPS command is executed in the address command, and a position on the map is searched for from a numerical value of latitude and longitude obtained by the GPS command.
Command performance information: Information indicating performance such as processing speed, processing accuracy and precision.
Author information: ID and name of the command creator.
このように、本実施形態に係る電子機器連携システム100では、通信確立時に上記のような情報を含むコマンドリストを送受信する。これにより、例えばコマンドのパラメータや使い方がわかるので、初めてのコマンドであっても動作設定を簡単に行うことができ、所望の実行結果を得ることができる。
Thus, in the electronic
ここで、様々な電子機器におけるコマンド例を以下に示す。
・電子機器が携帯電話の場合
「GPSコマンド」:GPSの測位データに基づく緯度経度などの位置情報の提供。
「簡易位置情報取得コマンド」:携帯電話通信網の最寄りの基地局の場所に基づく位置情報の提供。
「メール送信コマンド」:電子メールの送信。
「超解像画像処理コマンド」:高解像度化を行う画像処理。
「音声録音コマンド」:マイクロホンで音声を録音。
・電子機器が電子カメラの場合
「静止画AUTO撮影コマンド」:自動露出、自動焦点で静止画撮影。
「高速シャッタ撮影コマンド」:高速シャッタで画像を撮影。
「ボケ優先撮影コマンド」:ボケのある被写界深度の浅い画像を撮影。
「動画撮影コマンド」:動画を撮影。
「画像処理コマンド」:画質調整(ホワイトバランス調整、コントラスト調整、等)を行う画像処理。
「顔検出処理コマンド」:画像から顔を検出する処理。
「付加情報登録コマンド」:画像データにファイル名やヘッダ情報等の付加情報を登録。或いは、画像データに対応付けられた別のデータファイルに付加情報を登録。
「保存コマンド」:記憶媒体(メモリカード)への保存。
・電子機器が画像処理サーバの場合
「画像処理コマンド」:画質調整(ホワイトバランス調整、コントラスト調整、等)を行う画像処理(例えば電子カメラが備えている画像処理機能に対して高機能な処理)。
「顔認識処理コマンド」:画像から顔を検出する処理とともに、特定の個人の顔を認識して検出する処理。
・電子機器がプリンタの場合
「写真印刷L版」:L判で印刷。
「写真印刷A4」:A4で印刷。
・電子機器がFAXの場合
「画像送信」:画像データを送信。
「データ受信」:画像データを受信。
・電子機器がテレビの場合
「画像表示」:画像データを画面に表示。
「チャネル選択」:放送受信するチャネル選択。
・電子機器がビデオの場合
「静止画録画」:静止画像を記録。
「動画録画」:動画像を記録。
このように、本実施形態に係る電子機器連携システム100では、他機器のコマンドを自機器のコマンドと同じように実行することができ、自機器にはない他機器の機能を利用できる。
Here, command examples in various electronic devices are shown below.
When the electronic device is a mobile phone “GPS command”: providing position information such as latitude and longitude based on GPS positioning data.
"Simple location information acquisition command": Provision of location information based on the location of the nearest base station in the mobile phone communication network.
“Mail send command”: Send an e-mail.
“Super-resolution image processing command”: image processing for increasing the resolution.
"Voice recording command": Record voice with a microphone.
When the electronic device is an electronic camera “Still image AUTO shooting command”: Still image shooting with automatic exposure and auto focus.
“High-speed shutter shooting command”: Takes an image with a high-speed shutter.
“Bokeh priority shooting command”: Shoots a blurred image with a shallow depth of field.
“Video shooting command”: Shoots a video.
“Image processing command”: Image processing for adjusting image quality (white balance adjustment, contrast adjustment, etc.).
“Face detection processing command”: processing for detecting a face from an image.
“Additional information registration command”: Registers additional information such as file name and header information in the image data. Alternatively, additional information is registered in another data file associated with the image data.
“Save command”: Save to a storage medium (memory card).
When the electronic device is an image processing server “Image processing command”: Image processing for adjusting image quality (white balance adjustment, contrast adjustment, etc.) (for example, processing that is highly functional with respect to the image processing function of the electronic camera) .
“Face recognition process command”: A process of detecting a face from an image and a process of recognizing and detecting a face of a specific individual.
-When the electronic device is a printer "Photo printing L version": Printed in L size.
“Photo printing A4”: Printing with A4.
-When the electronic device is a FAX "Image transmission": Image data is transmitted.
“Data reception”: Receives image data.
-When the electronic device is a TV “Image display”: Display image data on the screen.
“Channel selection”: Channel selection for broadcast reception.
-When the electronic device is a video "Still image recording": Record a still image.
"Video recording": Record moving images.
As described above, in the electronic
[イベント]
次に、イベントに含まれる情報について説明する。図2では、発行したコマンドを自機器または他機器で実行して実行結果を得る例を示したが、コマンドを実行するタイミングを与えることもできる。例えば図2において、携帯電話102側から電子カメラ101の撮影コマンド151を利用する場合、例えば電子カメラ101のシャッターボタンが押下された時に撮影を行うなど、撮影を行うタイミングを指示しなければならない。なお、携帯電話102側から撮影コマンド151を発行した時に直ぐに撮影を行うような使い方の場合は、シャッターボタンの押下時というイベントを指示する必要はない。
[Event]
Next, information included in the event will be described. Although FIG. 2 shows an example in which the issued command is executed by the own device or another device to obtain an execution result, timing for executing the command can also be given. For example, in FIG. 2, when the
以下にイベントに含まれる情報の一例を示す。
・イベント種別:オペレーション、処理割り込みなどの制御情報。例えばシャッターボタン押下はオペレーション、電子メール受信や予め設定した時刻などは処理割り込み。
・イベントが発生した機器ID:機器情報で説明した機器ID。例えば、機器ID:カメラなど。
・イベント名:イベントの名称。例えばタイマー割り込みやシャッターボタン押下、顔認識、或いは電源オフなど。
・イベントID:イベント名に対応するID。例えばシャッターボタン押下の場合はID=RB_DOWNなど。なお、実際にはこのイベントIDが送受信される。
・パラメータ:イベントで参照するパラメータ。例えばコマンドを実行する時刻など。なお、選択可能な数値範囲や全ての選択値の情報も含まれる。
・アイコン:コマンドリストを表示する場合のアイコン画像。
・チュートリアル:イベントの使い方や機能説明。いわゆるHELP情報に相当する。
・このイベントをトリガーとして実行するコマンド情報:例えばイベントがシャッターボタン押下であれば撮影コマンドなど。
・作者情報:イベント作成者のIDや名称など。
An example of information included in the event is shown below.
Event type: Control information such as operation and processing interrupt. For example, pressing the shutter button interrupts the operation, e-mail reception, and preset time.
Device ID in which an event has occurred: Device ID described in the device information. For example, device ID: camera.
-Event name: Name of the event. For example, timer interruption, shutter button press, face recognition, or power off.
Event ID: ID corresponding to the event name. For example, ID = RB_DOWN when the shutter button is pressed. Actually, this event ID is transmitted and received.
-Parameter: A parameter to be referenced in the event. For example, command execution time. Information on selectable numerical ranges and information on all selected values is also included.
Icon: Icon image when displaying the command list.
・ Tutorial: Event usage and function explanation. This corresponds to so-called HELP information.
Command information executed using this event as a trigger: For example, a shooting command if the event is a shutter button press.
Author information: ID and name of event creator.
このように、本実施形態に係る電子機器連携システム100では、通信確立時に先に説明したコマンドリストに含めて上記のようなイベントも送受信される。これにより、例えばコマンドを実行するためのイベントを知ることができ、イベントのパラメータや使い方なども確認できる。
As described above, in the electronic
ここで、様々な電子機器におけるイベント例を以下に示す。
・電子機器が携帯電話の場合
「電話着信」「メール受信」「キーボード操作」「十字キー操作」など。
・電子機器が電子カメラの場合
「シャッターボタン押下」「ダイヤル操作」「静止画撮影」「SDカード挿入」など。
・電子機器がプリンタの場合
「パネル操作」「SDカード挿入」「インク切れ」など。
・電子機器がテレビの場合
「チャンネル操作」「リモコン操作」など。
・電子機器がビデオの場合
「再生ボタン押下」「早送りボタン押下」など。
Here, examples of events in various electronic devices are shown below.
-If the electronic device is a mobile phone, "Incoming call", "Receiving mail", "Keyboard operation", "Cross key operation", etc.
When the electronic device is an electronic camera, “shutter button press”, “dial operation”, “still image shooting”, “SD card insertion”, etc.
-When the electronic device is a printer, "panel operation", "SD card insertion", "run out of ink", etc.
・ When the electronic device is a TV, “Channel operation”, “Remote control operation”, etc.
When the electronic device is a video, “Play button pressed”, “Fast-forward button pressed”, etc.
このように、本実施形態に係る電子機器連携システム100では、他機器のコマンドや自機器のコマンドを実行するためのイベントも機器間で共有する。
As described above, in the electronic
[電子カメラ101の構成例]
図5は、本実施形態に係る電子機器10が電子カメラ101である場合の構成例を示す図である。
[Configuration Example of Electronic Camera 101]
FIG. 5 is a diagram illustrating a configuration example when the
電子カメラ101は、光学系201と、撮像部202と、バッファ203と、制御部204と、操作部205と、表示部206と、メモリカードIF(インターフェース)207、メモリ208と、通信部209とを備えている。
The
図5において、光学系201は、被写体像を撮像部202の受光面に結像する。ここで、光学系201は、ズームレンズやフォーカスレンズなどの複数枚のレンズおよびレンズ駆動部や絞り機構などを有し、制御部204によって、ズームレンズ位置、フォーカスレンズ位置、絞り値などが制御される。
In FIG. 5, the optical system 201 forms a subject image on the light receiving surface of the imaging unit 202. Here, the optical system 201 includes a plurality of lenses such as a zoom lens and a focus lens, a lens driving unit, an aperture mechanism, and the like, and the
撮像部202は、例えばCMOS型固体撮像素子およびA/D変換器などを有し、固体撮像素子の受光面に結像された被写体像を受光量に応じて電気信号に変換し、さらにA/D変換後の画像データをバッファ203に出力する。
The imaging unit 202 includes, for example, a CMOS solid-state imaging device and an A / D converter, and converts a subject image formed on the light-receiving surface of the solid-state imaging device into an electrical signal according to the amount of received light. The D-converted image data is output to the
バッファ203は、例えば揮発性の高速メモリで構成される。バッファ203は、撮像部202が出力する画像データを一時的に記憶するだけでなく、制御部204が画像処理を行う時のバッファメモリとしても使用される。或いは、表示部206に画像を表示する時の表示メモリとしても使用される。
The
制御部204は、例えば内部に記憶されたプログラム(例えば図1の制御プログラム15)に従って動作するCPUで構成される。制御部204は電子カメラ101全体の動作を制御し、例えば操作部205のモード選択ダイヤル263で電子カメラ101の撮影モードを選択したり、シャッターボタン262の押下時に光学系201のフォーカスレンズ制御や絞り制御を行って撮像部202のメカニカルシャッタまたは電子シャッタを制御して、被写体画像を撮影する。そして、制御部204は、撮像部202から画像データを読み出し、バッファ203に取り込む制御を行う。さらに、制御部204は、バッファ203に取り込まれた画像データに対して所定の画像処理(ホワイトバランス処理,色補間処理,ガンマ補正処理,彩度強調処理,輪郭強調処理、或いはJPEG規格などに準拠した画像圧縮処理)を施し、画像処理後の画像データ(例えばJPEGデータ)に所定のファイル名やヘッダ情報を付加情報として登録(付加)してメモリカード207aに保存する。或いは、バッファ203に取り込まれた画像データを表示部206に撮影画像として表示する。
なお、この制御部204は、例えば図1に示すC機能プラットホーム16および制御プログラム15を含んで構成されている。この後の電子カメラ101の構成を用いた処理に関する説明において、図1に示すC機能プラットホーム16が備える各部および制御プログラム15と、図5に示す制御部204とのそれぞれの名称を適宜使用する。
The
The
操作部205は、電源ボタン261、シャッターボタン262、モード選択ダイヤル263、メニューボタン264、十字キー265などで構成される。ユーザは、これらの操作ボタンを操作して電子カメラ101を使用する。なお、操作部205による操作情報は制御部204に出力され、制御部204は操作部205から入力する操作情報に応じて電子カメラ101の動作を制御する。例えばメニューボタン264を押下すると、制御部204は電子カメラ101の機能を選択するメニュー画面を表示部206に表示する。そして、十字キー265を操作してメニュー画面の操作を行う。特に、本実施形態に係る電子カメラ101では、メニューボタン264を押下すると図6に示すようなコマンドリストが表示され、十字キー265で選択することにより他機器の機能を利用することができる。或いは、これらのコマンドを組み合わせることによって新たなアプリケーション機能を実現できる。
The
図7は、電子機器連携システム100のコマンド実行例を示す図である。
例えば、図7に示すように、機器2のコマンドリストには、自機器のコマンド(内部コマンド)として、機能1から機能3のコマンドが登録されており、他機器(機器2)のコマンド(外部コマンド)として、機能4および機能5のコマンドが登録されている。これにより、機器2は、機能1から機能5の5つのコマンドを使用することができる。そして、機器2は、これらのコマンドを組み合わせたアプリケーションプログラムを実行することができる。図7の例では、機器2は、コマンドの実行順序160として、機器2の機能1のコマンド、機器1の機能4のコマンド、機器1の機能5のコマンド、機器2の機能2のコマンド、機器2の機能3のコマンドの順に実行する。なお、これらのコマンドを組み合わせたアプリケーションプログラムは、内部コマンドと外部コマンドとを組み合わせたものに限られるものではなく、例えば、内部コマンドのみ、または外部コマンドのみを組み合わせたアプリケーションプログラムとしてもよい。
FIG. 7 is a diagram illustrating a command execution example of the electronic
For example, as shown in FIG. 7, in the command list of the device 2, the commands of the function 1 to the
表示部206は、液晶モニタなどで構成される。そして、制御部204によって、撮影画像や設定メニューなどが表示される。
The
メモリカードIF207は、電子カメラ101にメモリカード207aを接続するためのインターフェースである。制御部204はメモリカードIF207を介してメモリカード207aに画像データを読み書きする。
The memory card IF 207 is an interface for connecting the
メモリ208は、例えばフラッシュメモリなどの不揮発性の半導体メモリで構成される。メモリ208には、電子カメラ101に設定された撮影モードや露出情報、フォーカス情報などのパラメータが記憶される。特に本実施形態では、自機器や他機器のコマンドリスト、機器情報、イベントなどが記憶される。
The
通信部209は、図1の通信回路14に対応し、電子機器間で通信可能なBluetooth(登録商標)、Wi−Fi(登録商標)などの規格に対応する。
The
以上が電子カメラ101の構成および基本動作である。
The above is the configuration and basic operation of the
[電子機器連携システム100の動作例]
次に、電子カメラ101を用いた電子機器連携システム100の動作例について説明する。なお、動作の基本的な流れは以下の通りである。
(1)機器間で通信を確立する。
(2)自機器の情報を相手に送信する。
(3)現在の自機器にて実行可能なコマンドリストなどを相手機器に送信する。
(4)相手機器からも機器情報とコマンドリストを受け取る。
(5)相手機器からコマンドを受信した場合はそのコマンドを実行し、実行結果を返信する。
(6)必要であれば自機器から相手機器にコマンドを送信し、実行結果を受け取る。
[Operation Example of Electronic Device Cooperation System 100]
Next, an operation example of the electronic
(1) Establish communication between devices.
(2) Send information about the device itself to the other party.
(3) A command list that can be executed by the current device is transmitted to the partner device.
(4) Receive device information and command list from the counterpart device.
(5) When a command is received from the counterpart device, the command is executed and the execution result is returned.
(6) If necessary, a command is transmitted from the own device to the other device, and the execution result is received.
図8は、C機能に対応する電子機器10として、電子カメラ101、および携帯電話102を利用して撮影処理を行う場合の電子機器連携システム100の動作の一例である。なお、図2と同符号のブロックおよび処理は同じものを示す。
FIG. 8 is an example of the operation of the electronic
図8において、電子カメラ101と、携帯電話102との間で通信確立(S101)後、図2を用いて説明したように、互いの機器情報や実行可能なコマンドを送受信(S102、S103)する。この図8に示すコマンドリストは図2のコマンドリスト131aおよびコマンドリスト132aに代えて、コマンドリスト131cおよびコマンドリスト132cである。
In FIG. 8, after establishing communication between the
電子カメラ101は、撮影コマンド151と、画像処理コマンド152と、付加情報登録コマンド153と、保存コマンド154とを有する。また、携帯電話102は電子メールコマンド161と、GPSコマンド162と、簡易位置情報取得コマンド163とを有する。電子カメラ101と携帯電話102のそれぞれのコマンド共有部18は、互いの機器情報とコマンドを送受信する。
The
これにより、電子カメラ101が有するコマンドリスト131cには、電子カメラ101が有するコマンドに加えて、電子メールコマンド161と、GPSコマンド162と、簡易位置情報取得コマンド163とが追加される。一方、携帯電話102が有するコマンドリスト132cには、携帯電話102が有するコマンドに加えて、撮影コマンド151と、画像処理コマンド152と、付加情報登録コマンド153と、保存コマンド154とが追加される。
Thereby, in addition to the command which the
すなわち、電子カメラ101のコマンドリスト131cおよび携帯電話102のコマンドリスト132cのそれぞれには、撮影コマンド151と、画像処理コマンド152と、付加情報登録コマンド153と、保存コマンド154と、電子メールコマンド161と、GPSコマンド162と、簡易位置情報取得コマンド163とが保持されている。
That is, the
[コマンドの実行例]
次に、図8において、電子カメラ101がGPSコマンド162を実行する場合は、GPSコマンド162を携帯電話102に送信する(S107)。携帯電話102は、GPSコマンド162を実行して緯度、経度などの位置情報を取得し、取得した位置情報を示すコマンド応答を電子カメラ101に送信する(S108)。そして、電子カメラ101は、携帯電話102から応答コマンドを受信することにより、位置情報を取得する。
[Example of command execution]
Next, in FIG. 8, when the
このようにして、電子カメラ101は、携帯電話102から現在の位置情報を取得することができる。すなわち、例えばGPS機能をもたない電子カメラ101であっても、GPS機能が自機能にあるかのように、GPS機能を有する電子カメラと同様に位置情報を取得することができる。
In this way, the
[制御プログラムによる処理の実行手順の例]
次に、制御プログラム15による処理の実行手順の一例について説明する。ここでは、図8に示す、電子カメラ101と、携帯電話102との2つの電子機器を連携して動作させる電子機器連携システム100を例として、この電子機器連携システム100において実行する処理の実行手順の一例について説明する。この例は、「観光地において電子カメラ101で撮影した画像に位置情報を付加してメモリカード207aに保存する」という利用シーンを想定している。ここで、図8を用いて説明したように、電子カメラ101と、携帯電話102との2つの電子機器は機器情報やコマンドリストを互いに送受信して、同じコマンドリストを共有している状態にある。この場合の利用可能なコマンドは、例えば電子カメラ101の撮影コマンド151、画像処理コマンド152、付加情報登録コマンド153、および保存コマンド154と、携帯電話102の電子メールコマンド161、GPSコマンド162、簡易位置情報取得コマンド163とである。
[Example of process execution procedure by control program]
Next, an example of an execution procedure of processing by the
図9は、制御プログラム15による処理(アプリケーションプログラムAとする)の実行手順の一例を示すフローチャートである。なお、アプリケーションプログラムAの処理は、例えばコマンドリスト131cのコマンドを組み合わせてユーザが自由に作成することができる。例えば図6で説明したような各コマンドに対応するアイコンを処理順に並べることにより、様々なアプリケーション機能を実現できる。本実施形態では既に図9に示す処理順序のアプリケーションプログラムが作成されているものとして説明する。
以下、図9に示す制御プログラム15に設定された実行手順の例を順に説明する。
FIG. 9 is a flowchart illustrating an example of an execution procedure of processing (referred to as application program A) by the
Hereinafter, examples of execution procedures set in the
(ステップS301:GPSコマンド162発行)制御部204は、コマンドリスト131cの中からGPSコマンド162を、通信部209を介して携帯電話102に送信し、実行結果として位置情報を取得する。
(Step S301: Issuing GPS command 162) The
(ステップS302:シャッターボタンイベント)制御部204は、シャッターボタン262が押下されたか否かを判別し、シャッターボタン262が押下されるまで待機する。そして、制御部204は、シャッターボタン262が押下されたことを検出した場合はステップS303に処理を進める。
(Step S302: Shutter button event) The
(ステップS303:撮影コマンド発行)制御部204は、コマンドリスト131cの中から撮影コマンド151を発行し、実行結果として撮影画像を取得する。例えば、制御部204は、撮像部202に、光学系201を介して入射された被写体像による画像データを取得させ、バッファ203に出力させる。
(Step S303: Shooting Command Issue) The
(ステップS304:画像処理コマンド発行)制御部204は、コマンドリスト131cの中から画像処理コマンド152を発行し、取得した撮影画像に対して画像処理(例えば、ホワイトバランス調整、コントラスト調整、JPEG圧縮などの処理)を実行することにより画像データを生成する。
(Step S304: Image processing command issuance) The
(ステップS305:付加情報登録コマンド発行)制御部204は、コマンドリスト131cの中から付加情報登録コマンド153を発行し、ステップS301において取得した位置情報(緯度経度情報、或いは地図データから住所情報に変換してもよい)を含む撮影時の設定情報や関連情報、またはファイル名を、ステップS304において生成した画像データに付加情報として登録する(付加する)。
(Step S305: Issue additional information registration command) The
(ステップS306;保存コマンド)制御部204は、保存コマンド154を発行して、ステップS305において付加情報を付加した画像データを、メモリカードIF207を介してメモリカード207aに保存する。
(Step S306; Save Command) The
なお、発行される各コマンド(或いはイベント)は、自機器または他機器のC機能プラットホーム16(電子カメラ101の場合はC機能プラットホーム251)のコマンド処理部30に送られる。ここで、OSは図6の制御部204に対応する。そして、コマンド処理部30は、コマンド(内部コマンドまたは外部コマンド)を実行する機器にコマンドを発行し、実行結果を取得する。
Each command (or event) to be issued is sent to the
なお、制御プログラム15による処理は、図9に示すアプリケーションプログラムAによる処理のような外部コマンドと内部コマンドとを組み合わせた処理に限られるものではなく、処理の内容に応じて、外部コマンドのみを組み合わせた処理としてもよいし、内部コマンドのみを組み合わせた処理としてもよい。
Note that the processing by the
図10は、コマンド実行処理の動作の一例を示すフローチャートである。この図10を参照して、電子カメラ101と携帯電話102との2つの電子機器を連携して動作させる電子機器連携システム100において、図9に示す制御プログラム15による処理(アプリケーションプログラムA)の実行手順に従ってコマンドを実行した場合のコマンドの実行処理の一例について説明する。
FIG. 10 is a flowchart illustrating an example of the operation of command execution processing. Referring to FIG. 10, in electronic
まず、制御部204は、アプリケーションプログラムAの実行手順に従ってGPSコマンド162を実行する。具体的には、コマンド処理部30は、コマンド共有部18のコマンドリスト20を参照して、制御プログラム15から受け取ったGPSコマンド162が携帯電話102(他機器)において実行する外部コマンドであることを判別して、GPSコマンド162を通信処理部19から通信回路14を介して接続される携帯電話102に送信する(ステップS401)。
First, the
制御部204は、GPSコマンド162を実行したことに応じて、実行結果である位置情報を取得する。例えば、コマンド処理部30は、GPSコマンド162を携帯電話102に送信したことに応じて、携帯電話102においてGPSコマンド162が実行されて取得された位置情報を、携帯電話102からのコマンド応答により受信する。そして、コマンド処理部30は、受信した位置情報を制御プログラム15側に返す(ステップS402)。
In response to the execution of the
次に、制御部204は、ステップS402においてGPSコマンド162の実行結果を取得したか否か(GPSコマンド162の実行処理が正常に終了したか否か)を判定する(ステップS403)。
Next, the
ステップS403において、GPSコマンド162の実行結果を取得していないと判定された場合、制御部204は、例えば処理エラーを示す表示を行うなどのエラー処理を実行して処理を終了する。
なお、制御部204は、ステップS403の処理において経過時間を監視して、実行結果を取得できない時間が所定の時間以上経過したか否かを検出することによりタイムアウト処理をするか否かを判定してもよい。例えば、制御部204は、処理の経過時間が所定の時間以上経過していない場合には、タイムアウト処理をしないでステップS402に処理を戻し、タイムアウトするまで、GPSコマンド162の実行結果を受信(取得)する処理を継続してもよい。一方、制御部204は、処理の経過時間が所定の時間以上経過した場合には、タイムアウトにより処理を終了してもよい。例えば、制御部204は、タイムアウト処理として、処理エラーを示す表示を行うなどのエラー処理を実行して処理を終了してもよい。
If it is determined in step S403 that the execution result of the
Note that the
一方、ステップS403において、GPSコマンド162の実行結果を取得したと判定した場合、制御部204は、アプリケーションプログラムAの実行手順に従った次のコマンドを選択(次のコマンドに移動)する(ステップS450)。例えば、制御部204は、次にシャッターイベントの受付けを許可するとともに、シャッターイベントを受付けた場合に撮影コマンド151を選択する。
On the other hand, if it is determined in step S403 that the execution result of the
次に、制御部204は、ステップS450において次のコマンドを選択できたか否か、すなわちアプリケーションプログラムAの実行手順に従って実行するコマンドが全て実行済み(コマンド終了)になったか否かを判定する(ステップS451)。この時点では、制御部204は、次のコマンドとして撮影コマンド151を選択するため、処理をステップS401に戻し、撮影コマンド151を制御プログラム15からコマンド処理部30に送信する。ステップS401において、コマンド処理部30は、コマンド共有部18のコマンドリスト20を参照して、制御プログラム15から受け取った撮影コマンド151が電子カメラ101(自機器)において実行する内部コマンドであることを判別して、撮影コマンド151を実行する。
Next, the
そして、制御部204は、ステップS401からS406の処理を、アプリケーションプログラムAの実行手順に従って、撮影コマンド151、画像処理コマンド152、付加情報登録コマンド153、保存コマンド154、の順番にそれぞれ実行する。また、ステップS451において、アプリケーションプログラムAの実行手順に従って実行するコマンドが全て実行済み(コマンド終了)になったと判定された場合、制御部204は処理を終了する。
Then, the
このように、本実施形態に係る電子機器連携システム100では、電子カメラ101の制御部204が、制御プログラム15に設定されたコマンドの実行手順に従って、外部コマンドを携帯電話102に送信することにより携帯電話102において実行するとともに、内部コマンドを電子カメラ101において実行することができる。そして、制御部204は、制御プログラム15に設定されたコマンドの実行手順に従って実行された外部コマンドまたは内部コマンドの実行結果を取得した後に、次の手順のコマンドを実行することができる。
As described above, in the electronic
ところで、図10を用いて説明した処理において、例えば、ステップS403において実行結果を取得できないと判定された場合、取得するまでの間は次のコマンドの実行が待たされる、または取得できないために処理が中断されて終了するといった問題がある。例えば、図9に示すアプリケーションプログラムAの実行手順において、電子カメラ101は、携帯電話102からGPSコマンド162の実行結果を取得できない場合、取得するまでの間はシャッターボタンのイベントを受け付けることができず撮影コマンド151の実行ができない。
In the process described with reference to FIG. 10, for example, if it is determined in step S403 that the execution result cannot be acquired, the execution of the next command is awaited until it is acquired, or the process cannot be acquired. There is a problem of being interrupted and exiting. For example, in the execution procedure of the application program A shown in FIG. 9, if the
ここで、携帯電話102からGPSコマンド162の実行結果を取得できない場合とは、例えば、携帯電話102において、動作状態などによってGPSコマンド162を実行する準備ができていない場合、またはGPSコマンド162による処理の実行結果の取得が遅延している場合(測位データの取得に時間がかかっている場合)、などである。また、図9に示すアプリケーションプログラムAが作成された時点では携帯電話102と通信可能であったが、アプリケーションプログラムAが実行される時点では携帯電話102と通信不可能な状態になった場合も、電子カメラ101は、GPSコマンド162の実行結果を取得できない。このような場合、電子カメラ101において撮影処理が行えないために、シャッタータイミングを逃してしまう場合がある。また、実行結果を取得できないことにより、アプリケーションプログラムAの処理が中断されてしまう場合がある。
Here, the case where the execution result of the
上述したように、制御プログラム15に設定されたコマンドの実行手順(アプリケーションプログラムAの実行手順)に従って、コマンドを実行した場合、特に、他機器の動作状況や他機器の所在(場所)の条件などによって、他機器で実行する外部コマンドの実行結果を取得できない場合がある。このようにコマンドの実行結果を取得できない場合、本実施形態に係る電子機器連携システム100では、そのコマンドの実行結果を代替する実行結果(代替実行結果)を取得可能な代替コマンドを実行する。すなわち、電子機器連携システム100では、実行結果を取得できないコマンドの替わりに、代替実行結果を取得するための代替コマンドを実行する。これにより、電子機器連携システム100では、代替コマンドを実行することにより取得した代替実行結果を、取得できなかった実行結果の替わりとして利用することができる。
As described above, when a command is executed in accordance with the command execution procedure set in the control program 15 (application program A execution procedure), in particular, the operation status of other devices, the location (location) conditions of other devices, and the like. Depending on the reason, the execution result of the external command executed by another device may not be acquired. When the execution result of the command cannot be acquired as described above, the electronic
例えば、電子カメラ101は、携帯電話102からGPSコマンド162の実行結果を取得できない場合、GPS162の替わりに位置情報を取得することが可能な代替コマンドを実行する。そして、電子カメラ101は、取得できなかったGPSコマンド162の替わりに実行した代替コマンドにより得られた位置情報(代替実行結果)を取得する。
以下、コマンドの実行結果を取得できない場合に、そのコマンドの代替コマンドを実行することにより代替実行結果を取得する処理(代替処理)を詳しく説明する。
For example, when the
Hereinafter, a process (alternative process) of acquiring an alternative execution result by executing an alternative command of a command when the execution result of the command cannot be acquired will be described in detail.
[代替処理を用いたコマンドの実行処理の説明]
コマンド処理部30は、コマンド共有部18が管理するコマンドに含まれる第1コマンドを実行することにより得られるはずの実行結果である第1実行結果を取得できない場合がある。この場合、コマンド処理部30は、第1コマンドを代替する第2コマンドを実行する。そして、コマンド処理部30は、第2コマンドを実行することにより得られる第2実行結果を、第1実行結果を代替する実行結果(代替実行結果)として取得する。
[Description of command execution processing using alternative processing]
The
図9を用いて説明したアプリケーションプログラムAの実行手順を例に説明すると、まず、制御部204は、コマンドリスト131cの中からGPSコマンド162を、通信部209を介して携帯電話102に送信する。ここで、携帯電話102は、例えば、GPS衛星からの電波を受信できない場合、GPSコマンド162を実行することにより得られるはずの位置情報を取得できない。よって、制御部204は、GPSコマンド162の実行結果を取得することができない。そのため、制御部204は、GPSコマンド162を代替する代替コマンド(例えば、簡易位置情報取得コマンド163)を実行することにより、位置情報(代替実行結果)を取得する(ステップS301)。
The procedure for executing the application program A described with reference to FIG. 9 will be described as an example. First, the
次に、制御部204は、シャッターボタンイベントの取得を可能に制御し、シャッターボタン262が押下されたことを検出した場合(ステップS302)、撮影コマンド151を発行(実行)し、実行結果として撮影画像を取得する(ステップS303)。そして、制御部204は、取得した撮影画像に対して画像処理を実行(画像処理コマンド152発行)することにより画像データを生成する(ステップS304)。ここで、シャッターボタンイベント(ステップS302)、撮影コマンド発行(ステップS303)、および画像処理コマンド発行(ステップS304)の処理は、GPSコマンド162を実行することにより得られる位置情報とは関係なく実行が可能な処理である。
Next, the
続いて、制御部204は、ステップS305の付加情報登録コマンド発行の処理を行う。この処理において、制御部204は、上述のステップS301において取得した代替実行結果としての位置情報を画像データに登録(付加)する(ステップS305)。そして、制御部204は、保存コマンド154を発行して、上述の代替実行結果として取得した位置情報を付加した画像データをメモリカード207aに保存する(ステップS306)。
Subsequently, the
このように、制御部204は、携帯電話102に送信した外部コマンドであるGPSコマンド162の実行結果として位置情報を取得できない場合、このGPSコマンド162を代替する代替コマンド(例えば、簡易位置情報取得コマンド163)を実行することにより位置情報を取得して、制御プログラム15(アプリケーションプログラムA)の実行手順に従って次のコマンドを実行する。これにより、制御部204は、制御プログラム15の処理を中断させることなく継続して実行することができる。すなわち、電子カメラ101は、携帯電話102のGPS機能による位置情報を取得できない場合であっても、代替する位置情報を取得することができるとともに、撮影動作が可能となるように処理を継続することができる。
As described above, when the position information cannot be acquired as the execution result of the
ここで、コマンド共有部18は、コマンドリスト20に登録されているコマンド(内部コマンドまたは外部コマンド)を、機能の種類毎に識別可能なように管理している。例えば、コマンド共有部18は、コマンドリスト20に登録されているコマンドを、機能グループ毎に分類して識別可能なように管理している。
Here, the
図11は、コマンドリスト20に登録されているコマンドの機能グループ毎の分類を示す図である。この図は、電子カメラ101と、携帯電話102と、画像処理サーバ104とがそれぞれ互いのコマンドを共有した際の、それぞれのコマンドの機能グループ毎の分類の一例を示している。この機能グループは、例えばコマンドに含まれるコマンド機能名(撮影機能、位置情報取得機能、プリンタ機能、画像処理機能、超解像度画像処理機能、顔検出機能など)に基づいて識別(分類)される。
FIG. 11 is a diagram showing the classification of commands registered in the
図11に示す例では、撮影機能グループG101には、電子カメラ101が有する静止画撮影コマンドおよび動画撮影コマンドと、携帯電話102が有する静止画撮影コマンドおよび動画撮影コマンドとが含まれている。位置情報取得機能グループG102には、携帯電話102が有するGPSコマンド162および簡易位置情報取得コマンド163が含まれている。画質調整機能グループG103には、電子カメラ101が有する画像処理コマンドと、画像処理サーバ104が有する画像処理コマンドとが含まれている。顔検出機能グループG104には、電子カメラ101が有する顔検出コマンドと、画像処理サーバ104が有する顔認識コマンドとが含まれている。
In the example shown in FIG. 11, the shooting function group G101 includes a still image shooting command and a moving image shooting command that the
同じ機能グループに含まれている複数のコマンドは、それぞれ互いに同等の機能であるか、または、機能の詳細が異なっていたとしても基本的な機能が同様であるため、互いに代替処理を行うことにより代替実行結果を取得することができる。例えば、GPSコマンド162に代えて、簡易位置情報取得コマンド163を代替処理として実行することにより、GPSの測位データに基づく位置情報に比較すると位置精度が劣るが、携帯電話通信網の基地局の場所に基づく位置情報を代替実行結果として取得することができる。
Multiple commands included in the same function group are equivalent to each other, or the basic functions are the same even if the details of the functions are different. An alternative execution result can be acquired. For example, by executing the simple position
例えば、電子カメラ101(コマンド処理部30)は、GPSコマンド162(第1コマンド)を実行することに応じて位置情報を取得できなかった場合、コマンド共有部18が管理しているGPSコマンド162(第1コマンド)を含むコマンドのうち、GPSコマンド162(第1コマンド)を除いてGPSコマンド162(第1コマンド)の機能の種類に識別されるコマンド(例えば、簡易位置情報取得コマンド163)を、代替コマンド(第2コマンド)として実行する。つまり、電子カメラ101の制御部204(コマンド処理部30)は、GPSコマンド162と同じ機能グループ(位置情報取得機能グループG102)に含まれている簡易位置情報取得コマンド163を携帯電話102に送信する。そして、携帯電話102は、簡易位置情報取得コマンド163を実行することにより取得した位置情報を、電子カメラ101に対して送信する。これにより、電子カメラ101の制御部204(コマンド処理部30)は、携帯電話102から簡易位置情報取得コマンド163(代替コマンド)の実行結果である位置情報(代替実行結果)を取得する。
For example, when the electronic camera 101 (command processing unit 30) cannot acquire the position information in response to executing the GPS command 162 (first command), the GPS command 162 (managed by the command sharing unit 18) ( Among the commands including the first command), commands (for example, the simple position information acquisition command 163) identified by the function type of the GPS command 162 (first command) except for the GPS command 162 (first command) Execute as an alternative command (second command) That is, the control unit 204 (command processing unit 30) of the
このように、電子カメラ101(制御部204)は、コマンド処理部30がGPSコマンド162を実行することにより得られる位置情報を取得できない場合、GPSコマンド162と同じ機能に識別される(同じ機能グループに含まれる)コマンドであって、GPSコマンド162を代替する簡易位置情報取得コマンド163を実行する。これにより、電子カメラ101(制御部204)は、簡易位置情報取得コマンド163を実行することにより携帯電話102において得られた位置情報を、代替実行結果として取得することが可能である。
As described above, the electronic camera 101 (control unit 204) is identified as the same function as the
なお、機能グループは、コマンドに含まれるコマンドID(コマンド毎に予め決められた固有ID、或いはコマンド名)に基づいて、さらに詳細な機能毎に識別されてもよい。例えば、位置情報取得機能グループG102は、GPS機能グループG102aと簡易位置情報取得機能グループG102bとに分類(区別)されて識別されてもよい。また。撮影機能グループG101は、静止画撮影機能グループG101aと動画撮影機能グループG101bとに分類(区別)されて識別されてもよい。 The function group may be identified for each more detailed function based on a command ID (a unique ID or command name predetermined for each command) included in the command. For example, the position information acquisition function group G102 may be classified and distinguished into a GPS function group G102a and a simple position information acquisition function group G102b. Also. The shooting function group G101 may be classified and distinguished into a still image shooting function group G101a and a moving image shooting function group G101b.
(代替コマンドの具体例)
続いて、代替コマンドの具体例を説明する。
図12は、代替コマンドの第1例を説明する図である。この図に示す電子カメラ101と、携帯電話102と、画像処理サーバ104とは、通信可能なエリア300内にあって、図11を用いて説明したようにそれぞれのコマンドを機能の種類別に識別可能なように(機能グループ毎に分類して)共有して、互いの機能を利用できるようになっている。ここで、電子カメラ101は、携帯電話102のGPS機能を利用するためにGPSコマンド162を携帯電話102に送信する。しかし、携帯電話102は、建物の中(屋内)にあるため、GPSによる位置情報を取得できない。すなわち、電子カメラ101は、GPSコマンド162を実行しても、その実行結果を取得できない。この場合、電子カメラ101は、携帯電話102のGPS機能の処理を実行するGPSコマンド162の替わりに、携帯電話102の簡易位置情報取得機能の処理を実行する簡易位置情報取得コマンド163を代替コマンドとして実行する(携帯電話102に送信する)。これにより、電子カメラ101は、携帯電話102の簡易位置情報取得機能の処理を実行することにより得られた位置情報を、代替実行結果として取得することができる。
(Specific examples of alternative commands)
Next, a specific example of the alternative command will be described.
FIG. 12 is a diagram illustrating a first example of an alternative command. The
図13は、代替コマンドの第2例を説明する図である。この図に示す例は、電子カメラ101と、携帯電話102Aと、携帯電話102Bと、画像処理サーバ104とが、通信可能なエリア300内にある状態から、その後、携帯電話102Aが通信可能なエリア300外に移動した場合の例である。電子カメラ101において、携帯電話102AのGPS(A)機能を利用したアプリケーションプログラムを作成した後に携帯電話102Aが通信可能なエリア300外に移動した場合、実行する時点では、携帯電話102AのGPS(A)機能を利用できない状態になる。すなわち、電子カメラ101は、GPSコマンド162を実行しても、その実行結果を取得できない。この場合、電子カメラ101は、携帯電話102のGPS(A)機能の処理を実行する替わりに、同じGPS機能グループG102aに含まれる携帯電話102BのGPS(B)機能の処理を実行するコマンドを携帯電話102Bに送信する。これにより、電子カメラ101は、携帯電話102BのGPS(B)機能の処理を実行することにより得られた位置情報を、代替実行結果として取得することができる。
FIG. 13 is a diagram illustrating a second example of an alternative command. The example shown in this figure is an area where the
(代替処理の動作の説明)
次に、図14を参照して、電子機器連携システム100における代替処理を用いたコマンドの実行処理の動作の一例について説明する。
(Explanation of alternative processing operation)
Next, with reference to FIG. 14, an example of a command execution process operation using an alternative process in the electronic
図14は、代替処理を用いたコマンドの実行処理の一例を示すフローチャートである。この図は、図10を用いて説明したコマンドの実行処理において、GPSコマンド162の実行結果を取得できなかった場合に、代替処理として、簡易位置情報取得コマンド163を実行する処理の例を示している。なお、図14において図10の各処理に対応する部分には同一の符号を付け、その説明を省略する。
FIG. 14 is a flowchart illustrating an example of command execution processing using alternative processing. This figure shows an example of a process for executing a simple position
ステップS403において、GPSコマンド162の実行結果を取得していないと判定された場合、制御部204は、代替コマンド検索処理を実行する(ステップS410)。例えば、コマンド処理部30は、GPSコマンド162を代替する代替コマンドとして、GPSコマンド162と同じ機能グループ(位置情報取得機能グループG102)に含まれているコマンドを、コマンドリスト20の中から検索する。
If it is determined in step S403 that the execution result of the
次に、制御部204は、GPSコマンド162を代替する代替コマンドの検索に成功したか否かを判定する。例えば、コマンド処理部30は、コマンドリスト20の中に、GPSコマンド162を代替する代替コマンドが含まれているか否かを判定する(ステップS421)。
Next, the
ステップS421において、代替コマンドの検索に成功した(代替コマンドがある)と判定された場合、制御部204は、検索した代替コマンドを実行する。例えば、コマンド処理部30は、GPSコマンド162を代替するコマンドとして、簡易位置情報取得コマンド163を携帯電話102に送信する。すなわち、制御部204は、GPSコマンド162の代替処理として、簡易位置情報取得コマンド163を実行する(ステップS422)。
In step S421, when it is determined that the search for the alternative command has succeeded (there is an alternative command), the
次に、制御部204(コマンド処理部30)は、簡易位置情報取得コマンド163を実行することにより得られた位置情報(代替コマンドの実行結果、代替実行結果)を、携帯電話102から取得する(ステップS423)。続いて、制御部204は、ステップS450に処理を進め、図10を用いて説明したように、アプリケーションプログラムAの実行手順に従って、ステップS401からS406の処理を、撮影コマンド151、画像処理コマンド152、付加情報登録コマンド153、保存コマンド154、の順番にそれぞれ実行して処理を終了する。
Next, the control unit 204 (command processing unit 30) acquires the position information (substitute command execution result and alternative execution result) obtained by executing the simple position
一方、ステップS421において、代替コマンドの検索に失敗した(代替コマンドが無い)と判定された場合、制御部204は、代替コマンドが無いことを示すエラー表示と、処理を終了するか否かを選択可能なメニュー表示を表示部206に表示させる(ステップS425)。そして、制御部204は、処理を終了するか否かを選択可能なメニューに対するユーザの操作入力に応じて、処理を終了するか否か(エラー終了するか否か)を判定する(ステップS426)。
On the other hand, if it is determined in step S421 that the search for the substitute command has failed (no substitute command), the
ステップS426において、処理を終了する(エラー終了する)と判定された場合、制御部204は、コマンドの実行処理を終了する(エラー終了する)。一方、ステップS426において、処理を終了しない(エラー終了しない)と判定された場合、制御部204は、ステップS450に処理を進めて次のコマンドの実行処理に移行する。
If it is determined in step S426 that the process is to be terminated (error termination), the
このように、制御部204(コマンド処理部30)は、携帯電話102に送信した外部コマンドであるGPSコマンド162の実行結果として位置情報を取得できない場合、このGPSコマンド162を代替する代替コマンド(例えば、簡易位置情報取得コマンド163)を実行することにより代替実行結果の位置情報を取得する。
As described above, when the position information cannot be acquired as the execution result of the
これにより、電子カメラ101は、例えば、携帯電話102のGPS機能による位置情報を取得できない場合であっても、GPS機能に替わる位置情報を取得する簡易位置情報取得機能による位置情報を代替実行結果として取得することができる。よって、電子カメラ101は、撮影動作が可能となるように処理を継続することができる。すなわち、電子カメラ101は、制御プログラム15において実行したコマンドの実行結果を取得できない場合であっても、代替コマンドによる代替実行結果を取得できるとともに、制御プログラム15の処理を中断させることなく継続して実行することができる。
Thereby, for example, even when the
図15は、代替コマンド検索処理の一例を示すフローチャートである。続いて、図15を参照して、図14のステップS410の代替コマンド検索処理の動作について詳しく説明する。 FIG. 15 is a flowchart illustrating an example of an alternative command search process. Next, with reference to FIG. 15, the operation of the alternative command search process in step S410 of FIG. 14 will be described in detail.
まず、コマンド処理部30は、コマンドリスト20から、実行結果を取得できなかったコマンド(例えば、GPSコマンド162)と同じ機能グループ(例えば、位置情報取得機能グループG102)に含まれているコマンドを検索する(ステップS412)。
First, the
次に、コマンド処理部30は、コマンドリスト20内に、同じ機能グループに含まれているコマンドがあるか否か、すなわち代替可能なコマンドがあるか否かを判定する(ステップS412)。
Next, the
ステップS412において、代替可能なコマンドがあると判定された場合、コマンド処理部30は、検索した同じ機能グループに含まれているコマンド(例えば、簡易位置情報取得コマンド163)を代替コマンドとして決定し(ステップS415)、検索成功(代替コマンドあり)と判定して(ステップS416)、処理を終了する。
In step S412, when it is determined that there is a command that can be replaced, the
一方、ステップS412において、代替可能なコマンドが無いと判定された場合、コマンド処理部30は、検索失敗(代替コマンド無し)と判定して(ステップS419)、処理を終了する。
On the other hand, if it is determined in step S412 that there is no replaceable command, the
このように、コマンド処理部30は、実行結果を取得できなかったコマンド(例えば、GPSコマンド162)と同じ機能グループに含まれているコマンド(例えば、簡易位置情報取得コマンド163)を代替コマンドとして検索して決定することができる。
As described above, the
なお、コマンド処理部30は、図13に示すように携帯電話102AのGPS(A)機能の処理を実行するコマンドの実行結果を取得でない場合、GPS(A)機能を実行するコマンドと同じ機能グループに含まれている携帯電話102BのGPS(B)機能の処理を実行するコマンドを、代替コマンドとして決定してもよい。この場合、電子カメラ101は、GPSの測位データに基づく位置情報を取得できるため、例えば、簡易位置情報機能(A)により検出された位置情報よりも検出精度がよい位置情報を取得できる。
When the
図16は、代替コマンド検索処理の別の例を示すフローチャートである。この図16に示す検索処理は、図15のステップS412において、コマンドリスト20内に同じ機能グループに含まれているコマンドが無い、すなわち代替可能なコマンドが無いと判定された場合に、代替可能なコマンドを探索(検索、サーチ)する処理を実行する。なお、図16において図15の各処理に対応する部分には同一の符号を付け、その説明を省略する。
FIG. 16 is a flowchart illustrating another example of the alternative command search process. The search process shown in FIG. 16 can be replaced when it is determined in step S412 of FIG. 15 that there is no command included in the same function group in the
ステップS412において、代替コマンドが無いと判定された場合、コマンド処理部30は、機能連携可能な機器をコマンドサーチ部22に探索させる。例えば、コマンドサーチ部22は、探索範囲を、Bluetooth(登録商標)の規格に対応する通信で通信可能なエリアの範囲からWi−Fi(登録商標)の規格に対応する通信で通信可能なエリアの範囲に広げて、機能連携可能な機器を探索する(ステップS417)。
In step S412, when it is determined that there is no alternative command, the
そして、ステップS417の探索処理によって、新たに連携可能な機器があった場合、その連携可能な機器が備えている機能の処理を実行可能なコマンドが、コマンド共有部18のコマンドリスト20に追加される。
If there is a device that can be newly linked by the search processing in step S417, a command that can execute the process of the function of the device that can be linked is added to the
次に、コマンド処理部30は、新たに連携可能な機器があるか否かを判定する。例えば、コマンド処理部30は、コマンド共有部18のコマンドリスト20内に新たにコマンドが追加されたか否かに基づいて、新たに連携可能な機器があるか否かを判定する(ステップS418)。
Next, the
ステップS418において、新たに連携可能な機器があると判定された場合、コマンド処理部30は、ステップS411に処理を戻し、再び、コマンドリスト20から、実行結果を取得できなかったコマンド(例えば、GPSコマンド162)と同じ機能グループに含まれているコマンドを検索する。
If it is determined in step S418 that there is a device that can be newly linked, the
一方、ステップS418において、新たに連携可能な機器がないと判定された場合、コマンド処理部30は、検索失敗(代替コマンド無し)と判定して(ステップS419)、処理を終了する。
On the other hand, if it is determined in step S418 that there is no new device that can be linked, the
このように、コマンド処理部30は、実行結果を取得できなかったコマンド(例えば、GPSコマンド162)と同じ機能グループに含まれているコマンドが無い場合、代替コマンドとして利用できるコマンドを備えている連携可能な機器を、コマンドサーチ部22に探索させる。これにより、コマンド処理部30は、コマンドリスト20内に代替コマンドがない場合、新たに連携可能な機器を探索することにより連携可能となった機器のコマンドから代替コマンドを検索することができる。
As described above, the
(複数コマンドから代替コマンドを選択する処理)
なお、実行結果を取得できなかったコマンド(例えば、GPSコマンド162)と同じ機能グループに含まれているコマンドが複数ある場合がある。例えば、図13に示す例では、携帯電話102BのGPS(B)機能の処理を実行するコマンドと、携帯電話102Bの簡易位置情報取得(B)機能の処理を実行するコマンドと、がある。この場合、コマンド処理部30は、実行結果を取得できなかったコマンド(例えば、携帯電話102AのGPS(A)機能の処理を実行するコマンド)と同様の検出精度が得られるGPS(B)機能の処理を実行するコマンドを選択してもよい。また、コマンド処理部30は、GPS(B)機能の処理時間よりも簡易位置情報取得(B)機能の処理時間が短い場合、簡易位置情報取得(B)機能の処理を実行するコマンドを選択してもよい。
(Process to select an alternative command from multiple commands)
There may be a plurality of commands included in the same function group as the command (for example, the GPS command 162) for which the execution result could not be acquired. For example, in the example illustrated in FIG. 13, there are a command for executing the process of the GPS (B) function of the
すなわち、コマンド共有部18が、実行結果を取得できなかったコマンド(第1コマンド)を除いて、この第1コマンドの機能のグループに含まれる(第1コマンドの機能の種類に識別される)複数のコマンドを管理している場合、コマンド処理部30は、この複数のコマンドのうちから代替コマンド(第2コマンド)を選択する。例えば、コマンド処理部30のコマンド選択部32は、上述の複数のコマンドそれぞれの処理が実行される機器における性能を示す情報に基づいて、代替コマンドを選択する。
In other words, except for the command (first command) for which the
ここで、上述の性能を示す情報とは、例えば、機能に応じて予め設定されている性能を示す情報であり、例えば、コマンドそれぞれが有する情報に含まれている。以下に、性能を示す情報の例を示す。
・処理速度:コマンドを実行してから実行結果を取得するまでに要する処理時間に影響する処理速度。
・処理の正確さ、精密さ:処理により得られる実行結果のレベル。例えば、GPS機能と簡易位置情報取得機能とを比較した場合、GPS機能の方が、より正確(精密)に位置情報を取得可能である。
・各機器の所在:コマンドを実行する他機器の自機器に対する所在。例えば、他機器のGPS機能を利用して自機器の所在位置を検出する場合、自機器に対する他機器の所在位置(距離)が検出位置の性能に影響する。
・周囲環境:処理結果の性能に影響する周囲の環境条件(温度、湿度等の条件)。
Here, the above-described information indicating the performance is information indicating the performance set in advance according to the function, for example, and is included in the information included in each command, for example. An example of information indicating performance is shown below.
Processing speed: The processing speed that affects the processing time required to execute the command and acquire the execution result.
Processing accuracy and precision: The level of execution results obtained by processing. For example, when the GPS function is compared with the simple position information acquisition function, the GPS function can acquire the position information more accurately (accurately).
-Location of each device: Location of the other device that executes the command to its own device. For example, when the location of the own device is detected using the GPS function of the other device, the location (distance) of the other device relative to the own device affects the performance of the detected position.
-Ambient environment: Ambient environmental conditions (conditions such as temperature and humidity) that affect the performance of processing results.
コマンド選択部32は、上述の例に示すような、機能に応じて予め設定されている性能を示す情報に基づいて、実行するコマンドを選択する。 The command selection unit 32 selects a command to be executed based on information indicating the performance set in advance according to the function as shown in the above example.
なお、コマンド選択部32は、コマンド機能名、コマンドIDを、上述の性能を示す情報として利用してもよい。また、コマンド選択部32は、自機器に対して適した処理を行う他機器の機能の処理を実行するコマンドを選択するために、機器の情報(例えば、機器の種別情報、機器ID、メーカID、型番を示す情報等)を、上述の性能を示す情報として利用してもよい。また、コマンド選択部32は、各機器の所有者を特定する情報(所有者ID)、性別、年齢等を示す情報、または国別を示す情報(国ID)を、上述の性能を示す情報として利用してもよい。また、上述の性能を示す情報は、時間の経過にともなって変化する性能(例えば、機器のリソース状態)を示す情報であってもよい。 Note that the command selection unit 32 may use the command function name and the command ID as information indicating the above-described performance. In addition, the command selection unit 32 selects device information (for example, device type information, device ID, manufacturer ID) in order to select a command for executing processing of a function of another device that performs processing suitable for the device itself. , Information indicating the model number, etc.) may be used as information indicating the above-described performance. Further, the command selection unit 32 uses information indicating the owner of each device (owner ID), information indicating sex, age, etc., or information indicating country (country ID) as information indicating the above-described performance. May be used. Further, the information indicating the performance described above may be information indicating the performance (for example, the resource state of the device) that changes over time.
なお、コマンド選択部32は、実行結果として得られるデータ形式が代替可能な同様のデータ形式であるコマンドを、代替コマンドとして選択する。 Note that the command selection unit 32 selects, as an alternative command, a command having a similar data format that can replace the data format obtained as an execution result.
(複数コマンドから代替コマンドを選択する具体例)
続いて、複数コマンドから代替コマンドを選択する具体例を説明する。
図17は、複数コマンドから代替コマンドを選択する第1例を説明する図である。この図に示す電子カメラ101と、携帯電話102Aと、携帯電話102Bと、画像処理サーバ104と、ナビゲーション端末装置106とは、通信可能なエリア300内にある状態から、その後、携帯電話102Aが通信可能なエリア300外に移動した場合の例である。すなわち、上述の全ての機器が通信可能なエリア300内にある状態においては、位置情報取得機能グループG102には、携帯電話102AのGPS(A)機能の処理と簡易位置情報取得(A)機能の処理とをそれぞれ実行するコマンド、携帯電話102BのGPS(B)機能の処理と簡易位置情報取得(B)機能の処理とをそれぞれ実行するコマンド、およびナビゲーション端末装置106のGPS(C)機能の処理を実行するコマンドが含まれている。
(Specific example of selecting an alternative command from multiple commands)
Next, a specific example of selecting an alternative command from a plurality of commands will be described.
FIG. 17 is a diagram illustrating a first example of selecting an alternative command from a plurality of commands. Since the
ここで、電子カメラ101が、携帯電話102AのGPS(A)機能の処理を実行するコマンドを実行した際に、携帯電話102Aが通信可能なエリア300外に移動していた場合、電子カメラ101は、GPS(A)機能の処理の実行結果を取得できない。そのため、電子カメラ101は、位置情報取得機能グループG102内の複数のコマンドから選択したコマンドを代替コマンドとして実行する。例えば、コマンド選択部32は、GPS(B)機能の処理を実行するコマンド、簡易位置情報取得(B)機能の処理を実行するコマンド、およびGPS(C)機能の処理を実行するコマンドのうちから、それぞれのコマンドが実行される機器における性能を示す情報に基づいて代替コマンドを選択する。
Here, when the
例えば、GPS(B)機能の処理、簡易位置情報取得(B)機能の処理、およびGPS(C)機能の処理のうち、簡易位置情報取得(B)機能の処理が最も速い処理速度の処理であって、GPS(C)機能の処理が最も正確な位置を取得可能な処理であるとする。この場合において、コマンド選択部32は、例えば、条件設定部33に設定された優先条件が、「処理速度を優先」であった場合、簡易位置情報取得(B)機能の処理を実行するコマンドを代替コマンドとして選択する。これにより、電子カメラ101は、処理速度を優先した簡易位置情報取得(B)機能の処理を実行することにより得られた位置情報を、代替実行結果として取得することができる。
For example, among the processing of the GPS (B) function, the processing of the simple position information acquisition (B) function, and the processing of the GPS (C) function, the processing of the simple position information acquisition (B) function is the fastest processing speed processing. It is assumed that the GPS (C) function process is a process capable of acquiring the most accurate position. In this case, for example, when the priority condition set in the
また、コマンド選択部32は、例えば、条件設定部33に設定された優先条件が、「処理の正確さや精密さを優先」であった場合、GPS(C)機能の処理を実行するコマンドを代替コマンドとして選択する。これにより、電子カメラ101は、処理の正確さや精密さを優先したGPS(C)機能の処理を実行することにより得られた位置情報を、代替実行結果として取得することができる。
Further, for example, when the priority condition set in the
図18は、複数コマンドから代替コマンドを選択する第2例を説明する図である。この図に示す電子カメラ101と、携帯電話102と、画像処理サーバ104Bと、画像処理サーバ104Cとは、通信可能なエリア300内にある状態の例であって、それぞれのコマンドを機能の種類別に識別可能なように(機能グループ毎に分類して)共有して、互いの機能を利用できるようになっている。例えば、画質調整機能グループG103には、電子カメラ101の画像処理(A)機能の処理を実行するコマンド、画像処理サーバ104Bの画像処理(B)機能の処理を実行するコマンド、および画像処理サーバ104Cの画像処理(C)機能の処理を実行するコマンドが含まれている。
FIG. 18 is a diagram for explaining a second example of selecting an alternative command from a plurality of commands. The
ここで、電子カメラ101が、画像処理サーバ104Bの画像処理(B)機能の処理を実行するコマンドを実行した場合に、画像処理サーバ104Bにおいて画像処理(B)機能の処理が正常に終了しなかったとする。例えば、電子カメラ101は、画像処理(B)機能の処理を実行するコマンドを実行することに応じて、その実行結果を取得できずにエラー応答を取得した場合、画像処理(A)機能の処理を実行するコマンド、および画像処理(C)機能の処理を実行するコマンドのうちから代替コマンドを選択する。
Here, when the
例えば、画像処理(A)機能の処理を実行するコマンド、および画像処理(C)機能の処理を実行するコマンドのうち、画像処理(A)機能の処理が最も速い処理速度の処理であって、画像処理(C)機能の処理が最も正確な色再現処理や精密なノイズ低減処理が行われる画像処理(画像処理後の画質が最もよい画像処理)であるとする。この場合において、コマンド選択部32は、例えば、条件設定部33に設定された優先条件が、「処理速度を優先」であった場合、画像処理(A)機能の処理を実行するコマンドを代替コマンドとして選択する。これにより、電子カメラ101は、処理速度を優先した画像処理(A)機能の処理を実行することにより得られた画像を、代替実行結果として取得することができる。
For example, among commands that execute processing of the image processing (A) function and commands that execute processing of the image processing (C) function, processing of the image processing (A) function is processing at the fastest processing speed, Assume that the processing of the image processing (C) function is image processing (image processing with the best image quality after image processing) in which the most accurate color reproduction processing or precise noise reduction processing is performed. In this case, for example, when the priority condition set in the
また、コマンド選択部32は、例えば、条件設定部33に設定された優先条件が、「処理の正確さや精密さを優先」であった場合、画像処理(C)機能の処理を実行するコマンドを代替コマンドとして選択する。これにより、電子カメラ101は、処理の正確さや精密さを優先した画像処理(C)機能の処理を実行することにより得られた画像を、代替実行結果として取得することができる。
Further, for example, when the priority condition set in the
(複数コマンドから代替コマンドを選択する処理の動作)
次に、図19を参照して、代替コマンド検索処理において、代替可能な複数コマンドから代替コマンドを選択する処理の動作の一例について説明する。
(Operation of selecting an alternative command from multiple commands)
Next, with reference to FIG. 19, an example of the operation of selecting an alternative command from a plurality of alternative commands in the alternative command search process will be described.
図19は、複数コマンドから代替コマンドを選択する処理を用いた代替コマンド検索処理の一例を示すフローチャートである。この図は、図15に示す代替コマンド検索処理に対して、複数の代替可能なコマンドがあった場合に代替コマンドを選択する処理(ステップS413、S414)を実行する点が異なる。なお、図19において図15の各処理に対応する部分には同一の符号を付け、その説明を省略する。 FIG. 19 is a flowchart illustrating an example of an alternative command search process using a process of selecting an alternative command from a plurality of commands. This figure is different from the alternative command search process shown in FIG. 15 in that a process of selecting an alternative command (steps S413 and S414) is executed when there are a plurality of alternative commands. In FIG. 19, parts corresponding to the respective processes in FIG.
ステップS412において、代替可能なコマンドがあると判定された場合、コマンド処理部30は、代替可能なコマンドが複数あるか否かを判定する(ステップS413)。ステップS413において、代替可能なコマンドが複数あると判定された場合、コマンド選択部32は、性能を示す情報に基づいて、代替可能な複数コマンドから代替コマンドを選択する。例えば、コマンド選択部32は、代替可能な複数コマンドのうち、条件設定部33により設定された優先条件に従った性能に応じたコマンドを、代替コマンドとして選択する(ステップS414)。そして、コマンド処理部30は、ステップS414においてコマンド選択部32が選択したコマンド(代替コマンド)を、代替コマンドとして決定する(ステップS415)。
If it is determined in step S412 that there are replaceable commands, the
一方、ステップS413において、代替可能なコマンドが1つと判定された場合、コマンド処理部30は、ステップS415に処理を進め、検索した同じ機能グループに含まれているコマンドを代替コマンドとして決定する。
On the other hand, if it is determined in step S413 that there is one replaceable command, the
このように、コマンド処理部30は、実行結果を取得できなかったコマンドと同じ機能グループに含まれているコマンドが複数ある場合、その複数のコマンドから、性能(処理速度や処理の正確さ等)の優先条件に従って代替コマンドを選択する。これにより、コマンド処理部30は、実行結果を取得できなかったコマンドの替わりに実行する代替コマンドを適切に選択することができる。
Thus, when there are a plurality of commands included in the same function group as the command for which the execution result could not be obtained, the
以上説明してきたように、上記実施形態の電子機器連携システム100によれば、電子機器10(例えば電子カメラ101)は、他機器(例えば、携帯電話102)で実行する外部コマンドの実行結果を取得できない場合であっても、実行結果を取得できなかった外部コマンドを代替する代替コマンドを実行することにより、取得できなかった実行結果を代替する代替実行結果を取得することができる。例えば、電子機器10は、実行結果を取得できなかった外部コマンドと同じ機能の種類に識別されるコマンドを、代替コマンドとして実行することができる。また、電子機器10は、実行結果を取得できなかった外部コマンドと同じ機能の種類に識別される複数のコマンドから、性能を示す情報に基づいて選択したコマンド(性能の優先条件に従って選択したコマンド)を代替コマンドとして実行することができる。
As described above, according to the electronic
よって、電子機器10は、他機器の状態によって、制御プログラム15の処理に従って実行したコマンドの実行結果を取得できない場合であっても、代替実行結果を取得することができるとともに、制御プログラム15の処理を中断させることなく継続して実行することができる。
Therefore, the
なお、上記実施形態では、他機器で実行する外部コマンドの実行結果を取得できない場合に、その外部コマンドを代替する代替コマンドを実行する代替処理を説明したが、自機器で実行する内部コマンドの実行結果を取得できない場合に、その内部コマンドを代替する代替コマンドを実行する代替処理としてもよい。すなわち、上記実施形態の電子機器連携システム100によれば、電子機器10は、外部コマンドにより処理を実行する他機器の機能と、内部コマンドにより処理を実行する自機器の機能とを同様の機能として利用することができる。
In the above embodiment, an alternative process for executing an alternative command that replaces the external command when the execution result of the external command executed on the other device cannot be obtained has been described. When the result cannot be acquired, an alternative process for executing an alternative command that replaces the internal command may be used. In other words, according to the electronic
よって、上記実施形態の電子機器連携システム100によれば、電子機器10は、制御プログラム15の処理に従って、自機器または他機器において実行したコマンドの実行結果を取得できない場合であっても、代替コマンドによる代替実行結果を取得することができる。つまり、電子機器は、制御プログラム15の処理に従って実行したコマンドの実行結果を取得できない場合であっても、制御プログラム15の処理を中断させることなく継続して実行することができる。
Therefore, according to the electronic
このように、本実施形態によれば、他機器の様々な機能を自機器の機能と同じように利用することができる。 Thus, according to this embodiment, various functions of other devices can be used in the same manner as the functions of the own device.
また、上記実施形態において、位置情報取得機能の処理、または画質調整機能の処理を実行した実行結果を取得できない場合の代替処理について説明したが、その他の機能の処理についても同様に適用することができる。 Further, in the above-described embodiment, the alternative processing when the execution result obtained by executing the processing of the position information acquisition function or the processing of the image quality adjustment function cannot be acquired has been described, but the processing can be similarly applied to the processing of other functions. it can.
また、上記実施形態において、電子カメラ101が、自機器の内部コマンドと他機器の外部コマンドとを共有して実行する際の代替処理を例に説明したが、電子カメラ101以外の電子機器10が、自機器の内部コマンドと他機器の外部コマンドとを共有して実行する際の代替処理としてもよい。
Further, in the above-described embodiment, the alternative process when the
また、上記実施形態では、電子機器10として電子カメラ101、携帯電話102、画像処理サーバ104、およびナビゲーション端末装置106を主な例として説明したが、これらに限られるものではない。本発明の電子機器10は、電子機器の例として前述したようなプリンタ、FAX、テレビ、ビデオ、等であってもよいし、また、コンピュータ、ゲーム機、電子辞書、電子玩具など、その他の電子機器であってもよい。
In the above embodiment, the
なお、上述のC機能プラットホーム16(251)、または制御部204は専用のハードウェアにより実現されるものであってもよく、また、メモリおよびCPU(中央演算装置)により構成され、上述の各部の機能を実現するためのプログラムをメモリにロードして実行することによりその機能を実現させるものであってもよい。
The above-described C function platform 16 (251) or the
また、上述のC機能プラットホーム16(251)、または制御部204の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより上述の各部の処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。
Further, a program for realizing the functions of the above-described C function platform 16 (251) or the
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよい。
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.
以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design and the like within a scope not departing from the gist of the present invention.
10 電子機器、14 通信回路(通信部)、15 制御プログラム(制御部)、18 コマンド共有部(コマンド管理部)、22 コマンドサーチ部(コマンド探索部)、30 コマンド処理部、32 コマンド選択部、33 条件設定部、101 電子カメラ、102 携帯電話、104 画像処理サーバ、204 制御部、209 通信部 10 electronic equipment, 14 communication circuit (communication unit), 15 control program (control unit), 18 command sharing unit (command management unit), 22 command search unit (command search unit), 30 command processing unit, 32 command selection unit, 33 condition setting unit, 101 electronic camera, 102 mobile phone, 104 image processing server, 204 control unit, 209 communication unit
Claims (7)
他機器が備えている機能の処理を実行するコマンドを含むコマンドを管理するコマンド管理部と、
前記コマンド管理部が管理するコマンドを実行するとともに、実行することにより得られた実行結果を取得するコマンド処理部と、
を備え、
前記コマンド処理部は、
前記コマンド管理部が管理するコマンドに含まれる第1コマンドを実行することにより、前記第1コマンドを実行することにより得られる実行結果である第1実行結果を取得できなかった場合、前記第1コマンドを代替する第2コマンドを実行する
ことを特徴とする電子機器。 A communication unit that communicates with other devices;
A command management unit for managing commands including commands for executing processing of functions provided by other devices;
A command processing unit that executes a command managed by the command management unit and acquires an execution result obtained by executing the command,
With
The command processing unit
If the first execution result that is the execution result obtained by executing the first command cannot be obtained by executing the first command included in the command managed by the command management unit, the first command An electronic device characterized by executing a second command that substitutes for.
前記コマンドを前記機能の種類毎に識別可能なように管理しており、
前記コマンド処理部は、
前記コマンド管理部が管理している前記第1コマンドを含むコマンドのうち、前記第1コマンドを除いて前記第1コマンドの前記機能の種類に識別されるコマンドを、前記第2コマンドとして実行する
ことを特徴とする請求項1に記載の電子機器。 The command management unit
The command is managed so that it can be identified for each type of function,
The command processing unit
Of the commands including the first command managed by the command management unit, the command identified by the function type of the first command except the first command is executed as the second command. The electronic device according to claim 1.
を備え、
前記コマンド処理部は、
前記コマンド管理部が管理している前記第1コマンドを含むコマンドのうち、前記第1コマンドを除いて前記第1コマンドの前記機能の種類に識別されるコマンドが含まれていない場合、前記第1コマンドを代替する前記第2コマンドを、前記通信部を介して接続される他機器から、前記コマンド探索部を介して探索する
ことを特徴とする請求項1または2に記載の電子機器。 A command search unit for searching for a command to execute processing of a function provided in the other device from the other device connected via the communication unit;
With
The command processing unit
Of the commands including the first command managed by the command management unit, except for the first command, when the command identified by the function type of the first command is not included, the first The electronic device according to claim 1, wherein the second command substituting for the command is searched for from the other device connected via the communication unit via the command search unit.
前記第2コマンドを実行することにより得られた実行結果である第2実行結果を、前記第1実行結果を代替する結果として取得する
ことを特徴とする請求項1から3の何れか一項に記載の電子機器。 The command processing unit
The second execution result, which is an execution result obtained by executing the second command, is acquired as a result that replaces the first execution result. 4. The electronic device described.
前記コマンド管理部が前記第1コマンドを除いて前記第1コマンドの前記機能の種類に識別される複数のコマンドを管理している場合、前記複数のコマンドそれぞれの処理が実行される機器における性能を示す情報に基づいて、前記複数のコマンドから前記第2コマンドを選択するコマンド選択部、
を備えることを特徴とする請求項1から4の何れか一項に記載の電子機器。 The command processing unit
In the case where the command management unit manages a plurality of commands identified by the function type of the first command except for the first command, the performance in a device in which the processing of each of the plurality of commands is executed A command selection unit that selects the second command from the plurality of commands based on the information indicated;
The electronic apparatus according to claim 1, further comprising:
複数の前記性能を示す情報の優先条件を設定する条件設定部、
を備え、
前記コマンド選択部は、
前記条件設定部により設定された前記優先条件と、前記性能を示す情報とに基づいて、前記複数のコマンドから前記第2コマンドを選択する
ことを特徴とする請求項5に記載の電子機器。 The command processing unit
A condition setting unit for setting priority conditions for information indicating a plurality of the performances;
With
The command selection unit
The electronic device according to claim 5, wherein the second command is selected from the plurality of commands based on the priority condition set by the condition setting unit and information indicating the performance.
通信部を介して他機器と通信を行う通信ステップと、
他機器が備えている機能の処理を実行するコマンドを含むコマンドを管理するコマンド管理ステップと、
前記コマンド管理ステップにおいて管理するコマンドに含まれる第1コマンドを実行することにより、前記第1コマンドを実行することにより得られる実行結果である第1実行結果を取得できなかった場合、前記第1コマンドを代替する第2コマンドを実行するコマンド処理ステップと、
を実行させるためのプログラム。 On the computer,
A communication step for communicating with other devices via a communication unit;
A command management step for managing commands including commands for executing processing of functions provided by other devices;
When the first execution result that is the execution result obtained by executing the first command cannot be obtained by executing the first command included in the command managed in the command management step, the first command A command processing step for executing a second command substituting
A program for running
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012075500A JP2013206221A (en) | 2012-03-29 | 2012-03-29 | Electronic device and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012075500A JP2013206221A (en) | 2012-03-29 | 2012-03-29 | Electronic device and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013206221A true JP2013206221A (en) | 2013-10-07 |
Family
ID=49525213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012075500A Pending JP2013206221A (en) | 2012-03-29 | 2012-03-29 | Electronic device and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013206221A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015036644A (en) * | 2013-08-13 | 2015-02-23 | カシオ計算機株式会社 | Information communication device, information communication system, information communication method, and program |
-
2012
- 2012-03-29 JP JP2012075500A patent/JP2013206221A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015036644A (en) * | 2013-08-13 | 2015-02-23 | カシオ計算機株式会社 | Information communication device, information communication system, information communication method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101879256B1 (en) | Image capturing apparatus, control method therefor, and storage medium | |
JP2016123137A (en) | Image communication apparatus and imaging apparatus | |
JP5928455B2 (en) | Digital camera for digital image sharing | |
JP6127382B2 (en) | Electronic device, control method and program | |
EP1804502A2 (en) | Information processing apparatus and method, and computer program therefor | |
US11647132B2 (en) | Communication terminal, method for controlling communication terminal, communication system, and storage medium | |
US20140253742A1 (en) | Imaging operation terminal, imaging system, imaging operation method, and program device | |
JP5743579B2 (en) | Imaging apparatus, control method thereof, and program | |
WO2016038973A1 (en) | Photographing control device, photographing device, photographing control method, and program | |
WO2013084337A1 (en) | Image pickup apparatus, control method thereof, and program | |
KR101606134B1 (en) | Apparatus and method for connecting device using the image recognition in portable terminal | |
US20140210941A1 (en) | Image capture apparatus, image capture method, and image capture program | |
US20140032551A1 (en) | Communication apparatus, method of controlling the communication apparatus, and recording medium | |
KR20080012940A (en) | Digital camera | |
JP2018037894A (en) | Electronic device and control method of the same | |
JP6155953B2 (en) | Information communication apparatus, information communication system, information communication method, and program | |
JP2019193145A (en) | Information processing device | |
JP2013206220A (en) | Electronic device and program | |
JP2009260599A (en) | Image display apparatus and electronic camera | |
JP2018136702A (en) | Communication device and control method thereof, program and recording medium | |
JP2013206221A (en) | Electronic device and program | |
JP2013206222A (en) | Electronic device and program | |
JP2022053356A (en) | Communication device, control method thereof, and program | |
US10178296B2 (en) | Imaging apparatus, control method of imaging apparatus, imaging system, and portable display device | |
US9467549B2 (en) | External apparatus, communication apparatus, and control method therefor |