【0001】
【発明の属する技術分野】
本発明は、オブジェクト交換プロトコルを有するインターフェイスを搭載した機器に関し、機器がある条件において一定の処理を必要としている場合に関する処理方法である。
【0002】
【従来の技術】
圧縮データなどのようにデータが全て揃わないと本来のデータが理解できない場合、データを一度蓄積する必要がある。この蓄積にかかる時間を有効に利用する為には蓄積期間の正確な時間が必要になってくる。しかし、従来のインターフェイスではデータを受信する場合、受信データの大きさを事前に知る事ができないので正確な時間を予め算出する事が出来なかった。その為、この蓄積期間を有効に利用できないという問題点があった。
【0003】
【発明が解決しようとする課題】
本発明は、オブジェクト交換プロトコルを用いたインターフェイスを搭載した機器に関し、前記インターフェイスより受信したデータを蓄積する場合に蓄積期間の正確な時間を算出し蓄積期間を有効に利用するものである。
【0004】
【課題を解決するための手段】
上記の目的を達成するために、本発明は以下の構成からなる。
【0005】
すなわち、オブジェクト交換プロトコルを有するインターフェイスとオブジェクトを蓄積する手段、オブジェクト交換プロトコルに準じてオブジェクト転送開始前にオブジェクトの大きさ、種類などの情報を取得する手段、種類からオブジェクトの蓄積を判断する手段およびオブジェクトの大きさから蓄積にかかる時間を推測する手段と蓄積時間に応じて、蓄積処理と並列に実行可能な処理を決定する手段を備えた装置。
【0006】
【発明の実施の形態】
以下では、本発明の実施例を詳細に説明する。
【0007】
本発明の実施形態を図1インクジェットプリンタの構成を用いて説明する。なお本発明は実施の形態を適用する装置はインクジェットプリンタに限定するものではなく各種装置に応用できるものである。
【0008】
図1は本発明に適応可能な通常に構成されているインクジェットプリンタ(B)でありコンピュータ(A)とオブジェクト交換プロトコルを有したインターフェイス部によってコンピュータ(A)からの印刷データを受信し、データを記憶する受信バッファ(RAM)、受信バッファに記憶されたデータを解析する解析部(CPU、ROM)解析部により解析されたデータに基づき印刷を実行するプリンタエンジンで構成されている。
【0009】
オブジェクト交換プロトコルを有したインターフェイスの一つに赤外線を用いたIrOBEX通信がある。実施例1ではこのIrOBEX通信を備えたインクジェットプリンタとして説明していく。しかしこのオブジェクト交換プロトコルを有したインターフェイスはこれに限定されるものではない。
【0010】
図1のインターフェイス部において赤外線を用いたIrOBEX通信をサポートしている。
【0011】
IrOBEX通信プロトコルに準じて送信されたオブジェクトを受信バッファ(RAM)に記憶している。
【0012】
IrOBEX通信は図2のようにIrOBEX(Infrared Object Exchange Protocol)通信プロトコルに準じてIrDA通信におけるIrLAP層(Infrared Link Access Protocol)(A),IrLMP層(Infrared Link Manager Protocol)(B),TinyTP層(Flow Control)(C),IAS層(Information Access Service)(D)のプロトコルをサポートしてIrOBEX通信を行っている。この通信では各層が下位(IrLAP層)より順じプロトコルに従いコネクト処理を行っていくことで通信が確立している。
【0013】
次に図1と図2を参照し、図3を用いて本実施形態の動作について説明する。
【0014】
ステップ3−1では図2のIrDAの各プロトコルにおけるコネクト処理により通信が順じ確立されてゆきIrOBEXプロトコルに準じたIrOBEXコネクトコマンドを受信する。
【0015】
ステップ3−2ではステップ3−1で受信したIrOBEXコネクトコマンドの中に以降送信されるオブジェクトの大きさや種類の情報があるか、その他の条件を抽出する。この時これらの情報はIrOBEXプロトコルに準じたヘッダ情報により獲得する。オブジェクトの大きさ情報はLengthヘッダ、種類の情報はNameヘッダやTypeヘッダなどから獲得できる。
【0016】
ステップ3−3ではステップ3−2で得た情報を元に機器の条件に合ったIrOBEXコネクトレスポンスで応答を行う。
【0017】
ステップ3−4ではステップ3−2で大きさ、種類情報が獲得できたならばステップ3−6へ進み、獲得できなかった場合はステップ3−5へ進む。ステップ3−5ではオブジェクト送信までに付加されるヘッダ情報から必要な情報を取得しにいく。取得できたならばステップ3−6へ進む。大きさ情報を取得出来ない場合はステップ3−10へ進み、種類情報を取得できない場合は蓄積処理を行わずステップ3−11へ進む。
【0018】
ステップ3−6では必要なオブジェクトの種類の情報からオブジェクトを蓄積するべきデータであるかそうでないかを判断する。蓄積するデータとしてはJPEG方式で圧縮されたデータなどがある。蓄積データである場合はステップ3−7へ、違う場合はステップ3−11へ進む。
【0019】
ステップ3−7ではオブジェクトの大きさと現在の通信速度からオブジェクト蓄積にかかる時間を算出する。ステップ3−8ではステップ3−7で算出された蓄積時間とインクジェットプリンタが印刷前に行えるいくつかの処理の処理時間とを比較し実行可能ならばステップ3−9へ進み蓄積処理と並列に実行する。(双方の処理が終了したならばステップ3−11へ進む。)並列実行不可能な時間であれば何も行わずステップ3−10へ進む。この時のインクジェットプリンタが印刷前に行えるいくつかの処理についてはヘッドをクリーニングする手段を持っている場合はクリーニングを、またメインタンクとサブタンクを備えインクを供給していく手段を持っている場合はインク供給などを行う事が可能である。これらの処理を従来例のように印刷開始前に行う、もしくは印刷中に行った場合と本実施例で行った場合との時間系を図4に示す。
【0020】
ステップ3−10では並列に他の処理を行うことなく蓄積処理のみ行う。
【0021】
ステップ3−11では蓄積処理と並列処理が終了したのでオブジェクトデータを解析部に渡して印刷を開始する。
【0022】
【発明の効果】
以上、説明した実施例によれば、オブジェクト交換プロトコルを有したインターフェイスからのデータ受信によって予めデータ蓄積時間が予測できるので、その間にプリンタがクリーニングやインク供給処理と言った必要処理を前倒しで先に処理する事が可能になり図4の時間系による従来例と実施例の比較からもわかる通り印刷にかかる時間を短縮する事が可能になる。実施例では機器がプリンタであるので印刷時間の短縮になるが他の機器においても処理時間の短縮につながるものとなる。
【図面の簡単な説明】
【図1】実施例の構成図。
【図2】赤外線を用いたIrOBEX通信構成図。
【図3】実施例の動作図。
【図4】従来例と実施例の比較図。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a device equipped with an interface having an object exchange protocol, and relates to a processing method in a case where the device requires certain processing under certain conditions.
[0002]
[Prior art]
If the original data cannot be understood unless all the data is collected, such as compressed data, it is necessary to accumulate the data once. In order to effectively use the time required for the accumulation, an accurate time of the accumulation period is required. However, when data is received by the conventional interface, the size of the received data cannot be known in advance, so that an accurate time cannot be calculated in advance. Therefore, there is a problem that this accumulation period cannot be used effectively.
[0003]
[Problems to be solved by the invention]
The present invention relates to a device equipped with an interface using an object exchange protocol, wherein when accumulating data received from the interface, an accurate time of the accumulation period is calculated and the accumulation period is used effectively.
[0004]
[Means for Solving the Problems]
In order to achieve the above object, the present invention has the following configurations.
[0005]
Means for storing an interface having an object exchange protocol and an object, means for acquiring information such as the size and type of an object before the start of object transfer according to the object exchange protocol, means for judging the accumulation of an object from the type, and An apparatus comprising: means for estimating the time required for storage from the size of an object; and means for determining processing that can be executed in parallel with the storage processing in accordance with the storage time.
[0006]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail.
[0007]
An embodiment of the present invention will be described with reference to FIG. It should be noted that the device to which the present invention is applied is not limited to an inkjet printer, but can be applied to various devices.
[0008]
FIG. 1 shows a conventional ink jet printer (B) applicable to the present invention, which receives print data from a computer (A) through an interface having a computer (A) and an object exchange protocol, and transmits the data. It comprises a receiving buffer (RAM) for storing, and a printer engine for executing printing based on data analyzed by an analyzing unit (CPU, ROM) analyzing the data stored in the receiving buffer.
[0009]
One of the interfaces having the object exchange protocol is IrOBEX communication using infrared rays. The first embodiment will be described as an ink jet printer provided with this IrOBEX communication. However, the interface having the object exchange protocol is not limited to this.
[0010]
The interface section of FIG. 1 supports IrOBEX communication using infrared rays.
[0011]
An object transmitted according to the IrOBEX communication protocol is stored in a reception buffer (RAM).
[0012]
As shown in FIG. 2, the IrOBEX communication is based on an IrOBEX (Infrared Object Exchange Protocol) communication protocol, and is based on an IrLAP layer (Infrared Link Access Protocol) (A) and an IrLMP layer (InfraredPlayer) in IrDA communication in IrDA communication. Flow control (C) and IAS layer (Information Access Service) (D) are supported to perform IrOBEX communication. In this communication, communication is established by each layer performing a connect process according to a protocol in order from the lower layer (IrLAP layer).
[0013]
Next, the operation of this embodiment will be described with reference to FIGS.
[0014]
In step 3-1, communication is established in sequence by the connection processing in each IrDA protocol of FIG. 2, and an IrOBEX connect command conforming to the IrOBEX protocol is received.
[0015]
In step 3-2, the IrOBEX connect command received in step 3-1 includes information on the size and type of the object to be transmitted thereafter, and other conditions are extracted. At this time, these pieces of information are obtained by header information conforming to the IrOBEX protocol. Object size information can be obtained from a Length header, and type information can be obtained from a Name header or a Type header.
[0016]
In step 3-3, a response is made with an IrOBEX connect response matching the conditions of the device based on the information obtained in step 3-2.
[0017]
In step 3-4, if the size and type information can be obtained in step 3-2, the process proceeds to step 3-6, and if not, the process proceeds to step 3-5. In step 3-5, necessary information is obtained from the header information added until the object is transmitted. If acquired, the process proceeds to step 3-6. If the size information cannot be obtained, the process proceeds to step 3-10. If the type information cannot be obtained, the process proceeds to step 3-11 without performing the accumulation process.
[0018]
In step 3-6, it is determined from the information on the required object type whether the data is to store the object or not. The data to be stored includes data compressed by the JPEG method. If the data is stored data, the process proceeds to step 3-7; otherwise, the process proceeds to step 3-11.
[0019]
In step 3-7, the time required for storing the object is calculated from the size of the object and the current communication speed. In step 3-8, the accumulation time calculated in step 3-7 is compared with the processing time of some processes that can be performed by the inkjet printer before printing. If it is possible to execute the process, the process proceeds to step 3-9 and is executed in parallel with the accumulation process. I do. (If both processes are completed, the process proceeds to step 3-11.) If the parallel execution is not possible, nothing is performed and the process proceeds to step 3-10. For some processing that the inkjet printer can perform before printing at this time, if you have a means to clean the head, clean it.If you have a means to supply ink with a main tank and sub tank, It is possible to supply ink and the like. FIG. 4 shows a time system when these processes are performed before the printing is started as in the conventional example, or when the processes are performed during the printing and in the present embodiment.
[0020]
In step 3-10, only accumulation processing is performed without performing other processing in parallel.
[0021]
In step 3-11, since the accumulation processing and the parallel processing have been completed, the object data is passed to the analysis unit and printing is started.
[0022]
【The invention's effect】
According to the above-described embodiment, the data storage time can be predicted in advance by receiving data from the interface having the object exchange protocol. In the meantime, the printer performs necessary processing such as cleaning and ink supply processing earlier in advance. Processing can be performed, and the time required for printing can be reduced as can be seen from a comparison between the conventional example and the embodiment based on the time system shown in FIG. In the embodiment, since the device is a printer, the printing time is reduced, but the processing time is also reduced in other devices.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an embodiment.
FIG. 2 is a configuration diagram of IrOBEX communication using infrared rays.
FIG. 3 is an operation diagram of the embodiment.
FIG. 4 is a comparative diagram of a conventional example and an example.