JP2004078584A - File exchange device, file exchange method and program for file exchange method - Google Patents
File exchange device, file exchange method and program for file exchange method Download PDFInfo
- Publication number
- JP2004078584A JP2004078584A JP2002238224A JP2002238224A JP2004078584A JP 2004078584 A JP2004078584 A JP 2004078584A JP 2002238224 A JP2002238224 A JP 2002238224A JP 2002238224 A JP2002238224 A JP 2002238224A JP 2004078584 A JP2004078584 A JP 2004078584A
- Authority
- JP
- Japan
- Prior art keywords
- file
- transmission band
- capacity
- detecting
- detected
- 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
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、ファイル交換装置、ファイル交換方法、ファイル交換方法のプログラムに関し、例えばディジタルビデオカメラ、ディジタルスチルカメラ等のモバイル機器に適用することができる。本発明は、ネットワークの伝送帯域、ファイル転送の所要時間を予測し、この所要時間によりバッテリ残量を判定することにより、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができるようにする。
【0002】
【従来の技術】
従来、コンピュータ等の情報機器においては、インターネット等のネットワークを介してファイルを交換するようになされており、ファイル交換を開始すると、ファイル交換に要する残り時間を表示するようになされている。
【0003】
すなわちこのようなファイル交換においては、一般に、FTP(File Transfer Protocol,RFC959)、HTTP((Hyper Text Transfer Protocol ,RFC1945 、RFC2616 )により実行され、コンピュータにおいては、例えばファイルのダウンロードを開始する際に、このダウンロードに供するファイルの情報として、ファイル名、ファイルサイズの情報を取得する。またダウンロードの開始により、ダウンロードしたデータ量をモニタし、このダウンロードしたデータ量とファイルサイズとから、残り時間を計算して表示するようになされている。
【0004】
これに対してディジタルビデオカメラ、ディジタルスチルカメラ等のモバイル機器においても、サーバ等との間でファイル交換することが提案されている。
【0005】
【発明が解決しようとする課題】
ところでディジタルビデオカメラにおいて、符号化ビットレート9〔Mbps〕で20分間記録した動画ファイルにおいては、ファイルサイズが9〔Mbps〕×20〔分〕×60〔秒〕=約1.3〔Gバイト〕となる。この動画ファイルを伝送帯域6〔Mbps〕の回線でファイル交換する場合、ファイル交換に約30〔分〕の時間を要することになる。
【0006】
これに対してTCP/IP(TCP:Transmission Control Protocol ,RFC793
IP:Internet Protocol ,RFC791、RFC2460)ネットワークであるインターネットに接続するローカルネットワークは、ベストエフォート型のネットワークであり、これによりいわゆるネットワークが混雑した場合には、伝送帯域が保証されなくなる。従って、実際にファイル交換する場合には、上述のように回線の伝送帯域で計算した所要時間に比して、ファイル交換に時間を要する場合が多々発生すると考えられる。
【0007】
据え置き型の商用電源で動作する機器においては、例えば通常30分間かかるファイル交換に40分の時間を要する場合でも、単に待ち時間が長くなるだけで、所望するファイルを確実にファイル交換することができる。
【0008】
しかしながらモバイル機器においては、バッテリの電源で動作することにより、このようにファイル交換に時間を要するようになると、バッテリの電源が途中で切れ、結局、ユーザーの所望するファイルをファイル交換できなくなる恐れがある。これによりこのようなモバイル機器においては、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができることが望まれる。
【0009】
なおこのようにファイル交換に時間を要し、ファイル交換できなくなった場合には、ファイル転送に係るレジューム(ファイル転送の中断、再開)の手法を適用することにより、ファイル交換を一時中断して再開することが考えられる。しかしながらこの方法の場合、ファイル交換を開始してファイル交換を完了できなくなった場合の対処方法でしかなく、種々のユーザーにより使用されるディジタルビデオカメラ等のモバイル機器には、ユーザーの使い勝手等の面で、実用上、未だ不十分と考えられる。因みに、このレジュームについて、FTPにおいては、RFC959の3.4節及び3.5節、RFC1123の4.1.3.4節に規定され、HTTPにおいては、RFC2616の14.35節に規定されている。
【0010】
本発明は以上の点を考慮してなされたもので、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができるファイル交換装置、ファイル交換方法、ファイル交換方法のプログラムを提案しようとするものである。
【0011】
【課題を解決するための手段】
かかる課題を解決するため請求項1の発明においては、ネットワークを介して所望の機器との間でファイル交換するファイル交換装置に適用して、伝送帯域検出手段、ファイルサイズ検出手段で検出された伝送帯域、ファイルサイズにより、ファイルの伝送に要する所要時間を予測し、所要時間により容量検出手段で検出される残容量を判定する制御手段を備えるようにする。
【0012】
また請求項6の発明においては、ネットワークを介して所望の機器との間でファイル交換するファイル交換方法に適用して、伝送帯域検出ステップ、ファイルサイズ検出ステップで検出された伝送帯域、ファイルサイズにより、ファイルの伝送に要する所要時間を予測する所要時間予測ステップと、所要時間により容量検出ステップで検出される残容量を判定する判定ステップとを有するようにする。
【0013】
また請求項8の発明においては、ネットワークを介して所望の機器との間でファイル交換するファイル交換装置のコンピュータに所定の処理手順を実行させるファイル交換方法のプログラムに適用して、伝送帯域検出ステップ、ファイルサイズ検出ステップで検出された伝送帯域、ファイルサイズにより、ファイルの伝送に要する所要時間を予測する所要時間予測ステップと、所要時間により容量検出ステップで検出される残容量を判定する判定ステップとを有するようにする。
【0014】
請求項1の構成によれば、ネットワークを介して所望の機器との間でファイル交換するファイル交換装置に適用して、伝送帯域検出手段、ファイルサイズ検出手段で検出された伝送帯域、ファイルサイズにより、ファイルの伝送に要する所要時間を予測し、所要時間により容量検出手段で検出される残容量を判定する制御手段を備えることにより、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができる。
【0015】
これにより請求項6又は請求項8の構成によれば、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができるファイル交換方法又はファイル交換方法のプログラムを提供することができる。
【0016】
【発明の実施の形態】
以下、適宜図面を参照しながら本発明の実施の形態を詳述する。
【0017】
(1)第1の実施の形態
(1−1)第1の実施の形態の構成
図2は、本発明の第1の実施の形態によるディジタルビデオカメラに係るファイル交換システムを示すブロック図である。このファイル交換システム1では、ディジタルビデオカメラ2で動画ファイルを取得し、インターネット3を介してこの動画ファイルを、例えばユーザー宅のコンピュータ4にアップロードする。またこれとは逆に、このコンピュータ4に保持されたファイルをインターネット3を介してディジタルビデオカメラ2にダウンロードする。
【0018】
このためコンピュータ4は、電源の起動により、メモリ4Cにワークエリアを確保してハードディスク装置(HDD)4Bに記録されたオペレーションシステムを実装した後、同様にしてハードディスク装置4Bに記録されてなる所定のアプリケーションプログラムを立ち上げ、さらにこのアプリケーションプログラムにより指示される各種のモジュールを実装する。コンピュータ4は、これらのオペレーションシステム、アプリケーションプログラム、モジュールよりモデム4Dの動作を制御してインターネット3に接続し、ディジタルビデオカメラ2からの呼びかけによりディジタルビデオカメラ2との間でコネクションを確立する。さらに続いてディジタルビデオカメラ2からの指示により、ディジタルビデオカメラ2との間で所定のデータを送受してダウンロード、アップロードの処理に係る前処理を実行した後、アップロード、ダウンロードの処理を実行する。
【0019】
なお中央処理ユニット4Aによるこれら前処理、アップロード、ダウンロードの処理については、ディジタルビデオカメラ2側の対応する構成の説明において、併せて説明する。またこれら前処理、アップロード、ダウンロードの処理に係るアプリケーションプログラム、モジュール等においては、このコンピュータ4の出荷時における事前のインストールにより、又はインターネット等のネットワーク等を介してダウンロードしたプログラムのインストールにより、さらには各種の記録媒体により提供されるプログラムのインストールにより、提供されるようになされている。ちなみにこのような記録媒体としては、光ディスク、磁気ディスク、磁気テープ等の記録媒体を適用することができる。
【0020】
このコンピュータ4において、ハードディスク装置4Bは、FAT(File Allocation Table )32により情報記録領域が管理され、中央処理ユニット4Aは、オペレーションシステムの実装により、このFAT32のファイル管理システムによりハードディスク装置4Bに記録されたシステムエントリエリアのデータをロードする。またこのロードしたデータによりハードディスク装置4Bに所望のデータを記録し、また記録したデータを再生し、さらにデータの記録に対応してシステムエントリエリアのデータを更新する。
【0021】
中央処理ユニット4Aは、またこのファイル管理システムにより、このようにしてロードしてなるシステムエントリエリアのデータのうちのディレクトリエントリのデータにより、ハードディスク装置4Bに記録されてなるファイルのファイル名、ファイルサイズを検出するようになされている。なお図3は、このディレクトリエントリの構造を示す図表であり、先頭よりファイル名、拡張子名、属性、予約、作成時刻、作成日付、最終アクセス日付、先頭クラスタ番号の上位アドレス、記録時刻、記録日付、時、先頭クラスタ番号の下位アドレス、ファイルサイズが順次割り当てられるようになされている。
【0022】
これに対してディジタルビデオカメラ2は、図4に示すように、バッテリ装置5を着脱可能に保持できるように構成され、このバッテリ装置5に内蔵のバッテリ5Aの電源により、又は図示しないACアダプターを接続して商用電源により動作するようになされている。
【0023】
ここでバッテリ装置5は、図示しない充電装置により内蔵のバッテリ5Aを充電できるように構成され、このバッテリ5Aに充電した電力をディジタルビデオカメラ2に供給する。バッテリ装置5は、このバッテリ5Aの充放電をコントローラ5Bにより管理し、ディジタルビデオカメラ2への装着によりこのコントローラ5Bからバッテリ5Aの残量、満充電時の容量等をディジタルビデオカメラ2に通知できるようになされている。これによりこのディジタルビデオカメラ2では、高い精度によりバッテリ5Aの電力を管理できるようになされている。
【0024】
ディジタルビデオカメラ2において、カメラ機能部6は、中央処理ユニット(CPU)7の制御により光学レンズ部8の絞り、ズーム等を制御する。光学レンズ部8は、光電変換部9の受光面に入射光を集光する。光電変換部9は、例えばCCD(Charge Coupled Device )固体撮像素子により構成され、撮像結果を画像信号処理部10に出力する。画像信号処理部10は、中央処理ユニット7の制御によりこの光電変換部9による撮像結果を処理してビデオデータを生成し、このビデオデータにより液晶ディスプレイ11を駆動する。これによりこのディジタルビデオカメラ2においては、光学レンズ部8による撮像結果を液晶ディスプレイ11によりモニタできるようになされている。
【0025】
また画像信号処理部10は、このようにして得られるビデオデータを音声データと共にデータ圧縮し、中央処理ユニット7を介してドライブ12に出力する。ここでドライブ12は、中央処理ユニット7の制御により、光ディスク、磁気ディスク、光磁気ディスク、半導体メモリ等による記録媒体13に、中央処理ユニット7の出力データを記録し、また記録媒体13に記録されたデータを読み出して中央処理ユニット7に出力する。これによりこのディジタルビデオカメラ2においては、撮像結果による動画ファイルを記録媒体13に記録して保持できるようになされている。また画像信号処理部10は、中央処理ユニット7の制御により動作を切り換え、記録媒体13から読み出されたデータを中央処理ユニット7から入力し、このデータをデータ伸長する。画像信号処理部10は、このデータ伸長によりビデオデータ及び音声データを復号し、このビデオデータにより液晶ディスプレイ11を駆動するようになされている。これによりこのディジタルビデオカメラ2では、記録媒体13に記録した動画ファイルを再生して確認できるようになされている。
【0026】
なお記録媒体13においては、コンピュータ4と同様に、FAT32のファイル管理システムにより記録領域が管理されるようになされている。
【0027】
操作入力部14は、このディジタルビデオカメラ2の操作パネル、リモートコマンダーに配置された操作子、液晶ディスプレイ11に配置されたタッチパネルにより構成され、ユーザーにより操作を図示しないインターフェースを介して中央処理ユニット7に通知する。
【0028】
通信部15は、インターネット3に接続可能な通信手段であり、例えば有線によるモデム、IEEE (The Institute of Electrical and Electoronics Engineers,Inc.)802.11b等による無線通信装置により構成される。通信部15は、中央処理ユニット7の制御により、インターネット3に接続し、このインターネット3に接続されてなるコンピュータ4との間でコネクションを確立する。またこのようにしてコネクションを確立して、中央処理ユニット7の制御により、所望のコマンド等をコンピュータ4、中央処理ユニット7との間で入出力し、さらには中央処理ユニット7から出力される動画ファイルをコンピュータ4にアップロードし、さらにはコンピュータ4から動画ファイル等をダウンロードして中央処理ユニット7に出力するようになされている。
【0029】
RAM(Random Access Memory)による内蔵メモリ16は、中央処理ユニット7のワークエリアを構成し、ROM(Read Only Memory)による内蔵メモリ17は、中央処理ユニット7のプログラム等を記録して保持するようになされている。なおこの内蔵メモリ17の内容は、このディジタルビデオカメラ2の製造時における事前のインストールにより設定されるようになされており、このプログラムにおいては、事前のインストールに代えて、インターネット等のネットワーク等を介してダウンロードしたプログラムのインストールにより、さらには各種の記録媒体により提供されるプログラムのインストールにより、提供することができる。因みにこのような記録媒体としては、光ディスク、磁気ディスク、磁気テープ等の記録媒体を適用することができる。
【0030】
中央処理ユニット7は、これら内蔵メモリ16、17と共にこのディジタルビデオカメラ2全体の動作を制御するコンピュータを構成し、内蔵メモリ17に記録されたプログラムに従って、操作入力部14を介して検出されるユーザーによる操作に応動して各部の動作を制御し、これにより撮像結果を動画ファイルにより記録媒体13に記録し、また記録媒体13に記録した動画ファイルを再生して液晶ディスプレイ11に表示する。また中央処理ユニット7は、同様のユーザーによる操作に応動したプログラムの実行により、通信部15を介してコンピュータ4とコネクションを確立し、動画ファイルをアップロード、ダウンロードする。
【0031】
図1及び図10は、この動画ファイルのアップロード、ダウンロードに係るファイル交換の処理手順を示すフローチャートである。中央処理ユニット7は、バッテリ装置5の電源により動作している場合に限り、この処理手順を実行する。すなわち中央処理ユニット7は、ユーザーによる操作子の操作により液晶ディスプレイ11にメニュー画面を表示し、このメニュー画面におけるメニューの選択によりアップロード、ダウンロードの選択を受け付ける。またユーザーによりアップロードの処理が選択された場合、記録媒体13のファイル管理システムより記録媒体13に記録されたファイルについて、ディレクトリエントリのデータを取得し、アップロード可能なファイル名を液晶ディスプレイ11に一覧表示し、この一覧表示における選択によりアップロードするファイルの選択を受け付ける。
【0032】
これに対してユーザーによりダウンロードの処理が選択された場合、中央処理ユニット7は、通信部15を介してコンピュータ4との間でコネクションを確立し、上述したコンピュータ4の対応するアプリケーションプログラムより、ダウンロード可能なファイル名を取得する。なお中央処理ユニット7は、このようなコンピュータ4へのログインの前提として、コンピュータ4との間で所定の認証処理等を実行するようになされている。またコンピュータ4の中央処理ユニット4Aにおいては、事前の設定に従ってダウンロード可能なファイル名をディジタルビデオカメラ2に通知するようになされている。中央処理ユニット7は、このようにして取得したダウンロード可能なファイル名をアップロードの場合と同様に、液晶ディスプレイ11に一覧表示し、この一覧表示における選択によりダウンロードするファイルの選択を受け付ける。
【0033】
このようにして処理対象のファイル名、処理の内容を受け付けると、中央処理ユニット7は、ステップSP1からステップSP2に移り、バッテリ装置5のコントローラ5Bとの間のデータ交換により、満充電時におけるバッテリ5Aの容量を検出する。またこのようにして検出した満充電時の容量によりコンピュータ4との間のファイル交換を実行した場合、何時間、ファイル交換可能か計算する。
【0034】
続いて中央処理ユニット7は、ステップSP3に移り、処理対象のファイルについて、転送に要する所要時間を予測する。ここで図5は、この所要時間の予測処理手順を示すフローチャートである。中央処理ユニット7は、この処理手順を開始すると、ステップSP5からステップSP6に移り、ユーザーにより選択された処理がファイルのアップロードか否か判断する。ここで肯定結果が得られると、中央処理ユニット7は、ステップSP6からステップSP7に移り、ファイルシステムにアクセスし、アップロード対象であるファイルのディレクトリエントリのデータより、ファイルサイズのデータを取得する。さらにこの取得したファイルサイズのデータを内蔵メモリ16に記録して保持し、ステップSP9に移る。
【0035】
これに対してユーザーにより選択された処理がダウンロードの場合、中央処理ユニット7は、ステップSP6で否定結果が得られることにより、ステップSP6からステップSP8に移る。ここで中央処理ユニット7は、コンピュータ4からダウンロード対象であるファイルのファイルサイズを検出する。
【0036】
ここで図6に示すように、ディジタルビデオカメラ2、コンピュータ4においては、IPレイヤを構成するIPモジュールの上層に、ファイルサイズ取得モジュールが設けられる(図6(B))。ここでこのファイルサイズ取得モジュールは、IPモジュールを介してファイルサイズを問い合わせるIPデータグラムを送信し、またIPモジュールを介してこのようなIPデータグラムへの応答を返すモジュールである。
【0037】
このためファイルサイズ取得モジュールは、ファイル名をパラメータに設定したファイルサイズ取得のコマンドにより、ファイルサイズの問い合わせである旨、プロトコル識別番号(プロトコル)を設定し、このプロトコル識別番号と、ファイル名とをIPモジュールに渡す。
【0038】
なおここでIPデータグラムのプロトコル識別番号は、RFC1700 「Assigned Numbers」の「Protocol Numbers」節で規定されており、例えば、ICMP(Internet Control Message Protocol )では、「1」が割り当てられ、TCPでは、「6」が割り当てられるようになされている。このプロトコル識別番号は、「101」〜「254」が空き番号に設定され、この実施の形態では、ファイルサイズ取得モジュールに対して、この空き番号の1つである値「170」のプロトコル識別番号を割り当て、ファイルサイズの問い合わせに利用するようになされている。
【0039】
IPモジュールは、このプロトコル識別番号とファイル名とをそれぞれプロトコルフィールド、データフィールドに割り当ててIPデータグラムを生成し、このIPデータグラムを送信する(図6(A))。なおこの図6(A)ではファイル名がabc.mpgの場合であり、IPデータグラムではASCII(American Standard Code for Infomation Interchange )文字コードによりファイル名がセットされることにより、この場合、データフィールドには、16進数で、「6162632e6d70656700」という値がセットされることになる。なお最後の「00」は、終端を意味する「NUL」文字である。
【0040】
またこのIPデータグラムを受信すると、IPモジュールにおいては、プロトコル識別番号とファイル名とをファイルサイズ取得モジュールに引き渡す。ファイルサイズ取得モジュールにおいては、このファイル名をキーにしてファイル管理システムにより対応するディレクトリエントリのデータを検出し、このディレクトリエントリのデータよりファイルサイズを検出する。ファイルサイズ取得モジュールにおいては、図6(C)に示すように、このファイルサイズ、「170」によるプロトコル識別番号をファイルサイズのデータと共にIPモジュールに渡し、IPモジュールは、このプロトコル識別番号とファイルサイズとをそれぞれプロトコルフィールド、データフィールドに割り当ててIPデータグラムを生成して送信する。
【0041】
このようにしてファイルサイズによるIPデータグラムを受信すると、IPモジュールにおいては、プロトコル識別番号とファイルサイズとをファイルサイズ取得モジュールに引き渡し、ファイルサイズ取得モジュールにおいては、ファイルサイズの取得のコマンドを発行したプログラムに、ファイルサイズを通知する。
【0042】
中央処理ユニット7においては、これらモジュールによる処理により、コンピュータ4からファイルサイズを検出し、このファイルサイズを内蔵メモリ16に一時記録する。
【0043】
中央処理ユニット7は、このようにしてファイルサイズを検出すると、続くステップSP9において、伝送帯域の推定処理を実行する。ここで伝送帯域の推定処理は、pingコマンドを実行して応答に要する時間を計測することにより、伝送帯域を推定する処理である。ここでpingコマンドは、ICMPを用いてネットワークの疎通を確認するコマンドである。
【0044】
図7に示すように、中央処理ユニット7は、伝送帯域推定処理において、ステップSP11からステップSP12に移り、現在時刻を取得した後、続くステップSP13において、エコー要求を送信する。ここで図8及び図9に示すように、エコー要求においては、サービスタイプが値8に設定される。またこの実施の形態では、タイプ、コード、チェックサム、オプションによる8バイトの固定長データに加えて、例えば117バイトのデータをメッセージにセットし、これにより全体として8+117=125バイトによるデータをデータ部に割り当てる。なおここではこれらタイプ、コード、オプション、117バイトの任意データは、何ら意味を有しないデータが割り当てられるようになされている。
【0045】
このようにしてエコー要求を送出すると、中央処理ユニット7は、ステップSP14に移り、ステップSP13で送出したエコー要求に対する応答であるエコー応答を受信する。ここでICMPにおいては、エコー要求を受信した場合、エコー応答を送出することが規定され、これによりコンピュータ4においては、エコー要求の受信によりエコー応答を送出するようになされ、中央処理ユニット7は、このエコー応答をステップSP14で受信するようになされている。
【0046】
なおエコー応答は、サービスタイプが値0に設定され、エコー要求のペイロードをそのままデータ部にセットして送信される。これにより中央処理ユニット7においては、このサービスタイプが値0にセットされてなるIPデータグラムを受信することにより、エコー応答を受信する。
【0047】
続いて中央処理ユニット7は、ステップSP15に移り、ここで現在時刻を取得してエコー応答の受信時刻を検出し、続くステップSP16において、ステップSP11で取得したエコー要求送出時刻と、ステップSP15で検出したエコー応答の受信時刻とから、ファイル転送に要する時間を計算する。すなわち中央処理ユニット7は、ステップSP15で検出したエコー応答の受信時刻から、ステップSP11で取得したエコー要求送出時刻を減算し、これによりエコー要求を送信してエコー応答が返されるまでの時間(RTT :Round Trip Time )を計測する。さらにこのエコー応答が返されるまでの時間を1/2に割り算し、これによりエコー要求を送信して受信されるまでの時間を計算する。さらにエコー要求のデータ部にセットしたデータ長を、このエコー要求を送信して受信されるまでの時間により割り算し、これにより伝送帯域を推定する。
【0048】
具体的に、エコー要求を送信してエコー応答が返されるまでの時間が10〔msec〕だった場合、エコー要求を送信して受信されるまでの時間は、5〔msec〕となり、125バイトのデータをこのエコー要求のデータ部により伝送している場合、伝送帯域は、125バイト(=1000ビット)/0.005〔秒〕=200〔kbps〕と推定することができる。
【0049】
このようにして伝送帯域を推定すると、中央処理ユニット7は、ステップSP17から元の処理手順(図5)に戻る。なお中央処理ユニット7は、この伝送帯域の推定処理を所定回数だけ繰り返し、平均値による伝送帯域により続く処理手順を実行するようになされ、これにより高い精度により伝送帯域を推定するようになされている。
【0050】
中央処理ユニット7は、続いてこの元の処理手順におけるステップSP19において(図5)、ステップSP7又はステップSP8で検出したファイルサイズをステップSP9で検出した伝送帯域により割り算し、これによりファイル転送に要する所要時間を計算する。具体的に例えばファイルサイズ100M〔バイト〕(M=1048576)のファイルを伝送する場合、100×1048576×8÷(200×1000)≒4194〔秒〕≒70〔分〕の計算結果を得ることができ、ファイル転送に要する時間を約70分と推定する。
【0051】
続いて中央処理ユニット7は、ステップSP20において、ステップSP19で計算したファイル転送に要する時間を時、分、秒の単位に換算し、ユーザーにより把握し易い単位に換算する。また続くステップSP21において、この転送時間を液晶ディスプレイ11に表示し、ステップSP22に移って元の処理手順(図1)に戻る。
【0052】
中央処理ユニット7は、続いてこの元の処理手順のステップSP25において、バッテリ装置5との間のデータ交換によりバッテリ5Aの残容量を検出し、この残容量によりコンピュータ4との間のファイル交換を実行した場合、何時間、ファイル交換可能か計算し、これによりバッテリ残量による通信可能時間を計算する。
【0053】
続いて中央処理ユニット7は、ステップSP26において、ステップSP3で求めたファイル転送の所要時間とステップSP25で計算したバッテリ残量による通信可能時間とを比較することにより、ファイル転送の所要時間でバッテリ残量を判定し、バッテリ残量によりファイル交換を完了するか否か判断する。
【0054】
ここで肯定結果が得られると、この場合、ファイル転送に対してバッテリ5Aの電力に余裕があることにより、中央処理ユニット7は、ステップSP26からステップSP27に移り、ユーザーにより指示されたファイルの転送を開始する。すなわち中央処理ユニット7は、アップロードの場合、ファイル管理システムにより対応するファイルが記録されてなる記録媒体13のアドレスを順次検出し、このアドレスにより順次記録媒体13からデータをロードし、このデータをFTP又はHTTPによりコンピュータ4に送出する。これに対してダウンロードの場合、ファイルの転送をコンピュータ4にリクエストし、コンピュータ4においては、ファイル管理システムにより対応するファイルが記録されてなるハードディスク装置4Bのクラスタアドレスを順次検出する。またこのクラスタアドレスにより順次ハードディスク装置4Bに記録されたデータを再生し、FTP又はHTTPによりこの再生したデータをディジタルビデオカメラ2に送出する。中央処理ユニット7においては、ファイル管理システムにより記録媒体13の空き領域を順次検出し、通信部15を介して受信されるデータをこの空き領域に順次記録する。
【0055】
このようにしてファイル転送を開始すると、中央処理ユニット7は、ファイル転送の開始時刻を内蔵メモリ16に記録して保持し、この開始時刻を基準にして、ステップSP3で検出した所要時間の経過を待機する。また液晶ディスプレイ11における棒グラフ状の表示により、ファイルサイズに対する転送済データのデータ量、ファイル転送に要する残り時間をユーザーに通知する。
【0056】
さらにファイルの転送を開始して、ステップSP3で検出した所要時間だけ経過すると、ステップSP27からステップSP28に移り、ファイルの転送を完了していないか否か判断する。ここでファイルの転送を完了している場合、中央処理ユニット7は、ステップSP29に移り、液晶ディスプレイ11の表示によりファイル転送の終了をユーザーに通知した後、ステップSP30に移ってこの処理手順を終了する。なお中央処理ユニット7は、このファイル転送の完了により、アップロードの場合、ユーザーの設定により、転送を完了したファイルを記録媒体13から削除する。
【0057】
これに対してこのような伝送路においては、他の機器からのアクセスにより伝送速度が種々に変化することにより、推定した所要時間を経過しても、未だファイルの転送を完了していない場合もある。この場合、中央処理ユニット7は、ステップSP28で肯定結果が得られることにより、ステップSP28からステップSP31に移る。ここで中央処理ユニット7は、ファイルサイズから転送済データのデータ量を減算し、残りのデータ量を計算する。また図7について説明したと同様のpingコマンドの実行により改めて伝送帯域を推定し、これら残りのデータ量、伝送帯域より残りファイルの伝送に供する所要時間を計算する。
【0058】
さらに続くステップSP32において、バッテリ装置5との間のデータ交換によりバッテリの残量を検出し、このバッテリの残量による通信可能時間を計算する。また続くステップSP33において、このようにして計算した残りファイルの伝送に供する所要時間がバッテリ残量による通信可能時間より短いか否か判断することにより、残りの所要時間によりバッテリ残量を判定し、ここでバッテリ残量に余裕がある場合、ステップSP28に移って、ファイル転送処理を継続する。なお中央処理ユニット7は、このようにしてステップSP33からステップSP28に戻った場合、このステップSP28においては、ステップSP31で計算した残りファイルの転送所要時間の経過を待って、ファイルの転送を完了したか否か判断するようになされている。
【0059】
これによりディジタルビデオカメラ2では、事前に予測した所要時間によりファイル転送を完了できるとしてファイル転送を開始して、回線の渋滞等によりこの所要時間によりファイル転送できない場合、残りの所要時間を予測してファイル転送を完了できるか否か改めて判断するようになされている。またこの判断によりバッテリの容量が十分な場合には、引き続きファイル転送の処理を継続し、ユーザーにより指定されたファイルをアップロード、ダウンロードするようになされている。
【0060】
これに対してバッテリの残量が十分でない場合、中央処理ユニット7は、ステップSP33で否定結果が得られることにより、ステップSP33からステップSP34に移る(図10)。ここで中央処理ユニット7は、レジュームの手法によりファイル転送する旨、ユーザーにより事前に設定されているか否か判断する。またこのようなレジュームによるファイル転送がユーザーにより設定されていない場合、液晶ディスプレイ11に、回線の渋滞によりバッテリの残量ではファイル転送を完了しない旨のメッセージを表示し、レジュームによるファイル転送するか否か、ユーザーによる選択を受け付ける。
【0061】
中央処理ユニット7は、これらの選択、設定により、レジュームの手法によるファイル転送が指示された場合、ステップSP34からステップSP35に移り、レジュームの手法によりファイルを転送する。すなわち中央処理ユニット7は、バッテリ装置5との間の定期的なデータ交換により、バッテリ5Aの残量を監視し、バッテリ5Aの残量が所定量となるまで、ファイル転送を継続する。またバッテリ5Aの残量が所定量となると、ファイルの転送を中断する。またアップロードの場合には、ファイルの転送を完了した最後の位置をレジュームの開始位置として記録媒体13、又は内蔵メモリ16に記録した後、ステップSP30に移ってこの処理手順を終了する。これに対してダウンロードの場合、記録媒体13に記録されてなる受信済のデータを1つのファイルに設定してシステムエントリエリアのデータを更新する。またこのファイルの転送を完了した最後の位置をレジュームの開始位置としてコンピュータ4に通知し、コンピュータ4の中央処理ユニット4Aは、この開始位置をハードディスク装置4Bに記録し、ステップSP30に移ってこの処理手順を終了する。
【0062】
これにより中央処理ユニット7は、バッテリに十分な容量を有している場合、さらには商用電源により動作している場合、改めてコンピュータ4との間でコネクションを確立し、このレジュームの開始位置より残りのデータを転送する。また中央処理ユニット7、4Aにおいては、このようにして転送して受信した残りのデータをファイル化して記録媒体13、ハードディスク装置4Bに記録した後、受信済データによるファイルと合成し、このファイル交換システム1では、これによりバッテリに余裕の無くなった場合でも、所望するファイルを確実にファイル交換するようになされている。
【0063】
これに対してステップSP34で否定結果が得られると、この場合、中央処理ユニット7は、ステップSP34からステップSP36に移り、ファイル転送を中止した後、ステップSP30に移ってこの処理手順を終了する。なおこの場合、中央処理ユニット7、4Aにおいては、それまで受信したファイルのデータについては、記録媒体13、ハードディスク装置4Bのシステムエントリを更新することなく処理を終了し、これにより後日改めて最初からファイル転送を実行するようになされている。
【0064】
これに対して当初、所要時間によりバッテリ残量を判定し、バッテリの残量が不足していると判断される場合、中央処理ユニット7は、ステップSP26で否定結果が得られることにより(図1)、ステップSP26からステップSP38に移る(図10)。ここで中央処理ユニット7は、ステップSP2で検出した満充電によりファイル交換可能な時間と、ステップSP3で検出した所要時間とを比較することにより、ファイル交換に要する所要時間により満充電時の容量を判定する。
【0065】
ここで満充電時の容量によっては、ファイル交換を完了すると判断される場合、中央処理ユニット7は、ステップSP38からステップSP39に移る。ここで中央処理ユニット7は、現在の状態ではファイル交換に電力が不足することによりファイル交換を中止する旨、またバッテリ5Aを満充電に充電して、さらには商用電源による駆動に切り換える等によりファイル交換可能な旨、液晶ディスプレイ11にメッセージを表示し、ステップSP30に移ってこの処理手順を終了する。
【0066】
これにより中央処理ユニット7は、事前に予測されるファイル交換に要する時間によりバッテリ残量、満充電の容量を判定し、ファイル交換の処理を切り換えるようになされている。
【0067】
これに対して満充電時の容量によっても、ファイル転送に電力が不足すると判断されると、中央処理ユニット7は、ステップSP38からステップSP40に移る。ここで中央処理ユニット7は、ステップSP34における処理と同様に、レジュームの手法によりファイル転送する旨、ユーザーにより事前に設定されているか否か判断する。またこのようなレジュームによるファイル転送がユーザーにより設定されていない場合、液晶ディスプレイ11に、バッテリ5Aを十分に充電しても現在の状態ではファイル転送を完了しない旨のメッセージを表示し、レジュームによりファイル転送するか否か、ユーザーによる選択を受け付ける。
【0068】
中央処理ユニット7は、これらの選択、設定により、レジュームの手法によるファイル転送が指示されると、ステップSP40からステップSP41に移り、ステップSP35における処理と同様にレジュームの手法によりファイル転送する。すなわち中央処理ユニット7は、バッテリ装置5との間の定期的なデータ交換により、バッテリ5Aの残量を監視し、バッテリ5Aの残量が所定量となるまで、ファイル転送を継続する。またバッテリ5Aの残量が所定量となると、ファイルの転送を中止する。またこのファイル交換がアップロードの場合には、ファイルの転送を完了した最後の位置をレジュームの開始位置として記録媒体13、又は内蔵メモリ16に記録した後、ステップSP30に移ってこの処理手順を終了する。これに対してこのファイル交換がダウンロードの場合、記録媒体13に記録されてなる受信済のデータを1つのファイルに設定してシステムエントリエリアのデータを更新する。またこのファイルの転送を完了した最後の位置をレジュームの開始位置としてコンピュータ4に通知し、コンピュータ4の中央処理ユニット4Aは、この開始位置をハードディスク装置4Bに記録し、ステップSP30に移ってこの処理手順を終了する。
【0069】
これに対してステップSP40で否定結果が得られると、中央処理ユニット7は、ステップSP40からステップSP39に移り、この場合、ファイル交換を中止する旨のメッセージ、商用電源による駆動等の対応策のメッセージを表示した後、ステップSP30に移ってこの処理手順を終了する。
【0070】
これらによりこの実施の形態において、バッテリ装置5のコントローラ5Bは、動作用バッテリの残容量を検出する容量検出手段を構成する。また中央処理ユニット7は、内蔵メモリ16、17、通信部15と共に、コンピュータ4との間における伝送帯域を検出する伝送帯域検出手段を構成し、また内蔵メモリ16、17と共に、交換に供するファイルのファイルサイズを検出するファイルサイズ検出手段を構成し、さらには送帯域検出手段、ファイルサイズ検出手段で検出された伝送帯域、ファイルサイズにより、ファイルの伝送に要する所要時間を予測し、所要時間により容量検出手段で検出される残容量を判定する制御手段を構成するようになされている。
【0071】
(1−2)第1の実施の形態の動作
以上の構成において、このファイル交換システム1では(図1及び図4)、携帯してバッテリ装置5の電力によりディジタルビデオカメラ2を駆動し、又は商用電源によりディジタルビデオカメラ2を駆動し、所望の被写体を撮像して得られる動画ファイルによる撮像結果がディジタルビデオカメラ2の記録媒体13に記録される。
【0072】
ファイル交換システム1では、このようにして記録媒体13に記録された動画ファイルについて、コンピュータ4へのアップロードがユーザーにより指示されると、中央処理ユニット7、内蔵メモリ16、17により構成されるディジタルビデオカメラ2のコンピュータにより、通信部15の動作を制御してコンピュータ4との間でコネクションが確立され、この動画ファイルがコンピュータ4に送信される。またコンピュータ4においては、このようにして送信された動画ファイルがモデム4Dを介して受信され、ハードディスク装置4Bに記録される。
【0073】
このようなファイル交換の処理において、ディジタルビデオカメラ2がバッテリ5Aの電源により動作している場合、ファイル交換システム1では、ディジタルビデオカメラ2でバッテリ5Aの残容量、満充電時の容量が検出される。さらにIPデータグラム(IPパケット)のペイロードであるデータ部が所定データ量に設定されてなるpingコマンドによるエコー要求がコンピュータ4に向けて送出され、このエコー要求を受信したコンピュータ4において、このエコー要求と同一の所定データ量にデータ部が設定されてなるエコー応答がディジタルビデオカメラ2に向けて送出される。ファイル交換システム1では、このエコー要求を送出した後、エコー応答が得られるまでの応答時間がディジタルビデオカメラ2で検出され、これにより伝送帯域が検出される。すなわちpingの往復に要する時間である応答時間が1/2されて、片道の伝送に要する時間が検出され、この伝送に要する時間によりペイロードのデータ量が割り算され、単位時間当たりに伝送可能なデータ量が検出され、これにより伝送帯域が検出される。
【0074】
また記録媒体13の記録領域を管理するファイル管理システムにより、ファイル交換に供するファイルのデータ量が検出され、このデータ量がpingにより検出された伝送帯域により割り算されて、現在の伝送帯域で伝送に要する所要時間が検出される。これによりディジタルビデオカメラ2では、事前に、ファイルの伝送に要する所要時間が予測される。ファイル交換システム1では、このようにして検出される所要時間により、バッテリ5Aの残容量が判定される。
【0075】
これによりこの実施の形態では、ネットワークの伝送帯域、ファイル転送の所要時間を予測し、この所要時間によりバッテリ残量を判定することにより、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができるようになされている。
【0076】
すなわちこの判定によりバッテリ5Aの容量がファイル交換に十分な場合、ファイル交換システム1ではファイル交換が開始される。またこのようにしてファイル交換を開始した後、渋滞により伝送帯域が減少する場合もあることにより、ファイル交換を開始して事前に予測した所要時間が経過してもファイル転送を完了しない場合、改めてpingにより伝送帯域が検出され、この伝送帯域と残りのファイルサイズとから、残りの所要時間が検出される。またこの残りの所要時間によりバッテリ5Aの残量が改めて判定される。
【0077】
これによりこの実施の形態においては、ファイルの転送を開始して所定時間経過すると、伝送帯域と未だ転送していないデータ量とにより、残りの伝送に要する所要時間を改めて予測し、この残りの伝送に要する所要時間で残容量を判定するようになされ、伝送に供する回線の渋滞が種々に変化した場合でも、この渋滞の変化に対応することができるようになされている。
【0078】
すなわちこの判定により、未だバッテリ5Aの残容量が十分な場合、ファイル交換システム1では、引き続きファイル交換の処理が実行され、これによりユーザーにより選択されたファイルがコンピュータ4にアップロードされる。
【0079】
これに対してこの判定によりバッテリ5Aの残容量がファイル転送の完了に不十分と判断されると、ユーザーによりレジュームによる処理が設定されている場合、又はユーザーによりレジュームによる処理が指示された場合、ファイル交換が実行され、バッテリ5Aの残量が所定容量になると、ファイル交換が中断される。ファイル交換システム1では、これによりそれまでコンピュータ4にアップロードされたデータが1つのファイルとしてコンピュータ4のハードディスク装置4Bに記録され、レジュームの開始位置がディジタルビデオカメラ2の記録媒体13に、又は内蔵メモリ16に記録される。
【0080】
またこのようにファイル交換を一時中止して、改めてファイル交換する場合には、この開始位置よりデータの転送を開始してコンピュータ4のハードディスク装置4Bに記録し、ファイルの転送を完了すると、コンピュータ4において、従前に1つのファイルとして記録してなるファイルと、開始位置からのデータとが1つのファイルに結合され、これによりレジュームの手法を適用してファイル転送の処理が完了する。
【0081】
これに対してユーザーによりレジュームによる処理が設定されていない場合、又はユーザーによりレジュームによる処理が指示されない場合、ファイル交換システム1では、ファイル交換の処理が中止される。
【0082】
これに対して事前の判定によりバッテリ5Aの残量が不足していると判断される場合、バッテリ5Aの満充電の容量が改めて判定される。さらにこの満充電の容量でも不足すると判断される場合、ユーザーによりレジュームの処理が指示されている場合、レジュームによりファイル交換されるのに対し、レジュームによる処理が指示されていない場合、ファイル交換が中止される。
【0083】
また満充電の容量によればファイル交換可能な場合、バッテリ装置5の交換により、又は充電によりファイル交換できることにより、この場合は、ファイル交換が中止される。
【0084】
これらによりこのディジタルビデオカメラ2では、回線の渋滞状況に適切に対応することができるようになされている。すなわちユーザーにおいては、ファイルのアップロードを急いでいる場合も考えられ、またこれとは逆にファイルのアップロードを急いでいない場合も考えられる。この実施の形態においては、バッテリの残量によりアップロードを完了できるか否か、さらにはバッテリを満充電してアップロードを完了できるか否かを、回線の渋滞状況により判断することができ、これにより例えばアップロードを急ぐ場合には、可能な箇所までファイルをアップロードしながらバッテリを手配する、バッテリを交換してアップロードする等の対応策を講じることができ、これにより従来に比して使い勝手を向上することができるようになされている。
【0085】
これに対してコンピュータ4においては、ハードディスク装置4Bに種々のファイルが蓄積され、例えばディジタルビデオカメラ2でコンピュータ4に保持されたファイルを確認するような場合に、ユーザーによりファイルのダウンロードが指示されると、ディジタルビデオカメラ2とコンピュータ4との間でコネクションが確立され、ユーザーにより指示されたファイルの送信がディジタルビデオカメラ2からコンピュータ4にリクエストされる。またこのリクエストにより、コンピュータ4から対応するファイルのデータがディジタルビデオカメラ2に順次送出され、ディジタルビデオカメラ2においては、通信部15によりこのデータが受信されて記録媒体13に記録される。
【0086】
このような一連のダウンロードの処理に際して、ファイル交換システム1では、事前に、ディジタルビデオカメラ2に実装されたファイル交換モジュールにより、IPモジュールを介して、コンピュータ4にファイルサイズを問い合わせするIPデータグラムが送信され、同様のIPデータグラムであるこの問い合わせの応答により、ディジタルビデオカメラ2で伝送に供するファイルのデータ量が検出される。
【0087】
ファイル交換システム1では、このファイルサイズにより、アップロードの場合と同様に、所要時間が計算され、この所要時間によりバッテリ5Aの残容量、満充電時の容量が判定される。またこの判定結果により、レジュームによりファイル転送の処理が実行され、さらにはファイル交換が中止される。これによりこの実施の形態においては、ダウンロードの場合でも、ネットワークの伝送帯域、ファイル転送の所要時間を予測し、この所要時間によりバッテリ残量を判定することにより、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができるようになされている。
【0088】
(1−3)第1の実施の形態の効果
以上の構成によれば、ネットワークの伝送帯域、ファイル転送の所要時間を予測し、この所要時間によりバッテリ残量を判定することにより、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができる。
【0089】
また所定データ量に設定したIPデータグラムに対する応答時間により、伝送帯域を検出し、プロトコル値を所定値に設定し、かつデータ部にファイル名を割り当てたIPデータグラムに対する応答によりファイルサイズを検出することにより、簡易に、ネットワークの伝送帯域、ファイル転送の所要時間を予測することができる。
【0090】
またファイル転送の所要時間によりバッテリの残容量を判定して残容量ではファイルの転送を完了しないと判断される場合、ファイル転送の所要時間により満充電時の容量を判定することにより、バッテリを充電してファイル交換を完了できる場合、さらにはバッテリを交換してファイル交換を完了できる場合等に、適切に対応することができる。
【0091】
またファイル転送の所要時間によりバッテリの残容量を判定して残容量ではファイルの転送を完了しないと判断される場合、レジュームの手法を適用してファイルを転送することにより、伝送帯域が減少した場合でも所望するファイルを確実に転送することができる。
【0092】
またファイルの転送を開始して所定時間経過すると、改めてファイルの残りの伝送に要する所要時間を予測し、この残りの伝送に要する所要時間でバッテリの残容量を判定することにより、回線の渋滞が変化した場合にも適切に対応することができる。
【0093】
(2)第2の実施の形態
図11は、本発明の第2の実施の形態に係るファイル交換システムにおけるファイルサイズ取得モジュールの説明に供する略線図である。この実施の形態に係ファイル交換システムにおいては、TCPモジュール又はUDPモジュールによるレイヤーの上位レイヤーにファイルサイズ取得モジュールが実装される。なおこのファイル交換システムでは、このファイルサイズ取得モジュールの実装方法が異なる点を除いて、第1の実施の形態に係るファイル交換システムと同一に構成される。
【0094】
ファイルサイズ取得モジュールにおいては、これにより図11(A)に示すように、ファイルサイズの検出対象であるファイル名をTCPモジュール又はUDPモジュールに渡し、TCPモジュール又はUDPモジュールは、このファイル名をデータ部にセットすると共に、ファイルサイズ取得モジュールを特定するポート番号をヘッダ部に設定してTCPパケット又はUDPパケットを生成する。IPモジュールにおいては、これによりこのTCPパケット又はUDPパケットをデータ部にセットすると共に、TCPモジュール又はUDPモジュールを特定するプロトコル番号をヘッダ部に設定してIPパケットを生成し、このIPパケットによるIPデータグラムをコンピュータ4に送出する。
【0095】
なおこのようにして設定されるプロトコル番号は、TCPモジュール又はUDPモジュールにおいて、それぞれ値6又は値17である。またファイルサイズ取得モジュールのポート番号は、未定義の値である値「49152」から「65535」の番号を割り当てることができ、例えば値「55555」をポート番号に設定することができる。
【0096】
これに対して応答側においては、このようなIPデータグラムを受信すると、IPモジュールにおいて、プロトコル番号よりTCPモジュール又はUDPモジュールにデータ部であるTCPパケット又はUDPパケットを渡し、TCPモジュール又はUDPモジュールにおいては、このTCPパケット又はUDPパケットのポート番号により、データ部のファイル名をファイルサイズ取得モジュールに通知する。
【0097】
ファイルサイズ取得モジュールにおいては、この通知によりファイル管理システムを介して対応するファイルのファイルサイズを検出し、このファイルサイズをTCPモジュール又はUDPモジュールに渡す。TCPモジュール又はUDPモジュールにおいては、これによりこのファイルサイズをデータ部にセットし、ファイルサイズ取得モジュールを特定するポート番号をヘッダ部に設定してTCPパケット又はUDPパケットを生成する。IPモジュールにおいては、これによりこのTCPパケット又はUDPパケットをデータ部にセットすると共に、TCPモジュール又はUDPモジュールを特定するプロトコル番号をヘッダ部に設定してIPパケットを生成し、このIPパケットによるIPデータグラムをコンピュータ4に送出する。
【0098】
この実施の形態によれば、TCPモジュール又はUDPモジュールによるレイヤーの上位レイヤーにファイルサイズ取得モジュールを実装するようにしても、第1の実施の形態と同様の効果を得ることができる。
【0099】
(3)他の実施の形態
なお上述の実施の形態においては、残容量が不足する場合に、満充電時の容量でファイル交換を完了すると判断されるときはファイル交換を中止する場合について述べたが、本発明はこれに限らず、ユーザーの設定、選択によりレジュームによりファイル交換するようにしてもよい。
【0100】
また上述の実施の形態においては、電力が不足すると判断された場合、バッテリが一定残量となるまでファイル交換して残りをレジュームにより処理する場合について述べたが、本発明はこれに限らず、電力が不足すると判断された場合には、即座にファイル交換を中断し、レジュームにより処理する場合等、必要に応じてファイル交換を中断する時点は、種々に設定することができる。
【0101】
また上述の実施の形態においては、当初推定した所要時間が経過してファイル交換を完了していない場合に、伝送帯域を推定し、さらには残りの所要時間を推定する場合について述べたが、本発明はこれに限らず、例えばファイル交換の中間の時点で伝送帯域を推定し、さらには残りの所要時間を推定する場合等、伝送帯域を推定し直し、さらには残りの所要時間を推定し直す処理においては、必要に応じて種々のタイミングに設けることができる。
【0102】
また上述の実施の形態においては、当初推定した所要時間が経過してファイル交換を完了していない場合に、伝送帯域、残りの所要時間を推定する場合について述べたが、本発明はこれに限らず、例えばファイル交換を完了したデータ量と経過時間との監視により、データ転送速度が劣化した場合に、伝送帯域、残りの所要時間を推定し直し、必要に応じてレジュームにより対応するようにしてもよい。このようにしてファイル交換の状況を常時モニタすれば、回線の渋滞が緩和した場合も確認できることにより、レジュームにより対応するように処理を進めて、ファイル交換を完了させることもできる。
【0103】
また上述の実施の形態においては、ディジタルビデオカメラに対して、いわゆる上り、下りの伝送帯域が等しいものとして伝送帯域を推定する場合について述べたが、本発明はこれに限らず、上り、下りの伝送帯域が異なる場合にも広く適用することができる。なおこのように上り、下りの伝送帯域が異なる場合例えば事前の設定による上り、下りの比率によりエコー要求を送出して応答が得られる時間を割り算することが考えられる。またこの場合に、この比率を実際のファイル交換結果により修正して使用することも考えられる。
【0104】
また上述の実施の形態においては、ディジタルビデオカメラ側の処理によりファイル交換する場合について述べたが、本発明はこれに限らず、コンピュータ側で上述した一連の処理を実行するようにしてもよい。すなわちコンピュータ4の中央処理ユニットにおいては、pingにより応答時間を検出して回線の伝送帯域を検出し、またディジタルビデオカメラにコマンドを送出してバッテリの残容量、満充電時の容量を検出する。またディジタルビデオカメラよりファイルを取得する場合、上述の実施の形態と同様にしてファイルサイズを検出し、これらにより所要時間を計算する。またこの所要時間によるバッテリの残容量、満充電時の容量の判定により、ディジタルビデオカメラの動作を制御する。このようにコンピュータ側で一連の処理を実行するようにすれば、その分、ディジタルビデオカメラの構成を簡略化することができる。なおこのようにコンピュータ側により処理する場合には、コンピュータにおける通信手段であるモデム等が中央処理ユニットと共に、容量検出手段、伝送帯域検出手段等を構成する。
【0105】
また上述の実施の形態においては、動画ファイルを直接、ファイル交換する場合について述べたが、本発明はこれに限らず、例えば電子メールに添付してファイル交換する場合にも広く適用することができる。なお電子メールにおいては、例えばBASE64により、バイナリデータによる動画ファイル等が一旦キャラクタデータにエンコードして添付される。これにより3バイトデータが4バイトデータに変換され、ファイルサイズが33〔%〕程度増大する。これにより所要時間の予測においては、ファイル管理システムから取得したファイルサイズを1.33倍して伝送帯域により割り算することが必要になる。
【0106】
また上述の実施の形態においては、動画ファイルをファイル交換する場合について述べたが、本発明はこれに限らず、静止画ファイルをファイル交換する場合、さらにはディジタルビデオカメラのプログラムファイルをファイル交換する場合等、種々のファイル交換に広く適用することができる。
【0107】
また上述の実施の形態においては、自宅のコンピュータとディジタルビデオカメラとの間でファイル交換する場合について述べたが、本発明はこれに限らず、例えば、ディジタルスチルカメラ、PDA(Personal Digital Assistance )との間でファイル交換する場合等、種々の機器間でファイル交換する場合に広く適用することができる。
【0108】
また上述の実施の形態においては、図6及び図11において、IPデータグラムにおけるバージョン番号を値4により示したように、IPv4によりファイル交換する場合について述べたが、本発明はこれに限らず、IPv6によりファイル交換する場合にも広く適用することができる。
【0109】
【発明の効果】
上述のように本発明によれば、ネットワークの伝送帯域、ファイル転送の所要時間を予測し、この所要時間によりバッテリ残量を判定することにより、事前に、ファイル交換を完了できるか否かを判定し、回線の渋滞状況に適切に対応することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態に係るファイル交換システムにおけるディジタルビデオカメラの中央処理ユニットの処理手順を示すフローチャートである。
【図2】本発明の第1の実施の形態に係るファイル交換システムを示すブロック図である。
【図3】ディレクトリエントリの構造を示す図表である。
【図4】図2のディジタルビデオカメラを示すブロック図である。
【図5】所要時間予測処理の説明に供するフローチャートである。
【図6】ファイルサイズ取得モジュールの説明に供する図表である。
【図7】伝送帯域推定処理の説明に供するフローチャートである。
【図8】pingの説明に供する図表である。
【図9】pingによるIPデータグラムを示す図表である。
【図10】図1の続きのフローチャートである。
【図11】本発明の第2の実施の形態に係るファイル交換システムに適用されるファイルサイズ取得モジュールの説明に供する図表である。
【符号の説明】
1……ファイル交換システム、2……ディジタルビデオカメラ、3……インターネット、4……コンピュータ、4A、7……中央処理ユニット、4B……ハードディスク装置、5……バッテリ装置、5A……バッテリ、13……記録媒体、16、17……内蔵メモリ[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a file exchange device, a file exchange method, and a program for a file exchange method, and can be applied to mobile devices such as digital video cameras and digital still cameras. The present invention predicts the transmission bandwidth of a network and the time required for file transfer, and determines the remaining battery power based on the required time, thereby determining in advance whether file exchange can be completed, and To be able to respond appropriately.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in an information device such as a computer, a file is exchanged via a network such as the Internet. When the file exchange is started, a remaining time required for the file exchange is displayed.
[0003]
That is, such file exchange is generally performed by FTP (File Transfer Protocol, RFC959) and HTTP (HyperText Transfer Protocol, RFC1945, RFC2616). When a file is started, for example, the computer starts downloading the file. Obtain information on the file name and file size as information on the file to be provided for this download, monitor the amount of downloaded data at the start of the download, and calculate the remaining time from the amount of data downloaded and the file size. Is displayed.
[0004]
On the other hand, in mobile devices such as digital video cameras and digital still cameras, it has been proposed to exchange files with servers and the like.
[0005]
[Problems to be solved by the invention]
In a digital video camera, a moving image file recorded at an encoding bit rate of 9 [Mbps] for 20 minutes has a file size of 9 [Mbps] × 20 [minutes] × 60 [seconds] = approximately 1.3 [GB]. It becomes. In the case of exchanging the moving image file over a line having a transmission band of 6 [Mbps], it takes about 30 [minutes] to exchange the file.
[0006]
On the other hand, TCP / IP (TCP: Transmission Control Protocol, RFC793)
A local network connected to the Internet, which is an IP (Internet Protocol, RFC791, RFC2460) network, is a best-effort network, so that when a so-called network is congested, the transmission band cannot be guaranteed. Therefore, when actually exchanging files, it is considered that it often takes time to exchange files as compared with the required time calculated in the transmission band of the line as described above.
[0007]
In a device that operates on a stationary commercial power supply, even if, for example, a file exchange that normally takes 30 minutes takes 40 minutes, a desired file can be reliably exchanged only by increasing the waiting time. .
[0008]
However, since mobile devices operate on battery power, if file exchange takes time in this way, the battery power may be cut off halfway, and eventually the user may not be able to exchange files desired by the user. is there. Thus, in such a mobile device, it is desired that it is determined in advance whether or not the file exchange can be completed, and that it is possible to appropriately cope with a traffic jam situation on the line.
[0009]
In this way, if the file exchange takes time and the file cannot be exchanged, the file exchange is temporarily suspended and resumed by applying the method of resuming (suspending and resuming the file transfer) relating to the file transfer. It is possible to do. However, this method is only a method for coping with the inability to complete the file exchange by starting the file exchange, and mobile devices such as digital video cameras used by various users are not easy to use. Therefore, it is considered that it is still insufficient for practical use. By the way, regarding this resume, in FTP, it is defined in RFC 959, sections 3.4 and 3.5, in RFC 1123, section 4.1.3.4, and in HTTP, it is defined in RFC 2616, section 14.35. I have.
[0010]
The present invention has been made in consideration of the above points, and determines in advance whether file exchange can be completed, and a file exchange device and a file exchange method capable of appropriately responding to a traffic jam situation on a line. It is intended to propose a program for a file exchange method.
[0011]
[Means for Solving the Problems]
In order to solve this problem, the invention according to claim 1 is applied to a file exchange device for exchanging a file with a desired device via a network, and the transmission band detected by the transmission band detecting unit and the file size detected by the file size detecting unit. A control unit for predicting a required time required for file transmission based on the band and the file size and determining a remaining capacity detected by the capacity detecting unit based on the required time is provided.
[0012]
In the invention according to
[0013]
In the invention according to
[0014]
According to the configuration of the first aspect, the present invention is applied to a file exchange device for exchanging a file with a desired device via a network, and the transmission band and the file size detected by the transmission band detection unit and the file size detection unit are used. By providing control means for predicting the required time required for file transmission and determining the remaining capacity detected by the capacity detecting means based on the required time, it is determined in advance whether file exchange can be completed, It can respond appropriately to the traffic congestion situation.
[0015]
Thus, according to the configuration of
[0016]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.
[0017]
(1) First embodiment
(1-1) Configuration of First Embodiment
FIG. 2 is a block diagram showing a file exchange system according to the digital video camera according to the first embodiment of the present invention. In the file exchange system 1, a moving image file is acquired by a
[0018]
For this reason, the computer 4 secures a work area in the
[0019]
The pre-processing, uploading, and downloading processing by the central processing unit 4A will be described together with the corresponding configuration on the
[0020]
In the computer 4, the information recording area of the
[0021]
The central processing unit 4A also uses the file management system to execute the file name and file size of the file recorded on the
[0022]
On the other hand, as shown in FIG. 4, the
[0023]
Here, the
[0024]
In the
[0025]
Further, the image
[0026]
Note that, in the
[0027]
The
[0028]
The
[0029]
A built-in
[0030]
The central processing unit 7 constitutes a computer for controlling the operation of the entire
[0031]
FIG. 1 and FIG. 10 are flowcharts showing the processing procedure of the file exchange for uploading and downloading the moving image file. The central processing unit 7 executes this processing procedure only when operating with the power supply of the
[0032]
On the other hand, when the download process is selected by the user, the central processing unit 7 establishes a connection with the computer 4 via the
[0033]
When the file name of the processing target and the content of the processing are received in this way, the central processing unit 7 proceeds from step SP1 to step SP2, and exchanges data with the
[0034]
Subsequently, the central processing unit 7 proceeds to step SP3, and predicts the required time required for transfer for the file to be processed. Here, FIG. 5 is a flowchart showing the procedure of the required time prediction process. Upon starting this processing procedure, the central processing unit 7 proceeds from step SP5 to step SP6, and determines whether or not the processing selected by the user is file upload. If a positive result is obtained here, the central processing unit 7 proceeds from step SP6 to step SP7, accesses the file system, and acquires data of the file size from the data of the directory entry of the file to be uploaded. Further, the obtained data of the file size is recorded and held in the built-in
[0035]
On the other hand, if the process selected by the user is download, the central processing unit 7 proceeds from step SP6 to step SP8 because a negative result is obtained in step SP6. Here, the central processing unit 7 detects the file size of the file to be downloaded from the computer 4.
[0036]
Here, as shown in FIG. 6, in the
[0037]
For this reason, the file size acquisition module sets a protocol identification number (protocol) indicating that the inquiry is about a file size by using a file size acquisition command in which the file name is set as a parameter, and compares the protocol identification number with the file name. Pass to IP module.
[0038]
Note that the protocol identification number of the IP datagram is defined in the “Protocol Numbers” section of RFC 1700 “Assigned Numbers”. For example, “1” is assigned in ICMP (Internet Control Message Protocol), and in TCP, “6” is assigned. As this protocol identification number, “101” to “254” are set as empty numbers, and in this embodiment, a protocol identification number of a value “170” which is one of the empty numbers is given to the file size acquisition module. Is allocated and used to inquire about the file size.
[0039]
The IP module assigns the protocol identification number and the file name to the protocol field and the data field, respectively, generates an IP datagram, and transmits the IP datagram (FIG. 6A). In FIG. 6A, the file name is abc. In the case of the IP datagram, the file name is set by the ASCII (American Standard Code for Information Interchange) character code in the IP datagram. Will be done. Note that the last “00” is a “NUL” character meaning an end.
[0040]
When receiving the IP datagram, the IP module passes the protocol identification number and the file name to the file size acquisition module. In the file size obtaining module, the data of the corresponding directory entry is detected by the file management system using the file name as a key, and the file size is detected from the data of the directory entry. In the file size acquisition module, as shown in FIG. 6 (C), the protocol identification number based on the file size “170” is passed to the IP module together with the file size data. Are assigned to a protocol field and a data field, respectively, to generate and transmit an IP datagram.
[0041]
When the IP datagram with the file size is received in this manner, the IP module passes the protocol identification number and the file size to the file size acquisition module, and the file size acquisition module issues a file size acquisition command. Notify the program of the file size.
[0042]
The central processing unit 7 detects the file size from the computer 4 by the processing by these modules and temporarily records the file size in the
[0043]
Upon detecting the file size in this way, the central processing unit 7 executes a transmission band estimation process in a succeeding step SP9. Here, the transmission band estimation process is a process of estimating the transmission band by executing a ping command and measuring the time required for a response. Here, the ping command is a command for confirming network communication using ICMP.
[0044]
As shown in FIG. 7, in the transmission band estimation processing, the central processing unit 7 proceeds from step SP11 to step SP12, acquires the current time, and then transmits an echo request in step SP13. Here, as shown in FIGS. 8 and 9, the service type is set to the
[0045]
After transmitting the echo request in this way, the central processing unit 7 proceeds to step SP14 and receives an echo response which is a response to the echo request transmitted in step SP13. Here, in ICMP, when an echo request is received, it is specified that an echo response is sent out, whereby the computer 4 sends out an echo response by receiving the echo request, and the central processing unit 7 This echo response is received in step SP14.
[0046]
In the echo response, the service type is set to a value of 0, and the payload of the echo request is set as it is in the data portion and transmitted. As a result, the central processing unit 7 receives an echo response by receiving an IP datagram having this service type set to the
[0047]
Subsequently, the central processing unit 7 proceeds to step SP15, in which the current time is acquired to detect the reception time of the echo response, and in the subsequent step SP16, the echo request transmission time acquired in step SP11 and the detection time in step SP15 are detected. The time required for file transfer is calculated from the reception time of the received echo response. That is, the central processing unit 7 subtracts the echo request transmission time acquired in step SP11 from the reception time of the echo response detected in step SP15, and thereby the time (RTT) until the echo request is transmitted and the echo response is returned. : Round Trip Time). Further, the time until the echo response is returned is divided by 1/2, whereby the time until the echo request is transmitted and received is calculated. Further, the data length set in the data portion of the echo request is divided by the time from when the echo request is transmitted to when it is received, thereby estimating the transmission bandwidth.
[0048]
Specifically, if the time from sending an echo request to returning an echo response is 10 [msec], the time from sending an echo request to receiving it is 5 [msec], which is 125 bytes. When data is transmitted by the data part of the echo request, the transmission band can be estimated to be 125 bytes (= 1000 bits) /0.005 [sec] = 200 [kbps].
[0049]
After estimating the transmission band in this way, the central processing unit 7 returns to the original processing procedure (FIG. 5) from step SP17. The central processing unit 7 repeats the transmission band estimation process a predetermined number of times, and executes a subsequent processing procedure based on the transmission band based on the average value, thereby estimating the transmission band with high accuracy. .
[0050]
At step SP19 in the original processing procedure (FIG. 5), the central processing unit 7 divides the file size detected at step SP7 or SP8 by the transmission band detected at step SP9, thereby requiring file transfer. Calculate the time required. Specifically, for example, when transmitting a file having a file size of 100 M [bytes] (M = 1048576), a calculation result of 100 × 1048576 × 8104 (200 × 1000) ≒ 4194 [seconds] ≒ 70 [minutes] can be obtained. It can be estimated that the time required for file transfer is about 70 minutes.
[0051]
Subsequently, in step SP20, the central processing unit 7 converts the time required for the file transfer calculated in step SP19 into units of hours, minutes, and seconds, and converts the units into units that can be easily grasped by the user. In the subsequent step SP21, the transfer time is displayed on the
[0052]
Subsequently, in step SP25 of the original processing procedure, the central processing unit 7 detects the remaining capacity of the
[0053]
Subsequently, in step SP26, the central processing unit 7 compares the required time of the file transfer obtained in step SP3 with the communicable time based on the remaining battery power calculated in step SP25, and thereby determines the remaining battery time in the required time of the file transfer. The amount is determined, and it is determined whether or not the file exchange is completed based on the remaining battery power.
[0054]
If an affirmative result is obtained here, in this case, the central processing unit 7 moves from step SP26 to step SP27 because the power of the
[0055]
When the file transfer is started in this manner, the central processing unit 7 records and holds the start time of the file transfer in the
[0056]
Further, when the transfer of the file is started and the required time detected in step SP3 has elapsed, the process proceeds from step SP27 to step SP28, and it is determined whether or not the transfer of the file has been completed. If the file transfer has been completed here, the central processing unit 7 proceeds to step SP29, notifies the user of the end of the file transfer by displaying on the
[0057]
On the other hand, in such a transmission path, due to various changes in transmission speed due to access from other devices, even when the estimated required time has elapsed, the file transfer may not be completed yet. is there. In this case, the central processing unit 7 proceeds from step SP28 to step SP31 when a positive result is obtained in step SP28. Here, the central processing unit 7 subtracts the data amount of the transferred data from the file size, and calculates the remaining data amount. The transmission band is estimated again by executing the same ping command as described with reference to FIG. 7, and the time required for transmitting the remaining file is calculated from the remaining data amount and the transmission band.
[0058]
In the following step SP32, the remaining amount of the battery is detected by exchanging data with the
[0059]
Thus, the
[0060]
On the other hand, if the remaining battery level is not sufficient, the central processing unit 7 proceeds from step SP33 to step SP34 because a negative result is obtained in step SP33 (FIG. 10). Here, the central processing unit 7 determines whether or not the user has set in advance that the file transfer is to be performed by the resume method. If the file transfer by the resume is not set by the user, a message indicating that the file transfer is not completed with the remaining amount of the battery due to traffic congestion is displayed on the
[0061]
When the file transfer by the resume method is instructed by these selection and setting, the central processing unit 7 proceeds from step SP34 to step SP35, and transfers the file by the resume method. That is, the central processing unit 7 monitors the remaining amount of the
[0062]
Thus, when the battery has a sufficient capacity, or when it is operated by a commercial power supply, the central processing unit 7 establishes a connection with the computer 4 again, and Transfer data. In the central processing units 7 and 4A, the remaining data transferred and received as described above is filed and recorded on the
[0063]
On the other hand, if a negative result is obtained in step SP34, in this case, the central processing unit 7 shifts from step SP34 to step SP36, stops the file transfer, shifts to step SP30, and ends this processing procedure. In this case, in the central processing units 7 and 4A, the processing of the data of the file received so far is finished without updating the system entry of the
[0064]
On the other hand, initially, the remaining battery charge is determined based on the required time, and when it is determined that the remaining battery charge is insufficient, the central processing unit 7 obtains a negative result in step SP26 (FIG. 1). ), And proceeds from step SP26 to step SP38 (FIG. 10). Here, the central processing unit 7 compares the time during which the file can be exchanged due to the full charge detected at step SP2 with the required time detected at step SP3, and determines the capacity at the time of full charge according to the required time required for file exchange. judge.
[0065]
If it is determined that the file exchange is to be completed depending on the capacity at the time of full charge, the central processing unit 7 proceeds from step SP38 to step SP39. Here, the central processing unit 7 stops the file exchange due to insufficient power for the file exchange in the current state, charges the
[0066]
Thus, the central processing unit 7 determines the remaining battery capacity and the fully charged capacity based on the time required for the file exchange predicted in advance, and switches the file exchange process.
[0067]
On the other hand, when it is determined that the power for the file transfer is insufficient even by the capacity at the time of full charge, the central processing unit 7 proceeds from step SP38 to step SP40. Here, similarly to the processing in step SP34, the central processing unit 7 determines whether or not the user has set in advance that the file transfer is to be performed by the resume method. When the file transfer by the resume is not set by the user, a message is displayed on the
[0068]
When the file transfer by the resume method is instructed by these selections and settings, the central processing unit 7 proceeds from step SP40 to step SP41, and transfers the file by the resume method as in the process in step SP35. That is, the central processing unit 7 monitors the remaining amount of the
[0069]
On the other hand, if a negative result is obtained in step SP40, the central processing unit 7 shifts from step SP40 to step SP39, in which case a message to stop the file exchange, a message to take measures such as driving by commercial power supply, etc. Is displayed, the process moves to step SP30, and this processing procedure ends.
[0070]
Thus, in this embodiment, the
[0071]
(1-2) Operation of First Embodiment
In the above configuration, in the file exchange system 1 (FIGS. 1 and 4), the user carries the
[0072]
In the file exchange system 1, when the user instructs the upload of the moving picture file recorded on the
[0073]
In such a file exchange process, when the
[0074]
In addition, the file management system that manages the recording area of the
[0075]
Thus, in this embodiment, the transmission band of the network, the time required for file transfer are predicted, and the remaining battery time is determined based on the required time to determine in advance whether file exchange can be completed, It is designed to be able to properly respond to traffic congestion on the line.
[0076]
That is, if the capacity of the
[0077]
Accordingly, in this embodiment, when a predetermined time has elapsed after the start of the file transfer, the time required for the remaining transmission is predicted again based on the transmission bandwidth and the amount of data that has not been transferred, and the remaining transmission time is estimated. The remaining capacity is determined based on the time required for the transmission, so that even when the traffic congestion of the line used for transmission changes variously, it is possible to cope with the change of the traffic congestion.
[0078]
That is, if the remaining capacity of the
[0079]
On the other hand, if it is determined that the remaining capacity of the
[0080]
When the file exchange is temporarily stopped and the file exchange is performed again, data transfer is started from this start position and recorded on the
[0081]
On the other hand, if the user does not set the resume process, or if the user does not instruct the resume process, the file exchange system 1 stops the file exchange process.
[0082]
On the other hand, when it is determined by the previous determination that the remaining amount of the
[0083]
Further, if the file can be exchanged according to the full charge capacity, the file exchange can be stopped by exchanging the
[0084]
As a result, the
[0085]
On the other hand, in the computer 4, various files are stored in the
[0086]
At the time of such a series of download processes, in the file exchange system 1, an IP datagram for inquiring the computer 4 of the file size via the IP module by the file exchange module mounted on the
[0087]
In the file exchange system 1, the required time is calculated based on the file size, as in the case of uploading, and the remaining capacity of the
[0088]
(1-3) Effects of the first embodiment
According to the above configuration, the transmission band of the network and the required time for file transfer are predicted, and the remaining battery charge is determined based on the required time to determine in advance whether file exchange can be completed, It can respond appropriately to the traffic congestion situation.
[0089]
Further, the transmission band is detected by the response time to the IP datagram set to the predetermined data amount, the protocol value is set to the predetermined value, and the file size is detected by the response to the IP datagram in which the file name is assigned to the data part. This makes it possible to easily predict the transmission band of the network and the time required for file transfer.
[0090]
In addition, when the remaining capacity of the battery is determined based on the time required for file transfer, and it is determined that the file transfer is not completed based on the remaining capacity, the battery is charged by determining the capacity at the time of full charge based on the required time for file transfer. In this case, it is possible to appropriately cope with the case where the file exchange can be completed, and the case where the file exchange can be completed by replacing the battery.
[0091]
In addition, when the remaining capacity of the battery is determined based on the time required for file transfer and it is determined that the file transfer is not completed with the remaining capacity, when the transmission bandwidth is reduced by transferring the file using the resume method. However, a desired file can be surely transferred.
[0092]
When a predetermined time has elapsed after the start of the file transfer, the time required for the remaining transmission of the file is predicted again, and the remaining capacity of the battery is determined based on the time required for the remaining transmission. It is possible to appropriately cope with a change.
[0093]
(2) Second embodiment
FIG. 11 is a schematic diagram for explaining a file size acquisition module in the file exchange system according to the second embodiment of the present invention. In the file exchange system according to this embodiment, a file size acquisition module is mounted on a layer higher than the layer by the TCP module or the UDP module. Note that this file exchange system is configured the same as the file exchange system according to the first embodiment except that the method of mounting the file size acquisition module is different.
[0094]
In the file size acquisition module, as shown in FIG. 11A, the file name whose file size is to be detected is passed to the TCP module or the UDP module, and the TCP module or the UDP module transmits the file name to the data section. And a port number specifying the file size acquisition module is set in the header to generate a TCP packet or a UDP packet. In the IP module, this sets the TCP packet or the UDP packet in the data portion, sets the protocol number for specifying the TCP module or the UDP module in the header portion, generates the IP packet, and generates the IP data by the IP packet. The gram is sent to the computer 4.
[0095]
The protocol number set in this way is the
[0096]
On the other hand, on the response side, when such an IP datagram is received, the IP module passes a TCP packet or a UDP packet which is a data part to the TCP module or the UDP module from the protocol number, and the TCP module or the UDP module transmits the data packet. Notifies the file size acquisition module of the file name of the data part by the port number of the TCP packet or UDP packet.
[0097]
The file size acquisition module detects the file size of the corresponding file via the file management system based on the notification, and passes the file size to the TCP module or the UDP module. In the TCP module or the UDP module, the file size is set in the data section, and a port number for specifying the file size acquisition module is set in the header section to generate a TCP packet or a UDP packet. In the IP module, this sets the TCP packet or the UDP packet in the data portion, sets the protocol number for specifying the TCP module or the UDP module in the header portion, generates the IP packet, and generates the IP data by the IP packet. The gram is sent to the computer 4.
[0098]
According to this embodiment, the same effect as in the first embodiment can be obtained even if the file size acquisition module is mounted on a layer higher than the layer by the TCP module or the UDP module.
[0099]
(3) Other embodiments
In the above-described embodiment, the case where the file exchange is stopped when it is determined that the file exchange is completed with the capacity at the time of full charge when the remaining capacity is insufficient has been described, but the present invention is not limited to this. Instead, the files may be exchanged by resume according to the setting and selection of the user.
[0100]
Further, in the above embodiment, when it is determined that the power is insufficient, a case has been described in which the file is exchanged until the battery reaches a certain remaining amount and the remaining is processed by the resume, but the present invention is not limited to this. When it is determined that the power is insufficient, the file exchange is immediately interrupted, and the point at which the file exchange is interrupted can be variously set as necessary, such as when processing is performed by resuming.
[0101]
Further, in the above-described embodiment, the case has been described where the transmission bandwidth is estimated when the file exchange is not completed after the initially estimated required time has elapsed, and further, the remaining required time is estimated. The present invention is not limited to this. For example, when estimating the transmission bandwidth at an intermediate point in the file exchange and further estimating the remaining required time, the transmission bandwidth is re-estimated, and further the remaining required time is re-estimated. In the processing, it can be provided at various timings as needed.
[0102]
Further, in the above-described embodiment, the case has been described where the transmission bandwidth and the remaining required time are estimated when the file exchange is not completed after the initially estimated required time has elapsed, but the present invention is not limited to this. For example, by monitoring the amount of data and the elapsed time after completing the file exchange, when the data transfer speed is deteriorated, the transmission bandwidth and the remaining required time are re-estimated, and if necessary, the resume is dealt with by resuming. Is also good. If the status of file exchange is constantly monitored in this way, it is possible to confirm even when traffic congestion on the line has been alleviated, so that processing can be advanced to respond more to resume and file exchange can be completed.
[0103]
Further, in the above-described embodiment, a case has been described where the so-called upstream and downstream transmission bands are assumed to be equal with respect to a digital video camera, but the present invention is not limited to this, and the upstream and downstream transmission bands are estimated. It can be widely applied even when the transmission bands are different. When the uplink and downlink transmission bands are different, for example, it is conceivable to divide the time for transmitting an echo request and obtaining a response according to the uplink / downlink ratio set in advance. In this case, it is also conceivable to use this ratio after correcting it based on the actual file exchange result.
[0104]
Further, in the above-described embodiment, a case has been described in which files are exchanged by processing on the digital video camera side. However, the present invention is not limited to this, and the above-described series of processing may be executed on the computer side. That is, the central processing unit of the computer 4 detects the response time by ping to detect the transmission band of the line, and sends a command to the digital video camera to detect the remaining capacity of the battery and the capacity when fully charged. When acquiring a file from a digital video camera, the file size is detected in the same manner as in the above-described embodiment, and the required time is calculated based on the detected file size. The operation of the digital video camera is controlled by determining the remaining capacity of the battery and the capacity at the time of full charge based on the required time. If the series of processing is executed on the computer side, the configuration of the digital video camera can be simplified accordingly. When processing is performed by the computer in this way, a modem or the like, which is communication means in the computer, constitutes a capacity detection unit, a transmission band detection unit, and the like together with the central processing unit.
[0105]
Further, in the above-described embodiment, the case where the moving image file is directly exchanged is described. However, the present invention is not limited to this, and can be widely applied to, for example, the case where the file is exchanged by attaching to an e-mail. . In an electronic mail, for example, a moving image file of binary data is temporarily encoded into character data and attached by BASE64, for example. As a result, the 3-byte data is converted into 4-byte data, and the file size increases by about 33%. As a result, in estimating the required time, it is necessary to multiply the file size obtained from the file management system by 1.33 and divide by the transmission band.
[0106]
Further, in the above-described embodiment, the case where the moving image file is exchanged has been described. However, the present invention is not limited to this. When the still image file is exchanged, further, the program file of the digital video camera is exchanged. In various cases, the present invention can be widely applied to various file exchanges.
[0107]
Further, in the above-described embodiment, the case where a file is exchanged between a home computer and a digital video camera has been described. However, the present invention is not limited to this. For example, a digital still camera, a PDA (Personal Digital Assistance), and the like can be used. It can be widely applied to the case of exchanging files between various devices, such as the case of exchanging files between devices.
[0108]
In the above-described embodiment, the case where the file exchange is performed by using the IPv4 as shown in FIG. 6 and FIG. 11 with the version number in the IP datagram indicated by the value 4, but the present invention is not limited to this. It can be widely applied to the case of exchanging files according to IPv6.
[0109]
【The invention's effect】
As described above, according to the present invention, it is determined whether the file exchange can be completed in advance by estimating the transmission band of the network and the time required for file transfer, and determining the remaining battery power based on the required time. However, it is possible to appropriately cope with the traffic congestion of the line.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a processing procedure of a central processing unit of a digital video camera in a file exchange system according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a file exchange system according to the first embodiment of the present invention.
FIG. 3 is a table showing a structure of a directory entry.
FIG. 4 is a block diagram illustrating the digital video camera of FIG. 2;
FIG. 5 is a flowchart illustrating a required time prediction process.
FIG. 6 is a chart provided for description of a file size acquisition module.
FIG. 7 is a flowchart illustrating a transmission band estimation process.
FIG. 8 is a table for explaining ping.
FIG. 9 is a chart showing an IP datagram by ping.
FIG. 10 is a flowchart continued from FIG. 1;
FIG. 11 is a table for explaining a file size obtaining module applied to a file exchange system according to a second embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... File exchange system, 2 ... Digital video camera, 3 ... Internet, 4 ... Computer, 4A, 7 ... Central processing unit, 4B ... Hard disk device, 5 ... Battery device, 5A ... Battery, 13: Recording medium, 16, 17: Internal memory
Claims (8)
動作用バッテリの残容量を検出する容量検出手段と、
前記機器との間における伝送帯域を検出する伝送帯域検出手段と、
交換に供するファイルのファイルサイズを検出するファイルサイズ検出手段と、
前記伝送帯域検出手段、前記ファイルサイズ検出手段で検出された伝送帯域、ファイルサイズにより、前記ファイルの伝送に要する所要時間を予測し、前記所要時間により前記容量検出手段で検出される残容量を判定する制御手段と
を備えることを特徴とするファイル交換装置。In a file exchange device for exchanging files with a desired device via a network,
Capacity detection means for detecting the remaining capacity of the operating battery;
Transmission band detection means for detecting a transmission band between the device,
File size detecting means for detecting a file size of a file to be exchanged;
The required time required for transmitting the file is predicted based on the transmission band and the file size detected by the transmission band detecting means and the file size detecting means, and the remaining capacity detected by the capacity detecting means is determined based on the required time. A file exchange device, comprising:
所定データ量に設定したIPデータグラムに対する応答時間により、前記伝送帯域を検出し、
前記ファイルサイズ検出手段は、
プロトコル値を所定値に設定し、かつデータ部に前記ファイルのファイル名を割り当てたIPデータグラムに対する応答により前記ファイルサイズを検出する
ことを特徴とする請求項1に記載のファイル交換装置。The transmission band detection means,
Detecting the transmission band by a response time to an IP datagram set to a predetermined data amount,
The file size detection means,
The file exchange apparatus according to claim 1, wherein the file size is detected by a response to an IP datagram in which a protocol value is set to a predetermined value and a file name of the file is assigned to a data part.
併せて、前記動作用バッテリの満充電時の容量を検出し、
前記制御手段は、
前記所要時間により前記容量検出手段で検出される残容量を判定して、前記動作用バッテリの残容量では前記ファイルの転送を完了しないと判断される場合、前記所要時間により前記容量検出手段で検出される満充電時の容量を判定する
ことを特徴とする請求項1に記載のファイル交換装置。The capacitance detecting means includes:
At the same time, detecting the capacity of the operation battery when fully charged,
The control means includes:
The remaining capacity detected by the capacity detecting means is determined based on the required time, and if it is determined that the transfer of the file is not completed with the remaining capacity of the operating battery, the capacity detecting means detects the remaining capacity based on the required time. The file exchange device according to claim 1, wherein the capacity at the time of full charge to be performed is determined.
前記所要時間により前記容量検出手段で検出される残容量を判定して、前記動作用バッテリの残容量では前記ファイルの転送を完了しないと判断される場合、レジュームの手法を適用して前記ファイルを転送する
ことを特徴とする請求項1に記載のファイル交換装置。The control means includes:
The remaining capacity detected by the capacity detection means is determined based on the required time, and when it is determined that the transfer of the file is not completed with the remaining capacity of the operation battery, the file is restored by applying a resume method. The file exchange device according to claim 1, wherein the file is transferred.
前記ファイルの転送を開始して所定時間経過すると、前記伝送帯域検出手段で検出される伝送帯域と、前記ファイルの未だ転送していないデータ量とにより、前記ファイルの残りの伝送に要する所要時間を予測し、前記残りの伝送に要する所要時間で前記容量検出手段で検出される残容量を判定する
ことを特徴とする請求項1に記載のファイル交換装置。The control means includes:
When a predetermined time elapses after the transfer of the file is started, the time required for the remaining transmission of the file is determined by the transmission band detected by the transmission band detection unit and the amount of data not yet transferred of the file. 2. The file exchange apparatus according to claim 1, wherein the remaining capacity detected by the capacity detecting means is determined based on the time required for the remaining transmission.
動作用バッテリの残容量を検出する容量検出ステップと、
前記機器との間における伝送帯域を検出する伝送帯域検出ステップと、
交換に供するファイルのファイルサイズを検出するファイルサイズ検出ステップと、
前記伝送帯域検出ステップ、前記ファイルサイズ検出ステップで検出された伝送帯域、ファイルサイズにより、前記ファイルの伝送に要する所要時間を予測する所要時間予測ステップと、
前記所要時間により前記容量検出ステップで検出される残容量を判定する判定ステップと
を有することを特徴とするファイル交換方法。In a file exchange method for exchanging files with a desired device via a network,
A capacity detection step of detecting a remaining capacity of the operation battery;
Transmission band detection step of detecting a transmission band between the device,
A file size detection step for detecting a file size of a file to be exchanged;
The transmission band detection step, the transmission band detected in the file size detection step, the required time prediction step of predicting the required time required for transmission of the file by the file size,
Determining a remaining capacity detected in the capacity detection step based on the required time.
前記機器に送出した所定データ量に設定したIPデータグラムに対する応答時間により、前記伝送帯域を検出し、
前記ファイルサイズ検出ステップは、
プロトコル値を所定値に設定し、かつデータ部に前記ファイルのファイル名を割り当てたIPデータグラムを前記機器に送出し、該IPデータグラムに対する応答により前記ファイルサイズを検出する
ことを特徴とする請求項6に記載のファイル交換方法。The transmission band detection step,
Detecting the transmission band by a response time to an IP datagram set to a predetermined data amount transmitted to the device,
The file size detecting step includes:
An IP datagram having a protocol value set to a predetermined value and a file name of the file assigned to a data portion is transmitted to the device, and the file size is detected by a response to the IP datagram. Item 6. The file exchange method according to Item 6.
前記処理手順が、
動作用バッテリの残容量を検出する容量検出ステップと、
前記機器との間における伝送帯域を検出する伝送帯域検出ステップと、
交換に供するファイルのファイルサイズを検出するファイルサイズ検出ステップと、
前記伝送帯域検出ステップ、前記ファイルサイズ検出ステップで検出された伝送帯域、ファイルサイズにより、前記ファイルの伝送に要する所要時間を予測する所要時間予測ステップと、
前記所要時間により前記容量検出ステップで検出される残容量を判定する判定ステップと
を有することを特徴とするファイル交換方法のプログラム。In a file exchange method program that causes a computer of a file exchange device that exchanges files with a desired device over a network to execute a predetermined processing procedure,
The processing procedure is as follows:
A capacity detection step of detecting a remaining capacity of the operation battery;
Transmission band detection step of detecting a transmission band between the device,
A file size detection step for detecting a file size of a file to be exchanged;
The transmission band detection step, the transmission band detected in the file size detection step, the required time prediction step of predicting the required time required for transmission of the file by the file size,
A determining step of determining a remaining capacity detected in the capacity detecting step based on the required time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002238224A JP2004078584A (en) | 2002-08-19 | 2002-08-19 | File exchange device, file exchange method and program for file exchange method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002238224A JP2004078584A (en) | 2002-08-19 | 2002-08-19 | File exchange device, file exchange method and program for file exchange method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004078584A true JP2004078584A (en) | 2004-03-11 |
Family
ID=32021700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002238224A Pending JP2004078584A (en) | 2002-08-19 | 2002-08-19 | File exchange device, file exchange method and program for file exchange method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004078584A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012085299A (en) * | 2010-10-13 | 2012-04-26 | Fujitsu Ltd | Remote downloading method, system, and persistent computer readable storage medium |
JP2013045448A (en) * | 2011-08-19 | 2013-03-04 | Keeptree Llc | Method, system, and apparatus for future delivery of digital content over network |
JP2013529330A (en) * | 2010-04-30 | 2013-07-18 | ナウ テクノロジーズ (アイピー) リミティッド | Apparatus, method, product, and method performed by mobile device for providing chart of content items |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05160866A (en) * | 1991-12-04 | 1993-06-25 | Hitachi Ltd | Portable isdn communication terminal equipment |
JP2000278621A (en) * | 1999-03-24 | 2000-10-06 | Mitsubishi Electric Corp | Additional data down loading control system in digital television receiver |
JP2000326804A (en) * | 1999-05-21 | 2000-11-28 | Nissan Motor Co Ltd | Power control device of on-vehicle communication equipment |
JP2001053697A (en) * | 1999-08-05 | 2001-02-23 | Matsushita Electric Ind Co Ltd | Transmission device and reception device |
JP2002077092A (en) * | 2000-09-01 | 2002-03-15 | Sony Corp | Multiplexer, receiver and multiplex transmission method |
-
2002
- 2002-08-19 JP JP2002238224A patent/JP2004078584A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05160866A (en) * | 1991-12-04 | 1993-06-25 | Hitachi Ltd | Portable isdn communication terminal equipment |
JP2000278621A (en) * | 1999-03-24 | 2000-10-06 | Mitsubishi Electric Corp | Additional data down loading control system in digital television receiver |
JP2000326804A (en) * | 1999-05-21 | 2000-11-28 | Nissan Motor Co Ltd | Power control device of on-vehicle communication equipment |
JP2001053697A (en) * | 1999-08-05 | 2001-02-23 | Matsushita Electric Ind Co Ltd | Transmission device and reception device |
JP2002077092A (en) * | 2000-09-01 | 2002-03-15 | Sony Corp | Multiplexer, receiver and multiplex transmission method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013529330A (en) * | 2010-04-30 | 2013-07-18 | ナウ テクノロジーズ (アイピー) リミティッド | Apparatus, method, product, and method performed by mobile device for providing chart of content items |
US10469601B2 (en) | 2010-04-30 | 2019-11-05 | Now Technologies (Ip) Limited | Content management apparatus |
JP2012085299A (en) * | 2010-10-13 | 2012-04-26 | Fujitsu Ltd | Remote downloading method, system, and persistent computer readable storage medium |
US9344483B2 (en) | 2010-10-13 | 2016-05-17 | Fujitsu Limited | System and method for facilitating remote downloading |
JP2013045448A (en) * | 2011-08-19 | 2013-03-04 | Keeptree Llc | Method, system, and apparatus for future delivery of digital content over network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10484806B2 (en) | Managing audio output through an intermediary | |
EP1806877A1 (en) | Transmitting device, receiving device, and file forwarding system | |
JP2016508310A (en) | Near field communication for utility meters | |
WO2006046445A1 (en) | File transferring system, transmitting device and receiving apparatus | |
JP2007166593A (en) | Data communication server, data communication method, and program | |
US8156242B2 (en) | Command processing apparatus | |
JP4928303B2 (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM | |
JP2004078584A (en) | File exchange device, file exchange method and program for file exchange method | |
US20060104283A1 (en) | Information processing apparatus and method, recording medium, and program | |
JP2014197721A (en) | Content control device | |
JP5405550B2 (en) | File transmission management system and file transmission management method for supporting file transmission in mobile messaging service | |
US20070248116A1 (en) | Communication control apparatus and method of controlling same | |
JP2003202989A (en) | Method for updating function of electronic equipment | |
JP2003110749A (en) | Sensor information transmitter, sensor network system, sensor information transmitting program, computer readable recording medium for recording sensor information transmitting program and method for controlling sensor information transmitter | |
JP5187984B2 (en) | Content processing apparatus and content processing system | |
JP2019047158A (en) | Data collector, data collection method, data collection program and data collection system | |
JP2010258894A (en) | Video receiving apparatus, method of receiving video, and program | |
JP2005086263A (en) | Image imaging apparatus, network connection control method, program, and recording medium | |
JP2004088242A (en) | Camera device and image transmitting method | |
JP2007214859A (en) | Recorder having network connection function and computer program | |
JP2004088481A (en) | Camera system and control method thereof | |
JP2004157739A (en) | Recording device, communication device, and its data transfer method | |
JP2012094961A (en) | Monitoring system, monitoring method, server device, program, and monitoring device | |
TWI378683B (en) | Method to test quality of service in network equipment using ms-dos command for file in auto-transmission and the system of the same | |
JP3908194B2 (en) | Real-time processing apparatus, real-time control method, program thereof and information storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050506 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070601 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070704 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20070727 |