JPH10254659A - Printer and operation method therefor - Google Patents

Printer and operation method therefor

Info

Publication number
JPH10254659A
JPH10254659A JP9058728A JP5872897A JPH10254659A JP H10254659 A JPH10254659 A JP H10254659A JP 9058728 A JP9058728 A JP 9058728A JP 5872897 A JP5872897 A JP 5872897A JP H10254659 A JPH10254659 A JP H10254659A
Authority
JP
Japan
Prior art keywords
buffer
size
image
reception
data
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.)
Granted
Application number
JP9058728A
Other languages
Japanese (ja)
Other versions
JP3574289B2 (en
Inventor
Toshihiro Shima
敏博 島
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP05872897A priority Critical patent/JP3574289B2/en
Publication of JPH10254659A publication Critical patent/JPH10254659A/en
Application granted granted Critical
Publication of JP3574289B2 publication Critical patent/JP3574289B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printer capable of dynamically and automatically adjusting the size of a reception buffer during the processing of a printing job. SOLUTION: Printing data from a host computer 1 are received in the reception buffer 7. When the free capacity of a memory 13 is sufficiently large, the reception buffer 7 is increased to a large size and data reception is accelerated. When a command interpretation part 17 reads the data from the reception buffer 1 and generates image data, an image buffer 11 is increased. When the free capacity becomes insufficient as a result, the data reception is restrained and a reception buffer size is reduced to a small size. When a printing control part 19 reads the image data from the image buffer 11 and starts printing, the size of the image buffer 11 is reduced. When the free capacity becomes sufficient as a result, the reception buffer 7 is enlarged to the large size again and the data reception is accelerated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータシス
テムのプリンタに関わり、特にホストコンピュータから
の受信データを一時的に蓄積する受信バッファの制御に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer for a computer system, and more particularly to control of a reception buffer for temporarily storing data received from a host computer.

【0002】[0002]

【従来の技術】特開平7−144442号公報の印刷装
置は、コントロールパネル又はホストコンピュータから
のユーザ指令により、受信バッファのサイズつまり容量
を変更することができる。
2. Description of the Related Art The printing apparatus disclosed in Japanese Patent Application Laid-Open No. Hei 7-144442 can change the size, that is, the capacity of a receiving buffer according to a user command from a control panel or a host computer.

【0003】[0003]

【発明が解決しようとする課題】しかし、従来技術で
は、受信バッファのサイズはユーザが変更しない限り一
定である。ユーザは、受信バッファのサイズを頻繁に変
更するような面倒は好まない。しかし、ホストコンピュ
ータからの印刷データの量はジョブ毎に異なる。
However, in the prior art, the size of the receiving buffer is constant unless changed by the user. Users do not like the hassle of frequently changing the size of the receive buffer. However, the amount of print data from the host computer differs for each job.

【0004】印刷ジョブの処理中、メモリは受信バッフ
ァ、イメージバッファ、ワークエリアなど種々の用途に
使用される。ジョブ処理状況に適合して、それら複数の
用途にバランス良く且つ高効率にメモリが使用されたと
き、スループット及びホスト解放時間を含めた総合的な
印刷性能が最も高くなる。一般に、データ量の小さい印
刷ジョブに対しては受信バッファサイズは小さくてよ
く、データ量の大きい印刷ジョブには大きいサイズの受
信バッファを確保することが好ましい。しかし、従来技
術では、個々のジョブ毎にユーザが受信バッファサイズ
を設定することは非現実的であり、また、ジョブの処理
中に処理状況に応じて受信バッファサイズを調整するこ
とは不可能である。
During processing of a print job, the memory is used for various purposes such as a reception buffer, an image buffer, and a work area. When the memory is used in a well-balanced and highly efficient manner for the plurality of uses in conformity with the job processing situation, the overall printing performance including the throughput and the host release time is the highest. Generally, the reception buffer size may be small for a print job with a small data amount, and it is preferable to secure a large reception buffer for a print job with a large data amount. However, in the related art, it is impractical for the user to set the receiving buffer size for each individual job, and it is impossible to adjust the receiving buffer size according to the processing status during the processing of the job. is there.

【0005】そこで本発明の目的は、印刷ジョブの処理
中に受信バッファのサイズを動的に自動調節することの
できるプリンタを提供することにある。
It is an object of the present invention to provide a printer which can automatically and dynamically adjust the size of a receiving buffer during the processing of a print job.

【0006】[0006]

【課題を解決するための手段】本発明のプリンタは、受
信バッファをメモリ上に確保する受信バッファ確保手段
と、受信バッファから受信データを読み込み、読み込ん
だデータからイメージデータを生成するイメージ生成手
段と、生成されたイメージデータを格納するためのイメ
ージバッファをメモリ上に確保するイメージバッファ確
保手段とを備え、イメージバッファ確保手段は、生成さ
れたイメージデータの量に応じて、イメージバッファの
サイズを調節し、受信バッファ確保手段は、前記イメー
ジバッファのサイズに依存して、受信バッファのサイズ
を調節する。
A printer according to the present invention comprises a receiving buffer securing means for securing a receiving buffer on a memory, an image generating means for reading received data from the receiving buffer and generating image data from the read data. Image buffer securing means for securing an image buffer for storing generated image data in a memory, wherein the image buffer securing means adjusts the size of the image buffer according to the amount of generated image data. Then, the receiving buffer securing means adjusts the size of the receiving buffer depending on the size of the image buffer.

【0007】本発明のプリンタによれば、プリンタ内で
生成されたイメージデータの量に応じて、イメージバッ
ファのサイズが優先的に調節され、そして、このイメー
ジバッファのサイズに依存して、受信バッファのサイズ
が従属的に調節される。従って、プリンタ内では、イメ
ージデータの生成処理及び印刷処理の進行状況に応じ、
メモリ内の空き容量が変化するが、この空き容量の変化
に応じて受信バッファのサイズが可変する。例えば、空
き容量が大きければ、受信バッファのサイズも大きくな
り、空き容量が小さければ、受信バッファのサイズも小
さくなる。このように、メモリの空き容量に応じて受信
バッファサイズが動的に変化するので、メモリの利用効
率は常に良好である。
According to the printer of the present invention, the size of the image buffer is preferentially adjusted according to the amount of image data generated in the printer, and the receiving buffer is controlled depending on the size of the image buffer. Is adjusted in a dependent manner. Therefore, in the printer, according to the progress of the image data generation processing and the printing processing,
Although the free space in the memory changes, the size of the reception buffer varies according to the change in the free space. For example, if the free space is large, the size of the reception buffer becomes large, and if the free space is small, the size of the reception buffer becomes small. As described above, since the reception buffer size dynamically changes according to the free space of the memory, the memory utilization efficiency is always good.

【0008】好適な実施形態では、メモリの空き容量が
充分大きいか否かに応じて、受信バッファの上限値を大
小2段階に切換える。この2段階の制御は、比較的に単
純ではあるが、相当に良好な結果が期待できる。
In a preferred embodiment, the upper limit of the receiving buffer is switched between large and small depending on whether or not the free space in the memory is sufficiently large. Although this two-stage control is relatively simple, it can be expected that a considerably good result is obtained.

【0009】[0009]

【発明の実施の形態】図1は、本発明のプリンタの機能
構成を表すブロック図である。
FIG. 1 is a block diagram showing a functional configuration of a printer according to the present invention.

【0010】ホストコンピュータ1に接続されたプリン
タ5は、ホストコンピュータ1から送出される印刷デー
タを、ホストインターフェース3を通して受信する。印
刷データは、プリンタ5が理解する言語で表現されたコ
マンドのストリームである。受信された印刷データは、
ヒープメモリ13内の受信バッファ7に一旦蓄えられ
る。メモリ13は、受信バッファ7の他、ワークエリア
9やイメージバッファ11などに利用される。メモリ1
3内に受信バッファ7、ワークエリア9、イメージバッ
ファ11を確保し、それらのサイズを制御するために、
メモリ管理部15と呼ばれるプロセスが働く。
The printer 5 connected to the host computer 1 receives the print data sent from the host computer 1 through the host interface 3. The print data is a stream of commands expressed in a language understood by the printer 5. The received print data is
It is temporarily stored in the reception buffer 7 in the heap memory 13. The memory 13 is used for the work area 9 and the image buffer 11 in addition to the reception buffer 7. Memory 1
In order to secure the receiving buffer 7, the work area 9, and the image buffer 11 in 3 and control their sizes,
A process called a memory management unit 15 operates.

【0011】また、コマンド解釈部17と呼ばれるプロ
セスが、受信バッファ7からコマンドを受信順に読み出
し、これを解釈して、最終的に、印刷すべきイメージの
各ピクセルにドットを打つか否かを指示したバイナリ値
の集合(以下、イメージデータという)を生成する。生
成されたイメージデータは、メモリ13内のイメージバ
ッファ11に蓄積される。すると、印刷制御部19と呼
ばれる典型的にはハードウェアである要素が、イメージ
バッファ11からDMAの方法でイメージデータを読み
出して印刷エンジン21に送る。印刷エンジン21は、
紙のようなハードコピー媒体上に発色剤を用いて実際に
イメージを形成する。通常、印刷エンジン21は固有の
速度で媒体を取り込んで印刷を行ない、この印刷エンジ
ンの速度に同期して、印刷制御19がイメージデータを
イメージバッファ11から読み込む。
A process called a command interpreting unit 17 reads commands from the receiving buffer 7 in the order of reception, interprets the commands, and finally indicates whether or not to dot each pixel of the image to be printed. A set of binary values (hereinafter referred to as image data) is generated. The generated image data is stored in the image buffer 11 in the memory 13. Then, a typical hardware element called a print control unit 19 reads out image data from the image buffer 11 by a DMA method and sends it to the print engine 21. The print engine 21
The image is actually formed using a color former on a hard copy medium such as paper. Normally, the print engine 21 fetches a medium at a specific speed to perform printing, and the print control 19 reads image data from the image buffer 11 in synchronization with the speed of the print engine.

【0012】周知のように、受信バッファ7は、ホスト
コンピュータ1から受信した印刷データを、コマンド解
釈部17が読出すまで一時的に保持するメモリエリアで
ある。ワークエリア9は、ホストコンピュータ1からの
ダウンロードフォント等、コマンド解釈部17が印刷デ
ータからイメージデータを生成するのに必要な情報を格
納するメモリエリアである。イメージバッファ11は、
コマンド解釈部17が生成したイメージデータを、印刷
制御部19が読出すまで一時的に保持するメモリエリア
である。ワークエリア9とイメージバッファ11は、受
信バッファ7よりも優先的に確保されるべきである。ワ
ークエリア9は、これが確保されないと、コマンド解釈
部17が作動できないからである。
As is well known, the reception buffer 7 is a memory area for temporarily storing print data received from the host computer 1 until the command interpreter 17 reads out the print data. The work area 9 is a memory area for storing information necessary for the command interpretation unit 17 to generate image data from print data, such as a font downloaded from the host computer 1. The image buffer 11
This is a memory area for temporarily storing the image data generated by the command interpretation unit 17 until the print control unit 19 reads out the image data. The work area 9 and the image buffer 11 should be reserved with priority over the reception buffer 7. If the work area 9 is not secured, the command interpreter 17 cannot operate.

【0013】また、イメージバッファ11は、前述した
ように、これが確保されて印刷エンジン21の速度に同
期してイメージデータを印刷エンジン21に提供できる
ようになっていないと、印刷エンジン21が印刷を正常
に実行できないからである。
As described above, if the image buffer 11 is not secured to provide image data to the print engine 21 in synchronization with the speed of the print engine 21, the print engine 21 performs printing. This is because it cannot be executed normally.

【0014】そのため、図2に示すように、ヒープメモ
リ13内にワークエリア9及びイメージバッファ11を
それぞれの必要サイズで優先的に確保した上で、残った
領域内に受信バッファ7を確保するように、メモリ管理
部15が動作する。特に、イメージバッファ11の必要
サイズは時々刻々と変化する。つまり、コマンド解釈部
17がイメージデータを新たに生成すれば、その生成し
たデータ量だけイメージバッファ11は増大させる必要
があり、また、印刷制御部19がイメージデータを新た
に読み込めば、その読み込んだデータ量だけイメージバ
ッファ11を縮小することができる。メモリ管理部15
は、このようにイメージデータの生成及び読み込みの進
行に応じてイメージバッファ11のサイズを調節し、さ
らに、イメージバッファ11のサイズ変化に依存させ
て、可能な限り受信バッファ9が大きく確保できるよう
に受信バッファ9のサイズの上限値を変更する。
For this reason, as shown in FIG. 2, the work area 9 and the image buffer 11 are preferentially reserved in the heap memory 13 at the required sizes, and the reception buffer 7 is reserved in the remaining area. Then, the memory management unit 15 operates. In particular, the required size of the image buffer 11 changes every moment. That is, if the command interpreter 17 newly generates image data, the image buffer 11 needs to be increased by the generated data amount. If the print controller 19 newly reads image data, the read image data is read. The image buffer 11 can be reduced by the data amount. Memory management unit 15
In this way, the size of the image buffer 11 is adjusted according to the progress of the generation and reading of the image data, and further, the reception buffer 9 is ensured as large as possible depending on the change in the size of the image buffer 11. The upper limit value of the size of the reception buffer 9 is changed.

【0015】受信バッファ9のサイズが上記上限値を越
えなければ、ホストコンピュータ1からの印刷データは
継続して受信することができ、それに合せて受信バッフ
ァ9のサイズは増大していく。受信バッファ9のサイズ
が上限値を越えると、メモリ管理部15はホストインタ
フェース3に命じて受信を一時的に中断させる。中断し
ている間に、受信バッファ9からコマンド解釈部17へ
印刷データが読み出されて行き、新たな受信は行われな
いので、受信バッファ9のサイズは減少していく。受信
バッファ9のサイズが上限値を下回ると、受信を再開す
ることができる。
If the size of the reception buffer 9 does not exceed the upper limit, print data from the host computer 1 can be continuously received, and the size of the reception buffer 9 increases accordingly. When the size of the reception buffer 9 exceeds the upper limit, the memory management unit 15 instructs the host interface 3 to temporarily suspend the reception. During the suspension, the print data is read from the reception buffer 9 to the command interpreting unit 17, and no new reception is performed, so that the size of the reception buffer 9 decreases. When the size of the reception buffer 9 falls below the upper limit, reception can be resumed.

【0016】図3は、メモリ管理部15が行う受信バッ
ファ7のサイズ制御の手順を示すフローチャートであ
る。この手順では、受信バッファ9のサイズの上限値は
2段階、つまり、図4に模式的に示すように小さい上限
値n1と大きい上限値n2とに切換え制御する。なお、
nはヒープメモリ13の全容量である。
FIG. 3 is a flowchart showing a procedure for controlling the size of the reception buffer 7 performed by the memory management unit 15. In this procedure, the upper limit of the size of the receiving buffer 9 is controlled in two stages, that is, switching between a small upper limit n1 and a large upper limit n2 as schematically shown in FIG. In addition,
n is the total capacity of the heap memory 13.

【0017】メモリ管理部15は、先ず、ヒープメモリ
13の全容量nから受信バッファサイズの大きい上限値
n2を差し引いた値(n−n2)に比べて、イメージバ
ッファ11とワークエリア9の合計サイズbが、十分に
小さいかどうか(b<<(n−n2))を判定する(ステ
ップS1)。要するに、受信バッファ7のサイズを大き
い上限値n2まで確保するのに十分なだけの空き容量
が、メモリ13内に存在するか否かを判断する。
First, the memory management unit 15 compares the total size of the image buffer 11 and the work area 9 with a value (n−n2) obtained by subtracting the upper limit value n2 of the reception buffer size from the total capacity n of the heap memory 13. It is determined whether or not b is sufficiently small (b << (nn-2)) (step S1). In short, it is determined whether or not there is enough free space in the memory 13 to secure the size of the reception buffer 7 up to the large upper limit n2.

【0018】尚、ワークエリア9は、ホストコンピュー
タ1からのダウンロードフォントなどを保存するエリア
であって、そのサイズは一旦決まれば、以後は大きくは
変化しないので、受信バッファ7のサイズの動的な調整
に、イメージバッファ11程には大きくは影響しない。
そこで、以下では、説明を簡単にするために、ワークエ
リア9のサイズは一定とし、全ヒープメモリ13からワ
ークエリア9を除いた部分のサイズをnとし、イメージ
バッファ11のサイズをbとして説明を行う。
The work area 9 is an area for storing fonts downloaded from the host computer 1 and the like. Once the size is determined, it does not change significantly thereafter. It does not affect the adjustment as much as the image buffer 11 does.
Therefore, in the following, in order to simplify the description, the size of the work area 9 is assumed to be constant, the size of the portion excluding the work area 9 from the total heap memory 13 is set to n, and the size of the image buffer 11 is set to b. Do.

【0019】さて、ステップS1でb<<(n−n2)で
あれば(YES)、メモリ13に充分に空き容量がある
ことを意味する。この場合は、ホストコンピュータ1か
ら緩い制限n2で印刷データを受信し、受信したデータ
を全て受信バッファ7が受入れられるよう、受信したデ
ータ量の増加に合せて受信バッファサイズaを増加させ
る(S2)。このように、可能な限り受信バッファサイ
ズaを増やしてホストコンピュータ1からのデータを受
入れることは、ホストコンピュータ1の解放時間を短く
することに寄与する。
If b << (nn-2) in step S1 (YES), it means that the memory 13 has a sufficient free space. In this case, the print data is received from the host computer 1 with a strict limit n2, and the receive buffer size a is increased in accordance with the increase in the amount of received data so that the receive buffer 7 can accept all the received data (S2). . Thus, increasing the reception buffer size a as much as possible and accepting data from the host computer 1 contributes to shortening the release time of the host computer 1.

【0020】印刷データの受信を続けながら、受信バッ
ファサイズaが大きい上限値n2に達したか否かチェッ
クし(S3)、aがn2に達したら(S3でYES)、
ホストインタフェース3に命じてホストコンピュータ1
からのデータ受信を一時的に停止する(S4)。
While continuing to receive the print data, it is checked whether or not the receiving buffer size a has reached the large upper limit n2 (S3). If a has reached n2 (YES in S3),
Command host interface 3 to host computer 1
The reception of data from the server is temporarily stopped (S4).

【0021】上記動作と並行して、コマンド解釈部17
は受信バッファ7から印刷データを読み出し、これを解
釈してイメージデータを作成していく。従って、データ
受信を停止している間は、コマンド解釈部17の処理の
進行に伴って、受信バッファ7内の印刷データ量は減少
していく。そこで、この減少に合せて受信バッファサイ
ズaも減少させていく(S5)。逆に、コマンド解釈部
17が生成したイメージデータの量は増えて行くから、
このイメージデータを全てイメージバッファ11に格納
できるよう、このデータ増加に合せてイメージバッファ
11のサイズbを増加させてゆく(S5)。
In parallel with the above operation, the command interpreter 17
Reads out print data from the reception buffer 7 and interprets it to create image data. Therefore, while the data reception is stopped, the amount of print data in the reception buffer 7 decreases as the processing of the command interpreter 17 progresses. Therefore, the receiving buffer size a is also reduced in accordance with this reduction (S5). Conversely, since the amount of image data generated by the command interpreter 17 increases,
The size b of the image buffer 11 is increased in accordance with the increase of the data so that all the image data can be stored in the image buffer 11 (S5).

【0022】イメージバッファサイズbが増加して行っ
てb<<(n−n2)でなくなると(S1でNO)、つま
りメモリ13の空き容量が充分でなくなると、制御はス
テップS6へ移り、受信バッファサイズaの上限値を小
さい上限値n1へ切換える。即ち、まず、受信バッファ
サイズaが小さい上限値n1を下回ったかどうかを判定
し(S6)、aがn1を下回っていなければ(S6でN
O)、データ受信停止をさらに継続し(S7)、その
間、既に説明したステップ5と同様、受信バッファ7内
のデータ減少に伴って受信バッファ7を縮小し、かつ、
生成されたイメージデータの増加に伴ってイメージバッ
ファ11を拡大していく(S9)。その結果受信バッフ
ァ7が縮小していってn1を下回ると(S6でYE
S)、再びホストコンピュータ1からの受信を開始し、
それによる受信データ量の増加に伴って受信バッファサ
イズaをまた増加させる(S10)。そして、受信バッ
ファサイズaがn1を上回まわると(S11でYE
S)、再び受信を停止し(S12)、ステップS9へ進
む。
If the image buffer size b is increased and becomes less than b << (n-n2) (NO in S1), that is, if the free space of the memory 13 becomes insufficient, the control shifts to step S6 to receive the data. The upper limit of the buffer size a is switched to the smaller upper limit n1. That is, first, it is determined whether the reception buffer size a has fallen below the small upper limit value n1 (S6), and if a does not fall below n1 (N in S6).
O), the data reception suspension is further continued (S7), during which the reception buffer 7 is reduced in accordance with the decrease in the data in the reception buffer 7 as in step 5 already described, and
The image buffer 11 is enlarged with an increase in the generated image data (S9). As a result, when the receiving buffer 7 is reduced to be smaller than n1 (YE in S6).
S), the reception from the host computer 1 is started again,
With the increase in the amount of received data, the receiving buffer size a is increased again (S10). Then, when the reception buffer size a exceeds n1 (YE in S11).
S), the reception is stopped again (S12), and the process proceeds to step S9.

