Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3205311B2 - Communication method and communication device - Google Patents
[go: Go Back, main page]

JP3205311B2 - Communication method and communication device - Google Patents

Communication method and communication device

Info

Publication number
JP3205311B2
JP3205311B2 JP5741099A JP5741099A JP3205311B2 JP 3205311 B2 JP3205311 B2 JP 3205311B2 JP 5741099 A JP5741099 A JP 5741099A JP 5741099 A JP5741099 A JP 5741099A JP 3205311 B2 JP3205311 B2 JP 3205311B2
Authority
JP
Japan
Prior art keywords
station
output
communication
response
primary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5741099A
Other languages
Japanese (ja)
Other versions
JP2000261379A (en
Inventor
人司 東
洋一 結城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP5741099A priority Critical patent/JP3205311B2/en
Publication of JP2000261379A publication Critical patent/JP2000261379A/en
Application granted granted Critical
Publication of JP3205311B2 publication Critical patent/JP3205311B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、赤外線等を用いた
光の伝送により通信を行う通信方法および通信装置に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication method and a communication apparatus for performing communication by transmitting light using infrared rays or the like.

【0002】[0002]

【従来の技術】光の伝送により通信を行う通信の一つと
して、赤外線通信がある。ハンドシェーク手順を有する
赤外線通信の規格の一つであるIrDA規格(Infrared
dataassociation )において、赤外線出力は、ある一
定の固定された基準値を確保するようにと規格書におい
て定義されている。すなわち、 IrDA ver 1.0 規格:40mW/srを確保 IrDA ver 1.1 規格:100mW/srを確保 IrDA ver 1.2 規格:3.6mW/srを確保 となっている。
2. Description of the Related Art Infrared communication is one type of communication that performs communication by transmitting light. IrDA standard (Infrared) is one of the infrared communication standards having a handshake procedure.
In dataassociation, the infrared output is defined in the standard to ensure a certain fixed reference value. That is, IrDA ver 1.0 standard: 40 mW / sr is secured IrDA ver 1.1 standard: 100 mW / sr is secured IrDA ver 1.2 standard: 3.6 mW / sr is secured.

【0003】その赤外線出力装置の駆動方法において
は、外付けの負荷抵抗を用いることや、LED(発光ダ
イオード)ドライバを定電流駆動にすることによって、
赤外線出力が固定されている。
In the method of driving the infrared output device, an external load resistor is used, or an LED (light emitting diode) driver is driven at a constant current.
Infrared output is fixed.

【0004】上記の規格の一つであるIrDA規格にお
いて、通信中の赤外線の出力値は一定の値となってい
る。しかし、通信距離が短くなれば、より小さい出力に
おいても通信が可能であることを考えると、通信距離が
短い場合には無駄な電力を消費していることになる。
[0004] In the IrDA standard, which is one of the above standards, the output value of infrared light during communication is a constant value. However, considering that communication is possible with a smaller output when the communication distance is shorter, wasteful power is consumed when the communication distance is shorter.

【0005】このような通信において出力を制御する技
術として、特開平7−66780号公報および特開平1
0−336109号公報に開示された技術がある。前者
を従来技術1と称し、後者を従来技術2と称する。従来
技術1では、1次局の出力パワーをまず最大値にし、そ
こから減少と増加とを交互に行っている。また、従来技
術2では、1次局の出力パワーをまず最大値にし、そこ
から減少させている。このようにして、これらの従来技
術1・2は、1次局の出力を可変とし、通信距離に応じ
て出力を変化させており、通信に必要な最小の出力で通
信を行うことによって、消費電力の増加を抑えている。
As a technique for controlling the output in such communication, Japanese Patent Laid-Open No. 7-66780 and Japanese Patent Laid-Open No.
There is a technique disclosed in Japanese Patent Publication No. 0-336109. The former is referred to as Prior Art 1 and the latter is referred to as Prior Art 2. In the prior art 1, the output power of the primary station is first set to a maximum value, and then the output power is alternately reduced and increased. In the prior art 2, the output power of the primary station is first set to the maximum value, and then reduced. In this way, these prior arts 1 and 2 make the output of the primary station variable and change the output in accordance with the communication distance. By performing communication with the minimum output required for communication, the power consumption is reduced. The increase in power is suppressed.

【0006】なお、最初に通信相手を探す側の局、すな
わち、通信の確立を要求する局であり、局発見コマンド
(XIDコマンド)を送出する側の局を、1次局と呼称
する。また、その通信要求を受け入れる局であり、局発
見コマンドに対して局発見レスポンス(XIDレスポン
ス)を送出する側の局を、2次局と呼称する。
A station that first searches for a communication partner, that is, a station that requests establishment of communication, and that sends out a station discovery command (XID command) is referred to as a primary station. A station that accepts the communication request and transmits a station discovery response (XID response) to the station discovery command is referred to as a secondary station.

【0007】[0007]

【発明が解決しようとする課題】上述のように、従来技
術1では、1次局の出力パワーをまず最大値にし、そこ
から減少と増加とを交互に行い、従来技術2では、1次
局の出力パワーをまず最大値にし、そこから減少させて
いる。また、上記いずれの従来技術においても、2次局
が発見できないうちは、発見するべく、1次局の出力パ
ワーを常に最大値に保っている。そのため、従来技術1
・2では、局発見処理時に、1次局の消費電力が増加す
るという問題がある。
As described above, in the prior art 1, the output power of the primary station is first set to a maximum value, and then the output power is alternately decreased and increased. The output power is first maximized and then reduced. Further, in any of the above-described prior arts, the output power of the primary station is always kept at the maximum value so that the secondary station cannot be found. Therefore, the prior art 1
2 has a problem that the power consumption of the primary station increases during the station finding process.

【0008】[0008]

【課題を解決するための手段】上記の課題を解決するた
め、請求項1記載の通信方法は、1次局と2次局との間
で光の伝送により通信を行うとともに、1次局の出力を
可変とする通信方法において、1次局から出力する局発
見コマンドの出力を、初期値から、2次局からの応答が
あるまで増加させながら上記局発見コマンドを出力する
ことを特徴としている。
According to a first aspect of the present invention, there is provided a communication method for performing communication between a primary station and a secondary station by transmitting light, and performing communication between the primary station and the secondary station. In the communication method of making the output variable, the output of the station finding command output from the primary station is increased from an initial value until a response from the secondary station is received, and the station finding command is output. .

【0009】請求項6記載の通信装置は、相手局との間
で光の伝送により通信を行うとともに、相手局への出力
を可変とする通信装置において、相手局を発見するため
の局発見コマンドを出力する出力手段と、上記出力手段
からの局発見コマンドの出力を、初期値から、相手局か
らの応答があるまで増加させる出力パワー設定手段とを
有することを特徴としている。
According to a sixth aspect of the present invention, there is provided a communication apparatus for performing communication by transmitting light to and from a partner station and making the output to the partner station variable, a station finding command for finding the partner station. And output power setting means for increasing the output of the station finding command from the output means from an initial value until a response from the partner station is received.

【0010】上記の請求項1または6の構成により、出
力を、減少させるのでなく増加させる。したがって、も
し、通信開始時に出力の増加途中で通信可能となった場
合は、わざわざ出力を最大値にまで増加させる必要がな
くなる。それゆえ、この分、消費電力の増加を抑えるこ
とができる。
According to the configuration of claim 1 or 6, the output is increased rather than decreased. Therefore, if the communication becomes possible during the increase of the output at the start of the communication, it is not necessary to increase the output to the maximum value. Therefore, an increase in power consumption can be suppressed accordingly.

【0011】また、上記従来技術1・2においては、上
述のように2次局(相手局)が発見できないうちは1次
局(通信装置)の出力パワーを常に最大値に保っている
のに対し、上記本発明の構成によれば、2次局(相手
局)が発見できないうちは、発見するべく、1次局(通
信装置)の出力パワーを、上記初期値から増加させる処
理を繰り返すことになる。それゆえ、この分、消費電力
の増加をいっそう抑えることができる。
Further, in the above-mentioned prior arts 1 and 2, the output power of the primary station (communication device) is always kept at the maximum value until the secondary station (counter station) cannot be found as described above. On the other hand, according to the configuration of the present invention, the process of increasing the output power of the primary station (communication device) from the initial value is repeated so as to discover the secondary station (the other station) while the secondary station (the partner station) cannot be found. become. Therefore, an increase in power consumption can be further suppressed.

【0012】また、請求項記載の通信方法は、2次局
からの応答があれば、上記局発見コマンドの出力を再度
上記初期値にして、上記2次局からの応答があるまで出
力を増加させながら上記局発見コマンドを出力し、それ
に対して2次局からの応答があれば、そのときの上記局
発見コマンドの出力を、1次局から2次局への出力パワ
ーとして設定することを特徴としている。
[0012] The communication method according to claim 1, wherein the secondary station
If there is a response from, then again to the initial value output from the station discovery command, while increasing the output until there is a response from the secondary station outputs the station discovery command, it
If there is a response from the secondary station, the output of the station discovery command at that time, characterized by setting as the output power from the primary station to the secondary station has respect.

【0013】また、請求項記載の通信装置は、相手局
からの応答があれば、上記出力パワー設定手段が、上記
局発見コマンドの出力を再度上記初期値にして、上記相
手局からの応答があるまで出力を増加させ、それに対し
相手局からの応答があれば、そのときの上記局発見コ
マンドの出力を、相手局への出力パワーとして設定する
ことを特徴としている。
[0013] The communication device of claim 6, the other station
If there is a response from, the output power setting means, and again to the initial value output from the station discovery command increases the output until there is a response from the other station, to which
If there is a response from the other station Te, the output of the station discovery command at that time, is characterized by setting the output power to the other station.

【0014】上記の請求項または請求項の構成によ
り、上記2次局(相手局)からの応答に応じてそのとき
の上記局発見コマンドの出力を1次局(通信装置)から
2次局(相手局)への出力パワーとして設定した後、上
記局発見コマンドの出力を再度上記初期値にして、上記
2次局(相手局)からの応答があるまで増加させながら
上記局発見コマンドを出力し、2次局(相手局)からの
応答があれば、そのときの上記局発見コマンドの出力
を、1次局(通信装置)から2次局(相手局)への出力
パワーとして設定する。
According to the configuration of claim 1 or claim 6 , the output of the station finding command at that time is output from the primary station (communication device) to the secondary station in response to a response from the secondary station (counter station). After setting the output power to the station (the partner station), the output of the station discovery command is set again to the initial value, and the station discovery command is increased while there is a response from the secondary station (the partner station). Output, and if there is a response from the secondary station (partner station), the output of the above station discovery command at that time is set as output power from the primary station (communication device) to the secondary station (partner station). .

【0015】したがって、局発見コマンドの出力を1次
局(通信装置)からの出力パワーとして設定した後、1
次局(通信装置)または2次局(相手局)の少なくとも
一方が以前より近い場所へと移動したときや、両局間の
発光部・受光部同士が正しく相手のほうを向き合うよう
に角度が変化したときのように、通信環境が変化した場
合には、先ほど設定値として採用したのよりも小さい出
力パワーで充分通信可能であることを検出し、その出力
パワーを採用することができる。また逆に、距離が離れ
た場合や上記角度のずれがひどくなった場合でも、先ほ
ど設定値として採用したのよりも出力パワーを大きくす
れば通信可能であることを検出し、その出力パワーを設
定値として採用することができる。それゆえ、両局間の
距離や角度といった通信環境が変化しても、確実に、通
信可能な最小の出力パワーを見いだすことができる。
Therefore, after setting the output of the station finding command as the output power from the primary station (communication device),
When at least one of the next station (communication device) or the secondary station (partner station) moves to a location closer to the previous station, or the angle is set so that the light-emitting part and light-receiving part between the two stations correctly face the other party. When the communication environment changes, as in the case of a change, it is detected that sufficient communication is possible with an output power smaller than the one previously adopted as the set value, and the output power can be employed. Conversely, even when the distance is large or the angle deviation is severe, it is detected that communication is possible if the output power is increased as compared with the setting value, and the output power is set. It can be adopted as a value. Therefore, even if the communication environment such as the distance or the angle between the two stations changes, it is possible to reliably find the minimum communicable output power.

【0016】また、好ましくは、1次局と2次局との間
で光の伝送により通信を行うとともに、2次局の出力を
可変とする通信方法において、1次局から出力される局
発見コマンドに対して2次局から出力する局発見レスポ
ンスの出力を、初期値から、この局発見レスポンスに対
する1次局からの応答があるまで増加させながら上記局
発見レスポンスを出力し、1次局からの応答があれば、
そのときの上記局発見レスポンスの出力を、2次局から
1次局への出力パワーとして設定する。
Also, preferably, in a communication method in which communication is performed between the primary station and the secondary station by optical transmission and the output of the secondary station is made variable, station detection output from the primary station is performed. The output of the station discovery response output from the secondary station in response to the command is increased from the initial value until there is a response from the primary station to this station discovery response, and the station discovery response is output. Response
The output of the station discovery response at that time is set as output power from the secondary station to the primary station.

【0017】また、好ましくは、相手局との間で光の伝
送により通信を行うとともに、相手局への出力を可変と
する通信装置において、相手局から出力される局発見コ
マンドに対して局発見レスポンスを出力する出力手段
と、上記出力手段からの局発見レスポンスの出力を、初
期値から、この局発見レスポンスに対する相手局からの
応答があるまで増加させ、相手局からの応答があれば、
そのときの上記局発見レスポンスの出力を、相手局への
出力パワーとして設定する出力パワー設定手段とを有す
る。
[0017] Preferably, in a communication device which communicates with a partner station by light transmission and makes the output to the partner station variable, a station discovery command output from the partner station is provided. Output means for outputting a response, and increasing the output of the station discovery response from the output means from the initial value until there is a response from the partner station to this station discovery response, and if there is a response from the partner station,
Output power setting means for setting the output of the station discovery response at that time as output power to the partner station.

【0018】上記の構成により、出力を、減少させるの
でなく増加させる。したがって、もし、通信開始時に局
発見レスポンスの出力の増加途中で通信可能となった場
合は、わざわざ局発見レスポンスの出力を最大値にまで
増加させる必要がなくなる。それゆえ、この分、消費電
力の増加を抑えることができる。
With the above arrangement, the output is increased rather than decreased. Therefore, if communication becomes possible during the increase in the output of the station discovery response at the start of communication, it is not necessary to increase the output of the station discovery response to the maximum value. Therefore, an increase in power consumption can be suppressed accordingly.

【0019】また、好ましくは、上記の構成に加えて、
上記1次局からの応答に応じてそのときの上記局発見レ
スポンスの出力を2次局から1次局への出力パワーとし
て設定した後、上記局発見レスポンスの出力を再度上記
初期値にして、この局発見レスポンスに対する上記1次
局からの応答があるまで出力を増加させながら上記局発
見レスポンスを出力し、1次局からの応答があれば、そ
のときの上記局発見レスポンスの出力を、2次局から1
次局への出力パワーとして設定する。
Preferably, in addition to the above-described configuration,
After setting the output of the station discovery response at that time according to the response from the primary station as the output power from the secondary station to the primary station, the output of the station discovery response is again set to the initial value, The station finding response is output while increasing the output until there is a response from the primary station to the station finding response. If there is a response from the primary station, the output of the station finding response at that time is set to 2 1 from next station
Set as output power to the next station.

【0020】また、好ましくは、上記の構成に加えて、
上記相手局からの応答に応じてそのときの上記局発見レ
スポンスの出力を相手局への出力パワーとして設定した
後、上記出力パワー設定手段が、上記局発見レスポンス
の出力を再度上記初期値にして、この局発見レスポンス
に対する上記相手局からの応答があるまで出力を増加さ
せ、相手局からの応答があれば、そのときの上記局発見
レスポンスの出力を、相手局への出力パワーとして設定
する。
Preferably, in addition to the above-described configuration,
After setting the output of the station discovery response at that time according to the response from the partner station as output power to the partner station, the output power setting means sets the output of the station discovery response to the initial value again. The output is increased until there is a response from the partner station to this station discovery response. If there is a response from the partner station, the output of the station discovery response at that time is set as output power to the partner station.

【0021】上記の構成により、上記1次局(相手局)
からの応答に応じてそのときの上記局発見レスポンスの
出力を2次局(通信装置)から1次局(相手局)への出
力パワーとして設定した後、上記局発見レスポンスの出
力を再度上記初期値にして、上記1次局(相手局)から
の応答があるまで増加させながら上記局発見レスポンス
を出力し、1次局(相手局)からの応答があれば、その
ときの上記局発見レスポンスの出力を、2次局(通信装
置)から1次局(相手局)への出力パワーとして設定す
る。
With the above configuration, the primary station (the partner station)
After setting the output of the station discovery response at that time as the output power from the secondary station (communication device) to the primary station (partner station) in response to the response from The station discovery response is output while increasing the value until there is a response from the primary station (partner station). If there is a response from the primary station (partner station), the station discovery response at that time is output. Is set as the output power from the secondary station (communication device) to the primary station (partner station).

【0022】したがって、局発見レスポンスの出力を2
次局(通信装置)からの出力パワーとして設定した後、
2次局(通信装置)または1次局(相手局)の少なくと
も一方が以前より近い場所へと移動したときや、両局間
の発光部・受光部同士が正しく相手のほうを向き合うよ
うに角度が変化したときのように、通信環境が変化した
場合には、先ほど設定値として採用したのよりも小さい
出力パワーで充分通信可能であることを検出し、その出
力パワーを採用することができる。また逆に、距離が離
れた場合や上記角度のずれがひどくなった場合でも、先
ほど設定値として採用したのよりも出力パワーを大きく
すれば通信可能であることを検出し、その出力パワーを
設定値として採用することができる。それゆえ、両局間
の距離や角度といった通信環境が変化しても、確実に、
通信可能な最小の出力パワーを見いだすことができる。
Therefore, the output of the station discovery response is set to 2
After setting as output power from the next station (communication device),
When at least one of the secondary station (communication device) or the primary station (partner station) moves to a location closer than before, or the angle so that the light emitting part and light receiving part between both stations correctly face the other party. When the communication environment changes, as in the case where the communication power has changed, it is detected that sufficient communication is possible with an output power smaller than the one previously used as the set value, and the output power can be used. Conversely, even when the distance is large or the angle deviation is severe, it is detected that communication is possible if the output power is increased as compared with the setting value, and the output power is set. It can be adopted as a value. Therefore, even if the communication environment such as the distance and angle between both stations changes,
It is possible to find the minimum output power at which communication is possible.

【0023】請求項2記載の通信方法は、請求項1に記
載の構成に加えて、上記1次局は、設定した出力パワー
を、通信に必要となる設定値とともに2次局に知らせ、
2次局は、それに基づいて出力パワーを設定することを
特徴としている。 請求項7記載の通信装置は、請求項6
に記載の構成に加えて、設定した出力パワーを、通信に
必要となる設定値とともに相手局に知らせ、相手局にそ
れに基づいて出力パワーを設定させることを特徴として
いる。請求項3記載の通信方法は、請求項1または2に
記載の構成に加えて、1次局から2次局へ送るデータに
ついての再送の発生頻度を調査し、該頻度が基準値を越
えた場合に、1次局からの出力を、現在の値から増加さ
せて出力することを特徴としている。
The communication method according to the second aspect is the communication method according to the first aspect.
In addition to the configuration described above, the primary station has a set output power
To the secondary station together with the setting values required for communication,
The secondary station must set the output power accordingly.
Features. The communication device according to claim 7 is the communication device according to claim 6.
In addition to the configuration described in
Inform the partner station together with the required settings and send it to the partner station.
The output power is set based on the
I have. The communication method according to claim 3 is the communication method according to claim 1 or 2.
In addition to the configuration described above, the frequency of retransmission of data sent from the primary station to the secondary station is investigated, and when the frequency exceeds a reference value, the output from the primary station is output from the current value. It is characterized by increasing the output.

【0024】請求項8記載の通信装置は、請求項6また
は7に記載の構成に加えて、相手局へ送るデータについ
ての再送の発生頻度を調査する再送調査手段を有し、
頻度が基準値を越えた場合に、上記出力パワー設定手段
が、相手局への出力を、現在の値から増加させて出力す
ることを特徴としている。
[0024] The communication device according to claim 8 is the communication device according to claim 6 or
Has retransmission investigating means for investigating the frequency of retransmission of data to be sent to the other station in addition to the configuration described in 7, and the output power setting means when the frequency exceeds a reference value.
However, it is characterized in that the output to the partner station is increased from the current value and output.

【0025】上記の請求項3または8の構成により、出
力を、減少させるのでなく増加させる。したがって、も
し、再送発生時に出力の増加途中で再送頻度の小さい通
信が可能となった場合は、わざわざ出力を最大値にまで
増加させる必要がなくなる。それゆえ、この分、消費電
力の増加を抑えることができる。
According to the configuration of claim 3 or 8, the output is increased, not decreased. Therefore, if communication with a low retransmission frequency becomes possible in the middle of an increase in output when a retransmission occurs, it is not necessary to increase the output to the maximum value. Therefore, an increase in power consumption can be suppressed accordingly.

【0026】また、例えば2次局(相手局)からの再送
要求の単位時間あたりの回数を調査するなどによって、
再送頻度が基準値を越えたことが検知された場合に、1
次局(通信装置)からの出力を、現在の値から増加させ
て出力する。したがって、再送が頻発すれば、1次局
(通信装置)からの出力レベルが上がるので、通信状態
の悪化が解消されて、再送頻度の小さい通信状態に移行
できる。それゆえ、通信できる最小のパワーに設定した
後等に、通信中に移動等により通信状態が悪くなり再送
が頻発することがあっても、良好に通信を続けることが
できる。
Also, for example, by examining the number of retransmission requests per unit time from the secondary station (the other station),
If it is detected that the retransmission frequency exceeds the reference value,
The output from the next station (communication device) is increased from the current value and output. Therefore, if retransmission occurs frequently, the output level from the primary station (communication device) increases, so that the deterioration of the communication state is eliminated, and the state can be shifted to the communication state with a low retransmission frequency. Therefore, even after the communication power is set to the minimum power at which communication can be performed and the communication state deteriorates due to movement during communication and retransmission frequently occurs, communication can be favorably continued.

【0027】請求項4記載の通信方法は、請求項3の構
成に加えて、上記調査を定期的に行うことを特徴として
いる。
A communication method according to a fourth aspect is characterized in that, in addition to the configuration of the third aspect, the above-mentioned investigation is performed periodically.

【0028】請求項9記載の通信装置は、請求項8の構
成に加えて、上記再送調査手段が、上記調査を定期的に
行うことを特徴としている。
[0028] According to a ninth aspect of the present invention, in addition to the configuration of the eighth aspect, the retransmission investigation means periodically performs the investigation.

【0029】上記の構成により、上記調査を定期的に行
う。したがって、再送が多く発生しないかどうかを絶え
ず調査する。それゆえ、請求項3または請求項8の構成
による効果に加えて、頻繁に再送が起こるような状況に
迅速に対応して通信状態を改善し、それにより迅速に通
信を完了させることができる。
With the above configuration, the above-mentioned investigation is performed periodically. Therefore, it is continually investigated whether retransmissions occur frequently. Therefore, in addition to the effect of the configuration of claim 3 or claim 8, it is possible to quickly respond to a situation where frequent retransmission occurs, improve the communication state, and thereby quickly complete the communication.

【0030】請求項5記載の通信方法は、請求項3の構
成に加えて、再送要求を1次局が受信するまでは上記調
査を行わず、再送要求を1次局が受信すると上記調査を
開始することを特徴としている。
In the communication method according to the fifth aspect, in addition to the configuration of the third aspect, the above-described investigation is not performed until the primary station receives the retransmission request, and the above-described investigation is performed when the primary station receives the retransmission request. It is characterized by starting.

【0031】請求項10記載の通信装置は、請求項8の
構成に加えて、上記再送調査手段が、再送要求を受信す
るまでは上記調査を行わず、再送要求を受信すると上記
調査を開始することを特徴としている。
According to a tenth aspect of the present invention, in addition to the configuration of the eighth aspect, the retransmission investigation unit does not perform the investigation until a retransmission request is received, and starts the investigation when a retransmission request is received. It is characterized by:

【0032】上記の構成により、再送要求を1次局(通
信装置)が受信するまでは上記調査を行わず、再送要求
を1次局(通信装置)が受信すると上記調査を開始す
る。したがって、上記調査は頻繁には行わず、再送要求
が実際に発生したときに限って上記調査を開始すること
になる。それゆえ、請求項3または請求項8の構成によ
る効果に加えて、連続的に調査するのと異なり、調査の
ための電力消費量の増加を抑えることができる。
According to the above configuration, the above-described investigation is not performed until the primary station (communication device) receives the retransmission request, and the above-described investigation is started when the primary station (communication device) receives the retransmission request. Therefore, the above investigation is not performed frequently, and the above investigation is started only when a retransmission request actually occurs. Therefore, in addition to the effect of the configuration of claim 3 or claim 8, it is possible to suppress an increase in power consumption for the survey, unlike the case of performing the survey continuously.

【0033】なお、好ましくは、上記いずれかの構成に
加えて、上記1次局(通信装置)の各出力レベルを、最
大値の(1/2n 2 (n=1、2、3、…)に設定す
る出力レベル設定手段を有する。
Preferably, in addition to any one of the above configurations, each output level of the primary station (communication device) is set to a maximum value of (1/2 n ) 2 (n = 1, 2, 3,. ..).

【0034】上記の構成により、各出力レベルを、最大
値の(1/2n 2 (n=1、2、3、…)、すなわ
ち、最大値(Pとする)の1/4, 1/16, 1/64, 1/256,
... に設定している。このことから、両局間の距離が
規定距離(Lとする)の1/2, 1/4,1/8, 1/16, ...であ
れば、それぞれ、出力レベルは、最大値Pの1/4, 1/16,
1/64, 1/256, ... であれば充分通信可能ということで
ある。
With the above configuration, each output level is set to (1/2 n ) 2 (n = 1, 2, 3,...) Of the maximum value, that is, 1/4, 1 of the maximum value (P). / 16, 1/64, 1/256,
... is set. From this, if the distance between the two stations is 1/2, 1/4, 1/8, 1/16, ... of the specified distance (L), the output level becomes the maximum value P 1/4, 1/16,
1/64, 1/256, ... means that communication is sufficient.

【0035】したがって、両局間が近くなるほど、隣接
した出力レベル(例えば(1/64)Pと(1/256) P)に対応
する距離((1/8) Lと(1/16)L)同士の差が急激に小さ
くなっていく。言い換えれば、両局間が近い状況では、
少しの移動に応じて、通信可能な出力レベルが細かく変
化する。そのため、両局が近いときには、1次局(通信
装置)と2次局(相手局)とが互いに近づくように、い
ずれか一方あるいは両方の局をわずかに移動させるだけ
で、1段階低い出力レベルでも充分通信可能な状態とす
ることができる。それゆえ、上記いずれかに記載の構成
による効果に加えて、両局間の距離を少し縮めるだけ
で、1次局(通信装置)の消費電力を大幅に減少させる
ことができる。
Therefore, the closer the stations are, the closer the distances ((1/8) L and (1/16) L) corresponding to the adjacent output levels (for example, (1/64) P and (1/256) P) are. The difference between them decreases rapidly. In other words, in a situation where both stations are close,
The communicable output level changes finely according to a slight movement. Therefore, when both stations are close to each other, only one or both stations are slightly moved so that the primary station (communication device) and the secondary station (partner station) come closer to each other, and the output level is lowered by one step. However, it is possible to establish a state in which communication is sufficiently possible. Therefore, in addition to the effects of any of the above configurations, the power consumption of the primary station (communication device) can be significantly reduced by only slightly reducing the distance between the two stations.

【0036】[0036]

【発明の実施の形態】〔実施の形態1〕本発明の実施の
一形態について図1ないし図7に基づいて説明すれば、
以下の通りである。本実施の形態に係る通信装置は、I
rDA規格に則った赤外線の空間伝送を利用して、2局
間で双方向通信を行うものである。各局で用いられる通
信装置の構成を図1に示す。同図に示すように、本通信
装置は、ソフトウエアとして、通信アプリケーション1
01、プロトコルドライバ(通信プロトコルプログラ
ム)102、デバイスドライバ(通信コントローラ駆動
プログラム)103を有し、ハードウエアとして、通信
コントローラ104、赤外線デバイス(出力手段)10
5を有している。赤外線デバイス105は、PD(光ダ
イオード)またはLED(発光ダイオード)で構成され
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [Embodiment 1] An embodiment of the present invention will be described with reference to FIGS.
It is as follows. The communication device according to the present embodiment has I
Two-way communication is performed between two stations using infrared spatial transmission in accordance with the rDA standard. FIG. 1 shows the configuration of a communication device used in each station. As shown in the figure, this communication device is a communication application 1 as software.
01, a protocol driver (communication protocol program) 102, and a device driver (communication controller driving program) 103. As hardware, a communication controller 104, an infrared device (output means) 10
Five. The infrared device 105 is constituted by a PD (photodiode) or an LED (light emitting diode).

【0037】上記ソフトウエアは、図示しないメモリに
格納されている。また、このメモリには、後述の再送頻
度の上限値が格納されている。上記通信コントローラ1
04は、上記ソフトウエアを実行可能なマイコン等のC
PUによって構成されている。上記ソフトウエアと、通
信コントローラ104とによって、出力パワー設定手
段、再送調査手段および出力レベル設定手段が構成され
ている。すなわち、出力パワー設定手段、再送調査手段
および出力レベル設定手段は、通信コントローラ104
とそれにより作動するコンピュータプログラムである上
記ソフトウエアとによって構成される機能モジュールで
ある。
The above software is stored in a memory (not shown). In addition, the memory stores an upper limit value of a retransmission frequency described later. Communication controller 1
04 is a C / C such as a microcomputer capable of executing the above software.
It is composed of PU. The software and the communication controller 104 constitute output power setting means, retransmission investigation means, and output level setting means. That is, the output power setting means, the retransmission investigation means, and the output level setting means are
And a functional module constituted by the above-mentioned software which is a computer program operated thereby.

【0038】通信プロトコルとは、通信の手順を示すも
のであり、通信が確立するまでの手順(ハンドシェー
ク)や、エラーが生じたときの対処方法、通信を終える
ための手段、データ転送方法の規格がその中に含まれて
いる。
The communication protocol indicates a communication procedure, which is a procedure until communication is established (handshake), a method for coping with an error, a means for ending communication, and a standard for data transfer method. Is included in it.

【0039】プロトコルドライバ102は、通信アプリ
ケーション101からの、通信開始、終了、データ転送
の要求に対応するように、通信手順に従ってデバイスド
ライバ103に対して命令を出す。デバイスドライバ1
03は、デバイスを制御するソフトウエアであり、通信
コントローラ104のレジスタやメモリを走査し、プロ
トコルドライバ102からの要求に応えるべく通信コン
トローラ104の制御を行う。通信コントローラ104
は、赤外線デバイス105を制御するものであり、信号
の変復調や、デバイスドライバ103の要求に対応する
メモリへのデータ格納等を行う。また、通信コントロー
ラ104は、後述のタイマー機能を有している。
The protocol driver 102 issues a command to the device driver 103 in accordance with a communication procedure so as to respond to a request for communication start, end, and data transfer from the communication application 101. Device driver 1
Reference numeral 03 denotes software for controlling devices, which scans registers and memories of the communication controller 104 and controls the communication controller 104 in response to a request from the protocol driver 102. Communication controller 104
Controls the infrared device 105, and performs modulation / demodulation of a signal, storage of data in a memory corresponding to a request from the device driver 103, and the like. The communication controller 104 has a timer function described later.

【0040】図2に、赤外線通信の規格の一つであるI
rDA規格において、通信が確立するまでの手順の概略
を示す。通信が確立するとは、画像や文書等のファイル
のデータを転送できる状態になることを表す。1次局と
は、最初に通信相手を探す側の局、すなわち、通信の確
立を要求する局であり、局発見コマンド(XIDコマン
ド)を送出する側の局である。また、2次局とは、その
通信要求を受け入れる局であり、局発見コマンドに対し
て局発見レスポンス(XIDレスポンス)を送出する側
の局である。したがって、以下の説明では、1次局が、
請求項6、7でいう通信装置に相当し、2次局が、請求
項6、7でいう相手局に相当する。また、請求項8ない
し10でいう通信装置については、基本的に1次局とし
て説明するが、2次局に適用してもよいものである。
FIG. 2 shows one of the infrared communication standards, I.
In the rDA standard, an outline of a procedure until communication is established is shown. When the communication is established, it indicates that the data of a file such as an image or a document can be transferred. The primary station is a station that first searches for a communication partner, that is, a station that requests establishment of communication, and is a station that sends out a station discovery command (XID command). The secondary station is a station that accepts the communication request, and is a station that sends out a station discovery response (XID response) to the station discovery command. Therefore, in the following description, the primary station
The secondary station corresponds to the communication device described in claims 6 and 7, and the secondary station corresponds to the partner station described in claims 6 and 7. Further, the communication device described in claims 8 to 10 is basically described as a primary station, but may be applied to a secondary station.

【0041】1次局から2次局への通信データ(命令)
をコマンドと呼び、逆に、そのコマンドに対する、2次
局から1次局への通信データ(命令)をレスポンスと呼
ぶ。XIDコマンドとは、局発見コマンドであり、1次
局から通信可能距離内に2次局となり得る局が存在する
かを探すコマンドである。SlotNumberは、何個目のコマ
ンドを送出しているかを表す。局発見コマンドであるX
IDコマンドを受け取った2次局は、局発見レスポンス
であるXIDレスポンスを返し、自局の存在を1次局に
知らせる処理を行う。1次局は、規定の数に従い局発見
コマンドを送出し、最後のコマンドのSlotNumberは25
6として、これが最後のコマンドであることを示してい
る。
Communication data (command) from primary station to secondary station
Is called a command, and conversely, communication data (command) from the secondary station to the primary station in response to the command is called a response. The XID command is a station discovery command, which is a command for searching for a station that can be a secondary station within a communicable distance from the primary station. SlotNumber indicates the number of the command being sent. X which is a station discovery command
The secondary station that has received the ID command returns an XID response, which is a station discovery response, and performs a process of notifying the primary station of its own station. The primary station sends out a station discovery command according to the prescribed number, and the last command SlotNumber is 25.
6, indicating that this is the last command.

【0042】続いて、1次局は、通信速度、通信データ
のサイズ等の、通信に必要となる設定値を、SNRMコ
マンドを用いて2次局に知らせる。そのコマンドを受け
取った2次局は、自局の設定値と比較し、受け入れるこ
とが可能な設定値を、UAレスポンスを用いて1次局に
知らせる。
Subsequently, the primary station informs the secondary station of the setting values required for communication, such as the communication speed and the size of the communication data, using an SNRM command. The secondary station receiving the command compares the set value with its own station and notifies the primary station of an acceptable set value using a UA response.

【0043】さらに詳細に述べれば以下の通りである。
すなわち、IrDA規格では、1次局からのXIDコマ
ンドのパケットの送信個数は、1、6、8、15個から
選択できるようになっている。そして、例えば図2のよ
うにXIDコマンドのパケットを8個ずつ送信する場合
には、1個目から7個目まではSlotNumberをそれぞれ1
から7とし、最後の8個目はSlotNumberを256とし
て、これが最後のパケットであることを相手局である2
次局に通知する。
The details are as follows.
That is, according to the IrDA standard, the number of transmitted XID command packets from the primary station can be selected from 1, 6, 8, and 15 packets. For example, when eight XID command packets are transmitted as shown in FIG. 2, the SlotNumber is set to 1 for each of the first to seventh packets.
, And the last eighth packet has a SlotNumber of 256, which indicates that this is the last packet.
Notify the next station.

【0044】そして、最後のパケットを送信後、約50
0m秒の時間が経ってから、再び1個目から8個目まで
を送信することを繰り返し行う。なお、パケット同士の
送信間隔は70m秒である。
Then, after transmitting the last packet, about 50
After the time of 0 ms elapses, transmission of the first to eighth data is repeated. The transmission interval between packets is 70 ms.

【0045】2次局は、XIDコマンドを受信するとす
ぐにXIDレスポンスを返すと決まっているわけではな
く、任意(ランダムな値)のSlotNumberを持つパケット
を受信した後に、XIDレスポンスを返す。例えば、8
個ずつパケットが送られてくる場合に、1個目を受信し
た後にXIDレスポンスを返すか、8個目を受信した後
にXIDレスポンスを返すかを、2次局が任意に決める
ことができる。例として、図2では、3個目のパケット
を受信した後にXIDレスポンスを返す場合を表してい
る。
The secondary station does not necessarily return an XID response immediately upon receiving the XID command, but returns an XID response after receiving a packet having an arbitrary (random value) SlotNumber. For example, 8
When packets are sent one by one, the secondary station can arbitrarily determine whether to return an XID response after receiving the first packet or return an XID response after receiving the eighth packet. As an example, FIG. 2 illustrates a case where an XID response is returned after receiving the third packet.

【0046】本実施の形態では、所定の個数ずつXID
コマンドを送信しているが、その個数のパケットは、す
べて同じ赤外線出力で送信される。すなわち、8個ずつ
XIDコマンドを送信する場合は、この8個のパケット
を、すべて同じ赤外線出力で送信している。もしこの8
個のパケット同士で赤外線出力が異なっていれば、例え
ば2次局が1個目のパケット受信後にXIDレスポンス
を返した場合と、3個目のパケット受信後にXIDレス
ポンスを返した場合とでは、赤外線出力の設定が変わっ
てしまうことになるからである。なお、詳しくは後述す
る。
In the present embodiment, the XID
Although the command is being transmitted, all of the packets are transmitted with the same infrared output. That is, when transmitting eight XID commands at a time, all eight packets are transmitted with the same infrared output. If this 8
If the infrared output is different between each packet, for example, when the secondary station returns an XID response after receiving the first packet, and when the secondary station returns an XID response after receiving the third packet, This is because the output settings will be changed. The details will be described later.

【0047】以上の手順を経て、1次局と2次局との間
に通信回線が確立したことになり、通信が確立した状態
となる。
Through the above procedure, a communication line has been established between the primary station and the secondary station, and communication is established.

【0048】本通信装置においては、上述のIrDA規
格に基づき、規定距離(Lとする)に対して通信するた
めに、すでに述べたように、単位立体角における規定パ
ワー(Pとする)が定められている。また、本通信装置
においては、1次局の出力レベルは、上記規定パワーP
を最大値としたいくつかのレベルに段階付けられて可変
となっている。また、本実施の形態においては、2次局
の出力パワーは、1次局同様上記Pを最大値としてお
り、さらに、1次局同様、いくつかのレベルに段階付け
ることができる。
In the present communication apparatus, as described above, the prescribed power (P) at a unit solid angle is determined in order to communicate with the prescribed distance (L) based on the above-mentioned IrDA standard. Have been. In this communication device, the output level of the primary station is equal to the specified power P.
It is variable by being graded to several levels with the maximum value. In the present embodiment, the output power of the secondary station has the maximum value of P as in the case of the primary station, and can be graded to several levels as in the case of the primary station.

【0049】図7は、本実施の形態に係る通信装置にお
いて赤外線出力を制御するための構成および制御方法の
例を示している。デバイスドライバ701は、通信コン
トローラ702に対して赤外線出力を変更するように要
求を出す。通信コントローラ702は、赤外線デバイス
705に付属するUP端子704およびDOWN端子7
03に対して、赤外線出力変更要求に対応するようにシ
ングルパルス信号を出力する。上記シングルパルス信号
をUP端子704に対して出力すると、赤外線出力は1
段階上がる。逆に、上記シングルパルス信号をDOWN
端子703に対して出力すると、赤外線出力は1段階下
がる。このようにして赤外線出力の制御を行っている。
FIG. 7 shows an example of a configuration and a control method for controlling infrared output in the communication apparatus according to the present embodiment. The device driver 701 issues a request to the communication controller 702 to change the infrared output. The communication controller 702 includes an UP terminal 704 and a DOWN terminal 7 attached to the infrared device 705.
In response to the request for changing the infrared output, a single pulse signal is output. When the single pulse signal is output to the UP terminal 704, the infrared output becomes 1
Step up. Conversely, the single pulse signal is converted to DOWN
When output to terminal 703, the infrared output is reduced by one step. In this way, the infrared output is controlled.

【0050】なお、このように出力をいくつかのレベル
に段階付けるには、公知の構成が採用できる。すなわ
ち、複数の抵抗器を直列に接続して抵抗分割により得る
ことが可能である。例えば、特開平7−66780号公
報や特開平10−336109号公報等に開示されてい
るような構成が採用できる。
In order to grade the output to several levels, a known configuration can be adopted. That is, a plurality of resistors can be connected in series and obtained by resistance division. For example, a configuration disclosed in JP-A-7-66780, JP-A-10-336109, or the like can be employed.

【0051】次に、図3を参照して、通信が確立するま
での処理において、1次局における出力を設定する手順
について説明する。本実施の形態においては、まず、局
発見コマンドを出力して、2次局の探索処理を行うよう
になっている。そして、その後さらに、1次局からの出
力パワーの最適化処理を行うようになっている。
Next, with reference to FIG. 3, a procedure for setting an output in the primary station in a process until communication is established will be described. In the present embodiment, first, a station discovery command is output to perform a search for a secondary station. Then, further, the output power from the primary station is optimized.

【0052】まず、ステップS301において、1次局
の通信コントローラ104は、通信アプリケーション1
01からの要求に応じて通信を開始する。S302にお
いて、相手局をすでに発見済みであるか否かを示すフラ
グSecondaryExistFlagをFALSEに初期化する。ここ
で、FALSEは未発見、TRUEはすでに発見済みで
あることを表す。S303において、赤外線出力値のレ
ベル(段階)を示すPowerLevelを1に初期化する。Powe
rLevelは、値が小さいほど、小さい出力レベルを表して
おり、1という値は赤外線の出力が最小であることを示
し、各レベルに対して、実際の物理的な赤外線の出力値
が割り当てられている。
First, in step S301, the communication controller 104 of the primary station
Communication is started in response to a request from 01. In S302, a flag SecondaryExistFlag indicating whether or not the partner station has already been discovered is initialized to FALSE. Here, FALSE indicates that it has not been discovered, and TRUE indicates that it has already been discovered. In S303, PowerLevel indicating the level (stage) of the infrared output value is initialized to 1. Powe
rLevel indicates that the smaller the value is, the smaller the output level is. A value of 1 indicates that the infrared output is the minimum, and an actual physical infrared output value is assigned to each level. I have.

【0053】S304において、局発見コマンドである
XIDコマンドを数個送出する。S305において、相
手局からのXIDレスポンスがあったかどうか、つまり
相手局を発見したどうかを調査する。未発見の場合は、
相手局が存在しないか、もしくは、存在はするが相手局
がXIDコマンドを受け取ることができない程度の赤外
線出力しか1次局の赤外線デバイス105に供給されて
いないことになる。そこで、S312において、1次局
の赤外線デバイス105の赤外線出力のレベルを1段階
上げる。S313において、赤外線出力の上限値である
規定パワーPを超えるようなPowerLevelに達していない
か調査し、達していなければ、S304から同様の処理
を行う。規定パワーPを超えるようなPowerLevelに達し
ていれば、再度PowerLevelを初期化するために、S30
3から同様の処理を行う。
In S304, several XID commands as station finding commands are transmitted. In S305, it is checked whether there is an XID response from the partner station, that is, whether the partner station is found. If not found,
This means that the other station does not exist or the infrared output of the primary station is supplied to the primary station infrared device 105 to such an extent that the other station cannot receive the XID command. Therefore, in S312, the level of the infrared output of the infrared device 105 of the primary station is increased by one level. In S313, it is checked whether or not the PowerLevel has exceeded the specified power P, which is the upper limit value of the infrared output. If not, the same processing is performed from S304. If the power level has reached the specified power P, the power level is initialized again in S30.
The same processing is performed from No. 3.

【0054】S305にて相手局からのXIDレスポン
スがあった、つまり相手局を発見した場合は、そのとき
の赤外線出力のレベルを出力パワーとして採用する。こ
れにより、探索処理が完了する。
If an XID response is received from the partner station in S305, that is, if the partner station is found, the level of the infrared output at that time is adopted as the output power. Thereby, the search processing is completed.

【0055】このように、本実施の形態では、局発見コ
マンドの出力を、減少させるのでなく増加させている。
したがって、もし、出力の増加途中で通信可能となった
場合は、わざわざ出力を最大値にまで増加させる必要が
なくなる。それゆえ、この分、消費電力の増加を抑える
ことができる。
As described above, in the present embodiment, the output of the station finding command is increased, not decreased.
Therefore, if communication becomes possible while the output is increasing, it is not necessary to increase the output to the maximum value. Therefore, an increase in power consumption can be suppressed accordingly.

【0056】さらに、本実施の形態では、S305にお
いて相手局を発見した場合には、S306において、初
めて相手局を発見したのか、あるいは以前に一度相手局
を発見していたのかを、上記SecondaryExistFlagを用い
て判断する。すなわち、初めて相手局を発見した場合
は、SecondaryExistFlagはFALSEとなっており、1
次局が赤外線出力レベルPowerLevelを上げながら局発見
を行う探索処理を行っている途中から相手局が通信可能
距離に達した可能性がある。この場合は、PowerLevel
は、通信可能な最低限の出力レベルであるとはいえな
い。そこで、もう一度、PowerLevelを最初の出力レベル
である1に戻し、S303より同様の処理を行う。この
ときは、S311において、SecondaryExistFlagをTR
UEにして、一度相手局を発見していることを記憶して
おく。S305にて相手局からの局発見レスポンスがあ
り、S306に進むと、この時点では、以前に相手局を
発見していているので、このときのPowerLevelが、通信
可能な最低限の赤外線出力レベルを表していることにな
る。そして、S307に進み、その出力レベルに相当す
る赤外線出力を実際の出力として適用する。このように
して最適化処理が完了する。
Further, in the present embodiment, when a partner station is found in S305, the above SecondaryExistFlag is determined in S306 as to whether the partner station has been found for the first time or whether the partner station has been found once before. Use and judge. That is, when the partner station is found for the first time, SecondaryExistFlag is set to FALSE, and 1
There is a possibility that the partner station has reached the communicable distance while the next station is performing the search processing for finding the station while increasing the infrared output level PowerLevel. In this case, PowerLevel
Is not the minimum output level at which communication is possible. Therefore, the PowerLevel is again returned to the initial output level of 1, and the same processing is performed from S303. In this case, in S311, the SecondaryExistFlag is set to TR.
The fact that the partner station has been found once is stored as the UE. In step S305, there is a station discovery response from the partner station. When the processing proceeds to step S306, since the partner station has been discovered before at this point, the PowerLevel at this time is set to the minimum infrared output level at which communication is possible. It will represent. Then, the process proceeds to S307, and the infrared output corresponding to the output level is applied as the actual output. Thus, the optimization processing is completed.

【0057】続いて、S308において、上述のコマン
ドSNRMを2次局に送出する。本実施の形態では、こ
のコマンドSNRMは、相手局に対して自局(1次局)
が適用している赤外線出力レベルを表す設定値を含んで
いる。S309において2次局からのUAレスポンスを
受信したかどうかを判断し、受信していればS310に
おいて通信は確立することになる。受信していなけれ
ば、S308から同様の処理を行う。
Subsequently, in S308, the above-mentioned command SNRM is sent to the secondary station. In the present embodiment, this command SNRM is transmitted from the own station (primary station) to the partner station.
Contains a set value representing the infrared output level being applied. In S309, it is determined whether a UA response from the secondary station has been received, and if it has been received, communication is established in S310. If not received, the same processing is performed from S308.

【0058】次に、図4を参照して、通信が確立するま
での処理において、2次局における出力を設定する手順
について説明する。S401において、2次局は、通信
確立要求の受け入れ体勢を整えた状態にある。S402
において、PowerLevelは上限値に設定しておく。このこ
とにより、S404における局発見レスポンス(XID
レスポンス)は必ず1次局に受信可能であることにな
る。S403において1次局からの局発見コマンド(X
IDコマンド)を受信し、S404において、任意のSl
otNumber番目を示すXIDコマンドの受信後にXIDレ
スポンスを送出する。このことにより、1次局は、2次
局が通信可能な距離に存在することを認識することがで
きる。
Next, with reference to FIG. 4, a procedure for setting an output in the secondary station in a process until communication is established will be described. In S401, the secondary station is in a state in which it is ready to accept a communication establishment request. S402
In, PowerLevel is set to the upper limit. As a result, the station discovery response (XID
Response) can always be received by the primary station. In S403, a station discovery command (X
ID command), and in S404, an arbitrary Sl
After receiving the XID command indicating the otNumber-th, an XID response is transmitted. As a result, the primary station can recognize that the secondary station is within a communication distance of the secondary station.

【0059】続いて、本実施の形態においては、S40
5において、2次局は、上述の赤外線出力レベルを示す
設定値を含むコマンドSNRMを1次局から受信したか
どうかを判断する。受信していれば、S406において
その赤外線出力レベルを採用し、そのレベルに相当する
赤外線出力を適用する。受信していなければ、S403
から同様の処理を行う。S407においてUAレスポン
スを送出し、S408において通信が確立した状態にな
る。このようにして、2次局における出力が設定され
る。
Subsequently, in the present embodiment, S40
At 5, the secondary station determines whether a command SNRM including the above-mentioned set value indicating the infrared output level has been received from the primary station. If received, the infrared output level is adopted in S406, and an infrared output corresponding to the level is applied. If not received, S403
And the same process is performed. A UA response is sent in S407, and communication is established in S408. In this way, the output at the secondary station is set.

【0060】次に、図5を参照して、1次局における、
通信確立後の最適出力を決定する手順について説明す
る。この処理は、再送が頻繁に起こるような場合に、出
力を適正にすることにより、良好に通信を続けるための
ものである。ここで、(広義の)再送とは、通信中のエ
ラーにより通信データが壊れた場合に、そのデータを受
け取った側が、同じデータをその送信元の局に送り返す
等によって、相手局に、データを送りなおしてもらうよ
うに要求する処理(再送要求)や、実際に上記送信元の
局から、データを送りなおしてもらう処理(狭義の再
送)を指す。なお、ここでは、特に断りのない限り、上
記広義の再送を単に再送と称することとする。
Next, referring to FIG. 5, in the primary station,
A procedure for determining the optimum output after establishing the communication will be described. This processing is for maintaining good communication by adjusting the output when retransmission frequently occurs. Here, retransmission (in a broad sense) means that, when communication data is corrupted due to an error during communication, the data receiving side sends the same data back to the transmitting station by sending the same data to the transmitting station. It refers to a process of requesting retransmission (retransmission request) or a process of actually retransmitting data from the transmission source station (retransmission in a narrow sense). Here, unless otherwise specified, retransmission in the broad sense is simply referred to as retransmission.

【0061】S501において、通信が確立した状態に
ある。S502において、1次局の通信コントローラ1
04内のタイマーをリセット(初期化)する。続いて、
S503においてタイマーをセットし、ある一定時間後
にタイマーが満了するようにしておく。S504におい
て通信処理を行う。S505において、タイマーが満了
していなければ、S504の通信処理を引き続き行う。
In step S501, communication has been established. In S502, the communication controller 1 of the primary station
The timer in 04 is reset (initialized). continue,
In step S503, a timer is set, and the timer expires after a certain period of time. Communication processing is performed in S504. If the timer has not expired in S505, the communication processing in S504 is continued.

【0062】S505においてタイマーが満了していれ
ば、通信コントローラ104は、S506において、単
位時間あたりに起こった再送数を調べることによって、
再送頻度を調査する。すなわち、タイマーがセットされ
てから満了するまでの時間に起こった再送の回数を数え
ておき、その回数をこの時間で割ればよい。そして、こ
れにより得られる再送頻度が、ある一定の基準値を超え
ているかどうかを判断する。
If the timer has expired in step S505, the communication controller 104 checks in step S506 the number of retransmissions that occurred per unit time.
Investigate retransmission frequency. That is, the number of retransmissions that occurred during the time from when the timer was set to when it expired may be counted, and the number may be divided by this time. Then, it is determined whether or not the obtained retransmission frequency exceeds a certain reference value.

【0063】なお、再送として回数を数える対象として
は、上述の再送要求の回数や狭義の再送の回数等が挙げ
られるが、通信エラーのせいで正しく送れなかったデー
タを送りなおす処理の頻度を示すものであればよく、こ
れらに限定されない。
The number of retransmissions to be counted includes the number of retransmission requests and the number of retransmissions in a narrow sense as described above. The frequency of retransmission of data that could not be transmitted correctly due to a communication error is shown. What is necessary is just a thing and it is not limited to these.

【0064】赤外線の出力が小さいために信号レベルに
対するノイズのレベルが大きくなり、その結果エラーが
引き起こされることが、再送が多く発生する原因と考え
られる。そのため、S506において、再送頻度が上記
基準値を上回っていれば、S507において、赤外線出
力レベルを1段階上げる。なお、S508において、出
力が上限値(規定パワーP)を上回っているかを判断
し、上回っていれば、S509において、出力はこの上
限値に設定しておく。このようにして、通信確立後の1
次局における最適出力が決定される。その後、S510
において、相手局(2次局)に、変更後の赤外線出力レ
ベル(PowerLevel)を通知し、S502より同様の処理
を繰り返す。
The fact that the level of noise relative to the signal level increases due to the low infrared output, resulting in an error, is considered to be the cause of the large number of retransmissions. Therefore, if the retransmission frequency exceeds the reference value in S506, the infrared output level is increased by one step in S507. In step S508, it is determined whether the output exceeds the upper limit (specified power P). If the output exceeds the upper limit, the output is set to the upper limit in step S509. Thus, 1 after communication is established
The optimum output at the next station is determined. After that, S510
In step (2), the remote station (secondary station) is notified of the changed infrared output level (PowerLevel), and the same processing is repeated from step S502.

【0065】S506において、再送頻度が上記基準値
を上回っていなければ、S502より同様の処理を繰り
返す。
In S506, if the retransmission frequency does not exceed the reference value, the same processing is repeated from S502.

【0066】本実施の形態においては、再送頻度調査
は、上記S502ないしS506に示すように、定期的
に行っている。すなわち、タイマーが満了し次第、再び
タイマーをリセットおよびセットしてカウントを開始す
ることにより、再送頻度を絶えず連続的に調査してい
る。それゆえ、頻繁に再送が起こるような状況に迅速に
対応して通信状態を改善し、それにより迅速に通信を完
了させることができる。
In this embodiment, the retransmission frequency check is periodically performed as shown in S502 to S506. That is, as soon as the timer expires, the timer is reset and set again to start counting, thereby continuously and continuously examining the retransmission frequency. Therefore, it is possible to quickly respond to a situation in which retransmission frequently occurs, improve the communication state, and thereby quickly complete the communication.

【0067】なお、再送頻度が基準値以上であったとき
に、現在の1次局の出力パワーが最大レベルに達してい
る場合は、もうそれ以上出力パワーを上げることができ
ない。そのため、そのことを示す警告音や警告表示を、
1次局の表示部(図示せず)や音声出力部(図示せず)
から出力するようにすることもできる。また、通信アプ
リケーション101から、より上位のアプリケーション
ソフトウエア(図示せず)へ警告出力を送出し、コンピ
ュータにより警告処理を行わせることもできる。これに
より、利用者が、出力を最大パワーにまで上げても再送
頻度を充分下げることができないような通信環境である
ことを容易に把握することができる。
When the retransmission frequency is equal to or higher than the reference value and the output power of the current primary station has reached the maximum level, the output power cannot be increased any more. Therefore, a warning sound or warning display
Primary station display (not shown) or audio output (not shown)
It can also be output from. In addition, a warning output can be sent from the communication application 101 to higher application software (not shown), and the computer can perform a warning process. Accordingly, it is possible to easily understand that the communication environment is such that the user cannot sufficiently reduce the retransmission frequency even if the output is increased to the maximum power.

【0068】次に、図6を参照して、2次局における、
通信確立後の最適出力を決定する手順について説明す
る。S601において、通信が確立した状態にある。S
602において、通信処理を行い、S603において、
2次局の通信コントローラ104は、1次局からの赤外
線出力レベル(PowerLevel)(図5のS510参照)を
受信したかどうかを判断し、受信していなければ、S6
02の通信処理を引き続き行う。受信していれば、S6
04において、1次局が適用した赤外線出力レベルを適
用し、S602から同様の処理を行う。
Next, referring to FIG. 6, in the secondary station,
A procedure for determining the optimum output after establishing the communication will be described. In step S601, communication has been established. S
In 602, communication processing is performed, and in S603,
The communication controller 104 of the secondary station determines whether or not the infrared output level (PowerLevel) (see S510 in FIG. 5) has been received from the primary station.
02 is continued. If received, S6
In step 04, the same processing is performed from S602 by applying the infrared output level applied by the primary station.

【0069】なお、2次局においても、1次局と同様の
処理を行ってもよい。すなわち、2次局からの再送要求
の頻度等を1次局で調査してその結果に応じて1次局の
出力を上げるのと同様に、1次局からの再送要求の頻度
等を2次局で調査してその結果に応じて2次局の出力を
上げるというようにしてもよい。
Note that the secondary station may perform the same processing as the primary station. In other words, the frequency of retransmission requests from the secondary station is checked by the primary station and the output of the primary station is increased according to the result. The station may investigate and increase the output of the secondary station according to the result.

【0070】本実施の形態に係る通信装置における1次
局と2次局との組み合わせの例としては、例えば、携帯
電話やその他の携帯情報機器を1次局とし、パーソナル
コンピュータ(以下パソコンと称する)や、携帯電話等
を含めた電話機を2次局とする。また、デジタルカメラ
を1次局とし、パソコンを2次局とする。しかし、これ
らに限定されず、光伝送を用いた双方向通信を行う機器
同士であればよい。また、これらの機器は、一般には、
どちらも1次局にも2次局にもなることができ、また、
どちらが1次局、2次局になってもよい。
As an example of the combination of the primary station and the secondary station in the communication apparatus according to the present embodiment, for example, a cellular phone or other portable information equipment is used as a primary station and a personal computer (hereinafter referred to as a personal computer). ) And telephones including mobile phones and the like are defined as secondary stations. The digital camera is the primary station, and the personal computer is the secondary station. However, the present invention is not limited thereto, and devices that perform two-way communication using optical transmission may be used. Also, these devices are generally
Both can be primary and secondary stations, and
Either may be the primary station or the secondary station.

【0071】また、1次局の各出力レベルを、最大値で
ある上記規定パワーPの(1/2n2 (n=1、2、
3、…)に設定した構成とすることができる。すなわ
ち、例えばnを1ないし4とすれば、1次局の各出力レ
ベルは、最大値(上記規定パワーP)の1/4, 1/16, 1/6
4, 1/256となる。このことから、両局間の距離が規定距
離Lの1/2, 1/4, 1/8, 1/16 であれば、それぞれ、出力
レベルは、最大値(P)の1/4, 1/16, 1/64, 1/256であ
れば充分通信可能ということである。
The output level of the primary station is set to (1/2 n ) 2 (n = 1, 2,
3,...). That is, for example, if n is 1 to 4, each output level of the primary station is 1/4, 1/16, 1/6 of the maximum value (the specified power P).
4, 1/256. From this, if the distance between the two stations is 1/2, 1/4, 1/8, 1/16 of the specified distance L, the output level becomes 1/4, 1 of the maximum value (P), respectively. / 16, 1/64, 1/256 means that communication is sufficient.

【0072】この場合には、両局間が近くなるほど、隣
接した出力レベル(例えば(1/64)Pと(1/256) P)に対
応する距離((1/8) Lと(1/16)L)同士の差が急激に小
さくなっていく。言い換えれば、両局間が近い状況で
は、少しの移動に応じて、通信可能な出力レベルが細か
く変化する。そのため、両局が近いときには、1次局と
2次局とが互いに近づくように、いずれか一方あるいは
両方の局をわずかに移動させるだけで、1段階低い出力
レベルでも充分通信可能な状態とすることができる。す
なわち、例えば、両局のうち、移動が容易な装置側を、
移動が困難な装置側に近づく方向にわずかに移動させる
だけでよい。それゆえ、両局間の距離を少し縮めるだけ
で、1次局の消費電力を大幅に減少させることができ
る。
In this case, the closer the two stations are, the closer the distances ((1/8) L and (1/8) L corresponding to the adjacent output levels (for example, (1/64) P and (1/256) P) are. 16) The difference between L) decreases rapidly. In other words, in a situation where the two stations are close to each other, the communicable output level slightly changes according to a slight movement. Therefore, when the two stations are close to each other, only one or both stations are slightly moved so that the primary station and the secondary station are close to each other, and a state in which communication can be sufficiently performed even at an output level one step lower. be able to. That is, for example, of both stations, the device side that is easy to move,
Only a slight movement in the direction approaching the device side where movement is difficult is sufficient. Therefore, the power consumption of the primary station can be significantly reduced by only slightly reducing the distance between the two stations.

【0073】なお、1次局および2次局については、例
えば、携帯端末機器等のように移動が容易な通信機器が
1次局(XIDコマンドを送出する側)であり、据え置
き型のパソコン等のように移動が困難な固定的な装置が
2次局(XIDレスポンスを送出する側)であってもよ
い。この場合には、両局同士を互いに近づけるには、1
次局を2次局側へ移動させればよい。
As for the primary station and the secondary station, for example, a communication device that is easily movable such as a portable terminal device is a primary station (a side that sends an XID command), and a stationary personal computer or the like. The fixed device that is difficult to move as described above may be the secondary station (the side that sends the XID response). In this case, to bring both stations closer to each other, 1
The next station may be moved to the secondary station.

【0074】また、逆に、このような固定的な装置が1
次局であり、携帯端末機器のように移動が容易な通信機
器が2次局であってもよい。例えば、固定的な装置であ
るパソコン(1次局)上で、ワープロや表計算ソフトウ
エア等のような上位ソフトウエアを実行し、そのソフト
ウエアが、赤外線通信ソフトウエアを起動して、自分自
身をデータ受信状態に設定する。そして、2次局である
携帯端末機器に対してXIDコマンドを送出し、自分
(上記上位ソフトウエア、すなわち上記パソコン)へデ
ータを送信するように携帯端末機器に要求する。携帯端
末機器は、XIDレスポンスを送出するとともに、上記
要求を受けて、データを上記パソコンへ送信する。この
場合には、両局同士を互いに近づけるには、2次局を1
次局側へ移動させればよい。
On the other hand, such a fixed device is
The secondary station may be a communication device that is the next station and that is easily movable such as a portable terminal device. For example, on a fixed personal computer (primary station), upper-level software such as a word processor or spreadsheet software is executed, and the software activates infrared communication software and executes itself. Is set to the data receiving state. Then, an XID command is sent to the portable terminal device which is the secondary station, and the portable terminal device requests the portable terminal device to transmit data to itself (the above-mentioned high-level software, that is, the personal computer). The mobile terminal device transmits the XID response and, upon receiving the request, transmits data to the personal computer. In this case, in order to bring both stations closer to each other, set the secondary station to 1
It may be moved to the next station.

【0075】また、本実施の形態を変形して、通信確立
時の出力設定処理について、下記(1)や(2)のよう
に、1次局と2次局とを入れ替えて考えた構成とするこ
ともできる。
Further, by modifying the present embodiment, the output setting process at the time of establishing communication is configured by replacing the primary station with the secondary station as shown in (1) and (2) below. You can also.

【0076】(1) 1次局から出力されるXIDコマ
ンドの出力を増加させるのではなく、1次局から出力さ
れるXIDコマンドに対して2次局から出力されるXI
Dレスポンスの出力を、初期値から、このXIDレスポ
ンスに対する1次局からの応答があるまで増加させなが
ら、XIDレスポンスを出力する。そして、1次局から
の応答があれば、そのときのXIDレスポンスの出力
を、2次局から1次局への出力パワーとして設定するよ
うな構成とすることができる。
(1) Instead of increasing the output of the XID command output from the primary station, the XI output from the secondary station in response to the XID command output from the primary station
The XID response is output while increasing the output of the D response from the initial value until there is a response from the primary station to the XID response. Then, if there is a response from the primary station, the output of the XID response at that time can be set as the output power from the secondary station to the primary station.

【0077】このように構成すれば、2次局の出力を、
減少させるのでなく増加させることになるので、もし、
通信開始時にXIDレスポンスの出力の増加途中で通信
可能となった場合は、わざわざXIDレスポンスの出力
を最大値にまで増加させる必要がなくなる。それゆえ、
この分、消費電力の増加を抑えることができる。
With this configuration, the output of the secondary station is
Because it will increase rather than decrease,
When communication becomes possible during the increase of the output of the XID response at the start of communication, it is not necessary to increase the output of the XID response to the maximum value. therefore,
Accordingly, an increase in power consumption can be suppressed.

【0078】(2) 上記(1)の構成に加えて、上述
のようにして1次局からの応答に応じてそのときのXI
Dレスポンスの出力を2次局から1次局への出力パワー
として設定した後、XIDレスポンスの出力を再度上記
初期値にして、このXIDレスポンスに対する1次局か
らの応答があるまで出力を増加させながらXIDレスポ
ンスを出力し、1次局からの応答があれば、そのときの
XIDレスポンスの出力を、2次局から1次局への出力
パワーとして設定する。
(2) In addition to the configuration of the above (1), the XI at that time in response to the response from the primary station as described above
After setting the output of the D response as the output power from the secondary station to the primary station, the output of the XID response is set to the initial value again, and the output is increased until there is a response from the primary station to this XID response. While outputting the XID response, if there is a response from the primary station, the output of the XID response at that time is set as the output power from the secondary station to the primary station.

【0079】このように構成すれば、XIDレスポンス
の出力を2次局からの出力パワーとして設定した後、1
次局または2次局の少なくとも一方が以前より近い場所
へと移動したときや、両局間の発光部・受光部同士が正
しく相手のほうを向き合うように角度が変化したときの
ように、通信環境が変化した場合には、先ほど設定値と
して採用したのよりも小さい出力パワーで充分通信可能
であることを検出し、その出力パワーを採用することが
できる。また逆に、距離が離れた場合や上記角度のずれ
がひどくなった場合でも、先ほど設定値として採用した
のよりも出力パワーを大きくすれば通信可能であること
を検出し、その出力パワーを設定値として採用すること
ができる。それゆえ、両局間の距離や角度といった通信
環境が変化しても、確実に、通信可能な最小の出力パワ
ーを見いだすことができる。
With this configuration, after setting the output of the XID response as the output power from the secondary station,
Communication such as when at least one of the next station and the secondary station moves closer to the previous station, or when the angle changes so that the light emitting unit and light receiving unit between the two stations face each other correctly. If the environment changes, it is detected that sufficient communication is possible with an output power smaller than that previously adopted as the set value, and that output power can be employed. Conversely, even when the distance is large or the angle deviation is severe, it is detected that communication is possible if the output power is increased as compared with the setting value, and the output power is set. It can be adopted as a value. Therefore, even if the communication environment such as the distance or the angle between the two stations changes, it is possible to reliably find the minimum communicable output power.

【0080】上記(1)および(2)の構成における出
力設定の具体的な手順としては、図3を用いた前述の説
明において2次局側でこの処理を行い、一方、図4を用
いた前述の説明において1次局側でこの処理を行えばよ
い。この場合、図3を用いた前述の説明において、S3
04、S305をそれぞれ、局発見レスポンスの送出、
その局発見レスポンスに対する相手局(1次局)からの
返答(XRとする)の有無の検査に置き換え、S30
8、S309をそれぞれ、相手局に最適なPowerLevelを
含む任意のコマンド(PCとする)の送出、相手局(1
次局)からそのコマンドPCへのレスポンス(PRとす
る)を受信したか否かの検査に置き換えればよい。一
方、図4を用いた前述の説明において、S402にて、
PowerLevelを上限値に設定するとともに局発見コマンド
を送出する。また、S403、S404、S405、S
407をそれぞれ、2次局からの局発見レスポンスの受
信、その局発見レスポンスへの任意の上記返答XRの送
出、2次局から上記コマンドPCを受信したか否かの検
査、上記レスポンスPRの送出に置き換えればよい。
As a specific procedure of the output setting in the above configurations (1) and (2), this processing is performed on the secondary station side in the above description with reference to FIG. 3, while FIG. 4 is used. In the above description, this processing may be performed on the primary station side. In this case, in the above description with reference to FIG.
04 and S305, respectively, sending a station discovery response,
In step S30, the inspection is replaced with an inspection for the presence / absence of a response (XR) from the partner station (primary station) to the station discovery response.
8 and S309, respectively, sending an arbitrary command (referred to as PC) including the optimum PowerLevel to the partner station,
It may be replaced with a check as to whether a response (PR) to the command PC from the next station) is received. On the other hand, in the above description with reference to FIG.
Set PowerLevel to the upper limit and send a station discovery command. Also, S403, S404, S405, S
407, receiving a station discovery response from the secondary station, transmitting any reply XR to the station discovery response, checking whether the command PC has been received from the secondary station, and transmitting the response PR, respectively. Can be replaced with

【0081】〔実施の形態2〕本発明の他の実施の形態
について図5および図8に基づいて説明すれば、以下の
通りである。なお、説明の便宜上、前記の実施の形態の
図面に示した部材と同一の機能を有する部材には、同一
の符号を付記してその説明を省略する。
[Second Embodiment] The following will describe another embodiment of the present invention with reference to FIGS. For convenience of explanation, members having the same functions as the members shown in the drawings of the above-described embodiment are denoted by the same reference numerals, and description thereof will be omitted.

【0082】本実施の形態においては、基本的には実施
の形態1と同一である。本実施の形態においては、再送
が頻繁に起こる場合の対処として、前述の図5と異な
り、図8のフローチャートに従って処理される。すなわ
ち、まず、S801において通信が確立した状態にあ
る。そして、S802において通信処理を行う。ここ
で、S803において、2次局からの再送要求を1次局
が受信したら、S804において1次局の通信コントロ
ーラ104がタイマーをリセットする。そして、S80
5ないしS808において、図5のS503ないしS5
06同様、再送頻度を調査する。そして、S808にお
いて、再送頻度が基準値以下であれば、図5の例と異な
りタイマーの再設定処理には戻らず、S802の通信処
理に戻る。そして、S803にて、再び、再送要求の受
信の有無を監視する。
The present embodiment is basically the same as the first embodiment. In the present embodiment, as a countermeasure for a case where retransmission frequently occurs, processing is performed according to the flowchart of FIG. 8 unlike FIG. 5 described above. That is, first, communication is established in S801. Then, communication processing is performed in S802. Here, when the primary station receives a retransmission request from the secondary station in S803, the communication controller 104 of the primary station resets the timer in S804. And S80
5 to S808, S503 to S5 in FIG.
As in 06, the retransmission frequency is checked. If the retransmission frequency is equal to or less than the reference value in step S808, the process returns to the communication process in step S802 without returning to the timer resetting process, unlike the example of FIG. Then, in S803, whether or not a retransmission request has been received is monitored again.

【0083】同様に、S808において再送頻度が基準
値を超えていた場合も、S507ないしS510に相当
するS809ないしS812の処理を行って相手局(2
次局)にPowerLevelを送出した後は、図5と異なり、S
802の通信処理に戻り、S803にて、再送要求の受
信の有無を再び監視する。
Similarly, even if the retransmission frequency exceeds the reference value in S808, the processing of S809 to S812 corresponding to S507 to S510 is performed and the destination station (2
After sending the PowerLevel to the (next station), unlike FIG.
Returning to the communication process of 802, in S803, the presence / absence of the reception of the retransmission request is monitored again.

【0084】このように、本実施の形態においては、再
送要求を1次局が受信するまでは上記調査を行わず、再
送要求を1次局が受信すると上記調査を開始する。した
がって、上記調査は頻繁には行わず、再送要求が実際に
発生したときに限って上記調査を開始することになる。
それゆえ、連続的に調査するのと異なり、調査のための
電力消費量の増加を抑えることができる。
As described above, in the present embodiment, the above investigation is not performed until the primary station receives the retransmission request, and the above investigation is started when the primary station receives the retransmission request. Therefore, the above investigation is not performed frequently, and the above investigation is started only when a retransmission request actually occurs.
Therefore, it is possible to suppress an increase in power consumption for the survey, unlike the case where the survey is performed continuously.

【0085】なお、本発明に係る通信方法を、下記のよ
うに構成してもよい。すなわち、本発明に係る通信方法
は、ハンドシェーク手順を有する赤外線空間伝送通信方
法において、局発見コマンドの赤外線出力を変えて送出
する構成とすることができる。上記の方法によれば、通
信可能な最低限の赤外線出力を設定することで、消費電
力を低減することができる。
The communication method according to the present invention may be configured as follows. That is, the communication method according to the present invention can be configured such that, in the infrared space transmission communication method having the handshake procedure, the infrared output of the station finding command is changed and transmitted. According to the above method, the power consumption can be reduced by setting the minimum communicable infrared output.

【0086】また、本発明に係る通信方法は、上記の構
成において、局発見コマンドの赤外線出力を、小さい出
力から徐々に大きくしていく構成とすることができる。
上記の方法によれば、最適な赤外線出力を得る処理中に
おける消費電力を低減することができる。
Further, in the communication method according to the present invention, in the above-mentioned configuration, the infrared output of the station finding command may be gradually increased from a small output.
According to the above method, it is possible to reduce power consumption during a process of obtaining an optimal infrared output.

【0087】また、本発明に係る通信方法は、上記の構
成において、通信相手からの応答があるまで赤外線出力
を上げる構成とすることができる。上記の方法によれ
ば、通信可能な最低限の赤外線出力値を得ることができ
る。
In the communication method according to the present invention, the infrared output may be increased until there is a response from the communication partner in the above configuration. According to the above method, a minimum communicable infrared output value can be obtained.

【0088】また、本発明に係る通信方法は、上記の構
成において、通信相手からの応答がある、つまり相手局
を発見した場合に、再度最初の赤外線出力から、上記構
成の処理を行う構成とすることができる。上記の方法に
よれば、局発見コマンド送出の途中から通信可能位置に
達した相手局に対して、通信可能な最低限の赤外線出力
値を見つけることができる。
Further, according to the communication method of the present invention, in the above configuration, when there is a response from a communication partner, that is, when a partner station is found, the processing of the above configuration is performed again from the first infrared output. can do. According to the above method, it is possible to find the minimum communicable infrared output value for the partner station that has reached the communicable position during the transmission of the station finding command.

【0089】また、本発明に係る通信方法は、上記の構
成において、通信に用いる通信速度等の設定値を相手局
に伝える際に、赤外線出力値を伝える構成とすることが
できる。上記の方法によれば、相手局も同様の赤外線出
力値を用いることにより、相手局が消費する無駄な電力
を低減することができる。
Further, in the communication method according to the present invention, in the above configuration, when a set value such as a communication speed used for communication is transmitted to a partner station, an infrared output value can be transmitted. According to the above method, the other station uses the same infrared output value, so that the useless power consumed by the other station can be reduced.

【0090】また、本発明に係る通信方法は、ハンドシ
ェーク手順を有する赤外線空間伝送通信方法において、
相手局が採用している赤外線出力値に合わせて自局の赤
外線出力値を変更する構成とすることができる。上記の
方法によれば、最適な赤外線出力値を適用している相手
局と同様の赤外線出力値を用いることにより、自局が消
費する無駄な電力を低減することができる。
The communication method according to the present invention is an infrared space transmission communication method having a handshake procedure.
It is possible to adopt a configuration in which the infrared output value of the own station is changed in accordance with the infrared output value adopted by the partner station. According to the above method, by using the same infrared output value as that of the partner station to which the optimum infrared output value is applied, it is possible to reduce unnecessary power consumed by the own station.

【0091】また、本発明に係る通信方法は、再送手順
を有する赤外線空間伝送通信方法において、通信の確立
後、赤外線出力を変えて通信データを送出する構成とす
ることができる。上記の方法によれば、通信中の環境の
変化や距離の変化に対応した出力を設定することができ
る。
Further, the communication method according to the present invention, in the infrared space transmission communication method having a retransmission procedure, may be configured such that after establishing communication, communication data is transmitted by changing the infrared output. According to the above method, it is possible to set an output corresponding to a change in environment or a change in distance during communication.

【0092】また、本発明に係る通信方法は、上記の構
成において、定期的に赤外線出力の最適化を行う構成と
することができる。上記の方法によれば、通信中の環境
の変化や距離の変化に対応した出力を設定することがで
きる。
Further, in the communication method according to the present invention, in the above-described configuration, the configuration may be such that the infrared output is periodically optimized. According to the above method, it is possible to set an output corresponding to a change in environment or a change in distance during communication.

【0093】また、本発明に係る通信方法は、上記の構
成において、再送要求が単位時間あたり一定の基準値を
超える回数に達することにより出力の最適化を行う構成
とすることができる。上記の方法によれば、通信中の環
境の変化や距離の変化によって通信が遮断されることを
防止することができる。
Further, in the communication method according to the present invention, in the above-mentioned configuration, the output can be optimized when the number of retransmission requests exceeds a certain reference value per unit time. According to the above method, it is possible to prevent communication from being interrupted due to a change in environment or a change in distance during communication.

【0094】また、本発明に係る通信方法は、上記の構
成において、赤外線出力値を変更した際に、相手局に対
して赤外線出力値を伝える構成とすることができる。上
記の方法によれば、相手局も同様の赤外線出力値を用い
ることにより、相手局が消費する無駄な電力を低減する
ことができる。
Further, in the communication method according to the present invention, in the above configuration, when the infrared output value is changed, the infrared output value can be transmitted to the partner station. According to the above method, the other station uses the same infrared output value, so that the useless power consumed by the other station can be reduced.

【0095】また、本発明に係る通信方法は、上記の構
成において、相手局が採用している赤外線出力値に合わ
せて自局の赤外線出力値を変更する構成とすることがで
きる。上記の方法によれば、最適な赤外線出力値を適用
している相手局と同様の赤外線出力値を用いることによ
り、自局が消費する無駄な電力を低減することができ
る。
Further, the communication method according to the present invention may be arranged such that, in the above configuration, the infrared output value of the own station is changed in accordance with the infrared output value adopted by the partner station. According to the above method, by using the same infrared output value as that of the partner station to which the optimum infrared output value is applied, it is possible to reduce unnecessary power consumed by the own station.

【0096】[0096]

【発明の効果】以上のように、本発明の請求項1に記載
の通信方法は、1次局と2次局との間で光の伝送により
通信を行うとともに、1次局の出力を可変とする通信方
法において、1次局から出力する局発見コマンドの出力
を、初期値から、2次局からの応答があるまで増加させ
ながら上記局発見コマンドを出力する方法である。
As described above, the communication method according to the first aspect of the present invention performs communication by transmitting light between the primary station and the secondary station, and varies the output of the primary station. In this communication method, the output of the station discovery command output from the primary station is increased from the initial value until a response is received from the secondary station, and the station discovery command is output.

【0097】また、請求項6に記載の通信装置は、相手
局との間で光の伝送により通信を行うとともに、相手局
への出力を可変とする通信装置において、相手局を発見
するための局発見コマンドを出力する出力手段と、上記
出力手段からの局発見コマンドの出力を、初期値から、
相手局からの応答があるまで増加させる出力パワー設定
手段とを有する構成である。
A communication device according to a sixth aspect of the present invention communicates with a partner station by transmitting light and has a variable output to the partner station. Output means for outputting a station finding command, and outputting the station finding command from the output means from an initial value,
Output power setting means for increasing the response power until there is a response from the partner station.

【0098】それゆえ、消費電力の増加を抑えることが
できるという効果を奏する。
Therefore, there is an effect that an increase in power consumption can be suppressed.

【0099】また、請求項に記載の通信方法は、2次
局からの応答があれば、上記局発見コマンドの出力を再
度上記初期値にして、上記2次局からの応答があるまで
出力を増加させながら上記局発見コマンドを出力し、
れに対して2次局からの応答があれば、そのときの上記
局発見コマンドの出力を、1次局から2次局への出力パ
ワーとして設定する方法である。
[0099] Also, The communication method according to claim 1, secondary
If there is a response from the station, then again to the initial value output from the station discovery command, while increasing the output until there is a response from the secondary station outputs the station discovery command, its
In response to this, if there is a response from the secondary station, the output of the station discovery command at that time is set as output power from the primary station to the secondary station.

【0100】また、請求項に記載の通信装置は、相手
局からの応答があれば、上記出力パワー設定手段が、上
記局発見コマンドの出力を再度上記初期値にして、上記
相手局からの応答があるまで出力を増加させ、それに対
して相手局からの応答があれば、そのときの上記局発見
コマンドの出力を、相手局への出力パワーとして設定す
る構成である。
[0100] The communication apparatus according to claim 6, opponent
If there is a response from the station, the output power setting means sets the output of the station finding command to the initial value again, and increases the output until there is a response from the partner station .
Then, if there is a response from the partner station, the output of the station discovery command at that time is set as output power to the partner station.

【0101】それゆえ、両局間の距離や角度といった通
信環境が変化しても、確実に、通信可能な最小の出力パ
ワーを見いだすことができるという効果を奏する。
Therefore, even if the communication environment such as the distance or the angle between the two stations changes, an effect that the minimum output power capable of performing communication can be reliably found.

【0102】請求項2記載の通信方法は、請求項1に記
載の構成に加えて、上記1次局は、設定した出力パワー
を、通信に必要となる設定値とともに2次局に知らせ、
2次局は、それに基づいて出力パワーを設定する方法で
ある。 請求項7記載の通信装置は、請求項6に記載の構
成に加えて、設定した出力パワーを、通信に必要となる
設定値とともに相手局に知らせ、相手局にそれに基づい
て出力パワーを設定させる構成である。請求項3に記載
の通信方法は、請求項1または2に記載の構成に加え
て、1次局から2次局へ送るデータについての再送の発
生頻度を調査し、該頻度が基準値を越えた場合に、1次
局からの出力を、現在の値から増加させて出力する方法
である。
The communication method according to the second aspect is the communication method according to the first aspect.
In addition to the configuration described above, the primary station has a set output power
To the secondary station together with the setting values required for communication,
The secondary station sets the output power based on it
is there. A communication device according to a seventh aspect is the communication device according to the sixth aspect.
In addition to configuration, the set output power is required for communication
Notify the partner station with the set value, and the partner station
In this configuration, the output power is set. According to a third aspect of the present invention, there is provided a communication method according to the first or second aspect.
Then, the frequency of retransmission of data sent from the primary station to the secondary station is investigated, and when the frequency exceeds a reference value, the output from the primary station is increased from the current value and output. Is the way.

【0103】また、請求項8に記載の通信装置は、請求
項6または7に記載の構成に加えて、相手局へ送るデー
タについての再送の発生頻度を調査する再送調査手段
有し、該頻度が基準値を越えた場合に、上記出力パワー
設定手段が、相手局への出力を、現在の値から増加させ
て出力する構成である。
[0103] The communication device of claim 8, wherein
In addition to the configuration described in item 6 or 7, a retransmission investigation means for investigating the frequency of retransmission of data to be transmitted to the partner station is provided.
The output power when the frequency exceeds a reference value.
The configuration is such that the setting means increases the output to the partner station from the current value and outputs the result.

【0104】それゆえ、消費電力の増加を抑えることが
できるという効果を奏する。
Therefore, there is an effect that an increase in power consumption can be suppressed.

【0105】また、通信できる最小のパワーに設定した
後等に、通信中に移動等により通信状態が悪くなり再送
が頻発することがあっても、良好に通信を続けることが
できるという効果を奏する。
Further, even after the communication power is set to the minimum power at which communication can be performed, even if the communication state deteriorates due to movement during communication and retransmission frequently occurs, communication can be satisfactorily continued. .

【0106】請求項4に記載の通信方法は、請求項3の
構成に加えて、上記調査を定期的に行う方法である。
A communication method according to a fourth aspect is a method in which the above-mentioned investigation is periodically performed in addition to the configuration of the third aspect.

【0107】また、請求項9に記載の通信装置は、請求
項8の構成に加えて、上記再送調査手段が、上記調査を
定期的に行う構成である。
Further, the communication apparatus according to the ninth aspect is configured such that, in addition to the configuration of the eighth aspect, the retransmission investigation unit periodically performs the investigation.

【0108】それゆえ、請求項3または8の構成による
効果に加えて、頻繁に再送が起こるような状況に迅速に
対応して通信状態を改善し、それにより迅速に通信を完
了させることができるという効果を奏する。
Therefore, in addition to the effect of the configuration of claim 3 or 8, the communication state can be improved promptly in response to a situation where frequent retransmission occurs, and the communication can be completed quickly. This has the effect.

【0109】請求項5に記載の通信方法は、請求項3の
構成に加えて、再送要求を1次局が受信するまでは上記
調査を行わず、再送要求を1次局が受信すると上記調査
を開始する方法である。
According to a fifth aspect of the present invention, in addition to the configuration of the third aspect, the above investigation is not performed until the primary station receives the retransmission request, and the above investigation is performed when the primary station receives the retransmission request. Is the way to start.

【0110】また、請求項10に記載の通信装置は、請
求項8の構成に加えて、上記再送調査手段が、再送要求
を受信するまでは上記調査を行わず、再送要求を受信す
ると上記調査を開始する構成である。
According to a tenth aspect of the present invention, in addition to the configuration of the eighth aspect, in addition to the configuration of the eighth aspect, the retransmission investigation unit does not perform the inspection until a retransmission request is received, and performs the inspection when a retransmission request is received. This is the configuration for starting.

【0111】それゆえ、請求項3または8の構成による
効果に加えて、連続的に調査するのと異なり、調査のた
めの電力消費量の増加を抑えることができるという効果
を奏する。
Therefore, in addition to the effect of the configuration of claim 3 or 8, there is an effect that it is possible to suppress an increase in power consumption for the investigation, unlike the case of performing the investigation continuously.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明に係る通信装置の一構成例における概略
の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a configuration example of a communication device according to the present invention.

【図2】赤外線空間伝送における通信が確立するまでの
手順の例を示した説明図である。
FIG. 2 is an explanatory diagram showing an example of a procedure until communication in infrared space transmission is established.

【図3】図1の構成における1次局にて行う局発見およ
び出力制御処理を示すフローチャートである。
FIG. 3 is a flowchart showing station discovery and output control processing performed by a primary station in the configuration of FIG. 1;

【図4】図1の構成における2次局にて行う局発見およ
び出力制御処理を示すフローチャートである。
FIG. 4 is a flowchart showing a station discovery and output control process performed by a secondary station in the configuration of FIG. 1;

【図5】図1の構成における1次局にて行う通信確立後
の出力制御処理を示すフローチャートである。
FIG. 5 is a flowchart showing an output control process after communication establishment performed by the primary station in the configuration of FIG. 1;

【図6】図1の構成における2次局にて行う通信確立後
の出力制御処理を示すフローチャートである。
FIG. 6 is a flowchart showing an output control process after communication is established in a secondary station in the configuration of FIG. 1;

【図7】図1の構成における赤外線デバイスの出力制御
の様子を示すブロック図である。
FIG. 7 is a block diagram showing a state of output control of an infrared device in the configuration of FIG. 1;

【図8】本発明に係る通信装置の他の構成例における1
次局にて行う通信確立後の出力制御処理を示すフローチ
ャートである。
FIG. 8 illustrates another example of the configuration of the communication device according to the present invention.
9 is a flowchart illustrating an output control process performed after communication is established in a next station.

【符号の説明】[Explanation of symbols]

101 通信アプリケーション 102 プロトコルドライバ 103 デバイスドライバ 104 通信コントローラ(出力パワー設定手段、再送
調査手段、出力レベル設定手段) 105 赤外線デバイス(出力手段) 701 デバイスドライバ 702 通信コントローラ(出力パワー設定手段、再送
調査手段、出力レベル設定手段) 703 DOWN端子 704 UP端子 705 赤外線デバイス(出力手段)
Reference Signs List 101 communication application 102 protocol driver 103 device driver 104 communication controller (output power setting means, retransmission investigation means, output level setting means) 105 infrared device (output means) 701 device driver 702 communication controller (output power setting means, retransmission investigation means, Output level setting means) 703 DOWN terminal 704 UP terminal 705 Infrared device (output means)

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平9−172409(JP,A) 特開 平1−261935(JP,A) 特開 平2−42833(JP,A) 特開 平9−93198(JP,A) 特開 平11−17613(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04B 10/00 - 10/28 H04J 14/00 - 14/08 H04L 12/28 H04L 12/44 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-9-172409 (JP, A) JP-A-1-261935 (JP, A) JP-A-2-42833 (JP, A) JP-A-9-209 93198 (JP, A) JP-A-11-17613 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04B 10/00-10/28 H04J 14/00-14/08 H04L 12/28 H04L 12/44

Claims (10)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1次局と2次局との間で光の伝送により通
信を行うとともに、1次局の出力を可変とする通信方法
において、 1次局から出力する局発見コマンドの出力を、初期値か
ら、2次局からの応答があるまで増加させながら上記局
発見コマンドを出力し、 2次局からの応答があれば、上記局発見コマンドの出力
を再度上記初期値にして、上記2次局からの応答がある
まで出力を増加させながら上記局発見コマンドを出力
し、 それに対して2次局からの応答があれば、そのときの上
記局発見コマンドの出力を、1次局から2次局への出力
パワーとして設定する ことを特徴とする通信方法。
1. A communication method for performing communication by transmitting light between a primary station and a secondary station and making the output of the primary station variable, comprising: outputting an output of a station discovery command output from the primary station. , from the initial value, while increasing until there is a response from the secondary station outputs the station discovery command, if there is a response from the secondary station, the output of the station discovery command
Is set to the initial value again, and there is a response from the secondary station.
Output the above station discovery command while increasing the output up to
And if there is a response from the secondary station,
Output of station search command from primary station to secondary station
A communication method characterized by setting as power .
【請求項2】上記1次局は、設定した出力パワーを、通
信に必要となる設定値とともに2次局に知らせ、2次局
は、それに基づいて出力パワーを設定することを特徴と
する請求項1に記載の通信方法。
2. The primary station transmits a set output power to the primary station.
Notify the secondary station with the set values required for communication.
The communication method according to claim 1, wherein the setting of the output power is based on the setting .
【請求項3】1次局から2次局へ送るデータについての
再送の発生頻度を調査し、該頻度が基準値を越えた場合
に、1次局からの出力を、現在の値から増加させて出力
することを特徴とする請求項1または2に記載の通信方
法。
3. The frequency of retransmission of data sent from the primary station to the secondary station is investigated. If the frequency exceeds a reference value, the output from the primary station is increased from the current value. The communication method according to claim 1 , wherein the data is output.
【請求項4】上記調査を定期的に行うことを特徴とする
請求項3に記載の通信方法。
4. The communication method according to claim 3, wherein said checking is performed periodically.
【請求項5】再送要求を1次局が受信するまでは上記調
査を行わず、再送要求を1次局が受信すると上記調査を
開始することを特徴とする請求項3に記載の通信方法。
5. The communication method according to claim 3, wherein the investigation is not performed until the primary station receives the retransmission request, and the investigation is started when the primary station receives the retransmission request.
【請求項6】相手局との間で光の伝送により通信を行う
とともに、相手局への出力を可変とする通信装置におい
て、 相手局を発見するための局発見コマンドを出力する出力
手段と、 上記出力手段からの局発見コマンドの出力を、初期値か
ら、相手局からの応答があるまで増加させ、相手局から
の応答があれば、上記局発見コマンドの出力を再度上記
初期値にして、上記相手局からの応答があるまで出力を
増加させ、それに対して相手局からの応答があれば、そ
のときの上記局発見コマンドの出力を、相手局への出力
パワーとして設定する出力パワー設定手段とを有する
とを特徴とする通信装置。
6. A communication device which communicates with a partner station by light transmission and varies output to the partner station, an output means for outputting a station discovery command for discovering the partner station, The output of the station finding command from the output means is increased from the initial value until there is a response from the partner station, and if there is a response from the partner station , the output of the station finding command is repeated again.
Set the output to the initial value and output until there is a response from the partner station.
And if there is a response from the partner station,
Output of the above station discovery command at the time of
A communication device comprising: output power setting means for setting as power .
【請求項7】設定した出力パワーを、通信に必要となる
設定値とともに相手局に知らせ、相手局にそれに基づい
て出力パワーを設定させることを特徴とする請求項6に
記載の通信装置。
7. The set output power is required for communication.
Notify the partner station with the set value, and the partner station
The communication device according to claim 6, wherein the output power is set by setting .
【請求項8】相手局へ送るデータについての再送の発生
頻度を調査する再送調査手段を有し、 該頻度が基準値を越えた場合に、上記出力パワー設定手
段が、相手局への出力を、現在の値から増加させて出力
することを特徴とする請求項6または7に記載の通信装
置。
8. An apparatus according to claim 8, further comprising: retransmission checking means for checking the frequency of retransmission of data to be transmitted to the other station, and when the frequency exceeds a reference value, said output power setting means.
8. The communication device according to claim 6 , wherein the stage increases the output to the partner station from the current value and outputs the increased value.
【請求項9】上記再送調査手段が、上記調査を定期的に
行うことを特徴とする請求項8に記載の通信装置。
9. The communication apparatus according to claim 8, wherein said retransmission investigation means performs said investigation periodically.
【請求項10】上記再送調査手段が、再送要求を受信す
るまでは上記調査を行わず、再送要求を受信すると上記
調査を開始することを特徴とする請求項8に記載の通信
装置。
10. The communication apparatus according to claim 8, wherein said retransmission investigation means does not perform said investigation until a retransmission request is received, and starts said investigation when a retransmission request is received.
JP5741099A 1999-03-04 1999-03-04 Communication method and communication device Expired - Fee Related JP3205311B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5741099A JP3205311B2 (en) 1999-03-04 1999-03-04 Communication method and communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5741099A JP3205311B2 (en) 1999-03-04 1999-03-04 Communication method and communication device

Publications (2)

Publication Number Publication Date
JP2000261379A JP2000261379A (en) 2000-09-22
JP3205311B2 true JP3205311B2 (en) 2001-09-04

Family

ID=13054886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5741099A Expired - Fee Related JP3205311B2 (en) 1999-03-04 1999-03-04 Communication method and communication device

Country Status (1)

Country Link
JP (1) JP3205311B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000349782A (en) * 1999-06-08 2000-12-15 Nec Corp Device and method for transmitting and receiving infrared ray
JP6312733B2 (en) * 2016-03-31 2018-04-18 キヤノン株式会社 Information processing apparatus, communication apparatus, control method, and program

Also Published As

Publication number Publication date
JP2000261379A (en) 2000-09-22

Similar Documents

Publication Publication Date Title
US7046961B2 (en) Link connection method between communication terminals equipped with bluetooth wireless devices
JP7324276B2 (en) Side link link failure detection method and terminal
US10887750B2 (en) Communication apparatus and control method for the same
KR100982085B1 (en) Communication method, communication system and communication device
US7634273B2 (en) Hybrid wired and wireless communication device and a wired and wireless communication method thereof
US12082126B2 (en) Power control method, terminal, and network side device
JP2006109094A (en) Remote controller, remote control system, and remote control method
JP2021531701A (en) Random access method and related equipment
CN111817826A (en) Side link information transmission method, terminal and control node
US8244928B2 (en) Wireless human interface device (HID) coordination
US8472361B2 (en) Method of generating repeated data package transmission
JPH10173680A (en) Method and device for low power communication between mobile computing devices
KR20120066979A (en) Wireless local area communication system
KR100726425B1 (en) Wireless communication device, wireless communication system using same and control method thereof
KR102561862B1 (en) Electronic apparatus and the control method thereof
CN108684021B (en) Bluetooth low-power-consumption communication method and device
KR102650920B1 (en) Methods, devices, devices and media for transmitting feedback information
CN110190915A (en) Antenna adjustment method, device and terminal
JP3205311B2 (en) Communication method and communication device
CN112929138B (en) Codebook sending method, receiving method, terminal and network device
US20210250960A1 (en) Data processing method and device
JP2006304267A (en) Wireless phone system
JP3247753B2 (en) Communications system
CN113676949B (en) Transmission processing methods, devices and electronic equipment
KR20090104992A (en) Bluetooth communication device discovery method and terminal and system for same

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090629

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees