JP2002118757A - Data compression/expansion method and printer - Google Patents

Data compression/expansion method and printer

Info

Publication number
JP2002118757A
JP2002118757A JP2000313141A JP2000313141A JP2002118757A JP 2002118757 A JP2002118757 A JP 2002118757A JP 2000313141 A JP2000313141 A JP 2000313141A JP 2000313141 A JP2000313141 A JP 2000313141A JP 2002118757 A JP2002118757 A JP 2002118757A
Authority
JP
Japan
Prior art keywords
data
specific
continuous
print
printer
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
JP2000313141A
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 JP2000313141A priority Critical patent/JP2002118757A/en
Publication of JP2002118757A publication Critical patent/JP2002118757A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a data compression/expansion method that allows a hardware circuit to easily compress/expand data. SOLUTION: First data are acquired, and when the first data are specific data, data denoting a consecutive number of succeeding specific data are acquired, and the addresses of the specific data are summed. When the first data are other than the specific data, a block of the other data are expanded through the use of the data denoting the consecutive number. Since only non- printed data, such as specific data that are almost consecutive and make up most of print data have only to be expanded, the processing is much simplified, in comparison with a conventional method and the hardware circuit can readily expand the data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータシス
テムで用いられるデータの圧縮・展開方法及びその方法
を使用するプリンタに関し、特に、ハードウエアで簡単
に実現することができるデータの圧縮・展開方法及びそ
の方法を使用するプリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for compressing and decompressing data used in a computer system and a printer using the method, and more particularly to a method for compressing and decompressing data which can be easily realized by hardware. Regarding a printer that uses that method.

【0002】[0002]

【従来の技術】図5は、ホストとしてのパーソナルコン
ピュータ(以下、PCという)とプリンタとを接続して
なる一般的なコンピュータシステムを示す概略ブロック
図である。図示しないイメージスキャナ等を介してPC
100に取り込まれたグラフィックスデータは、PC1
00上のプリンタドライバ102によりプリンタ200
が解釈可能なデータ(制御コマンド及び印刷データ)に
変換されて圧縮される。
2. Description of the Related Art FIG. 5 is a schematic block diagram showing a general computer system in which a personal computer (hereinafter, referred to as a PC) as a host and a printer are connected. PC via image scanner (not shown)
The graphics data taken into the PC 100 is PC1
Printer 200 on the printer 200
Is converted into interpretable data (control command and print data) and compressed.

【0003】この制御コマンド及び印刷データは、PC
100上のオペレーティングシステム(以下、OSとい
う)104が管理しながらPC100のI/F部106
から接続ケーブル115を介してプリンタ200に送ら
れる。
The control command and print data are transmitted to a PC
An I / F unit 106 of the PC 100 while being managed by an operating system (hereinafter, referred to as OS) 104 on the PC 100
To the printer 200 via the connection cable 115.

【0004】そして、その制御コマンド及び印刷データ
は、プリンタ200のI/F制御部220内のデータ受
信部222で受信され、印刷部230の受信バッファメ
モリ部231に蓄積される。この制御コマンド及び印刷
データは、コマンド解釈部233により解釈されて、イ
メージデータ展開部235にて印刷用イメージデータに
展開される。
[0004] The control command and the print data are received by the data receiving unit 222 in the I / F control unit 220 of the printer 200, and are stored in the reception buffer memory unit 231 of the printing unit 230. The control command and the print data are interpreted by the command interpreting unit 233, and are expanded into image data for printing by the image data expanding unit 235.

【0005】その後、この印刷用イメージデータに基づ
いて印刷処理実行部237により印刷が実行される。
尚、プリンタステータス等のプリンタの状態は、印刷部
230内の状態確認部239によりリアルタイムに管理
されており、I/F制御部220内のデータ送信部22
4を介してホストとしてのPC100に伝達される。
[0005] Thereafter, printing is executed by the print processing execution unit 237 based on the print image data.
The status of the printer, such as the printer status, is managed in real time by the status confirmation unit 239 in the printing unit 230, and the data transmission unit 22 in the I / F control unit 220
4 to the PC 100 as a host.

【0006】図6は、従来のデータの圧縮方法を説明す
るための具体例を示す図である。この例での圧縮前デー
タは、“00h”が5個連続し、次に“41h”、“4
2h”が続き、最後に“43h”が3個連続する構成と
なっている。このような圧縮前データは、連続するデー
タ“00h”、“43h”が圧縮されて圧縮後データと
される。
FIG. 6 is a diagram showing a specific example for explaining a conventional data compression method. In the pre-compression data in this example, five “00h” s continue, and then “41h” and “4h”.
2h, followed by three consecutive “43h.” In such pre-compression data, the consecutive data “00h” and “43h” are compressed to become post-compression data.