【0023】このように、イメージデータが増えて空き
容量が充分でない間は、受信バッファサイズaが小さい
上限値n1を越えない範囲で、受信と受信停止とを繰り
返すが、この間に印刷エンジン21による印刷が開始さ
れると(S8でYES)、制御はステップS1へ戻る。
印刷が開始されると、イメージバッファ11内のイメー
ジデータが印刷制御部19に転送されてゆくので、イメ
ージバッファ11内のデータ量が減り、これに伴ってイ
メージバッファサイズbも減少していく。その結果とし
て、イメージバッファサイズbが(n−n2)より充分
小さくなると(S1でYES)、制御はステップS2へ
再び入って、受信バッファ7のサイズaは大きい上限値
n2に基づいて制御される。
As described above, while the image data increases and the free space is not sufficient, the reception and the reception stop are repeated within a range where the reception buffer size a does not exceed the small upper limit value n1. When printing is started (YES in S8), control returns to step S1.
When printing is started, the image data in the image buffer 11 is transferred to the print control unit 19, so that the amount of data in the image buffer 11 decreases, and the image buffer size b also decreases accordingly. As a result, when the image buffer size b is sufficiently smaller than (n-n2) (YES in S1), the control returns to step S2, and the size a of the reception buffer 7 is controlled based on the large upper limit n2. .

