JP2000101605A - Device and method for infrared communication and recording medium - Google Patents

Device and method for infrared communication and recording medium

Info

Publication number
JP2000101605A
JP2000101605A JP28891598A JP28891598A JP2000101605A JP 2000101605 A JP2000101605 A JP 2000101605A JP 28891598 A JP28891598 A JP 28891598A JP 28891598 A JP28891598 A JP 28891598A JP 2000101605 A JP2000101605 A JP 2000101605A
Authority
JP
Japan
Prior art keywords
communication
communication speed
predetermined value
infrared
substantial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28891598A
Other languages
Japanese (ja)
Inventor
Makoto Kurita
誠 栗田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP28891598A priority Critical patent/JP2000101605A/en
Publication of JP2000101605A publication Critical patent/JP2000101605A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To obtain a device which is able to transfer data excellent by comparing the rate of actual communication with an opposite device with a specific value and judging whether or not it is smaller, and lowering the rate of communication with the opposite device when the rate is smaller than the specific value. SOLUTION: A digital camera 10a receives frames from a personal computer 10b in reception mode and detects whether or not a transmission error occurs in the frame transfer. If a transmission error is detected, the communication quality is calculated and it is judged whether or not the communication quality is smaller than prescribed. When the communication quality is larger than prescribed, frames are continuously received. If the communication quality is smaller than prescribed, on the other hand, it is judged that the substantial communication rate is lower than that of the prescribed value and a disconnection frame is sent to the personal computer 10b. And the connection is cut off to quit the communication of the application in a higher layer then the connection frame is received, the communication rate is changed to a negotiated rate.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は赤外線通信装置、
赤外線通信方法および記録媒体に関し、特にたとえばI
rDA方式による無線通信が可能な装置に適用される赤
外線通信装置、赤外線通信方法および記録媒体に関す
る。
The present invention relates to an infrared communication device,
The present invention relates to an infrared communication method and a recording medium.
The present invention relates to an infrared communication device, an infrared communication method, and a recording medium applied to a device capable of wireless communication by the rDA method.

【0002】[0002]

【従来の技術】赤外線を利用して装置間でデータを転送
する技術に関しては、IrDA(Infared Data Associa
tion)によって標準化されており、赤外線通信可能な装
置間での通信速度は、通信をできるだけ高速に行うため
に、折衝によって両装置が通信可能な通信速度のうち最
大通信速度に決定されていた。一旦折衝によって通信速
度が決定されると、その後は決定された通信速度で通信
が行われる。
2. Description of the Related Art IrDA (Infared Data Associa) is a technology for transferring data between devices using infrared rays.
The communication speed between devices capable of infrared communication has been determined by negotiation to be the maximum communication speed among the communication speeds at which both devices can communicate in order to perform communication as fast as possible. Once the communication speed is determined by negotiation, communication is performed at the determined communication speed thereafter.

【0003】[0003]

【発明が解決しようとする課題】しかし、一般に、通信
速度が高速であるほど光などの外乱や赤外線受発光素子
の性能などに起因して伝送エラーが発生する確率が高く
なる。したがって、もし伝送エラーが頻発すればフレー
ムの再送が多くなるため、実質通信速度が低下したり、
強制切断を引き起こすことになる。その結果、通信速度
を最大通信速度に決定した場合が必ずしも転送時間が最
短になるとは限らず、データを良好に転送できない場合
があった。
However, in general, the higher the communication speed, the higher the probability of occurrence of a transmission error due to disturbances such as light and the performance of the infrared light receiving / emitting element. Therefore, if transmission errors occur frequently, the number of retransmissions of frames increases, so that the actual communication speed decreases,
This will cause a forced disconnect. As a result, when the communication speed is determined to be the maximum communication speed, the transfer time is not always the shortest, and there are cases where data cannot be transferred satisfactorily.

【0004】また、この種の従来技術の一例が、特開平
9−200131号公報において開示されているが、こ
の技術では通信状態、通信パラメータまたは通信時間を
表示手段に表示することはできるが、伝送エラーが頻発
する状況であってもその状況を積極的に改善できるもの
ではなく、上述の問題点を解決することはできない。
An example of this kind of prior art is disclosed in Japanese Patent Application Laid-Open No. 9-200131. In this technique, a communication state, a communication parameter or a communication time can be displayed on display means. Even in a situation where transmission errors frequently occur, the situation cannot be positively improved, and the above problem cannot be solved.

【0005】それゆえに、この発明の主たる目的は、良
好にデータ転送できる、赤外線通信装置、赤外線通信方
法および記録媒体を提供することである。
[0005] Therefore, a main object of the present invention is to provide an infrared communication device, an infrared communication method, and a recording medium that can transfer data satisfactorily.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の赤外線通信装置は、赤外線通信す
る相手方装置との実質通信速度が所定値より小さいか否
かを判断する判断手段、および実質通信速度が所定値よ
り小さいときには相手方装置との通信速度を下げる第1
手段を備える。
In order to achieve the above object, an infrared communication apparatus according to claim 1 determines whether or not a substantial communication speed with a partner apparatus for infrared communication is lower than a predetermined value. Means for reducing the communication speed with the counterpart device when the actual communication speed is lower than a predetermined value;
Means.

【0007】請求項2に記載の赤外線通信装置は、請求
項1に記載の赤外線通信装置において、判断手段は、正
常フレームの受信数と損失フレーム数との割合に基づい
て通信品質を計算する手段、および通信品質が規定値よ
り小さいとき実質通信速度が所定値より小さいと判断す
る手段を含むものである。
According to a second aspect of the present invention, in the infrared communication apparatus according to the first aspect, the judging means calculates communication quality based on a ratio between the number of received normal frames and the number of lost frames. , And means for determining that the actual communication speed is lower than a predetermined value when the communication quality is lower than a specified value.

【0008】請求項3に記載の赤外線通信装置は、請求
項1または2に記載の赤外線通信装置において、第1手
段は、実質通信速度が所定値より小さいときには相手方
装置に通信速度を変更するための通信速度変更フレーム
を送信する手段を含むものである。
According to a third aspect of the present invention, in the infrared communication apparatus according to the first or second aspect, the first means changes the communication speed to the other device when the substantial communication speed is lower than a predetermined value. Means for transmitting the communication speed change frame.

【0009】請求項4に記載の赤外線通信装置は、請求
項1ないし3のいずれかに記載の赤外線通信装置におい
て、相手方装置から送信される通信速度を変更するため
の通信速度変更フレームを受信する手段、および通信速
度変更フレームを受信したとき通信速度を下げる手段を
さらに含むものである。
According to a fourth aspect of the present invention, there is provided an infrared communication apparatus according to any one of the first to third aspects, wherein the infrared communication apparatus receives a communication speed change frame for changing a communication speed transmitted from a partner device. Means and means for lowering the communication speed when a communication speed change frame is received.

【0010】請求項5に記載の赤外線通信装置は、請求
項1または2に記載の赤外線通信装置において、第1手
段は、実質通信速度が所定値より小さいときには相手方
装置とのコネクションを切断し通信を中断する手段を含
むものである。
According to a fifth aspect of the present invention, in the infrared communication apparatus according to the first or second aspect, the first means disconnects the connection with the partner apparatus when the actual communication speed is lower than a predetermined value, and performs communication. Means for interrupting the operation.

【0011】請求項6に記載の赤外線通信装置は、請求
項5に記載の赤外線通信装置において、第1手段は、相
手方装置との通信を中断した後通信速度を下げて折衝す
る手段、折衝の後再びコネクションを確立し通信を中断
直前の状態から再開する手段を含むものである。
According to a sixth aspect of the present invention, in the infrared communication apparatus according to the fifth aspect, the first means includes means for negotiating by lowering the communication speed after interrupting communication with the counterpart apparatus; Thereafter, means for re-establishing the connection and restarting the communication from the state immediately before the interruption is included.

【0012】請求項7に記載の赤外線通信方法は、赤外
線通信する相手方装置との実質通信速度が所定値より小
さいか否かを判断する第1ステップ、および実質通信速
度が所定値より小さいときには相手方装置との通信速度
を下げる第2ステップを備える。
According to a seventh aspect of the present invention, there is provided an infrared communication method comprising: a first step of judging whether or not a substantial communication speed with a counterpart device for infrared communication is lower than a predetermined value; The method includes a second step of reducing a communication speed with the device.

