JP2002292943A - Printer and data transfer method in printer - Google Patents

Printer and data transfer method in printer

Info

Publication number
JP2002292943A
JP2002292943A JP2001101577A JP2001101577A JP2002292943A JP 2002292943 A JP2002292943 A JP 2002292943A JP 2001101577 A JP2001101577 A JP 2001101577A JP 2001101577 A JP2001101577 A JP 2001101577A JP 2002292943 A JP2002292943 A JP 2002292943A
Authority
JP
Japan
Prior art keywords
data
buffer memory
image
image data
circuit element
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.)
Withdrawn
Application number
JP2001101577A
Other languages
Japanese (ja)
Inventor
Toshiyuki Nishiyama
敏幸 西山
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 JP2001101577A priority Critical patent/JP2002292943A/en
Publication of JP2002292943A publication Critical patent/JP2002292943A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)
  • Facsimiles In General (AREA)
  • Record Information Processing For Printing (AREA)
  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem of requiring many command execution such as the pointer collation of the writing and reading addresses, confirmation of the reading address, real reading execution of printing command data, and update of the reading address at the time of reading data from a receiving buffer in a printer comprising the same. SOLUTION: A DMA transferable FIFO 20 is provided on a transmission line, linking a receiving buffer 6 and an image buffer 8. In a receiving controlling part 11 of a printing controller 10, in the case image data included in a printing command are judged to be uncompressed data of a certain size or more by an identifying part 112, a writing operation is executed directly for the image buffer 8 from the FIFO 20 by a transmission line determining part 113.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタがホスト
コンピュータから受信した印刷データを、プリンタ内に
おいて伝送する際のデータ伝送技術に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a data transmission technique for transmitting print data received by a printer from a host computer in the printer.

【0002】[0002]

【従来の技術】近年、コンピュータシステムに用いられ
るプリンタでは、印刷品質の向上に伴って、印刷データ
の大きさが増大する傾向が続いている。そこで最近のプ
リンタでは、上記のように大きな印刷データを取り扱っ
た場合であっても、印刷に関わる操作からホストコンピ
ュータを素早く解放させるため、又は印刷速度を向上さ
せるため、あるいは印刷データをよどみなく伝送するた
めに、緩衝記憶装置を用いることが一般的になってい
る。
2. Description of the Related Art In recent years, printers used in computer systems have tended to increase in size of print data as print quality has improved. In recent printers, therefore, even when handling large print data as described above, the host computer can be quickly released from operations related to printing, or the printing speed can be improved, or the print data can be transmitted without interruption. For this purpose, it is common to use a buffer storage device.

【0003】図1は、このような緩衝記憶装置を備える
プリンタの一般的構成を表す図である。プリンタ1で
は、その各部を統轄制御するため、CPU(Central Pr
ocessing Unit:中央演算処理装置)3、ROM(Read
Only Memory:読出し専用記憶素子)4、主記憶装置5
とがバスを介して接続され、コンピュータ構成の制御機
構を成している。この制御機構は、後述するプリントコ
ントローラとしての機能を実現するものである。
FIG. 1 is a diagram showing a general configuration of a printer having such a buffer storage device. In the printer 1, a CPU (Central Pr
ocessing Unit: Central processing unit 3, ROM (Read)
Only Memory: read-only storage element) 4, main storage device 5
Are connected via a bus to form a computer-structured control mechanism. This control mechanism realizes a function as a print controller described later.

【0004】ホストコンピュータ2から送られてきた印
刷命令データは、インタフェース装置7からバスをを介
して、一旦受信バッファメモリ6に蓄積される。印刷命
令データに含まれるイメージデータは、ビットマップ展
開されてイメージバッファメモリ8に蓄えられる。これ
らのデータ転送及びイメージデータの抽出は、上記の制
御機構によって具現化されるプリントコントローラの機
能により実現される。
The print command data sent from the host computer 2 is temporarily stored in the reception buffer memory 6 from the interface device 7 via the bus. The image data included in the print command data is bit-mapped and stored in the image buffer memory 8. The data transfer and the extraction of the image data are realized by the function of the print controller embodied by the control mechanism described above.

【0005】図2は、上記の両バッファ間におけるデー
タ伝送制御の様子を説明するための図である。インタフ
ェース装置7から印刷命令データが受信されると、受信
制御部11は、受信バッファメモリ6の空き領域のアド
レスを指定して、固定長(例えば1バイト)のデータを
順次書き込んでいく。これにより、受信バッファメモリ
6にデータが蓄積されていく。ビットマップデータ展開
部13は、定期的に、この受信バッファメモリ6の内容
を見に行って、もし、データが存在するならイメージデ
ータの抽出を行ない、イメージバッファメモリ8に書き
込む。
FIG. 2 is a diagram for explaining the state of data transmission control between the two buffers. When print instruction data is received from the interface device 7, the reception control unit 11 specifies an address of a free area of the reception buffer memory 6 and sequentially writes data of a fixed length (for example, 1 byte). As a result, data is accumulated in the reception buffer memory 6. The bitmap data developing unit 13 periodically checks the contents of the reception buffer memory 6, extracts the image data if data exists, and writes the extracted data into the image buffer memory 8.

【0006】ビットマップデータ展開部13は、受信バ
ッファメモリ6から前回最後にデータを読み出したアド
レスの領域情報(図2におけるアドレス05)をポイン
タとして記憶している。そして、受信制御部11により
受信バッファメモリ6に最後に書き込まれた領域(図2
におけるアドレス0B)のポインタと異なっているかど
うかを比較する。比較の結果、両ポインタが一致しない
とき(図2におけるアドレス05及びアドレス0Bの場
合)には、受信バッファメモリ6に新たなデータの書き
込みがあったと判断される。
The bitmap data developing section 13 stores, as a pointer, area information (address 05 in FIG. 2) of an address at which data was last read from the reception buffer memory 6 last time. Then, the area last written in the reception buffer memory 6 by the reception control unit 11 (FIG. 2)
Is different from the pointer at address 0B). As a result of the comparison, when the two pointers do not match (in the case of address 05 and address 0B in FIG. 2), it is determined that new data has been written to the reception buffer memory 6.