【0024】以上のように、イメージバッファ11のサ
イズに依存して、空き容量が充分に大きければ、受信バ
ッファ7を比較的に大きく確保するように、また、空き
容量が充分に大きくなければ、受信バッファ7を比較的
に小さく確保するように、受信バッファサイズが動的に
調節される。
As described above, depending on the size of the image buffer 11, if the free space is sufficiently large, a relatively large receiving buffer 7 is secured. If the free space is not sufficiently large, The receive buffer size is dynamically adjusted so that the receive buffer 7 is kept relatively small.

【0025】以上の動作説明では、ワークエリア9のサ
イズを一定としたが、勿論、イメージバッファサイズと
ワークエリアサイズの和をbとすれば、ワークエリアサ
イズの変動にも対応できる。
In the above description of the operation, the size of the work area 9 is fixed. However, if the sum of the image buffer size and the work area size is set to b, it is possible to cope with a change in the work area size.

【0026】図4は、上述した制御によって各バッファ
のサイズが自動的に調節される過程の具体的な一例を示
した模式図である。横軸は経過時間を示し、縦軸はメモ
リ量を示す。縦軸の、全幅nはメモリ13の全容量、n
1は受信バッファサイズの小さい上限値、n2は受信バ
ッファサイズの大きい上限値、aは受信バッファ7のサ
イズ、bはイメージバッファ11のサイズ(又は、イメ
ージバッファ11とワークエリア9の合計サイズ)を示
す。
FIG. 4 is a schematic diagram showing a specific example of a process in which the size of each buffer is automatically adjusted by the above-described control. The horizontal axis shows the elapsed time, and the vertical axis shows the amount of memory. The total width n on the vertical axis is the total capacity of the memory 13, n
1 is the upper limit of the receive buffer size, n2 is the upper limit of the receive buffer size, a is the size of the receive buffer 7, and b is the size of the image buffer 11 (or the total size of the image buffer 11 and the work area 9). Show.

