JP2004260634A - Data transmitter, and method and program for transmitting data - Google Patents

Data transmitter, and method and program for transmitting data Download PDF

Info

Publication number
JP2004260634A
JP2004260634A JP2003050161A JP2003050161A JP2004260634A JP 2004260634 A JP2004260634 A JP 2004260634A JP 2003050161 A JP2003050161 A JP 2003050161A JP 2003050161 A JP2003050161 A JP 2003050161A JP 2004260634 A JP2004260634 A JP 2004260634A
Authority
JP
Japan
Prior art keywords
packet
transmission
unit
communication
transmissions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003050161A
Other languages
Japanese (ja)
Inventor
Masaya Okumura
真佐哉 奥村
Shuji Kimura
修治 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2003050161A priority Critical patent/JP2004260634A/en
Publication of JP2004260634A publication Critical patent/JP2004260634A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data transmitter capable of surely transmitting data even in radio communication. <P>SOLUTION: The number of packet transmitting times and a packet transmitting speed are changed in accordance with the magnitude of the electric field of a pilot signal received from a home server 200. Concretely, three thresholds A, B and C (A < B < C) are set about the electric field strength, when the electric field strength E of the pilot signal is E < A, a communication speed V = v1, and the number P of transmitting times = p1, when the electric field strength E is A ≤ E < B, the communication speed V = v2, and the number P of transmitting times = p2, when the electric field strength E is B ≤ E < C, the communication speed V = v3, and the number P of transmitting times = p3, and when the electric field strength E is C ≤ E, the communication speed V = v4, and the number P of transmitting times = p4 (S504 to S505, and S505a to S505d). In this case, v1 < v2 < v3 < v4, and p1 > p2 > p3 > p4 are satisfied. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、データ送信装置、データ送信方法およびプログラムに関し、特に、デジタルカメラ等で取得した画像情報等を他の端末装置に無線通信にて送信する際に用いて好適なものである。
【0002】
【従来の技術】
家庭内ネットワークを利用して家庭内機器を監視・制御する、いわゆるネットワーク家電システムの構築が進みつつある。このシステムは、家庭内ネットワーク網とインターネット等の外部ネットワーク網とを、ホームゲートウエイ等のサーバ(ホームサーバ)によって媒介し、PDA(Personal Digital Assistants)等の携帯端末装置によって家庭内機器を遠隔制御するものである。また、このホームサーバを介して外部配信サーバからの情報を家庭内機器に適宜取り込むものである。
【0003】
ここで、ホームサーバと家庭内機器との通信は、電源供給線を利用した方式やIEEE802.11b無線LAN、ブルートゥース等の無線通信を利用した方式等、種々の通信方式を採用し得る。また、通信対象となる家庭内機器は、冷蔵庫、電子レンジ等の家電機器の他、デジタルビデオやデジタルカメラ等の携帯型AV機器も含まれ得る。
【0004】
また、ホームサーバには、家庭内機器の制御機能のみならず、ホームページの作成・提供機能や電子メールの送受信機能、外部サーバから提供されるホームページの閲覧機能等も配備され得る。これにより、たとえばユーザは、自己のホームページをホームサーバ上に作成し、デジタルカメラで撮影した画像情報を無線・有線の家庭内ネットワークを介してホームサーバに送信することにより、当該画像情報をホームページ上に取り込むことができる。
【0005】
撮影した画像情報を無線通信によりホームサーバに送信する場合、デジタルカメラの移動によって、ホームサーバとの間の通信状態が変化する。通信状態が劣悪となったときには、ホームサーバ側において送信データが正常に受信されない場合が起こり得る。このような場合には、未受信データがデジタルカメラからホームサーバに再送される。かかる再送は、通常、データ送信から一定期間経過までの間に、ホームサーバ側から受信確認が送信されなかったときに実行される。
【0006】
上記送信と再送信は、画像情報を一定長のパケットに分割し、このパケットを一ずつ順番に送信することにより行われる。すなわち、先頭のパケットをホームサーバに送信し、その受信確認が一定期間内になければ、この先頭パケットを再度1回だけ送信する。かかる再送を繰り返し、先頭パケットの受信が正常になされると、次のパケットがホームサーバ側に1回だけ送信される。
【0007】
しかしながら、デジタルカメラのような携帯性のある機器との通信においては、機器の移動に伴って、無線通信路の状態が時々刻々と変化する。このため、上記のように一定間隔にて送信・再送を1回のみ繰り返す方法を採用した場合には、通信経路の状態が良好なタイミングとパケット通信のタイミングとをマッチングさせることが困難となる。このため、一つのパケットを正常に送信するまでに長時間を要することとなり、未送信画像情報の累積を引き起こす結果となる。
【0008】
なお、以下の特許文献1には、通信回線の品質に応じてパケット長を変化させる技術が記載されている。
【0009】
【特許文献1】
特開2001−156795号公報
【0010】
【発明が解決しようとする課題】
そこで、本発明は、無線通信においても確実にデータを送信し得るデータ送信装置を提供することを課題とする。
より限定的には、通信経路の状態に応じて効率的にデータ通信を行い得るデータ送信装置を提供することを課題とする。
【0011】
【課題を解決するための手段】
上記課題に鑑み本発明は、以下の特徴を有する。
【0012】
請求項1の発明に係るデータ通信装置は、無線通信を行うための無線通信手段と、無線通信における通信状態を検出する検出手段と、データをパケットに分割して送信パケットを生成するパケット生成手段と、生成されたパケットを前記無線通信手段を介して送信する送信手段とを備え、前記送信手段は、前記検出手段の検出結果に基づいて一度に送信するパケットの送信回数を決定することを特徴とする。
【0013】
請求項2の発明は、請求項1に記載のデータ通信装置において、前記検出手段は、送信先機器から発生される電波の電界強度を検出する手段を備え、検出された電解強度に基づいて、当該送信先機器との間の通信状態を検出することを特徴とする。
【0014】
請求項3の発明は、請求項1または2に記載のデータ通信装置において、前記送信手段は、前記検出手段の検出結果に基づいて、前記パケットの送信回数と共に、パケットの送信速度をも決定することを特徴とする。
【0015】
請求項4の発明は、請求項1ないし3の何れかに記載のデータ通信装置において、送信されたパケットが正常に受信されたかを判別する判別手段をさらに備え、前記送信手段は、前記判別手段によりパケットが正常に受信されなかったと判別されたとき、正常に受信されなかったパケットを再送信すると共に、再送信の際の送信回数を、前記判別手段の判別結果に基づいて変化させることを特徴とする。
【0016】
請求項5の発明は、請求項4に記載のデータ通信装置において、前記判別手段によりパケットが正常に受信されなかったと判別されたとき、正常に受信されなかったパケットを次に再送信する際の送信回数を、当該パケットの一回前の送信回数よりも所定回数だけ増加させることを特徴とする。
【0017】
請求項6の発明は、請求項4または5に記載のデータ通信装置において、前記検出手段による検出結果と前記判別手段による判別結果とを対応付けて記憶する記憶手段をさらに備え、前記送信手段は、前記記憶手段に記憶されている履歴情報に基づいて、パケットの送信回数を決定することを特徴とする。
【0018】
請求項7の発明に係るデータ送信方法は、無線通信手段における通信状態を検出する検出ステップと、データをパケットに分割して送信パケットを生成するパケット生成ステップと、生成されたパケットを前記無線通信手段を介して送信する送信ステップとを備え、前記送信ステップは、前記検出ステップの検出結果に基づいて一度に送信するパケットの送信回数を決定することを特徴とする。
【0019】
請求項8の発明は、請求項7に記載のデータ送信方法において、前記検出ステップは、送信先機器から発生される電波の電界強度を検出し、検出した電解強度に基づいて、当該送信先機器との間の通信状態を検出することを特徴とする。
【0020】
請求項9の発明は、請求項7または8に記載のデータ送信方法において、前記送信ステップは、前記検出ステップの検出結果に基づいて、前記パケットの送信回数と共に、パケットの送信速度をも決定することを特徴とする。
【0021】
請求項10の発明は、請求項7ないし9の何れかに記載の処理ステップを実行する機能をコンピュータに付与するプログラムである。
【0022】
なお、通信装置が無線通信方式による通信系と有線通信方式による通信系の両方を備えている場合、上記発明は、無線通信系に適用され、有線通信系の方には、通信状態に応じてパケットの送信回数を変更しない、通常の通信技術を適用すればよい。
【0023】
また、上記請求項において、「再送信の際のパケット送信回数を前記判別手段の判別結果に基づいて変化させる」とは、正常に受信されなかったと判別されたことに応じて直ちに送信回数を変化させる場合の他、この判別結果が所定回数継続したときに、送信回数を変化させる場合等を広く含むものである。
【0024】
本発明の特徴は、以下に示す実施の形態の説明により更に明らかとなろう。
【0025】
ただし、以下の実施の形態は、あくまでも、本発明の一つの実施形態であって、本発明ないし各構成要件の用語の意義は、以下の実施の形態に記載されたものに制限されるものではない。
【0026】
【発明の実施の形態】
以下、本発明の実施の形態につき図面を参照して説明する。
【0027】
図1に、実施の形態に係る画像閲覧システムの構成を示す。本システムは、デジタルカメラ100とホームサーバ200から構成されている。
【0028】
デジタルカメラ100で撮影された画像情報は、随時、ホームサーバ200に送信される。ホームサーバ200は、受信した画像情報をハードディスク等に記憶する。この際、各画像情報には、例えば「非公開」、「全公開」、「自己のみ公開」、「○○さんのみ公開」といった公開対象情報が、ユーザにより個別に設定される。ここで、「自己のみ公開」または「○○さんのみ公開」については、たとえば公開先ユーザのユーザIDを各画像情報に対応付けることにより設定される。
【0029】
公衆ネットワーク網を介して他のユーザ端末301〜303からホームページにアクセスがなされると、ホームサーバ200は、当該他のユーザ端末のユーザIDと上記公開対象情報を比較し、当該ユーザに対し閲覧が許容されている画像情報を検索する。そして、検索された画像情報をホームページに組み込んでページ情報を作成し、これを当該ユーザ端末に送信する。これにより、許容された画像のみを組み込んだホームページが、当該ユーザ端末による閲覧に供される。
【0030】
宅内の端末装置401からホームサーバ200にアクセスして、画像情報を閲覧することもできる。この場合、閲覧に先立って、端末装置401からホームサーバ200に対し、ユーザIDが送信される。ホームサーバ200は、受信したユーザIDと上記公開対象情報を比較し、当該ユーザに対し閲覧が許容されている画像情報を検索する。そして、検索された画像情報のみを端末装置401に送信する。これにより、許容された画像のみが、端末装置401による閲覧に供される。
【0031】
デジタルカメラ100は、制御部101と、画像入力部102と、表示部103と、情報記憶部104と、情報入力部105と、通信制御部106と、通信インタフェース107とから構成されている。
【0032】
制御部101は、内蔵プログラムに従って各部を制御する。画像入力部102は、カメラ、CCD(Charge Coupled Device)等の撮影手段および画像情報作成手段を備える。表示部103は、液晶モニタ等の表示手段を備え、撮影時および撮影後の被写体や、機能情報(文字)等を表示する。情報記憶部104は、着脱可能な固体半導体メモリ等の記憶手段を備え、撮影により取得した画像情報等を記憶する。情報入力部105は、機能設定ボタン等の各種入力手段を備える。
【0033】
通信制御部106は、撮影画像の画像情報をパケットに分割してホームサーバ200に送信すると共に、制御部101からの各種制御情報をホームサーバ200に送信する。また、ホームサーバ200からの受信情報を制御部101に送る。通信インタフェース107は、通信モジュール108を装着するための手段を備え、通信モジュール108と通信制御部106との間のデータ授受を媒介する。
【0034】
なお、通信インタフェース107には、無線通信用と有線通信用の2種類の通信モジュール108が装着され得る。装着された通信モジュール108が何れのタイプであるかは、通信モジュール108から通信制御部106に提供されるID情報によって識別される。
【0035】
無線通信用の通信モジュールが装着された場合、ホームサーバ200側のアンテナ205および無線処理部204を介して、画像情報等の情報がホームサーバ200に送信される。また、有線通信用の通信モジュールが装着された場合、ホームサーバ200側のローカルネットワーク通信部208を介して、画像情報等の情報がホームサーバ200に送信される。
【0036】
無線用通信モジュール108には、ホームサーバ200からの通信波の電界強度を検出する手段が備えられている。この電界強度に関する情報は、通信インタフェース107を介して、通信制御部106に供給される。
【0037】
なお、通信制御部106は、図2に示す如く、無線通信用の通信制御系1061と有線通信用の通信制御系1062の2つの通信制御系を備えている。同図において、通信モジュール判別部1063は、上述したモジュールIDをもとに、通信モジュール108の種別を判別し、この判別結果をスイッチング部1064に出力する。かかる判別結果に応じてスイッチング部1064は何れか一方の通信制御系を選択する。これにより、通信モジュールの種別に対応した通信制御系が選択される。
【0038】
図1に戻り、ホームサーバ200は、制御部201と、表示部202と、情報記憶部203と、無線処理部204と、アンテナ205と、画像変換部206と、インタフェース207と、ローカルネットワーク通信部208と、HP作成部209と、情報入力部210と、ネットワーク通信部211とから構成されている。
【0039】
制御部201は、内蔵プログラムに従って各部を制御する。表示部202は、液晶モニタ等の表示手段を備え、デジタルカメラ100から受信した画像情報や、この画像情報を縮小したサムネイル画像等を表示する。情報記憶部203は、ハードディスク等の記憶手段を備え、デジタルカメラ100から受信した画像情報や、ユーザにより設定される各画像情報の公開対象情報等を記憶する。
【0040】
無線処理部204は、アンテナ205を介して通信モジュール108から受信した無線通信波を処理して、通信制御情報や画像情報等を生成し、これを制御部201に出力する。また、制御部201から受け取った通信制御情報等を無線通信波に変換し、これをアンテナ205から出力する。
【0041】
たとえば、無線処理部204は、制御部201から一定間隔で供給されるパイロット信号(ホームサーバを識別するための信号)を無線通信波に変換し出力する。また、後述する画像情報の自動転送モードにおいて、デジタルカメラ100側からの画像情報送信要求に応答して、要求確認のための通信制御情報を無線通信波に変換し出力する。
【0042】
なお、無線処理部204における通信方式としては、IEEE802.11b、11g等を採用し得る。
【0043】
画像変換部206は、デジタルカメラ100から受信した画像情報をサムネイル情報に変換する。インタフェース207は、制御部201とローカルネットワーク通信部208との間のデータ授受を媒介する。ローカルネットワーク通信部208は、有線通信用の通信モジュール108のデータ入出力端子が接続されるジャックを備え、この通信モジュール108との間の通信制御を行う。なお、ここでの通信は、たとえばイーサーネット等の通信プロトコルを用いて行われる。
【0044】
HP作成部209は、情報入力部210からの入力に従いホームページ情報を作成する。作成されたホームページ情報は情報記憶部203に記憶される。このホームページには、画像閲覧のためのページまたは画像閲覧のための領域が含まれている。HP作成部209は、他のユーザ端末からホームページにアクセスがなされたとき、このユーザ端末に提供が許容される画像情報を情報記憶部203から選択し、これを画像閲覧のためのページまたは画像閲覧のための領域に組み込む。
【0045】
すなわち、アクセス元ユーザ端末のユーザIDと情報記憶部203中の公開対象情報を比較し、当該ユーザに対し閲覧が許容されている画像情報を検索する。そして、検索した画像情報の画像IDを、上記作成・記憶済みのホームページ上の画像閲覧ページまたは画像閲覧領域に対応したホームページ情報中の記述箇所に、その表示命令と共に記述する。
【0046】
情報入力部210は、キーボードやペンタッチパネル等の入力手段を備える。ネットワーク通信部211は、公衆ネットワーク網との間の通信制御を行う。
【0047】
図3に、デジタルカメラ100からホームサーバ200に画像情報を自動転送(無線通信)する際のデジタルカメラ100側の処理フローを示す。
【0048】
写真撮影がなされると(S101)、撮影写真の画像情報が画像入力部102にて生成され、情報記憶部104に記憶される(S102)。そして、この画像情報の送信フラグが0にセットされる(S103)。かかる画像情報の記憶と送信フラグのセットは、写真撮影がなされる度に実行される。これにより、情報記憶部104には未送信状態の画像情報が蓄積されていく。
【0049】
たとえば、宅外から宅内への移動により、通信制御部106がホームサーバ200からのパイロット信号を受信しホームサーバ200側との通信が可能となったときに(S104)、未送信状態の画像情報が蓄積されていると(S105)、未送信の画像情報が情報記憶部104から読み出され、通信制御部106にて送信パケットに分割される。分割された各パケットは、無線用通信モジュール108からホームサーバ200側へ順次出力される(S106)。そして、一つの未送信画像情報に対する全てのパケットがホームサーバ200に送信され、これら全てのパケットに対する受信確認をホームサーバ200から受信すると、制御部101は、当該画像情報に対する送信フラグを1に変更する。これにより、当該画像情報は送信済みにセットされる(S107)。
【0050】
かかる画像情報の送信は、S105にて、全ての未送信画像情報がホームサーバ200側に送信されるまで実行される。その間、新たな写真撮影がなされると、S101〜S103の処理にて、撮影された写真の画像情報が順次情報記憶部104に蓄積される。
【0051】
図4に、デジタルカメラ100から受信した画像情報に閲覧レベル(公開対象情報)を設定する際のホームサーバ200における処理フローを示す。
【0052】
デジタルカメラ100から画像情報を受信すると(S201)、制御部201は、受信した画像情報を情報記憶部203に格納し(S202)、当該画像情報のレベル設定フラグを0にセットする(S203)。かかる画像情報の記憶とレベル設定フラグのセットは、画像情報の受信がなされる度に実行される。これにより、情報記憶部203には閲覧レベル未設定の画像情報が蓄積されていく。
【0053】
このようにしてレベル未設定の画像情報が情報記憶部203に蓄積されると(S204)、制御部201は、レベル未設定の画像情報を順次画像変換部206に送る。画像変換部206は、受け取った画像情報からサムネイル画像用の画像情報(サムネイル画像情報)を生成する。生成されたサムネイル画像情報は、制御部201を介して表示部202に送られる。これにより、レベル未設定のサムネイル画像が順次表示部202上に表示される(S205)。
【0054】
このようにして表示されたサムネイル画像の中からユーザが所定の画像を選択し、さらに当該画像に対し所定の閲覧レベルを設定すると(S206)、この閲覧レベルに応じた公開対象情報が、当該画像の画像情報に対応付けられて、情報記憶部203に記憶される(S207)。
【0055】
たとえば、ユーザが所定のサムネイル画像を選択すると、表示部202上に「非公開」、「全公開」、「自己のみ公開」、「公開先設定」の4つの選択肢が表示される。このうち、ユーザが「全公開」を選択すると、当該画像情報の公開先に「All」が設定される。また、「自己のみ公開」を選択すると、当該画像情報の公開先に、予め登録済みの「自己のユーザID」が設定される。さらに、「公開先設定」を選択すると、公開先ユーザのユーザIDの入力欄が表示され、ユーザがこの入力欄に所望の公開先ユーザIDを入力すると、当該画像情報の公開先に当該公開先ユーザIDが設定される。
【0056】
しかして、画像情報に対するレベル設定がなされると、制御部201は、当該画像情報のレベル設定フラグを1に変更する。これにより、当該画像情報はレベル設定済みにセットされる(S208)。このようにして、レベル設定フラグが1に変更された画像情報のサムネイル画像は、表示部202から消去される。表示部202には、レベル未設定のサムネイル画像のみが表示され続ける。
【0057】
図5に、レベル設定テーブルの一例を示す。同図において、画像IDは、情報記憶部203に記憶済みの画像情報に付された識別符号である。また、図中「MEaaaaa」は「自己のユーザID」であり、「FRbbbbb」は公開先として設定されたユーザIDである。
【0058】
図6に、公衆ネットワーク網を介して他のユーザ端末がホームサーバ200のホームページにアクセスした際のホームサーバ200における処理フローを示す。
【0059】
他のユーザ端末301〜303からホームページにアクセスがなされると(S301)、制御部201はネットワーク通信部211を介して、当該アクセス元のユーザ端末に対し、ユーザIDとパスワードの送信を要求する。この要求を受け、アクセス元ユーザ端末から適正なユーザIDとパスワードが返信されると(S302)、ホームページ提供処理に移行する。
【0060】
まず、制御部201は、HP作成部209に対し、ホームページ情報作成指令と共に、アクセス元ユーザ端末のユーザIDを送る。この指令を受け、HP作成部209は、作成済みのホームページ情報を情報記憶部203から読み出す(S303)。また、アクセス元ユーザ端末のユーザIDと情報記憶部203中の公開対象情報(図5のレベル設定テーブル)を比較し、当該ユーザに対し閲覧が許容されている画像情報を検索する(S304)。具体的には、公開先が「ALL」となっている画像と、当該アクセス元のユーザIDが公開先として設定されている画像を検索する。そして、検索した画像の画像IDを上記作成・記憶済みのホームページ上の画像閲覧ページまたは画像閲覧領域に対応したホームページ情報中の記述箇所に、その表示命令と共に記述する。
【0061】
このようにして作成された当該ユーザ用のホームページ情報は、検索された画像情報と共に、当該アクセス元ユーザ端末に送信される(S305)。これにより、当該ユーザに対して閲覧が許容された画像情報のみが閲覧に供されるようになる。
【0062】
なお、上記S302にてアクセス元ユーザ端末から適正なユーザIDとパスワードが返信されなかった場合、たとえば、一定期間にユーザIDとパスワードが一切送信されなかった場合あるいは受信したユーザIDとパスワードが未登録であるような場合には、ホームページの提供が中止される。あるいは、公開先が「ALL」となっている画像を検索し、これをホームページに組み込んで、アクセス元ユーザ端末に提供するようにしても良い。
【0063】
図7に、上記自動転送処理フロー(図3)における画像情報送信処理ステップ(S106)の詳細を示す。ここで、画像情報は、上述の如く、一定長のパケットに分割されて送信される。また、通信プロトコルとして、たとえば、TCP/IP(Transmission Control Protocol / Internet Protocol)を用いる。
【0064】
通信モジュール(無線用)108がホームサーバ200からのパイロット信号を受信し、ホームサーバ200との通信が可能となると(図3のS104)、通信制御部106は、通信モジュール108を介して、パケット送信要求をホームサーバ200に送信する。これに応答して、ホームサーバ200からパケット送信要求の確認が送信され、これが通信制御部106により受信されるとコネクション確立となり(S401)、通信制御部106は、送信対象の画像情報を順次パケットに分割し(S402)、変数Nを1にセットする(S403)。そして、先頭(N=1)のパケットをあらかじめ設定された複数回(たとえば2回)だけホームサーバ200に送信する(S404)。
【0065】
かかる送信の後、通信制御部106は、ホームサーバ200からの受信確認を待つ。そして、たとえば無線通信路上の通信品質が悪い場合等、一定期間内に受信確認がなされなければ(S405のNO)、先頭(N=1)のパケットを再度上記設定された複数回(たとえば2回)だけ送信する。かかる再送は、当該パケットの受信確認をホームサーバ200側から受信するまで繰り返される(S405、S404)。
【0066】
ここで、再送回数が所定の回数(たとえば50回)を越えたとき、送信エラーとして処理を中止するようにしても良い。
【0067】
他方、一定期間内に受信確認を受け取ったとき(S405のYES)、通信制御部106は、当該画像情報の未送信パケットが残っているかを判別する(S406)。そして、未送信パケットが残っていれば、変数Nを1だけカウントアップし(S407)、次のパケットを上記設定された複数回(たとえば2回)だけ送信する(S404)。
【0068】
上記送信・再送信は、当該画像情報を分割した全てのパケットが送信されるまで繰り返し実行される(S406)。そして、全てのパケットの送信が終了すると、当該画像情報の送信処理を終了する。
【0069】
図9に、上記図7の処理フローに従った場合のデジタルカメラ100とホームサーバ200との間の送受信シーケンスを示す。
【0070】
通信モジュール(無線用)108がホームサーバ200からのパイロット信号を受信し、ホームサーバ200との通信が可能となると、デジタルカメラ100からホームサーバ200に対し、パケット送信要求が送信される。これを受けて、ホームサーバ200から送信要求確認が送信され、これがデジタルカメラ200によって受信されると、デジタルカメラ100からホームサーバ200に対し、パケット1が、たとえば2回送信される。
【0071】
送信された2つのパケットが、たとえば無線通信路上の通信品質の悪化(かかる通信品質の悪化は、デジタルカメラ100とホームサーバ200の間の距離変動や、外部要因によるノイズ等に起因する)によってホームサーバ200に到達せず、よって、一定期間T内にホームサーバ200からの受信確認を受信しなかった場合、デジタルカメラ100は、再度、パケット1を2回送信する。
【0072】
この再送において送信された2つのパケット1のうち、1つがホームサーバ200に到達し正常にパケット処理がなされると、受信確認がホームサーバ200からデジタルカメラ100に送信される。しかし、この受信確認がデジタルカメラ100に到達しなかった場合、デジタルカメラ100は、再度パケット1を2回送信する。再送された2つのパケット1がホームサーバ200にて正常に受信されると、ホームサーバ200からパケット1の受信確認が2回送信される。
【0073】
かかる受信確認がデジタルカメラ100にて受信されると、デジタルカメラ100は、次のパケットであるパケット2を2回送信する。以後、上記と同様にして、後続パケットの送受信が実行される。
【0074】
かかる送信処理に従えば、送信・再送信において同時に2回パケットが送信されるので、一つのパケットを1回だけ送信する場合に比べ、一度の送信によりパケットがホームサーバ200に到達し易くなる。特に、デジタルカメラ100のような携帯性のある機器においては、機器の移動に伴って、無線通信路の状態が時々刻々と変化するため、通信経路の状態が良好なタイミングとパケット通信のタイミングとをマッチングさせることが、通信処理において重要な要素となる。
【0075】
上記送信処理に従えば、送信・再送信時にパケットが同時に2回送信されるので、通信経路の状態が良好なタイミングにてパケット通信が行われ易くなる。よって、通信の確実性・信頼性を向上させることができる。
【0076】
なお、上記送信処理においては、同一パケットが複数回ホームサーバ200に到達する場合が起こり得る。たとえば、図9のシーケンスでは、パケット1が3回ホームサーバ200に到達している。かかる場合、ホームサーバ200の制御部201は、パケットに付されたTCPヘッダ(図8)内のシーケンス番号を参照し、受信パケットの同一性を判別する。そして、一つのパケットについて正常に受信した後、再度同一パケットを正常に受信した場合には、最初に正常に受信したパケットのみを採用する。
【0077】
ところで、上記処理例では、一度に送信するパケットの送信回数を多くするほど通信の確実性が向上する。しかし、送信回数を多くすると、同一パケットが重ねて受信される割合も高くなり、無駄な送信が増加する。無駄な送信は、デジタルカメラ100側の処理遅延とバッテリー浪費の原因となる。よって、送信回数を複数回にするとしても、無駄な送信を極力抑制できる程度の回数に抑える必要もある。
【0078】
図10に、上記画像送信処理ステップにおける他の処理例を示す。この処理フローは、上記図7の処理フローに比べ、S410〜S412が追加されている。かかるステップの追加により、ホームサーバ200からの受信確認を受信しなかったときの再送回数を、徐々に引き上げるものである。
【0079】
すなわち、S410にて変数Mをj(たとえば2)にセットする。そして、1回目の送信時には、当該パケットをM(M=j)回送信する(S411)。この送信に対しホームサーバ200からの受信確認を受信しなかった場合(S405)、変数Mがk(たとえば1)だけカウントアップされる(S412)。そして、再送時においては、当該パケットが、カウントアップされた後の変数M(M=j+k)回、送信される(S411)。かかる再送によって当該パケットが正常に受信されると(S405のYES)、次のパケットの送信に移行する(S406、S407)。このときの送信回数は、j回に戻される(S410)。
【0080】
図11に、上記図10の処理フローに従った場合のデジタルカメラ100とホームサーバ200との間の送受信シーケンスを示す。
【0081】
ホームサーバ200との通信が可能となると、デジタルカメラ100からホームサーバ200に対し、パケット送信要求が送信される。これを受けて、ホームサーバ200から送信要求確認が送信され、これがデジタルカメラ200によって受信されると、デジタルカメラ100からホームサーバ200に対し、パケット1が、たとえば2回送信される。
【0082】
送信された2つのパケットがホームサーバ200に到達せず、よって、一定期間T内にホームサーバ200からの受信確認を受信しなかった場合、デジタルカメラ100は、再送時の送信回数を1カウントアップし、パケット1を3回送信する。
【0083】
この再送において送信された3つのパケット1のうち、2つがホームサーバ200に正常に受信されると、受信確認がホームサーバ200からデジタルカメラ100に送信される。かかる受信確認がデジタルカメラ100にて受信されると、デジタルカメラ100は、送信回数を初期設定回数の2回に戻し、次のパケットであるパケット2を2回だけ送信する。以後、上記と同様にして、後続パケットの送受信が実行される。
【0084】
かかる送信処理に従えば、再送信時の送信回数を引き上げることにより、ホームサーバ200に対するパケットの受信確率をさらに向上させることができる。また、再送状態から通常送信状態に復帰することにより、送信回数が初期設定回数に戻されるので、無駄な送信を極力抑制することができる。これにより、デジタルカメラ100側の処理遅延とバッテリー浪費を抑制することができる。
【0085】
図12に、上記画像送信処理ステップにおける他の処理例を示す。この処理フローは、上記図10の処理フローに比べ、S420が追加されている。上記図10の処理フローでは、再送が正常になされると、次のパケットの送信は、初期設定回数(M=j)だけ実行されるものであった。図12の処理フローでは、S420を追加することで、再送が正常になされても、再送されたパケット全てについて受信確認(Ack)を受信しない限り、先の再送時に修正された送信回数にて次のパケットの送信が実行される。
【0086】
すなわち、通常の送信時にホームサーバ200からの受信確認を受信しなかった場合(S405)、変数Mがk(たとえば1)だけカウントアップされる(S412)。そして、再送時においては、当該パケットが、カウントアップされた後の変数M(M=j+k)回、送信される(S411)。
【0087】
かかる再送によって当該パケットが正常に受信されると(S405のYES)、次のパケットの送信に移行する(S406、S407)。このとき、先の送信時に受信した受信確認の数がパケットの送信回数に一致するかが判別される(S420)。ここで、一致すると判別されると、S410に戻り、次のパケットの送信回数は、j回に戻される。他方、一致しないと判別されると、変数MはM=j+kに維持され、次のパケットの送信回数はM=j+k回とされる(S411)。
【0088】
図13に、上記図12の処理フローに従った場合のデジタルカメラ100とホームサーバ200との間の送受信シーケンスを示す。
【0089】
たとえば再送により、パケット9が3回送信され、そのうち最後の一つがホームサーバ200によって正常に受信されると、ホームサーバ200からは、受信確認が1回だけ送信される。この場合、パケット9を3回送信したにもかかわらず、受信確認は1回しか受信しないため、次のパケットであるパケット10の送信時には、パケット9の再送時に設定された送信回数がそのまま適用される。よって、パケット10は3回送信される。
【0090】
このようにして3回送信されたパケット10が全て正常に受信され、ホームサーバ200から受信確認が3回送信されると、送信回数が3から初期設定回数(j=2)にリセットされる。これにより、次のパケットであるパケット11は、2回だけ送信される。以後、同様にして、後続パケットの送受信が実行される。
【0091】
かかる送信処理に従えば、再送が正常に行われたことに応じて直ちに初期設定回数にリセットせず、ホームサーバ200からの受信確認が全ての送信パケットに対し行われる程度にまで通信状態が良好になったタイミングで、初期設定回数にリセットするものであるから、上記図10の処理フローに比べ、更に、無線通信路の状態に応じたパケット送信回数を設定できる。
【0092】
なお、通信回数を初期設定回数にリセットするための閾値は、上記のように送信回数をそのまま採用する方法の他、送信回数よりも少しだけ小さな回数を採用するようにしてもよい。
【0093】
図14に、上記画像送信処理ステップにおける他の処理例を示す。この処理フローは、上記図12の処理フローに比べ、S421とS422が追加されている。上記図12の処理フローでは、受信確認の数と送信回数とが一致すると、次のパケットの送信回数を初期設定回数(M=j)にリセットするものであった。これに対し、図14の処理フローでは、S421とS422を追加することで、受信確認の数と送信回数とが一致した場合に、次のパケットの送信回数を初期設定回数(M=j)にリセットせず、再送時の送信回数をkだけ減じた回数を次のパケットの送信回数とするものである。
【0094】
ここで、受信確認の数と送信回数との一致が、初期設定回数(M=j)による送信の際に発生する場合もあり得る。この場合、送信回数をさらにkだけ減じると、送信回数が初期設定回数を下回ってしまうこととなる。このような事態を回避するためにS421が特に準備されており、送信回数Mが初期設定回数jであるときは、送信回数Mをkだけ減じることなく、送信回数Mをそのまま次のパケットの送信回数として用いる。
【0095】
なお、次のパケットの送信回数Mが初期設定回数jを下回ったとしも問題が生じない場合、送信回数Mが初期設定回数に達していても、さらにKだけ減じた送信回数を次パケットの送信回数として適用しても良い。
【0096】
図15に、上記図14の処理フローに従った場合のデジタルカメラ100とホームサーバ200との間の送受信シーケンスを示す。なお、このシーケンスでは、初期設定回数jはj=2とされており、また、回数増減因子kかk=2とされている。
【0097】
たとえば再送により、パケット10が4回送信され、これら全てがホームサーバ200によって正常に受信されると、ホームサーバ200からは、受信確認が4回送信される。よって、次のパケットの送信回数はk=2回だけ減じられ、その結果、パケット11はM=2回送信される。
【0098】
このようにして2回送信されたパケット11が全て正常に受信され、ホームサーバ200から受信確認が2回送信されると、送信回数Mが初期設定回数jに一致するかが判別される。ここでは、M=2回であるので、送信回数は既に初期設定回数となっていると判断され、その結果、次のパケットの送信回数として、M=2回がそのまま適用される。よって、次のパケットであるパケット12は、2回だけ送信される。
【0099】
かかる送信処理に従えば、上記図12の処理フローと同様、ホームサーバ200からの受信確認が全ての送信パケットに対し行われる程度にまで通信状態が良好になったタイミングで、通信回数が減じられるものであるから、無線通信路の状態に応じたパケット送信回数を設定できる。この際、通信回数は、上記図12の処理フローのように直ちに初期設定値にリセットされず、k回だけ減じて徐々に初期設定値に近づけるものであるから、より無線通信路の変化に則した送信回数を設定できる。
【0100】
なお、通信回数を減じるための閾値は、上記のように送信回数をそのまま採用する方法の他、送信回数よりも少しだけ小さな回数を採用するようにしてもよい。
【0101】
ところで、上記送信処理フローでは、送信回数の初期設定回数jを固定としたが、たとえば図16に示すような通信履歴を情報記憶部104に保持せしめ、この通信履歴に基づいて初期設定回数jを適宜変更するようにしても良い。たとえば、受信良否がOKである場合の送信回数をサンプル値とし、かかるサンプル値を一定期間経過毎に平均化し、この平均値(自然数)を当該一定期間経過時点の初期設定回数jとするようにしても良い。また、かかる平均化処理において、受信確認回数(ACK回数)を重み付け値として取り込むようにしても良い。
【0102】
図17に、上記画像送信処理ステップにおける他の処理例を示す。この処理フローは、ホームサーバ200から受信するパイロット信号の電界強度の大きさに応じ、パケットの送信回数と送信速度を変更するものである。すなわち、電界強度が小さくなるほどパケットの送信回数を大きく且つ送信速度を小さくし、電界強度が大きくなるほどパケットの送信回数を小さく且つ送信速度を大きくする。
【0103】
具体的には、電界強度について3つの閾値A、B、C(A<B<C)を設定し、パイロット信号の電界強度EがE<Aのとき、通信速度V=v1、送信回数P=p1とし、電界強度EがA≦E<Bのとき、通信速度V=v2、送信回数P=p2とし、電界強度EがB≦E<Cのとき、通信速度V=v3、送信回数P=p3とし、電界強度EがC≦Eのとき、通信速度V=v4、送信回数P=p4とする。ここで、v1<v2<v3<v4、p1>p2>p3>p4である。たとえば、IEEE802.11bの通信方式を採用した場合、v1=1Mbps、v2=2Mbps、v3=5.5Mbps、v4=11Mbpsとされる。また、p1〜p4は、たとえば、p1=4回、p2=3回、p3=2回、p4=1回とされる。
【0104】
以下、図17の処理フローについて説明する。
【0105】
通信モジュール(無線用)108がホームサーバ200からのパイロット信号を受信し、ホームサーバ200との通信が可能となると、通信制御部106は、通信モジュール108を介して、パケット送信要求をホームサーバ200に送信する。これに応答して、ホームサーバ200からパケット送信要求の確認が送信され、これが通信制御部106により受信されるとコネクションが確立され(S501)、通信制御部106は、送信対象の画像情報を順次パケットに分割し(S502)、同時に、変数Nを1にセットする(S503)。
【0106】
次に、通信制御部106は、通信モジュール108から送られるパイロット信号の電界強度Eに関する情報に基づいて、現時点におけるパイロット信号の電界強度Eを検出する(S504)。そして、この電界強度Eを上記閾値A、B、Cと比較し、先頭パケットの送信回数Pと送信速度Vを決定する(S505)。
【0107】
すなわち、パイロット信号の電界強度EがE<Aのとき、通信速度V=v1、送信回数P=p1とし(S505a)、電界強度EがA≦E<Bのとき、通信速度V=v2、送信回数P=p2とし(S505b)、電界強度EがB≦E<Cのとき、通信速度V=v3、送信回数P=p3とし(S505c)、電界強度EがC≦Eのとき、通信速度V=v4、送信回数P=p4とする(S505d)。
【0108】
そして、設定された送信速度Vにより、先頭(N=1)のパケットをP回ホームサーバ200に送信する(S506)。
【0109】
かかる送信の後、通信制御部106は、一定期間内にホームサーバ200から受信確認を受信したかを判別する(S507)。そして、受信確認を受信した場合、次のパケットの送信に移行し(S508、S509)、上記と同様、パイロット信号の電界強度を測定する(S504)。そして、測定した電界強度に応じて次のパケットの送信回数Pと送信速度Vを決定し(S505)、これに従って次のパケットを送信する(S506)。
【0110】
他方、一定期間内に受信確認を受信しなかった場合、S504に戻り、送信できなかったパケットを再送信する。この際、上記と同様、パイロット信号の電界強度を測定し(S504)、測定した電界強度に応じて送信回数Pと送信速度Vを決定する(S505)。そして、この送信回数Pと送信速度Vに従って、送信できなかったパケットを再送信する(S506)。
【0111】
上記送信・再送信は、当該画像情報を分割した全てのパケットが送信されるまで繰り返し実行される(S508)。そして、全てのパケットの送信が終了すると、当該画像情報の送信処理を終了する。
【0112】
かかる送信処理に従えば、通信状態に応じてパケットの送信回数および送信速度が設定されるので、無駄な送信を回避しながら、効率的かつ確実に、パケットをホームサーバに送信することができる。
【0113】
なお、上記送信処理フローでは、電界強度Eに応じて、パケットの送信回数と送信速度の両方を変更するようにしたが、何れか一方のみを変更するようにしてもよい。また、電界強度の閾値は、上記のように3段階とする他、通信状態に応じて種々変更することも可能である。
【0114】
図18に、上記画像送信処理ステップにおける他の処理例を示す。この処理フローは、上記図17の処理フローと同様、ホームサーバ200から受信するパイロット信号の電界強度の大きさに応じて、パケットの送信回数と送信速度の両方を変更するものである。上記図17の処理フローに比べると、S510が追加されている点が相違している。かかるS510を追加することで、再送信の際の送信回数をk(kは自然数)だけ増加させるものである。
【0115】
すなわち、S505にて設定された送信回数だけパケットを送信したが、その受信確認が一定期間内に受信されなかったとき(S507)、通信制御部106は、S505a〜S505dの何れかにおいて設定された送信回数Pをkだけ増加させ(S510)、この送信回数P+kにて、送信されなかったパケットをホームサーバ200に再送信する(S506)。
【0116】
なお、図18の処理フローでは、再送信の際、パケットの送信速度Vは変更されないが、再送信時における送信の確実性を向上させるためには、送信速度Vをも変更するようにしても良い。たとえば、上記閾値A、B、Cにて設定される送信速度Vのランクを、再送信時には、1ランクずつ下げるようにする。
【0117】
かかる送信処理に従えば、図17の処理フローに比べ、再送信時における送信の確実性をさらに向上させることができる。
【0118】
ところで、上記図17および図18の送信処理フローでは、送信設定回数p1〜p4を固定としたが、たとえば図19に示すような通信履歴を情報記憶部104に保持せしめ、この通信履歴に基づいて設定回数p1〜p4を適宜変更するようにしても良い。
【0119】
たとえば、図19に示す通信履歴においては、上記閾値によって区分される4つの電界強度レベルL1〜L4が設定されており、送信時における電界強度レベルとそのときの送信回数、受信確認の受信回数(ACK回数)および受信の良否を互いに対応付けて取り込まれている。そして、一定期間経過毎に、受信良否がOKである場合の送信回数を平均化値を電界強度レベル毎に算出し、各電界強度レベルの平均値(自然数)を、当該一定期間経過時点における各電界強度レベルの設定回数p1〜p4とする。
【0120】
これにより、電界強度に応じて送信回数を最適化することができ、もって、無駄な送信の回避と、パケット送信の効率性、確実性を、更に向上させることができるようになる。
【0121】
なお、上記平均化処理において、受信確認回数(ACK回数)を重み付け値として取り込むようにしても良い。
【0122】
以上、本発明の実施の形態について説明したが、本発明は上記実施の形態に限定されるものではない。
【0123】
たとえば、上記実施の形態では、ホームサーバ200からパイロット信号を送信する電波の電界強度を検出するようにしたが、これ以外の電波の電界強度を検出するようにしても良い。また、通信状態の判別は、上記の如く電界強度の大きさによる判別の他、種々の判別方法を採用し得る。
【0124】
また、上記実施の形態では、通信制御部106と通信モジュール108とが別体となっていたが、通信モジュール108がデジタルカメラ100に固定されるような形態にて、両者が一体となっていても構わない。さらに、通信モジュール108の方が上記通信制御部106の機能を取り込んでいても良い。
【0125】
また、上記図18の処理フローでは、サーバホーム200からの受信確認を一定期間内に受信しない場合、直ちに送信回数をkだけ増加させるようにしたが、たとえば、受信確認を受信できない状態が所定回数継続したときに、送信回数を増加させるようにしても良い。
【0126】
また、上記実施の形態では、デジタルカメラで撮影した写真画像をホームページに組み込む構成を例示したが、動画、音声等の他のコンテンツをホームページに組み込むようにしても良い。また、デジタルカメラとホームサーバ間の通信に限らず、様々な機器間の通信に採用可能である。
【0127】
また、図1では、機能毎に各部を区分してデジタルカメラ100とホームサーバ200の構成を示したが、同図に示す各ブロックはハードウエアとして独立している必要はなく、単一のハードウエア構成によりソフトウエア的に各機能が実現されるようにすることも勿論可能である。たとえば、上記処理フローを実行する制御プログラムをデジタルカメラ100とホームサーバ200に適宜ダウンロードすることにより、これらの機能をデジタルカメラ100とホームサーバ200に付与するようにしてもよい。
【0128】
この他、本発明の実施の形態は、本発明の技術的思想の範囲内において、適宜種々の変更が可能である。
【0129】
【発明の効果】
以上、本発明によれば、通信状態に応じてパケットの送信回数および送信速度が設定されるので、無駄な送信を回避しながら、効率的かつ確実に、パケットをホームサーバに送信することができる。
【図面の簡単な説明】
【図1】実施の形態に係る画像閲覧システムの構成を示す図
【図2】実施の形態に係る通信制御部106の構成を示す図
【図3】実施の形態に係る画像情報の自動転送処理フローを示す図
【図4】実施の形態に係る閲覧レベル設定処理フローを示す図
【図5】実施の形態に係るレベル設定テーブルの構成例を示す図
【図6】実施の形態に係るホームページ閲覧処理フローを示す図
【図7】パケット送信フローを示す図
【図8】通信プロトコルの一例を示す図
【図9】パケット送受信シーケンスを示す図
【図10】パケット送信フローの変更例を示す図
【図11】パケット送受信シーケンスを示す図
【図12】パケット送信フローの変更例を示す図
【図13】パケット送受信シーケンスを示す図
【図14】パケット送信フローの変更例を示す図
【図15】パケット送受信シーケンスを示す図
【図16】送信履歴の構成例を示す図
【図17】実施の形態に係るパケット送信フローを示す図
【図18】実施の形態に係るパケット送信フローの変更例を示す図
【図19】実施の形態に係る送信履歴の構成例を示す図
【符号の説明】
100 デジタルカメラ
101 制御部
104 情報記憶部
106 通信制御部
107 通信インタフェース
108 通信モジュール
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data transmission device, a data transmission method, and a program, and is particularly suitable for use in transmitting image information or the like acquired by a digital camera or the like to another terminal device by wireless communication.
[0002]
[Prior art]
The construction of a so-called network home electric appliance system for monitoring and controlling home appliances using a home network is progressing. In this system, a home network and an external network such as the Internet are mediated by a server (home server) such as a home gateway, and home devices are remotely controlled by a portable terminal device such as a PDA (Personal Digital Assistants). Things. In addition, information from an external distribution server is taken into home devices as needed via the home server.
[0003]
Here, the communication between the home server and the home device may employ various communication methods such as a method using a power supply line and a method using wireless communication such as IEEE802.11b wireless LAN and Bluetooth. In addition, home devices to be communicated with may include not only home appliances such as refrigerators and microwave ovens, but also portable AV devices such as digital videos and digital cameras.
[0004]
In addition, the home server may be provided with not only a home device control function but also a homepage creation / providing function, an e-mail transmission / reception function, a homepage browsing function provided from an external server, and the like. Thus, for example, the user creates his / her own homepage on the home server, and transmits image information captured by the digital camera to the home server via a wireless / wired home network, thereby transmitting the image information on the home server. Can be captured.
[0005]
When transmitting captured image information to a home server by wireless communication, the state of communication with the home server changes due to movement of the digital camera. When the communication state becomes poor, a case where transmission data is not normally received on the home server side may occur. In such a case, the unreceived data is retransmitted from the digital camera to the home server. Such retransmission is usually performed when no acknowledgment has been transmitted from the home server during a period from the data transmission until a predetermined period has elapsed.
[0006]
The transmission and retransmission are performed by dividing the image information into packets of a fixed length and transmitting these packets one by one in order. That is, the first packet is transmitted to the home server, and if the acknowledgment is not received within a predetermined period, the first packet is transmitted once again. Such retransmission is repeated, and when the first packet is normally received, the next packet is transmitted to the home server only once.
[0007]
However, in communication with a portable device such as a digital camera, the state of the wireless communication path changes every moment as the device moves. For this reason, when the method of repeating transmission / retransmission only once at a constant interval as described above is employed, it becomes difficult to match the timing of a good communication path state with the timing of packet communication. Therefore, it takes a long time until one packet is transmitted normally, which results in accumulation of untransmitted image information.
[0008]
Patent Document 1 below describes a technique for changing a packet length according to the quality of a communication line.
[0009]
[Patent Document 1]
JP 2001-15695 A
[Problems to be solved by the invention]
Therefore, an object of the present invention is to provide a data transmission device capable of reliably transmitting data even in wireless communication.
More specifically, it is an object to provide a data transmission device capable of efficiently performing data communication according to a state of a communication path.
[0011]
[Means for Solving the Problems]
In view of the above problems, the present invention has the following features.
[0012]
2. A data communication apparatus according to claim 1, wherein: a wireless communication unit configured to perform wireless communication; a detection unit configured to detect a communication state in the wireless communication; and a packet generation unit configured to generate a transmission packet by dividing data into packets. And transmitting means for transmitting the generated packet via the wireless communication means, wherein the transmitting means determines the number of transmissions of the packet to be transmitted at one time based on a detection result of the detecting means. And
[0013]
According to a second aspect of the present invention, in the data communication device according to the first aspect, the detecting unit includes a unit configured to detect an electric field intensity of a radio wave generated from a transmission destination device, and based on the detected electrolytic intensity, The communication state with the destination device is detected.
[0014]
According to a third aspect of the present invention, in the data communication device according to the first or second aspect, the transmitting unit determines a packet transmission speed together with the number of times of transmission of the packet based on a detection result of the detecting unit. It is characterized by the following.
[0015]
According to a fourth aspect of the present invention, in the data communication device according to any one of the first to third aspects, the data communication apparatus further includes a determination unit configured to determine whether the transmitted packet has been normally received. When it is determined that the packet has not been received normally, the packet that has not been received normally is retransmitted, and the number of transmissions at the time of retransmission is changed based on the determination result of the determination unit. And
[0016]
According to a fifth aspect of the present invention, in the data communication device according to the fourth aspect, when the determination unit determines that the packet has not been received normally, the packet which has not been normally received is retransmitted next time. The number of transmissions is increased by a predetermined number of times from the number of transmissions immediately before the packet.
[0017]
According to a sixth aspect of the present invention, in the data communication device according to the fourth or fifth aspect, the data communication apparatus further includes a storage unit that stores a detection result of the detection unit and a determination result of the determination unit in association with each other, The number of packet transmissions is determined based on history information stored in the storage means.
[0018]
8. A data transmitting method according to claim 7, wherein a detecting step of detecting a communication state in the wireless communication unit, a packet generating step of dividing data into packets to generate a transmission packet, and transmitting the generated packet to the wireless communication unit. And a transmitting step of transmitting packets via a means, wherein the transmitting step determines the number of times of transmission of a packet to be transmitted at once based on a detection result of the detecting step.
[0019]
According to an eighth aspect of the present invention, in the data transmission method according to the seventh aspect, the detecting step detects an electric field intensity of a radio wave generated from the transmission destination device, and based on the detected electrolysis intensity, the transmission destination device. And detecting a communication state between the two.
[0020]
According to a ninth aspect of the present invention, in the data transmission method according to the seventh or eighth aspect, the transmitting step determines a transmission rate of the packet as well as the number of transmissions of the packet based on a detection result of the detection step. It is characterized by the following.
[0021]
A tenth aspect of the present invention is a program for providing a computer with a function of executing the processing steps according to any one of the seventh to ninth aspects.
[0022]
When the communication device includes both a communication system using a wireless communication system and a communication system using a wired communication system, the above-described invention is applied to a wireless communication system, and the wired communication system uses the communication system according to a communication state. A normal communication technique that does not change the number of packet transmissions may be applied.
[0023]
In the claims, "changing the number of packet transmissions at the time of retransmission based on the determination result of the determination means" means that the number of transmissions is immediately changed in accordance with the determination that the reception has not been performed normally. In addition to the case where the number of transmissions is changed a predetermined number of times, the number of transmissions is changed.
[0024]
The features of the present invention will become more apparent from the following description of embodiments.
[0025]
However, the following embodiments are merely one embodiment of the present invention, and the meanings of the terms of the present invention and each component are not limited to those described in the following embodiments. Absent.
[0026]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0027]
FIG. 1 shows a configuration of an image browsing system according to the embodiment. This system includes a digital camera 100 and a home server 200.
[0028]
Image information captured by the digital camera 100 is transmitted to the home server 200 as needed. Home server 200 stores the received image information on a hard disk or the like. At this time, for each piece of image information, the disclosure target information such as, for example, “non-public”, “all public”, “only self-public”, and “only ○” is set by the user. In this case, “disclose only to yourself” or “disclose only to Mr. XX” is set, for example, by associating the user ID of the destination user with each image information.
[0029]
When the homepage is accessed from another user terminal 301 to 303 via the public network, the home server 200 compares the user ID of the other user terminal with the above disclosure target information, and the user can browse the homepage. Search for allowed image information. Then, page information is created by incorporating the searched image information into a homepage and transmitted to the user terminal. As a result, a home page incorporating only the permitted images is provided for browsing by the user terminal.
[0030]
It is also possible to access the home server 200 from the terminal device 401 in the house and browse the image information. In this case, the user ID is transmitted from the terminal device 401 to the home server 200 before browsing. The home server 200 compares the received user ID with the disclosure target information, and searches for image information that the user is permitted to view. Then, only the searched image information is transmitted to the terminal device 401. As a result, only the permitted images are provided for viewing by the terminal device 401.
[0031]
The digital camera 100 includes a control unit 101, an image input unit 102, a display unit 103, an information storage unit 104, an information input unit 105, a communication control unit 106, and a communication interface 107.
[0032]
The control unit 101 controls each unit according to a built-in program. The image input unit 102 includes a camera, a photographing unit such as a CCD (Charge Coupled Device), and an image information creating unit. The display unit 103 includes a display unit such as a liquid crystal monitor, and displays a subject at the time of shooting and after shooting, function information (characters), and the like. The information storage unit 104 includes storage means such as a removable solid-state semiconductor memory, and stores image information and the like obtained by photographing. The information input unit 105 includes various input means such as function setting buttons.
[0033]
The communication control unit 106 divides the image information of the captured image into packets and transmits the packets to the home server 200, and also transmits various control information from the control unit 101 to the home server 200. Also, it sends the received information from home server 200 to control unit 101. The communication interface 107 includes means for mounting the communication module 108, and mediates data exchange between the communication module 108 and the communication control unit 106.
[0034]
The communication interface 107 can be equipped with two types of communication modules 108 for wireless communication and wired communication. The type of the mounted communication module 108 is identified by ID information provided from the communication module 108 to the communication control unit 106.
[0035]
When a communication module for wireless communication is mounted, information such as image information is transmitted to the home server 200 via the antenna 205 and the wireless processing unit 204 on the home server 200 side. When a communication module for wired communication is mounted, information such as image information is transmitted to the home server 200 via the local network communication unit 208 on the home server 200 side.
[0036]
The wireless communication module 108 includes means for detecting the electric field strength of the communication wave from the home server 200. The information on the electric field strength is supplied to the communication control unit 106 via the communication interface 107.
[0037]
The communication control unit 106 includes two communication control systems, a communication control system 1061 for wireless communication and a communication control system 1062 for wired communication, as shown in FIG. In the figure, the communication module determining unit 1063 determines the type of the communication module 108 based on the above-described module ID, and outputs the determination result to the switching unit 1064. The switching unit 1064 selects one of the communication control systems according to the determination result. Thereby, the communication control system corresponding to the type of the communication module is selected.
[0038]
Returning to FIG. 1, the home server 200 includes a control unit 201, a display unit 202, an information storage unit 203, a wireless processing unit 204, an antenna 205, an image conversion unit 206, an interface 207, and a local network communication unit. 208, an HP creation unit 209, an information input unit 210, and a network communication unit 211.
[0039]
The control unit 201 controls each unit according to a built-in program. The display unit 202 includes display means such as a liquid crystal monitor, and displays image information received from the digital camera 100, thumbnail images obtained by reducing the image information, and the like. The information storage unit 203 includes storage means such as a hard disk, and stores image information received from the digital camera 100, disclosure target information of each image information set by a user, and the like.
[0040]
The wireless processing unit 204 processes the wireless communication wave received from the communication module 108 via the antenna 205, generates communication control information, image information, and the like, and outputs this to the control unit 201. Further, it converts communication control information and the like received from the control unit 201 into a wireless communication wave, and outputs this from the antenna 205.
[0041]
For example, the wireless processing unit 204 converts a pilot signal (a signal for identifying a home server) supplied from the control unit 201 at regular intervals into a wireless communication wave and outputs the wireless communication wave. Further, in an image information automatic transfer mode described later, in response to an image information transmission request from the digital camera 100, the communication control information for request confirmation is converted into a wireless communication wave and output.
[0042]
Note that as a communication method in the wireless processing unit 204, IEEE802.11b, 11g, or the like can be adopted.
[0043]
The image conversion unit 206 converts image information received from the digital camera 100 into thumbnail information. The interface 207 mediates data exchange between the control unit 201 and the local network communication unit 208. The local network communication unit 208 includes a jack to which a data input / output terminal of the communication module 108 for wired communication is connected, and controls communication with the communication module 108. The communication here is performed using a communication protocol such as Ethernet.
[0044]
HP creating section 209 creates home page information according to the input from information input section 210. The created homepage information is stored in the information storage unit 203. This home page includes a page for browsing images or an area for browsing images. When the homepage is accessed from another user terminal, HP creating unit 209 selects image information permitted to be provided to this user terminal from information storage unit 203, and selects this from a page for image browsing or image browsing. Incorporate in the area for
[0045]
That is, the user ID of the access source user terminal is compared with the disclosure target information in the information storage unit 203, and image information that the user is permitted to browse is searched. Then, the image ID of the searched image information is described together with the display instruction in a description location in the homepage information corresponding to the image viewing page or the image viewing area on the created and stored homepage.
[0046]
The information input unit 210 includes input means such as a keyboard and a pen touch panel. The network communication unit 211 controls communication with a public network.
[0047]
FIG. 3 shows a processing flow on the digital camera 100 side when image information is automatically transferred (wireless communication) from the digital camera 100 to the home server 200.
[0048]
When a photograph is taken (S101), image information of the taken photograph is generated by the image input unit 102 and stored in the information storage unit 104 (S102). Then, the transmission flag of this image information is set to 0 (S103). The storage of the image information and the setting of the transmission flag are executed each time a photograph is taken. As a result, the image information in an untransmitted state is accumulated in the information storage unit 104.
[0049]
For example, when the communication control unit 106 receives a pilot signal from the home server 200 and can communicate with the home server 200 by moving from outside the house to the inside of the house (S104), the image information in the untransmitted state Is stored (S105), untransmitted image information is read from the information storage unit 104, and is divided into transmission packets by the communication control unit 106. Each of the divided packets is sequentially output from the wireless communication module 108 to the home server 200 side (S106). Then, when all packets for one piece of untransmitted image information are transmitted to the home server 200 and reception confirmations for all these packets are received from the home server 200, the control unit 101 changes the transmission flag for the image information to 1 I do. As a result, the image information is set as transmitted (S107).
[0050]
The transmission of the image information is executed until all the untransmitted image information is transmitted to the home server 200 in S105. In the meantime, if a new photograph is taken, the image information of the photographed photograph is sequentially stored in the information storage unit 104 in the processing of S101 to S103.
[0051]
FIG. 4 shows a processing flow in the home server 200 when setting a browsing level (information to be disclosed) in image information received from the digital camera 100.
[0052]
When receiving the image information from the digital camera 100 (S201), the control unit 201 stores the received image information in the information storage unit 203 (S202), and sets the level setting flag of the image information to 0 (S203). The storage of the image information and the setting of the level setting flag are executed each time the image information is received. As a result, image information for which the viewing level is not set is accumulated in the information storage unit 203.
[0053]
When the unleveled image information is thus stored in the information storage unit 203 (S204), the control unit 201 sequentially sends the unleveled image information to the image conversion unit 206. The image conversion unit 206 generates image information for thumbnail images (thumbnail image information) from the received image information. The generated thumbnail image information is sent to the display unit 202 via the control unit 201. Thus, the thumbnail images for which the level has not been set are sequentially displayed on the display unit 202 (S205).
[0054]
When the user selects a predetermined image from the thumbnail images displayed in this way and sets a predetermined browsing level for the image (S206), the disclosure target information corresponding to the browsing level is displayed in the image. Is stored in the information storage unit 203 in association with the image information (S207).
[0055]
For example, when the user selects a predetermined thumbnail image, four options of “non-public”, “all public”, “public only”, and “public setting” are displayed on the display unit 202. When the user selects “all release”, “All” is set as the release destination of the image information. Further, when "Publication of only oneself" is selected, "Personal user ID" registered in advance is set as the destination of the image information. Further, when "publishing destination setting" is selected, an input field for the user ID of the destination user is displayed. When the user inputs a desired destination user ID in this input field, the destination of the image information is set to the destination of the image information. A user ID is set.
[0056]
Thus, when the level setting for the image information is performed, the control unit 201 changes the level setting flag of the image information to 1. As a result, the image information is set to the level setting completed (S208). In this way, the thumbnail image of the image information whose level setting flag has been changed to 1 is deleted from the display unit 202. The display unit 202 continues to display only the thumbnail images for which the level has not been set.
[0057]
FIG. 5 shows an example of the level setting table. In the figure, the image ID is an identification code given to the image information stored in the information storage unit 203. In the figure, “MEaaaaaa” is “own user ID”, and “FRbbbbb” is a user ID set as a release destination.
[0058]
FIG. 6 shows a processing flow in the home server 200 when another user terminal accesses the home page of the home server 200 via the public network.
[0059]
When the homepage is accessed from the other user terminals 301 to 303 (S301), the control unit 201 requests the user terminal of the access source to transmit a user ID and a password via the network communication unit 211. When this request is received and an appropriate user ID and password are returned from the access source user terminal (S302), the process proceeds to a homepage providing process.
[0060]
First, the control unit 201 sends the homepage information creation command and the user ID of the access source user terminal to the HP creation unit 209. Upon receiving this instruction, the HP creating unit 209 reads out the created homepage information from the information storage unit 203 (S303). Further, the user ID of the access source user terminal is compared with the disclosure target information (the level setting table in FIG. 5) in the information storage unit 203, and image information permitted to be browsed by the user is searched (S304). Specifically, an image whose release destination is “ALL” and an image whose access source user ID is set as a release destination are searched. Then, the image ID of the searched image is described together with the display command in a description location in the image browsing page or the web page information corresponding to the image browsing area on the created and stored home page.
[0061]
The home page information for the user thus created is transmitted to the access source user terminal together with the searched image information (S305). As a result, only the image information permitted to be viewed by the user is provided for browsing.
[0062]
If the access source user terminal does not return a proper user ID and password in S302, for example, if no user ID and password are transmitted for a certain period of time, or if the received user ID and password are not registered In such a case, the provision of the homepage is stopped. Alternatively, an image whose release destination is “ALL” may be searched, incorporated into a homepage, and provided to the access source user terminal.
[0063]
FIG. 7 shows details of the image information transmission processing step (S106) in the automatic transfer processing flow (FIG. 3). Here, as described above, the image information is divided into packets of a fixed length and transmitted. As a communication protocol, for example, TCP / IP (Transmission Control Protocol / Internet Protocol) is used.
[0064]
When the communication module (for wireless) 108 receives the pilot signal from the home server 200 and becomes able to communicate with the home server 200 (S104 in FIG. 3), the communication control unit 106 transmits the packet via the communication module 108. A transmission request is transmitted to home server 200. In response to this, a confirmation of the packet transmission request is transmitted from the home server 200, and when this is received by the communication control unit 106, a connection is established (S401), and the communication control unit 106 sequentially transmits the image information to be transmitted to the packet. (S402), and the variable N is set to 1 (S403). Then, the first (N = 1) packet is transmitted to home server 200 a plurality of times (for example, twice) set in advance (S404).
[0065]
After the transmission, the communication control unit 106 waits for a reception confirmation from the home server 200. If the reception is not confirmed within a certain period (NO in S405), for example, when the communication quality on the wireless communication path is poor (NO in S405), the head (N = 1) packet is re-transmitted a plurality of times (for example, twice) ) Just send. This retransmission is repeated until a reception confirmation of the packet is received from the home server 200 side (S405, S404).
[0066]
Here, when the number of retransmissions exceeds a predetermined number (for example, 50), the processing may be stopped as a transmission error.
[0067]
On the other hand, when the reception confirmation is received within a certain period (YES in S405), the communication control unit 106 determines whether an untransmitted packet of the image information remains (S406). If untransmitted packets remain, the variable N is counted up by 1 (S407), and the next packet is transmitted a plurality of times (for example, twice) as set above (S404).
[0068]
The transmission / retransmission is repeatedly performed until all the packets obtained by dividing the image information are transmitted (S406). When the transmission of all the packets is completed, the transmission process of the image information is completed.
[0069]
FIG. 9 shows a transmission / reception sequence between the digital camera 100 and the home server 200 when the processing flow of FIG. 7 is followed.
[0070]
When the communication module (for wireless) 108 receives the pilot signal from the home server 200 and becomes able to communicate with the home server 200, a packet transmission request is transmitted from the digital camera 100 to the home server 200. In response to this, a transmission request confirmation is transmitted from the home server 200. When the transmission request confirmation is received by the digital camera 200, the packet 1 is transmitted from the digital camera 100 to the home server 200, for example, twice.
[0071]
The two transmitted packets are transmitted to the home due to, for example, deterioration of communication quality on a wireless communication path (the deterioration of communication quality is caused by a change in distance between the digital camera 100 and the home server 200 or noise due to external factors). When the digital camera 100 does not reach the server 200 and thus does not receive the reception confirmation from the home server 200 within the predetermined period T, the digital camera 100 transmits the packet 1 twice again.
[0072]
When one of the two packets 1 transmitted in this retransmission reaches the home server 200 and is normally processed, a reception confirmation is transmitted from the home server 200 to the digital camera 100. However, when the reception confirmation does not reach the digital camera 100, the digital camera 100 transmits the packet 1 twice again. When the two retransmitted packets 1 are normally received by the home server 200, the home server 200 transmits the packet 1 acknowledgment twice.
[0073]
When the reception confirmation is received by the digital camera 100, the digital camera 100 transmits the next packet, packet 2, twice. Thereafter, transmission and reception of subsequent packets are executed in the same manner as described above.
[0074]
According to such a transmission process, packets are transmitted twice at the same time in transmission and retransmission, so that the packets can easily reach the home server 200 by one transmission as compared with the case where one packet is transmitted only once. In particular, in a portable device such as the digital camera 100, the state of the wireless communication path changes every moment as the device moves, so that the timing of the communication path is good and the timing of packet communication is not. Is an important factor in communication processing.
[0075]
According to the above transmission processing, packets are transmitted twice at the same time during transmission and retransmission, so that packet communication is easily performed at a timing when the state of the communication path is good. Thus, the reliability and reliability of communication can be improved.
[0076]
In the transmission process, the same packet may reach the home server 200 a plurality of times. For example, in the sequence of FIG. 9, packet 1 has arrived at home server 200 three times. In such a case, the control unit 201 of the home server 200 refers to the sequence number in the TCP header (FIG. 8) attached to the packet and determines the identity of the received packet. Then, when the same packet is normally received again after one packet is normally received, only the first normally received packet is adopted.
[0077]
By the way, in the above processing example, the reliability of communication improves as the number of times of transmission of a packet transmitted at a time increases. However, when the number of times of transmission is increased, the rate at which the same packet is repeatedly received increases, and wasteful transmission increases. Useless transmission causes processing delay on the digital camera 100 side and battery consumption. Therefore, even if the number of times of transmission is set to a plurality of times, it is necessary to suppress the number of times of useless transmission as much as possible.
[0078]
FIG. 10 shows another processing example in the image transmission processing step. This processing flow is different from the processing flow of FIG. 7 in that S410 to S412 are added. By adding such a step, the number of retransmissions when a reception confirmation is not received from the home server 200 is gradually increased.
[0079]
That is, the variable M is set to j (for example, 2) in S410. Then, at the time of the first transmission, the packet is transmitted M (M = j) times (S411). If no acknowledgment has been received from the home server 200 for this transmission (S405), the variable M is counted up by k (for example, 1) (S412). Then, at the time of retransmission, the packet is transmitted the variable M (M = j + k) times after being counted up (S411). When the packet is normally received by the retransmission (YES in S405), the process shifts to transmission of the next packet (S406, S407). The number of transmissions at this time is returned to j times (S410).
[0080]
FIG. 11 shows a transmission / reception sequence between the digital camera 100 and the home server 200 when the processing flow of FIG. 10 is followed.
[0081]
When communication with the home server 200 becomes possible, a packet transmission request is transmitted from the digital camera 100 to the home server 200. In response to this, a transmission request confirmation is transmitted from the home server 200. When the transmission request confirmation is received by the digital camera 200, the packet 1 is transmitted from the digital camera 100 to the home server 200, for example, twice.
[0082]
If the two transmitted packets do not reach the home server 200, and thus do not receive the acknowledgment from the home server 200 within a certain period T, the digital camera 100 increments the number of retransmissions by one. Then, packet 1 is transmitted three times.
[0083]
When two of the three packets 1 transmitted in this retransmission are normally received by home server 200, a reception confirmation is transmitted from home server 200 to digital camera 100. When the reception confirmation is received by the digital camera 100, the digital camera 100 returns the number of transmissions to the initially set number of times, and transmits the next packet, packet 2, only twice. Thereafter, transmission and reception of subsequent packets are executed in the same manner as described above.
[0084]
According to such transmission processing, the probability of receiving a packet to the home server 200 can be further improved by increasing the number of transmissions at the time of retransmission. Further, by returning from the retransmission state to the normal transmission state, the number of transmissions is returned to the initially set number, so that useless transmission can be suppressed as much as possible. Thus, it is possible to suppress processing delay and battery waste on the digital camera 100 side.
[0085]
FIG. 12 shows another processing example in the image transmission processing step. This processing flow is different from the processing flow of FIG. 10 in that S420 is added. In the processing flow of FIG. 10 described above, when the retransmission is normally performed, the next packet is transmitted for the initial set number of times (M = j). In the processing flow of FIG. 12, by adding S420, even if retransmission is normally performed, unless the acknowledgment (Ack) is received for all of the retransmitted packets, the next transmission number corrected at the previous retransmission is used. Is transmitted.
[0086]
That is, if no acknowledgment has been received from the home server 200 during normal transmission (S405), the variable M is counted up by k (for example, 1) (S412). Then, at the time of retransmission, the packet is transmitted the variable M (M = j + k) times after being counted up (S411).
[0087]
When the packet is normally received by the retransmission (YES in S405), the process shifts to transmission of the next packet (S406, S407). At this time, it is determined whether the number of acknowledgments received at the time of the previous transmission matches the number of packet transmissions (S420). If it is determined that they match, the process returns to S410, and the number of transmissions of the next packet is returned to j times. On the other hand, if it is determined that they do not match, the variable M is maintained at M = j + k, and the number of transmissions of the next packet is set to M = j + k (S411).
[0088]
FIG. 13 shows a transmission / reception sequence between the digital camera 100 and the home server 200 according to the processing flow of FIG.
[0089]
For example, by retransmission, the packet 9 is transmitted three times, and when the last one is normally received by the home server 200, the home server 200 transmits a reception confirmation only once. In this case, even though the packet 9 has been transmitted three times, the acknowledgment is received only once. Therefore, when transmitting the next packet 10, the number of transmissions set at the time of retransmitting the packet 9 is applied as it is. You. Therefore, the packet 10 is transmitted three times.
[0090]
When all of the packets 10 transmitted three times in this way are normally received and three acknowledgments are transmitted from the home server 200, the number of transmissions is reset from three to the initially set number (j = 2). Thus, the next packet, packet 11, is transmitted only twice. Thereafter, transmission and reception of subsequent packets are performed in a similar manner.
[0091]
According to this transmission processing, the communication state is not reset to the initial set number immediately after the retransmission is performed normally, and the communication state is good enough to confirm reception from the home server 200 for all transmission packets. At this timing, the number of packet transmissions is reset to the initially set number, so that the number of packet transmissions according to the state of the wireless communication path can be further set as compared with the processing flow of FIG.
[0092]
As the threshold value for resetting the number of times of communication to the initially set number of times, the number of times of transmission may be employed as it is, or a number of times slightly smaller than the number of times of transmission may be employed.
[0093]
FIG. 14 shows another processing example in the image transmission processing step. This processing flow is different from the processing flow of FIG. 12 in that S421 and S422 are added. In the processing flow of FIG. 12, when the number of acknowledgments matches the number of transmissions, the number of transmissions of the next packet is reset to the initially set number (M = j). On the other hand, in the processing flow of FIG. 14, by adding S421 and S422, when the number of acknowledgments matches the number of transmissions, the number of transmissions of the next packet is set to the initially set number (M = j). Without resetting, the number of transmissions at the time of retransmission is reduced by k to be the number of transmissions of the next packet.
[0094]
Here, the coincidence between the number of acknowledgments and the number of transmissions may occur at the time of transmission with the initially set number of times (M = j). In this case, if the number of transmissions is further reduced by k, the number of transmissions will be less than the initially set number of times. In order to avoid such a situation, S421 is particularly prepared, and when the number of transmissions M is the initially set number of times j, the number of transmissions M is not reduced by k, and the number of transmissions M is directly transmitted to the next packet. Used as a count.
[0095]
If there is no problem even if the number of transmissions M of the next packet is less than the initially set number of times j, even if the number of transmissions M has reached the initially set number of times, the number of transmissions is further reduced by K and the number of transmissions of the next packet is reduced. It may be applied as the number of times.
[0096]
FIG. 15 shows a transmission / reception sequence between the digital camera 100 and the home server 200 when the processing flow of FIG. 14 is followed. In this sequence, the initially set number j is set to j = 2, and the number k of increase / decrease factors is set to k or k = 2.
[0097]
For example, due to retransmission, the packet 10 is transmitted four times, and when all of them are normally received by the home server 200, a reception confirmation is transmitted from the home server 200 four times. Therefore, the number of transmissions of the next packet is reduced by k = 2 times, and as a result, the packet 11 is transmitted M = 2 times.
[0098]
When all the packets 11 transmitted twice in this manner are normally received and the acknowledgment is transmitted twice from the home server 200, it is determined whether the number of transmissions M matches the initially set number of times j. Here, since M = 2 times, it is determined that the number of transmissions is already the initial set number, and as a result, M = 2 is applied as it is as the number of transmissions of the next packet. Therefore, the next packet, packet 12, is transmitted only twice.
[0099]
According to such transmission processing, as in the processing flow of FIG. 12, the number of times of communication is reduced at a timing when the communication state becomes good enough to confirm reception from the home server 200 for all transmission packets. Therefore, the number of packet transmissions according to the state of the wireless communication path can be set. At this time, the number of times of communication is not immediately reset to the initial set value as in the processing flow of FIG. 12 described above, but is reduced by k times to gradually approach the initial set value. You can set the number of transmissions.
[0100]
As the threshold for reducing the number of times of communication, the number of times of transmission may be used as it is, or a number of times slightly smaller than the number of times of transmission may be used.
[0101]
By the way, in the above-mentioned transmission processing flow, the initially set number of transmissions j is fixed. However, for example, a communication history as shown in FIG. 16 is stored in the information storage unit 104, and the initially set number of times j is set based on this communication history. You may make it change suitably. For example, the number of transmissions when the reception quality is OK is set as a sample value, and the sample values are averaged every elapse of a certain period, and this average value (natural number) is set as the initial set number j at the elapse of the certain period. May be. In the averaging process, the number of reception confirmations (the number of ACKs) may be taken in as a weight value.
[0102]
FIG. 17 shows another processing example in the image transmission processing step. This processing flow is to change the number of times of packet transmission and the transmission speed according to the magnitude of the electric field strength of the pilot signal received from the home server 200. That is, as the electric field strength decreases, the number of packet transmissions increases and the transmission speed decreases. As the electric field intensity increases, the number of packet transmissions decreases and the transmission rate increases.
[0103]
Specifically, three thresholds A, B, and C (A <B <C) are set for the electric field strength, and when the electric field strength E of the pilot signal is E <A, the communication speed V = v1 and the number of transmissions P = When the electric field strength E is A ≦ E <B, the communication speed V = v2 and the number of transmissions P = p2. When the electric field strength E is B ≦ E <C, the communication speed V = v3 and the number of transmissions P = Let p3 be the communication speed V = v4 and the number of transmissions P = p4 when the electric field strength E is C ≦ E. Here, v1 <v2 <v3 <v4, p1>p2>p3> p4. For example, when the IEEE 802.11b communication method is adopted, v1 = 1 Mbps, v2 = 2 Mbps, v3 = 5.5 Mbps, and v4 = 11 Mbps. In addition, p1 to p4 are, for example, p1 = 4, p2 = 3, p3 = 2, and p4 = 1.
[0104]
Hereinafter, the processing flow of FIG. 17 will be described.
[0105]
When the communication module (for wireless) 108 receives a pilot signal from the home server 200 and communication with the home server 200 becomes possible, the communication control unit 106 transmits a packet transmission request via the communication module 108 to the home server 200. Send to In response to this, a confirmation of the packet transmission request is transmitted from the home server 200, and when this is received by the communication control unit 106, a connection is established (S501), and the communication control unit 106 sequentially transmits the image information to be transmitted. The packet is divided into packets (S502), and at the same time, a variable N is set to 1 (S503).
[0106]
Next, the communication control unit 106 detects the electric field strength E of the pilot signal at the present time based on the information on the electric field strength E of the pilot signal sent from the communication module 108 (S504). Then, the electric field strength E is compared with the thresholds A, B, and C to determine the number of transmissions P and the transmission speed V of the first packet (S505).
[0107]
That is, when the electric field strength E of the pilot signal is E <A, the communication speed V = v1 and the number of transmissions P = p1 (S505a). When the electric field strength E is A ≦ E <B, the communication speed V = v2 and the transmission When the number of times P = p2 (S505b), when the electric field strength E is B ≦ E <C, the communication speed is V = v3, and when the number of transmissions is P = p3 (S505c), and when the electric field strength E is C ≦ E, the communication speed is V = V4 and the number of transmissions P = p4 (S505d).
[0108]
Then, the first (N = 1) packet is transmitted to the home server 200 P times at the set transmission speed V (S506).
[0109]
After the transmission, the communication control unit 106 determines whether a reception confirmation has been received from the home server 200 within a certain period (S507). When the reception confirmation is received, the process shifts to the transmission of the next packet (S508, S509), and measures the electric field strength of the pilot signal as in the above (S504). Then, the number of transmissions P and the transmission speed V of the next packet are determined according to the measured electric field strength (S505), and the next packet is transmitted according to this (S506).
[0110]
On the other hand, if no acknowledgment has been received within a certain period, the process returns to S504 and retransmits the unsuccessfully transmitted packet. At this time, similarly to the above, the electric field strength of the pilot signal is measured (S504), and the number of transmissions P and the transmission speed V are determined according to the measured electric field strength (S505). Then, the unsuccessfully transmitted packet is retransmitted according to the number of transmissions P and the transmission speed V (S506).
[0111]
The transmission / retransmission is repeatedly performed until all the packets obtained by dividing the image information are transmitted (S508). When the transmission of all the packets is completed, the transmission process of the image information is completed.
[0112]
According to such transmission processing, the number of transmissions and the transmission speed of the packet are set according to the communication state, so that the packet can be transmitted to the home server efficiently and reliably while avoiding unnecessary transmission.
[0113]
In the above transmission processing flow, both the number of times of packet transmission and the transmission speed are changed according to the electric field strength E, but only one of them may be changed. Further, the threshold value of the electric field strength can be variously changed according to the communication state in addition to the three steps as described above.
[0114]
FIG. 18 shows another processing example in the image transmission processing step. This processing flow is to change both the number of times of packet transmission and the transmission speed according to the magnitude of the electric field strength of the pilot signal received from the home server 200, as in the processing flow of FIG. 17 is different from the processing flow of FIG. 17 in that S510 is added. By adding S510, the number of transmissions at the time of retransmission is increased by k (k is a natural number).
[0115]
That is, although the packet has been transmitted the number of times set in S505, but the acknowledgment has not been received within a certain period of time (S507), the communication control unit 106 sets the packet in any of S505a to S505d. The number of transmissions P is increased by k (S510), and the untransmitted packet is retransmitted to the home server 200 at the number of transmissions P + k (S506).
[0116]
In the processing flow of FIG. 18, the transmission speed V of the packet is not changed at the time of retransmission, but the transmission speed V may be changed to improve the reliability of transmission at the time of retransmission. good. For example, the rank of the transmission speed V set by the thresholds A, B, and C is reduced by one rank at the time of retransmission.
[0117]
According to such transmission processing, the reliability of transmission at the time of retransmission can be further improved as compared with the processing flow of FIG.
[0118]
By the way, in the transmission processing flow of FIGS. 17 and 18, the transmission set times p1 to p4 are fixed, but for example, a communication history as shown in FIG. 19 is stored in the information storage unit 104, and based on this communication history, The set times p1 to p4 may be changed as appropriate.
[0119]
For example, in the communication history shown in FIG. 19, four electric field strength levels L1 to L4 which are divided by the threshold are set, and the electric field strength level at the time of transmission, the number of transmissions at that time, the number of receptions of reception confirmation ( The number of ACKs) and the quality of reception are taken in association with each other. Then, every time a certain period elapses, an average value of the number of transmissions when reception quality is OK is calculated for each electric field intensity level, and an average value (natural number) of each electric field intensity level is calculated for each electric field strength at the elapse of the certain period. The set number of electric field strength levels is p1 to p4.
[0120]
As a result, the number of transmissions can be optimized according to the electric field strength, so that useless transmission can be avoided, and the efficiency and reliability of packet transmission can be further improved.
[0121]
In the averaging process, the number of reception confirmations (the number of ACKs) may be taken in as a weight value.
[0122]
The embodiments of the present invention have been described above, but the present invention is not limited to the above embodiments.
[0123]
For example, in the above embodiment, the electric field strength of a radio wave for transmitting a pilot signal from home server 200 is detected, but the electric field strength of other radio waves may be detected. Further, the determination of the communication state may employ various determination methods other than the determination based on the magnitude of the electric field strength as described above.
[0124]
Further, in the above-described embodiment, the communication control unit 106 and the communication module 108 are separate units. However, the communication control unit 106 and the communication module 108 are integrated in a form in which the communication module 108 is fixed to the digital camera 100. No problem. Further, the communication module 108 may incorporate the function of the communication control unit 106.
[0125]
Also, in the processing flow of FIG. 18 described above, if the reception confirmation from the server home 200 is not received within a certain period, the number of transmissions is immediately increased by k. When continuing, the number of transmissions may be increased.
[0126]
Further, in the above-described embodiment, the configuration in which the photographic image photographed by the digital camera is incorporated in the homepage is illustrated, but other contents such as a moving image and a sound may be incorporated in the homepage. Further, the present invention is not limited to communication between a digital camera and a home server, but can be used for communication between various devices.
[0127]
Also, FIG. 1 shows the configuration of the digital camera 100 and the home server 200 by dividing each unit for each function. However, each block shown in FIG. Of course, it is also possible to realize each function by software by a software configuration. For example, these functions may be provided to the digital camera 100 and the home server 200 by appropriately downloading a control program for executing the above processing flow to the digital camera 100 and the home server 200.
[0128]
In addition, the embodiments of the present invention can be variously modified as appropriate within the scope of the technical idea of the present invention.
[0129]
【The invention's effect】
As described above, according to the present invention, the number of transmissions and the transmission speed of the packet are set according to the communication state, so that the packet can be efficiently and reliably transmitted to the home server while avoiding unnecessary transmission. .
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration of an image browsing system according to an embodiment; FIG. 2 is a diagram illustrating a configuration of a communication control unit 106 according to an embodiment; FIG. 3 is an automatic transfer process of image information according to the embodiment; FIG. 4 is a diagram showing a flow. FIG. 4 is a diagram showing a browse level setting process flow according to the embodiment. FIG. 5 is a diagram showing a configuration example of a level setting table according to the embodiment. FIG. 7 shows a packet transmission flow. FIG. 8 shows an example of a communication protocol. FIG. 9 shows a packet transmission / reception sequence. FIG. 10 shows a modification of the packet transmission flow. FIG. 11 shows a packet transmission / reception sequence. FIG. 12 shows a modified example of a packet transmission flow. FIG. 13 shows a packet transmission / reception sequence. FIG. 14 shows a modified example of a packet transmission flow. FIG. 15 is a diagram showing a packet transmission / reception sequence. FIG. 16 is a diagram showing a configuration example of a transmission history. FIG. 17 is a diagram showing a packet transmission flow according to the embodiment. FIG. 18 is a change of the packet transmission flow according to the embodiment. FIG. 19 is a diagram showing an example. FIG. 19 is a diagram showing a configuration example of a transmission history according to the embodiment.
REFERENCE SIGNS LIST 100 Digital camera 101 Control unit 104 Information storage unit 106 Communication control unit 107 Communication interface 108 Communication module