【0013】請求項8に記載の赤外線通信方法は、請求
項7に記載の赤外線通信方法において、第1ステップ
は、正常フレームの受信数と損失フレーム数との割合に
基づいて通信品質を計算するステップ、および通信品質
が規定値より小さいとき実質通信速度が所定値より小さ
いと判断するステップを含むものである。
According to an eighth aspect of the present invention, in the infrared communication method according to the seventh aspect, the first step calculates the communication quality based on a ratio between the number of normal frames received and the number of lost frames. And a step of determining that the actual communication speed is lower than a predetermined value when the communication quality is lower than a specified value.

【0014】請求項9に記載の赤外線通信方法は、請求
項7または8に記載の赤外線通信方法において、第2ス
テップは、実質通信速度が所定値より小さいときには相
手方装置に通信速度を変更するための通信速度変更フレ
ームを送信するステップを含むものである。
According to a ninth aspect of the present invention, in the infrared communication method of the seventh or eighth aspect, the second step is to change the communication speed to the other device when the substantial communication speed is lower than a predetermined value. And transmitting the communication speed change frame.

【0015】請求項10に記載の赤外線通信方法は、請
求項7ないし9のいずれかに記載の赤外線通信方法にお
いて、相手方装置から送信される通信速度を変更するた
めの通信速度変更フレームを受信する第3ステップ、お
よび通信速度変更フレームを受信したとき通信速度を下
げる第4ステップをさらに含むものである。
According to a tenth aspect of the present invention, in the infrared communication method according to any one of the seventh to ninth aspects, a communication speed change frame for changing a communication speed transmitted from a partner device is received. The method further includes a third step and a fourth step of reducing the communication speed when the communication speed change frame is received.

【0016】請求項11に記載の赤外線通信方法は、請
求項7または8に記載の赤外線通信方法において、第2
ステップは、実質通信速度が所定値より小さいときには
相手方装置とのコネクションを切断し通信を中断するス
テップを含むものである。
The infrared communication method according to claim 11 is the infrared communication method according to claim 7 or 8, wherein
The step includes the step of disconnecting the connection with the counterpart device and interrupting the communication when the actual communication speed is lower than the predetermined value.

【0017】請求項12に記載の赤外線通信方法は、請
求項11に記載の赤外線通信方法において、第2ステッ
プは、相手方装置との通信を中断した後通信速度を下げ
て折衝するステップ、折衝の後再びコネクションを確立
し通信を中断直前の状態から再開するステップを含むも
のである。
In the infrared communication method according to a twelfth aspect, in the infrared communication method according to the eleventh aspect, the second step includes a step of negotiating by lowering the communication speed after interrupting the communication with the counterpart device; Thereafter, a step of establishing a connection again and restarting the communication from the state immediately before the interruption is included.

【0018】請求項13に記載のコンピュータ読み取り
可能な記録媒体は、赤外線通信する相手方装置との実質
通信速度が所定値より小さいか否かを判断させる第1処
理、および実質通信速度が所定値より小さいときには相
手方装置との通信速度を下げさせる第2処理をコンピュ
ータに実行させるためのプログラムを記録したものであ
る。
A computer-readable recording medium according to a thirteenth aspect of the present invention is a computer-readable recording medium, comprising: a first process for determining whether a substantial communication speed with a counterpart device for infrared communication is lower than a predetermined value; When it is small, it records a program for causing a computer to execute a second process for lowering the communication speed with the partner device.

【0019】請求項14に記載のコンピュータ読み取り
可能な記録媒体は、請求項13に記載のコンピュータ読
み取り可能な記録媒体において、第1処理は、正常フレ
ームの受信数と損失フレーム数との割合に基づいて通信
品質を計算させる処理、および通信品質が規定値より小
さいとき実質通信速度が所定値より小さいと判断させる
処理を含むものである。
According to a fourteenth aspect of the present invention, in the computer readable recording medium according to the thirteenth aspect, the first processing is based on a ratio between the number of received normal frames and the number of lost frames. And a process for determining that the actual communication speed is lower than a predetermined value when the communication quality is lower than a prescribed value.

【0020】請求項15に記載のコンピュータ読み取り
可能な記録媒体は、請求項13または14に記載のコン
ピュータ読み取り可能な記録媒体において、第2処理
は、実質通信速度が所定値より小さいときには相手方装
置に通信速度を変更するための通信速度変更フレームを
送信させる処理を含むものである。
According to a fifteenth aspect of the present invention, in the computer readable recording medium according to the thirteenth aspect or the fourteenth aspect, the second processing is performed when the communication speed is substantially lower than a predetermined value. This includes a process of transmitting a communication speed change frame for changing the communication speed.

【0021】請求項16に記載のコンピュータ読み取り
可能な記録媒体は、請求項13ないし15に記載のコン
ピュータ読み取り可能な記録媒体において、相手方装置
から送信される通信速度を変更するための通信速度変更
フレームを受信させる第3処理、および通信速度変更フ
レームを受信したとき通信速度を下げさせる第4処理を
コンピュータに実行させるためのプログラムをさらに記
録したものである。
A computer-readable recording medium according to claim 16 is a computer-readable recording medium according to claim 13, wherein a communication speed change frame for changing a communication speed transmitted from a partner device. And a program for causing a computer to execute a third process of receiving a communication speed change frame and a fourth process of lowering the communication speed when a communication speed change frame is received.

【0022】請求項17に記載のコンピュータ読み取り
可能な記録媒体は、請求項13または14に記載のコン
ピュータ読み取り可能な記録媒体において、第2処理
は、実質通信速度が所定値より小さいときには相手方装
置とのコネクションを切断させ通信を中断させる処理を
含むものである。
A computer-readable recording medium according to claim 17 is the computer-readable recording medium according to claim 13 or 14, wherein the second processing is performed when the communication speed is substantially smaller than a predetermined value. The process includes disconnecting the connection and interrupting the communication.

【0023】請求項18に記載のコンピュータ読み取り
可能な記録媒体は、請求項17に記載のコンピュータ読
み取り可能な記録媒体において、第2処理は、相手方装
置との通信を中断させた後通信速度を下げて折衝させる
処理、折衝の後再びコネクションを確立させ通信を中断
直前の状態から再開させる処理を含むものである。
The computer-readable recording medium according to claim 18 is the computer-readable recording medium according to claim 17, wherein the second processing lowers the communication speed after interrupting communication with a partner device. This includes a process of negotiating the communication, and a process of reestablishing the connection after the negotiation and restarting the communication from the state immediately before the interruption.

【0024】請求項1に記載の赤外線通信装置では、フ
レームの再送が頻発するような場合、すなわちフレーム
損失によって実質通信速度が所定値より小さくなる場合
には、通信速度が下げられる。
In the infrared communication apparatus according to the first aspect, the communication speed is reduced when frame retransmission frequently occurs, that is, when the substantial communication speed becomes lower than a predetermined value due to frame loss.

【0025】たとえば、請求項2に記載するように、正
常フレームの受信数と損失フレーム数との割合に基づい
て通信品質が計算され、その通信品質が規定値より小さ
ければ、実質通信速度が所定値より小さいと判断され、
通信速度が下げられる。
For example, as described in claim 2, the communication quality is calculated based on the ratio between the number of normal frames received and the number of lost frames, and if the communication quality is smaller than a specified value, the actual communication speed becomes predetermined. Is determined to be smaller than
Communication speed is reduced.

【0026】実質通信速度が所定値より小さければ、請
求項3に記載するように、相手方装置に通信速度変更フ
レームを送信して通信速度を下げる必要があることを知
らせ、請求項4に記載するように、相手方装置から送信
された通信速度変更フレームを受信したときにはそれに
応じて通信速度を下げるようにしてもよい。
If the actual communication speed is smaller than a predetermined value, a communication speed change frame is transmitted to the other party to notify that the communication speed needs to be reduced, and the communication speed is reduced. As described above, when the communication speed change frame transmitted from the partner device is received, the communication speed may be reduced accordingly.

