[go: up one dir, main page]

JP2004112373A - Control method of wireless communication device, control program and recording medium storing the same - Google Patents

Control method of wireless communication device, control program and recording medium storing the same Download PDF

Info

Publication number
JP2004112373A
JP2004112373A JP2002272533A JP2002272533A JP2004112373A JP 2004112373 A JP2004112373 A JP 2004112373A JP 2002272533 A JP2002272533 A JP 2002272533A JP 2002272533 A JP2002272533 A JP 2002272533A JP 2004112373 A JP2004112373 A JP 2004112373A
Authority
JP
Japan
Prior art keywords
packet
master
carrier frequency
slave
processor
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
JP2002272533A
Other languages
Japanese (ja)
Inventor
Shinichiro Sato
真一郎 里
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002272533A priority Critical patent/JP2004112373A/en
Publication of JP2004112373A publication Critical patent/JP2004112373A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Transceivers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To save currents needed for message transmission/reception to improve communication efficiency. <P>SOLUTION: A controlling method for wireless communication between a master device and one or a plurality of slave devices is provided. The controlling method includes a master carrier frequency use judging step 103 at which a processor of the master device judges whether two carrier frequencies determined at a master carrier frequency determining step 102 are both usable or not; and a master cessation step 105 following the step 103, at which the processor of the master device does not send a packet in the present slot nor receive a packet in the subsequent slot, and returns to the master carrier frequency determining step 102 when judging either of the two carrier frequencies cannot be used. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、無線通信機器の制御方法、この制御プログラムおよびこれを記録した記録媒体に関するものである。
【0002】
【従来の技術】
2.4GHz帯近距離無線データ通信システムのブルートゥースの通信方式(以下単にブルートゥースと記す)は、625μs幅に区切られたスロットを単位とするパケット通信であり、このパケットはヘッダ部と実データが格納されるペイロード部を有している。一台のブルートゥース機器に着目すると、スロット毎に送信と受信が入れ替わることで他のブルートゥース機器との間で双方向通信が可能である。
【0003】
このブルートゥースのデータ伝送におけるデータ欠落等の通信エラーの防止は、以下のように行っている。すなわち、受信側の機器がデータパケットを正しく受け取った場合、直後のスロットで正しく受け取ったことを示すパケットを送信側の機器に送る。
【0004】
一方、受信側の機器がデータパケットを正しく受け取れなかった場合、直後のスロットで正しく受け取れなかったことを示すパケットを送信側の機器に送り、また、受信側の機器がデータパケット自体を受け取れなかった場合、送信側の機器にパケットを送ること自体をしない。これらの場合送信側の機器はデータ伝送が失敗したものと判断し、受信側の機器が正しく受け取ったことを示すパケットを受け取るまで送信側の機器は同じデータをペイロード部(実データ部)に有するパケットを受信側の機器に送信することとなる。この状態を再送という。
【0005】
このデータパケットを正しく受け取ったかどうかの判断は、具体的にはパケットのヘッダ部にある1ビット長のARQN(acknowledge indication)フィールドの値を参照することによって行われる。すなわち、ARQNフィールドの値が1の場合データを正しく受け取ったことを示し、0の場合データを正しく受け取っていないことを示している。
【0006】
また、ブルートゥースの特徴として1スロット毎に搬送周波数が変化する周波数ホッピング方式を採用している。これにより、あるスロットで他の機器からの周波数干渉によりデータ伝送に失敗しても、次のスロットで異なる搬送周波数で再送することで、周波数干渉を回避し、データ伝送を完了することができる。
【0007】
以下に従来のブルートゥースにおけるパケット通信の手順を説明する。
【0008】
図3は従来のパケット通信のフローチャートを示している。301は第1のマスターパケット生成ステップであり、マスター機器(以下に単にマスターと記す)のプロセッサがヘッダ部のARQNフィールドの値を1に設定し、送信するデータをペイロード部に有するパケットを生成する。302は第1のマスター搬送周波数決定ステップであり、周波数ホッピングパターンに基づきマスターのプロセッサがマスターからスレーブ機器(以下単にスレーブと記す)へのパケット送信に使用する搬送周波数を決定する。303はマスターパケット送信ステップであり、マスターのプロセッサが前記パケットを前記搬送周波数を用いてスレーブへ送信する。304は第2のマスター搬送周波数決定ステップであり、周波数ホッピングパターンに基づきマスターのプロセッサがスレーブからマスターへのパケット受信に使用する搬送周波数を決定する。305はマスター受信確認ステップであり、マスターのプロセッサがスレーブからパケットを受信したかどうかを判断する。306はマスター受信内容チェックステップであり、マスターのプロセッサが受信したパケットのヘッダ部およびペイロード部を正しく受信したかどうかを判断する。307はマスターARQNチェックステップであり、マスターのプロセッサが、受信したパケットのヘッダ部のARQNフィールドの値をチェックする。308は第2のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドの値を1に設定したパケット、またはヘッダ部のARQNフィールドの値を1に設定し前記マスターパケット送信ステップ303にて送信したデータに続くデータをペイロード部に持つパケットを生成する。309は第3のマスターパケット生成ステップであり、マスターのプロセッサが、ヘッダ部のARQNフィールドの値を1に設定したパケット、またはヘッダ部のARQNフィールドの値を1に設定し前記マスターパケット送信ステップ303にて送信したデータをペイロード部に持つパケットを生成する。310は第4のマスターパケット生成ステップであり、マスターのプロセッサが、ヘッダ部のARQNフィールドの値を0に設定したパケット、またはヘッダ部のARQNフィールドの値を0に設定し前記マスターパケット送信ステップ303にて送信したデータをペイロード部に持つパケットを生成する。321は第1のスレーブ搬送周波数決定ステップであり、周波数ホッピングパターンに基づきスレーブのプロセッサがマスターからスレーブへのパケット受信に使用する搬送周波数を決定する。322はスレーブ受信確認ステップであり、スレーブのプロセッサがマスターからパケットを受信したかどうかを判断する。323はスレーブ受信内容チェックステップであり、スレーブのプロセッサが前記パケットのヘッダ部およびペイロード部を正しく受信できたかどうかを判断する。324はスレーブARQNチェックステップであり、スレーブのプロセッサが、受信した前記パケットのヘッダ部のARQNフィールドの値をチェックする。325は第1のスレーブパケット生成ステップであり、スレーブのプロセッサが、ヘッダ部のARQNフィールドの値を1に設定したパケット、またはヘッダ部のARQNフィールドの値を1に設定し次にスレーブからマスターに送信するデータをペイロード部に有するパケットを生成する。326は第2のスレーブパケット生成ステップであり、スレーブのプロセッサが、ヘッダ部のARQNフィールドの値を1に設定したパケット、またはヘッダ部のARQNフィールドの値を1に設定し直前のスレーブパケット送信ステップ329にてスレーブからマスターに送信したデータをペイロード部に有するパケットを生成する。327は第3のスレーブパケット生成ステップであり、スレーブのプロセッサが、ヘッダ部のARQNフィールドの値を0に設定したパケット、またはヘッダ部のARQNフィールドの値を0に設定し直前のスレーブパケット送信ステップ329にてスレーブからマスターに送信したデータをペイロード部に有するパケットを生成する。328は第2のスレーブ搬送周波数決定ステップであり、周波数ホッピングパターンに基づきスレーブのプロセッサがスレーブからマスターへのパケット送信に使用する搬送周波数を決定する。329はスレーブパケット送信ステップであり、スレーブのプロセッサが前記第2のスレーブ搬送周波数決定ステップ328で決定した搬送周波数を用いて前記第1のスレーブパケット生成ステップ325にて生成したパケットをマスターに送信する。
【0009】
330はスレーブ休止ステップであり、スレーブのプロセッサはそのスロットでは送受信動作をしない。
【0010】
次に、従来のパケット通信の手順をさらに説明する。
【0011】
まず、マスターのプロセッサは、第1のマスターパケット生成ステップ301で送信するパケットを生成し、これを第1のマスター搬送周波数決定ステップ302で決定した搬送周波数を用いてマスターパケット送信ステップ303でスレーブへ送信する。
【0012】
スレーブのプロセッサは、第1のスレーブ搬送周波数決定ステップ321で決定した搬送周波数を用いてスレーブ受信確認ステップ322でマスターからのパケットの受信を試みる。この時、受信に失敗すれば、スレーブのプロセッサはそのスロットでは送受信動作を休止し(スレーブ休止ステップ330)、第1のスレーブ搬送周波数決定ステップ321へ戻る。受信できた場合は、スレーブ受信内容チェックステップ323でパケットのヘッダ部およびペイロード部が正しく受信できたかどうか判断する。正しく受信できた場合は、スレーブARQNチェックステップ324でARQNフィールドの値をチェックする。この値が1である場合はこの直前の、スレーブからマスターへのパケットの送信におけるデータ伝送に成功しているので第1のスレーブパケット生成ステップ325で、マスターへ送信する次のデータをペイロード部に有するパケットを生成する。前記ARQNフィールドの値が0である場合はこの直前の、スレーブからマスターへのパケットの送信におけるデータ伝送に失敗しているので、第2のスレーブパケット生成ステップ326で先のパケットで送信したデータと同じデータをペイロード部に有するパケットを生成する。323で正しく受信できなかった場合は、この直前の、スレーブからマスターへのパケットの送信ができていない可能性があるので、このときのデータをペイロード部に有するパケットを生成する。そして、第2のスレーブ搬送周波数決定ステップ328で決定した搬送周波数を用いてスレーブパケット送信ステップ329でマスターへ送信し、第1のスレーブ搬送周波数決定ステップ321へ戻る。
【0013】
マスターのプロセッサは、第2のマスター搬送周波数決定ステップ304で決定した搬送周波数を用いてマスター受信確認ステップ305でスレーブからのパケットの受信を試みる。受信できた場合は、マスター受信内容チェックステップ306でパケットのヘッダ部およびペイロード部が正しく受信できたかどうかを判断する。正しく受信できた場合は、マスターARQNチェックステップ307でARQNフィールドの値をチェックする。この値が1の場合は前記マスターパケット送信ステップ303で送信したパケットのデータ伝送に成功しているので、第2のマスターパケット生成ステップ308でマスターへ送信する次のデータをペイロード部に有するパケットを生成する。一方この値が0の場合は前記マスターパケット送信ステップ303でのパケット送信に失敗しているので、第3のマスターパケット生成ステップ309で先のパケットで送信したデータと同じデータをペイロード部に有するパケットを生成し、第1のマスター搬送周波数決定ステップ302に戻る。マスター受信確認ステップ305でパケットを受信できなかった場合、またはマスター受信内容チェックステップ306で正しく受信できなかった場合は、先にスレーブへ送信したデータが送信できていない可能性があるので、先に送信したデータをペイロード部に有するパケットを生成し、第1のマスター搬送周波数決定ステップ302へ戻る。
【0014】
以上のステップを送信するデータがなくなるまで繰り返す。
【0015】
なお、この出願の発明に関連する先行技術文献情報としては、例えば、特許文献1が知られている。
【0016】
【特許文献1】
特開2001−21771号公報
【0017】
【発明が解決しようとする課題】
周波数ホッピング方式における搬送周波数の使用する順番は、マスターとスレーブとのリンク形成の時点で決定された周波数ホッピングパターンに従う。このホッピングパターンはブルートゥースが使用する79チャンネルの搬送周波数を均等に選択するようになっている。したがって、ある搬送周波数帯に妨害電波が定常的に存在していることが既知であってもいつかはその搬送周波数を用いて通信エラーが発生してしまうこととなる。
【0018】
すなわち、通信に使用する周波数としてその搬送周波数を回避することができないので通信エラーが発生し、消費電流の増大およびデータ伝送速度の低下を招き、その結果、通信効率(単位電流当たりのデータ伝送速度)が低下してしまうという問題があった。
【0019】
そこで本発明はこの通信効率を向上させることを目的とする。
【0020】
【課題を解決するための手段】
この目的を達成するために本発明の請求項1に記載の発明は、特に搬送周波数決定ステップにおいて決定された二つの搬送周波数が共に使用可能かどうかをマスター機器のプロセッサが判断する搬送周波数使用判断ステップを設け、その後この二つの搬送周波数のいずれか一つが使用不可であると判断した場合マスター機器のプロセッサはパケットの送信およびその直後のスロットでのパケットの受信をせず前記搬送周波数決定ステップに戻るマスター休止ステップを設けたものであるので、搬送周波数が使用不可の場合パケットの送受信をしないためその送受信に要する電流を節約することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0021】
本発明の請求項2に記載の発明は、請求項1に記載の、無線通信機器の制御方法において、前記マスター機器が前記一又は複数のスレーブ機器へのパケットの送信を失敗した場合その送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第1のマスター搬送周波数記録ステップと、前記マスター機器が前記一又は複数のスレーブ機器からのパケットの受信を失敗した場合又はパケットのデータを正しく受信できなかった場合前記マスター機器がこの受信およびその直前の送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第2のマスター搬送周波数記録ステップと、を有し、前記搬送周波数使用判断ステップにおいて前記二つの搬送周波数が使用可能であるかを判断する方法として前記記憶装置を参照して前記二つの搬送周波数のいずれかが前記記憶装置に記録されている場合はマスター機器が使用不可と判断し、前記二つの搬送周波数のいずれも記録されていない場合は使用可能と判断する無線通信機器の制御方法であり、一度パケット送受信エラーが発生した搬送周波数を再度搬送周波数として使用しようとする場合パケット送受信を休止することにより送受信エラーの再発を防止することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0022】
本発明の請求項3に記載の発明は、請求項2に記載の、無線通信機器の制御方法において記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される無線通信機器の制御方法であり、リンク接続時間が長くなると使用可能な搬送周波数の数が少なくなるが、記憶装置に記録された搬送周波数を一定時間経過後に消去することによりそれを防止することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0023】
本発明の請求項4に記載の発明は、無線通信機器のベースバンドIC内のプロセッサに実行させるための通信制御のプログラムであって、特に搬送周波数決定ステップにおいて決定された2つの搬送周波数fm、fsが共に使用可能かどうかをマスター機器のプロセッサが判断する搬送周波数使用判断ステップを設け、その後この搬送周波数fm,fsのいずれか一つが使用不可であると判断した場合マスター機器のプロセッサは前記パケットの送信およびその直後のスロットでのパケットの受信をせず前記搬送周波数決定ステップに戻るマスター休止ステップを設けたため、一度パケット送受信エラーが発生した搬送周波数を再度搬送周波数として使用しようとする場合パケット送受信を休止することにより送受信エラーの再発を防止することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0024】
本発明の請求項5に記載の発明は、請求項4に記載の通信制御プログラムにおいて前記記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される通信制御プログラムであり、リンク接続時間が長くなると使用可能な搬送周波数の数が少なくなるが、記憶装置に記録された搬送周波数を一定時間経過後に消去することによりそれを防止することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0025】
本発明の請求項6に記載の発明は、請求項4に記載の搬送周波数使用判断ステップにおいて搬送周波数fm,fsが使用可能であるかを判断する方法として前記記憶装置を参照して前記搬送周波数fm,fsが前記記憶装置に記録されている場合マスター機器のプロセッサが使用不可と判断し、前記搬送周波数fm,fsが前記記憶装置に記録されていない場合使用可能と判断する無線通信機器の通信制御プログラムであり、請求項4の作用効果を補完するものである。
【0026】
本発明の請求項7に記載の発明は、記憶装置に記録された搬送周波数は一定時間経過後に前記記憶装置から消去される請求項6に記載の無線通信機器の通信制御プログラムであり、請求項5と同様の作用効果を奏する。
【0027】
本発明の請求項8に記載の発明は、マスター機器と一又は複数のスレーブ機器との間で行われる無線通信機器の制御方法であって、特に前記搬送周波数決定ステップにおいて決定された2つの搬送周波数fm,fsが共に使用可能かどうかをマスター機器およびスレーブ機器のプロセッサが判断する搬送周波数使用判断ステップと、この搬送周波数決定ステップにおいて前記2つの搬送周波数fm,fsのいずれか一つが使用不可であると判断した場合マスター機器およびスレーブ機器のプロセッサがこの使用不可の搬送周波数を用いてパケット送信に使用しようとする新たな搬送周波数を算出し前記搬送周波数使用判断ステップに戻る搬送周波数再決定ステップとを設けたものであり、一度パケット送受信エラーが発生した搬送周波数を再度搬送周波数として使用しようとする場合その搬送周波数から算出される新たな搬送周波数を用いてパケット送受信することにより送受信エラーの再発を防止することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0028】
本発明の請求項9に記載の発明は、請求項8に記載の無線通信機器の制御方法において、前記マスター機器が前記一又は複数のスレーブ機器へのパケットの送信を失敗した場合その送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第1のマスター搬送周波数記録ステップと、前記マスター機器が前記一又は複数のスレーブ機器からのパケットの受信を失敗した場合又はパケットのデータを正しく受信できなかった場合前記マスター機器がこの受信およびその直前の送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第2のマスター機器搬送周波数記録ステップと、マスター機器から受信したパケットのヘッダ部に搬送周波数のデータがある場合スレーブ機器の記憶装置にこれを記録するスレーブ搬送周波数記録ステップと、を有し、前記マスター搬送周波数使用判断ステップにおいて前記二つの搬送周波数が使用可能かどうかを判断する方法として前記マスター機器の記憶装置を参照して前記二つの搬送周波数の少なくとも一つの搬送周波数が前記記憶装置に記録されている場合マスター機器が前記二つの搬送周波数は使用不可と判断し、前記二つの搬送周波数のいずれも記録されていない場合使用可能と判断する無線通信機器の制御方法であり、特に前記搬送周波数決定ステップにおいて決定された2つの搬送周波数fm,fsが共に使用可能かどうかをマスター機器およびスレーブ機器のプロセッサが判断する搬送周波数使用判断ステップと、この搬送周波数決定ステップにおいて前記2つの搬送周波数fm,fsのいずれか一つが使用不可であると判断した場合マスター機器およびスレーブ機器のプロセッサがこの使用不可の搬送周波数を用いてパケット送信に使用しようとする新たな搬送周波数を算出し前記搬送周波数使用判断ステップに戻る搬送周波数再決定ステップとを設けたものであり、一度パケット送受信エラーが発生した搬送周波数を再度搬送周波数として使用しようとする場合その搬送周波数から算出される新たな搬送周波数を用いてパケット送受信することにより送受信エラーの再発を防止することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0029】
本発明の請求項10に記載の発明は、請求項9に記載の無線通信機器の制御方法において前記マスター機器の記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される無線通信機器の制御方法であり、請求項3と同様の作用効果を奏する。
【0030】
本発明の請求項11に記載の発明は、無線通信機器のベースバンドIC内のプロセッサに実行させるための通信制御のプログラムであって、特に前記搬送周波数決定ステップにおいて決定された2つの搬送周波数fm,fsが共に使用可能かどうかをマスター機器およびスレーブ機器のプロセッサが判断する搬送周波数使用判断ステップと、この搬送周波数決定ステップにおいて前記2つの搬送周波数fm,fsのいずれか一つが使用不可であると判断した場合マスター機器およびスレーブ機器のプロセッサがこの使用不可の搬送周波数を用いてパケット送信に使用しようとする新たな搬送周波数を算出し前記搬送周波数使用判断ステップに戻る搬送周波数再決定ステップとを設けたものであり、一度パケット送受信エラーが発生した搬送周波数を再度搬送周波数として使用しようとする場合その搬送周波数から算出される新たな搬送周波数を用いてパケット送受信することにより送受信エラーの再発を防止することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【0031】
本発明の請求項12に記載の発明は、請求項11に記載の通信制御プログラムにおいて前記記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される通信制御プログラムであり、請求項5と同様の作用効果を奏する。
【0032】
本発明の請求項13に記載の発明は、請求項11に記載の搬送周波数使用判断ステップにおいて搬送周波数fm,fsが使用可能かどうかを判断する方法として前記記憶装置を参照して前記搬送周波数fm,fsが前記記憶装置に記録されている場合マスター機器のプロセッサが使用不可と判断し、前記搬送周波数fm,fsが前記記憶装置に記録されていない場合使用可能と判断する無線通信機器の通信制御プログラムであり、請求項11の作用効果を補完するものである。
【0033】
本発明の請求項14に記載の発明は、記憶装置に記録された搬送周波数は一定時間経過後に前記記憶装置から消去される請求項13に記載の無線通信機器の通信制御プログラムであり、請求項5と同様の作用効果を奏する。
【0034】
本発明の請求項15に記載の発明は、請求項4〜7、11〜14のいずれか1つに記載の通信制御プログラムを記録した、コンピュータ読み取り可能な記録媒体であり、磁気ディスク、光ディスク等の可搬性の記録媒体にこのプログラムが記録されることにより通信効率の向上効果の形態化、流通化が促進され、一箇所に拘束されることなく様々な無線通信機器に容易に実施することができ、前記効果を実現することができるという作用効果を奏する。
【0035】
【発明の実施の形態】
以下本発明の無線通信機器の制御方法、この制御プログラムおよびこれを記録した記録媒体について実施の形態および図面を用いて説明する。
【0036】
(実施の形態1)
本実施の形態1および図1を用いて請求項1〜7に記載の発明について説明する。
【0037】
図1は本実施の形態1におけるパケット通信のフローチャートを示している。101は第1のマスターパケット生成ステップであり、マスター機器(以下単にマスターと記す)のプロセッサがヘッダ部のARQNフィールドの値を1にセットし、送信するデータをペイロード部に持つパケットを生成する。102はマスター搬送周波数決定ステップであり、周波数ホッピングパターンに基づき、マスターのプロセッサがマスターからスレーブへのパケットの送信に使用しようとする搬送周波数fm、スレーブからマスターへのパケット受信に使用しようとする搬送周波数fsを決定する。103はマスター搬送周波数使用判断ステップであり、102で決定した2つの搬送周波数fm,fsが使用可能であるかを判断する。104はマスターパケット送信ステップであり、マスターのプロセッサがパケットを前記パケット送信に使用しようとする搬送周波数fmでもってスレーブへ送信する。105はマスター休止ステップであり、マスターのプロセッサはそのスロットでは送受信動作を休止する。106はマスター受信確認ステップであり、マスターのプロセッサがスレーブからパケットを受信したかを判断する。107はマスター受信内容チェックステップであり、マスターのプロセッサが受信したパケットのヘッダ部・ペイロード部を正しく受信したかを判断する。108はマスターARQNチェックステップであり、マスターのプロセッサが受信したパケットのヘッダ部のARQNフィールドの値をチェックする。109は第2のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、次にマスターからスレーブに送信するデータをペイロード部に持つパケットを生成する。110は第1のマスター搬送周波数記録ステップであり、先のマスターパケット送信ステップ104で使用した搬送周波数fmを記録する。111は第3のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、先のマスターパケット送信ステップで送信したデータをペイロード部に持つパケットを生成する。112は第2のマスター搬送周波数記録ステップであり、先のマスターパケット送信ステップ104で使用した搬送周波数fmと直前のスレーブパケット送信ステップで使用した搬送周波数fsをマスターの記憶装置に記録する。113は第4のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドを0にセットしたパケット、またはヘッダ部のARQNフィールドに0をセットし、先のマスターパケット送信ステップで送信したデータをペイロード部に持つパケットを生成する。121はスレーブ搬送周波数決定ステップであり、周波数ホッピングパターンに基づき、スレーブのプロセッサがマスターからスレーブへのパケット受信に使用しようとする搬送周波数fm、スレーブからマスターへのパケット送信に使用しようとする搬送周波数fsを決定する。122はスレーブ受信確認ステップであり、スレーブのプロセッサがマスターからパケットを受信したかを判断する。123はスレーブ受信内容チェックステップであり、スレーブのプロセッサがマスターから受信したパケットのヘッダ部・ペイロード部を正しく受信できたかを判断する。124はスレーブARQNチェックステップであり、スレーブのプロセッサが受信したパケットのヘッダ部のARQNフィールドの値をチェックする。125は第1のスレーブパケット生成ステップであり、スレーブのプロセッサがヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、次にスレーブからマスターに送信するデータをペイロード部に持つパケットを生成する。126は第2のスレーブパケット生成ステップであり、スレーブのプロセッサはヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、先のスレーブパケット送信ステップ128で送信したデータをペイロード部に持つパケットを生成する。127は第3のスレーブパケット生成ステップであり、スレーブのプロセッサはヘッダ部のARQNフィールドを0にセットしたパケット、またはヘッダ部のARQNフィールドに0をセットし、先のスレーブパケット送信ステップで送信したデータをペイロード部に持つパケットを生成する。128はスレーブパケット送信ステップであり、スレーブのプロセッサがパケットを搬送周波数fsでもってマスターへ送信する。129はスレーブ休止ステップであり、スレーブのプロセッサはそのスロットでは送受信動作をしない。
【0038】
次に、本実施の形態1のパケット通信の手順を図1を用いて具体的に説明する。
【0039】
まず、マスターのプロセッサは第1のマスターパケット生成ステップ101で送信するパケットを生成し、マスター搬送周波数決定ステップ102でこのパケットを送信する時に用いる搬送周波数fmとスレーブからのパケット受信の時に用いる搬送周波数fsを決定する。マスター搬送周波数決定ステップ102で決定した2つの搬送周波数fm,fsが使用可能であるかをマスター搬送周波数使用判断ステップ103において判断する。使用可能である場合はマスターパケット送信ステップ104において、その搬送周波数fmでもってパケットをスレーブへ送信する。使用不可と判断した場合はマスターのプロセッサはそのスロットでは送受信動作を休止し(105)、マスター搬送周波数決定ステップ102に戻る。
【0040】
スレーブのプロセッサはスレーブ搬送周波数決定ステップ121で決定した搬送周波数fmでもって、スレーブ受信確認ステップ122においてマスターからのパケットの受信を試みる。この時、受信に失敗すれば、スレーブのプロセッサはそのスロットでは送受信動作を休止し(129)、スレーブ搬送周波数決定ステップ121へ戻る。受信できた場合は、スレーブ受信内容チェックステップ123でパケットのヘッダ部・ペイロード部が正しく受信できたかを判断する。正しく受信できた場合は、スレーブARQNチェックステップ124でARQNフィールドの値をチェックする。1である場合は先のデータ伝送に成功しているので、第1のスレーブパケット生成ステップ125で次にマスターへ送信するデータをペイロード部に持つパケットを生成する。0である場合は先のデータ伝送に失敗しているので、第2のスレーブパケット生成ステップ126で先のパケットで送信したのと同じデータをペイロード部に持つパケットを生成する。スレーブ受信内容チェックステップ123で正しく受信できなかった場合は、先にマスターへ送信したデータが送信できていない可能性があるので、先に送信したデータをペイロード部に持つパケットを生成する。そして、スレーブ搬送周波数決定ステップ121で決定した搬送周波数fsでもって、スレーブパケット送信ステップ128においてマスターへ送信し、スレーブ搬送周波数決定ステップ121へ戻る。
【0041】
マスターのプロセッサはマスター搬送周波数決定ステップ102で決定し、かつ、マスター搬送周波数使用判断ステップ103で使用可能と判断された搬送周波数fsでもって、マスター受信確認ステップ106においてスレーブからのパケットの受信を試みる。受信できた場合は、マスター受信内容チェックステップ107でパケットのヘッダ部・ペイロード部が正しく受信できたかを判断する。正しく受信できた場合は、マスターARQNチェックステップ108でARQNフィールドの値をチェックする。1である場合は先のデータ伝送に成功しているので、第2のマスターパケット生成ステップ109で次にスレーブへ送信するデータをペイロード部に持つパケットを生成し、マスター搬送周波数決定ステップ102へ戻る。0である場合は先のデータ伝送に失敗しているので、第1のマスター搬送周波数記録ステップ110において先にマスターからスレーブへの通信で用いた搬送周波数fmをマスターの記憶装置に記録し、第3のマスターパケット生成ステップ111で先のパケットで送信したのと同じデータをペイロード部に持つパケットを生成し、マスター搬送周波数決定ステップ102に戻る。マスター受信確認ステップ106でパケットを受信できなかった場合、またはマスター受信内容チェックステップ107で正しく受信できなかった場合は、先にスレーブへ送信したデータが送信できていない可能性があるので、第2のマスター搬送周波数記録ステップ112で先にマスターからスレーブへの通信で用いた搬送周波数fm、スレーブからマスターへの通信で用いた搬送周波数fsをマスターの記憶装置に記録し、先に送信したデータをペイロード部に持つパケットを生成し、マスター搬送周波数決定ステップ102へ戻る。
【0042】
以上の手順を送信するデータがなくなるまで繰り返す。
【0043】
次に、以上の手順によるパケット通信を行った場合の通信効率を調べた。評価方法を以下に記す。
【0044】
妨害電波源として2.451〜2.460GHz帯を用い、この妨害電波の発生している環境においてDM1パケットによるデータ伝送を行い、そのときのデータ伝送速度および消費電流を測定したところ、データ伝送速度は95.5kbps、消費電流は140mAであった。これより通信効率は0.682kbps/mAとなる。
【0045】
一方、比較例として従来の方法によるパケット通信を行い同様にデータ伝送速度および消費電流を測定したところ、データ伝送速度は95.0kbps、消費電流は150mAであった。これより通信効率は0.633kbps/mAとなった。
【0046】
すなわち、本実施の形態1によれば通信効率を比較例より7.7%向上させることができた。
【0047】
(実施の形態2)
本実施の形態2および図2を用いて請求項8〜15に記載の発明について説明する。
【0048】
図2は本実施の形態2におけるパケット通信のフローチャートを示している。201は第1のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドを1にセットし、送信するデータをペイロード部に持つパケットを生成する。202はマスター搬送周波数決定ステップであり、周波数ホッピングパターンに基づき、マスターのプロセッサがマスターからスレーブへのパケット送信に使用しようとする搬送周波数fm、スレーブからマスターへのパケット受信に使用しようとする搬送周波数fsを決定する。203はマスター搬送周波数使用判断ステップであり、202で決定した2つの搬送周波数fm,fsが使用可能であるかを判断する。204はマスターパケット送信ステップであり、マスターのプロセッサがパケットを搬送周波数fmでもってスレーブへ送信する。205はマスター搬送周波数再決定ステップであり、マスターのプロセッサは使用不可と判断された搬送周波数fmから算出した搬送周波数を新たな搬送周波数fmと決定する。206はマスター受信確認ステップであり、マスターのプロセッサがスレーブからパケットを受信したかを判断する。207はマスター受信内容チェックステップであり、マスターのプロセッサが受信したパケットのヘッダ部・ペイロード部を正しく受信したかを判断する。208はマスターARQNチェックステップであり、マスターのプロセッサが受信したパケットのヘッダ部のARQNフィールドの値をチェックする。209は第2のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、次にマスターからスレーブに送信するデータをペイロード部に持つパケットを生成する。210は第1のマスター搬送周波数記録ステップであり、先のマスターパケット送信ステップで使用した搬送周波数fmを記録する。211は第3のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、先のマスターパケット送信ステップで送信したデータをペイロード部に持つパケットを生成する。212は第2のマスター搬送周波数記録ステップであり、先のマスターパケット送信ステップ204で使用した搬送周波数fmと直前のスレーブパケット送信ステップ231で使用した搬送周波数fsを記憶装置に記録する。213は第4のマスターパケット生成ステップであり、マスターのプロセッサがヘッダ部のARQNフィールドを0にセットしたパケット、またはヘッダ部のARQNフィールドに0をセットし、先のマスターパケット送信ステップで送信したデータをペイロード部に持つパケットを生成する。221はスレーブ搬送周波数決定ステップであり、周波数ホッピングパターンに基づき、スレーブのプロセッサがマスターからスレーブへのパケット受信に使用しようとする搬送周波数fm、スレーブからマスターへのパケット送信に使用しようとする搬送周波数fsを決定する。222はスレーブ搬送周波数使用判断ステップであり、221で決定した2つの搬送周波数fm,fsが使用可能であるかを判断する。223はスレーブ搬送周波数再決定ステップであり、スレーブのプロセッサは使用不可と判断された搬送周波数fm,fsから算出した搬送周波数を新たな搬送周波数fm,fsと決定する。224はスレーブ受信確認ステップであり、スレーブのプロセッサがマスターからパケットを受信したかを判断する。225はスレーブ受信内容チェックステップであり、スレーブのプロセッサがマスターから受信したパケットのヘッダ部・ペイロード部を正しく受信できたかを判断する。226はスレーブARQNチェックステップであり、スレーブのプロセッサが受信したパケットのヘッダ部のARQNフィールドの値をチェックする。227は第1のスレーブパケット生成ステップであり、スレーブのプロセッサがヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、次にスレーブからマスターに送信するデータをペイロード部に持つパケットを生成する。228は第2のスレーブパケット生成ステップであり、スレーブのプロセッサはヘッダ部のARQNフィールドを1にセットしたパケット、またはヘッダ部のARQNフィールドを1にセットし、先のスレーブパケット送信ステップで送信したデータをペイロード部に持つパケットを生成する。229はスレーブ搬送周波数記録ステップであり、マスターから受信したパケットのヘッダ部に搬送周波数のデータが含まれている場合にこれをスレーブの記憶装置に記録する。230は第3のスレーブパケット生成ステップであり、スレーブのプロセッサはヘッダ部のARQNフィールドを0にセットしたパケット、またはヘッダ部のARQNフィールドに0をセットし、先のスレーブパケット送信ステップで送信したデータをペイロード部に持つパケットを生成する。231はスレーブパケット送信ステップであり、スレーブのプロセッサがパケットを搬送周波数fsでもってマスターへ送信する。232はスレーブ休止ステップであり、スレーブのプロセッサはそのスロットでは送受信動作をしない。
【0049】
次に、本実施の形態2のパケット通信の手順を図2を用いて具体的に説明する。
【0050】
まず、マスターのプロセッサは第1のマスターパケット生成ステップ201で送信するパケットを生成し、マスター搬送周波数決定ステップ202でこれを送信する時に用いる搬送周波数fmとスレーブからのパケット受信の時に用いる搬送周波数fsを決定する。このマスター搬送周波数決定ステップ202で決定した2つの搬送周波数fm,fsが使用可能であるかをマスター搬送周波数使用判断ステップ203において判断する。使用可能である場合はマスターパケット送信ステップ204において、その搬送周波数fmでもってパケットをスレーブへ送信する。使用不可と判断した場合は、マスターのプロセッサは使用不可と判断された搬送周波数に4MHzを加算した搬送周波数を新たな搬送周波数に決定し、マスター搬送周波数使用判断ステップ203に戻る。
【0051】
スレーブのプロセッサはスレーブ搬送周波数決定ステップ221でマスターから受信するときに用いる搬送周波数fmとマスターへ送信するときに用いる搬送周波数fsを決定する。スレーブ搬送周波数決定ステップ221で決定した2つの搬送周波数fm,fsが使用可能であるかをスレーブ搬送周波数使用判断ステップ222において判断する。使用可能である場合はスレーブ受信確認ステップ224においてマスターからのパケットの受信を試みる。使用不可と判断した場合は、スレーブのプロセッサは使用不可と判断された搬送周波数に4MHzを加算した搬送周波数を新たな搬送周波数に決定し、スレーブ搬送周波数使用判断ステップ222に戻る。
【0052】
ここで4MHzを加算しているのは、新たな搬送周波数fm,fsを妨害電波の周波数帯から外すためである。この加算する値は、小さくするほど前記周波数帯から外れにくくなるため、スレーブ搬送周波数使用判断ステップ222とスレーブ搬送周波数再決定ステップ223が繰り返し行われることとなり、その結果、新たな搬送周波数fm,fsが決定されるのに時間がかかってしまう。したがって、妨害電波の周波数帯が既知である場合その周波数帯を考慮して、前記加算値を設定することが望ましい。
【0053】
スレーブのプロセッサがスレーブ受信確認ステップ224でパケットを受信できた場合は、スレーブ受信内容チェックステップ225でパケットのヘッダ部・ペイロード部が正しく受信できたかを判断する。正しく受信できた場合は、スレーブARQNチェックステップ226でARQNフィールドの値をチェックする。1である場合は先のデータ伝送に成功しているので、第1のスレーブパケット生成ステップ227で次にマスターへ送信するデータをペイロード部に持つパケットを生成する。0である場合は先のデータ伝送に失敗しているので、第2のスレーブパケット生成ステップ228で先のパケットで送信したのと同じデータをペイロード部に持つパケットを生成する。また、第1のスレーブパケット生成ステップ227、第2のスレーブパケット生成ステップ228の後に、先にマスターから受信したパケットのヘッダ部に搬送周波数のデータがあれば、これを記憶装置に記録し、スレーブパケット送信ステップ231においてマスターへパケットを送信し、スレーブ搬送周波数決定ステップ221に戻る。スレーブ受信内容チェックステップ225で正しく受信できなかった場合は、先にマスターへ送信したデータが送信できていない可能性があるので、先に送信したデータをペイロード部に持つパケットを生成する。そして、スレーブ搬送周波数使用判断ステップ222で決定した搬送周波数でもって、スレーブパケット送信ステップ231においてマスターへ送信し、スレーブ搬送周波数決定ステップ221へ戻る。
【0054】
マスターのプロセッサはマスター搬送周波数決定ステップ202で決定し、かつ、マスター搬送周波数使用判断ステップ203で使用可能と判断された搬送周波数でもって、マスター受信確認ステップ206においてスレーブからのパケットの受信を試みる。受信できた場合は、マスター受信内容チェックステップ207でパケットのヘッダ部・ペイロード部が正しく受信できたかを判断する。正しく受信できた場合は、マスターARQNチェックステップ208でARQNフィールドの値をチェックする。1である場合は先のデータ伝送に成功しているので、第2のマスターパケット生成ステップ209で次にマスターへ送信するデータをペイロード部に持つパケットを生成し、マスター搬送周波数決定ステップ202へ戻る。0である場合は先のデータ伝送に失敗しているので、第1のマスター搬送周波数記録ステップ210において先にマスターからスレーブへの通信で用いた搬送周波数を記憶装置に記録し、第3のマスターパケット生成ステップ211で先のパケットで送信したのと同じデータをペイロード部に持つパケットを生成し、マスター搬送周波数決定ステップ202に戻る。マスター受信確認ステップ206でパケットを受信できなかった場合、またはマスター受信内容チェックステップ207で正しく受信できなかった場合は、先にスレーブへ送信したデータが送信できていない可能性があるので、第2のマスター搬送周波数記録ステップ212で先にマスターからスレーブへの通信で用いた搬送周波数、スレーブからマスターへの通信で用いた搬送周波数を記憶装置に記録し、先に送信したデータをペイロード部に持つパケットを生成し、マスター搬送周波数決定ステップ202へ戻る。
【0055】
次に、以上の手順によるパケット通信を行った場合の通信効率を調べた。評価方法は実施の形態1と同様である。
【0056】
本実施の形態2によれば、データ伝送速度は105.3kbps、消費電流は148mAであった。これより通信効率は0.711kbps/mAとなった。
【0057】
すなわち、本実施の形態2によれば通信効率を比較例より12.3%向上させることができた。
【0058】
以上、実施の形態で示した無線通信機器の制御方法およびプログラムはコンピュータ読み出し可能な記録媒体に記録することにより、通信効率の向上効果の形態化、流通化が促進され、一箇所に拘束されることなく様々な無線通信機器に容易に実施することができ、前記効果を実現することができる。
【0059】
以上のように本発明は、ブルートゥースを搭載した機器間の通信において効果を有するものであり、その機器とは、例えば、パソコン、携帯端末、移動体通信、ステレオ装置とヘッドフォン等が挙げられる。
【0060】
【発明の効果】
以上のように本発明は、特に搬送周波数決定ステップにおいて決定された二つの搬送周波数が共に使用可能かどうかをマスター機器のプロセッサが判断する搬送周波数使用判断ステップを設け、その後この二つの搬送周波数のいずれか一つが使用不可であると判断した場合マスター機器のプロセッサはパケットの送信およびその直後のスロットでのパケットの受信をせず前記搬送周波数決定ステップに戻るマスター休止ステップを設けたものであるので、搬送周波数が使用不可の場合パケットの送受信をしないためその送受信に要する電流を節約することができ、その結果、通信効率を向上させることができるという作用効果を奏する。
【図面の簡単な説明】
【図1】本発明の実施の形態1におけるパケット通信のフローチャート
【図2】本発明の実施の形態2におけるパケット通信のフローチャート
【図3】従来のパケット通信のフローチャート
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a control method for a wireless communication device, a control program, and a recording medium storing the control program.
[0002]
[Prior art]
The Bluetooth communication method of the 2.4 GHz band short-range wireless data communication system (hereinafter simply referred to as Bluetooth) is a packet communication in units of slots divided into 625 μs width, and this packet stores a header part and actual data. It has a payload part to be executed. Focusing on one Bluetooth device, two-way communication with another Bluetooth device is possible by switching between transmission and reception for each slot.
[0003]
Communication errors such as data loss in the Bluetooth data transmission are prevented as follows. That is, when the receiving device correctly receives the data packet, the receiving device sends a packet indicating that the data packet has been correctly received to the transmitting device in the immediately following slot.
[0004]
On the other hand, if the receiving device did not receive the data packet correctly, it sends a packet indicating that the data packet was not received correctly in the immediately following slot to the transmitting device, and the receiving device did not receive the data packet itself. In this case, it does not transmit the packet to the transmitting device. In these cases, the transmitting device determines that data transmission has failed, and the transmitting device has the same data in the payload portion (real data portion) until the receiving device receives a packet indicating that the data has been correctly received. The packet is transmitted to the receiving device. This state is called retransmission.
[0005]
The determination as to whether or not the data packet has been correctly received is made specifically by referring to the value of a 1-bit length ARQN (acknowledge indication) field in the header of the packet. That is, when the value of the ARQN field is 1, it indicates that data has been correctly received, and when it is 0, it indicates that data has not been correctly received.
[0006]
Further, as a feature of Bluetooth, a frequency hopping method in which a carrier frequency changes for each slot is adopted. Thus, even if data transmission fails due to frequency interference from another device in a certain slot, retransmission is performed in a different carrier frequency in the next slot, thereby avoiding frequency interference and completing data transmission.
[0007]
Hereinafter, a conventional packet communication procedure in Bluetooth will be described.
[0008]
FIG. 3 shows a flowchart of the conventional packet communication. Reference numeral 301 denotes a first master packet generation step, in which a processor of a master device (hereinafter simply referred to as a master) sets a value of an ARQN field of a header portion to 1, and generates a packet having data to be transmitted in a payload portion. . A first master carrier frequency determination step 302 determines a carrier frequency used by the master processor for transmitting packets from the master to slave devices (hereinafter simply referred to as slaves) based on the frequency hopping pattern. Reference numeral 303 denotes a master packet transmission step, in which the master processor transmits the packet to the slave using the carrier frequency. Reference numeral 304 denotes a second master carrier frequency determination step, which determines a carrier frequency used by the master processor to receive a packet from the slave to the master based on the frequency hopping pattern. Reference numeral 305 denotes a master reception confirmation step, which determines whether or not the master processor has received a packet from the slave. Reference numeral 306 denotes a master reception content check step, which determines whether the header and the payload of the received packet have been correctly received by the master processor. Reference numeral 307 denotes a master ARQN check step in which the master processor checks the value of the ARQN field in the header of the received packet. Reference numeral 308 denotes a second master packet generation step in which the master processor sets the value of the ARQN field of the header to 1 or the value of the ARQN field of the header to 1 and performs the master packet transmission step 303. Then, a packet having data following the transmitted data in the payload portion is generated. Reference numeral 309 denotes a third master packet generation step, in which the master processor sets the value of the ARQN field of the header to 1 or sets the value of the ARQN field of the header to 1 and sends the master packet to the master packet transmission step 303. To generate a packet having the data transmitted in the payload portion. Reference numeral 310 denotes a fourth master packet generation step, in which the master processor sets the value of the ARQN field of the header to 0 or sets the value of the ARQN field of the header to 0, and transmits the master packet to the master packet transmission step 303. To generate a packet having the data transmitted in the payload portion. Reference numeral 321 denotes a first slave carrier frequency determination step, which determines a carrier frequency used by the slave processor to receive a packet from the master to the slave based on the frequency hopping pattern. Reference numeral 322 denotes a slave reception confirmation step, which determines whether or not the slave processor has received a packet from the master. Reference numeral 323 denotes a slave reception content check step, which determines whether or not the slave processor has correctly received the header portion and the payload portion of the packet. 324 is a slave ARQN check step, in which the slave processor checks the value of the ARQN field in the header of the received packet. 325 is a first slave packet generation step in which the processor of the slave sets the value of the ARQN field of the header to 1 or the value of the ARQN field of the header to 1 and then sets the slave to the master. A packet having data to be transmitted in a payload portion is generated. 326 is a second slave packet generation step in which the slave processor sets the value of the ARQN field in the header to 1 or sets the value of the ARQN field in the header to 1 and transmits the immediately preceding slave packet. At 329, a packet having data transmitted from the slave to the master in the payload portion is generated. 327 is a third slave packet generation step in which the slave processor sets the value of the ARQN field of the header to 0, or sets the value of the ARQN field of the header to 0 and transmits the immediately preceding slave packet. At 329, a packet having data transmitted from the slave to the master in the payload portion is generated. 328 is a second slave carrier frequency determining step, which determines a carrier frequency used by the slave processor for transmitting packets from the slave to the master based on the frequency hopping pattern. Reference numeral 329 denotes a slave packet transmission step, in which the slave processor transmits the packet generated in the first slave packet generation step 325 to the master using the carrier frequency determined in the second slave carrier frequency determination step 328. .
[0009]
Reference numeral 330 denotes a slave pause step, in which the slave processor does not perform transmission / reception operations in the slot.
[0010]
Next, the procedure of the conventional packet communication will be further described.
[0011]
First, the master processor generates a packet to be transmitted in the first master packet generation step 301 and transmits the packet to the slave in the master packet transmission step 303 using the carrier frequency determined in the first master carrier frequency determination step 302. Send.
[0012]
The slave processor attempts to receive a packet from the master in the slave reception confirmation step 322 using the carrier frequency determined in the first slave carrier frequency determination step 321. At this time, if the reception fails, the slave processor suspends the transmission / reception operation in the slot (slave pause step 330), and returns to the first slave carrier frequency determination step 321. If the packet has been successfully received, it is determined in a slave reception content check step 323 whether or not the header and the payload of the packet have been correctly received. If the reception is successful, the slave ARQN check step 324 checks the value of the ARQN field. If this value is 1, the data transmission in the immediately preceding packet transmission from the slave to the master has been successful, so the first slave packet generation step 325 stores the next data to be transmitted to the master in the payload section. Generate a packet with When the value of the ARQN field is 0, since the data transmission in the transmission of the packet from the slave to the master immediately before this has failed, the data transmitted in the previous packet in the second slave packet generation step 326 is A packet having the same data in the payload is generated. If the packet was not correctly received in H.323, there is a possibility that the packet from the slave to the master just before this may not have been transmitted, so a packet having the data at this time in the payload section is generated. Then, the slave packet is transmitted to the master in the slave packet transmitting step 329 using the carrier frequency determined in the second slave carrier frequency determining step 328, and the process returns to the first slave carrier frequency determining step 321.
[0013]
The master processor attempts to receive a packet from the slave in the master reception confirmation step 305 using the carrier frequency determined in the second master carrier frequency determination step 304. If the packet has been successfully received, it is determined in a master reception content check step 306 whether the header and the payload of the packet have been correctly received. If the data has been correctly received, the value of the ARQN field is checked in a master ARQN check step 307. If this value is 1, the data transmission of the packet transmitted in the master packet transmission step 303 has been successful, and the packet having the next data to be transmitted to the master in the payload section in the second master packet generation step 308 is Generate. On the other hand, if this value is 0, since the packet transmission in the master packet transmission step 303 has failed, a packet having the same data as the data transmitted in the previous packet in the third master packet generation step 309 in the payload portion is output. And returns to the first master carrier frequency determination step 302. If the packet cannot be received in the master reception confirmation step 305, or if the packet cannot be received correctly in the master reception content check step 306, the data previously transmitted to the slave may not have been transmitted. A packet having the transmitted data in the payload portion is generated, and the process returns to the first master carrier frequency determining step 302.
[0014]
The above steps are repeated until there is no more data to be transmitted.
[0015]
As prior art document information related to the invention of this application, for example, Patent Document 1 is known.
[0016]
[Patent Document 1]
JP-A-2001-21771
[0017]
[Problems to be solved by the invention]
The order in which the carrier frequencies are used in the frequency hopping scheme follows the frequency hopping pattern determined at the time of forming the link between the master and the slave. This hopping pattern is designed to evenly select the carrier frequency of channel 79 used by Bluetooth. Therefore, even if it is known that the jamming radio wave is constantly present in a certain carrier frequency band, sometime a communication error will occur using the carrier frequency.
[0018]
That is, since the carrier frequency cannot be avoided as a frequency used for communication, a communication error occurs, resulting in an increase in current consumption and a decrease in data transmission speed. As a result, the communication efficiency (data transmission speed per unit current) increases. ) Is reduced.
[0019]
Therefore, an object of the present invention is to improve the communication efficiency.
[0020]
[Means for Solving the Problems]
In order to achieve this object, the invention according to claim 1 of the present invention provides a carrier frequency use determination in which a processor of a master device determines whether or not two carrier frequencies determined in a carrier frequency determination step can be used together. Step, after that, if it is determined that any one of the two carrier frequencies is unusable, the processor of the master device does not transmit the packet and receive the packet in the slot immediately after it, and proceeds to the carrier frequency determination step. Since a return master pause step is provided, packets are not transmitted / received when the carrier frequency is unavailable, so that current required for the transmission / reception can be saved, and as a result, communication efficiency can be improved. It works.
[0021]
According to a second aspect of the present invention, in the method for controlling a wireless communication device according to the first aspect, when the master device fails to transmit a packet to the one or more slave devices, the transmission is not performed. A first master carrier frequency recording step of recording the used carrier frequency in a storage device of the master device, and when the master device fails to receive a packet from the one or more slave devices or corrects the packet data A second master carrier frequency recording step in which the master device records the carrier frequency used in the reception and the transmission immediately before the master device in a storage device of the master device when the reception is not possible, and As a method of determining whether the two carrier frequencies are usable in the step, the storage device is referred to as the method for determining whether the two carrier frequencies are usable. Control of a wireless communication device that determines that the master device is unusable when any of the carrier frequencies is recorded in the storage device and determines that the master device is usable when neither of the two carrier frequencies is recorded. A method for preventing a recurrence of a transmission / reception error by suspending packet transmission / reception when a carrier frequency in which a packet transmission / reception error has occurred once is to be used as a carrier frequency again, thereby improving communication efficiency. It has the effect of being able to perform.
[0022]
According to a third aspect of the present invention, in the method for controlling a wireless communication device according to the second aspect, the carrier frequency recorded in the storage device is deleted from the storage device after a predetermined time has elapsed. This is a control method, and the longer the link connection time, the smaller the number of usable carrier frequencies, but it can be prevented by deleting the carrier frequencies recorded in the storage device after a certain period of time, and as a result, This has the effect that the communication efficiency can be improved.
[0023]
According to a fourth aspect of the present invention, there is provided a communication control program to be executed by a processor in a baseband IC of a wireless communication device, and in particular, two carrier frequencies fm, determined in a carrier frequency determining step, a carrier frequency use determining step for the processor of the master device to determine whether or not both of the carrier frequencies fs can be used. If it is determined that one of the carrier frequencies fm and fs is unusable, the processor of the master device transmits the packet Since a master pause step is provided for returning to the carrier frequency determining step without transmitting a packet and receiving a packet in a slot immediately after the transmission, a carrier frequency in which a packet transmission / reception error has occurred once is to be used again as a carrier frequency. To prevent recurrence of transmission / reception errors by suspending Bets can be, as a result, advantageous effects that it is possible to improve the communication efficiency.
[0024]
According to a fifth aspect of the present invention, there is provided a communication control program according to the fourth aspect, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. As the connection time increases, the number of usable carrier frequencies decreases, but this can be prevented by deleting the carrier frequencies recorded in the storage device after a certain period of time, thereby improving communication efficiency. It has the effect of being able to do so.
[0025]
According to a sixth aspect of the present invention, as the method for determining whether the carrier frequencies fm and fs are usable in the carrier frequency use determining step according to the fourth aspect, the carrier frequency is referred to by referring to the storage device. The communication of the wireless communication device determines that the processor of the master device is unusable when fm and fs are recorded in the storage device, and determines that it is usable when the carrier frequency fm and fs is not recorded in the storage device. This is a control program, and complements the function and effect of claim 4.
[0026]
The invention according to claim 7 of the present invention is the communication control program for a wireless communication device according to claim 6, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. The same operation and effect as those of No. 5 can be obtained.
[0027]
The invention according to claim 8 of the present invention is a method for controlling a wireless communication device performed between a master device and one or a plurality of slave devices, and particularly, a method for controlling two carriers determined in the carrier frequency determining step. A carrier frequency use determining step in which the processors of the master device and the slave device determine whether both the frequencies fm and fs can be used; and in this carrier frequency determining step, one of the two carrier frequencies fm and fs cannot be used. When it is determined that there is, the processor of the master device and the slave device calculates a new carrier frequency to be used for packet transmission using the unusable carrier frequency, and returns to the carrier frequency use determination step. The carrier frequency at which a packet transmission / reception error has occurred When trying to use as a carrier frequency, it is possible to prevent a retransmission / reception error from occurring by transmitting and receiving packets using a new carrier frequency calculated from the carrier frequency, and as a result, it is possible to improve communication efficiency. It has a function and effect.
[0028]
According to a ninth aspect of the present invention, in the control method of the wireless communication device according to the eighth aspect, when the master device fails to transmit a packet to the one or more slave devices, the method is used for the transmission. A first master carrier frequency recording step of recording the received carrier frequency in a storage device of the master device, and when the master device fails to receive a packet from the one or more slave devices or correctly receives packet data. If not, a second master device carrier frequency recording step of recording the carrier frequency used by the master device in this reception and the immediately preceding transmission in a storage device of the master device, and a header portion of a packet received from the master device. If there is carrier frequency data in the slave device, the slave carrier frequency is recorded in the storage device of the slave device. And as a method of determining whether the two carrier frequencies are usable in the master carrier frequency use determining step, by referring to a storage device of the master device and transmitting at least one carrier of the two carrier frequencies. A method for controlling a wireless communication device in which a master device determines that the two carrier frequencies are unusable when a frequency is recorded in the storage device and determines that the carrier frequency is usable when neither of the two carrier frequencies is recorded In particular, the carrier frequency use determination step in which the processors of the master device and the slave device determine whether the two carrier frequencies fm and fs determined in the carrier frequency determination step are both usable, and in the carrier frequency determination step Any one of the two carrier frequencies fm and fs cannot be used. When it is determined that the processor of the master device and the slave device calculates a new carrier frequency to be used for packet transmission using the unusable carrier frequency, and returns to the carrier frequency use determination step, a carrier frequency redetermining step, If a carrier frequency in which a packet transmission / reception error has occurred once is to be used again as a carrier frequency, packet transmission / reception using a new carrier frequency calculated from the carrier frequency will cause a recurrence of the transmission / reception error. As a result, there is an operational effect that the communication efficiency can be improved.
[0029]
According to a tenth aspect of the present invention, in the control method of the wireless communication device according to the ninth aspect, the carrier frequency recorded in the storage device of the master device is deleted from the storage device after a predetermined time has elapsed. This is a control method for a communication device, and has the same operation and effect as the third aspect.
[0030]
According to an eleventh aspect of the present invention, there is provided a communication control program to be executed by a processor in a baseband IC of a wireless communication device, and in particular, two carrier frequencies fm determined in the carrier frequency determining step. , Fs are usable by the processors of the master device and the slave device, and in this carrier frequency determining step, one of the two carrier frequencies fm, fs is not usable. When the determination is made, the processor of the master device and the slave device calculates a new carrier frequency to be used for packet transmission using the unusable carrier frequency, and returns to the carrier frequency use determination step. Transport cycle where a packet transmission / reception error has occurred once. If the number is to be used again as a carrier frequency, it is possible to prevent a retransmission / reception error from occurring by transmitting and receiving packets using a new carrier frequency calculated from the carrier frequency, thereby improving communication efficiency. It has the effect of being able to perform.
[0031]
According to a twelfth aspect of the present invention, there is provided the communication control program according to the eleventh aspect, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. The same operation and effect as those in the item 5 are exerted.
[0032]
According to a thirteenth aspect of the present invention, the carrier frequency fm is determined by referring to the storage device as a method of determining whether the carrier frequencies fm and fs are usable in the carrier frequency use determining step according to the eleventh aspect. , Fs are recorded in the storage device, the processor of the master device determines that the processor is unusable, and if the carrier frequencies fm, fs are not recorded in the storage device, determines that the processor is usable. This is a program and complements the function and effect of claim 11.
[0033]
The invention according to claim 14 of the present invention is the communication control program for a wireless communication device according to claim 13, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. The same operation and effect as those of No. 5 can be obtained.
[0034]
According to a fifteenth aspect of the present invention, there is provided a computer-readable recording medium storing the communication control program according to any one of the fourth to seventh and eleventh to fourteenth aspects, such as a magnetic disk or an optical disk. By recording this program on a portable recording medium, the form and distribution of the effect of improving communication efficiency are promoted, and the program can be easily implemented in various wireless communication devices without being restricted to one place. Thus, there is an operational effect that the above effect can be realized.
[0035]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a control method of a wireless communication device, a control program, and a recording medium on which the control program is recorded according to the present invention will be described with reference to embodiments and drawings.
[0036]
(Embodiment 1)
The first to seventh aspects of the present invention will be described with reference to the first embodiment and FIG.
[0037]
FIG. 1 shows a flowchart of the packet communication according to the first embodiment. Reference numeral 101 denotes a first master packet generation step in which a processor of a master device (hereinafter, simply referred to as a master) sets a value of an ARQN field of a header portion to 1, and generates a packet having data to be transmitted in a payload portion. 102 is a master carrier frequency determination step, based on the frequency hopping pattern, the carrier frequency fm that the master processor intends to use for transmitting packets from the master to the slave, and the carrier frequency fm that is to be used for receiving packets from the slave to the master. Determine the frequency fs. Reference numeral 103 denotes a master carrier frequency use determining step, which determines whether the two carrier frequencies fm and fs determined in 102 are usable. 104 is a master packet transmission step, in which the master processor transmits the packet to the slave at the carrier frequency fm to be used for the packet transmission. Reference numeral 105 denotes a master pause step in which the master processor suspends the transmission / reception operation in the slot. Reference numeral 106 denotes a master reception confirmation step, which determines whether the master processor has received a packet from the slave. Reference numeral 107 denotes a master reception content check step, which determines whether the header and the payload of the packet received by the master processor are correctly received. A master ARQN check step 108 checks the value of the ARQN field in the header of the packet received by the master processor. 109 is a second master packet generation step in which the master processor sets the ARQN field of the header portion to 1 or sets the ARQN field of the header portion to 1, and then transmits data to be transmitted from the master to the slave. Generate a packet to be included in the payload. Reference numeral 110 denotes a first master carrier frequency recording step in which the carrier frequency fm used in the previous master packet transmission step 104 is recorded. Reference numeral 111 denotes a third master packet generation step in which the master processor sets the ARQN field of the header to 1 or the ARQN field of the header to 1 and transmits the data transmitted in the previous master packet transmission step. Is generated in the payload portion. A second master carrier frequency recording step 112 records the carrier frequency fm used in the previous master packet transmission step 104 and the carrier frequency fs used in the immediately preceding slave packet transmission step in the master storage device. Reference numeral 113 denotes a fourth master packet generation step in which the master processor sets the ARQN field of the header to 0 or sets the ARQN field of the header to 0, and transmits the data transmitted in the previous master packet transmission step. Is generated in the payload portion. Reference numeral 121 denotes a slave carrier frequency determining step, based on the frequency hopping pattern, a carrier frequency fm that the slave processor intends to use for receiving packets from the master to the slave, and a carrier frequency that is intended to be used for transmitting packets from the slave to the master. Determine fs. Reference numeral 122 denotes a slave reception confirmation step, which determines whether the slave processor has received a packet from the master. Reference numeral 123 denotes a slave reception content check step, which determines whether the processor of the slave has correctly received the header portion and the payload portion of the packet received from the master. A slave ARQN check step 124 checks the value of the ARQN field in the header of the packet received by the slave processor. Reference numeral 125 denotes a first slave packet generation step in which the processor of the slave sets the ARQN field of the header portion to 1, or sets the ARQN field of the header portion to 1, and then transmits data to be transmitted from the slave to the master. Generate a packet to be included in the payload. Reference numeral 126 denotes a second slave packet generation step in which the processor of the slave sets the ARQN field of the header portion to 1, or sets the ARQN field of the header portion to 1, and transmits the packet in the slave packet transmission step 128. Generate a packet with data in the payload. 127 is a third slave packet generation step in which the processor of the slave sets the ARQN field of the header to 0 or sets the ARQN field of the header to 0 and transmits the data transmitted in the previous slave packet transmission step. Is generated in the payload portion. 128 is a slave packet transmission step in which the slave processor transmits the packet to the master at the carrier frequency fs. 129 is a slave pause step, in which the slave processor does not perform transmission / reception operations in that slot.
[0038]
Next, the procedure of the packet communication according to the first embodiment will be specifically described with reference to FIG.
[0039]
First, the master processor generates a packet to be transmitted in a first master packet generation step 101, and in a master carrier frequency determination step 102, a carrier frequency fm used when transmitting this packet and a carrier frequency used when receiving a packet from a slave. Determine fs. It is determined in a master carrier frequency use determination step 103 whether the two carrier frequencies fm and fs determined in the master carrier frequency determination step 102 are usable. If it can be used, in a master packet transmitting step 104, the packet is transmitted to the slave at the carrier frequency fm. If it is determined that the slot is unusable, the master processor suspends the transmission / reception operation in that slot (105), and returns to the master carrier frequency determination step 102.
[0040]
The slave processor attempts to receive a packet from the master in the slave reception confirmation step 122 with the carrier frequency fm determined in the slave carrier frequency determination step 121. At this time, if the reception fails, the slave processor suspends the transmission / reception operation in that slot (129), and returns to the slave carrier frequency determination step 121. If the packet has been successfully received, it is determined in a slave received content check step 123 whether the header and payload of the packet have been correctly received. If the reception is successful, the value of the ARQN field is checked in the slave ARQN check step 124. If the value is 1, the previous data transmission has been successful, and a packet having data to be transmitted next to the master in the payload portion is generated in the first slave packet generation step 125. If the value is 0, the previous data transmission has failed, and a packet having the same data as that transmitted in the previous packet in the payload portion is generated in the second slave packet generation step 126. If the data cannot be correctly received in the slave reception content check step 123, there is a possibility that the data previously transmitted to the master may not have been transmitted, so a packet having the previously transmitted data in the payload section is generated. Then, with the carrier frequency fs determined in the slave carrier frequency determination step 121, the slave packet is transmitted to the master in the slave packet transmission step 128, and the process returns to the slave carrier frequency determination step 121.
[0041]
The master processor attempts to receive a packet from the slave in the master reception confirmation step 106 using the carrier frequency fs determined in the master carrier frequency determination step 102 and determined to be usable in the master carrier frequency use determination step 103. . If the packet has been successfully received, it is determined in master reception content check step 107 whether the header and payload of the packet have been correctly received. If the signal has been correctly received, the value of the ARQN field is checked in a master ARQN check step 108. If the value is 1, the previous data transmission has been successful, so a packet having the data to be transmitted next to the slave in the payload portion is generated in the second master packet generation step 109, and the process returns to the master carrier frequency determination step 102. . If it is 0, the previous data transmission has failed, so in the first master carrier frequency recording step 110, the carrier frequency fm used in the communication from the master to the slave first is recorded in the storage device of the master. In step 3 of the master packet generation step 111, a packet having the same data as that transmitted in the previous packet in the payload portion is generated, and the process returns to the master carrier frequency determination step 102. If the packet cannot be received in the master reception confirmation step 106, or if the packet cannot be received correctly in the master reception content check step 107, the data previously transmitted to the slave may not be transmitted. In the master carrier frequency recording step 112, the carrier frequency fm previously used in the communication from the master to the slave and the carrier frequency fs used in the communication from the slave to the master are recorded in the storage device of the master, and the data transmitted earlier is recorded. A packet included in the payload portion is generated, and the process returns to the master carrier frequency determination step 102.
[0042]
The above procedure is repeated until there is no more data to be transmitted.
[0043]
Next, the communication efficiency when the packet communication was performed according to the above procedure was examined. The evaluation method is described below.
[0044]
Using the 2.451 to 2.460 GHz band as the source of the jamming radio wave, performing data transmission by DM1 packet in the environment where the jamming radio wave occurs, and measuring the data transmission speed and the current consumption at that time, the data transmission speed was measured. Was 95.5 kbps and the current consumption was 140 mA. Thus, the communication efficiency is 0.682 kbps / mA.
[0045]
On the other hand, as a comparative example, when packet communication was performed by the conventional method and the data transmission speed and the current consumption were measured similarly, the data transmission speed was 95.0 kbps and the current consumption was 150 mA. Thus, the communication efficiency was 0.633 kbps / mA.
[0046]
That is, according to the first embodiment, the communication efficiency could be improved by 7.7% as compared with the comparative example.
[0047]
(Embodiment 2)
The invention according to claims 8 to 15 will be described with reference to the second embodiment and FIG.
[0048]
FIG. 2 shows a flowchart of the packet communication according to the second embodiment. Reference numeral 201 denotes a first master packet generation step in which the master processor sets the ARQN field of the header to 1, and generates a packet having data to be transmitted in the payload. 202 is a master carrier frequency determining step, based on the frequency hopping pattern, a carrier frequency fm that the master processor intends to use for transmitting packets from the master to the slave, and a carrier frequency that will be used for receiving packets from the slave to the master. Determine fs. Reference numeral 203 denotes a master carrier frequency use determination step, which determines whether the two carrier frequencies fm and fs determined in 202 are usable. Reference numeral 204 denotes a master packet transmission step, in which the master processor transmits the packet to the slave at the carrier frequency fm. 205 is a master carrier frequency re-determining step, in which the master processor determines a carrier frequency calculated from the carrier frequency fm determined to be unusable as a new carrier frequency fm. Reference numeral 206 denotes a master reception confirmation step, which determines whether the master processor has received a packet from the slave. Reference numeral 207 denotes a master reception content check step, which determines whether or not the header and the payload of the packet received by the master processor have been correctly received. A master ARQN check step 208 checks the value of the ARQN field in the header of the packet received by the master processor. 209 is a second master packet generation step, in which the master processor sets the ARQN field of the header portion to 1 or sets the ARQN field of the header portion to 1, and then transmits data to be transmitted from the master to the slave. Generate a packet to be included in the payload. Reference numeral 210 denotes a first master carrier frequency recording step, which records the carrier frequency fm used in the previous master packet transmission step. 211 is a third master packet generation step in which the master processor sets the ARQN field of the header to 1 or the ARQN field of the header to 1 and transmits the data transmitted in the previous master packet transmission step. Is generated in the payload portion. A second master carrier frequency recording step 212 records the carrier frequency fm used in the previous master packet transmission step 204 and the carrier frequency fs used in the immediately preceding slave packet transmission step 231 in a storage device. A fourth master packet generation step 213 is a packet in which the master processor sets the ARQN field of the header to 0, or sets the ARQN field of the header to 0 and transmits the data transmitted in the previous master packet transmission step. Is generated in the payload portion. 221 is a slave carrier frequency determination step, based on the frequency hopping pattern, a carrier frequency fm that the slave processor intends to use for receiving packets from the master to the slave, and a carrier frequency that will be used for transmitting packets from the slave to the master. Determine fs. Reference numeral 222 denotes a slave carrier frequency use determination step, which determines whether the two carrier frequencies fm and fs determined in 221 are usable. Reference numeral 223 denotes a slave carrier frequency re-determining step, in which the slave processor determines a carrier frequency calculated from the carrier frequencies fm and fs determined to be unusable as new carrier frequencies fm and fs. Reference numeral 224 denotes a slave reception confirmation step, which determines whether the slave processor has received a packet from the master. Reference numeral 225 denotes a slave reception content check step, which determines whether the processor of the slave has correctly received the header portion and the payload portion of the packet received from the master. A slave ARQN check step 226 checks the value of the ARQN field in the header of the packet received by the slave processor. 227 is a first slave packet generation step, in which the processor of the slave sets the ARQN field of the header portion to 1, or sets the ARQN field of the header portion to 1, and then transmits data to be transmitted from the slave to the master. Generate a packet to be included in the payload. Reference numeral 228 denotes a second slave packet generation step in which the processor of the slave sets the ARQN field of the header portion to 1, or sets the ARQN field of the header portion to 1, and transmits the data transmitted in the previous slave packet transmission step. Is generated in the payload portion. A slave carrier frequency recording step 229 records carrier frequency data in the header of a packet received from the master when the header contains packet data. 230 is a third slave packet generation step in which the processor of the slave sets the ARQN field of the header to 0, or sets the ARQN field of the header to 0, and transmits the data transmitted in the previous slave packet transmission step. Is generated in the payload portion. Reference numeral 231 denotes a slave packet transmission step in which the processor of the slave transmits the packet to the master at the carrier frequency fs. 232 is a slave pause step, in which the slave processor does not perform transmission / reception operations in that slot.
[0049]
Next, the procedure of the packet communication according to the second embodiment will be specifically described with reference to FIG.
[0050]
First, the master processor generates a packet to be transmitted in a first master packet generation step 201, and in a master carrier frequency determination step 202, a carrier frequency fm used when transmitting the packet and a carrier frequency fs used when receiving a packet from a slave. To determine. In the master carrier frequency use determination step 203, it is determined whether the two carrier frequencies fm and fs determined in the master carrier frequency determination step 202 are usable. If it can be used, in a master packet transmission step 204, the packet is transmitted to the slave at the carrier frequency fm. If it is determined that the carrier frequency is unusable, the master processor determines a new carrier frequency by adding 4 MHz to the carrier frequency determined to be unusable, and returns to the master carrier frequency use determination step 203.
[0051]
In the slave carrier frequency determination step 221, the slave processor determines the carrier frequency fm used when receiving from the master and the carrier frequency fs used when transmitting to the master. In the slave carrier frequency use determination step 222, it is determined whether the two carrier frequencies fm and fs determined in the slave carrier frequency determination step 221 are usable. If it is available, an attempt is made to receive a packet from the master in a slave acknowledgment step 224. If it is determined that the carrier frequency cannot be used, the slave processor determines a new carrier frequency by adding 4 MHz to the carrier frequency determined to be unusable, and returns to the slave carrier frequency use determination step 222.
[0052]
The reason why 4 MHz is added here is to remove the new carrier frequencies fm and fs from the frequency band of the jamming radio wave. Since the smaller the value to be added, the harder it is to deviate from the frequency band, the slave carrier frequency use determining step 222 and the slave carrier frequency re-determining step 223 are repeatedly performed. As a result, new carrier frequencies fm and fs are obtained. It takes time to be determined. Therefore, when the frequency band of the jamming radio wave is known, it is desirable to set the addition value in consideration of the frequency band.
[0053]
If the slave processor has successfully received the packet in the slave reception confirmation step 224, it determines in the slave reception content check step 225 whether the header and payload of the packet have been correctly received. If the data has been correctly received, the value of the ARQN field is checked in a slave ARQN check step 226. If the value is 1, the previous data transmission has been successful, so a first slave packet generation step 227 generates a packet having data to be transmitted next to the master in the payload portion. If the value is 0, the previous data transmission has failed, and a packet having the same data as that transmitted in the previous packet in the payload portion is generated in the second slave packet generation step 228. After the first slave packet generation step 227 and the second slave packet generation step 228, if there is carrier frequency data in the header part of the packet previously received from the master, the carrier frequency data is recorded in the storage device, and In the packet transmission step 231, the packet is transmitted to the master, and the process returns to the slave carrier frequency determination step 221. If the data cannot be correctly received in the slave reception content check step 225, there is a possibility that the data previously transmitted to the master may not be transmitted, so a packet having the previously transmitted data in the payload portion is generated. Then, the slave packet is transmitted to the master in the slave packet transmitting step 231 using the carrier frequency determined in the slave carrier frequency use determining step 222, and the process returns to the slave carrier frequency determining step 221.
[0054]
The master processor attempts to receive a packet from the slave in the master reception confirmation step 206 using the carrier frequency determined in the master carrier frequency determination step 202 and usable in the master carrier frequency use determination step 203. If the packet has been successfully received, it is determined in a master reception content check step 207 whether the header and payload of the packet have been correctly received. If the reception is successful, the value of the ARQN field is checked in a master ARQN check step 208. If the value is 1, the previous data transmission has been successful, so that a packet having data to be transmitted next to the master in the payload portion is generated in the second master packet generation step 209, and the process returns to the master carrier frequency determination step 202. . If it is 0, since the previous data transmission has failed, the carrier frequency used in the communication from the master to the slave is first recorded in the storage device in the first master carrier frequency recording step 210, and the third master carrier frequency is recorded. In the packet generation step 211, a packet having the same data as that transmitted in the previous packet in the payload portion is generated, and the process returns to the master carrier frequency determination step 202. If the packet could not be received in the master reception confirmation step 206, or if the packet was not correctly received in the master reception content check step 207, the data previously transmitted to the slave may not have been transmitted. In the master carrier frequency recording step 212, the carrier frequency previously used in the communication from the master to the slave and the carrier frequency used in the communication from the slave to the master are recorded in the storage device, and the previously transmitted data is stored in the payload section. Generate a packet and return to the master carrier frequency determination step 202.
[0055]
Next, the communication efficiency when the packet communication was performed according to the above procedure was examined. The evaluation method is the same as in the first embodiment.
[0056]
According to the second embodiment, the data transmission speed was 105.3 kbps, and the current consumption was 148 mA. Thus, the communication efficiency was 0.711 kbps / mA.
[0057]
That is, according to the second embodiment, the communication efficiency can be improved by 12.3% compared with the comparative example.
[0058]
As described above, the control method and the program of the wireless communication device described in the embodiment are recorded on a computer-readable recording medium, so that the form and distribution of the effect of improving the communication efficiency are promoted and restricted to one place. The present invention can be easily implemented in various wireless communication devices without using any of the above, and the above effects can be realized.
[0059]
As described above, the present invention is effective in communication between devices equipped with Bluetooth, and examples of such devices include personal computers, portable terminals, mobile communication, stereo devices, and headphones.
[0060]
【The invention's effect】
As described above, the present invention particularly provides a carrier frequency use determination step in which the processor of the master device determines whether the two carrier frequencies determined in the carrier frequency determination step can be used together. If it is determined that any one of them is unusable, the processor of the master device is provided with a master pause step for returning to the carrier frequency determining step without transmitting a packet and receiving a packet in a slot immediately thereafter. In addition, when the carrier frequency is unusable, packets are not transmitted / received, so that the current required for the transmission / reception can be saved, and as a result, there is an effect that the communication efficiency can be improved.
[Brief description of the drawings]
FIG. 1 is a flowchart of packet communication in Embodiment 1 of the present invention.
FIG. 2 is a flowchart of packet communication in Embodiment 2 of the present invention.
FIG. 3 is a flowchart of conventional packet communication.