Claims (10)

無線通信を行うための無線通信手段と、無線通信における通信状態を検出する検出手段と、データをパケットに分割して送信パケットを生成するパケット生成手段と、生成されたパケットを前記無線通信手段を介して送信する送信手段とを備え、
前記送信手段は、前記検出手段の検出結果に基づいて一度に送信するパケットの送信回数を決定することを特徴とするデータ送信装置。
Wireless communication means for performing wireless communication, detection means for detecting a communication state in wireless communication, packet generation means for generating a transmission packet by dividing data into packets, and transmitting the generated packet to the wireless communication means. Transmission means for transmitting via
The data transmitting device, wherein the transmitting unit determines the number of transmissions of a packet to be transmitted at once based on a detection result of the detecting unit.
請求項1において、
前記検出手段は、送信先機器から発生される電波の電界強度を検出する手段を備え、検出された電解強度に基づいて、当該送信先機器との間の通信状態を検出することを特徴とするデータ送信装置。
In claim 1,
The detection unit includes a unit that detects an electric field intensity of a radio wave generated from a transmission destination device, and detects a communication state with the transmission destination device based on the detected electrolytic strength. Data transmission device.
請求項1または2において、
前記送信手段は、前記検出手段の検出結果に基づいて、前記パケットの送信回数と共に、パケットの送信速度をも決定することを特徴とするデータ送信装置。
In claim 1 or 2,
The data transmitting apparatus according to claim 1, wherein said transmitting means determines a packet transmission speed as well as a packet transmission count based on a detection result of said detecting means.
請求項1ないし3の何れかにおいて、
送信されたパケットが正常に受信されたかを判別する判別手段をさらに備え、前記送信手段は、前記判別手段によりパケットが正常に受信されなかったと判別されたとき、正常に受信されなかったパケットを再送信すると共に、再送信の際の送信回数を、前記判別手段の判別結果に基づいて変化させることを特徴とするデータ送信装置。
In any one of claims 1 to 3,
A determining unit that determines whether the transmitted packet has been normally received; and the transmitting unit, when the determining unit determines that the packet has not been normally received, retransmits the packet that has not been normally received. A data transmission device for transmitting and changing the number of transmissions at the time of retransmission based on the result of the determination by the determination means.
請求項4において、
前記判別手段によりパケットが正常に受信されなかったと判別されたとき、正常に受信されなかったパケットを次に再送信する際の送信回数を、当該パケットの一回前の送信回数よりも所定回数だけ増加させることを特徴とするデータ送信装置。
In claim 4,
When it is determined that the packet has not been received normally by the determination unit, the number of transmissions when retransmitting the packet that has not been normally received next is a predetermined number of times greater than the number of transmissions immediately before the packet. A data transmission device characterized by increasing.
請求項4または5において、
前記検出手段による検出結果と前記判別手段による判別結果とを対応付けて記憶する記憶手段をさらに備え、
前記送信手段は、前記記憶手段に記憶されている履歴情報に基づいて、パケットの送信回数を決定することを特徴とするデータ送信装置。
In claim 4 or 5,
A storage unit that stores the detection result by the detection unit and the determination result by the determination unit in association with each other,
The data transmission device according to claim 1, wherein the transmission unit determines the number of transmissions of the packet based on history information stored in the storage unit.
無線通信手段における通信状態を検出する検出ステップと、データをパケットに分割して送信パケットを生成するパケット生成ステップと、生成されたパケットを前記無線通信手段を介して送信する送信ステップとを備え、
前記送信ステップは、前記検出ステップの検出結果に基づいて一度に送信するパケットの送信回数を決定することを特徴とするデータ送信方法。
A detecting step of detecting a communication state in the wireless communication unit, a packet generating step of generating a transmission packet by dividing data into packets, and a transmitting step of transmitting the generated packet via the wireless communication unit,
The data transmission method, wherein the transmission step determines the number of transmissions of a packet to be transmitted at one time based on a detection result of the detection step.
請求項7において、
前記検出ステップは、送信先機器から発生される電波の電界強度を検出し、検出した電解強度に基づいて、当該送信先機器との間の通信状態を検出することを特徴とするデータ送信方法。
In claim 7,
The data transmission method, wherein the detecting step detects an electric field intensity of a radio wave generated from the transmission destination device, and detects a communication state with the transmission destination device based on the detected electrolytic strength.
請求項7または8において、
前記送信ステップは、前記検出ステップの検出結果に基づいて、前記パケットの送信回数と共に、パケットの送信速度をも決定することを特徴とするデータ送信方法。
In claim 7 or 8,
The data transmission method, wherein the transmitting step determines a transmission speed of the packet as well as the number of transmissions of the packet based on a detection result of the detection step.
請求項7ないし9の何れかに記載の処理ステップを実行する機能をコンピュータに付与するプログラム。A program for giving a function of executing the processing steps according to claim 7 to a computer.
JP2003050161A 2003-02-26 2003-02-26 Data transmitter, and method and program for transmitting data Pending JP2004260634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003050161A JP2004260634A (en) 2003-02-26 2003-02-26 Data transmitter, and method and program for transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003050161A JP2004260634A (en) 2003-02-26 2003-02-26 Data transmitter, and method and program for transmitting data