【0027】このように実質通信速度が所定値より小さ
いときには通信速度を下げることによって、フレーム損
失等による実質通信速度の低下や通信の強制切断を回避
し、通信状況を改善できる。
As described above, when the actual communication speed is lower than the predetermined value, by lowering the communication speed, it is possible to avoid a reduction in the actual communication speed due to a frame loss or the like and a forced disconnection of the communication, thereby improving the communication situation.

【0028】また、実質通信速度が所定値より小さけれ
ば、請求項5に記載するように、相手方装置との間のコ
ネクションを切断しアプリケーションの通信を中断する
ようにしてもよい。その後、請求項6に記載するよう
に、通信速度を下げて相手方装置との間で折衝し、低い
通信速度で再びコネクションを確立して、中断していた
アプリケーションの通信を中断直前の状態から再開する
ようにしてもよい。
If the actual communication speed is lower than a predetermined value, the connection with the partner device may be cut off to interrupt the communication of the application. Thereafter, as described in claim 6, the communication speed is reduced to negotiate with the counterpart device, a connection is re-established at a lower communication speed, and communication of the interrupted application is resumed from the state immediately before the interruption. You may make it.

【0029】このように相手方装置との通信を中断して
も、その後の再開時には中断直前の状態から通信が再開
されるので、通信を効率的に行える。
Even if the communication with the partner device is interrupted in this way, the communication is resumed from the state immediately before the interruption at the subsequent resumption, so that the communication can be performed efficiently.

【0030】なお、請求項7〜12に記載の赤外線通信
方法によっても同様である。また、請求項13〜18に
記載のコンピュータ読み取り可能な記録媒体に格納され
ているプログラムを用いて赤外線通信装置を動作させる
ときも同様である。
The same applies to the infrared communication method according to claims 7 to 12. The same applies when the infrared communication device is operated using a program stored in a computer-readable recording medium according to claims 13 to 18.

【0031】[0031]

【発明の実施の形態】以下、この発明の実施の形態につ
いて図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0032】図1に、それぞれ赤外線通信可能なデジタ
ルカメラ10aとパソコン10bとの通信例を示す。
FIG. 1 shows an example of communication between a digital camera 10a and a personal computer 10b capable of performing infrared communication.

【0033】デジタルカメラ10aは、レンズ12およ
びしぼり14などからなる撮影光学系16を含む。撮影
光学系16を通して受光した被写体の明るさは、CCD
などの固体撮像素子18によって光電変換され、画像信
号がアナログ信号としてA/D変換回路20へ出力され
る。この画像信号はA/D変換回路20によってデジタ
ル変換され、デジタル化された画像信号が画像データと
して画像圧縮回路22へ出力される。画像圧縮回路22
では、たとえばJPEG形式などの所定の画像圧縮形式
で画像データが圧縮され、圧縮された画像データがHD
(ハードディスク)カード24に記録される。HDカー
ド24はデジタルカメラ本体(図示せず)に着脱自在に
装着され、HDカード24には、たとえば周知のFAT
(File Allcation Table)形式で、デジタルカメラ10
aの動作制御に必要なリアルタイムOSなどのプログラ
ム、赤外線通信プロトコルを満たす赤外線通信に必要な
処理のほか図3や図4に示す処理を実行するためのプロ
グラムやデータが格納される。また、デジタルカメラ1
0aは、固体撮像素子18を駆動する駆動回路26、フ
レームデータや処理データ等が一時的に格納されるRA
M28、デジタルカメラ10aの各種設定等のための入
力部30、撮影した画像ファイル等が表示されるモニタ
32、赤外線を発光または受光するための赤外線受発光
素子34、赤外線受発光素子34を制御する赤外線制御
部36、これらを制御するためのCPU38を含む。
The digital camera 10a includes a photographing optical system 16 including a lens 12, an aperture 14, and the like. The brightness of the subject received through the imaging optical system 16 is a CCD
The photoelectric conversion is performed by the solid-state imaging device 18 and the image signal is output to the A / D conversion circuit 20 as an analog signal. This image signal is digitally converted by the A / D conversion circuit 20, and the digitized image signal is output to the image compression circuit 22 as image data. Image compression circuit 22
In, for example, image data is compressed in a predetermined image compression format such as JPEG format, and the compressed image data is
(Hard disk) Recorded on the card 24. The HD card 24 is removably attached to a digital camera main body (not shown).
(File Allcation Table) format, digital camera 10
A program such as a real-time OS required for the operation control a, a process required for infrared communication satisfying the infrared communication protocol, and a program and data for executing the processes shown in FIGS. 3 and 4 are stored. In addition, digital camera 1
Reference numeral 0a denotes a drive circuit 26 for driving the solid-state imaging device 18 and an RA for temporarily storing frame data, processing data, and the like.
M28, an input unit 30 for various settings of the digital camera 10a, a monitor 32 on which a captured image file is displayed, an infrared light emitting / receiving element 34 for emitting or receiving infrared light, and an infrared light receiving / emitting element 34 are controlled. An infrared controller 36 includes a CPU 38 for controlling these components.

【0034】一方、パソコン10bは、ハードディスク
40、フレームデータや処理データ等が一時的に格納さ
れるRAM42、CD−ROM内の情報を読み出すため
のCD−ROMドライブ44、フロッピーディスクに情
報を読み書きするためのフロッピーディスクドライブ4
6、ネットワークインタフェース48、通信ポート5
0、通信ポートに接続されるモデム52、キーボード等
の入力部54、TFT液晶画面やCRT等からなるモニ
タ56、赤外線を発光または受光するための赤外線受発
光素子58、赤外線受発光素子58を制御する赤外線制
御部60、赤外線通信中の時間管理を行うタイマ62、
これらを制御するためのCPU64を含む。パソコン1
0bには、ネットワークインタフェース48、端子6
6、LANを介して、あるいは、通信ポート50、モデ
ム52、端子68、電話回線を介して、インターネット
等が接続される。
On the other hand, the personal computer 10b reads and writes information from and to a hard disk 40, a RAM 42 for temporarily storing frame data and processing data, a CD-ROM drive 44 for reading information from a CD-ROM, and a floppy disk. Disk drive 4 for
6, network interface 48, communication port 5
0, a modem 52 connected to a communication port, an input unit 54 such as a keyboard, a monitor 56 composed of a TFT liquid crystal screen or a CRT, an infrared light emitting / receiving element 58 for emitting or receiving infrared light, and an infrared light receiving / emitting element 58 An infrared controller 60, a timer 62 for managing time during infrared communication,
A CPU 64 for controlling these is included. PC 1
0b has a network interface 48, a terminal 6
6. The Internet or the like is connected via a LAN, or via a communication port 50, a modem 52, a terminal 68, and a telephone line.

【0035】ハードディスク40には、パソコン10b
の動作制御に必要なOSなどのプログラム、赤外線通信
プロトコルを満たす赤外線通信に必要な処理のほか図3
や図4に示す処理を実行するためのプログラムやデータ
が格納される。
The hard disk 40 has a personal computer 10b
OS and other programs required to control the operation of the device, processing required for infrared communication that satisfies the infrared communication protocol, and
And programs and data for executing the processing shown in FIG.

【0036】ここで、赤外線通信プロコトルは、下位層
と上位層とに分かれる。下位層は、通信相手の探索、通
信速度やデータの転送単位等を決定するための折衝、伝
送エラーを検出したときはフレームを再送し確実にデー
タ伝送を行うエラー処理など、基本的なデータ転送の条
件や仕様を規定するプロトコルを含み、上位層は、下位
層を利用して多重化やフロー制御などを行うことを規定
するプロトコルを含む。
Here, the infrared communication protocol is divided into a lower layer and an upper layer. The lower layer performs basic data transfer, such as searching for a communication partner, negotiation to determine the communication speed and data transfer unit, and error processing for retransmitting a frame when a transmission error is detected to ensure data transmission. The upper layer includes a protocol that specifies performing multiplexing and flow control using the lower layer.