【0007】すなわち、この圧縮後データは、最初のデ
ータ“FCh”で次のデータ“00h”が5個あること
を示し、さらに次のデータ“01h”で非圧縮のデータ
“41h”、“42h”が2個あることを示し、さらに
次のデータ“FEh”でその次のデータ“43h”が3
個あることを示す構成となっている。
That is, the compressed data indicates that the first data “FCh” has five next data “00h”, and the next data “01h” has uncompressed data “41h” and “42h”. ", And the next data" FEh "contains the next data" 43h ".
It is configured to indicate that there are multiple items.

【0008】図7は、従来のプリンタにおけるデータの
展開機能を示す概略ブロック図である。受信バッファ2
40に蓄積されているデータはCPU250に1バイト
ずつ読み出されて処理され、処理されたデータはイメー
ジバッファ260に1バイトずつ書き込まれる。すなわ
ち、CPU250では、ヘッダデータがヘッダデータ解
析部251で解析され、その解析結果によりデータ転送
ユニット252にてブロック転送または連続データ展開
されるようになっている。
FIG. 7 is a schematic block diagram showing a data expanding function in a conventional printer. Receive buffer 2
The data stored in 40 is read and processed by the CPU 250 byte by byte, and the processed data is written to the image buffer 260 byte by byte. That is, in the CPU 250, the header data is analyzed by the header data analysis unit 251, and the data transfer unit 252 performs block transfer or continuous data development based on the analysis result.

【0009】このような構成において、その動作例を図
8のフローチャートを用いて説明する。先ず、ヘッダデ
ータを取得し、そのヘッダデータから連続データである
か否かを判断する(ステップS1、S2)。連続データ
であるときは展開データを取得し、その展開するデータ
が“00h”であるか否かを判断する(ステップS3、
S4)。展開するデータが“00h”であるときはアド
レス加算し(ステップS5)、展開するデータが“00
h”以外であるときは連続数分のデータを展開する(ス
テップS6)。
An operation example of such a configuration will be described with reference to a flowchart of FIG. First, header data is obtained, and it is determined from the header data whether or not the data is continuous data (steps S1 and S2). If the data is continuous data, expanded data is obtained, and it is determined whether the expanded data is “00h” (step S3,
S4). If the data to be developed is "00h", the address is added (step S5), and the data to be developed is "00h".
If it is not "h", data for the continuous number is developed (step S6).

【0010】一方、ステップS2において連続データで
ないときはデータをブロック展開する(ステップS
7)。次に、ラスタ展開が終了したか否かを判断し(ス
テップS8)、ラスタ展開が終了していないときはステ
ップS1に戻って上述した処理を繰り返し、ラスタ展開
が終了したときは全ての処理を終了する。
On the other hand, if the data is not continuous data in step S2, the data is expanded into blocks (step S2).
7). Next, it is determined whether or not raster development has been completed (step S8). If raster development has not been completed, the process returns to step S1 to repeat the above-described processing. finish.

【0011】例えば図6に示す圧縮後データの場合、先
ず、1番目の下線部の1バイト目のヘッダデータ“FC
h”を取得する。この“FCh”は次のデータが連続し
て5個あることを示しているので、次のデータを取得す
る。そして、次のデータは“00h”であるので、アド
レス加算する。次に、2番目の下線部の1バイト目のヘ
ッダデータ“01h”を取得する。この“01h”は非
圧縮のデータが不連続で2個あることを示しているの
で、各データ“41h”、“42h” をブロック展開
する。
For example, in the case of the compressed data shown in FIG. 6, first, the first underlined first byte header data "FC
The next data is acquired because "FCh" indicates that there are five consecutive data, and the next data is "00h", so that the address addition is performed. Next, the first underlined header data "01h" of the second underlined part is obtained.Since this "01h" indicates that two uncompressed data are discontinuous, each data "01h" is obtained. 41h "and" 42h "are expanded into blocks.

【0012】最後に、3番目の下線部の1バイト目のヘ
ッダデータ“FEh”を取得する。この“FEh”は次
のデータが連続して3個あることを示しているので、次
のデータを取得する。そして、次のデータは“43h”
であるので、連続数分データ展開する。以上により、図
に示す圧縮前データに展開することができる。
Finally, the first underlined header data "FEh" of the third underline is obtained. Since this “FEh” indicates that there are three next data in a row, the next data is acquired. And the next data is "43h"
Therefore, data development is performed for the continuous number. As described above, the data can be expanded to the pre-compression data shown in FIG.

【0013】[0013]

【発明が解決しようとする課題】上述した従来のデータ
の圧縮・展開方法は、印刷データは通常“00h”のデ
ータが多数連続していることに着目したものであり、展
開先アドレスを移動させることで高速な展開が可能とな
る。
The above-described conventional data compression / decompression method focuses on the fact that a large number of "00h" data are usually continuous in the print data, and moves the decompression destination address. This enables high-speed deployment.