Publications (1)

Publication Number Publication Date
JP2004260634A true JP2004260634A (en) 2004-09-16

Family

ID=33115645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003050161A Pending JP2004260634A (en) 2003-02-26 2003-02-26 Data transmitter, and method and program for transmitting data

Country Status (1)

Country Link
JP (1) JP2004260634A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007318212A (en) * 2006-05-23 2007-12-06 Sanden Corp Connection apparatus for communication apparatus
JP2008099171A (en) * 2006-10-16 2008-04-24 Nec Infrontia Corp Wireless data communication device
JP2008236052A (en) * 2007-03-16 2008-10-02 Rohm Co Ltd Position display device
WO2012063368A1 (en) * 2010-11-12 2012-05-18 富士通株式会社 Base station, mobile station, control method, setting method, and communication system
WO2016117199A1 (en) * 2015-01-20 2016-07-28 ソニー株式会社 Wireless communication device, and information processing method and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6248827A (en) * 1985-08-28 1987-03-03 Nec Corp Data transmission system
JPH10276178A (en) * 1997-03-31 1998-10-13 Fujitsu Ten Ltd Data transmitting device and method
JPH1132077A (en) * 1997-07-10 1999-02-02 Mitsubishi Electric Corp Transmission controller, reception controller, system and method for controlling communication
JP2001197144A (en) * 2000-01-14 2001-07-19 Fuji Electric Co Ltd Radio equipment
JP2002247133A (en) * 2001-02-19 2002-08-30 Toshiba Tec Corp Wireless communication apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6248827A (en) * 1985-08-28 1987-03-03 Nec Corp Data transmission system
JPH10276178A (en) * 1997-03-31 1998-10-13 Fujitsu Ten Ltd Data transmitting device and method
JPH1132077A (en) * 1997-07-10 1999-02-02 Mitsubishi Electric Corp Transmission controller, reception controller, system and method for controlling communication
JP2001197144A (en) * 2000-01-14 2001-07-19 Fuji Electric Co Ltd Radio equipment
JP2002247133A (en) * 2001-02-19 2002-08-30 Toshiba Tec Corp Wireless communication apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007318212A (en) * 2006-05-23 2007-12-06 Sanden Corp Connection apparatus for communication apparatus
JP2008099171A (en) * 2006-10-16 2008-04-24 Nec Infrontia Corp Wireless data communication device
JP2008236052A (en) * 2007-03-16 2008-10-02 Rohm Co Ltd Position display device
WO2012063368A1 (en) * 2010-11-12 2012-05-18 富士通株式会社 Base station, mobile station, control method, setting method, and communication system
JPWO2012063368A1 (en) * 2010-11-12 2014-05-12 富士通株式会社 Base station, mobile station, control method and communication system
JP5590141B2 (en) * 2010-11-12 2014-09-17 富士通株式会社 Base station, mobile station, control method and communication system
US9265054B2 (en) 2010-11-12 2016-02-16 Fujitsu Limited Base station, mobile station, control method, setting method, and communication system
WO2016117199A1 (en) * 2015-01-20 2016-07-28 ソニー株式会社 Wireless communication device, and information processing method and program
JPWO2016117199A1 (en) * 2015-01-20 2017-10-26 ソニー株式会社 Wireless communication apparatus, information processing method, and program