【0007】図3は、このときの手続の流れを表すフロ
ーチャートである。ビットマップデータ展開部13で
は、両ポインタの相違から受信バッファメモリ6内のデ
ータ数の計算を行なう(S101)。そして、1バイト
のデータを読み出す(S102)。データ読み出し後、
読み出し先のアドレスポインタが更新される(S10
3、及び、図2におけるアドレス06)。
FIG. 3 is a flowchart showing the flow of the procedure at this time. The bitmap data developing unit 13 calculates the number of data in the reception buffer memory 6 from the difference between the two pointers (S101). Then, one-byte data is read (S102). After reading data,
The read destination address pointer is updated (S10).
3 and address 06 in FIG. 2).

【0008】さらに、ビットマップデータ展開部13
は、読み出した1バイトのデータをイメージバッファメ
モリ8に書き込む(S104)。そして、イメージバッ
ファメモリ8における書き込み先のアドレスポインタを
更新する(S105)。
Further, a bitmap data developing unit 13
Writes the read 1-byte data into the image buffer memory 8 (S104). Then, the write destination address pointer in the image buffer memory 8 is updated (S105).

【0009】これで1回のデータ読み出し手続が完了す
る。この動作は、受信バッファメモリ6内にデータが存
在する限り繰り返される(S106でYES)。そし
て、全てのデータについて読み書きが完了すると(S1
06でNO)、処理を終了する。
Thus, one data reading procedure is completed. This operation is repeated as long as data exists in the reception buffer memory 6 (YES in S106). When reading and writing are completed for all data (S1)
(NO at 06), the process ends.

【0010】ところで、前述のように印刷命令データの
大きさが増加傾向にある今日では、ホストコンピュータ
とプリンタとの間でのデータ送受信の速度が、プリント
システム全体の速度向上におけるボトルネックとなりが
ちである。そのため、実際に印刷に用いられるビットイ
メージデータは圧縮されて送受信されることが多い。そ
のような条件下では、印刷命令データは、一旦、ビット
マップデータ展開部13に取り込まれた後、元のビット
イメージデータに伸長されてから、イメージバッファメ
モリ8に書き込まれなければならない。
Now, as described above, the size of print command data tends to increase, and the speed of data transmission and reception between the host computer and the printer tends to be a bottleneck in improving the speed of the entire printing system. is there. Therefore, bit image data actually used for printing is often transmitted after being compressed. Under such conditions, the print command data must be once taken into the bitmap data developing unit 13, expanded into the original bit image data, and then written into the image buffer memory 8.

【0011】これに対して、印刷命令データが、非圧縮
のビットイメージデータをそのまま含んだものである場
合、上記のような伸長作業が行なわれる必要は無い。従
って、必ずしも印刷命令データがビットマップデータ展
開部13によって読み込まれる必要があるとはいえな
い。
On the other hand, if the print command data includes the uncompressed bit image data as it is, there is no need to perform the above-described decompression work. Therefore, it cannot be said that the print command data needs to be read by the bitmap data developing unit 13.

【0012】従来のコンピュータシステムに接続される
プリンタでは、伝統的にセントロニクスパラレルインタ
フェース(セントロニクス社規格)を用いることが多か
った。しかし、最近では、IEEE1284インタフェ
ース(米国電気電子技術者協会規格)などのセントロニ
クスパラレルの上位互換インタフェースを用いることに
より、ホストコンピュータとプリンタとの間のデータ転
送速度は飛躍的に向上している。また、USB(Univer
sal Serial Bus:汎用シリアルバス)インタフェース
が、ホストコンピュータとプリンタとの間のデータ転送
に用いられることが一般化するなど、インタフェース環
境に変化が生じつつある。
Conventionally, a printer connected to a computer system often uses a Centronics parallel interface (Centronics company standard). However, recently, by using a Centronics parallel upward compatible interface such as an IEEE1284 interface (American Electrical and Electronic Engineers Association standard), the data transfer speed between the host computer and the printer has been dramatically improved. USB (Univer
Sal interface (general serial bus) interface is being used for data transfer between a host computer and a printer, and the interface environment is changing.

【0013】また、上記のような緩衝記憶装置に用いら
れるDRAMモジュールの価格も低廉化が進んだため、
従来はコストの点から少容量しか搭載できなかったバッ
ファメモリも、大容量のものが用意できるようになっ
た。
In addition, the price of the DRAM module used in the buffer memory device as described above has been reduced.
A buffer memory, which previously could only be mounted in a small capacity due to cost considerations, is now available in a large capacity.

【0014】[0014]

【発明が解決しようとする課題】上述のような環境下で
は、ホストコンピュータからプリンタに対して送信され
る印刷イメージデータが、非圧縮の形式であったとして
もても、十分な容量のバッファメモリを用意することに
より、プリンタ外部との間でのデータ転送を滞りなく実
行することができる場合もある。
Under the above-described environment, even if the print image data transmitted from the host computer to the printer is in an uncompressed format, a buffer memory having a sufficient capacity is used. In some cases, the data transfer between the outside of the printer and the printer can be executed without delay.

【0015】一方、プリンタ内部でのデータ転送を考え
た場合、例えば上述のビットマップデータ展開部13に
よるデータ読み出し、及び、書き込みシーケンスでは、
多くのステップを経るために処理に時間が費やされる。
On the other hand, when data transfer inside the printer is considered, for example, in the data reading and writing sequence by the bitmap data
The process is time consuming to go through many steps.

【0016】また、これらデータ転送は、プロセッサの
制御下においてデータ転送プログラムに従ったPCIO
(Processer Controlled Input / Output)で行なわれ
るため、CPU3が、一々データの読み込み及び書き込
みを行なわなければならないという問題があった。
Further, these data transfers are performed by a PCI
(Processor Controlled Input / Output), there is a problem that the CPU 3 has to read and write data one by one.

【0017】そこで本発明の課題は、上記のようなビッ
トマップデータ展開部13への負担、すなわち、プリン
トコントローラを構成する制御機構、とりわけCPUへ
の負担を軽減させることにある。そのために、本発明で
は上記の読み出し、及び、書き込み手続(図3)を簡素
化し、両バッファ間でのデータ転送に対するCPUの関
与を軽減させるための技術を提供する。
An object of the present invention is to reduce the load on the bitmap data developing unit 13 as described above, that is, the load on the control mechanism constituting the print controller, especially the CPU. For this purpose, the present invention provides a technique for simplifying the above-described read and write procedures (FIG. 3) and reducing the involvement of the CPU in data transfer between both buffers.

【0018】[0018]

【課題を解決するための手段】上記課題を解決するた
め、本発明では、受信バッファメモリとイメージバッフ
ァメモリとを結ぶ伝送路上に、DMA(Direct Memory
Access)機器としての機能を有する先入れ先出し回路素
子を備える構成を採る。
According to the present invention, a direct memory (DMA) is provided on a transmission line connecting a reception buffer memory and an image buffer memory.
Access) A configuration including a first-in first-out circuit element having a function as a device is adopted.