Claims (15)

マスター機器と一又は複数のスレーブ機器との間で行われる無線通信機器の制御方法であって、
前記マスター機器が前記一又は複数のスレーブ機器へパケットを送信するための搬送周波数を、また前記マスター機器が前記一又は複数のスレーブ機器からパケットを受信するための搬送周波数をそれぞれ決定する搬送周波数決定ステップと、
この搬送周波数決定ステップにおいて決定した二つの搬送周波数が使用可能かどうかを前記マスター機器が判断する搬送周波数使用判断ステップと、
この搬送周波数使用判断ステップで前記二つの搬送周波数の少なくとも一つが使用不可と判断された場合これらの搬送周波数ではパケットの送信および受信をせず前記搬送周波数決定ステップに戻るマスター休止ステップと、を少なくとも有する、無線通信機器の制御方法。
A method for controlling a wireless communication device performed between a master device and one or more slave devices,
A carrier frequency for the master device to determine a carrier frequency for transmitting packets to the one or more slave devices, and a carrier frequency for the master device to determine a carrier frequency for receiving packets from the one or more slave devices. Steps and
A carrier frequency use determining step in which the master device determines whether the two carrier frequencies determined in the carrier frequency determination step are available,
When at least one of the two carrier frequencies is determined to be unusable in the carrier frequency use determining step, at least a master pause step of returning to the carrier frequency determining step without transmitting and receiving packets at these carrier frequencies, A method for controlling a wireless communication device.
請求項1に記載の、無線通信機器の制御方法において、前記マスター機器が前記一又は複数のスレーブ機器へのパケットの送信を失敗した場合その送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第1のマスター搬送周波数記録ステップと、
前記マスター機器が前記一又は複数のスレーブ機器からのパケットの受信を失敗した場合又はパケットのデータを正しく受信できなかった場合前記マスター機器がこの受信およびこの受信の直前に前記マスター機器が送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第2のマスター搬送周波数記録ステップと、
を有し、前記搬送周波数使用判断ステップにおいて前記二つの搬送周波数が使用可能かどうかを判断する方法として前記記憶装置を参照して前記二つの搬送周波数のいずれかが前記記憶装置に記録されている場合はマスター機器が使用不可と判断し、前記二つの搬送周波数のいずれも記録されていない場合は使用可能と判断する無線通信機器の制御方法。
2. The control method of a wireless communication device according to claim 1, wherein when the master device fails to transmit a packet to the one or more slave devices, the carrier frequency used in the transmission is stored in the storage device of the master device. A first master carrier frequency recording step for recording;
If the master device fails to receive a packet from the one or more slave devices or fails to correctly receive packet data, the master device performs the reception and the transmission immediately before the reception. A second master carrier frequency recording step of recording the carrier frequency in the storage device of the master device;
In the carrier frequency use determining step, one of the two carrier frequencies is recorded in the storage device with reference to the storage device as a method of determining whether the two carrier frequencies are usable In this case, the control method of the wireless communication device determines that the master device is unusable, and determines that the master device is usable if neither of the two carrier frequencies is recorded.
請求項2に記載の、無線通信機器の制御方法において記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される無線通信機器の制御方法。3. The method of controlling a wireless communication device according to claim 2, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. 無線通信機器のベースバンドIC内のプロセッサに実行させるための通信制御のプログラムであって、
マスター機器のプロセッサが、ヘッダ部のARQNフィールドには1を、またペイロード部には送信するデータをそれぞれ有するパケットを生成する第1のマスターパケット生成ステップと、
周波数ホッピングパターンに基づき、マスター機器のプロセッサがマスター機器からスレーブ機器へのパケットの送信に使用する搬送周波数fmおよびこのパケット送信の直後のスロットでスレーブ機器からマスター機器へのパケットの受信に使用する搬送周波数fsをそれぞれ決定するマスター搬送周波数決定ステップと、スレーブ機器のプロセッサがマスター機器からスレーブ機器へのパケットの受信に使用する前記搬送周波数fmおよびこのパケット受信の直後のスロットでスレーブ機器からマスター機器へのパケットの送信に使用する前記搬送周波数fsをそれぞれ決定するスレーブ搬送周波数決定ステップとからなる搬送周波数決定ステップと、
マスター機器のプロセッサが、前記搬送周波数決定ステップにおいて決定された二つの搬送周波数fm,fsが共に使用可能かどうかを判断する搬送周波数使用判断ステップと、
この搬送周波数使用判断ステップにおいて、マスター機器のプロセッサが前記二つの搬送周波数fm,fsが共に使用可能であると判断した場合前記搬送周波数fmでパケットをスレーブ機器へ送信するマスターパケット送信ステップと、
前記搬送周波数使用判断ステップにおいてマスター機器のプロセッサが前記二つの搬送周波数fm,fsの少なくとも一つが使用不可であると判断した場合マスター機器のプロセッサはパケットの送信およびその直後のスロットでのパケットの受信をせず、前記搬送周波数決定ステップに戻るマスター休止ステップと、
スレーブ機器のプロセッサが前記搬送周波数fmでマスター機器からのパケットを受信できたかどうかを判断するスレーブ受信確認ステップと、
このスレーブ受信確認ステップにおいてパケットを受信した場合スレーブ機器のプロセッサがこのパケットのヘッダ部およびペイロード部を正しく受信できたかどうかをチェックするスレーブ受信内容チェックステップと、
このスレーブ受信内容チェックステップにおいてパケットのヘッダ部およびペイロード部を正しく受信した場合スレーブ機器のプロセッサがこのパケットのヘッダ部のARQNフィールドの値をチェックするスレーブARQNチェックステップと、
このスレーブARQNチェックステップにおいてARQNフィールドの値が1の場合スレーブ機器のプロセッサがヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部のARQNフィールドに1を有しペイロード部にスレーブ機器からマスター機器へ送信する新たなデータを有するパケットを生成する第1のスレーブパケット生成ステップと、
前記スレーブARQNチェックステップにおいてARQNフィールドの値が0の場合スレーブ機器のプロセッサがヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部のARQNフィールドに1を有しペイロード部に、先のスレーブパケット送信ステップで送信したパケットのペイロード部に有するデータと同一のデータを有するパケットを生成する第2のスレーブパケット生成ステップと、
前記スレーブ受信内容チェックステップにおいて前記パケットのヘッダ部およびペイロード部を正しく受信できなかった場合スレーブ機器のプロセッサがヘッダ部のARQNフィールドに0を有するパケット、またはヘッダ部のARQNフィールドに0を有しペイロード部に、先のスレーブパケット送信ステップで送信したパケットのペイロード部に有するデータと同一のデータを有するパケットを生成する第3のスレーブパケット生成ステップと、
前記スレーブ受信確認ステップにおいて前記パケットを受信しなかった場合スレーブ機器のプロセッサはその直後のスロットではパケット送信せず、前記搬送周波数決定ステップに戻るスレーブ休止ステップと、
スレーブ機器のプロセッサが前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを前記搬送周波数fsでマスター機器へ送信し、その後前記搬送周波数決定ステップに戻るスレーブパケット送信ステップと、
マスター機器のプロセッサが前記搬送周波数fsで前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを受信したかどうかを判断するマスター受信確認ステップと、
このマスター受信確認ステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを受信した場合マスター機器のプロセッサがこのパケットのヘッダ部およびペイロード部を正しく受信できたかどうかをチェックするマスター受信内容チェックステップと、
このマスター受信内容チェックステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットのヘッダ部およびペイロード部を正しく受信できた場合マスター機器のプロセッサがこのパケットのヘッダ部のARQNフィールドの値をチェックするマスターARQNチェックステップと、
このマスターARQNチェックステップにおいてARQNフィールドの値が1の場合マスター機器のプロセッサがヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部のARQNフィールドに1を有しペイロード部にマスター機器からスレーブ機器へ送信する新たなデータを有するパケットを生成し、その後前記搬送周波数決定ステップに戻る第2のマスターパケット生成ステップと、
前記マスターARQNチェックステップにおいてARQNフィールドの値が0の場合マスター機器のプロセッサが前記マスターパケット送信ステップで使用した搬送周波数fmをマスター機器の記憶装置に記録する第1のマスター搬送周波数記録ステップと、
この第1のマスター搬送周波数記録ステップの後マスター機器のプロセッサがヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部のARQNフィールドに1を有しペイロード部に、前記マスターパケット送信ステップで送信したパケットのペイロード部に有するデータと同一のデータを有するパケットを生成し、その後前記搬送周波数決定ステップに戻る第3のマスターパケット生成ステップと、
前記マスター受信確認ステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを受信しなかった場合、または前記マスター受信内容チェックステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットのヘッダ部およびペイロード部を正しく受信できなかった場合マスター機器のプロセッサが前記マスターパケット送信ステップで使用した搬送周波数fmと前記スレーブパケット送信ステップで使用した搬送周波数fsをマスター機器の記憶装置に記録する第2のマスター搬送周波数記録ステップと、
この第2のマスター搬送周波数記録ステップの後マスター機器のプロセッサがヘッダ部のARQNフィールドに0を有するパケット、またはヘッダ部のARQNフィールドに0を有しペイロード部に、前記マスターパケット送信ステップで送信したパケットのペイロード部に有するデータと同一のデータを有するパケットを生成し、その後前記搬送周波数決定ステップに戻る第4のマスターパケット生成ステップと、を有する通信制御プログラム。
A communication control program for causing a processor in a baseband IC of a wireless communication device to execute,
A first master packet generation step in which a processor of the master device generates a packet having 1 in an ARQN field of a header portion and data having data to be transmitted in a payload portion;
Based on the frequency hopping pattern, the carrier frequency fm used by the processor of the master device to transmit a packet from the master device to the slave device and the carrier used to receive the packet from the slave device to the master device in the slot immediately after the packet transmission. A master carrier frequency determining step of determining a frequency fs, and the carrier frequency fm used by the processor of the slave device for receiving a packet from the master device to the slave device and the slot immediately after the reception of the packet from the slave device to the master device. A carrier frequency determining step of determining the carrier frequency fs to be used for transmitting the packet of each of the following:
A carrier frequency use determining step in which the processor of the master device determines whether the two carrier frequencies fm and fs determined in the carrier frequency determining step are both usable;
In the carrier frequency use determining step, a master packet transmitting step of transmitting a packet to the slave device at the carrier frequency fm when the processor of the master device determines that the two carrier frequencies fm and fs are both usable;
When the processor of the master device determines that at least one of the two carrier frequencies fm and fs is unusable in the carrier frequency use determining step, the processor of the master device transmits a packet and receives a packet in a slot immediately thereafter. Without, a master pause step to return to the carrier frequency determination step,
A slave reception confirmation step in which a processor of the slave device determines whether a packet from the master device has been received at the carrier frequency fm,
When a packet is received in the slave reception confirmation step, a slave reception content check step of checking whether the processor of the slave device has correctly received the header part and the payload part of the packet,
A slave ARQN checking step in which the processor of the slave device checks the value of the ARQN field of the header portion of the packet when the header and the payload of the packet are correctly received in the slave reception content checking step;
When the value of the ARQN field is 1 in this slave ARQN check step, the processor of the slave device has a packet having 1 in the ARQN field of the header portion, or has a 1 in the ARQN field of the header portion and has the payload portion from the slave device to the master device. A first slave packet generating step of generating a packet having new data to be transmitted;
If the value of the ARQN field is 0 in the slave ARQN check step, the processor of the slave device transmits a packet having a 1 in the ARQN field of the header or a packet having a 1 in the ARQN field of the header to the payload. A second slave packet generation step of generating a packet having the same data as the data included in the payload portion of the packet transmitted in the step,
When the header and payload of the packet are not correctly received in the slave reception content checking step, the packet of which the processor of the slave device has 0 in the ARQN field of the header or the payload which has 0 in the ARQN field of the header. A third slave packet generating step of generating a packet having the same data as the data included in the payload of the packet transmitted in the previous slave packet transmitting step;
If the packet is not received in the slave reception confirmation step, the processor of the slave device does not transmit the packet in the slot immediately thereafter, and the slave pause step returns to the carrier frequency determination step.
A slave packet transmitting step in which the processor of the slave device transmits any one of the packets generated in the first to third slave packet generating steps to the master device at the carrier frequency fs, and thereafter returns to the carrier frequency determining step When,
A master reception confirmation step of determining whether a processor of a master device has received any one of the packets generated in the first to third slave packet generation steps at the carrier frequency fs;
In the master reception confirmation step, when any one of the packets generated in the first to third slave packet generation steps is received, whether the processor of the master device has correctly received the header part and the payload part of the packet. A master reception content check step for checking
If the header and payload of any one of the packets generated in the first to third slave packet generation steps are correctly received in the master reception content checking step, the processor of the master device causes the header of this packet to be received. A master ARQN checking step for checking the value of the ARQN field of
When the value of the ARQN field is 1 in the master ARQN check step, the processor of the master device transmits a packet having 1 in the ARQN field of the header portion or a packet having 1 in the ARQN field of the header portion and from the master device to the slave device in the payload portion. A second master packet generation step of generating a packet having new data to be transmitted, and then returning to the carrier frequency determination step;
A first master carrier frequency recording step in which the processor of the master device records the carrier frequency fm used in the master packet transmission step in a storage device of the master device when the value of the ARQN field is 0 in the master ARQN check step;
After the first master carrier frequency recording step, the processor of the master device transmits the packet having 1 in the ARQN field of the header section or the packet having 1 in the ARQN field of the header section to the payload section in the master packet transmitting step. A third master packet generation step of generating a packet having the same data as the data included in the payload portion of the packet, and thereafter returning to the carrier frequency determination step;
If any one of the packets generated in the first to third slave packet generation steps is not received in the master reception confirmation step, or the first to third slave packets are not detected in the master reception content check step. When the header part and the payload part of any one of the packets generated in the packet generation step cannot be received correctly, the carrier frequency fm used by the processor of the master device in the master packet transmission step and the carrier frequency fm used in the slave packet transmission step A second master carrier frequency recording step of recording the obtained carrier frequency fs in a storage device of the master device;
After the second master carrier frequency recording step, the processor of the master device transmits the packet having 0 in the ARQN field of the header section or the packet having 0 in the ARQN field of the header section to the payload section in the master packet transmitting step. A fourth master packet generating step of generating a packet having the same data as the data included in the payload portion of the packet, and thereafter returning to the carrier frequency determining step.
請求項4に記載の通信制御プログラムにおいて前記記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される通信制御プログラム。5. The communication control program according to claim 4, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. 請求項4に記載の搬送周波数使用判断ステップにおいて搬送周波数fm,fsが使用可能かどうかを判断する方法として前記記憶装置を参照して前記搬送周波数fm,fsが前記記憶装置に記録されている場合マスター機器のプロセッサが使用不可と判断し、前記搬送周波数fm,fsが前記記憶装置に記録されていない場合使用可能と判断する無線通信機器の通信制御プログラム。5. The method according to claim 4, wherein the carrier frequencies fm and fs are recorded in the storage device by referring to the storage device as a method of determining whether the carrier frequencies fm and fs are usable. A communication control program for a wireless communication device that determines that the processor of the master device is unusable and that the carrier frequency is usable when the carrier frequencies fm and fs are not recorded in the storage device. 記憶装置に記録された搬送周波数は一定時間経過後に前記記憶装置から消去される請求項6に記載の無線通信機器の通信制御プログラム。The communication control program for a wireless communication device according to claim 6, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. マスター機器と一又は複数のスレーブ機器との間で行われる無線通信機器の制御方法であって、
前記マスター機器から前記一又は複数のスレーブ機器へパケットを送信するための搬送周波数および前記一又は複数のスレーブ機器から前記マスター機器へパケットを送信するための搬送周波数を前記マスター機器が決定するマスター搬送周波数決定ステップと、
このマスター搬送周波数決定ステップにおいて決定した二つの搬送周波数が使用可能かどうかを前記マスター機器が判断するマスター搬送周波数使用判断ステップと、
このマスター搬送周波数使用判断ステップにおいて前記二つの搬送周波数の少なくとも一つの搬送周波数を使用不可と前記マスター機器が判断した場合二つの新たな搬送周波数を決定し前記マスター搬送周波数使用判断ステップに戻るマスター搬送周波数再決定ステップと、
前記マスター機器から前記一又は複数のスレーブ機器へパケットを送信するための搬送周波数および前記一又は複数のスレーブ機器から前記マスター機器へパケットを送信するための搬送周波数を前記スレーブ機器が決定するスレーブ搬送周波数決定ステップと、
このスレーブ搬送周波数決定ステップにおいて決定した二つの搬送周波数が使用可能かどうかを前記スレーブ機器が判断するスレーブ搬送周波数使用判断ステップと、
このスレーブ搬送周波数使用判断ステップにおいて前記二つの搬送周波数の少なくとも一つの搬送周波数を使用不可と前記スレーブ機器が判断した場合二つの新たな搬送周波数を決定し前記スレーブ搬送周波数使用判断ステップに戻るスレーブ搬送周波数再決定ステップと、を少なくとも有する無線通信機器の制御方法。
A method for controlling a wireless communication device performed between a master device and one or more slave devices,
A master carrier for the master device to determine a carrier frequency for transmitting packets from the master device to the one or more slave devices and a carrier frequency for transmitting packets from the one or more slave devices to the master device A frequency determination step;
A master carrier frequency use determining step in which the master device determines whether the two carrier frequencies determined in the master carrier frequency determination step are available,
When the master device determines that at least one of the two carrier frequencies cannot be used in the master carrier frequency use determining step, the master carrier determines two new carrier frequencies and returns to the master carrier frequency use determining step. A frequency re-determining step;
A slave carrier in which the slave device determines a carrier frequency for transmitting a packet from the master device to the one or more slave devices and a carrier frequency for transmitting a packet from the one or more slave devices to the master device. A frequency determination step;
Slave carrier frequency use determination step in which the slave device determines whether the two carrier frequencies determined in the slave carrier frequency determination step are available,
When the slave device determines that at least one of the two carrier frequencies cannot be used in the slave carrier frequency use determination step, the slave carrier returns to the slave carrier frequency use determination step after determining two new carrier frequencies. And a frequency re-determining step.
請求項8に記載の無線通信機器の制御方法において、前記マスター機器が前記一又は複数のスレーブ機器へのパケットの送信を失敗した場合その送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第1のマスター搬送周波数記録ステップと、
前記マスター機器が前記一又は複数のスレーブ機器からのパケットの受信を失敗した場合又はパケットのデータを正しく受信できなかった場合前記マスター機器がこの受信およびその直前の送信で用いた搬送周波数を前記マスター機器の記憶装置に記録する第2のマスター機器搬送周波数記録ステップと、
マスター機器から受信したパケットのヘッダ部に搬送周波数のデータがある場合スレーブ機器の記憶装置にこれを記録するスレーブ搬送周波数記録ステップと、を有し、前記マスター搬送周波数使用判断ステップにおいて前記二つの搬送周波数が使用可能かどうかを判断する方法として前記マスター機器の記憶装置を参照して前記二つの搬送周波数の少なくとも一つの搬送周波数が前記記憶装置に記録されている場合マスター機器が前記二つの搬送周波数は使用不可と判断し、前記二つの搬送周波数のいずれも記録されていない場合使用可能と判断する無線通信機器の制御方法。
9. The control method for a wireless communication device according to claim 8, wherein when the master device fails to transmit a packet to the one or more slave devices, a carrier frequency used in the transmission is recorded in a storage device of the master device. A first master carrier frequency recording step of
If the master device fails to receive a packet from the one or more slave devices or fails to correctly receive packet data, the master device sets the carrier frequency used in this reception and the immediately preceding transmission to the master device. A second master device carrier frequency recording step for recording in a storage device of the device;
When there is carrier frequency data in the header portion of the packet received from the master device, a slave carrier frequency recording step of recording the carrier frequency data in the storage device of the slave device; and When at least one carrier frequency of the two carrier frequencies is recorded in the storage device with reference to the storage device of the master device as a method of determining whether a frequency is available, the master device is configured to use the two carrier frequencies. Is a method of controlling a wireless communication device, which determines that it is unusable and determines that it can be used when neither of the two carrier frequencies is recorded.
請求項9に記載の無線通信機器の制御方法において前記マスター機器の記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される無線通信機器の制御方法。10. The method of controlling a wireless communication device according to claim 9, wherein the carrier frequency recorded in the storage device of the master device is deleted from the storage device after a lapse of a predetermined time. 無線通信機器のベースバンドIC内のプロセッサに実行させるための通信制御のプログラムであって、
マスター機器のプロセッサが、ヘッダ部のARQNフィールドには1を、またペイロード部には送信するデータをそれぞれ有するパケットを生成する第1のマスターパケット生成ステップと、
周波数ホッピングパターンに基づき、マスター機器のプロセッサがマスター機器からスレーブ機器へのパケットの送信に使用する搬送周波数fmおよびこのパケット送信の直後のスロットでスレーブ機器からマスター機器へのパケットの受信に使用する搬送周波数fsをそれぞれ決定するとともに、スレーブ機器のプロセッサがマスター機器からスレーブ機器へのパケットの受信に使用する前記搬送周波数fmおよびこのパケット受信の直後のスロットでスレーブ機器からマスター機器へのパケットの送信に使用する前記搬送周波数fsをそれぞれ決定する搬送周波数決定ステップと、
マスター機器およびスレーブ機器のプロセッサが、前記搬送周波数決定ステップにおいて決定された二つの搬送周波数fm,fsが共に使用可能かどうかを判断する搬送周波数使用判断ステップと、
この搬送周波数使用判断ステップにおいて、マスター機器のプロセッサが前記二つの搬送周波数fm,fsが共に使用可能であると判断した場合前記搬送周波数fmでパケットをスレーブ機器へ送信するマスターパケット送信ステップと、
前記搬送周波数決定ステップにおいて前記二つの搬送周波数fm,fsの少なくとも一つが使用不可であると判断した場合マスター機器およびスレーブ機器のプロセッサがこの使用不可の搬送周波数を用いてパケット送信に使用しようとする新たな搬送周波数を算出し前記搬送周波数使用判断ステップに戻る搬送周波数再決定ステップと、スレーブ機器のプロセッサが前記搬送周波数fmでマスター機器からのパケットを受信できたかどうかを判断するスレーブ受信確認ステップと、
このスレーブ受信確認ステップにおいてパケットを受信できた場合スレーブ機器のプロセッサがこのパケットのヘッダ部およびペイロード部を正しく受信できたかどうかをチェックするスレーブ受信内容チェックステップと、
このスレーブ受信内容チェックステップにおいてパケットのヘッダ部およびペイロード部を正しく受信できた場合スレーブ機器のプロセッサがこのパケットのヘッダ部のARQNフィールドの値をチェックするスレーブARQNチェックステップと、
このスレーブARQNチェックステップにおいてARQNフィールドの値が1の場合スレーブ機器のプロセッサがヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部のARQNフィールドに1を有しペイロード部に、次にスレーブ機器からマスター機器へ送信するデータを有するパケットを生成する第1のスレーブパケット生成ステップと、
前記スレーブARQNチェックステップにおいてARQNフィールドの値が0の場合スレーブ機器のプロセッサがヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部のARQNフィールドに1を有しペイロード部に、先のスレーブパケット送信ステップで送信したパケットのペイロード部に有するデータと同一のデータを有するパケットを生成する第2のスレーブパケット生成ステップと、
前記第1もしくは第2のスレーブパケット生成ステップの後マスター機器から受信したパケットのヘッダ部に前記搬送周波数fmのデータが含まれている場合スレーブ機器のプロセッサがこの搬送周波数fmのデータをスレーブ機器の記憶装置に記録するスレーブ搬送周波数記録ステップと、
前記スレーブ受信内容チェックステップにおいてパケットのヘッダ部およびペイロード部を正しく受信できなかった場合スレーブ機器のプロセッサがヘッダ部のARQNフィールドに0を有するパケット、またはヘッダ部のARQNフィールドに0を有しペイロード部に、先のスレーブパケット送信ステップで送信したデータを有するパケットを生成する第3のスレーブパケット生成ステップと、
スレーブ機器のプロセッサが前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを前記搬送周波数fsでマスター機器へ送信し、その後前記搬送周波数決定ステップに戻るスレーブパケット送信ステップと、
マスター機器のプロセッサが前記搬送周波数fsで前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを受信できたかどうかを判断するマスター受信確認ステップと、
このマスター受信確認ステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを受信できた場合マスター機器のプロセッサがこのパケットのヘッダ部およびペイロード部を正しく受信できたかどうかをチェックするマスター受信内容チェックステップと、このマスター受信内容チェックステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットのヘッダ部およびペイロード部を正しく受信できた場合マスター機器のプロセッサがこのパケットのヘッダ部のARQNフィールドの値をチェックするマスターARQNチェックステップと、
このマスターARQNチェックステップにおいてARQNフィールドの値が1の場合マスター機器のプロセッサがヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部のARQNフィールドに1を有しペイロード部にマスター機器からスレーブ機器へ送信する新たなデータを有するパケットを生成するとともに前記第1の記憶装置に記録されている搬送周波数fmのデータを第2の記憶装置に移動させ、その後前記搬送周波数決定ステップに戻る第2のマスターパケット生成ステップと、
前記マスターARQNチェックステップにおいてARQNフィールドの値が0の場合マスター機器のプロセッサが前記マスターパケット送信ステップで使用した搬送周波数fmをマスター機器の前記第1の記憶装置に記録する第1のマスター搬送周波数記録ステップと、
この第1のマスター搬送周波数記録ステップの後マスター機器のプロセッサが、ヘッダ部に前記第1の記憶装置に記録された搬送周波数fmのデータを有しこのヘッダ部のARQNフィールドに1を有するパケット、またはヘッダ部に前記第1の記憶装置に記録された搬送周波数fmのデータを有しヘッダ部のARQNフィールドには1を有しペイロード部に前記マスターパケット送信ステップで送信したデータを有するパケットを生成し、その後前記搬送周波数決定ステップに戻る第3のマスターパケット生成ステップと、
前記マスター受信確認ステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットを受信しなかった場合、または前記マスター受信内容チェックステップにおいて前記第1〜第3のスレーブパケット生成ステップにおいて生成したパケットのいずれか一つのパケットのヘッダ部およびペイロード部を正しく受信できなかった場合マスター機器のプロセッサが前記マスターパケット送信ステップで使用した搬送周波数fmと前記スレーブパケット送信ステップで使用した搬送周波数fsをマスター機器の前記第1の記憶装置に記録する第2のマスター搬送周波数記録ステップと、
この第2のマスター搬送周波数記録ステップの後マスター機器のプロセッサが、ヘッダ部に前記第1の記憶装置に記録された搬送周波数fmのデータを有しヘッダ部のARQNフィールドに0を有するパケット、またはヘッダ部に前記第1の記憶装置に記録された搬送周波数fmのデータを有しこのヘッダ部のARQNフィールドに0を有しペイロード部に前記マスターパケット送信ステップで送信したデータを有するパケットを生成し、その後前記搬送周波数決定ステップに戻る第4のマスターパケット生成ステップと、を有する無線通信機器の通信制御プログラム。
A communication control program for causing a processor in a baseband IC of a wireless communication device to execute,
A first master packet generation step in which a processor of the master device generates a packet having 1 in an ARQN field of a header portion and data having data to be transmitted in a payload portion;
Based on the frequency hopping pattern, the carrier frequency fm used by the processor of the master device to transmit a packet from the master device to the slave device and the carrier used to receive the packet from the slave device to the master device in the slot immediately after the packet transmission. In addition to determining the frequency fs, the carrier frequency fm used by the processor of the slave device to receive the packet from the master device to the slave device and the slot immediately after the reception of the packet are used to transmit the packet from the slave device to the master device. A carrier frequency determining step of determining each of the carrier frequencies fs to be used;
A carrier frequency use determining step in which the processors of the master device and the slave device determine whether the two carrier frequencies fm and fs determined in the carrier frequency determining step are both usable;
In the carrier frequency use determining step, a master packet transmitting step of transmitting a packet to the slave device at the carrier frequency fm when the processor of the master device determines that the two carrier frequencies fm and fs are both usable;
When it is determined in the carrier frequency determining step that at least one of the two carrier frequencies fm and fs is unusable, the processors of the master device and the slave device attempt to use the unusable carrier frequency for packet transmission. A carrier frequency re-determining step of calculating a new carrier frequency and returning to the carrier frequency use determining step; and a slave receiving confirmation step of determining whether a processor of the slave device has received a packet from the master device at the carrier frequency fm. ,
When a packet is successfully received in the slave reception confirmation step, a slave reception content check step of checking whether the processor of the slave device has correctly received the header portion and the payload portion of the packet,
A slave ARQN check step in which the processor of the slave device checks the value of the ARQN field of the header portion of the packet when the header and the payload of the packet are correctly received in the slave reception content check step;
If the value of the ARQN field is 1 in the slave ARQN check step, the processor of the slave device transmits a packet having 1 in the ARQN field of the header portion, or a packet having 1 in the ARQN field of the header portion, and then from the slave device. A first slave packet generation step of generating a packet having data to be transmitted to the master device;
If the value of the ARQN field is 0 in the slave ARQN check step, the processor of the slave device transmits a packet having a 1 in the ARQN field of the header or a packet having a 1 in the ARQN field of the header to the payload. A second slave packet generation step of generating a packet having the same data as the data included in the payload portion of the packet transmitted in the step,
When the data of the carrier frequency fm is included in the header of the packet received from the master device after the first or second slave packet generation step, the processor of the slave device transmits the data of the carrier frequency fm to the slave device. A slave carrier frequency recording step for recording in a storage device;
If the header and payload of the packet are not correctly received in the slave reception content checking step, the processor of the slave device has a packet having 0 in the ARQN field of the header, or has a payload having 0 in the ARQN field of the header. A third slave packet generation step of generating a packet having the data transmitted in the previous slave packet transmission step;
A slave packet transmitting step in which the processor of the slave device transmits any one of the packets generated in the first to third slave packet generating steps to the master device at the carrier frequency fs, and thereafter returns to the carrier frequency determining step When,
A master reception confirmation step of determining whether the processor of the master device has received any one of the packets generated in the first to third slave packet generation steps at the carrier frequency fs;
When any one of the packets generated in the first to third slave packet generation steps can be received in the master reception confirmation step, whether the processor of the master device has correctly received the header portion and the payload portion of the packet. A master reception content check step of checking whether the header portion and the payload portion of any one of the packets generated in the first to third slave packet generation steps have been correctly received in the master reception content check step. A master ARQN checking step in which the processor of the master device checks the value of the ARQN field in the header of the packet;
When the value of the ARQN field is 1 in the master ARQN check step, the processor of the master device transmits a packet having 1 in the ARQN field of the header portion or a packet having 1 in the ARQN field of the header portion and from the master device to the slave device in the payload portion. A second master that generates a packet having new data to be transmitted and moves the data of the carrier frequency fm recorded in the first storage device to the second storage device, and then returns to the carrier frequency determination step A packet generation step;
If the value of the ARQN field is 0 in the master ARQN check step, a first master carrier frequency record in which the processor of the master device records the carrier frequency fm used in the master packet transmission step in the first storage device of the master device Steps and
After the first master carrier frequency recording step, the processor of the master device has a packet having the data of the carrier frequency fm recorded in the first storage device in the header portion and having 1 in the ARQN field of the header portion; Alternatively, a packet is generated in which the header has data of the carrier frequency fm recorded in the first storage device, the ARQN field of the header has 1 and the payload has the data transmitted in the master packet transmitting step. And then returning to the carrier frequency determining step, a third master packet generating step;
If any one of the packets generated in the first to third slave packet generation steps is not received in the master reception confirmation step, or the first to third slave packets are not detected in the master reception content check step. When the header part and the payload part of any one of the packets generated in the packet generation step cannot be received correctly, the carrier frequency fm used by the processor of the master device in the master packet transmission step and the carrier frequency fm used in the slave packet transmission step A second master carrier frequency recording step of recording the obtained carrier frequency fs in the first storage device of the master device;
After the second master carrier frequency recording step, the processor of the master device has a packet having the data of the carrier frequency fm recorded in the first storage device in the header portion and having an ARQN field of 0 in the header portion, or A packet having data of the carrier frequency fm recorded in the first storage device in the header portion, having 0 in the ARQN field of the header portion, and having the data transmitted in the master packet transmitting step in the payload portion is generated. And a fourth master packet generation step after which the process returns to the carrier frequency determination step.
請求項11に記載の通信制御プログラムにおいて前記記憶装置に記録された搬送周波数は一定時間経過後前記記憶装置から消去される通信制御プログラム。The communication control program according to claim 11, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a predetermined time has elapsed. 請求項11に記載の搬送周波数使用判断ステップにおいて搬送周波数fm,fsが使用可能かどうかを判断する方法として前記記憶装置を参照して前記搬送周波数fm,fsが前記記憶装置に記録されている場合マスター機器のプロセッサが使用不可と判断し、前記搬送周波数fm,fsが前記記憶装置に記録されていない場合使用可能と判断する無線通信機器の通信制御プログラム。12. The method according to claim 11, wherein the carrier frequencies fm and fs are recorded in the storage device with reference to the storage device as a method of determining whether the carrier frequencies fm and fs are usable. A communication control program for a wireless communication device that determines that the processor of the master device is unusable and that the carrier frequency is usable when the carrier frequencies fm and fs are not recorded in the storage device. 記憶装置に記録された搬送周波数は一定時間経過後に前記記憶装置から消去される請求項13に記載の無線通信機器の通信制御プログラム。14. The communication control program for a wireless communication device according to claim 13, wherein the carrier frequency recorded in the storage device is deleted from the storage device after a lapse of a predetermined time. 請求項4〜7、11〜14のいずれか1つに記載の通信制御プログラムを記録した、コンピュータ読み取り可能な記録媒体。A computer-readable recording medium recording the communication control program according to any one of claims 4 to 7, and 11 to 14.
JP2002272533A 2002-09-19 2002-09-19 Control method of wireless communication device, control program and recording medium storing the same Pending JP2004112373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002272533A JP2004112373A (en) 2002-09-19 2002-09-19 Control method of wireless communication device, control program and recording medium storing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002272533A JP2004112373A (en) 2002-09-19 2002-09-19 Control method of wireless communication device, control program and recording medium storing the same