【0037】なお、図3および図4に示す処理を実行す
るためのプログラムやデータは、ハードディスク40に
予め格納される他、CD−ROMやフロッピーディスク
に格納されている場合にはそれぞれCD−ROMドライ
ブ44やフロッピーディスクドライブ46を介してパソ
コン10bで利用することができ、さらには、インター
ネット等を通じてダウンロードすることによってパソコ
ン10bで利用することができる。
The programs and data for executing the processing shown in FIGS. 3 and 4 are stored in the hard disk 40 in advance and, when stored in a CD-ROM or a floppy disk, respectively. It can be used on the personal computer 10b via the drive 44 or the floppy disk drive 46, and can be used on the personal computer 10b by downloading it through the Internet or the like.

【0038】このようなデジタルカメラ10aとパソコ
ン10bとの間には、赤外線通信によってデータがフレ
ーム単位で送受信される。
Data is transmitted and received between the digital camera 10a and the personal computer 10b in frame units by infrared communication.

【0039】フレームは、たとえば図2に示すように構
成され、フレームの開始を示すBOF(Beginning of Fr
ame)、フレームの終結を示すEOF(End of Frame)、通
信相手を示すアドレスが格納されるアドレス部、通信速
度変更フレーム、コネクション切断フレーム、応答フレ
ーム、コネクション要求フレーム等のフレームの種別を
示す制御部、たとえば赤外線通信プロトコルの上位層間
で交換されるデータや、コマンドやレスポンスの補助情
報が設定される情報部、伝送エラー検出のためのビット
列であるFCS(Frame Check Sequence)を含む。
The frame is configured as shown in FIG. 2, for example, and a BOF (Beginning of Fr.
ame), EOF (End of Frame) indicating the end of the frame, an address portion storing an address indicating the communication partner, a communication speed change frame, a connection disconnection frame, a response frame, a control indicating a frame type such as a connection request frame. For example, it includes data exchanged between upper layers of an infrared communication protocol, an information section in which auxiliary information of a command and a response is set, and an FCS (Frame Check Sequence) which is a bit string for detecting a transmission error.

【0040】このように構成されるデジタルカメラ10
aおよびパソコン10bの動作について説明する。ここ
では、図3および図4を参照して、デジタルカメラ10
aの動作として説明するが、パソコン10bにおいても
同様に動作するので、その重複する説明は省略する。
The digital camera 10 thus configured
a and the operation of the personal computer 10b will be described. Here, referring to FIG. 3 and FIG.
Although the operation will be described as the operation a, the same operation will be performed in the personal computer 10b, and the duplicate description will be omitted.

【0041】図3を参照して、通信速度変更フレームを
送信しかつ通信速度を変更する場合の動作について説明
する。まず、デジタルカメラ10aでは、受信モードの
ときにパソコン10bからのフレームが受信され(ステ
ップS1)、フレーム転送中に伝送エラーが発生したか
否かが検出される(ステップS3)。フレームに含まれ
るFCSが異常を示すFCSエラー、RAM28内に形
成されるバッファ74(図5参照)へ到着するデータの
オーバーフロー、赤外線制御部36から与えられるパリ
ティエラー、フレーミングエラー、オーバーランエラー
などのハードウェア的なエラー通告などによって、伝送
エラーが検出される。
Referring to FIG. 3, an operation for transmitting a communication speed change frame and changing the communication speed will be described. First, the digital camera 10a receives a frame from the personal computer 10b in the reception mode (step S1), and detects whether or not a transmission error has occurred during frame transfer (step S3). An FCS error indicating that the FCS included in the frame is abnormal, an overflow of data arriving at the buffer 74 (see FIG. 5) formed in the RAM 28, a parity error, a framing error, and an overrun error given from the infrared controller 36. A transmission error is detected by a hardware error notification or the like.

【0042】ステップS3において伝送エラーが検出さ
れたとき、後述するような方法で通信品質が計算され、
その通信品質が規定値より小さいか否かが判断される
(ステップS5)。通信品質が規定値以上のときには、
ステップS1に戻り、パソコン10bからのフレームの
受信が続けられる。一方、ステップS5において通信品
質が規定値より小さいときには、実質通信速度が所定値
より小さいと判断され、パソコン10bに通信速度変更
フレームが送信される(ステップS7)。このとき通信
速度変更フレームには、通信可能な通信速度のうち、現
在の通信速度より一段階低い通信速度を指定する情報が
含まれる。その後、デジタルカメラ10aでは、送信し
た通信速度変更フレームで指定した通信速度に通信速度
が変更され(ステップS9)、ステップ1に戻る。
When a transmission error is detected in step S3, the communication quality is calculated by a method described later,
It is determined whether the communication quality is smaller than a specified value (step S5). When the communication quality is above the specified value,
Returning to step S1, reception of the frame from the personal computer 10b is continued. On the other hand, when the communication quality is smaller than the specified value in step S5, it is determined that the substantial communication speed is smaller than the predetermined value, and the communication speed change frame is transmitted to the personal computer 10b (step S7). At this time, the communication speed change frame includes information designating a communication speed one step lower than the current communication speed among the communication speeds at which communication is possible. Thereafter, the digital camera 10a changes the communication speed to the communication speed specified by the transmitted communication speed change frame (step S9), and returns to step 1.

【0043】一方、ステップS3において伝送エラーが
検出されないときには、パソコン10bからの通信速度
変更フレームが受信されたか否かが判断される(ステッ
プS11)。通信速度変更フレームが受信されると、そ
の通信速度変更フレームで指定されている通信速度にデ
ジタルカメラ10aの通信速度が変更され(ステップS
13)、ステップS1に戻る。
On the other hand, if no transmission error is detected in step S3, it is determined whether or not a communication speed change frame has been received from the personal computer 10b (step S11). When the communication speed change frame is received, the communication speed of the digital camera 10a is changed to the communication speed specified by the communication speed change frame (Step S).
13), and return to step S1.

【0044】一方、ステップS11において通信速度変
更フレームが受信されないときには、通常の受信データ
処理が行われ(ステップS15)、ステップS1に戻
る。
On the other hand, when the communication speed change frame is not received in step S11, normal reception data processing is performed (step S15), and the process returns to step S1.

【0045】そして、上述の処理が繰り返される。Then, the above processing is repeated.

【0046】このように、通信品質が悪化し伝送エラー
によってフレームの再送が頻発するような状況では、通
信速度を下げることによって、フレームの再送を極端に
減少でき、フレーム損失等による実質通信速度の低下や
強制切断を防ぎ、データ全体の転送時間を短縮できる。
したがって、外乱や赤外線通受発光素子34および58
の性能等に起因して伝送エラーが頻発するような状況に
おいて、実効転送速度を最適化でき、通信状況を改善で
きる。
As described above, in a situation where communication quality deteriorates and frame retransmission frequently occurs due to transmission errors, by reducing the communication speed, frame retransmission can be extremely reduced, and the actual communication speed due to frame loss or the like can be reduced. Prevention of drop and forced disconnection can reduce the transfer time of the entire data.
Therefore, disturbances and infrared light transmitting / receiving elements 34 and 58
In a situation in which transmission errors frequently occur due to the performance and the like, the effective transfer rate can be optimized, and the communication situation can be improved.

【0047】ここで、通信速度の決定、通信品質および
規定値の求め方について、具体的に説明する。
Here, how to determine the communication speed, how to determine the communication quality, and how to obtain the specified value will be specifically described.

【0048】まず、通信速度の決定について説明する。First, the determination of the communication speed will be described.

【0049】赤外線通信可能な2つの装置間で赤外線通
信するときには、折衝を行い、お互いがサポートする通
信速度のうちの最大速度で通信される。通信速度は、一
般に、2,400bps、9,600bps、19,200bps、38,4
00bps、57,600bps、115,200bps、576,000bp
s、1,152,000bps、4,000,000bpsの中から決定さ
れる。
When performing infrared communication between two devices capable of performing infrared communication, negotiation is performed, and communication is performed at the maximum speed among the communication speeds supported by each other. Communication speeds are generally 2,400 bps, 9,600 bps, 19,200 bps, 38,4
00bps, 57,600bps, 115,200bps, 576,000bp
s, 1,152,000 bps, and 4,000,000 bps.