【0027】先ず、印刷データの受信開始前T0には、
メモリ13には殆どデータが格納されていないので、受
信バッファサイズaは最小値a0、イメージバッファサ
イズbも最小値b0になっている。この初期状態から、
印刷データの受信が開始されると、空き容量が充分にあ
るため、制限なしに受信が行われ、受信バッファサイズ
aは一気に増大し、時点T1で大きい上限値n2に等し
いサイズa1に達する。
First, at T0 before the start of print data reception,
Since almost no data is stored in the memory 13, the reception buffer size a has the minimum value a0 and the image buffer size b has the minimum value b0. From this initial state,
When the reception of the print data is started, since the free space is sufficient, the reception is performed without limitation, the reception buffer size a increases at a stretch, and reaches the size a1 equal to the large upper limit n2 at the time T1.

【0028】すると、受信が停止するため、イメージ生
成処理の進行に伴って、受信バッファサイズaは減少
し、逆に、イメージバッファサイズbが増加していく。
そして、時点T2のように、イメージバッファサイズb
が(n−n1)に匹敵する程度に大きくなると、受信バ
ッファサイズaが小さい上限値n1を下回るまで、受信
が停止されることになる。従って、時点T3に示すよう
に、受信バッファサイズaは益々減少し、逆に、イメー
ジバッファサイズbは益々増加してゆく。そして時点T
4で、受信バッファサイズaが小さい上限値n1を下回
ると、再び受信が開始され、受信バッファサイズaは増
加していく。
Then, the reception stops, so that the reception buffer size a decreases and the image buffer size b increases with the progress of the image generation processing.
Then, as at time T2, the image buffer size b
Becomes large enough to be equal to (n-n1), the reception is stopped until the reception buffer size a falls below the small upper limit n1. Therefore, as shown at the time T3, the reception buffer size a decreases more and the image buffer size b increases more and more. And time T
In 4, when the reception buffer size a falls below the small upper limit value n1, reception is started again, and the reception buffer size a increases.