【0014】ところが、圧縮後データ中には圧縮、非圧
縮のデータが混在しているため、図8に示すステップS
5のアドレス加算を行うのか、ステップS6、S7のデ
ータ書込を行うのかが処理の後半にならないと判断でき
ない。このため、ソフトウエアでのデータの圧縮・展開
は問題無く可能であるが、ハードウエアでのデータの圧
縮・展開は単純作業的にできず、実現が困難であるとい
う問題があった。
However, since compressed and uncompressed data are mixed in the compressed data, the step S shown in FIG.
It cannot be determined whether the address addition of 5 or the data writing of steps S6 and S7 is performed in the latter half of the process. For this reason, data compression / expansion by software is possible without any problem, but data compression / expansion by hardware cannot be performed simply, and there is a problem that implementation is difficult.

【0015】本発明は、上記のような種々の課題に鑑み
なされたものであり、その目的は、ハードウエアでのデ
ータの圧縮・展開を容易に行うことができるデータの圧
縮・展開方法及びその方法を使用するプリンタを提供す
ることにある。
The present invention has been made in view of the above-mentioned various problems, and has as its object to provide a data compression / decompression method and a data compression / decompression method capable of easily performing data compression / decompression by hardware. It is to provide a printer that uses the method.

【0016】[0016]

【課題を解決するための手段】上記目的達成のため、本
発明では、データを圧縮する方法において、特定のデー
タが連続するときは、1つの前記特定データとその連続
数を表すデータとを並べ、前記特定データ以外のデータ
が連続するときは、その連続数を表すデータと前記特定
データ以外のデータとを並べることによりデータ圧縮す
るようにしている。特定データを例えば印刷データの大
半を占め、かつほとんど連続している非印字データと
し、その非印字データのみを圧縮するようにしているの
で、従来に比べ非常に単純となり、ハードウエアでのデ
ータの圧縮を容易に実現することができる。
In order to achieve the above object, according to the present invention, in a method for compressing data, when specific data is continuous, one specific data and data representing the number of continuous data are arranged. When data other than the specific data is continuous, data compression is performed by arranging data representing the number of continuations and data other than the specific data. The specific data is, for example, non-print data that occupies most of the print data and is almost continuous, and only the non-print data is compressed. Compression can be easily achieved.

【0017】また、上記目的達成のため、本発明では、
データを展開する方法において、最初のデータを取得
し、前記最初のデータが特定のデータであるときは、次
の前記特定データの連続数を表すデータを取得してアド
レス加算し、前記最初のデータが前記特定データ以外の
データであるときは、そのデータが表す連続数分のデー
タをブロック展開することによりデータ展開するように
している。特定データである例えば印刷データの大半を
占め、かつほとんど連続している非印字データのみを展
開すればよいので、従来に比べ非常に単純となり、ハー
ドウエアでのデータの展開を容易に実現することができ
る。
In order to achieve the above object, the present invention provides:
In the method of expanding data, first data is obtained, and when the first data is specific data, data representing the number of continuous next specific data is obtained and address added, and the first data is obtained. Is data other than the specific data, the data is developed by performing block development on the continuous number of data represented by the data. Since only the non-print data that occupies most of the specific data, for example, the print data and that is almost continuous, needs to be expanded, it is much simpler than before, and the data can be easily expanded by hardware. Can be.

【0018】また、上記目的達成のため、本発明では、
ホストからのデータを受信するインターフェース部と、
ホストから受信したデータに基づいて所定の印刷処理を
行う印刷部とを備えるプリンタにおいて、前記ホストか
ら受信したデータのうち最初のデータを取得し、前記最
初のデータが特定のデータであるときは、次の前記特定
データの連続数を表すデータを取得してアドレス加算
し、前記最初のデータが前記特定データ以外のデータで
あるときは、そのデータが表す連続数分のデータをブロ
ック展開することによりデータ展開するデータ展開手段
を備えるようにしている。また、前記ホストから受信し
たデータは、特定のデータが連続するときは、1つの前
記特定データとその連続数を表すデータとを並べ、前記
特定データ以外のデータが連続するときは、その連続数
を表すデータと前記特定データ以外のデータとを並べる
ことによりデータ圧縮されていることを特徴とする。
Further, in order to achieve the above object, the present invention provides:
An interface for receiving data from the host,
In a printer including a printing unit that performs a predetermined print process based on data received from the host, the first data among the data received from the host is obtained, and when the first data is specific data, By obtaining data representing the number of consecutive specified data and adding an address, and when the first data is data other than the specified data, by expanding blocks of data corresponding to the number of consecutive data represented by the data, A data expanding means for expanding data is provided. When the specific data is continuous, the data received from the host arranges one piece of the specific data and data indicating the number of consecutive data, and when data other than the specific data is continuous, the number of consecutive data is counted. And data other than the specific data are arranged in a data compression.