【0050】たとえば、すべての通信速度に対応した装
置Aと115,200bps以下の通信速度に対応した装置B
とが、通信するために折衝した場合には、115,200bp
sの通信速度で通信することに決定される。
For example, a device A corresponding to all communication speeds and a device B corresponding to communication speeds of 115,200 bps or less
Is 115,200bp if negotiated to communicate
It is decided to communicate at the communication speed of s.

【0051】ついで、通信品質の求め方について説明す
る。
Next, how to determine the communication quality will be described.

【0052】通信品質は、正常に受信したフレーム(正
常フレーム)の数とエラー受信やバッファのオーバーフ
ローによって損失したフレーム(損失フレーム)の数と
に基づいて求められ、全フレームに対する正常フレーム
の割合を通信品質とする。
The communication quality is obtained on the basis of the number of normally received frames (normal frames) and the number of frames lost (lost frames) due to error reception or buffer overflow. Communication quality.

【0053】通信品質は、ある一時的な品質の悪化では
なく、慢性的な品質悪化で評価しなければならない。そ
のために、たとえば、評価時間間隔を30秒に設定し、
その時間内で正常フレームの数と損失フレームの数とを
カウントし、通信品質を計算する。
The communication quality must be evaluated not as a temporary deterioration in quality but as a chronic deterioration. For this purpose, for example, the evaluation time interval is set to 30 seconds,
Within that time, the number of normal frames and the number of lost frames are counted, and communication quality is calculated.

【0054】次に、規定値の求め方について述べる。Next, how to determine the specified value will be described.

【0055】上述の装置Aおよび装置Bについていえ
ば、現在の通信速度がたとえば115,200bpsであった
場合には、一段階下の通信速度は57,600bpsである。
通信速度を115,200bpsから57,600bpsへ変更する
ことによって、通信効率は50%減少する。したがっ
て、通信品質が50%以上のときは通信速度を115,200
bpsから57,600bpsに変更しても通信効率は悪化す
るだけである。そこで、オーバーヘッドも考慮して、さ
らに10%少ない40%を規定値とし、通信品質が40
%以下のときには、通信速度を57,600bpsに変更する
ことに決定する。通信速度が115,200bps以外に設定
されていても、その一段階下の通信速度との割合から1
0%引いた値を閾値とし、これを通信品質と比較する規
定値とする。たとえば、現在の通信速度が57,600bps
であれば、一段階下の通信速度は38,400bpsとなる
が、この場合には、67%から10%引いた57%が規
定値とされる。
With respect to the above-described devices A and B, if the current communication speed is, for example, 115,200 bps, the communication speed one step lower is 57,600 bps.
Changing the communication speed from 115,200 bps to 57,600 bps reduces communication efficiency by 50%. Therefore, when the communication quality is 50% or more, the communication speed is set to 115,200.
Changing from bps to 57,600 bps only lowers communication efficiency. Therefore, considering the overhead, 40% is further reduced by 10% to the specified value, and the communication quality is 40%.
%, The communication speed is determined to be changed to 57,600 bps. Even if the communication speed is set to a value other than 115,200 bps, 1
A value obtained by subtracting 0% is set as a threshold, and this is set as a specified value to be compared with the communication quality. For example, if the current communication speed is 57,600 bps
In this case, the next lower communication speed is 38,400 bps. In this case, the prescribed value is 57%, which is 10% less than 67%.

【0056】上述のようにして求められた通信品質を常
に監視しておき、通信品質が規定値より小さくなったと
き実質通信速度が所定値より小さくなったと判断し、通
信速度が一段階下の通信速度に変更される。上述の例で
は、通信品質が40%より小さければ、通信速度を115,
200bpsから57,600bpsへ変更することによって、
通信効率を上げることができる。
The communication quality obtained as described above is constantly monitored, and when the communication quality becomes lower than the specified value, it is determined that the actual communication speed has become lower than the predetermined value. The communication speed is changed. In the above example, if the communication quality is lower than 40%, the communication speed is set to 115,
By changing from 200 bps to 57,600 bps,
Communication efficiency can be improved.

【0057】ついで、図4を参照して、通信品質が規定
値より小さくなったときには、コネクションを切断し、
通信速度を下げて折衝した後、再びコネクションを確立
して通信を再開する場合について説明する。
Next, referring to FIG. 4, when the communication quality becomes lower than the specified value, the connection is disconnected.
A case will be described in which the connection is reestablished and communication is resumed after the negotiation is performed with the communication speed lowered.

【0058】まず、デジタルカメラ10aでは、受信モ
ードの時にパソコン10bからのフレームが受信され
(ステップS21)、フレーム転送中に伝送エラーが発
生したか否かが検出される(ステップS23)。伝送エ
ラーが検出されたときには、上述のようにして通信品質
が計算され、その通信品質が規定値より小さいか否かが
判断される(ステップS25)。通信品質が規定値以上
の場合にはステップS21に戻り、フレームの受信が続
けられる。
First, the digital camera 10a receives a frame from the personal computer 10b in the reception mode (step S21), and detects whether or not a transmission error has occurred during frame transfer (step S23). When a transmission error is detected, the communication quality is calculated as described above, and it is determined whether the communication quality is smaller than a specified value (step S25). If the communication quality is equal to or higher than the specified value, the process returns to step S21, and the reception of the frame is continued.

【0059】一方、ステップS25において、通信品質
が規定値より小さいときには、実質通信速度が所定値よ
り小さいと判断され、コネクション切断フレームがパソ
コン10bに送信される(ステップS27)。このと
き、コネクションは切断され、上位層のアプリケーショ
ンの通信は中断状態となる。
On the other hand, if the communication quality is lower than the specified value in step S25, it is determined that the actual communication speed is lower than the predetermined value, and a disconnection frame is transmitted to the personal computer 10b (step S27). At this time, the connection is disconnected and the communication of the upper layer application is suspended.

【0060】その後、デジタルカメラ10aでは、コネ
クション切断フレームを受信した旨の応答フレームをパ
ソコン10bから受信したか否かが判断され(ステップ
S29)、応答フレームが受信されるまで待機し、応答
フレームが受信されると、通信速度が初期速度に変更さ
れる(ステップS30a)。その後、コネクション要求
フレームが送信され(ステップS30b)、コネクショ
ン応答フレームの受信が待たれる(ステップS30
c)。コネクション応答フレームが受信されると、折衝
通信速度に通信速度が変更される(ステップS31)。
このとき通信速度は、コネクション切断前より下げられ
る。その後再びパソコン10bとのコネクションが確立
され、中断していたアプリケーションの通信が中断直前
の状態から再開され、ステップS21に戻る。
Thereafter, the digital camera 10a determines whether a response frame indicating that the connection disconnection frame has been received has been received from the personal computer 10b (step S29), and waits until a response frame is received. When received, the communication speed is changed to the initial speed (step S30a). Thereafter, a connection request frame is transmitted (step S30b), and reception of a connection response frame is waited for (step S30).
c). When the connection response frame is received, the communication speed is changed to the negotiated communication speed (step S31).
At this time, the communication speed is reduced from before the disconnection. Thereafter, the connection with the personal computer 10b is established again, and the communication of the interrupted application is resumed from the state immediately before the interruption, and the process returns to step S21.

【0061】一方、ステップS23において伝送エラー
が検出されなければ、パソコン10bからのコネクショ
ン切断フレームが受信されたか否かが判断され(ステッ
プS33)、コネクション切断フレームが受信される
と、それを受信した旨の応答フレームがパソコン10b
に返され(ステップS35)、通信速度が初期速度、具
体的には9,600bpsに変更され(ステップS37)、
コネクションは切断され、アプリケーションの通信は中
断状態となる。そして、コネクション要求フレームが受
信されたか否かが判断され(ステップS39)、受信さ
れるまで待機し、コネクション要求フレームが受信され
ると、その後の折衝通信速度に通信速度が変更される
(ステップS41)。このとき通信速度は、コネクショ
ン切断前より下げられる。その後再びパソコン10bと
のコネクションが確立され、中断していたアプリケーシ
ョンの通信が中断直前の状態から再開され、ステップS
21に戻る。
On the other hand, if no transmission error is detected in step S23, it is determined whether or not a disconnection frame has been received from the personal computer 10b (step S33). If a disconnection frame has been received, it is received. The response frame to the effect is the personal computer 10b
(Step S35), the communication speed is changed to the initial speed, specifically 9,600 bps (step S37),
The connection is disconnected, and the application communication is suspended. Then, it is determined whether or not a connection request frame has been received (step S39), and the process waits until the connection request frame is received. When the connection request frame is received, the communication speed is changed to a subsequent negotiation communication speed (step S41). ). At this time, the communication speed is reduced from before the disconnection. Thereafter, the connection with the personal computer 10b is established again, and the communication of the interrupted application is resumed from the state immediately before the interruption.
Return to 21.