【0019】すなわち、請求項1記載のプリンタは、ホ
ストコンピュータから受信した印刷命令データを蓄積し
ておくための受信バッファメモリと、前記印刷命令デー
タに基づいて得られたビットイメージデータを蓄積して
おくためのイメージバッファメモリとを備え、プロセッ
サを用いて、前記受信バッファメモリとイメージバッフ
ァメモリとを結ぶ伝送路におけるデータ転送を司るデー
タ転送制御手段を有する。このような構成のプリンタに
おいて、前記伝送路上には、前記イメージバッファメモ
りに対する直接書き出し、すなわちDMA転送と、前記
データ転送制御手段を構成するプロセッサによるプログ
ラム制御書き出し、すなわちPCIO転送との、双方の
転送方式による制御が可能な先入れ先出し回路素子が設
けられている。そして、前記データ転送制御手段は、前
記受信バッファメモりに蓄積されている印刷命令データ
に含まれるイメージデータが、圧縮されたイメージデー
タであるのか、あるいは非圧縮のイメージデータである
のかの形式を識別するためのデータ形式識別手段と、そ
の識別に係る前記イメージデータの形式に応じて、前記
先入れ先出し回路素子から前記イメージバッファメモリ
に対して直接書き出しを行なうか、又は前記プロセッサ
によるプログラム制御書き出しを行なうかの選択を行な
う伝送路選択手段を有することを特徴とする。
That is, a printer according to a first aspect of the invention stores a reception buffer memory for storing print command data received from a host computer, and stores bit image data obtained based on the print command data. And a data transfer control means for controlling data transfer on a transmission path connecting the reception buffer memory and the image buffer memory using a processor. In the printer having such a configuration, both direct writing to the image buffer memory, that is, DMA transfer, and program control writing by the processor constituting the data transfer control means, that is, PCIO transfer, are performed on the transmission path. A first-in first-out circuit element that can be controlled by a transfer method is provided. The data transfer control means determines whether the image data included in the print command data stored in the reception buffer memory is compressed image data or uncompressed image data. Depending on the data format identification means for identification and the format of the image data related to the identification, the first-in first-out circuit element directly writes to the image buffer memory, or performs the program-controlled writing by the processor. Characterized in that it has a transmission path selecting means for selecting the above.

【0020】また、請求項2記載のプリンタにおいて
は、前記データ形式識別手段は、前記受信バッファメモ
りに蓄積されている印刷命令データに含まれるイメージ
データの大きさをも検出可能に構成されている。そし
て、前記伝送路選択手段は、前記検出に係るデータの大
きさに応じて、前記先入れ先出し回路素子から前記イメ
ージバッファメモリに対して直接書き出しを行なうか、
又は前記プロセッサによるプログラム制御書き出しを行
なうかの選択を行なうように構成されていることを特徴
とする。
Further, in the printer according to the present invention, the data format identification means is configured to be able to detect the size of image data included in the print command data stored in the reception buffer memory. I have. And the transmission path selecting means performs direct writing from the first-in first-out circuit element to the image buffer memory according to the size of the data relating to the detection,
Alternatively, the processor is configured to select whether to perform program control writing by the processor.