【0019】特定データである例えば印刷データの大半
を占め、かつほとんど連続している非印字データのみを
展開すればよいので、従来に比べ非常に単純となり、例
えば特定用途向半導体集積回路(ASIC)等のハード
ウエアでのデータの展開を容易に実現することができ
る。このため、ホストから受信した圧縮後の印刷データ
を高速で展開することができ、印刷スピードを向上させ
ることができる。
Since only the non-print data which occupies most of the print data which is the specific data and which is almost continuous need only be developed, it is very simple compared with the related art, for example, a semiconductor integrated circuit (ASIC) for a specific application. It is possible to easily realize data expansion on hardware such as. Therefore, the compressed print data received from the host can be expanded at a high speed, and the printing speed can be improved.

【0020】[0020]

【発明の実施の形態】以下、図面に基づいて本発明の実
施の形態について詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0021】図1は、本発明の実施の形態にかかるプリ
ンタの全体構成を示すブロック図である。このプリンタ
2は、プリンタコントローラ10とプリントエンジン2
0とから構成されている。
FIG. 1 is a block diagram showing an overall configuration of a printer according to an embodiment of the present invention. The printer 2 includes a printer controller 10 and a print engine 2
0.

【0022】プリンタコントローラ10は、ホストコン
ピュータ1からの印字コマンド及び印刷データを受信す
るインターフェース(以下「ホストI/F」という)1
1と、各種データの記憶等を行うRAM12と、各種デ
ータ処理のためのルーチン等を記憶したROM13と、
CPU14とを備えている。
The printer controller 10 has an interface (hereinafter referred to as “host I / F”) 1 for receiving a print command and print data from the host computer 1.
1, a RAM 12 for storing various data and the like, a ROM 13 for storing various data processing routines and the like,
And a CPU 14.

【0023】さらに、後述する各種類のI/Fごとの内
部的な処理をハードウエア的に高速に処理し、また印字
ヘッド22側へヘッドデータ等を送り出すための印字制
御回路や各種のモータドライバ等を含む特定用途向半導
体集積回路(AppliedSemiconducto
r Integrated Circuit、以下、
「ASIC」という)15と、イメージデータ及び駆動
信号等をプリントエンジン20に送信するためのインタ
ーフェース(以下「メカI/F」という)16とを備え
ている。
Further, a print control circuit for performing internal processing for each type of I / F, which will be described later, at high speed in hardware, sending head data and the like to the print head 22 side, and various motor drivers Application Specific Semiconductor Integrated Circuits (Applied Semiconductor)
r Integrated Circuit, hereafter,
An “ASIC”) 15 and an interface (hereinafter, “mechanical I / F”) 16 for transmitting image data, drive signals, and the like to the print engine 20 are provided.

【0024】ホストI/F11、RAM12、ROM1
3、CPU14、ASIC15、メカI/F16等は、
バス17により相互に接続されている。ホストI/F1
1は、印刷コマンド及び印刷データをホストコンピュー
タ1から受信する。RAM12は、受信バッファ12
A,イメージバッファ12C及びワークメモリ12B等
として利用されるものである。
Host I / F 11, RAM 12, ROM 1
3, CPU 14, ASIC 15, mechanical I / F 16, etc.
They are interconnected by a bus 17. Host I / F1
1 receives a print command and print data from the host computer 1. The RAM 12 includes a reception buffer 12
A, the image buffer 12C, the work memory 12B and the like.

【0025】受信バッファ12Aには、ホストI/F1
1が受信したホストコンピュータ1からの印刷コマンド
及び印刷データが一時的に記憶される。イメージバッフ
ァ12Cには、印刷コマンド及び印刷データを解析した
後の、例えばラスタグラフィックス形式のイメージデー
タが展開される。
The reception buffer 12A has a host I / F 1
1 temporarily stores the print command and print data from the host computer 1 received. In the image buffer 12C, for example, image data in a raster graphics format after analyzing the print command and the print data is developed.

【0026】ROM13は、CPU14等によって実行
される各種制御プログラム等を記憶している。このプロ
グラムには、図1に示すように、主プログラム13a
と、割込処理プログラム13bがある。また、ROM1
3は、図示しないフォントデータ及びグラフィック関
数、各種手続き等も記憶している。
The ROM 13 stores various control programs executed by the CPU 14 and the like. This program includes a main program 13a as shown in FIG.
And an interrupt processing program 13b. ROM1
Reference numeral 3 also stores font data and graphic functions (not shown), various procedures, and the like.