【0029】ここで、例えば時点Tpで印刷が開始され
ると、イメージバッファ11に格納されたイメージデー
タが急速に減少し、これによってイメージバッファサイ
ズbも減少する。その結果、時点T5に示すように、イ
メージバッファサイズbが(n−n2)より充分に小さ
くなれば、受信を再開して受信バッファサイズaを増大
させていく。そして、時点T6のように、イメージバッ
ファサイズbが充分に小さい限り、受信バッファサイズ
aは大きい上限値n2まで一気に増加される。
Here, for example, when printing is started at the time point Tp, the image data stored in the image buffer 11 decreases rapidly, and the image buffer size b also decreases. As a result, as shown at time T5, when the image buffer size b becomes sufficiently smaller than (n−n2), the reception is restarted and the reception buffer size a is increased. Then, as in time T6, as long as the image buffer size b is sufficiently small, the reception buffer size a is increased to the large upper limit value n2 at a stretch.

【0030】尚、図4に示した過程は一例であって、実
際には必ずしも図4と全く同じようにバッファサイズが
変化するわけではない。しかし、イメージバッファのサ
イズに応じて、空き容量が許す範囲でなるべく大きい受
信バッファが確保できるように制御が行われることを、
当業者は理解できる筈である。
The process shown in FIG. 4 is an example, and the buffer size does not always change exactly as in FIG. However, according to the size of the image buffer, control is performed so that a reception buffer as large as possible can be secured within a range allowed by the free space.
One skilled in the art should understand.

