Nothing Special   »   [go: up one dir, main page]

JP4548960B2 - Communication method and program for wireless communication device - Google Patents

Communication method and program for wireless communication device Download PDF

Info

Publication number
JP4548960B2
JP4548960B2 JP2001078417A JP2001078417A JP4548960B2 JP 4548960 B2 JP4548960 B2 JP 4548960B2 JP 2001078417 A JP2001078417 A JP 2001078417A JP 2001078417 A JP2001078417 A JP 2001078417A JP 4548960 B2 JP4548960 B2 JP 4548960B2
Authority
JP
Japan
Prior art keywords
wireless communication
mode
communication function
function unit
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001078417A
Other languages
Japanese (ja)
Other versions
JP2002280925A5 (en
JP2002280925A (en
Inventor
賢一 藤井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2001078417A priority Critical patent/JP4548960B2/en
Publication of JP2002280925A publication Critical patent/JP2002280925A/en
Publication of JP2002280925A5 publication Critical patent/JP2002280925A5/ja
Application granted granted Critical
Publication of JP4548960B2 publication Critical patent/JP4548960B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Power Sources (AREA)
  • Calculators And Similar Devices (AREA)
  • Transceivers (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、無線によってデータ通信を行う無線通信装置の通信方法に関する。
【0002】
【従来の技術】
従来、無線通信機能を備える複数の端末間同士で、データ通信する無線通信システムが知られている。
【0003】
これらの複数の端末が、IrDA(infrared data association)、ブルートゥース(Bluetooth)等の規格にもどづいた無線通信機能を具備する端末である場合には、これらの端末の可搬性を高めるために、ユーザが、AC電源アダプタまたは携帯用バッテリーを選択的に上記端末に使用することができる。
【0004】
そして、バッテリーから電源の供給を受けて、上記端末間が無線データ通信する場合、上記端末を長時間使用できるようにするためには、上記各端末の消費電力を低くおさえる必要がある。
【0005】
上記端末の消費電力を低くおさえる方法が、たとえば、特開平6−132968号公報に記載されている。この方法は、ホスト(マスター)機器とスレーブ機器との間の受信制御信号を利用して、スレーブ機器の電源制御を行うことによって、スレーブ機器の消費電力を低減する方法である。
【0006】
また、特開平8−265178号公報では、電源の種類を判別する手段と、制御信号の受信レベルに応じて送信電力を調整する手段を兼ね備えた通信装置において、電源がACアダプタであれば、送信出力を大きくし、またバッテリーの場合には、送信出力を小さくすることによって、バッテリー使用時における消費電力を低減し、上記通信装置に装着されているバッテリーの使用可能時間を延ばす方法が開示されている。
【0007】
【発明が解決しようとする課題】
ところで、通信の同期を取るために、通信相手にコマンドのメッセージを送信してから送受信を開始するモードであるマスターモードで動作しているマスター機器と、通信の同期を取るために、通信相手からコマンドのメッセージを受信してから送受信を開始するモードであるスレーブモードで動作しているスレーブ機器とによって構成される通信システムにおいて、上記スレーブ機器の消費電力は、上記マスター機器の消費電力に比べ少ない。
【0008】
そして、スレーブ機器の送信出力を変えたり、スレーブ機器の電源を制御するような上述の方法では、上記スレーブ機器の消費電力を低減することはできるが、上記マスター機器の消費電力を低減する対策が施されていないので、上記マスター機器の消費電力を低減することができない。
【0009】
また、近年のブルートゥースのように、マスター機器とスレーブ機器とが固定されておらず、マスター機器、スレーブ機器が動的に切り替わり、また、マスター機器もモバイルになり(携帯性を具備し)、バッテリーで駆動することができる状況下において、上記マスター機器に該当する機器がバッテリーで駆動している場合、上記マスター機器に該当する機器は、上記バッテリーに充電されている電力を、他のスレーブ機器よりも早く使いきり、上記マスター機器に該当する機器が稼動しなくなり、上記無線通信システム全体が使用できなくなるという問題がある。
【0010】
なお、バッテリの容量を大きくすると、上記各端末が大型化し、携帯性が損なわれることになる。
【0011】
本発明は、マスターモード、スレーブモードのうちのいずれかの動作モードで動作する無線通信装置において、相手装置が動作モードの切替えを通知せずに動作モードを切替えた場合に、該相手装置とのデータ通信を速やかに再開できるようにすることを目的とする。
【0012】
【課題を解決するための手段】
本発明の無線通信装置の通信方法は、マスターモード、スレーブモードのいずれかの動作モードで動作する無線通信装置の通信方法であって、上記無線通信装置がスレーブモードで動作している場合に、マスターモードで上記無線通信装置と接続していた相手装置との同期が外れたことを検出する工程と、同期が外れたことを検出した場合に、上記相手装置を検出するための問い合わせ信号を送信する工程と、上記問い合わせ信号に対する上記相手装置からの応答信号を受信すると、動作モードをマスターモードに切替える工程と、マスターモードに切替え後に、上記相手装置に接続を要求する工程とを有することを特徴とする。
【0013】
【発明の実施の形態および実施例】
[第1の実施例]
図1は、本発明の第1の実施例であるデータ通信システム100の構成を示す図である。
【0014】
データ通信システム(無線通信システム)100は、端末であるポータブルコンピュータ101a、101bと、モバイルプリンタ102と、デジタルカメラ103とを有する。
【0015】
ここで、ポータブルコンピュータ101a、101bは、ACアダプタ105または充電池(バッテリー)から電源の供給を受けて動作することができるポータブルコンピュータ(PC)である。なお、ACアダプタ105は、AC電源コンセント104から電源の供給を受けている。また、モバイルプリンタ102は、上記ポータブルコンピュータと同様に、ACアダプタまたは充電池から電源の供給を受けて動作するプリンタである。
【0016】
また、ポータブルコンピュータ101a、101bと、モバイルプリンタ102と、デジタルカメラ103とは、無線通信機能部(無線通信装置)106、107、108、109をそれぞれ具備し、これらの無線通信機能部を用いて、上記各端末同士で無線通信をすることができる。
【0017】
なお、データ通信システム100では、無線通信が可能な領域110が存在し、この領域内に上記各端末が存在すれば、上記各端末同士で無線通信を行うことができる。
【0018】
図2は、無線通信機能部106の構成を示すブロック図である。
【0019】
なお、無線通信機能部106と無線通信機能部107と無線通信機能部108と無線通信機能部109とは、同様に構成されているので、ここでは、無線通信機能部106の構成を説明する。
【0020】
無線通信機能部106は、通信部201と制御部210と記憶部220と電源判別部230とを有する。また、無線通信機能部106は、ACアダプタまたは充電池から電源の供給を受けることができる。
【0021】
通信部201は、受信部202と送信部203とタイマ制御部204と低消費電力モード制御部205とを具備する。
【0022】
ここで、送信部203は、無線通信相手である端末を検出するために用いる問い合わせ要求信号と、上記端末に送信する送信データ等とを、制御部210の指示に基づいて送信する。また、待ち受け周波数で他の端末から送信されてくる問い合わせ要求信号を、受信部202が受信した場合、送信部203は上記他の端末に応答信号を送信する。
【0023】
受信部202は、端末に送信した問い合わせ要求信号に対する応答信号や通信データを、上記端末から受信する。
【0024】
制御部210は、低消費電力モード移行要求部211とマスター/スレーブ変換手段212とマスター/スレーブ選択手段213と電源検出手段214とを具備する。
【0025】
また、制御部210は、記憶部220に設けられているプログラム記憶部221が格納している制御プログラムを読み出し、この読み出した制御プログラムに従って、上記各機能部を制御する。
【0026】
ここで、上記制御プログラムは、無線によってデータ通信を行い、ACアダプタまたはバッテリーから電源供給を受けて稼動する無線通信機能部106において、ACアダプタ、バッテリーのどちらから電源供給を受けているのかを、電源判別部230を介して電源検出手段214が検出し、この検出結果に応じて、マスターモード、スレーブモードのいずれかの動作モードを、マスター/スレーブ交換手段213が選択し、この選択した動作モードによって、無線通信機能部106が動作するように、マスター/スレーブ変換手段212が制御するプログラムである。
【0027】
たとえば、上記制御プログラムにおいて、電源検出手段214がACアダプタから電源の供給を受けていることを検出した場合、マスターモードを選択し、この選択した動作モードによって無線通信機能部106が動作し、一方、電源検出手段214がバッテリーから電源の供給を受けていることを検出した場合、スレーブモードを選択し、この選択した動作モードによって無線通信機能部106が動作する。
【0028】
ここで、マスターモードとは、通信相手との間で通信の同期を取るために、上記通信相手にコマンドのメッセージを送信してから、上記通信相手との間でデータの送受信を開始するモードである。
【0029】
また、スレーブモードとは、通信相手との間で通信の同期を取るために、通信していないときには受信体制になり、マスターモードで動作している上記通信相手からコマンドのメッセージを受信してから、上記通信相手との間でデータの送受信を開始するモードである。
【0030】
また、マスター/スレーブ記憶部222は、無線通信機能部106の現在のモードが、マスターモード、スレーブモードのどちらのモードであるかを一時的に格納する記憶エリアである。
【0031】
電源判別部230は、無線通信機能部106が、ACアダプタ、充電池のどちらから電源電源の供給を受けているかを、信号線231を介して判別し、この判別結果を制御部201に設けられている電源検出手段214に通知する。
【0032】
次に、無線通信制御部106の動作について説明する。
【0033】
なお、無線通信機能部106と無線通信機能部107と無線通信機能部108と無線通信機能部109とは、同様に動作するので、ここでは、無線通信機能部106の動作を説明する。
【0034】
図3は、無線通信機能部106の基本的な動作を示すフローチャートである。
【0035】
ポータブルコンピュータ101aに設けられている無線通信制御部106は、無線通信機能部106が、ACアダプタ、充電池のどちらから電源の供給を受けているかを検出する(S301)。
【0036】
充電池から電源の供給を受けている場合(S301)、スレーブモードで動作しているのか否かを判断し(S302)、スレーブモードで動作していない場合、スレーブモードで動作するように設定する(S304)。
【0037】
一方、ACアダプタから電源の供給を受けている場合(S301)、マスターモードで動作しているのか否かを判断し(S303)、マスターモードで動作していない場合、マスターモードで動作するように設定する(S305)。
【0038】
ステップS304において、スレーブモードで動作するように設定し、またはステップS305において、マスターモードで動作するように設定した後、動作モードを変更する(S306)。なお、この動作モードの変更手順は、後述するように、無線通信機能部106が他の無線通信機能部と接続中である場合と接続中でない場合とによって異なる。
【0039】
次に、上記動作モードを変更することが完了したか否かを判断し(S307)、動作モードを変更することが完了した場合、動作を終了する。
【0040】
上述の動作によって、無線通信機能部106の動作モードは、電源の種類に応じたものとなる。すなわち、ACアダプタから電源の供給を受けている場合には、消費電力が多いマスターモードで動作し、充電池から電源の供給を受けている場合には、消費電力の少ないスレーブモードで動作する。
【0041】
次に、他の無線通信機能部と接続していない場合に、無線通信機能部106が、マスターモードとスレーブモードとを切り替える動作について説明する。
【0042】
図4は、他の無線通信機能部と接続していない場合に、無線通信機能部106が、マスターモードとスレーブモードとを切り替える動作を示すフローチャートである。
【0043】
無線通信機能部106は、無線通信機能部106が、ACアダプタ、充電池のどちらから電源の供給を受けているかを検出する(S401)。
【0044】
そして、ACアダプタから電源の供給を受けている場合(S401)、マスターモード移行処理を行なう(S402)。すなわち、周辺の各スレーブ機器(ポータブルコンピュータ101b等の端末)に対して問い合わせ要求信号を送信し(S403)、上記各スレーブ機器から問い合わせ応答信号を受信し(S404)、マスターモードへの移行を完了する(S405)。
【0045】
一方、充電池から電源の供給を受けている場合(S401)、スレーブモード移行処理を行なう(S406)。すなわち、他の端末(ポータブルコンピュータ101b等の端末)から送られてくる問い合わせ要求信号を受信可能なモードに移行する(S407)。
【0046】
続いて、マスター機器(上記他の端末のうちで、マスターモードで動作している機器)から送られてくる問い合わせ要求信号を受信したか否かを判断し(S408)、問い合わせ要求信号を受信した場合、応答信号を上記マスター機器に送信し(S409)、スレーブモードへの移行を完了する(S410)。
【0047】
次に、他の無線通信機能部と接続中である場合に、無線通信機能部が、マスターモードとスレーブモードとを切り替える動作等について説明する。
【0048】
図5は、他の無線通信機能部と接続中である場合に、無線通信機能部が、マスターモードとスレーブモードとを切り替える動作と、ポータブルコンピュータ101a、101bから印刷要求を受けたときにおけるモバイルプリンタ102の動作とを示すシーケンスチャートである。
【0049】
まず、モバイルプリンタ102は、ACアダプタから電源の供給を受け、モバイルプリンタ102に設けられている無線通信機能部108がマスターモードで動作し(S501)、ポータブルコンピュータ101aでは充電池に充電中であり、ポータブルコンピュータ101aに設けられている無線通信機能部106がスレーブモードで動作し(S502)、モバイルプリンタ102とポータブルコンピュータ101aとが、無線通信機能部106、108を介して接続中であるものとする(S503)。
【0050】
次に、モバイルプリンタ102に接続されているACアダプタが抜かれた場合、制御部210が充電池から電源の供給を受けていることを検出する(S504)。
【0051】
このとき、マスターモードで動作している無線通信機能部108が、スレーブモードで動作している無線通信機能部106に、マスター/スレーブ交換要求コマンドを送信し、無線通信機能部106と無線通信機能部108との間でマスターとスレーブとの役割交換を行なう(S505)。すなわち、無線通信機能部108がスレーブモードで動作し、無線通信機能部106がマスターモードで動作する。
【0052】
なお、無線通信機能部108がスレーブモードに移行する場合、所定の一定時間、無線通信機能部106と無線通信機能部108との間で行われるパケットのデータの送受信を中断する。
【0053】
上記マスターとスレーブとの役割交換が完了後、モバイルプリンタ102に設けられている無線通信機能部108は、スレーブモードに移行し(S506)、ポータブルコンピュータ101aに設けられている無線通信機能部106は、マスターモードに移行し(S507)、無線通信機能部106と無線通信機能部108との間の接続を継続し、データ送受信する(S508)。
【0054】
次に、ポータブルコンピュータ101aに設けられている無線通信機能部106が、消費電力が大きいマスターモードで動作中であり、さらなる低消費電力モードへ移行したい場合であって、モバイルプリンタ102に送信すべき印刷用送信データが空になった場合(S509)、ホールドモードと呼ばれる低消費電力動作移行要求信号を、スレーブモードで動作している無線通信機能部108に、無線通信機能部106が送信する(S510)。
【0055】
また、ポータブルコンピュータ101aからモバイルプリンタ102に送信すべき印刷用送信データが空になって存在しない場合(S509)、所定の一定時間、無線通信機能部106と無線通信機能部108との間におけるパケットのデータの送受信を中断する。
【0056】
次に、マスターモードで動作している無線通信機能部107を具備するポータブルコンピュータ101bにおいて、印刷要求が新たに発生した場合(S511)、無線通信機能部107は、スレーブモードで動作している無線通信機能部108に、接続要求信号を送出し(S512)、無線通信機能部108との接続ができたことを確認した後(S513)、印刷用送信データを、無線通信機能部108に送信する(S514)。
【0057】
上記印刷用送信データを送信することが終了した後、ポータブルコンピュータ101bに設けられれている無線通信機能部107は、モバイルプリンタ102に設けられている無線通信機能部108に切断要求信号を送出し、無線通信機能部108から切断確認信号を受信する(S516)。
【0058】
その後、無線通信機能部108は、ホールドモードの終了指示信号を、無線通信機能部106に送出し(S517)、モバイルプリンタ102とポータブルコンピュータ101aとの間で接続を再開する(S518)。
【0059】
上述の動作によって、モバイルプリンタ102に設けられている無線通信機能部108が、低消費電力モードであるスレーブモードで動作している場合でも、ポータブルコンピュータ101bからの印刷要求を受け付けることができ、この印刷要求の受け付け終了後、ポータブルコンピュータ101aとポータブルコンピュータ101aとの間の接続を再開できる。
【0060】
上記実施例によれば、無線によってデータ通信を行い、ACアダプタまたはバッテリーから電源供給を受けて稼動する無線通信機能部106において、ACアダプタ、バッテリーのどちらから電源供給を受けているのかを検出し、この検出した結果に応じて、マスターモード、スレーブモードのいずれかの動作モードを選択し、この選択した動作モードによって動作するので、無線通信機能部106に電源を供給するバッテリーの容量を増やすことなく、無線通信機能部106を従来よりも長い時間稼動することができる。
【0061】
[第2の実施例]
次に、本発明の第2の実施例について説明する。
【0062】
第2の実施例は、第1の実施例において、モバルプリンタ102に設けられている無線通信機能部108がマスターモードからスレーブモードに移行した後に、ポータブルコンピュータ101aに設けられている無線通信機能部106がスレーブモードからマスターモードに移行し、無線通信機能部106と無線通信機能部108との間でデータ通信を行う例である。
【0063】
図6は、モバイルプリンタ102に設けられている無線通信機能部108と、ポータブルコンピュータ101aに設けられている無線通信機能部106との動作を示すシーケンスチャートである。
【0064】
モバイルプリンタ102に設けられている無線通信機能部108は、ACアダプタから電源の供給を受けて、マスターモードで動作し(S601)、ポータブルコンピュータ101aに設けられている無線通信機能部106は、スレーブモードで動作しているものとする。
【0065】
次に、無線通信機能部108が、無線通信機能部106に、問い合わせ要求信号を送信し(S602)、これに応じて無線通信機能部106が送出した問い合わせ応答信号を、無線通信機能部108が受信する(S603)。
【0066】
次に、無線通信機能部108が、充電池から電源の供給を受けていることを検出すると(S604)、無線通信機能部108は、動作モードをスレーブモードに変更する(S605)。
【0067】
上記動作モードの変更によって、無線通信機能部108とスレーブモードで動作している無線通信機能部106との間で、上記変更前までとれていた同期がとれなくなる(S607)。
【0068】
続いて、ポータブルコンピュータ101aに設けられている無線通信機能部106が、モバイルプリンタ102に設けられている無線通信機能部108へ接続要求信号を送信する(S608)。この送信に基づく接続が失敗した場合(S609)、無線通信機能部106は、無線通信機能部108へ問い合わせ要求信号を送信し(S610)、これに応じて無線通信機能部108が送出した問い合わせ応答信号を、無線通信機能部106が受信する(S611)。
【0069】
次に、無線通信機能部106は、マスターモードに移行し(S612)、接続要求信号を、スレーブモードで動作している無線通信機能部108へ送信し(S613)、接続確認信号を無線通信機能部108から受信した後(S614)、無線通信機能部108aとの間でデータ通信を行う(S615)。
【0070】
なお、上記実施例では、無線通信機能部106、無線通信機能部108が自律的にマスター/スレーブの役割変更を行っているが、この役割変更をする前に、上記2つの機器同士が一旦接続し、役割変更することを互いに通知するようにしてもよい。
【0071】
本実施例では、互いに無線通信を行う2つの無線通信装置が、両方ともスレーブモードに移行した場合、上記2つの無線通信装置のいずれか一方が自動的にマスターモードに移行して無線通信を実行するので、上記2つの装置の消費電力を低減しつつ、ユーザに負担をかけず(ユーザによるマスター/スレーブの切り替えを必要とせず)に、データ通信することができる。
【0072】
[第3の実施例]
次に、本発明の第3の実施例について説明する。
【0073】
第3の実施例は、第1の実施例において、モバイルプリンタ102に設けられている無線通信機能部108と、ポータブルコンピュータ101bに設けられている無線通信機能部107とがスレーブモードで動作し、ポータブルコンピュータ101aに設けられている無線通信機能部106がマスターモードで動作しているときに、ポータブルコンピュータ101aを介して、ポータブルコンピュータ101bが、モバイルプリンタ102に印刷データを送信する例である。
【0074】
図7は、モバイルプリンタ102に設けられている無線通信機能部108と、ポータブルコンピュータ101aに設けられている無線通信機能部106と、ポータブルコンピュータ101bに設けられている無線通信機能部107との動作を示すシーケンスチャートである。
【0075】
モバイルプリンタ102に設けられている無線通信機能部108と、ポータブルコンピュータ101bに設けられている無線通信機能部107とは、充電池から電源の供給を受けてスレーブモードで動作し(S701、S702、S704、S705)、ポータブルコンピュータ101aに設けられている無線通信機能部106は、ACアダプタから電源の供給を受けてマスターモードで動作しているものとする(S703、S706)。
【0076】
ポータブルコンピュータ101aに設けられている無線通信機能部106が、問い合わせ要求信号を、スレーブモードで動作している無線通信機能部107と無線通信機能部108とに送信する(S707、S708)。
【0077】
続いて、上記問い合わせ要求信号に対する返答として、無線通信機能部107と無線通信機能部108とが、問い合わせ応答信号を無線通信機能部106へ送信する(S709、S710)。
【0078】
なお、マスターモードで動作している無線通信機能部107を具備しているポータブルコンピュータ101aは、ゲートウェイとしてのサービス機能を有しており、上記問い合わせ応答信号を送出するまでに、ポータブルコンピュータ101bは、ポータブルコンピュータ101aが、上記サービス機能を有している旨の情報を獲得しているものとする。そして、この獲得した情報を、ポータブルコンピュータ101bは、データベースに登録する手段を有し、すでに登録済みの状態であるものとする。
【0079】
上記サービス機能を有している旨の情報を獲得することによって、ポータブルコンピュータ101bは、ポータブルコンピュータ101aがモバイルプリンタ102bに接続されていることを知ることができる。
【0080】
次に、ポータブルコンピュータ101bにおいて印刷要求が発生した場合、ポータブルコンピュータ101bに設けられている無線通信機能部107は、ポータブルコンピュータ101aに設けられている無線通信機能部106に接続要求信号を送信し(S711)、上記接続要求信号に対応する接続応答信号を、無線通信機能部106が、無線通信機能部107に送信する(S712)。
【0081】
そして、ポータブルコンピュータ101aに設けられている無線通信機能部106と、ポータブルコンピュータ101bに設けられている無線通信機能部107とが接続状態になり、ポータブルコンピュータ101bが、ポータブルコンピュータ101aへ印刷データをスプール(Spool)し、この印刷データのスプールが完了した後(S714)、無線通信機能部106が無線通信機能部108に接続要求信号を送信する(S715)。
【0082】
無線通信機能部106から接続確認応答信号を受信した無線通信機能部108は、無線通信機能部106と無線通信機能部108とが接続された後(S716、S717)、上記スプールした印刷データを、モバイルプリンタ102に送信し、モバイルプリンタ102が印刷を行う(S718)。
【0083】
そして、上記印刷が完了すると、モバイルプリンタ102に設けられている無線通信機能部108からポータブルコンピュータ101bに設けられている無線通信機能部107に、接続要求信号を送信し(S719)、この送信した接続要求信号に対応する接続応答信号を、無線通信機能部108が受け取った場合(S720)、通信機能部107と無線通信機能部108とが互いに接続され、モバイルプリンタ102からポータブルコンピュータ101bに印刷完了通知信号を送信する(S721)。
【0084】
本実施例によれば、ポータブルコンピュータ101bに設けられている無線通信機能部107がスレーブモードで動作している場合、ポータブルコンピュータ101bは、マスターモードで動作している無線通信機能部106を具備するポータブルコンピュータ101aを経由して、印刷データを、モバイルプリンタ102に送信し、モバイルプリンタ102がこの印刷データを受け取って印刷するので、ポータブルコンピュータ101bのユーザは、ポータブルコンピュータ101bが、マスターモード、スレーブモードのいずれのモードで動作しているのかを意識することなく、自らが印刷を欲するデータを印刷できる。
【0085】
また、通信システム100に、マスターモードで動作する無線通信機能部と、スレーブモードで動作する無線通信機能部とが混在していても、マスターモードで動作している装置を介して、スレーブモードで動作している装置同士の間で、データを送受信することができる。
【0086】
なお、上記各実施例は、記憶媒体、コンピュータプログラムとして把握することができる。上記各実施例において、プログラムを、または記録媒体に格納されているプログラムを、無線通信装置106に供給することによって、無線通信装置106が動作する。
【0087】
すなわち、供給されたプログラム(プログラムコード)が、無線通信装置106に設けられているコンピュータの機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに格納された後、この格納されたプログラムの指示に基づいて、上記機能拡張ボードや機能拡張ユニットに設けられているCPU等が実際の処理の一部または全部を行い、この処理によって上記各実施例に示す機能が実現される。
【0088】
上記各実施例は、無線によってデータ通信を行い、ACアダプタまたはバッテリーから電源供給を受けて稼動する無線通信装置の制御手順であって、上記ACアダプタ、上記バッテリーのどちらから電源供給を受けているかを検出する電源供給元検出手順と、上記電源供給元検出手順で検出した結果に応じて、マスターモード、スレーブモードのいずれかの動作モードを選択し、この選択した動作モードによって、上記無線通信装置が動作するように制御する動作制御手順とをコンピュータに実行させるプログラムの例であり、また、このプログラムを記憶したコンピュータ読み取り可能な記憶媒体の例である。
【0089】
この場合、上記動作制御手順は、上記電源供給元検出手順で、上記ACアダプタから電源の供給を受けていることを検出した場合にマスターモードを選択し、一方、上記バッテリーから電源の供給を受けていることを検出した場合にスレーブモードを選択する手順である。
【0090】
また、上記動作制御手順は、上記無線通信装置が、上記無線通信装置以外の無線通信装置と接続中である場合でも、マスターモード、スレーブモードのいずれかの動作モードを選択し、この選択した動作モードによって、上記無線通信装置が動作するように制御する手順である。
【0091】
また、上記動作制御手順は、上記無線通信装置がスレーブモードで動作している場合には、所定の一定時間、上記無線通信装置がパケットデータの送受信を中断する手順である。
【0092】
さらに、上記動作制御手順は、上記パケットデータの送受信を所定の一定時間中断した後に、データの送受信を再開し、この再開をするときに、上記無線通信装置と上記無線通信装置以外の無線通信装置との間で送受信するデータが存在しない場合には、所定の一定時間、上記無線通信装置がパケットデータの送受信を中断する手順である。
【0093】
なお、上記記憶媒体として、FD、CD、DVD、HD、半導体メモリ等が考えられる。
【0094】
【発明の効果】
本発明によれば、マスターモードで自装置と接続していた相手装置との同期が外れた場合に、相手装置を検出するための問い合わせ信号を送信し、この問い合わせ信号に対する応答信号を受信すると、自装置の動作モードをマスターモードに切替えて相手装置に接続を要求するので、相手装置が動作モードの切替えを通知せずにスレーブモードに切替えた場合に、相手装置とのデータ通信を速やかに再開することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施例であるデータ通信システム100の構成を示す図である。
【図2】無線通信機能部106の構成を示すブロック図である。
【図3】無線通信機能部106の基本的な動作を示すフローチャートである。
【図4】他の無線通信機能部と接続していない場合に、無線通信機能部106が、マスターモードとスレーブモードとを切り替える動作を示すフローチャートである。
【図5】他の無線通信機能部と接続中である場合に、無線通信機能部がマスターモードとスレーブモードとを切り替える動作と、ポータブルコンピュータ101a、101bから印刷要求を受けたときにおけるモバイルプリンタ102の動作とを示すシーケンスチャートである。
【図6】モバイルプリンタ102に設けられている無線通信機能部108と、ポータブルコンピュータ101aに設けられている無線通信機能部106との動作を示すシーケンスチャートである。
【図7】モバイルプリンタ102に設けられている無線通信機能部108と、ポータブルコンピュータ101aに設けられている無線通信機能部106と、ポータブルコンピュータ101bに設けられている無線通信機能部107との動作を示すシーケンスチャートである。
【符号の説明】
100…データ通信システム、
101a、101b…ポータブルコンピュータ、
102…モバイルプリンタ、
105…ACアダプタ、
106、107、108、109…無線通信機能部、
210…制御部、
212…マスター/スレーブ変換手段、
213…マスター/スレーブ選択手段、
214…電源検出手段、
221…制御プログラム記憶部、
230…電源判別部。
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to a wireless communication apparatus that performs data communication wirelessly.Communication methodAbout.
[0002]
[Prior art]
Conventionally, a wireless communication system in which data communication is performed between a plurality of terminals having a wireless communication function is known.
[0003]
When these terminals are terminals having wireless communication functions that comply with standards such as IrDA (infrared data association) and Bluetooth, in order to improve the portability of these terminals, However, an AC power adapter or a portable battery can be selectively used for the terminal.
[0004]
When receiving power from the battery and performing wireless data communication between the terminals, it is necessary to keep the power consumption of the terminals low in order to use the terminals for a long time.
[0005]
A method for reducing the power consumption of the terminal is described in, for example, Japanese Patent Laid-Open No. 6-132968. This method is a method of reducing the power consumption of the slave device by controlling the power supply of the slave device by using the reception control signal between the host (master) device and the slave device.
[0006]
Further, in Japanese Patent Laid-Open No. 8-265178, in a communication apparatus having both means for determining the type of power supply and means for adjusting transmission power according to the reception level of the control signal, if the power supply is an AC adapter, transmission is performed. In the case of a battery, a method for reducing the power consumption when using the battery and extending the usable time of the battery mounted on the communication device by reducing the transmission output in the case of a battery is disclosed. Yes.
[0007]
[Problems to be solved by the invention]
By the way, in order to synchronize communication, from the communication partner to synchronize communication with the master device operating in the master mode, which is a mode to start transmission / reception after sending a command message to the communication partner. In a communication system configured with a slave device operating in a slave mode that starts transmission / reception after receiving a command message, the power consumption of the slave device is less than the power consumption of the master device. .
[0008]
The above-described method of changing the transmission output of the slave device or controlling the power supply of the slave device can reduce the power consumption of the slave device, but there is a measure to reduce the power consumption of the master device. Since it is not applied, the power consumption of the master device cannot be reduced.
[0009]
Also, unlike Bluetooth in recent years, the master device and slave device are not fixed, the master device and slave device are dynamically switched, and the master device is also mobile (has portability), battery If the device corresponding to the master device is driven by a battery in a situation where it can be driven by a battery, the device corresponding to the master device sends the power charged in the battery from other slave devices. There is a problem that the device corresponding to the master device cannot be used as soon as possible, and the entire wireless communication system cannot be used.
[0010]
In addition, when the capacity | capacitance of a battery is enlarged, said each terminal will enlarge and portability will be impaired.
[0011]
  The present invention provides either a master mode or a slave mode.ActionIn a wireless communication device operating in the mode,When the partner device switches the operation mode without notifying the switch of the operation mode, the data communication with the partner device can be resumed promptly.For the purpose.
[0012]
[Means for Solving the Problems]
  The communication method of the wireless communication device of the present invention is a communication method of a wireless communication device that operates in either the master mode or the slave mode, and when the wireless communication device is operating in the slave mode, The step of detecting that the synchronization with the partner device connected to the wireless communication device in the master mode is lost, and the inquiry signal for detecting the partner device is detected when the synchronization is detected. And a step of switching the operation mode to the master mode upon receiving a response signal from the counterpart device with respect to the inquiry signal, and a step of requesting connection to the counterpart device after switching to the master mode. And
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
[First embodiment]
FIG. 1 is a diagram showing a configuration of a data communication system 100 according to the first embodiment of the present invention.
[0014]
A data communication system (wireless communication system) 100 includes portable computers 101 a and 101 b that are terminals, a mobile printer 102, and a digital camera 103.
[0015]
Here, the portable computers 101a and 101b are portable computers (PCs) that can operate by receiving power from the AC adapter 105 or a rechargeable battery (battery). The AC adapter 105 is supplied with power from an AC power outlet 104. Similarly to the portable computer, the mobile printer 102 is a printer that operates by receiving power from an AC adapter or a rechargeable battery.
[0016]
The portable computers 101a and 101b, the mobile printer 102, and the digital camera 103 have wireless communication function units (wireless communication devices) 106, 107, 108, and 109, respectively, and use these wireless communication function units. The terminals can perform wireless communication with each other.
[0017]
In the data communication system 100, if there is an area 110 in which wireless communication is possible, and each terminal exists in this area, the terminals can perform wireless communication.
[0018]
FIG. 2 is a block diagram illustrating a configuration of the wireless communication function unit 106.
[0019]
Since the wireless communication function unit 106, the wireless communication function unit 107, the wireless communication function unit 108, and the wireless communication function unit 109 are configured in the same manner, the configuration of the wireless communication function unit 106 will be described here.
[0020]
The wireless communication function unit 106 includes a communication unit 201, a control unit 210, a storage unit 220, and a power supply determination unit 230. The wireless communication function unit 106 can receive power from an AC adapter or a rechargeable battery.
[0021]
The communication unit 201 includes a reception unit 202, a transmission unit 203, a timer control unit 204, and a low power consumption mode control unit 205.
[0022]
Here, the transmission unit 203 transmits an inquiry request signal used for detecting a terminal that is a wireless communication partner, transmission data to be transmitted to the terminal, and the like based on an instruction from the control unit 210. When the reception unit 202 receives an inquiry request signal transmitted from another terminal at the standby frequency, the transmission unit 203 transmits a response signal to the other terminal.
[0023]
The receiving unit 202 receives a response signal and communication data for the inquiry request signal transmitted to the terminal from the terminal.
[0024]
The control unit 210 includes a low power consumption mode transition request unit 211, a master / slave conversion unit 212, a master / slave selection unit 213, and a power supply detection unit 214.
[0025]
Further, the control unit 210 reads a control program stored in the program storage unit 221 provided in the storage unit 220, and controls each of the functional units according to the read control program.
[0026]
Here, the control program performs data communication wirelessly, and in the wireless communication function unit 106 that operates by receiving power supply from the AC adapter or the battery, whether the power supply is received from the AC adapter or the battery, The power source detection unit 214 detects the power source through the power source determination unit 230, and the master / slave switching unit 213 selects one of the operation modes of the master mode and the slave mode according to the detection result, and the selected operation mode Thus, the master / slave conversion unit 212 controls the wireless communication function unit 106 to operate.
[0027]
For example, in the control program, when the power detection unit 214 detects that the power is supplied from the AC adapter, the master mode is selected, and the wireless communication function unit 106 operates according to the selected operation mode. When the power detection means 214 detects that power is supplied from the battery, the slave mode is selected, and the wireless communication function unit 106 operates according to the selected operation mode.
[0028]
Here, the master mode is a mode in which, in order to synchronize communication with a communication partner, a command message is transmitted to the communication partner and then data transmission / reception with the communication partner is started. is there.
[0029]
In addition, in the slave mode, in order to synchronize the communication with the communication partner, it becomes a reception system when not communicating, and after receiving a command message from the communication partner operating in the master mode. In this mode, data transmission / reception is started with the communication partner.
[0030]
The master / slave storage unit 222 is a storage area for temporarily storing whether the current mode of the wireless communication function unit 106 is a master mode or a slave mode.
[0031]
The power determination unit 230 determines whether the wireless communication function unit 106 is supplied with power from the AC adapter or the rechargeable battery via the signal line 231, and the determination result is provided in the control unit 201. Is notified to the power source detection means 214.
[0032]
Next, the operation of the wireless communication control unit 106 will be described.
[0033]
Since the wireless communication function unit 106, the wireless communication function unit 107, the wireless communication function unit 108, and the wireless communication function unit 109 operate in the same manner, the operation of the wireless communication function unit 106 will be described here.
[0034]
FIG. 3 is a flowchart showing the basic operation of the wireless communication function unit 106.
[0035]
The wireless communication control unit 106 provided in the portable computer 101a detects whether the wireless communication function unit 106 is supplied with power from an AC adapter or a rechargeable battery (S301).
[0036]
When power is supplied from the rechargeable battery (S301), it is determined whether or not it is operating in the slave mode (S302), and when it is not operating in the slave mode, it is set to operate in the slave mode. (S304).
[0037]
On the other hand, when the power supply is received from the AC adapter (S301), it is determined whether or not it is operating in the master mode (S303), and when it is not operating in the master mode, it is operated in the master mode. Set (S305).
[0038]
In step S304, setting is made to operate in the slave mode, or in step S305, setting is made to operate in the master mode, and then the operation mode is changed (S306). Note that the procedure for changing the operation mode varies depending on whether the wireless communication function unit 106 is connected to another wireless communication function unit or not.
[0039]
Next, it is determined whether or not the change of the operation mode is completed (S307). When the change of the operation mode is completed, the operation is terminated.
[0040]
With the above-described operation, the operation mode of the wireless communication function unit 106 depends on the type of power supply. That is, when power is supplied from the AC adapter, it operates in a master mode with a large amount of power consumption, and when it is supplied with power from a rechargeable battery, it operates in a slave mode with low power consumption.
[0041]
Next, an operation in which the wireless communication function unit 106 switches between the master mode and the slave mode when not connected to another wireless communication function unit will be described.
[0042]
FIG. 4 is a flowchart illustrating an operation in which the wireless communication function unit 106 switches between the master mode and the slave mode when not connected to another wireless communication function unit.
[0043]
The wireless communication function unit 106 detects whether the wireless communication function unit 106 is supplied with power from an AC adapter or a rechargeable battery (S401).
[0044]
When power is supplied from the AC adapter (S401), master mode transition processing is performed (S402). That is, an inquiry request signal is transmitted to each peripheral slave device (terminal such as portable computer 101b) (S403), an inquiry response signal is received from each of the slave devices (S404), and the transition to the master mode is completed. (S405).
[0045]
On the other hand, when power is supplied from the rechargeable battery (S401), a slave mode transition process is performed (S406). That is, it shifts to a mode in which an inquiry request signal sent from another terminal (terminal such as portable computer 101b) can be received (S407).
[0046]
Subsequently, it is determined whether or not an inquiry request signal sent from the master device (the device operating in the master mode among the above-mentioned other terminals) is received (S408), and the inquiry request signal is received. In this case, a response signal is transmitted to the master device (S409), and the transition to the slave mode is completed (S410).
[0047]
Next, the operation of the wireless communication function unit switching between the master mode and the slave mode when connected to another wireless communication function unit will be described.
[0048]
FIG. 5 illustrates an operation in which the wireless communication function unit switches between the master mode and the slave mode and a mobile printer when a print request is received from the portable computers 101a and 101b when connected to another wireless communication function unit. 10 is a sequence chart showing the operation of 102.
[0049]
First, the mobile printer 102 is supplied with power from the AC adapter, the wireless communication function unit 108 provided in the mobile printer 102 operates in the master mode (S501), and the portable computer 101a is charging the rechargeable battery. The wireless communication function unit 106 provided in the portable computer 101a operates in the slave mode (S502), and the mobile printer 102 and the portable computer 101a are being connected via the wireless communication function units 106 and 108. (S503).
[0050]
Next, when the AC adapter connected to the mobile printer 102 is disconnected, the control unit 210 detects that power is being supplied from the rechargeable battery (S504).
[0051]
At this time, the wireless communication function unit 108 operating in the master mode transmits a master / slave exchange request command to the wireless communication function unit 106 operating in the slave mode, and the wireless communication function unit 106 and the wireless communication function The role exchange between the master and the slave is performed with the unit 108 (S505). That is, the wireless communication function unit 108 operates in the slave mode, and the wireless communication function unit 106 operates in the master mode.
[0052]
When the wireless communication function unit 108 shifts to the slave mode, transmission / reception of packet data performed between the wireless communication function unit 106 and the wireless communication function unit 108 is interrupted for a predetermined period of time.
[0053]
After the role exchange between the master and the slave is completed, the wireless communication function unit 108 provided in the mobile printer 102 shifts to the slave mode (S506), and the wireless communication function unit 106 provided in the portable computer 101a is Then, a transition is made to the master mode (S507), the connection between the wireless communication function unit 106 and the wireless communication function unit 108 is continued, and data is transmitted and received (S508).
[0054]
Next, when the wireless communication function unit 106 provided in the portable computer 101a is operating in the master mode with high power consumption and wants to shift to a further low power consumption mode, it should be transmitted to the mobile printer 102. When the print transmission data becomes empty (S509), the wireless communication function unit 106 transmits a low power consumption operation transition request signal called a hold mode to the wireless communication function unit 108 operating in the slave mode ( S510).
[0055]
If the print data to be transmitted from the portable computer 101a to the mobile printer 102 is empty and does not exist (S509), a packet between the wireless communication function unit 106 and the wireless communication function unit 108 for a predetermined period of time. The data transmission / reception is interrupted.
[0056]
Next, in the portable computer 101b having the wireless communication function unit 107 operating in the master mode, when a print request is newly generated (S511), the wireless communication function unit 107 is wirelessly operating in the slave mode. A connection request signal is transmitted to the communication function unit 108 (S512), and after confirming that the connection with the wireless communication function unit 108 has been established (S513), the transmission data for printing is transmitted to the wireless communication function unit 108. (S514).
[0057]
After the transmission of the print transmission data is completed, the wireless communication function unit 107 provided in the portable computer 101b sends a disconnection request signal to the wireless communication function unit 108 provided in the mobile printer 102. A disconnection confirmation signal is received from the wireless communication function unit 108 (S516).
[0058]
Thereafter, the wireless communication function unit 108 transmits a hold mode end instruction signal to the wireless communication function unit 106 (S517), and resumes the connection between the mobile printer 102 and the portable computer 101a (S518).
[0059]
Through the above-described operation, even when the wireless communication function unit 108 provided in the mobile printer 102 is operating in the slave mode that is the low power consumption mode, the print request from the portable computer 101b can be received. After receiving the print request, the connection between the portable computer 101a and the portable computer 101a can be resumed.
[0060]
According to the above-described embodiment, the wireless communication function unit 106 that performs data communication wirelessly and operates by receiving power supply from the AC adapter or the battery detects whether the power supply is received from the AC adapter or the battery. According to the detected result, either the master mode or the slave mode is selected, and the operation is performed according to the selected operation mode. Therefore, the capacity of the battery that supplies power to the wireless communication function unit 106 is increased. The wireless communication function unit 106 can be operated for a longer time than before.
[0061]
[Second Embodiment]
Next, a second embodiment of the present invention will be described.
[0062]
In the second embodiment, the wireless communication function provided in the portable computer 101a after the wireless communication function unit 108 provided in the mobile printer 102 shifts from the master mode to the slave mode in the first embodiment. In this example, the unit 106 shifts from the slave mode to the master mode and performs data communication between the wireless communication function unit 106 and the wireless communication function unit 108.
[0063]
FIG. 6 is a sequence chart showing operations of the wireless communication function unit 108 provided in the mobile printer 102 and the wireless communication function unit 106 provided in the portable computer 101a.
[0064]
The wireless communication function unit 108 provided in the mobile printer 102 receives power from the AC adapter and operates in the master mode (S601). The wireless communication function unit 106 provided in the portable computer 101a is a slave. Suppose you are operating in mode.
[0065]
Next, the wireless communication function unit 108 transmits an inquiry request signal to the wireless communication function unit 106 (S602), and the wireless communication function unit 108 transmits the inquiry response signal sent by the wireless communication function unit 106 in response thereto. Receive (S603).
[0066]
Next, when the wireless communication function unit 108 detects that power is supplied from the rechargeable battery (S604), the wireless communication function unit 108 changes the operation mode to the slave mode (S605).
[0067]
Due to the change in the operation mode, the synchronization that was obtained before the change cannot be established between the wireless communication function unit 108 and the wireless communication function unit 106 operating in the slave mode (S607).
[0068]
Subsequently, the wireless communication function unit 106 provided in the portable computer 101a transmits a connection request signal to the wireless communication function unit 108 provided in the mobile printer 102 (S608). If the connection based on this transmission fails (S609), the wireless communication function unit 106 transmits an inquiry request signal to the wireless communication function unit 108 (S610), and the inquiry response sent by the wireless communication function unit 108 in response thereto. The wireless communication function unit 106 receives the signal (S611).
[0069]
Next, the wireless communication function unit 106 shifts to the master mode (S612), transmits a connection request signal to the wireless communication function unit 108 operating in the slave mode (S613), and transmits a connection confirmation signal to the wireless communication function. After receiving from the unit 108 (S614), data communication is performed with the wireless communication function unit 108a (S615).
[0070]
In the above embodiment, the wireless communication function unit 106 and the wireless communication function unit 108 autonomously change the role of the master / slave. Before changing the role, the two devices are temporarily connected to each other. In addition, it is possible to notify each other that the role is changed.
[0071]
In this embodiment, when two wireless communication devices that perform wireless communication with each other shift to the slave mode, either one of the two wireless communication devices automatically shifts to the master mode and executes the wireless communication. Therefore, it is possible to perform data communication without reducing the power consumption of the above two devices and without burdening the user (without requiring master / slave switching by the user).
[0072]
[Third embodiment]
Next, a third embodiment of the present invention will be described.
[0073]
In the third embodiment, in the first embodiment, the wireless communication function unit 108 provided in the mobile printer 102 and the wireless communication function unit 107 provided in the portable computer 101b operate in the slave mode. This is an example in which the portable computer 101b transmits print data to the mobile printer 102 via the portable computer 101a when the wireless communication function unit 106 provided in the portable computer 101a is operating in the master mode.
[0074]
FIG. 7 illustrates operations of the wireless communication function unit 108 provided in the mobile printer 102, the wireless communication function unit 106 provided in the portable computer 101a, and the wireless communication function unit 107 provided in the portable computer 101b. It is a sequence chart which shows.
[0075]
The wireless communication function unit 108 provided in the mobile printer 102 and the wireless communication function unit 107 provided in the portable computer 101b operate in the slave mode upon receiving power from the rechargeable battery (S701, S702, S704, S705), it is assumed that the wireless communication function unit 106 provided in the portable computer 101a is operating in the master mode upon receiving power from the AC adapter (S703, S706).
[0076]
The wireless communication function unit 106 provided in the portable computer 101a transmits an inquiry request signal to the wireless communication function unit 107 and the wireless communication function unit 108 operating in the slave mode (S707, S708).
[0077]
Subsequently, as a response to the inquiry request signal, the wireless communication function unit 107 and the wireless communication function unit 108 transmit an inquiry response signal to the wireless communication function unit 106 (S709, S710).
[0078]
Note that the portable computer 101a having the wireless communication function unit 107 operating in the master mode has a service function as a gateway, and before sending the inquiry response signal, the portable computer 101b Assume that the portable computer 101a has acquired information indicating that it has the service function. The portable computer 101b has means for registering the acquired information in the database and is already registered.
[0079]
By acquiring the information indicating that the service function is provided, the portable computer 101b can know that the portable computer 101a is connected to the mobile printer 102b.
[0080]
Next, when a print request is generated in the portable computer 101b, the wireless communication function unit 107 provided in the portable computer 101b transmits a connection request signal to the wireless communication function unit 106 provided in the portable computer 101a ( S711), the wireless communication function unit 106 transmits a connection response signal corresponding to the connection request signal to the wireless communication function unit 107 (S712).
[0081]
Then, the wireless communication function unit 106 provided in the portable computer 101a and the wireless communication function unit 107 provided in the portable computer 101b are connected, and the portable computer 101b spools print data to the portable computer 101a. (Spool), and after the print data spooling is completed (S714), the wireless communication function unit 106 transmits a connection request signal to the wireless communication function unit 108 (S715).
[0082]
The wireless communication function unit 108 that has received the connection confirmation response signal from the wireless communication function unit 106 connects the spooled print data after the wireless communication function unit 106 and the wireless communication function unit 108 are connected (S716, S717). The data is transmitted to the mobile printer 102, and the mobile printer 102 performs printing (S718).
[0083]
When the printing is completed, a connection request signal is transmitted from the wireless communication function unit 108 provided in the mobile printer 102 to the wireless communication function unit 107 provided in the portable computer 101b (S719). When the wireless communication function unit 108 receives a connection response signal corresponding to the connection request signal (S720), the communication function unit 107 and the wireless communication function unit 108 are connected to each other, and printing from the mobile printer 102 to the portable computer 101b is completed. A notification signal is transmitted (S721).
[0084]
According to the present embodiment, when the wireless communication function unit 107 provided in the portable computer 101b is operating in the slave mode, the portable computer 101b includes the wireless communication function unit 106 operating in the master mode. The print data is transmitted to the mobile printer 102 via the portable computer 101a, and the mobile printer 102 receives and prints the print data. Therefore, the user of the portable computer 101b can execute the portable computer 101b in the master mode and the slave mode. It is possible to print data that the user desires to print without being conscious of which mode of operation it is in.
[0085]
In addition, even if the communication system 100 includes a wireless communication function unit that operates in the master mode and a wireless communication function unit that operates in the slave mode, Data can be transmitted and received between operating devices.
[0086]
In addition, each said Example can be grasped | ascertained as a storage medium and a computer program. In each of the above embodiments, the wireless communication apparatus 106 operates by supplying the wireless communication apparatus 106 with a program or a program stored in a recording medium.
[0087]
That is, after the supplied program (program code) is stored in a memory provided in a function expansion board of the computer provided in the wireless communication apparatus 106 or a function expansion unit connected to the computer, the stored program Based on the instructions, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing, and the functions shown in the above embodiments are realized by this processing.
[0088]
Each of the above embodiments is a control procedure for a wireless communication apparatus that performs data communication wirelessly and operates by receiving power supply from an AC adapter or a battery, and whether the power supply is received from the AC adapter or the battery. In accordance with the power supply source detection procedure for detecting the power supply source and the result detected in the power supply source detection procedure, either the master mode or the slave mode is selected, and the wireless communication device is selected according to the selected operation mode. It is an example of the program which makes a computer perform the operation | movement control procedure which controls to operate | move, and is an example of the computer-readable storage medium which memorize | stored this program.
[0089]
In this case, the operation control procedure selects the master mode when the power supply source detection procedure detects that the power supply is supplied from the AC adapter, while receiving the power supply from the battery. This is a procedure for selecting the slave mode when it is detected.
[0090]
The operation control procedure selects the operation mode of the master mode or the slave mode even when the wireless communication device is connected to a wireless communication device other than the wireless communication device, and selects the selected operation mode. This is a procedure for controlling the wireless communication apparatus to operate according to the mode.
[0091]
The operation control procedure is a procedure in which the wireless communication apparatus interrupts transmission / reception of packet data for a predetermined time when the wireless communication apparatus is operating in the slave mode.
[0092]
Further, the operation control procedure includes the steps of: suspending the transmission / reception of the packet data for a predetermined period of time; then restarting the transmission / reception of the data; When there is no data to be transmitted / received between the wireless communication apparatus and the wireless communication apparatus, the wireless communication apparatus interrupts transmission / reception of packet data for a predetermined time.
[0093]
Note that FD, CD, DVD, HD, semiconductor memory, and the like are conceivable as the storage medium.
[0094]
【The invention's effect】
  According to the present invention, when the synchronization with the partner device connected to the own device in the master mode is lost, an inquiry signal for detecting the partner device is transmitted, and when a response signal to the inquiry signal is received, Since the operation mode of the local device is switched to the master mode and a connection is requested to the partner device, if the partner device switches to the slave mode without notifying the switch of the operation mode, data communication with the partner device is resumed promptly. can do.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of a data communication system 100 according to a first embodiment of the present invention.
2 is a block diagram showing a configuration of a wireless communication function unit 106. FIG.
FIG. 3 is a flowchart showing a basic operation of the wireless communication function unit 106;
FIG. 4 is a flowchart illustrating an operation in which the wireless communication function unit 106 switches between a master mode and a slave mode when not connected to another wireless communication function unit.
FIG. 5 shows an operation in which the wireless communication function unit switches between the master mode and the slave mode when a connection is made with another wireless communication function unit, and the mobile printer 102 when a print request is received from the portable computers 101a and 101b. It is a sequence chart which shows this operation | movement.
FIG. 6 is a sequence chart showing operations of the wireless communication function unit 108 provided in the mobile printer 102 and the wireless communication function unit 106 provided in the portable computer 101a.
FIG. 7 shows operations of the wireless communication function unit 108 provided in the mobile printer 102, the wireless communication function unit 106 provided in the portable computer 101a, and the wireless communication function unit 107 provided in the portable computer 101b. It is a sequence chart which shows.
[Explanation of symbols]
100: Data communication system,
101a, 101b ... portable computer,
102 ... Mobile printer,
105 ... AC adapter,
106, 107, 108, 109 ... wireless communication function unit,
210 ... control unit,
212 ... Master / slave conversion means,
213: Master / slave selection means,
214 ... power supply detection means,
221: Control program storage unit,
230: A power source determination unit.

Claims (7)

マスターモード、スレーブモードのいずれかの動作モードで動作する無線通信装置の通信方法であって、A communication method of a wireless communication device that operates in either an operation mode of a master mode or a slave mode,
上記無線通信装置がスレーブモードで動作している場合に、マスターモードで上記無線通信装置と接続していた相手装置との同期が外れたことを検出する工程と、When the wireless communication device is operating in the slave mode, detecting that the synchronization with the counterpart device connected to the wireless communication device in the master mode is lost;
同期が外れたことを検出した場合に、上記相手装置を検出するための問い合わせ信号を送信する工程と、A step of transmitting an inquiry signal for detecting the counterpart device when it is detected that the synchronization has been lost;
上記問い合わせ信号に対する上記相手装置からの応答信号を受信すると、動作モードをマスターモードに切替える工程と、Upon receiving a response signal from the counterpart device for the inquiry signal, switching the operation mode to the master mode;
マスターモードに切替え後に、上記相手装置に接続を要求する工程と、After switching to the master mode, requesting connection to the counterpart device,
を有することを特徴とする無線通信装置の通信方法。A communication method for a wireless communication apparatus, comprising:
請求項1において、In claim 1,
同期が外れたことを検出すると、上記相手装置への接続を要求する工程を更に有し、When detecting that the synchronization is lost, the method further includes a step of requesting connection to the partner device,
上記要求に基づく接続ができない場合に、上記問い合わせ信号を送信することを特徴とする通信方法。A communication method characterized by transmitting the inquiry signal when connection based on the request is not possible.
請求項1または請求項2において、In claim 1 or claim 2,
上記相手装置は、電源の供給状態に応じて動作モードを切替える装置であることを特徴とする無線通信装置の通信方法。The communication method of a wireless communication device, wherein the counterpart device is a device that switches an operation mode according to a power supply state.
請求項1から請求項3のいずれか1項において、
ACアダプタ、又はバッテリーのどちらから電源の供給を受けているかを検出する工程と、
検出した結果に応じて、マスターモード、又はスレーブモードのいずれかの動作モードで動作するかを選択する工程と、
選択された動作モードによって、上記無線通信装置が動作するように制御する工程と、
を有することを特徴とする無線通信装置の通信方法。
In any one of Claims 1-3,
Detecting whether power is supplied from an AC adapter or a battery ;
A step of selecting whether to operate in the operation mode of either the master mode or the slave mode according to the detected result ;
Controlling the wireless communication device to operate according to the selected operation mode ;
A communication method for a wireless communication apparatus, comprising:
請求項において、
上記選択する工程においては、上記ACアダプタから電源の供給を受けていることを検出した場合にマスターモードを選択し、一方、上記バッテリーから電源の供給を受けていることを検出した場合にスレーブモードを選択することを特徴とする無線通信装置の通信方法
In claim 4 ,
In the process of the selection, select the master mode when it is detected that the apparatus is supplied with power from the AC adapter, whereas the slave mode when it is detected that the apparatus is supplied with power from the battery communication method for a radio communication apparatus characterized by selecting.
請求項1から請求項のいずれか1項において、
上記マスターモードは、相手装置との間で同期をとるために、上記相手装置に対してコマンドのメッセージを送信してからデータの送受信を開始する動作モードであり、
上記スレーブモードは、マスターモードで動作している相手装置から上記コマンドのメッセージを受信してからデータの送受信を開始する動作モードであることを特徴とする無線通信装置の通信方法
In any one of Claims 1-5 ,
The master mode, to synchronize with the partner device, an operation mode for starting transmission and reception of data from the transmission of the message command to the partner device,
The slave mode, the communication method of the radio communication apparatus characterized by from the other unit operating in the master mode is an operation mode for starting transmission and reception of data from the reception of the message of the command.
請求項1から請求項6のいずれか1項に記載の無線通信装置の通信方法をコンピュータに実行させるためのプログラム。The program for making a computer perform the communication method of the radio | wireless communication apparatus of any one of Claims 1-6 .
JP2001078417A 2001-03-19 2001-03-19 Communication method and program for wireless communication device Expired - Fee Related JP4548960B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001078417A JP4548960B2 (en) 2001-03-19 2001-03-19 Communication method and program for wireless communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001078417A JP4548960B2 (en) 2001-03-19 2001-03-19 Communication method and program for wireless communication device

Publications (3)

Publication Number Publication Date
JP2002280925A JP2002280925A (en) 2002-09-27
JP2002280925A5 JP2002280925A5 (en) 2008-05-01
JP4548960B2 true JP4548960B2 (en) 2010-09-22

Family

ID=18935032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001078417A Expired - Fee Related JP4548960B2 (en) 2001-03-19 2001-03-19 Communication method and program for wireless communication device

Country Status (1)

Country Link
JP (1) JP4548960B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9215748B2 (en) 2005-11-28 2015-12-15 Canon Kabushiki Kaisha Communication apparatus, control method for communication apparatus, and communication system
JP4829600B2 (en) 2005-11-28 2011-12-07 キヤノン株式会社 COMMUNICATION DEVICE AND COMMUNICATION DEVICE CONTROL METHOD
JP2007226412A (en) * 2006-02-22 2007-09-06 Sony Corp Information processor, gps system, information processing method, and computer program
JP2007336398A (en) * 2006-06-16 2007-12-27 Canon Inc Communication apparatus and control method thereof
TW201025213A (en) * 2008-12-31 2010-07-01 Powertech Ind Ltd Wireless controlled apparatus with power save mode
JP4833318B2 (en) * 2009-05-25 2011-12-07 株式会社バッファロー Wireless LAN device
US8885087B2 (en) 2009-12-28 2014-11-11 Canon Kabushiki Kaisha Lens system that is communicable wirelessly
KR101690255B1 (en) 2010-02-25 2016-12-28 삼성전자주식회사 Method and apparatus for performing hand-over
US10541868B2 (en) * 2017-02-24 2020-01-21 Quanta Computer Inc. System and method for automatically updating bios setup options
JP7567573B2 (en) 2021-03-10 2024-10-16 株式会社富士通ゼネラル Air conditioner and air conditioning system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0646110A (en) * 1992-07-22 1994-02-18 Fujitsu Ltd Twin cordless telephone sets
JP2924828B2 (en) * 1996-11-07 1999-07-26 日本電気株式会社 Ad hoc network system and connection method
JP3516832B2 (en) * 1997-05-07 2004-04-05 シャープ株式会社 Time division digital mobile radio communication system
JP3719482B2 (en) * 1998-07-29 2005-11-24 株式会社デンソー Wireless communication device
JP3372906B2 (en) * 1999-08-18 2003-02-04 エヌイーシーモバイリング株式会社 Character information display method and system

Also Published As

Publication number Publication date
JP2002280925A (en) 2002-09-27

Similar Documents

Publication Publication Date Title
JP6335466B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
EP1771973B1 (en) Communication apparatus and communication method
KR101772927B1 (en) Communication apparatus, method of controlling a communication apparatus, and storage medium
JP5247215B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD
US8611315B2 (en) Communication device, communication method, and computer program for causing computer to execute communication method
TW494649B (en) Communication system, and communication device and communication method for use in the communication system
JP6100011B2 (en) Power supply apparatus, power supply method, and program
JP6245907B2 (en) Communication apparatus and communication system
KR20140054075A (en) Electronic device and method for operating electronic device
JP4548960B2 (en) Communication method and program for wireless communication device
JP6124656B2 (en) Power feeding device, power feeding device control method and program
JP2001036459A (en) Radio communication equipment
JP5063408B2 (en) Management device, control method and program
JP5338737B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND VOICE CALL DEVICE
JP6347633B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2003273883A (en) Apparatus and method for radio communication, and radio communication system using them
JP6512875B2 (en) Communication device, control method of communication device, and program
JP4227451B2 (en) Communication method for wireless communication device and wireless communication device
JP2015106369A (en) Image formation system, communication control method and program
JP2018098810A (en) Information processing apparatus, control method, program, and communication system
US20020028700A1 (en) Power control method in wireless communication device
JP2013014109A (en) Communication system, and image forming apparatus
JP4833135B2 (en) Wireless base station, central control station, mobile station
JP6207315B2 (en) Communication apparatus and communication system
JP6100014B2 (en) Power transmission device, power transmission device control method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080318

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080318

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100312

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100511

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100702

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100706

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130716

Year of fee payment: 3

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D03

LAPS Cancellation because of no payment of annual fees