【0027】プリントエンジン20は、印字ヘッド22
と、キャリッジ機構24と、紙送り機構26とを備えて
いる。紙送り機構26は、紙送りモータ及び紙送りロー
ラ等からなり、記録紙等の印刷記憶媒体を順次送りだし
て副走査を行うものである。キャリッジ機構24は、印
字ヘッド22を搭載するキャリッジと、該キャリッジを
タイミングベルト等を介して走行させるキャリッジモー
タ等からなり、印字ヘッド22を主走査させるものであ
る。印字ヘッド22は、副走査方向に、例えば64個の
多数のノズルから成る各色毎のインクジェットノズル列
を有し、所定のタイミングで各ノズルからインク滴を吐
出させるものである。
The print engine 20 includes a print head 22
, A carriage mechanism 24, and a paper feed mechanism 26. The paper feed mechanism 26 includes a paper feed motor, a paper feed roller, and the like, and sequentially feeds a print storage medium such as recording paper to perform sub-scanning. The carriage mechanism 24 includes a carriage on which the print head 22 is mounted, a carriage motor for moving the carriage via a timing belt or the like, and causes the print head 22 to perform main scanning. The print head 22 has, in the sub-scanning direction, an ink jet nozzle row for each color composed of, for example, 64 nozzles, and discharges ink droplets from each nozzle at a predetermined timing.

【0028】図2は、本発明の実施の形態にかかるデー
タの圧縮方法を説明するための具体例を図6に対応させ
て示す図である。この例での圧縮前データは、図6と同
様に、“00h”が5個連続し、次に“41h”、“4
2h”が続き、最後に“43h”が3個連続する構成と
なっている。このような圧縮前データは、連続するデー
タのうち“00h”のみが圧縮されて圧縮後データとさ
れる。
FIG. 2 is a diagram showing a specific example corresponding to FIG. 6 for explaining a data compression method according to the embodiment of the present invention. As shown in FIG. 6, the pre-compression data in this example includes five consecutive “00h”, followed by “41h” and “4h”.
2h, followed by three consecutive "43h." In such pre-compression data, only "00h" of the continuous data is compressed to obtain post-compression data.

【0029】すなわち、この圧縮後データは、最初のデ
ータ“00h”が次のデータ“05h”で5個あること
を示し、さらに次のデータ“05h”で非圧縮のデータ
“41h”、“42h” 、“43h” 、“43h”
、“43h”が5個続くことを示す構成となってい
る。
That is, this compressed data indicates that the first data "00h" has five data in the next data "05h", and the next data "05h" has uncompressed data "41h" and "42h". ”,“ 43h ”,“ 43h ”
, "43h" continue five times.

【0030】図3は、図1のプリンタ2におけるデータ
の展開機能を示す概略ブロック図である。RAM12の
受信バッファ12Aに蓄積されているデータは、ACI
C15の外部メモリコントローラ151によりバス17
を介して1バイトずつ読み出され、1stデータが1s
tデータ解析部152で解析される。そして、その解析
結果にしたがってブロック転送ユニット153の転送先
アドレスレジスタ154またはブロック転送カウンタ1
55の機能により処理されたデータは、外部メモリコン
トローラ151によりバス17を介して1バイトずつR
AM12のイメージバッファ12Cに書き込まれるよう
になっている。
FIG. 3 is a schematic block diagram showing a data expanding function in the printer 2 of FIG. The data stored in the reception buffer 12A of the RAM 12
The bus 17 is controlled by the external memory controller 151 of C15.
Is read out one byte at a time, and the first data is 1s
The data is analyzed by the t data analysis unit 152. Then, the transfer destination address register 154 of the block transfer unit 153 or the block transfer counter 1 according to the analysis result.
The data processed by the function 55 is transferred to the external memory controller 151 via the bus 17 in units of R bytes.
The data is written to the image buffer 12C of the AM 12.

【0031】このような構成において、その動作例を図
4のフローチャートを用いて説明する。先ず、1stデ
ータを取得し、その1stデータから“00h”が連続
したデータであるか否かを判断する(ステップS11、
S12)。“00h”が連続したデータであるときは連
続数データを取得し(ステップS13)、アドレス加算
する(ステップS14)。
An operation example of such a configuration will be described with reference to the flowchart of FIG. First, the first data is acquired, and it is determined whether "00h" is continuous data from the first data (step S11,
S12). If "00h" is continuous data, the continuous number data is obtained (step S13), and the address is added (step S14).