【0031】また、上述の説明では、受信バッファサイ
ズの上限値を大小2段階に切換えたが、より多くの段階
で調節するようにしてもよい。つまり、イメージバッフ
ァサイズbのサイズを多レベルに区分して判別し、その
判断結果に応じて受信バッファサイズの上限値を多段階
に切換えるようにしてもよい。
Also, in the above description, the upper limit value of the receiving buffer size is switched between two levels, large and small, but it may be adjusted in more steps. That is, the size of the image buffer size b may be divided into multiple levels and determined, and the upper limit of the reception buffer size may be switched in multiple stages according to the determination result.

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

【図1】本発明のプリンタの一実施形態の機能構成を表
すブロック図。
FIG. 1 is a block diagram illustrating a functional configuration of a printer according to an embodiment of the invention.

【図2】ヒープメモリ上に各バッファが占める領域を示
す概念図。
FIG. 2 is a conceptual diagram showing an area occupied by each buffer on a heap memory.

【図3】本実施形態のバッファサイズ制御の手順を示す
フローチャート。
FIG. 3 is a flowchart illustrating a procedure of buffer size control according to the embodiment;

【図4】本実施形態のバッファサイズが調節される過程
を説明する模式図。
FIG. 4 is a schematic diagram illustrating a process of adjusting a buffer size according to the embodiment.

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