【0062】一方、ステップS33において、コネクシ
ョン切断フレームが受信されなければ、通常の受信デー
タ処理が行われ(ステップS43)、ステップS21に
戻る。
On the other hand, if the connection disconnection frame is not received in step S33, normal reception data processing is performed (step S43), and the process returns to step S21.

【0063】そして、上述の処理が繰り返される。Then, the above processing is repeated.

【0064】このように通信品質が悪化し伝送エラーに
よってフレームの再送が頻発するような状況では、一旦
コネクションを切断して再度折衝し、適正な通信速度を
設定した後に、コネクションを確立し通信を再開するこ
とによって、図3の処理を行う場合と同様に、フレーム
損失等による実質通信速度の低下や強制切断を防ぎ、通
信状況を改善できる。
In a situation where the communication quality deteriorates and frame retransmission frequently occurs due to a transmission error, the connection is once disconnected and negotiated again, and after setting an appropriate communication speed, the connection is established and communication is established. By resuming, as in the case of performing the processing in FIG. 3, it is possible to prevent a substantial reduction in the communication speed or forced disconnection due to frame loss or the like, and improve the communication state.

【0065】また、相手方装置との通信を中断しても、
その後の再開時にはアプリケーションの通信を中断直前
の状態から再開できるので、通信を効率的に行える。
Further, even if the communication with the counterpart device is interrupted,
At the time of subsequent restart, the communication of the application can be restarted from the state immediately before the interruption, so that the communication can be performed efficiently.

【0066】ここで、通信を中断しても、その後の再開
時には通信を中断直前の状態から再開できる点につい
て、図5を参照して説明する。
Referring now to FIG. 5, a description will be given, with reference to FIG. 5, that the communication can be resumed from the state immediately before the interruption even when the communication is interrupted.

【0067】赤外線通信プロコトルは、上述したように
下位層と上位層とに分かれる。対面した2つの装置どう
しで通信したいとき、まず、下位層で相手方装置の検索
と通信コネクションの折衝を行って通信が開始される。
このときの通信速度は、2つの装置で通信できる最大通
信速度に設定される。一般に、下位層で折衝し接続した
通信が切断した場合は、アプリケーションからのデータ
は正常に転送されなくなるので、伝送エラーの発生が上
位層、アプリケーションにイベントとして通知され、通
信動作が異常終了される。この場合、従来のプロコトル
階層実現手法では、異常終了された2つの装置間におい
て、相手方装置の検索や通信コネクションの折衝等を最
初からやり直さなければならなかった。またその後、2
つの装置間で通信が再開されても、通信速度は以前と同
様に最大通信速度に設定されるので、伝送エラーが発生
し通信が再度異常終了するおそれがあった。
The infrared communication protocol is divided into a lower layer and an upper layer as described above. When it is desired to communicate between two devices facing each other, first, the lower layer searches for a partner device and negotiates a communication connection to start communication.
The communication speed at this time is set to the maximum communication speed at which the two devices can communicate. Generally, when communication negotiated and connected in the lower layer is disconnected, data from the application is not normally transferred, so that the occurrence of a transmission error is notified to the upper layer and the application as an event, and the communication operation is abnormally terminated. . In this case, in the conventional protocol hierarchy realization method, the search for the partner device, the negotiation of the communication connection, and the like have to be performed again from the beginning between the two abnormally terminated devices. And then 2
Even if communication is resumed between the two devices, the communication speed is set to the maximum communication speed as before, so that a transmission error may occur and communication may end abnormally again.

【0068】そこで、図4の動作を実現するこの発明の
実施の形態では、上位層は、下位層の通信が切断された
ことが分からないようにするために、図5に示すよう
に、上位層70と下位層72との間にFIFO型のバッ
ファ74を設ける。バッファ74は、たとえばメモリを
利用してソフトウェアによって形成され、デジタルカメ
ラ10aではRAM28内に、パソコン10bではRA
M42内に形成される。
Therefore, in the embodiment of the present invention for realizing the operation of FIG. 4, the upper layer, as shown in FIG. 5, does not know that the communication of the lower layer has been disconnected. A FIFO type buffer 74 is provided between the layer 70 and the lower layer 72. The buffer 74 is formed by software using a memory, for example, and is stored in the RAM 28 in the digital camera 10a and RA in the personal computer 10b.
It is formed in M42.

【0069】図5(a)に示すように、上位層70は、
アプリケーションからの送信指示に基づいてバッファ7
4にデータの入ったフレームを送り込む。下位層72
は、バッファ74からデータの入ったフレームを古いも
のから順に取り出し、それを赤外線受発光部76から送
出する。
As shown in FIG. 5A, the upper layer 70
Buffer 7 based on transmission instruction from application
The frame containing the data is sent to 4. Lower layer 72
Extracts the frame containing the data from the buffer 74 in order from the oldest, and sends it out from the infrared light receiving / emitting unit 76.

【0070】このようにすれば、図5(b)に示すよう
に、下位層72の通信が切断されても、上位層70はバ
ッファ74にフレームを送り込めばよいだけであるの
で、通信切断の影響を受けない。その後、下位層72は
新しい通信速度で折衝し接続する。接続後、下位層72
はバッファ74にあるフレームを取り出し、赤外線受発
光部76から送出する。これによって、アプリケーショ
ンは異常終了することなく通信でき、相手方装置との通
信を中断しても、その後の再開時には中断直前の状態か
ら通信を再開できる。またこのとき、通信速度は以前よ
り低く設定されるので、データ転送が良好となる。
In this way, as shown in FIG. 5B, even if the communication of the lower layer 72 is cut off, the upper layer 70 only needs to send the frame to the buffer 74. Not affected by Thereafter, the lower layer 72 negotiates and connects at the new communication speed. After connection, the lower layer 72
Takes out the frame in the buffer 74 and sends it out from the infrared light receiving / emitting unit 76. As a result, the application can communicate without abnormal termination, and even if the communication with the counterpart device is interrupted, the communication can be resumed from the state immediately before the interruption when resuming thereafter. At this time, the communication speed is set lower than before, so that the data transfer is good.

【0071】なお、この発明は、プリンタ、ファック
ス、携帯電話、PDAなどの任意の情報機器や、テレ
ビ、ビデオ、掃除機、エアコンなどの任意の家電機器に
適用できる。また、この発明は、パソコン本体と、その
周辺機器、たとえばディスプレイ、キーボード、フロッ
ピーディスクドライブ、CD−ROMドライブ、モデム
等との間の通信にも適用できる。
The present invention can be applied to any information equipment such as a printer, a facsimile, a mobile phone and a PDA, and to any home electric equipment such as a television, a video, a vacuum cleaner and an air conditioner. The present invention is also applicable to communication between a personal computer and its peripheral devices such as a display, a keyboard, a floppy disk drive, a CD-ROM drive, and a modem.

【0072】[0072]

【発明の効果】この発明によれば、伝送エラーが頻発す
るような状況では、通信速度を下げることによって、パ
ケット損失等による実質通信速度の低下や通信の強制切
断を防ぐことができ、実効転送速度を最適化できる。し
たがって、通信状況を改善でき、データ転送が良好とな
る。
According to the present invention, in a situation where a transmission error frequently occurs, by lowering the communication speed, it is possible to prevent a substantial reduction in the communication speed due to packet loss or the like and a forced disconnection of the communication. Speed can be optimized. Therefore, the communication situation can be improved, and the data transfer can be improved.

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

【図1】この発明の一実施形態を示すブロック図であ
る。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】この発明で用いられるフレームフォーマットの
一例を示す図解図である。
FIG. 2 is an illustrative view showing one example of a frame format used in the present invention;