Similar Documents

Publication Publication Date Title
JP6716583B2 (en) Method and system for ranging protocols
CN103269260A (en) Data transmission method, data receiving terminal, data sending terminal and data transmission system
WO2008032750A1 (en) Communication device
JP2004260633A (en) Data transmitter, method for transmitting data, and program
CN107087292B (en) Method for adaptively transmitting data by mobile terminal
JP2004260634A (en) Data transmitter, and method and program for transmitting data
JP5928370B2 (en) Communication information measuring apparatus and program
US8274359B2 (en) Wireless connectivity for sensors
JP6217424B2 (en) Control apparatus and control method
US20220158764A1 (en) Methods and apparatuses for data transmission
JP6335430B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
EP3016431A1 (en) Method and device for transmitting data
CN110505039B (en) Data transmission control method, device, equipment and medium
JP2004187099A (en) Communication control method, communication system and communication equipment
US10425371B2 (en) Method for fragmented messaging between network devices
KR20180015486A (en) Method, Device and System for Communication using a Plurality Communication Scheme
JP5362026B2 (en) Communication failure factor estimation method, communication apparatus and program including the estimation method
JP7286513B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
KR101241736B1 (en) Port forwarding configuration method, terminal device and system using the same
JP5191942B2 (en) Wireless terminal device
JP2010187292A (en) Transmission apparatus and transmission control method
US20110216768A1 (en) Communication terminal, network device, communication system and communication method
JP2004088242A (en) Camera device and image transmitting method
JP2016019198A (en) Communication apparatus, control method for communication apparatus, and program
WO2023274292A1 (en) Transmission method and apparatus, device and medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080204

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090106