1 ホストコンピュータ 3 ホストインターフェース 5 プリンタ 7 受信バッファ 9 ワークエリア 11 イメージバッファ 13 ヒープメモリ 15 メモリ管理部 17 コマンド解釈部 19 印刷制御部 21 印刷エンジン DESCRIPTION OF SYMBOLS 1 Host computer 3 Host interface 5 Printer 7 Receive buffer 9 Work area 11 Image buffer 13 Heap memory 15 Memory management unit 17 Command interpretation unit 19 Print control unit 21 Print engine

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 メモリと、 受信データを格納するための受信バッファを前記メモリ
上に確保する受信バッファ確保手段と、 受信バッファから受信データを読み込み、読み込んだデ
ータからイメージデータを生成するイメージ生成手段
と、 前記イメージ生成手段により生成されたイメージデータ
を格納するためのイメージバッファを前記メモリ上に確
保するイメージバッファ確保手段とを備え、 前記イメージバッファ確保手段は、生成されたイメージ
データの量に応じて、イメージバッファのサイズを調節
し、 前記受信バッファ確保手段は、前記イメージバッファの
サイズに依存して、受信バッファのサイズを調節する事
を特徴とするプリンタ。
1. A memory, a receiving buffer securing means for securing a receiving buffer for storing received data on the memory, and an image generating means for reading received data from the receiving buffer and generating image data from the read data. And an image buffer securing means for securing an image buffer for storing the image data generated by the image generating means on the memory, wherein the image buffer securing means is configured in accordance with an amount of the generated image data. A printer for adjusting the size of the image buffer, wherein the receiving buffer securing unit adjusts the size of the receiving buffer depending on the size of the image buffer.
【請求項2】 請求項1記載のプリンタにおいて、 前記イメージ生成手段に必要なデータを格納するための
ワークエリアを前記メモリ上に確保するワークエリア確
保手段をさらに備え、 前記受信バッファ確保手段は、前記イメージバッファと
ワークエリアのサイズに応じて、前記受信バッファのサ
イズを調節する事を特徴とするプリンタ。
2. The printer according to claim 1, further comprising a work area securing means for securing a work area for storing data necessary for the image generating means on the memory, wherein the receiving buffer securing means comprises: A printer, wherein the size of the reception buffer is adjusted according to the size of the image buffer and the work area.
【請求項3】 請求項1又は2の何れか1項記載のプリ
ンタに於いて、 前記受信バッファ確保手段は、前記イメージバッファの
サイズがより大きい時、前記イメージバッファのサイズ
がより小さいときに比較して、前記受信バッファをより
大きいサイズに確保する事を特徴とするプリンタ。
3. The printer according to claim 1, wherein the receiving buffer securing unit compares when the size of the image buffer is larger and when the size of the image buffer is smaller. And a printer that secures the reception buffer to a larger size.
【請求項4】 請求項1又は2の何れか1項記載のプリ
ンタに於いて、 前記受信バッファ確保手段は、 前記イメージバッファのサイズに依存して定まる前記メ
モリの空き容量が所定の基準より大きいか否かを判断す
る手段と、 前記判断の結果、空き容量が所定基準より大きいとき、
前記受信バッファのサイズの上限値を所定の大きい上限
値に制御する手段と、 前記判断の結果、空き容量が所定基準より小さいとき、
前記受信バッファのサイズの上限値を所定の小さい上限
値に制御する手段と、を有する事を特徴とするプリン
タ。
4. The printer according to claim 1, wherein said receiving buffer securing means is configured such that a free space of said memory determined depending on a size of said image buffer is larger than a predetermined reference. Means for determining whether or not, as a result of the determination, when the free space is larger than a predetermined reference,
Means for controlling the upper limit of the size of the reception buffer to a predetermined large upper limit, and, as a result of the determination, when the free space is smaller than a predetermined reference,
Means for controlling an upper limit value of the size of the receiving buffer to a predetermined small upper limit value.
【請求項5】 プリンタの動作方法において、 受信データを格納するための受信バッファを、プリンタ
内のメモリ上に確保するステップと、 受信バッファから受信データを読み込み、読み込んだデ
ータからイメージデータを生成するステップと、 前記イメージ生成ステップにより生成されたイメージデ
ータを格納するためのイメージバッファを、前記メモリ
上に確保するステップと、 前記イメージ生成ステップにより生成されたイメージデ
ータの量に応じて、前記イメージバッファのサイズを調
節するステップと、 前記イメージバッファのサイズに依存して、前記受信バ
ッファのサイズを調節するステップとを備えたプリンタ
の動作方法。
5. A method of operating a printer, comprising the steps of: securing a reception buffer for storing reception data in a memory in the printer; reading the reception data from the reception buffer; and generating image data from the read data. Allocating an image buffer for storing the image data generated by the image generating step on the memory; and storing the image buffer according to an amount of the image data generated by the image generating step. Adjusting the size of the image buffer; and adjusting the size of the reception buffer depending on the size of the image buffer.
JP05872897A 1997-03-13 1997-03-13 Printer and method of adjusting reception buffer size in printer Expired - Lifetime JP3574289B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05872897A JP3574289B2 (en) 1997-03-13 1997-03-13 Printer and method of adjusting reception buffer size in printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05872897A JP3574289B2 (en) 1997-03-13 1997-03-13 Printer and method of adjusting reception buffer size in printer