Publications (1)

Publication Number Publication Date
JP2004112373A true JP2004112373A (en) 2004-04-08

Family

ID=32269524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002272533A Pending JP2004112373A (en) 2002-09-19 2002-09-19 Control method of wireless communication device, control program and recording medium storing the same

Country Status (1)

Country Link
JP (1) JP2004112373A (en)

Similar Documents

Publication Publication Date Title
EP1845694B1 (en) Communication device, communication method, and program
US7143320B2 (en) Increasing data throughput on a wireless local area network in the presence of intermittent interference
RU2205515C2 (en) Method and device to monitor data batches in system of data batch transmission
CN104320227B (en) The method and apparatus that confirmation message is provided by wireless device
KR100772134B1 (en) Error handling in a wireless communications system
CN101589575A (en) Retransmission scheme for maintaining performance for wireless communications in the presence of periodic intermittent interference
JP4179034B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
WO2008073762A1 (en) Method and system for reliable detection and avoidance of periodic intermittent interference
WO2005013512A1 (en) Radio transmitting apparatus, radio receiving apparatus, radio communication system, radio transmitting method, and radio receiving method
CN103891368A (en) Method and apparatus for joint scheduling of interference-based peer-to-peer links and WWAN
JP3968097B2 (en) Status report missing detection in communication systems
US7965733B2 (en) Systems and methods to detect and avoid collisions in channel sense multiple access communications with multipacket reception
CN114389758A (en) Data transmission method and device
WO2018082554A1 (en) Method and device for dynamically feeding back harq-ack
EP2810392A1 (en) Bundling of packet acknowledgments as a function of the distance
JP2004112373A (en) Control method of wireless communication device, control program and recording medium storing the same
CN101427496A (en) Setting transmission length based on estimated error rate
CN100481759C (en) Method and device for reducing latency for recovery from communications errors
JP2006197177A (en) Wireless node communication collision prevention method
CN110958091B (en) A configuration method for uplink SRS antenna rotation, base station and terminal
CN101102172A (en) Method for processing received package and receiver
JP6743497B2 (en) Communication device, communication method, program, and communication system
CN115484015B (en) Information transmission method, apparatus, communication device and storage medium
JP2859211B2 (en) Wireless communication system
JP6813858B2 (en) Wireless communication system, wireless communication terminal, collision detection method, program