【0032】一方、ステップS12において“00h”
が連続したデータでないときはデータをブロック展開す
る(ステップS15)。次に、ラスタ展開が終了したか
否かを判断し(ステップS16)、ラスタ展開が終了し
ていないときはステップS11に戻って上述した処理を
繰り返し、ラスタ展開が終了したときは全ての処理を終
了する。
On the other hand, in step S12, "00h"
If is not continuous data, the data is expanded into blocks (step S15). Next, it is determined whether or not raster development has been completed (step S16). If raster development has not been completed, the process returns to step S11, and the above-described processing is repeated. finish.

【0033】例えば図2に示す圧縮後データの場合、先
ず、1番目の下線部の1stデータ“00h”を取得す
る。この場合の1stデータから“00h”が連続した
データであることがわかるので、次の連続数データ“0
5h”を取得して5個分をアドレス加算する。
For example, in the case of the compressed data shown in FIG. 2, first, the first underlined first data "00h" is obtained. In this case, since the first data indicates that “00h” is continuous data, the next consecutive number data “0”
5h "is acquired, and the address of 5 is added.

【0034】次に、2番目の下線部の1stデータ“0
5h”を取得する。この場合の1stデータから非圧縮
のデータが5個続いていることがわかるので、各データ
“41h”、“42h” 、“43h” 、“43h”
、“43h” をブロック展開する。以上により、図2
に示す圧縮前データに展開することができる。
Next, the second underlined first data "0"
In this case, since it is found that five uncompressed data continue from the first data in this case, each data "41h", "42h", "43h", "43h" is obtained.
, “43h” are expanded into blocks. As described above, FIG.
Can be expanded to the pre-compression data.

【0035】以上、本発明を特定の実施形態について述
べたが、本発明はこれらに限られるものではなく、特許
請求の範囲に記載された発明の範囲内で、他の実施形態
についても適用される。例えば上述した実施の形態では
圧縮するデータを“00h”という非印字データとして
説明したが、“FFh”という一色印字データ、いわゆ
るべたのデータとしても同様の効果を奏する。
As described above, the present invention has been described with respect to specific embodiments. However, the present invention is not limited to these embodiments, and is applicable to other embodiments within the scope of the invention described in the claims. You. For example, in the above-described embodiment, the data to be compressed is described as non-print data "00h". However, the same effect can be obtained with one-color print data "FFh", so-called solid data.

【0036】また、上述した実施の形態では圧縮するデ
ータが連続するときは、圧縮するデータとその連続数を
表すデータとを順に並べ、圧縮データ以外のデータが連
続するときは、その連続数を表すデータと圧縮データ以
外のデータとを順に並べるようにしたが、例えば所定の
識別子等を付加することにより、上述したデータ順に並
べなくても同様の効果を得ることができる。
In the above-described embodiment, when the data to be compressed is continuous, the data to be compressed and the data representing the number of continuations are arranged in order, and when the data other than the compressed data is continuous, the number of continuations is reduced. Although the data to be represented and the data other than the compressed data are arranged in order, the same effects can be obtained without adding the data in the order described above, for example, by adding a predetermined identifier or the like.

【0037】[0037]

【発明の効果】以上説明したように、本発明によれば、
特定データのみを圧縮・展開すればよいので、従来に比
べ非常に単純となり、ハードウエアでのデータの圧縮・
展開を容易に実現することができる。そして、このよう
な圧縮・展開技術をプリンタに利用することにより、ホ
ストから受信した圧縮後の印刷データを高速で展開する
ことができ、印刷スピードを向上させることができる。
As described above, according to the present invention,
Since only specific data needs to be compressed and decompressed, it is much simpler than before, and data compression and
Deployment can be easily realized. By using such a compression / expansion technique for a printer, the compressed print data received from the host can be expanded at a high speed, and the printing speed can be improved.

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

【図1】本発明の実施の形態にかかるプリンタの全体構
成を示すブロック図である。
FIG. 1 is a block diagram illustrating an overall configuration of a printer according to an embodiment of the present invention.

【図2】本発明の実施の形態にかかるデータの圧縮方法
を説明するための具体例を示す図である。
FIG. 2 is a diagram showing a specific example for describing a data compression method according to the embodiment of the present invention.

【図3】図1のプリンタにおけるデータの展開機能を示
す概略ブロック図である。
FIG. 3 is a schematic block diagram showing a data expanding function in the printer of FIG. 1;

【図4】図3のデータの展開機能の動作例を示すフロー
チャートである。
FIG. 4 is a flowchart illustrating an operation example of a data expansion function of FIG. 3;

【図5】ホストとしてのPCとプリンタとを接続してな
る一般的なコンピュータシステムを示す概略ブロック図
である。
FIG. 5 is a schematic block diagram showing a general computer system connecting a PC as a host and a printer.

【図6】従来のデータの圧縮方法を説明するための具体
例を示す図である。
FIG. 6 is a diagram showing a specific example for explaining a conventional data compression method.