Publications (2)

Publication Number Publication Date
JPH10254659A true JPH10254659A (en) 1998-09-25
JP3574289B2 JP3574289B2 (en) 2004-10-06

Family

ID=13092573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05872897A Expired - Lifetime JP3574289B2 (en) 1997-03-13 1997-03-13 Printer and method of adjusting reception buffer size in printer

Country Status (1)

Country Link
JP (1) JP3574289B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001334729A (en) * 2000-05-26 2001-12-04 Seiko Epson Corp Printer, host computer, and printer control method
JP2006327125A (en) * 2005-05-30 2006-12-07 Brother Ind Ltd Image forming apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001334729A (en) * 2000-05-26 2001-12-04 Seiko Epson Corp Printer, host computer, and printer control method
JP2006327125A (en) * 2005-05-30 2006-12-07 Brother Ind Ltd Image forming apparatus
JP4639959B2 (en) * 2005-05-30 2011-02-23 ブラザー工業株式会社 Image forming apparatus
US8040550B2 (en) 2005-05-30 2011-10-18 Brother Kogyo Kabushiki Kaisha Image forming apparatus with a ratio change of receive buffer in response to a cancellation instruction

Also Published As

Publication number Publication date
JP3574289B2 (en) 2004-10-06

Similar Documents

Publication Publication Date Title
US20070139684A1 (en) Device for dynamically varying the priority of various processing in a printer
JP2003303068A (en) Image output system, image output method, program and storage medium
US20040263905A1 (en) Print data processing apparatus and data processing apparatus
JP3574289B2 (en) Printer and method of adjusting reception buffer size in printer
JP3134539B2 (en) Printer control device
JPH11312062A (en) Printer and printing method
JP3230516B2 (en) Printer, recording medium and printer memory management method
JP2000207147A (en) Print data transfer system
JPH10114119A (en) Printing control device, printing control, and storage medium storing program to be read by computer
JPH07104954A (en) Printer and control method therefor
JP3170494B2 (en) Image forming apparatus and image forming method
JP2000079742A (en) Printing apparatus, print method, printing system and memory medium
JP3213209B2 (en) Printing equipment
JPH07195753A (en) Printer
JP2004126311A (en) Character processor, character processing method, and image forming apparatus
JP2002073301A (en) Information processing system and method, printer device, and storage medium which stores computer readable program
JP2000298565A (en) Method and device for controlling printing and storage medium storing program for executing the printing controlling method
JP2003131934A (en) Memory control circuit and information processing system
JP2003216364A (en) Information processor, its control method, its program and storage medium
JP2001229002A (en) Printer system
JPH05191634A (en) Image forming device
JPH05224838A (en) Control circuit of printer
JP2002240367A (en) Printer unit, printing processing program, and memory medium
JP2004098313A (en) Printer having enhanced transfer efficiency of print data
JPH1198360A (en) Device and method for processing picture and computer readable storage medium

Legal Events

Date Code Title Description
A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040701

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080709

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090709

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100709

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110709

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110709

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120709

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120709

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130709

Year of fee payment: 9

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term