【0021】また、本発明のデータ転送方法は、ホスト
コンピュータから受信した印刷命令データを蓄積してお
くための受信バッファメモリと、前記印刷命令データに
基づいて得られたビットイメージデータを蓄積しておく
ためのイメージバッファメモリとを結ぶ伝送路上に、前
記イメージバッファメモりに対する直接書き出し、すな
わちDMA転送と、プロセッサによるプログラム制御下
での書き出し、すなわちPCIO転送とが可能な先入れ
先出し回路素子を備えるプリンタにおけるデータ転送方
法である。本データ転送方法にあっては、プロセッサを
用いて構成されるデータ転送制御手段により、前記受信
バッファメモりに蓄積されている印刷命令データに含ま
れるイメージデータが、圧縮されたイメージデータであ
るのか、あるいは非圧縮のイメージデータであるのかの
形式、及び当該イメージデータの大きさを識別させると
ともに、当該識別の結果、前記イメージデータが非圧縮
形式であって、所定の大きさを超えるものである場合
に、前記先入れ先出し回路素子から前記イメージバッフ
ァメモリに対して直接書き出しを行なわせることを特徴
とする。
Further, according to the data transfer method of the present invention, a reception buffer memory for storing print command data received from a host computer and bit image data obtained based on the print command data are stored and stored. A printer having a first-in first-out circuit element capable of direct writing to the image buffer memory, that is, DMA transfer, and writing under program control by a processor, that is, PCIO transfer, on a transmission path connecting an image buffer memory for storing This is a data transfer method. In the present data transfer method, it is determined whether the image data included in the print command data stored in the reception buffer memory is compressed image data by the data transfer control unit configured using the processor. Or the format of uncompressed image data and the size of the image data, and as a result of the identification, the image data is in an uncompressed format and exceeds a predetermined size. In this case, writing is directly performed from the first-in first-out circuit element to the image buffer memory.

【0022】上記プリンタ制御手順を実現させるための
コンピュータプログラムは、特定の媒体に記録して保持
させることが可能である。すなわち、本発明のプログラ
ムを格納した記録媒体は、プログラムを格納するメモリ
を備え、プロセッサを用いてプログラムに従う処理を実
行するコンピュータに、ホストコンピュータから受信さ
れた印刷命令データを蓄積しておくための受信バッファ
メモリと、前記印刷命令データをビットマップ展開して
得られたイメージデータを蓄積しておくためのイメージ
バッファメモリと、前記受信バッファメモリと前記イメ
ージバッファメモリとの間に介在し、前記イメージバッ
ファメモりに対する直接書き出し、及び、前記プロセッ
サによるプログラム制御下での書き出し可能な先入れ先
出し回路素子を備えるプリンタを制御させるためのプロ
グラムを格納した、前記コンピュータが読み取り可能な
記録媒体である。そして、そのプログラムは、前記受信
バッファメモリから、前記先入れ先出し回路素子に対し
て前記印刷命令データを書き出させ、当該印刷命令デー
タに含まれるイメージデータが、圧縮されたイメージデ
ータであるのか、あるいは非圧縮のイメージデータであ
るのかの形式、及び当該イメージデータの大きさを識別
させるとともに、当該識別の結果、前記イメージデータ
が非圧縮形式であって、所定の大きさを超えるものであ
る場合に、前記先入れ先出し回路素子から前記イメージ
バッファメモリに対して直接書き出しを行なわせるよう
に、前記コンピュータを制御する。
A computer program for implementing the above-described printer control procedure can be recorded and held on a specific medium. That is, the recording medium storing the program of the present invention includes a memory for storing the program, and stores the print command data received from the host computer in a computer that executes processing according to the program using a processor. A reception buffer memory, an image buffer memory for storing image data obtained by developing the print command data into a bitmap, and an image buffer memory interposed between the reception buffer memory and the image buffer memory. The computer-readable recording medium stores a program for directly writing in a buffer memory and controlling a printer including a first-in first-out circuit element capable of writing under a program control by the processor. Then, the program causes the print command data to be written from the reception buffer memory to the first-in first-out circuit element, and whether the image data included in the print command data is compressed image data or Whether the format is compressed image data, and identify the size of the image data, as a result of the identification, if the image data is in an uncompressed format and exceeds a predetermined size, The computer is controlled so that writing is directly performed from the first-in first-out circuit element to the image buffer memory.

【0023】[0023]