【図7】従来のプリンタにおけるデータの展開機能を示
す概略ブロック図である。
FIG. 7 is a schematic block diagram showing a data development function in a conventional printer.

【図8】図7のデータの展開機能の動作例を示すフロー
チャートである。
FIG. 8 is a flowchart showing an operation example of a data expanding function of FIG. 7;

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

1 ホストコンピュータ 10 プリンタコントローラ 11 ホストI/F 12 RAM 12A 受信バッファ 12C イメージバッファ 12B ワークメモリ 13 ROM 13a 主プログラム 13b 割込処理プログラム 14 CPU 15 ASIC 151 外部メモリコントローラ 152 1stデータ解析部 153 ブロック転送ユニット 154 転送先アドレスレジスタ 155 ブロック転送カウンタ 16 メカI/F 17 バス 20 プリントエンジン 22 印字ヘッド 24 キャリッジ機構 26 紙送り機構 100 PC 102 プリンタドライバ 104 オペレーティングシステム(OS) 106 PC100のI/F部 115 接続ケーブル 200 プリンタ 220 I/F制御部 222 データ受信部 224 データ送信部 230 印刷部 231 受信バッファメモリ部 233 コマンド解釈部 235 イメージデータ展開部 237 印刷処理実行部 239 状態確認 240 受信バッファ 250 CPU 251 ヘッダデータ解析部 252 データ転送ユニット 260 イメージバッファ 1 Host Computer 10 Printer Controller 11 Host I / F 12 RAM 12A Receive Buffer 12C Image Buffer 12B Work Memory 13 ROM 13a Main Program 13b Interrupt Processing Program 14 CPU 15 ASIC 151 External Memory Controller 152 1st Data Analysis Unit 153 Block Transfer Unit 154 Transfer destination address register 155 Block transfer counter 16 Mechanical I / F 17 Bus 20 Print engine 22 Print head 24 Carriage mechanism 26 Paper feed mechanism 100 PC 102 Printer driver 104 Operating system (OS) 106 I / F section of PC 100 115 Connection cable 200 Printer 220 I / F control unit 222 Data reception unit 224 Data transmission unit 230 Printing unit 231 Receiving buffer memory section 233 Command interpreting section 235 Image data expanding section 237 Print processing executing section 239 Status check 240 Receiving buffer 250 CPU 251 Header data analyzing section 252 Data transfer unit 260 Image buffer

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 データを圧縮する方法において、 特定のデータが連続するときは、1つの前記特定データ
とその連続数を表すデータとを並べ、 前記特定データ以外のデータが連続するときは、その連
続数を表すデータと前記特定データ以外のデータとを並
べることによりデータ圧縮することを特徴とするデータ
の圧縮方法。
1. A method of compressing data, wherein, when specific data is continuous, one specific data and data representing the number of continuous data are arranged, and when data other than the specific data is continuous, A data compression method, comprising compressing data by arranging data representing the number of continuations and data other than the specific data.
【請求項2】 データを圧縮する方法において、 特定のデータが連続するときは、1つの前記特定データ
とその連続数を表すデータとを順に並べ、 前記特定データ以外のデータが連続するときは、その連
続数を表すデータと前記特定データ以外のデータとを順
に並べることによりデータ圧縮することを特徴とするデ
ータの圧縮方法。
2. A method for compressing data, wherein, when specific data is continuous, one specific data and data representing the number of continuations are arranged in order, and when data other than the specific data is continuous, A data compression method comprising compressing data by sequentially arranging data representing the number of continuations and data other than the specific data.
【請求項3】 前記特定データが、非印字データもしく
は一色印字データであることを特徴とする請求項1また
は2に記載のデータの圧縮方法。
3. The data compression method according to claim 1, wherein the specific data is non-print data or one-color print data.
【請求項4】 データを展開する方法において、 最初のデータを取得し、 前記最初のデータが特定のデータであるときは、次の前
記特定データの連続数を表すデータを取得してアドレス
加算し、 前記最初のデータが前記特定データ以外のデータである
ときは、そのデータが表す連続数分のデータをブロック
展開することによりデータ展開することを特徴とするデ
ータの展開方法。
4. A method for expanding data, comprising: obtaining first data; and when the first data is specific data, obtaining data representing a continuous number of the next specific data and adding an address. When the first data is data other than the specific data, the data is developed by performing block development on data corresponding to the continuous number represented by the specific data.
【請求項5】 前記特定データが、非印字データもしく
は一色印字データであることを特徴とする請求項4に記
載のデータの展開方法。
5. The data expanding method according to claim 4, wherein the specific data is non-print data or one-color print data.
【請求項6】 ホストからのデータを受信するインター
フェース部と、ホストから受信したデータに基づいて所
定の印刷処理を行う印刷部とを備えるプリンタにおい
て、 前記ホストから受信したデータのうち最初のデータを取
得し、前記最初のデータが特定のデータであるときは、
次の前記特定データの連続数を表すデータを取得してア
ドレス加算し、前記最初のデータが前記特定データ以外
のデータであるときは、そのデータが表す連続数分のデ
ータをブロック展開することによりデータ展開するデー
タ展開手段を備えたことを特徴とするプリンタ。
6. A printer comprising: an interface unit for receiving data from a host; and a printing unit for performing a predetermined print process based on the data received from the host. Acquired, and when the first data is specific data,
By obtaining data representing the number of consecutive specified data and adding an address, and when the first data is data other than the specified data, by expanding blocks of data corresponding to the number of consecutive data represented by the data, A printer comprising data expanding means for expanding data.
【請求項7】 前記データ展開手段は、特定用途向半導
体集積回路(ASIC)内に設けられることを特徴とす
る請求項6に記載のプリンタ。
7. The printer according to claim 6, wherein the data development unit is provided in a semiconductor integrated circuit (ASIC) for a specific application.
【請求項8】 前記特定データが、非印字データもしく
は一色印字データであることを特徴とする請求項6また
は7に記載のプリンタ。
8. The printer according to claim 6, wherein the specific data is non-print data or one-color print data.
【請求項9】 前記ホストから受信したデータは、特定
のデータが連続するときは、1つの前記特定データとそ
の連続数を表すデータとを並べ、前記特定データ以外の
データが連続するときは、その連続数を表すデータと前
記特定データ以外のデータとを並べることによりデータ
圧縮されていることを特徴とする請求項6、7または8
に記載のプリンタ。
9. The data received from the host, when specific data is continuous, arranges one specific data and data indicating the number of continuations, and when data other than the specific data is continuous, 9. Data compression is performed by arranging data representing the number of continuations and data other than the specific data.
Printer according to.
【請求項10】 前記ホストから受信したデータは、特
定のデータが連続するときは、1つの前記特定データと
その連続数を表すデータとを順に並べ、前記特定データ
以外のデータが連続するときは、その連続数を表すデー
タと前記特定データ以外のデータとを順に並べることに
よりデータ圧縮されていることを特徴とする請求項6、
7または8に記載のプリンタ。
10. The data received from the host, when specific data is continuous, arranges one specific data and data representing the number of consecutive data in order, and when data other than the specific data is continuous, The data is compressed by sequentially arranging data representing the number of continuations and data other than the specific data.
9. The printer according to 7 or 8.
JP2000313141A 2000-10-06 2000-10-06 Data compression/expansion method and printer Pending JP2002118757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000313141A JP2002118757A (en) 2000-10-06 2000-10-06 Data compression/expansion method and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000313141A JP2002118757A (en) 2000-10-06 2000-10-06 Data compression/expansion method and printer

