JP5430410B2 - COMMUNICATION DEVICE AND ITS CONTROL METHOD - Google Patents
COMMUNICATION DEVICE AND ITS CONTROL METHOD Download PDFInfo
- Publication number
- JP5430410B2 JP5430410B2 JP2010000794A JP2010000794A JP5430410B2 JP 5430410 B2 JP5430410 B2 JP 5430410B2 JP 2010000794 A JP2010000794 A JP 2010000794A JP 2010000794 A JP2010000794 A JP 2010000794A JP 5430410 B2 JP5430410 B2 JP 5430410B2
- Authority
- JP
- Japan
- Prior art keywords
- service
- file
- communication device
- transfer
- communication
- 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
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Description
本発明は、通信システムにおけるサービスネゴシエーションの制御技術に関する。 The present invention relates to a service negotiation control technique in a communication system.
非特許文献1には、通信路を介した機器間で実行するファイル転送サービスにて、通信路の設定をトリガにして、双方の機器で同一ファイルに対するサービスを実行する場合、サービスの起動の順序は、起動側からサービスを実行することが記載されている。また特許文献1には、通信路の設定を契機にしてファイルを転送する場合に、同一ファイル名のファイルが被転送側に存在する際の上書き防止するため、転送元機器の機器識別情報を転送対象ファイル名に付加して記憶する方法が記載されている。
In
異なるサービスを要望する機器同士が夫々のサービスを実行すると、無駄な通信が行われてしまうことがある。例えば、記憶しているファイルを機器同士で同期させる同期(シンク)サービスを要望する機器Aと、指定されたファイルを相手に転送するプッシュサービスを要望する機器Bとが接続した場合を考える。この場合、先に同期サービスを実行してしまうと、機器Aは機器Aに記憶していないファイルを機器Bから取得して、ファイルを同期する。その後、機器Bは指定されているファイルを機器Aに転送する。ここで、機器Bが機器Aに転送したファイルは既に機器Aが同期サービスにより取得済みであり、機器Aは同じファイルを複数記憶することになってしまう。 When devices requesting different services execute the respective services, useless communication may be performed. For example, consider a case where a device A that desires a synchronization service that synchronizes stored files between devices and a device B that desires a push service for transferring a specified file to the other party are connected. In this case, if the synchronization service is executed first, the device A acquires a file not stored in the device A from the device B and synchronizes the file. Thereafter, device B transfers the designated file to device A. Here, the file transferred from the device B to the device A is already acquired by the device A by the synchronization service, and the device A stores a plurality of the same files.
以上のように、プッシュサービスを行う機器と同期サービスを行う機器が接続すると、同一ファイルが重複して転送されてしまい、無駄な通信が発生することになる。また、機器Aがプッシュサービスを要望するファイルと、機器Bがプルサービスを要望するファイルとが同じ場合も、同一ファイルが重複して転送されてしまい、無駄な通信が発生することになる。このように、機器が実行するサービスによっては、機器同士が接続してサービスを実行すると無駄な通信が発生してしまう。 As described above, when the device that performs the push service and the device that performs the synchronization service are connected, the same file is transferred repeatedly, and wasteful communication occurs. Further, even when the file for which the device A requests the push service and the file for which the device B requests the pull service are the same, the same file is transferred repeatedly, resulting in useless communication. As described above, depending on the service executed by the devices, useless communication occurs when the devices are connected to each other and execute the service.
本発明は、プッシュ転送サービスおよびシンク転送サービスが起動中の機器間にピアトゥピア型通信路が設定されても、同一ファイルの重複転送が回避可能な技術を提供することを目的とする。 An object of the present invention is to provide a technique capable of avoiding duplicate transfer of the same file even when a peer-to-peer communication path is set between devices in which the push transfer service and the sink transfer service are activated.
上記課題を解決するため、To solve the above problem,
外部通信装置との接続に応じてシンク転送を行なう通信装置は、A communication device that performs sync transfer according to the connection with an external communication device
外部通信装置と通信する通信手段と、A communication means for communicating with an external communication device;
前記通信手段により前記外部通信装置と接続した際に、該外部通信装置が要求する通信サービスを判定する判定手段と、Determining means for determining a communication service requested by the external communication device when connected to the external communication device by the communication means;
前記判定手段により前記外部通信装置がファイルのプッシュ転送サービスを要求していると判定した場合に、前記プッシュ転送サービスの後に前記外部通信装置とシンク転送を実行し、前記判定手段により前記外部通信装置が前記プッシュ転送サービスと異なる通信サービスを要求していると判定した場合に、当該要求された通信サービスの実行の前に前記外部装置と前記シンク転送を実行する実行手段と、を備えることを特徴とする。When the determination unit determines that the external communication device requests a file push transfer service, the external communication device performs sync transfer with the external communication device after the push transfer service, and the determination unit performs the external communication device. And executing means for executing the sink transfer before executing the requested communication service when it is determined that the communication service is different from the push transfer service. And
プッシュ転送サービスおよびシンク転送サービスが起動中の機器間にピアトゥピア型通信路が設定されても同一ファイルの重複転送を回避可能にすることができる。 Even if a peer-to-peer communication path is set between devices for which the push transfer service and the sink transfer service are activated, it is possible to avoid duplicate transfer of the same file.
<実施形態1>
図1は、本実施形態のピアトゥピア型通信路により接続可能な通信システムに関する構成図である。本システムは撮像装置1とPC2で構成され、撮像装置1とPC2との間はピアトゥピア型通信路である、近接無線通信路4により接続されている。近接無線通信路4は、電磁誘導を利用した非接触ICカード無線通信やNFC(Near Field Communcation)などの誘導電界を利用した通信路である。
<
FIG. 1 is a configuration diagram relating to a communication system connectable by a peer-to-peer communication path according to the present embodiment. This system includes an
また、撮像装置1は、撮影済みの最新画像ファイルのPC2への転送サービスを要望しており、PC2は撮影済み画像ファイル格納フォルダ内のファイルのシンク転送サービスを要望している。
In addition, the
図2は、本実施形態における、撮像装置1およびPC2内の機能構成ブロック図である。撮像装置1には、近接無線通信路300の媒体を制御する近接無線通信部301、近接無線通信部の制御を行なう通信制御部302、および通信プロトコル制御を行なう通信ミドルウェア303が、ピアトゥピア通信インタフェース機能部として実装されている。
FIG. 2 is a functional block diagram of the
更に、撮影済みの最新画像ファイルのPC2への転送サービスを行なう機器内アプリケーション305がインストールされている。機器内アプリケーション305として、プッシュ転送サービスに関するユーザ操作を行なうファイルプッシュサービスのファイルプッシュモードのコントロールポイント304と、ファイル送受信アプリケーション306とが実装されている。
Furthermore, an in-
また、PC2には、近接無線通信路300媒体を制御する近接無線通信部307、近接無線通信部の制御を司る通信制御部308、および通信プロトコル制御を行なう通信ミドルウェア309が、ピアトゥピア通信インタフェース機能部として実装されている。
Further, the PC 2 includes a proximity
更に、撮影済み画像格納フォルダ内のファイルシンク(同期)転送サービスを司る機器内アプリケーション311がインストールされている。機器内アプリケーション311として、シンク転送サービスに関するユーザ操作を行なうファイルシンク(Sync)サービスのコントロールポイント310と、ファイル送受信アプリケーション312が実装されている。
Furthermore, an in-
図3は、実施形態1における同一ファイルに対するプッシュ転送サービスおよびシンク転送サービス同時起動時の制御シーケンスチャートの例を示す図である。また図4は、本発明の実施形態の各機器における動作フローチャートの例を示す図である。以下、図3のシーケンスチャート、図4のフローチャートを用いて、実施形態1の処理手順に関して説明する。 FIG. 3 is a diagram illustrating an example of a control sequence chart at the time of simultaneous activation of the push transfer service and the sink transfer service for the same file in the first embodiment. FIG. 4 is a diagram illustrating an example of an operation flowchart in each device according to the embodiment of the present invention. Hereinafter, the processing procedure of the first embodiment will be described with reference to the sequence chart of FIG. 3 and the flowchart of FIG. 4.
ユーザ操作または他の外部入力により、PC2(通信装置)にある撮影済み画像格納フォルダのファイルシンク転送サービス(第1転送モードによる転送サービス)がPC2に要求され、PC2はこの要求を受付ける。これにより、PC2内のファイルシンクサービス用のファイル送受信アプリケーション312は、通信ミドルウェア309に対してサービスのシンクスタート要求を送信する(S401)。ここで、ファイルシンク転送では、通信の相手方におけるシンクフォルダ中のファイルと、自身のシンクフォルダ内のファイルが同じになるように(同期するように)、通信の相手方から、足りないファイル、または、最新のファイルを取得(プル)する。
A file sync transfer service (transfer service in the first transfer mode) of the captured image storage folder in the PC 2 (communication device) is requested from the PC 2 by a user operation or other external input, and the PC 2 accepts this request. As a result, the file transmission /
一方、撮像装置1(外部通信装置)に対しても、ユーザ操作または他の外部入力により、ファイルプッシュサービス(第2転送モードによる転送サービス)が要求され、撮像装置1はこの要求を受付ける。ここで、プッシュ転送とは、選択したファイルのみを通信の相手方に送信することを意味する。また、ユーザ操作または他の外部入力により、撮影済み画像格納フォルダから選択した画像ファイルをPC2の撮影済み画像格納フォルダへ転送するファイルプッシュサービスが要求されたとする。
On the other hand, a file push service (transfer service in the second transfer mode) is also requested for the imaging apparatus 1 (external communication apparatus) by a user operation or other external input, and the
撮像装置1内のファイルプッシュ転送サービス用のファイル送受アプリケーション306は、通信ミドルウェア303にサービスのプッシュスタート要求を行なう(S402)。近接無線通信のインタフェースとして、通信の相手方に接続し、通信の動作を主導するイニシエータモードと、そのイニシエータモードの通信に応答する応答モードがある。
The file transmission /
本発明の各実施形態においては、PC2は、はじめに起動され、常にシンク転送を行なうことを仮定している。つまり、PC2は、撮像装置1よりも前に起動しているので、必ずイニシエータモードとして動作し、撮像装置1に接続要求を送信する。また、通信の接続を受ける撮像装置1は、常にPC2の後で起動するので、応答モードとして動作し、プッシュ転送を行なうと仮定している。
In each embodiment of the present invention, it is assumed that the
従って、PC2は起動することにより、シンク転送を行なうために、ユーザや外部機器から転送サービスのシンクスタート要求(Sync Start)を受付ける(S401)。PC2は、イニシエータモードで動作するので、撮像装置1へ接続するために、接続要求メッセージを送信する(S403、S404)。そして、これと併せて、PC2側の起動要望サービス情報(ファイルシンクサービス)を情報パラメータにて通知する。 Accordingly, when the PC 2 is activated, it receives a sync service start request (Sync Start) from the user or an external device in order to perform sync transfer (S401). Since the PC 2 operates in the initiator mode, a connection request message is transmitted in order to connect to the imaging device 1 (S403, S404). Along with this, the PC 2 side activation request service information (file sync service) is notified by an information parameter.
また、撮像装置1は、ユーザから既にファイルプッシュ転送サービスのプッシュスタート要求(Push Start)を受付けていると仮定する。撮像装置1は、応答モードで動作するので、近接無線通信媒体経由での接続表示(Connec.Ind)の受信を待ち受ける(S405)。撮像装置1の通信ミドルウェア303は、ステップS405で通信の相手方における起動要望サービスの情報(転送パラメータ)を認識する。
Further, it is assumed that the
撮像装置1は、自身の起動要望サービス情報であるファイルプッシュ転送サービス情報を接続受諾メッセージの送信(S406、S407)に併せて、情報パラメータにて通知することによりファイルプッシュ転送要求を行なう。
The
従来は、イニシエータモードのPC2からのシンク転送を優先させて、シンク転送を受信していた。しかしながら、この実施形態では、ファイルプッシュ転送要求を、シンク転送よりも優先する。そのため、図2の撮像装置1の通信ミドルウェア303は、機器内アプリケーション305に対して、自身の転送を優先させるため(ファイルプッシュ転送サービスの実行許可のため)StartAckを送る(S409)点に特徴がある。
Conventionally, sync transfer is received with priority given to sync transfer from the
図4において、はじめから、撮像装置1の動作を説明する。S501で、撮像像装置1側は応答モードで動作するので、「No」を選択し、S502で接続表示(Connction Ind.)をPC2から受信する。次に、S506において、撮像装置1は、通信の相手方であるPC2の起動要望のサービスがあるかどうかを判断する。もしサービスが要求されていなければ、S510に進む。もしサービスの要求があれば、S507でそのサービスが、ファイルプッシュサービスであるかどうかを判断する。もしファイルプッシュサービスでなければ、S510へ進む。
In FIG. 4, the operation of the
このサービスの要求が、ファイルプッシュサービスであれば、撮像装置1は、PC2のサービスを優先させるが、この例では、PC2のサービスの要求は、シンクサービスである。従って、S511へ進み、撮像装置1自身の起動要求サービスであるファイルプッシュ転送サービスの実行許可を通知する。この動作は、撮像装置1の通信ミドルウェア303が機器内アプリケーション305に通知することにより行なわれる(S409)。
If the request for this service is a file push service, the
図4において、はじめから、PC2の動作について説明する。S501で、PC2はイニシエータとして動作する。従って、S502で、接続要求を撮像装置1へ送信する。S504で、PC2(のメッセージ受信手段)は、撮像装置1からの接続受託メッセージを受信する(S408)。従来は、PC2は、接続受託メッセージを受け取った時点で、撮像装置1へACKを返して、自身のシンク転送の許可を与えて、シンク転送を開始していた。しかしながら、本実施形態では、以下のように、PC2はシンク転送をすぐには行なわず、プッシュ転送を優先するように動作する。
In FIG. 4, the operation of the
つまり、まずS505で自身の要求サービスを撮像装置1が認識しているかどうかを判断する。この判断は、撮像装置1が接続受託メッセージの中に含まれるファイルシンクサービスの要求を確認して接続受託メッセージをPC2へ返したこと、そして、PC2が接続受託メッセージにプッシュサービスの要求が含まれること、を確認することで行なわれる。そしてS506で、PC2は、撮像装置1(対向機)からファイルプッシュ転送サービスの起動要望があることを確認する。
That is, first, in S505, it is determined whether or not the
次に、S507において、PC2は、撮像装置1のサービスの要求がファイルプッシュサービスであるかどうかを判断する。この例では、撮像装置1は、ファイルプッシュサービスの起動要求を行なっている。従って、接続受託メッセージの情報パラメータの1つである起動要望(ファイルプッシュの起動要望)を確認する。そして、PC2は、S508へ進み、起動要望情報の内容に従って、自身の起動要望サービスである、ファイルシンクサービスの起動延期を通知する(S410)。この動作は、通信ミドルウェア309が機器内アプリケーションへ通知することにより行なわれる。S510において、PC2は、撮像装置1からのデータペイロードがアイドルとなる時間を規定期間に対して計側する。
In step S <b> 507, the
この後、S509で、撮像装置1始動のファイルプッシュ転送サービス(S411〜S415)が実行される。つまり、ファイルプッシュ転送サービスのディスカバリが行なわれる(S411)。そして、撮像装置1は、PC2の転送先フォルダの存在確認処理を実行する(S412)。その後、撮像装置はPC2の転送先フォルダを選択し(S413、S414)、対象ファイルをプッシュ転送する(S415)。
Thereafter, in S509, the file push transfer service (S411 to S415) for starting the
PC2(の転送受信の手段)が撮像装置1による転送対象ファイルの転送を受信し、全ての完了後、ファイルプッシュサービスに伴うデータペイロードの通信が無くなり、アイドル状態となる。S509において、PC2は、撮像装置1からのデータペイロードのアイドルの時間が規定期間継続したことを計側する。S510にて、PC2は、実行延期中のファイルシンクサービスの起動を通知する(S417)。この動作は、PC2内の通信ミドルウェア309が機器内アプリケーション311へ通知することにより行なわれる。
The PC 2 (the transfer receiving means) receives the transfer of the transfer target file by the
この後、S512で、PC2始動のファイルシンク転送サービス(S418〜S422)が実行される。このために、ファイルシンク転送サービスのディスカバリ(S418)後に、撮像装置1側のシンク対象フォルダの存在確認処理(S419)を実行する。すなわち、PC2は、撮像装置1のシンク対象フォルダ内にあるすべてのファイル名とファイル更新日を確認し(S419)、自身のシンクフォルダ内の、プッシュ転送で受信したファイルを含むすべてのファイルの名称とファイルの更新日時と比較する。(尚、本実施例では、撮像装置1から送信された同一ファイル名のファイルが、PC2のシンクフォルダに格納されると、更新日の新しいファイルにより、旧いファイルが書き換えられると仮定している。)そして、撮像装置1のシンク対象フォルダ内のファイルで、PC2に存在しないか、或は最新でないファイルを、転送対象ファイルとして選択し(S421)、選択されたファイルが撮影装置からPC2へプル転送(S422)される。
Thereafter, in S512, a file sync transfer service (S418 to S422) started by PC2 is executed. Therefore, after the discovery of the file sync transfer service (S418), the sync target folder existence confirmation process (S419) on the
以上のように、PC2へのプッシュ転送サービスを希望する撮像装置1と、シンク転送サービスを希望するPC2との間で転送させる場合、起動される連繋サービスの順序を、プッシュ転送サービスを優先し、その後シンク転送サービスを実行するように制御する。実施形態1では、このように動作させることにより、画像ファイルの重複転送を防止することが出来るので、これまでのような画像ファイル転送による通信資源および情報記憶資源の浪費を避けることができる。
As described above, when the transfer is performed between the
<実施形態2>
実施形態1においては、撮像装置1およびPC2の双方の機器にサービスネゴシエーション機能が実装されている例を示した。しかしながら、少なくとも、ファイルのシンク転送サービスを要望する機器側にサービスネゴシエーション機能が実装されていれば、同等の効果が得られるので、この実施例を実施形態2で説明する。つまり、実施形態2においては、ファイルのシンク転送サービスを要望する機器であるPC2にサービスネゴシエーション機能が実装されており、撮像装置1には実装されていない例を示す。以下、サービスネゴシエーション機能を持たない機器をレガシータイプの機器という。PC2側が、イニシエータモードで、撮像装置1が応答モードで起動するのは、実施形態1と同様である。
<
In the first embodiment, an example in which the service negotiation function is implemented in both the
図5は、実施形態2の同一ファイルに対するプッシュ転送サービスおよびシンクプル転送サービスの同時起動時の制御シーケンスチャート例を示す。以下、図5のシーケンスチャートおよび図4のフローチャートを用いて、実施形態2の動作フローについて説明する。 FIG. 5 shows an example of a control sequence chart at the time of simultaneous activation of the push transfer service and the sync pull transfer service for the same file according to the second embodiment. The operation flow of the second embodiment will be described below using the sequence chart of FIG. 5 and the flowchart of FIG.
ユーザ操作により、PC2にある撮影済み画像格納フォルダのファイルのシンク転送サービスがPC2に要求され、PC2はこの要求を受付ける。これにより、PC2内のファイルシンクサービス用のファイル送受信アプリケーション312は、通信ミドルウェア309に対してサービスのシンクスタート要求を行なう(S601)。
As a result of the user operation, a sync transfer service for a file in the captured image storage folder in the
また撮像装置1に対しても、ユーザ操作により、選択した画像ファイルをPC2の撮影済み画像格納フォルダ内へ転送するファイルプッシュサービスが要求され、撮像装置1はこの要求を受付ける。撮像装置1内のファイルプッシュ転送サービス用のファイル送受信アプリケーション306は、通信ミドルウェア303にサービスのプッシュスタート要求を行なう(S602)。
The
図4のステップS501で、ファイルサービスのシンクスタート要求601を受付けたPC2が、イニシエータモードで動作する。S502で、PC2は、通信ミドルウェア309を介して、シンク転送サービスのため、撮像装置1へ接続要求を行なう。ステップS502において、接続要求メッセージの送信(S603、S604)に併せて、PC2側のファイルシンク転送サービスを含む起動要望サービス情報を情報パラメータにて通知する。
In step S501 of FIG. 4, the
次に、図4により、撮像装置側1の動作を説明する。撮像装置1は、ファイルプッシュ転送サービスのプッシュスタート要求602を受付けていると仮定している。従って、S501で、撮像装置1は、PC2から接続要求を受信し、応答モードで動作する。ステップ503で、近接無線通信媒体経由での接続表示の受信を待ち受ける(S605)。実施形態2では、撮像装置1はレガシー機器なので、通信の相手方、この場合、PC2から送られた起動要望サービスの情報を認識できない。このため、撮像装置1は、転送要求パラメータを含まないレガシータイプ(既存)の接続受諾メッセージの送信をPC2に対して行なう(S606、S607)。レガシータイプの撮像装置1は、自身の起動要望サービス情報であるファイルプッシュ転送サービス情報、ファイルシンクサービスの認識情報は付加しない接続受諾メッセージを送信する。
Next, the operation of the
撮像装置1は、通信の相手方であるPC2に起動要望のサービスの存在が認識できないが、近接無線通信路300の設定完了を契機にして、自身の起動要求サービスであるファイルプッシュ転送サービスの実行許可を通知する(S609)する。この動作は、撮像装置1の通信ミドルウェア303が機器内アプリケーション305に実行許可を通知することで行なわれる。
The
さて、次に、図4におけるPC2の動作について説明する。S504にて、PC2は、撮像装置1からの接続受諾表示の受信を行なう(S608)。このメッセージがレガシーであることから、PC2は、通信の相手方である撮像装置1が、自身のファイルシンクサービスの起動要望を認識していないこと、および撮像装置1がレガシーモードで動作している機器であることを認識する。
Next, the operation of the
S505において、PC2は、対向機である撮像装置1が自機の要求サービスを認識していないこと判断し、S508で、自身の起動要望サービスである、ファイルシンクサービスの起動延期を通知する(S610)。この動作は、PC2の通信ミドルウェア309が機器内アプリケーション311に起動延期を通知することで行なわれる。
In step S505, the
S509において、PC2は、データペイロードのアイドルの時間を規定期間に対して計側開始する。これと並行して、S509で、撮像装置1の始動によるPC2へのファイルプッシュ転送サービス(S611〜S615)が実行される。つまり、撮像装置1は、ファイルプッシュ転送サービスのディスカバリ(S611)が完了すると、PC2側の転送先フォルダの存在確認処理を実行する(S612)。この後、転送先フォルダを決定し(S613)、そのフォルダを選択する(S614)。そして、撮像装置1は、PC2へ対象ファイルをプッシュ転送する(S615)。
In S509, the
撮像装置1による転送対象ファイルの転送が全て終了すると、ファイルプッシュサービスに伴うデータペイロードの通信が無くなりアイドル状態となる。また、撮像装置1がファイルプッシュサービスを実行しなかった場合は、撮像装置1からのデータペイロードの通信は無いためにアイドル状態となる。
When all the transfer of the transfer target file by the
S510において、PC2は、撮像装置1からのデータペイロードのアイドルの時間が規定期間だけ継続したことを計側する。S511にて、PC2は、実行延期中のファイルシンクサービスの起動を通知する(S617)。この動作は、PC2内の通信ミドルウェア309が機器内アプリケーション311へ通知することにより行なわれる。
In S510, the
この後、S512で、PC2の始動によるファイルシンク転送サービス(S618〜S622)が実行される。つまり、ファイルシンク転送サービスのディスカバリ(S618)の後に、PC2は、撮像装置1側のシンク対象フォルダの存在確認処理(S619)を実行する。
Thereafter, in S512, a file sync transfer service (S618 to S622) by the start of the
すなわち、PC2は、撮像装置1のシンク対象フォルダ内にあるすべてのファイル名とファイル更新日を確認し(S619)、自身のシンクフォルダ内の、プッシュ転送で受信したファイルを含むすべてのファイルとファイル更新日と比較する。(尚、本実施例では、撮像装置1から送信された同一ファイル名のファイルが、PC2のシンクフォルダに格納されると、更新日の新しいファイルにより、旧いファイルが書き換えられると仮定している。)そして、撮像装置1のシンク対象フォルダ内のファイルで、PC2に存在しないファイルおよび最新でないファイルを、転送対象ファイルとして選択し(S621)、選択されたファイルが撮影装置からPC2へプル転送(S622)される。
That is, the
以上のように、プッシュ転送サービスを希望する撮像装置1と、シンク転送サービスを希望するPC2との間で転送させる場合、起動される連繋サービスの順序をレガシーな機器のプッシュ転送サービスを優先し、その後PC2側のシンク転送サービスを実行する。
As described above, when the transfer is performed between the
実施形態2では、このように動作させることにより、ファイルのシンク転送サービスを要望する機器にサービスネゴシエーション機能を備えることにより、冗長な画像ファイル転送を未然に防止することができる。この構成をとることで、これまでのように冗長な画像ファイルの重複転送による通信資源および情報記憶資源の浪費を避けることができる。 In the second embodiment, by operating in this manner, a device that requests a file sync transfer service is provided with a service negotiation function, thereby preventing redundant image file transfer. By adopting this configuration, it is possible to avoid wasting communication resources and information storage resources due to redundant transfer of redundant image files as before.
<実施形態3>
実施例形態3においては、ファイルのシンク転送サービスを要望する機器であるPC2にのみサービスネゴシエーション機能が実装され、かつ、PC2側のファイルのシンク転送サービスのみが要望されている例を示す。
<Embodiment 3>
In the third embodiment, an example is shown in which the service negotiation function is implemented only in the
図6は、実施形態3のシンクファイル転送サービスだけが起動される場合の制御シーケンスの例を示す。図4および図6を用いて本実施形態の動作を説明する。 FIG. 6 shows an example of a control sequence when only the sync file transfer service of the third embodiment is activated. The operation of this embodiment will be described with reference to FIGS.
ユーザ操作により、PC2にある撮影済み画像格納フォルダのファイルのシンク転送サービスがPC2に要求され、PC2はこの要求を受付ける。これにより、PC2内のファイルシンクサービス用のファイル送受信アプリケーション312は、通信ミドルウェア309に対してサービスのシンクスタート要求を行なう(S701)。
As a result of the user operation, a sync transfer service for a file in the captured image storage folder in the
この実施形態では、撮像装置1に対して、ユーザの操作による、機器連繋サービスのスタート要求は行なわれない。図4においてPC2の動作を説明する。ステップS501で、ファイルシンクサービスのシンクスタート要求701を受付けたPC2は、イニシエータモード動作を行なう(S501)。そして、ステップS502で、接続要求メッセージの撮像装置1への送信(S703、S704)に併せて、PC側のファイルシンクサービスに関する起動要望サービス情報(ファイルシンクサービス)を撮像装置1へ情報パラメータにて通知する。
In this embodiment, the start request for the device connection service is not made to the
次に、図4を用いて撮像装置1の動作を説明する。S501で、撮像装置1は応答モードで動作する。ステップS503で、近接無線通信媒体経由での接続表示の受信(S705)を待ち受けるが、この実施形態では、撮像装置1はレガシー機器と仮定しているので、通信の相手方からの起動要望サービスの情報を送ってもその情報を認識できない。このため、撮像装置1は、(ファイル転送サービス認識情報を付加しない)既存の接続受諾メッセージの送信を行なう(S706、S707)。
Next, the operation of the
これに対して、PC2は、ステップS504で、撮像装置1からの接続受諾表示の受信を行なう(S708)。そして、PC2は、撮像装置1がPC2のファイルシンクサービスの起動要望を認識していないこと、およびレガシーモードの動作状態にあることを、レガシーの接続受託表示を受信することで認識する。
On the other hand, the
ステップS505で、PC2は、対向機である撮像装置1が自機の要求サービスを認識していないこと判断し、S508で、自身の起動要望サービスである、ファイルシンクサービスの起動延期を通知する(S710)。この動作は、PC2内の通信ミドルウェア309が機器内アプリケーション311へ通知することにより行なわれる。この後、ステップS509で、データペイロードのアイドルの継続する時間を計測する。撮像装置1側は、何ら連繋通信サービスを起動しない。従って、撮像装置1によるデータペイロードの通信は、はじめから存在しない。
In step S505, the
ステップS509において、PC2は撮像装置1のデータペイロードのアイドル継続時間が規定時間を越えることを確認した後(S716)、ステップS510で、実行延期中のファイルシンクサービスの起動を通知する(S717)。
In step S509, the
この後、PC2始動のファイルシンク転送サービスが実行される(S718〜S722)。つまり、PC2は、ファイルシンク転送サービスのディスカバリ後に(S718)、撮像装置1側のシンク対象フォルダの存在確認処理を実行する(S719)。そして、撮像装置1のシンク対象フォルダ内のファイルで、PC2に存在しないファイルおよび最新でないファイルを、転送対象ファイルとして選択し(S721)、選択されたファイルが撮影装置からPC2へプル転送(S722)される。
Thereafter, a file sync transfer service started by the
以上のように、実施形態3では、撮像装置1は、撮影済みの最新画像を記憶しているが、ファイル転送サービスを要望していない場合について説明した。つまり、PC2側のみが撮影済み画像ファイル格納フォルダ内のファイルのシンク転送サービスを要望している。このような条件の下、ネゴシエーション機能を備える構成をとることで、この撮像装置1がたとえレガシー機器であっても、PC2は、要望している撮像装置1へのシンク転送サービスを問題なく起動できるという効果を生み出すことができる。
As described above, in the third embodiment, the
<実施形態4>
実施形態1〜3においては、双方の機器にて要望しているサービスを選択的に、順次起動させることにより、転送ファイルの重複を予防する例を示した。このような形態のほかに、双方から転送サービスの要望があるとき、一方の転送サービスを排他的に起動し、他方の転送サービスの起動を禁止し、他方の転送を中止する方法を実施形態4として説明する。
<
In the first to third embodiments, an example has been shown in which duplication of transfer files is prevented by selectively starting sequentially the services requested by both devices. In addition to such a mode, when there is a request for a transfer service from both sides, a method for exclusively starting one transfer service, prohibiting the other transfer service from starting, and canceling the other transfer is described in
排他起動処理の条件として、シンク転送サービスの優先度をプッシュ転送よりも低く判定して、重複するファイル転送を避けるための実施形態を、図7のフローチャートと図8のシーケンスの図に示す。 As a condition for exclusive activation processing, an embodiment for determining the priority of the sink transfer service to be lower than that of push transfer and avoiding duplicate file transfer is shown in the flowchart of FIG. 7 and the sequence diagram of FIG.
まずユーザ操作により、PC2にある撮影済み画像格納フォルダのファイルのシンク転送サービスがPC2に要求され、PC2はこの要求を受付ける。これにより、PC2内のファイルシンクサービス用のファイル送受信アプリケーション312は、通信ミドルウェア309に対してサービスのシンクスタート要求を行なう(S901)。
First, a user operation requests the
また撮像装置1に対しても、ユーザ操作により、選択した画像ファイルをPC2の撮影済み画像格納フォルダ内へ転送するファイルプッシュサービスが要求され、撮像装置1はこの要求を受付ける。撮像装置1内のファイルプッシュ転送サービス用のファイル送受信アプリケーション306は、通信ミドルウェア303にサービスのプッシュスタート要求を行なう(S902)。
The
図7において、ファイルサービスのシンクスタート要求を受付けたPC2が、S801で、イニシエータモード動作する。そして、S802で、PC2は、通信ミドルウェア309を介して、シンク転送サービスのための撮像装置1への接続要求メッセージの送信(S903、S904)に併せて、PC2側のファイルシンクサービスの起動要望サービス情報を情報パラメータにて通知する。
In FIG. 7, the
また、図7において、ステップ801で、撮像装置1は、ユーザからファイルプッシュ転送サービスのプッシュスタート要求を受付けた後、応答モードで動作する。そしてS803で、近接無線通信媒体経由での接続表示(Connec.Ind)の受信を待ち受ける(S905)。そしてステップS806で、接続表示とともに送られてきた、通信の相手方のPC2における起動要望サービスの情報(転送パラメータ)を確認し、対向機に起動サービス要求があるかどうかを判断する。この実施形態では、PC2は、ファイルシンク転送サービスを要望しているので、S807で、対向機のサービスがファイルシンク転送であることを認識する。撮像装置1は、PC2の起動要望がファイルシンク転送サービスであり、自身の起動要望であるプッシュ転送の方が優先すべきであることを認識し、自身の起動要求サービスであるファイルプッシュ転送サービスの実行許可を通知する(S909)。この動作は、撮像装置1内の通信ミドルウェア303が機器内アプリケーション305へ通知することにより行なわれる。
In FIG. 7, in step 801, the
また、撮像装置1は、自身の起動要望サービス情報であるファイルプッシュ転送サービス情報を接続受諾要求(Accept Request)の送信に併せて、自身のファイルプッシュ転送の要望を示す情報パラメータをPC2へ通知する(S906,S907)。
In addition, the
S804で、PC2は接続受諾表示(Accept Ind.)の受信を行なう(S908)。S805で、PC2は、自身のシンク転送サービスの要望が撮像装置1側で認識しているかどうかを確認する。この場合、接続受諾表示メッセージは、転送の要望を示すパラメータと共に返送されているので、認識されていると判断する。S806で、PC2は、通信の相手方である撮像装置1が自身に対するファイルプッシュ転送サービスを行なう要望があることを認識する。S807で、PC2は、そのサービスがファイルプッシュサービスであり、優先すべき対象サービスであることを接続受諾表示メッセージの情報パラメータにより認識する(S908)。
In S804, the
ステップS809で、PC2は、相手方である撮像装置1の起動要求サービスであるファイルプッシュ転送サービスを優先し、自身の起動要求サービスをキャンセルする(S908)。撮像装置1は、自身の始動するファイルプッシュ転送サービス(S911〜S915)を実行する。つまり、撮像装置1は、ファイルプッシュ転送サービスのディスカバリ(S911)が完了すると、PC2側の転送先フォルダの存在確認処理を実行する(S912)。この後、転送先フォルダを決定し(S913)、そのフォルダを選択する(S914)。そして、撮像装置1は、PC2へ対象ファイルをプッシュ転送する(S915)。
In step S809, the
このような制御方法により、1つのファイル転送サービスが完結した後に、起動されなかったファイル転送サービスを行なう起動側の機器、つまりPC2で、要望ファイル転送サービス、つまりファイルシンク転送が未実行であった旨を表示する。
By such a control method, the requested file transfer service, that is, the file sync transfer, has not been executed on the start side device that performs the file transfer service that has not been started, that is, the
上記処理により、冗長な画像ファイル転送を未然に防止することができ、画像ファイル転送のために浪費される、通信資源、情報記憶資源の無駄を排除することが出来る。 By the above processing, redundant image file transfer can be prevented in advance, and waste of communication resources and information storage resources that are wasted for image file transfer can be eliminated.
Claims (6)
外部通信装置と通信する通信手段と、
前記通信手段により前記外部通信装置と接続した際に、該外部通信装置が要求する通信サービスを判定する判定手段と、
前記判定手段により前記外部通信装置がファイルのプッシュ転送サービスを要求していると判定した場合に、前記プッシュ転送サービスの後に前記外部通信装置とシンク転送を実行し、前記判定手段により前記外部通信装置が前記プッシュ転送サービスと異なる通信サービスを要求していると判定した場合に、当該要求された通信サービスの実行の前に前記外部装置と前記シンク転送を実行する実行手段と、
を備えることを特徴とする通信装置。 A communication device that performs sync transfer according to connection with an external communication device,
Communication means for communicating with the external communication device,
When connected to the external communication apparatus by said communication means, determining means for communication services external communication device requests,
When the determination unit determines that the external communication device requests a file push transfer service, the external communication device performs sync transfer with the external communication device after the push transfer service, and the determination unit performs the external communication device. Execution means for executing the sink transfer with the external device before the execution of the requested communication service when it is determined that the communication service is different from the push transfer service ,
A communication apparatus comprising:
前記判定手段により前記外部通信装置がサービスネゴシエーション機能を有する装置でないと判定した場合に、前記実行手段は、前記シンク転送の実行を延期することを特徴とする請求項1に記載の通信装置。The communication device according to claim 1, wherein when the determination unit determines that the external communication device is not a device having a service negotiation function, the execution unit postpones the execution of the sync transfer.
通信手段が外部通信装置と通信する通信工程と、
判定手段が、前記通信手段により外部通信装置と接続した際に、該外部通信装置が要求する通信サービスを判定する判定工程と、
実行手段が、前記判定手段により前記外部通信装置がファイルのプッシュ転送サービスを要求していると判定した場合に、前記プッシュ転送サービスの後に前記外部通信装置とシンク転送を実行し、前記判定手段により前記外部通信装置が前記プッシュ転送サービスと異なる通信サービスを要求していると判定した場合に、当該要求された通信サービスの実行の前に前記外部装置と前記シンク転送を実行する実行工程と、
を有することを特徴とする方法。 A method of controlling a communication device that performs sync transfer according to connection with an external communication device,
A communication step in which the communication means communicates with the external communication device;
A determination step of determining a communication service requested by the external communication device when the determination unit is connected to the external communication device by the communication unit;
When the execution unit determines that the external communication device is requesting a file push transfer service by the determination unit, the execution unit executes sync transfer with the external communication device after the push transfer service. An execution step of executing the sink transfer with the external device before execution of the requested communication service when it is determined that the external communication device is requesting a communication service different from the push transfer service;
Method characterized by having a.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010000794A JP5430410B2 (en) | 2010-01-05 | 2010-01-05 | COMMUNICATION DEVICE AND ITS CONTROL METHOD |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010000794A JP5430410B2 (en) | 2010-01-05 | 2010-01-05 | COMMUNICATION DEVICE AND ITS CONTROL METHOD |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2011141623A JP2011141623A (en) | 2011-07-21 |
| JP5430410B2 true JP5430410B2 (en) | 2014-02-26 |
Family
ID=44457441
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010000794A Expired - Fee Related JP5430410B2 (en) | 2010-01-05 | 2010-01-05 | COMMUNICATION DEVICE AND ITS CONTROL METHOD |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5430410B2 (en) |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101917745B (en) * | 1999-05-17 | 2013-05-01 | 艾利森电话股份有限公司 | Capability negotiation system, apparatus and method in a telecommunications network |
| JP2001352360A (en) * | 2000-06-06 | 2001-12-21 | Yamaha Corp | Call transmission method, line terminator and recording medium |
| JP4577803B2 (en) * | 2000-08-30 | 2010-11-10 | 富士通株式会社 | COMMUNICATION METHOD AND TRANSMITTER |
| US7395446B2 (en) * | 2004-05-03 | 2008-07-01 | Microsoft Corporation | Systems and methods for the implementation of a peer-to-peer rule-based pull autonomous synchronization system |
| JP4345796B2 (en) * | 2006-09-29 | 2009-10-14 | ブラザー工業株式会社 | COMMUNICATION METHOD, COMMUNICATION SYSTEM AND SERVER, CLIENT AND COMPUTER PROGRAM |
| EP1944944A1 (en) * | 2007-01-12 | 2008-07-16 | Thomson Licensing | System and method for combining pull and push modes |
| JP2008283373A (en) * | 2007-05-09 | 2008-11-20 | Sharp Corp | Facsimile machine |
-
2010
- 2010-01-05 JP JP2010000794A patent/JP5430410B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2011141623A (en) | 2011-07-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4878218B2 (en) | Imaging apparatus having communication function, control method thereof, and program | |
| CN105306768B (en) | Information processing device and control method thereof | |
| JP5943623B2 (en) | Image forming apparatus, control method thereof, and program | |
| KR101761102B1 (en) | Communication apparatus, method of controlling the same, computer program, and computer-readable storage medium | |
| US20160127581A1 (en) | Communication system, communication apparatus, method of controlling the same, information processing apparatus, method of controlling the same and storage medium | |
| JP6512982B2 (en) | Communication device, control method of communication device, and program | |
| EP2846524A2 (en) | Wireless communication apparatus, wireless communication method, program, and storage medium | |
| JP5171436B2 (en) | COMMUNICATION DEVICE, DATA COMMUNICATION SYSTEM, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM | |
| JP2016034084A (en) | Management device, management system, control method for management device, control method for management system, and program | |
| KR20180064979A (en) | Communication system, image forming apparatus, method of controlling the same, and storage medium | |
| JP2017038356A (en) | Information processing apparatus, information processing apparatus control method, image forming apparatus, image forming apparatus control method, information processing system, and program | |
| JP6116345B2 (en) | Information processing apparatus, information processing system, and information processing method | |
| JP2005161768A (en) | Image formation device, image formation system, image formation method, image-formation control program and recording medium in which image formation control program is recorded while computer reading being possible | |
| JP2014197741A (en) | Radio communication device, radio communication method, radio communication device control program, and radio communication system | |
| JP5430410B2 (en) | COMMUNICATION DEVICE AND ITS CONTROL METHOD | |
| JP2014204187A (en) | Communication terminal, image forming device, control method thereof, program, and communication system | |
| JP6271944B2 (en) | Image processing apparatus, information processing apparatus, data processing method for image processing apparatus, data processing method for information processing apparatus, and program | |
| JP2007081566A (en) | Relay device and relay method | |
| JP2016081450A (en) | Communication equipment, control method for communication equipment, and computer program | |
| JP2016201058A (en) | Information processing device, control method of the same, and program | |
| JP2017055366A (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM | |
| JP2017139660A (en) | Information processing apparatus, information processing method, and information processing program | |
| JP2022103934A (en) | Electronics | |
| JP6869656B2 (en) | Transmitter, receiver, and communication system | |
| JP2015115011A (en) | Communication apparatus, apparatus setting device, imaging device and control method, system, and program therefor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20121221 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130729 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130809 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131007 |
|
| 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: 20131105 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131203 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 5430410 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| LAPS | Cancellation because of no payment of annual fees |