【発明の実施形態】以下、本発明の1実施形態について
図面を参照して説明する。図1は、本発明が適用される
プリンタ1のハードウエア構成を表す。図1において鎖
線で表されるプリントコントローラ10は、インタフェ
ース装置7から入力されるデータに従った印刷動作を、
プリントエンジン9に実行させる。すなわち、CPU3
は、主記憶装置5を適宜用いながら、ROM4に格納さ
れたプログラムを実行することにより、プリンタ1内の
各部を統轄制御する。
[Embodiment of the present invention will be described with reference to the drawings one embodiment of the present invention. FIG. 1 shows a hardware configuration of a printer 1 to which the present invention is applied. A print controller 10 represented by a chain line in FIG. 1 performs a printing operation according to data input from the interface device 7.
The print engine 9 is executed. That is, the CPU 3
Executes the program stored in the ROM 4 while appropriately using the main storage device 5, thereby controlling each unit in the printer 1.

【0024】プリンタ1には、ホストコンピュータ2か
ら送られてきた印刷命令データを、一時蓄積しておくた
めの受信バッファメモリ6、及び印刷命令データに含ま
れるイメージデータを展開しておくためのイメージバッ
ファメモリ8とが備えられている。図1において、受信
バッファメモリ6及びイメージバッファメモリ8は、そ
れぞれ独立のメモリモジュールとして描かれているが、
これは一例であって、各バッファは主記憶装置5のメモ
リ空間の一部をバッファ領域として用い、通常のプール
管理方式によって構成されているものであってもよい。
The printer 1 has a receiving buffer memory 6 for temporarily storing print command data sent from the host computer 2 and an image for expanding image data contained in the print command data. A buffer memory 8 is provided. In FIG. 1, the reception buffer memory 6 and the image buffer memory 8 are depicted as independent memory modules, respectively.
This is an example, and each buffer may be configured by a normal pool management method using a part of the memory space of the main storage device 5 as a buffer area.

【0025】本実施形態において特徴的な点は、受信バ
ッファメモリ6とイメージバッファメモリ8とを結ぶ伝
送路上に、DMA機器としての機能を有する先入れ先出
し回路素子(ハードウエアFIFO)が設けられている
ことにある。図4は、この先入れ先出し回路素子20に
係わるデータ入出力制御の様子について説明するための
図である。
A feature of this embodiment is that a first-in first-out circuit element (hardware FIFO) having a function as a DMA device is provided on a transmission line connecting the reception buffer memory 6 and the image buffer memory 8. It is in. FIG. 4 is a diagram for describing a state of data input / output control relating to the first-in first-out circuit element 20.

【0026】従来の技術の説明において既に述べたよう
に、これら記憶素子間の入出力制御は、プリントコント
ローラ10によって行なわれる。実施形態において、プ
リントコントローラ10は、CPU3、ROM4、及び
主記憶装置5とからなるコンピュータ構成の制御機構と
して説明している。しかし、これもデータ入出力制御専
用のカスタムICチップを用いた構成であったり、1チ
ップCPUを用いた構成であったりしても構わない。
As already described in the description of the prior art, input / output control between these storage elements is performed by the print controller 10. In the embodiment, the print controller 10 is described as a control mechanism of a computer configuration including the CPU 3, the ROM 4, and the main storage device 5. However, this may also be a configuration using a custom IC chip dedicated to data input / output control, or a configuration using a one-chip CPU.

【0027】プリンタコントローラ10には、インタフ
ェース装置7からもたらされる印刷命令データの受信管
理を行なうための受信制御部11と、印刷命令データか
らイメージデータの抽出を行なうビットマップデータ展
開部13との各機能ブロックが備えられている点は、従
来と異ならない。
The printer controller 10 includes a reception control unit 11 for managing reception of print command data provided from the interface device 7 and a bitmap data development unit 13 for extracting image data from the print command data. It is not different from the conventional one in that a functional block is provided.

【0028】実施形態において特徴的なのは、受信制御
部11の有する機能である。本実施形態における受信制
御部11は、少なくとも以下の機能ブロックを有してい
る。すなわち、受信した印刷命令データに、そのヘッダ
等として含まれる識別情報等を解釈するための命令解釈
部111と、その解釈に基づき印刷対象のビットイメー
ジデータが圧縮されたものであるか、非圧縮のものであ
るのか、あるいはそのデータサイズがどれ位であるのか
等の情報を判断するための識別部112とを、受信制御
部11は備えている。
A feature of the embodiment is a function of the reception control unit 11. The reception control unit 11 in the present embodiment has at least the following functional blocks. That is, in the received print command data, a command interpreting unit 111 for interpreting identification information or the like included as a header or the like, and whether the bit image data to be printed is compressed or uncompressed based on the interpretation. The reception control unit 11 includes an identification unit 112 for determining information such as the data size or the data size.

【0029】そして、伝送路決定部113は、上記の識
別部112による判断に従い、先入れ先出し回路素子2
0からイメージバッファメモリ8に対するデータ転送に
おいて、PCIO転送を行なわせるか、あるいはDMA
転送を行なわせるかを決定する。また、この伝送路決定
部は、DMA機器である先入れ先出し回路素子20の入
出力の制御をするためのDMAコントローラとしての役
割を担っている。
Then, the transmission line determining unit 113 determines the first-in first-out
In the data transfer from 0 to the image buffer memory 8, PCI transfer is performed or DMA transfer is performed.
Decide whether to perform the transfer. Further, the transmission path determination unit has a role as a DMA controller for controlling input / output of the first-in first-out circuit element 20 which is a DMA device.

【0030】図5には、この伝送路決定部113が、決
定を行なう過程での手続の流れを説明するためのフロー
チャートが描かれている。まず、伝送路決定部113で
は、識別部112の判断に従って印刷命令データが圧縮
されたイメージデータを含むものであるか否かを決定す
る(S201)。イメージデータが非圧縮の形式で存在
するの場合には(S201でNO)、さらにイメージデ
ータの大きさに応じた決定を行なう(S202)。イメ
ージバッファメモリ8に対して転送するデータが余りに
小さい場合には、DMA転送を行なわせる意義がないた
めである。
FIG. 5 is a flow chart for explaining the flow of the procedure in the process of the transmission path determination section 113 making the determination. First, the transmission path determination unit 113 determines whether the print command data includes compressed image data according to the determination of the identification unit 112 (S201). If the image data exists in an uncompressed format (NO in S201), a determination is further made according to the size of the image data (S202). This is because if the data to be transferred to the image buffer memory 8 is too small, it is not meaningful to perform the DMA transfer.

【0031】イメージデータの大きさが、あらかじめ定
められた値を上回るときには(S202でYES)、伝
送路決定部113は先入れ先出し回路素子20からイメ
ージバッファメモリ8に対してDMA転送を行なわせる
ために、書き出し制御を行なう。すなわち伝送路決定部
113は、DMA機器としての先入れ先出し回路素子2
0からのバス占有要求に応えて、データバスを占有させ
る。そして、先入れ先出し回路素子20に対して、イメ
ージバッファメモリ8の書き込み先ポインタを指定し
て、何バイトのデータを連続して送信するのかについて
命ずる。
When the size of the image data exceeds a predetermined value (YES in S202), the transmission path determination unit 113 performs DMA transfer from the first-in first-out circuit element 20 to the image buffer memory 8 to perform DMA transfer. Perform writing control. That is, the transmission path determination unit 113 performs the first-in first-out circuit element 2 as a DMA device.
In response to the bus occupation request from 0, the data bus is occupied. Then, the write-in pointer of the image buffer memory 8 is designated to the first-in first-out circuit element 20 to instruct how many bytes of data are to be continuously transmitted.

【0032】一方、印刷命令データに含まれるイメージ
が、圧縮された形式で存在するような場合、あるいは非
圧縮であっても非常にサイズの小さいものであったよう
な場合には、伝送路決定部113はPCIO転送を行な
わせる。その場合には、ビットマップデータ展開部13
が先入れ先出し回路素子20における入力ポートを確認
し、そこにデータが存在するときには、これを通常読み
出しとして一旦取り込み、イメージデータの伸長等の所
定の処理を行なった後、イメージバッファメモリ8に対
する書き込みを行なう(図5におけるS204、及び、
図3におけるS101乃至S106)。
On the other hand, when the image included in the print command data exists in a compressed format, or when the image is uncompressed and has a very small size, the transmission path is determined. The unit 113 causes a PCI transfer to be performed. In that case, the bitmap data developing unit 13
Confirms the input port of the first-in first-out circuit element 20, and when data exists there, once takes it in as normal reading, performs predetermined processing such as decompression of image data, and then writes to the image buffer memory 8. (S204 in FIG. 5, and
S101 to S106 in FIG. 3).

【0033】既に述べたように、ビットマップデータ展
開部13は、CPU3及び、その主記憶装置5などによ
り構成される機能のブロックである。ビットマップデー
タ展開部13に、先入れ先出し回路素子20におけるデ
ータの存在を検知させるためには、例えば、CPUのコ
ントロールバスに、I/O機器としての先入れ先出し回
路素子20の入力ポートとを直結しておき、入力ポート
のビットが立っているか否かで判断されるよう構成して
おけばよい。
As described above, the bitmap data developing unit 13 is a functional block constituted by the CPU 3, its main storage device 5, and the like. In order for the bitmap data developing unit 13 to detect the presence of data in the first-in first-out circuit element 20, for example, an input port of the first-in first-out circuit element 20 as an I / O device is directly connected to a control bus of the CPU. , May be determined based on whether or not the bit of the input port is set.

【0034】なお、図4において先入れ先出し回路素子
20は独立の存在として描かれているが、これも1チッ
プで構成されるものである必要は無い。例えば、前述の
データ入出力制御用のカスタムICチップの内部に組み
込まれて存在するようなものであればよい。
Although the first-in first-out circuit element 20 is shown as an independent entity in FIG. 4, it is not necessary that the circuit element 20 also be constituted by one chip. For example, any device may be used as long as it is incorporated in the above-mentioned custom IC chip for data input / output control.

【0035】本実施形態は以上の説明の通りであるが、
本発明は、必ずしも上記の構成に限られない。実施形態
の説明においては図示簡略化のため、受信バッファメモ
リ6は、4ビットでアドレッシング可能な領域のみ描か
れているが、もちろんプリンタとホストコンピュータと
で送受信されるデータ量に相応した容量を有するメモリ
が用いられていてもよいことは当然である。
This embodiment is as described above.
The present invention is not necessarily limited to the above configuration. In the description of the embodiment, for simplicity of illustration, the reception buffer memory 6 shows only a 4-bit addressable area, but of course has a capacity corresponding to the amount of data transmitted and received between the printer and the host computer. It goes without saying that a memory may be used.

【0036】また、実施形態においては、DMAコント
ローラとしての機能をも有する伝送路決定部113を、
CPU3、ROM4、及び主記憶装置5とで構成される
プリとコントローラ10によって実現させている。しか
し、先入れ先出し回路素子20のDMA転送を司るの
は、独立のDMAコントローラチップであっても構わな
い。
In the embodiment, the transmission path determination unit 113, which also has a function as a DMA controller,
This is realized by a pre-controller 10 including a CPU 3, a ROM 4, and a main storage device 5 and a controller 10. However, an independent DMA controller chip may control the DMA transfer of the first-in first-out circuit element 20.

【0037】[0037]

【発明の効果】従来、受信バッファメモリからのデータ
読み出しに際しては、第1に、書き込み及び読み出しの
両アドレスのポインタ照合、第2に、読み出しアドレス
の確認、第3に、印刷命令データの実際の読み出し、第
5に読み出しアドレスの更新、といった多くの命令実行
が必要とされていた。
Conventionally, when reading data from the reception buffer memory, first, pointer comparison of both write and read addresses, second, confirmation of the read address, and third, the actual printing of the print command data are performed. Many instructions such as reading, and fifthly, updating the read address, have been required.

【0038】本発明の適用により、これらビットマップ
データ展開部13が行なっていた処理を廃して、DMA
機器としての先入れ先出し回路素子20にデータ転送を
行なわせることにより、CPUの行なう処理手順を大幅
に省略することができ、データ転送に要する時間を短縮
することが可能となった。
By applying the present invention, the processing performed by the bitmap data developing unit 13 is eliminated,
By causing the first-in, first-out circuit element 20 as the device to perform data transfer, the processing procedure performed by the CPU can be largely omitted, and the time required for data transfer can be reduced.

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

【図1】実施形態におけるプリンタハードウエア構成を
表す図。
FIG. 1 is a diagram illustrating a printer hardware configuration according to an embodiment.

【図2】従来の、各バッファ間におけるデータ伝送の様
子を説明するための図。
FIG. 2 is a diagram for explaining a state of data transmission between buffers in the related art.

【図3】従来の、受信バッファからのデータ読み出し手
順を表すフローチャート。
FIG. 3 is a flowchart showing a conventional procedure for reading data from a reception buffer.

【図4】実施形態における、FIFOを介したデータ伝
送の様子を説明するための図。
FIG. 4 is an exemplary view for explaining a state of data transmission via a FIFO in the embodiment.

【図5】実施形態における、受信バッファからのデータ
読み出し手順を表すフローチャート。
FIG. 5 is a flowchart illustrating a procedure for reading data from a reception buffer according to the embodiment.

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

1 プリンタ 2 ホストコンピュータ 3 CPU 4 ROM 5 主記憶装置 6 受信バッファメモリ 8 イメージバッファメモリ 10 プリントコントローラ 11 受信制御部 111 命令解釈部 112 識別部 113 伝送路決定部 20 先入れ先出し回路素子(ハードウエアFIFO) REFERENCE SIGNS LIST 1 printer 2 host computer 3 CPU 4 ROM 5 main storage device 6 reception buffer memory 8 image buffer memory 10 print controller 11 reception control unit 111 command interpretation unit 112 identification unit 113 transmission path determination unit 20 first-in first-out circuit element (hardware FIFO)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06T 1/60 450 G06T 1/60 450F 5C062 H04N 1/00 H04N 1/00 C 107 107A Fターム(参考) 2C087 AB05 BA03 BC02 BC05 BD01 BD40 5B021 AA01 BB11 DD00 5B047 AA30 EA07 EB01 EB17 5B061 DD09 DD12 5B077 BB07 DD00 5C062 AA05 AA27 AB43 AB46 AC25 AC48 AC49 AC58 AE02 BA04──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G06T 1/60 450 G06T 1/60 450F 5C062 H04N 1/00 H04N 1/00 C 107 107A F term (reference) 2C087 AB05 BA03 BC02 BC05 BD01 BD40 5B021 AA01 BB11 DD00 5B047 AA30 EA07 EB01 EB17 5B061 DD09 DD12 5B077 BB07 DD00 5C062 AA05 AA27 AB43 AB46 AC25 AC48 AC49 AC58 AE02 BA04

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータから受信した印刷命
令データを蓄積しておくための受信バッファメモリと、 前記印刷命令データに基づいて得られたビットイメージ
データを蓄積しておくためのイメージバッファメモリと
を備え、 プロセッサを用いて、前記受信バッファメモリとイメー
ジバッファメモリとを結ぶ伝送路におけるデータ転送を
司るデータ転送制御手段を有するプリンタにおいて、 前記伝送路上には、前記イメージバッファメモりに対す
る直接書き出し、及び、前記データ転送制御手段を構成
するプロセッサによるプログラム制御書き出し可能な先
入れ先出し回路素子が設けられており、 前記データ転送制御手段は、 前記受信バッファメモりに蓄積されている印刷命令デー
タに含まれるイメージデータが、圧縮されたイメージデ
ータであるのか、あるいは非圧縮のイメージデータであ
るのかの形式を識別するためのデータ形式識別手段と、 前記イメージデータの形式に応じて、前記先入れ先出し
回路素子から前記イメージバッファメモリに対して直接
書き出しを行なうか、又は前記プロセッサによるプログ
ラム制御書き出しを行なうかの選択を行なう伝送路選択
手段を有することを特徴とするプリンタ。
1. A receiving buffer memory for storing print command data received from a host computer, and an image buffer memory for storing bit image data obtained based on the print command data. A printer having a data transfer control unit for controlling data transfer on a transmission path connecting the reception buffer memory and the image buffer memory using a processor, wherein direct writing to the image buffer memory is performed on the transmission path, and A first-in, first-out circuit element which can be programmed and written by a processor constituting the data transfer control means, and wherein the data transfer control means includes image data included in print command data stored in the reception buffer memory. But the compressed image Data format identification means for identifying whether the data is data or uncompressed image data; and directly writing from the first-in first-out circuit element to the image buffer memory according to the format of the image data. Or a transmission path selecting means for selecting whether to perform the program control writing by the processor.
【請求項2】 前記データ形式識別手段は、 前記受信バッファメモりに蓄積されている印刷命令デー
タに含まれるイメージデータの大きさをも検出可能に構
成されており、 前記伝送路選択手段は、前記検出に係るデータの大きさ
に応じて、前記先入れ先出し回路素子から前記イメージ
バッファメモリに対して直接書き出しを行なうか、又は
前記プロセッサによるプログラム制御書き出しを行なう
かの選択を行なうよう構成されていることを特徴とする
プリンタ。
2. The data format identification unit is configured to detect the size of image data included in print command data stored in the reception buffer memory, and the transmission path selection unit includes: According to the size of the data related to the detection, it is configured to select whether to write directly from the first-in first-out circuit element to the image buffer memory or to perform program-controlled writing by the processor. A printer characterized by the following.
【請求項3】 ホストコンピュータから受信した印刷命
令データを蓄積しておくための受信バッファメモリと、 前記印刷命令データに基づいて得られたビットイメージ
データを蓄積しておくためのイメージバッファメモリと
を結ぶ伝送路上に、 前記イメージバッファメモりに対する直接書き出し、及
び、プロセッサによるプログラム制御下での書き出し可
能な先入れ先出し回路素子を備えるプリンタにおけるデ
ータ転送方法であって、 プロセッサを用いて構成されるデータ転送制御手段によ
り、 前記受信バッファメモりに蓄積されている印刷命令デー
タに含まれるイメージデータが、圧縮されたイメージデ
ータであるのか、あるいは非圧縮のイメージデータであ
るのかの形式、及び当該イメージデータの大きさを識別
させるとともに、 当該識別の結果、前記イメージデータが非圧縮形式であ
って、所定の大きさを超えるものである場合に、前記先
入れ先出し回路素子から前記イメージバッファメモリに
対して直接書き出しを行なわせることを特徴とするデー
タ転送方法。
3. A reception buffer memory for storing print command data received from a host computer, and an image buffer memory for storing bit image data obtained based on the print command data. A data transfer method for a printer including a first-in first-out circuit element capable of directly writing to the image buffer memory and writing under program control by a processor on a transmission path to be connected, wherein the data transfer control is configured by using a processor. Means for determining whether the image data included in the print command data stored in the reception buffer memory is compressed image data or uncompressed image data, and the size of the image data. And identify the Another result is that when the image data is in an uncompressed format and exceeds a predetermined size, the data is directly written from the first-in first-out circuit element to the image buffer memory. Transfer method.
【請求項4】 プログラムを格納するメモリを備え、プ
ロセッサを用いてプログラムに従う処理を実行するコン
ピュータに、 ホストコンピュータから受信された印刷命令データを蓄
積しておくための受信バッファメモリと、 前記印刷命令データをビットマップ展開して得られたイ
メージデータを蓄積しておくためのイメージバッファメ
モリと、 前記受信バッファメモリと前記イメージバッファメモリ
との間に介在し、前記イメージバッファメモりに対する
直接書き出し、及び、前記プロセッサによるプログラム
制御下での書き出し可能な先入れ先出し回路素子を備え
るプリンタを制御させるためのプログラムであって、 前記受信バッファメモリから、前記先入れ先出し回路素
子に対して前記印刷命令データを書き出させ、 当該印刷命令データに含まれるイメージデータが、圧縮
されたイメージデータであるのか、あるいは非圧縮のイ
メージデータであるのかの形式、及び当該イメージデー
タの大きさを識別させるとともに、 当該識別の結果、前記イメージデータが非圧縮形式であ
って、所定の大きさを超えるものである場合に、前記先
入れ先出し回路素子から前記イメージバッファメモリに
対して直接書き出しを行なわせるように、前記コンピュ
ータを制御するためのプログラムを格納した、前記コン
ピュータが読み取り可能な記録媒体。
4. A receiving buffer memory for storing a print command data received from a host computer in a computer having a memory for storing a program and executing a process according to the program using a processor; An image buffer memory for storing image data obtained by bitmap-expanding data, interposed between the reception buffer memory and the image buffer memory, and directly writing to the image buffer memory, and A program for controlling a printer including a first-in first-out circuit element that can be written out under program control by the processor, and the print instruction data is written out from the reception buffer memory to the first-in first-out circuit element, The print instruction data And whether the image data included in the image data is compressed image data or uncompressed image data, and the size of the image data. In a compression format, if the size exceeds a predetermined size, a program for controlling the computer is stored such that writing is performed directly from the first-in first-out circuit element to the image buffer memory. The computer-readable recording medium.
JP2001101577A 2001-03-30 2001-03-30 Printer and data transfer method in printer Withdrawn JP2002292943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001101577A JP2002292943A (en) 2001-03-30 2001-03-30 Printer and data transfer method in printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001101577A JP2002292943A (en) 2001-03-30 2001-03-30 Printer and data transfer method in printer

Publications (1)

Publication Number Publication Date
JP2002292943A true JP2002292943A (en) 2002-10-09

Family

ID=18954869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001101577A Withdrawn JP2002292943A (en) 2001-03-30 2001-03-30 Printer and data transfer method in printer

Country Status (1)

Country Link
JP (1) JP2002292943A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187535A (en) * 2008-01-09 2009-08-20 Ricoh Co Ltd Server, image forming apparatus, image processing system, image processing method, and image processing program
US8305613B2 (en) 2008-01-09 2012-11-06 Ricoh Company, Limited Server device, image forming apparatus, and image processing system for image processing in a thin client system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187535A (en) * 2008-01-09 2009-08-20 Ricoh Co Ltd Server, image forming apparatus, image processing system, image processing method, and image processing program
US8305613B2 (en) 2008-01-09 2012-11-06 Ricoh Company, Limited Server device, image forming apparatus, and image processing system for image processing in a thin client system

Similar Documents

Publication Publication Date Title
USRE47659E1 (en) Memory system having high data transfer efficiency and host controller
US5404548A (en) Data transfer control system transferring command data and status with identifying code for the type of information
US4943936A (en) Print control apparatus controlling utilization state of plural format blocks
US6907480B2 (en) Data processing apparatus and data input/output apparatus and data input/output method
US6456390B1 (en) Image processing device, image processing method and recording medium
US6809832B2 (en) Print control apparatus with decompression, and method and storage medium
JP6904697B2 (en) Information processing device and communication control method
US6584512B1 (en) Communication DMA device for freeing the data bus from the CPU and outputting divided data
US7864359B2 (en) Data compression and decompression unit
US5880855A (en) Document process apparatus including a memory storage location function
US20020097916A1 (en) Image processing method, image processing apparatus, image processing program and storage medium holding image processing program code
US20120320423A1 (en) Printing apparatus provided with plural processing systems for generating print data, printing method and recording medium
JP2002292943A (en) Printer and data transfer method in printer
CN116486868A (en) Computing high speed nonvolatile memory (NVMe) over high speed link (CXL)
US7042582B1 (en) Printer and printer data processing method
JP3189269B2 (en) Network printer
JP2002283628A (en) Printer and method for transferring data in printer
KR100633120B1 (en) Method for enhancing data bandwidth of mass storage and system therefor
US6480296B1 (en) Image processing apparatus and memory access method therefor
JPH10309835A (en) Page printer
JP3069867U (en) Electronic equipment
JP2000078238A (en) Data transmission method, communication controller and recording medium with data transmission program recorded therein
JP2002254720A (en) Printer and data transfer method in printer
JP2980163B2 (en) Data transfer method
JP2902709B2 (en) Image processing device

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20071228

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080603