【図3】この発明の動作の一例を示すフロー図である。FIG. 3 is a flowchart showing an example of the operation of the present invention.

【図4】この発明の動作の他の例を示すフロー図であ
る。
FIG. 4 is a flowchart showing another example of the operation of the present invention.

【図5】図4の動作による効果を説明するための図解図
である。
FIG. 5 is an illustrative view for explaining effects of the operation in FIG. 4;

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

10a デジタルカメラ 10b パソコン 24 HDカード 28、42 RAM 34、58 赤外線制御部 36、60、76 赤外線受発光素子 38、64 CPU 40 ハードディスク 44 CD−ROMドライブ 46 フロッピーディスクドライブ 48 ネットワークインタフェース 50 通信ポート 52 モデム 70 上位層 72 下位層 74 バッファ 10a Digital camera 10b Personal computer 24 HD card 28, 42 RAM 34, 58 Infrared controller 36, 60, 76 Infrared light emitting / emitting element 38, 64 CPU 40 Hard disk 44 CD-ROM drive 46 Floppy disk drive 48 Network interface 50 Communication port 52 Modem 70 Upper layer 72 Lower layer 74 Buffer

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 赤外線通信する相手方装置との実質通信
速度が所定値より小さいか否かを判断する判断手段、お
よび前記実質通信速度が前記所定値より小さいときには
前記相手方装置との通信速度を下げる第1手段を備え
る、赤外線通信装置。
1. A determining means for determining whether a substantial communication speed with a partner device for infrared communication is lower than a predetermined value, and reducing the communication speed with the partner device when the substantial communication speed is lower than the predetermined value. An infrared communication device comprising a first means.
【請求項2】 前記判断手段は、正常フレームの受信数
と損失フレーム数との割合に基づいて通信品質を計算す
る手段、および前記通信品質が規定値より小さいとき前
記実質通信速度が前記所定値より小さいと判断する手段
を含む、請求項1に記載の赤外線通信装置。
2. The communication device according to claim 1, wherein the determining unit calculates communication quality based on a ratio between the number of normal frames received and the number of lost frames, and when the communication quality is smaller than a predetermined value, the substantial communication speed is the predetermined value. The infrared communication device according to claim 1, further comprising a unit that determines that the size is smaller than the size.
【請求項3】 前記第1手段は、前記実質通信速度が前
記所定値より小さいときには前記相手方装置に前記通信
速度を変更するための通信速度変更フレームを送信する
手段を含む、請求項1または2に記載の赤外線通信装
置。
3. The apparatus according to claim 1, wherein said first means includes means for transmitting a communication speed change frame for changing said communication speed to said counterpart device when said substantial communication speed is smaller than said predetermined value. An infrared communication device according to item 1.
【請求項4】 前記相手方装置から送信される前記通信
速度を変更するための通信速度変更フレームを受信する
手段、および前記通信速度変更フレームを受信したとき
前記通信速度を下げる手段をさらに含む、請求項1ない
し3のいずれかに記載の赤外線通信装置。
4. The communication apparatus according to claim 1, further comprising: means for receiving a communication speed change frame transmitted from said other device for changing said communication speed, and means for lowering said communication speed when receiving said communication speed change frame. Item 4. An infrared communication device according to any one of Items 1 to 3.
【請求項5】 前記第1手段は、前記実質通信速度が前
記所定値より小さいときには前記相手方装置とのコネク
ションを切断し通信を中断する手段を含む、請求項1ま
たは2に記載の赤外線通信装置。
5. The infrared communication apparatus according to claim 1, wherein said first means includes means for cutting off a connection with said counterpart apparatus and interrupting communication when said substantial communication speed is lower than said predetermined value. .
【請求項6】 前記第1手段は、前記相手方装置との通
信を中断した後前記通信速度を下げて折衝する手段、前
記折衝の後再びコネクションを確立し通信を中断直前の
状態から再開する手段を含む、請求項5に記載の赤外線
通信装置。
6. The first means for negotiating by lowering the communication speed after interrupting communication with the counterpart device, and means for re-establishing a connection after the negotiation and resuming communication from the state immediately before the interruption. The infrared communication device according to claim 5, comprising:
【請求項7】 赤外線通信する相手方装置との実質通信
速度が所定値より小さいか否かを判断する第1ステッ
プ、および前記実質通信速度が前記所定値より小さいと
きには前記相手方装置との通信速度を下げる第2ステッ
プを備える、赤外線通信方法。
7. A first step of judging whether or not a substantial communication speed with a counterpart device for infrared communication is lower than a predetermined value, and when the real communication speed is lower than the predetermined value, the communication speed with the counterpart device is reduced. An infrared communication method comprising a second step of lowering.
【請求項8】 前記第1ステップは、正常フレームの受
信数と損失フレーム数との割合に基づいて通信品質を計
算するステップ、および前記通信品質が規定値より小さ
いとき前記実質通信速度が前記所定値より小さいと判断
するステップを含む、請求項7に記載の赤外線通信方
法。
8. The first step is a step of calculating communication quality based on a ratio between the number of normal frames received and the number of lost frames, and when the communication quality is smaller than a specified value, the substantial communication speed is equal to the predetermined value. The infrared communication method according to claim 7, further comprising a step of determining that the value is smaller than the value.
【請求項9】 前記第2ステップは、前記実質通信速度
が前記所定値より小さいときには前記相手方装置に前記
通信速度を変更するための通信速度変更フレームを送信
するステップを含む、請求項7または8に記載の赤外線
通信方法。
9. The method according to claim 7, wherein the second step includes a step of transmitting a communication speed change frame for changing the communication speed to the counterpart device when the substantial communication speed is smaller than the predetermined value. Infrared communication method described in 1.
【請求項10】 前記相手方装置から送信される前記通
信速度を変更するための通信速度変更フレームを受信す
る第3ステップ、および前記通信速度変更フレームを受
信したとき前記通信速度を下げる第4ステップをさらに
含む、請求項7ないし9のいずれかに記載の赤外線通信
方法。
10. A third step of receiving a communication speed change frame for changing the communication speed transmitted from the counterpart device, and a fourth step of lowering the communication speed when receiving the communication speed change frame. The infrared communication method according to claim 7, further comprising:
【請求項11】 前記第2ステップは、前記実質通信速
度が前記所定値より小さいときには前記相手方装置との
コネクションを切断し通信を中断するステップを含む、
請求項7または8に記載の赤外線通信方法。
11. The second step includes a step of disconnecting a connection with the counterpart device and interrupting communication when the substantial communication speed is lower than the predetermined value,
The infrared communication method according to claim 7.
【請求項12】 前記第2ステップは、前記相手方装置
との通信を中断した後前記通信速度を下げて折衝するス
テップ、前記折衝の後再びコネクションを確立し通信を
中断直前の状態から再開するステップを含む、請求項1
1に記載の赤外線通信方法。
12. The second step includes a step of negotiating by lowering the communication speed after interrupting communication with the counterpart device, and a step of re-establishing a connection after the negotiation and restarting communication from a state immediately before the interruption. Claim 1.
2. The infrared communication method according to 1.
【請求項13】 赤外線通信する相手方装置との実質通
信速度が所定値より小さいか否かを判断させる第1処
理、および前記実質通信速度が前記所定値より小さいと
きには前記相手方装置との通信速度を下げさせる第2処
理をコンピュータに実行させるためのプログラムを記録
したコンピュータ読み取り可能な記録媒体。
13. A first process for judging whether or not a substantial communication speed with a counterpart device for infrared communication is lower than a predetermined value, and when the substantial communication speed is lower than the predetermined value, the communication speed with the counterpart device is reduced. A computer-readable recording medium on which a program for causing a computer to execute a second process for lowering is recorded.
【請求項14】 前記第1処理は、正常フレームの受信
数と損失フレーム数との割合に基づいて通信品質を計算
させる処理、および前記通信品質が規定値より小さいと
き前記実質通信速度が前記所定値より小さいと判断させ
る処理を含む、請求項13に記載のコンピュータ読み取
り可能な記録媒体。
14. The first process is a process of calculating communication quality based on a ratio between the number of normal frames received and the number of lost frames, and when the communication quality is smaller than a prescribed value, the substantial communication speed is equal to the predetermined value. 14. The computer-readable recording medium according to claim 13, further comprising a process of determining that the value is smaller than the value.
【請求項15】 前記第2処理は、前記実質通信速度が
前記所定値より小さいときには前記相手方装置に前記通
信速度を変更するための通信速度変更フレームを送信さ
せる処理を含む、請求項13または14に記載のコンピ
ュータ読み取り可能な記録媒体。
15. The method according to claim 13, wherein the second process includes a process of transmitting a communication speed change frame for changing the communication speed to the counterpart device when the substantial communication speed is smaller than the predetermined value. A computer-readable recording medium according to claim 1.
【請求項16】 前記相手方装置から送信される前記通
信速度を変更するための通信速度変更フレームを受信さ
せる第3処理、および前記通信速度変更フレームを受信
したとき前記通信速度を下げさせる第4処理をコンピュ
ータに実行させるためのプログラムをさらに記録した、
請求項13ないし15のいずれかに記載のコンピュータ
読み取り可能な記録媒体。
16. A third process for receiving a communication speed change frame for changing the communication speed transmitted from the counterpart device, and a fourth process for lowering the communication speed when receiving the communication speed change frame. Further recorded a program for causing the computer to execute,
A computer-readable recording medium according to any one of claims 13 to 15.
【請求項17】 前記第2処理は、前記実質通信速度が
前記所定値より小さいときには前記相手方装置とのコネ
クションを切断させ通信を中断させる処理を含む、請求
項13または14に記載のコンピュータ読み取り可能な
記録媒体。
17. The computer-readable computer according to claim 13, wherein the second process includes a process of disconnecting a connection with the counterpart device and interrupting communication when the substantial communication speed is lower than the predetermined value. Recording medium.
【請求項18】 前記第2処理は、前記相手方装置との
通信を中断させた後前記通信速度を下げて折衝させる処
理、前記折衝の後再びコネクションを確立させ通信を中
断直前の状態から再開させる処理を含む、請求項17に
記載のコンピュータ読み取り可能な記録媒体。
18. The second process is a process of interrupting communication with the counterpart device and then negotiating by lowering the communication speed. After the negotiation, a connection is established again and communication is resumed from a state immediately before the interruption. The computer-readable recording medium according to claim 17, including processing.
JP28891598A 1998-09-24 1998-09-24 Device and method for infrared communication and recording medium Pending JP2000101605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28891598A JP2000101605A (en) 1998-09-24 1998-09-24 Device and method for infrared communication and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28891598A JP2000101605A (en) 1998-09-24 1998-09-24 Device and method for infrared communication and recording medium