Publications (1)

Publication Number Publication Date
JP2002118757A true JP2002118757A (en) 2002-04-19

Family

ID=18792600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000313141A Pending JP2002118757A (en) 2000-10-06 2000-10-06 Data compression/expansion method and printer

Country Status (1)

Country Link
JP (1) JP2002118757A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8070157B2 (en) 2009-07-31 2011-12-06 Seiko Epson Corporation Recording apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8070157B2 (en) 2009-07-31 2011-12-06 Seiko Epson Corporation Recording apparatus

Similar Documents

Publication Publication Date Title
KR100396548B1 (en) Apparatus for controlling printer to improve printing speed and method thereof
JP2001325087A (en) Command analysis utilizing rewritable command storing part
JP2002118757A (en) Data compression/expansion method and printer
US5586229A (en) Band printing method for preventing band overrun error in page printer
JP3655457B2 (en) Printer control device
JP3651551B2 (en) Printer and printing system
US20030098988A1 (en) Fast printing apparatus and method thereof
JPH11188936A (en) Image data managing system
JPH11179975A (en) Color printer control device
JP2981400B2 (en) Printing apparatus and data processing method for printing apparatus
JPH09164731A (en) Printing device and data processing of printing device
JP2002120411A (en) White sheet detector and image recorder, imaging apparatus and image reader comprising it
JPH1024635A (en) Printer
JP2002358175A (en) Printing controller and printing control method and printing system
JP2000225735A (en) Image printer
JP2846806B2 (en) Printer controller
JP3093245B2 (en) Image processing device, output control device, image processing system and method
JP3874297B2 (en) Printer
JPH10171612A (en) Picture processor and compression processing method
JP3190894B2 (en) Image forming method and image forming apparatus for laser printer
JPH07221946A (en) Image forming method and device therefor
JPH09188041A (en) Output device
JP2002240368A (en) Still image printer controlling apparatus
JPH08272553A (en) Picture processor
JPH1158873A (en) Page printer