Publications (1)

Publication Number Publication Date
JP2000101605A true JP2000101605A (en) 2000-04-07

Family

ID=17736451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28891598A Pending JP2000101605A (en) 1998-09-24 1998-09-24 Device and method for infrared communication and recording medium

Country Status (1)

Country Link
JP (1) JP2000101605A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004207898A (en) * 2002-12-24 2004-07-22 Fuji Photo Film Co Ltd Image file transmission apparatus, digital camera, and print ordering system
JP2005347836A (en) * 2004-05-31 2005-12-15 Sharp Corp Data transmitter, data receiver, communication system, control program for data transmitter, control program for data receiver and computer readable recording medium
WO2007020944A1 (en) * 2005-08-18 2007-02-22 Sammy Networks Co., Ltd.. Short distance wireless communication apparatus, short distance wireless communication method and program
US7787391B2 (en) 2005-01-28 2010-08-31 Sharp Kabushiki Kaisha Communication device, communication system, communication method, communication program, and communication circuit
US7986646B2 (en) 2006-10-16 2011-07-26 Sharp Kabushiki Kaisha Communication apparatus, communication method, communication circuit, mobile phone, program, and computer readable recording medium with program recorded therein
US8036244B2 (en) 2004-08-06 2011-10-11 Sharp Kabushiki Kaisha Transmitter, receiver, communication system, communication method, non-transitory computer readable medium
US8051182B2 (en) 2005-01-28 2011-11-01 Sharp Kabushiki Kaisha Communication device, communication system, communication method, communication program, and communication circuit
US8284684B2 (en) 2005-01-28 2012-10-09 Sharp Kabushiki Kaisha Communication device, communication system, communication method, and communication circuit
US8291273B2 (en) 2005-01-28 2012-10-16 Sharp Kabushiki Kaisha Communication device, non-transitory computer-readable medium storing a communication program
JP2014197909A (en) * 2009-10-28 2014-10-16 ファーウェイ デバイス カンパニー リミテッド Radio access point device operating method and radio access point device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004207898A (en) * 2002-12-24 2004-07-22 Fuji Photo Film Co Ltd Image file transmission apparatus, digital camera, and print ordering system
JP2005347836A (en) * 2004-05-31 2005-12-15 Sharp Corp Data transmitter, data receiver, communication system, control program for data transmitter, control program for data receiver and computer readable recording medium
JP4597583B2 (en) * 2004-05-31 2010-12-15 シャープ株式会社 Data transmission device, data reception device, communication system, control program for data transmission device, control program for data reception device, and computer-readable recording medium
US8036244B2 (en) 2004-08-06 2011-10-11 Sharp Kabushiki Kaisha Transmitter, receiver, communication system, communication method, non-transitory computer readable medium
US7787391B2 (en) 2005-01-28 2010-08-31 Sharp Kabushiki Kaisha Communication device, communication system, communication method, communication program, and communication circuit
US8051182B2 (en) 2005-01-28 2011-11-01 Sharp Kabushiki Kaisha Communication device, communication system, communication method, communication program, and communication circuit
US8284684B2 (en) 2005-01-28 2012-10-09 Sharp Kabushiki Kaisha Communication device, communication system, communication method, and communication circuit
US8291273B2 (en) 2005-01-28 2012-10-16 Sharp Kabushiki Kaisha Communication device, non-transitory computer-readable medium storing a communication program
WO2007020944A1 (en) * 2005-08-18 2007-02-22 Sammy Networks Co., Ltd.. Short distance wireless communication apparatus, short distance wireless communication method and program
US7986646B2 (en) 2006-10-16 2011-07-26 Sharp Kabushiki Kaisha Communication apparatus, communication method, communication circuit, mobile phone, program, and computer readable recording medium with program recorded therein
JP2014197909A (en) * 2009-10-28 2014-10-16 ファーウェイ デバイス カンパニー リミテッド Radio access point device operating method and radio access point device

Similar Documents

Publication Publication Date Title
JP4198741B2 (en) Communication device, communication system, communication method, communication program, communication circuit
US5878120A (en) Mechanism and method for multiplexing voice and data over a signal carrier with high bandwidth efficiency
JP2000101605A (en) Device and method for infrared communication and recording medium
JP3501269B2 (en) Facsimile apparatus, facsimile communication system and method
EP1487210A1 (en) Image data processing method of mobile communication terminal
JP3792166B2 (en) Internet facsimile machine
JP2002058002A (en) Video telephone device
JP2001148802A (en) Digital camera and digital camera system
JP4001593B2 (en) Packet receiving method for portable terminal
EP1142331A1 (en) Mobile radio terminal
JP2008079330A (en) Communications device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printer, and recording apparatus
KR101217208B1 (en) Method of control for a data transmission between the protocol layers in portable device
JPH05327772A (en) Computer network system
JP2008227978A (en) Network communication terminal device, network communication method, network communication program, and recording medium
JPH114259A (en) Virtual connection communication equipment and communication method
WO2021140768A1 (en) Transmission device and transmission method
JPH03101368A (en) Communication controller for movable radio facsimile
JP2002335299A (en) Communication system for multimedia information
JPH01117439A (en) Data communication system
JPH07284078A (en) Television conference device
JP2978825B2 (en) Adapter device for mobile phone
JPH1070589A (en) Communication equipment
JP2002252670A (en) xDSL COMMUNICATION SYSTEM xDSL MODEM, COMPUTER, SOFTWARE AND COMMUNICATION METHOD
JP2795777B2 (en) Network controller
JP3022376B2 (en) Facsimile apparatus capable of changing communication speed and communication speed changing method