JP2000289297A - Printer and printing system - Google Patents

Printer and printing system

Info

Publication number
JP2000289297A
JP2000289297A JP11099483A JP9948399A JP2000289297A JP 2000289297 A JP2000289297 A JP 2000289297A JP 11099483 A JP11099483 A JP 11099483A JP 9948399 A JP9948399 A JP 9948399A JP 2000289297 A JP2000289297 A JP 2000289297A
Authority
JP
Japan
Prior art keywords
data
printer
host
character string
printing
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
JP11099483A
Other languages
Japanese (ja)
Inventor
Tsutomu Mogi
努 茂木
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 JP11099483A priority Critical patent/JP2000289297A/en
Publication of JP2000289297A publication Critical patent/JP2000289297A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To effectively prevent wasteful printing such as garbage printing or the like by setting a data garbage mode of scrapping printing data received from a host without analyzing the data in addition to a normal printing mode, and moving to the data garbage mode when an error is generated or the like. SOLUTION: For example, when a user turns on a reset switch 26, a character string-searching/mode-converting part 24 moves a printer 10 to a data garbage mode. Data received by a receiving register 22A of a data-receiving part 22 is latched by a receiving buffer 22B. The character string-searching/mode- converting part 24 searches for a predetermined identification character string from the data latched by the receiving buffer 22B, moves the printer 10 from the data garbage mode to a normal mode when the character string is recognized, and transfers the data after the character string is recognized to an input buffer memory part 31 of a printing part 30 from the receiving buffer 22B. On the contrary, when the predetermined identification character string is not recognized, the part continues the data garbage mode and scraps (erases) the data latched in the receiving buffer 22B.

Description

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

【発明の属する技術分野】本発明は、プリンタ及び印刷
システムに関し、特に、プリンタがホストコンピュータ
等から正しくデータを受信できるようにするためのプリ
ンタ及び印刷システムの制御技術に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a printer and a printing system, and more particularly to a printer and a printing system control technique for enabling a printer to correctly receive data from a host computer or the like.

【従来の技術】従来のプリンタ及び印刷システムでは、
ホストから出力される印刷データは、通常、ケーブル・
コネクタ等を経由してプリンタ内のホストインタフェー
スに設けられるデータ受信部により受信され、この印刷
データは上記データ受信部から印刷部へ送られて、印刷
部により印刷データが解釈され、イメージデータとして
展開された上で、印刷が実行される。
2. Description of the Related Art In a conventional printer and printing system,
The print data output from the host is usually
The data is received by a data receiving unit provided in a host interface in the printer via a connector or the like, and the print data is sent from the data receiving unit to the printing unit, where the printing data is interpreted and expanded as image data. Then, printing is executed.

【発明が解決しようとする課題】しかしながら、従来の
プリンタ及び印刷システムでは、ホストから出力される
印刷データは、一旦、プリンタ内のデータ受信部に受信
されるものの、そのまま印刷部へ送られて印刷が実行さ
れる。この結果、例えば、ホストとプリンタとを接続し
ているケーブルが抜け、或いはユーザによりプリンタの
リセットがなされた場合等に、再接続或いはリセットの
後プリンタがスタンバイしてからしばらくの間は、プリ
ンタが正常に動作していなかった間に受信されたデータ
が印刷されるので、いわゆるゴミ印字データが印刷さ
れ、ユーザには無用のものとなってしまう。このような
場合、印刷用紙、インク等の消耗品が無駄に使われるこ
とになるだけでなく、ユーザはゴミ印字が終わるのを待
たなければならず、時間的にも不経済である。本発明の
目的は、従来ゴミ印字として処理されていた等の不要の
データは、印刷される前に捨ててしまうことにより、印
刷用紙、インク等が無駄に消耗されるのを防止でき、ユ
ーザにとっても快適なプリンタ及び印刷システムを提供
することにある。
However, in the conventional printer and printing system, the print data output from the host is once received by the data receiving unit in the printer, but is sent to the printing unit as it is for printing. Is executed. As a result, for example, when the cable connecting the host and the printer is disconnected, or when the printer is reset by the user, the printer is in standby for a while after the reconnection or reset, so that the printer is not connected. Since the data received during normal operation is printed, so-called dust print data is printed, which is useless for the user. In such a case, consumables such as printing paper and ink are not only wasted, but also the user has to wait for the end of dust printing, which is uneconomical in terms of time. An object of the present invention is to discard unnecessary data such as conventionally processed as garbage printing before printing, thereby preventing printing paper, ink, etc. from being wastefully consumed, and providing a user with It is to provide a very comfortable printer and printing system.

【課題を解決するための手段】上記課題を解決するた
め、本発明では、プリンタが、通常の印刷モードの他
に、ホストから受信した印刷データを解析することなく
捨てるデータ捨てモードを取り得るようにし、何らかの
エラーが生じた場合等に、このデータ捨てモードに移行
するようにした。これにより、エラーの後、プリンタが
スタンバイしても、不要のデータが印刷されることが無
くなる。即ち、請求項1記載のプリンタは、ホストから
受信した印刷データを解析することなく捨てるデータ捨
てモードと、前記ホストから受信した印刷データを解析
しイメージデータに展開した上で印刷する通常モードの
双方を有することを特徴とする。また、請求項2記載の
プリンタでは、前記データ捨てモードから前記通常モー
ドへの移行は、ホストから受信した印刷データ中に所定
の識別手段を認識することにより行われる。更に、請求
項3記載のプリンタにおいては、前記通常モードから前
記データ捨てモードへの移行は、プリンタに所定のトラ
ブルが生じた場合に自動的に行われる。また、請求項4
記載のプリンタは、ホストから出力される印刷データを
受信するデータ受信部と、該データ受信部から送られた
前記印刷データを解析しイメージデータに展開した上で
印刷を行う印刷部とを有するプリンタにおいて、前記デ
ータ受信部は、前記印刷データ中に所定の識別手段を認
識するまでは、該印刷データを前記印刷部に送ることな
く捨て、前記所定の識別手段を認識した後のデータのみ
前記印刷部に送ることを特徴とする。尚、請求項5記載
のプリンタにおいては、前記データ受信部は、プリンタ
内のホストインタフェース部に設けられる。以上のプリ
ンタにおいて、前記所定の識別手段は、少なくとも前記
ホストから受信する印刷データ中に同様の文字列が他に
現れることのない文字の組み合わせ及び文字数から成る
文字列から構成するのが好適である。或いは、パケット
通信方式によりデータの受信を行うプリンタにおいて
は、前記所定の識別手段は、パケットの先頭に設けても
良い。一方、請求項8記載の印刷システムは、印刷デー
タを作成し出力するホストと、該ホストが作成した前記
印刷データに基づき印刷を行うプリンタとを含み、前記
プリンタは前記印刷データを受信するデータ受信部と該
データ受信部から送られる前記印刷データを解析しイメ
ージデータに展開した上で印刷を行う印刷部とを有する
印刷システムにおいて、前記ホストは、前記作成した印
刷データ中に所定の識別手段を含めて出力し、前記プリ
ンタのデータ受信部は、前記所定の識別手段のみを検索
しながら前記印刷データを受信し、該所定の識別手段を
認識することなく受信したデータを捨て、該所定の識別
手段を認識した場合にのみ、該所定の識別手段以降に受
信したデータを前記印刷部に送り、前記プリンタの印刷
部は、前記データ受信部から送られる前記所定の識別手
段以降に受信したデータのみを解析しイメージデータに
展開した上で印刷を行うことを特徴とする。尚、請求項
9記載の印刷システムにおいては、前記ホストは、印刷
ジョブの先頭に前記所定の識別手段を付加することによ
り前記印刷データ中に該所定の識別手段を含める。また
一方、請求項10記載の印刷データの送受信方法は、印
刷データを作成し出力するホストと、該ホストが作成し
た前記印刷データに基づき印刷を行うプリンタとの間の
前記印刷データの送受信方法において、前記ホストが前
記作成する印刷データ中に所定の文字列を含めて出力す
るステップと、前記プリンタが前記所定の文字列のみを
検索しながら前記印刷データを受信するステップと、前
記プリンタが、前記所定の文字列を識別することなく受
信したデータを捨てるステップと、前記プリンタが、前
記所定の文字列を識別するステップと、前記プリンタ
が、該識別した前記所定の文字列以降に受信したデータ
のみに基づき印刷を行うステップとを有することを特徴
とする。尚、請求項11記載の記録媒体は、ホストコン
ピュータが読取り可能なプログラムを記録した記録媒体
において、ホストにおいて印刷ジョブが発生した場合に
プリンタが解釈可能な形式の印刷データを前記印刷ジョ
ブを含めて生成するプログラムであって、前記印刷ジョ
ブの先頭にプリンタが識別可能な所定の文字列を付加す
る処理を実行するプログラムを記録したことを特徴とす
る。本請求項記載の記録媒体は、ホストコンピュータに
インストールされる、いわゆるプリンタドライバの形式
で具現され得る。また、請求項12記載の記録媒体は、
プリンタ内のCPUが読取り可能なプログラムを記録し
た記録媒体であって、所定の文字列のみを検索しながら
ホストから印刷データを受信する処理と、前記所定の文
字列を識別することなく受信したデータを消去する処理
と、前記所定の文字列を識別する処理と、前記所定の文
字列を識別した以降に受信したデータを解析しイメージ
データに展開した上で印刷を実行する処理とをプリンタ
に実行させるプログラムを記録したことを特徴とする。
本請求項記載の記録媒体は、プリンタの主制御部に設け
られるROM等の形式で具現され得る。
In order to solve the above-mentioned problems, according to the present invention, in addition to a normal print mode, a printer can take a data discard mode in which print data received from a host is discarded without being analyzed. Then, when an error occurs, the mode shifts to the data discard mode. This prevents unnecessary data from being printed even if the printer is on standby after an error. That is, the printer according to claim 1 includes both a data discarding mode in which print data received from the host is discarded without analysis and a normal mode in which the print data received from the host is analyzed and developed into image data before printing. It is characterized by having. In the printer according to the second aspect, the transition from the data discarding mode to the normal mode is performed by recognizing a predetermined identification unit in the print data received from the host. Further, in the printer according to the third aspect, the transition from the normal mode to the data discarding mode is automatically performed when a predetermined trouble occurs in the printer. Claim 4
The printer according to claim 1, further comprising a data receiving unit that receives print data output from a host, and a printing unit that analyzes the print data sent from the data reception unit, expands the data into image data, and prints the image data. In the above, the data receiving unit discards the print data without sending it to the printing unit until recognizing a predetermined identification unit in the print data, and prints only the data after recognizing the predetermined identification unit. It is sent to the department. In the printer according to the fifth aspect, the data receiving unit is provided in a host interface unit in the printer. In the above-described printer, it is preferable that the predetermined identification unit is formed of a character string including a combination of characters and the number of characters in which a similar character string does not appear at least in print data received from the host. . Alternatively, in a printer that receives data by a packet communication method, the predetermined identification means may be provided at the beginning of a packet. On the other hand, a printing system according to claim 8 includes a host that creates and outputs print data, and a printer that performs printing based on the print data created by the host, wherein the printer receives the print data. And a printing unit that analyzes the print data sent from the data receiving unit, expands the data into image data, and prints the image data, wherein the host includes a predetermined identification unit in the created print data. The data receiving unit of the printer receives the print data while searching only for the predetermined identification means, discards the received data without recognizing the predetermined identification means, and discards the received data. Only when the unit is recognized, the data received after the predetermined identifying unit is sent to the printing unit, and the printing unit of the printer is connected to the data receiving unit. And performing printing on the developed data only received after the predetermined identification means sent al analyzed the image data. In the printing system according to the ninth aspect, the host includes the predetermined identification unit in the print data by adding the predetermined identification unit to the head of a print job. The print data transmission / reception method according to claim 10, wherein the print data transmission / reception method between a host that creates and outputs print data and a printer that performs printing based on the print data created by the host. Outputting the print data including a predetermined character string in the print data created by the host; receiving the print data while the printer searches only the predetermined character string; and Discarding the received data without identifying a predetermined character string; the printer identifying the predetermined character string; and the printer receiving only the data received after the identified predetermined character string. And printing based on the information. The recording medium according to claim 11 is a recording medium on which a program readable by a host computer is recorded, wherein print data in a format that can be interpreted by a printer when a print job occurs in the host, including the print job. A program for generating a program for executing a process of adding a predetermined character string that can be identified by a printer to the head of the print job is recorded. The recording medium according to the present invention can be embodied in the form of a so-called printer driver installed in a host computer. The recording medium according to claim 12 is
A recording medium on which a program readable by a CPU in a printer is recorded, a process of receiving print data from a host while searching for only a predetermined character string, and a process of receiving data without identifying the predetermined character string. Executing a process of deleting the predetermined character string, a process of identifying the predetermined character string, and a process of analyzing data received after identifying the predetermined character string, expanding the image data into image data, and executing printing. The program is characterized by recording a program to be executed.
The recording medium according to the present invention can be embodied in the form of a ROM or the like provided in a main control unit of a printer.

【発明の実施形態】以下、本発明の実施形態について図
面を参照して説明する。図1は、本発明の第1の実施形
態に係るプリンタの基本構成を表す図である。本実施形
態のプリンタ10は、図1に示されるように、図示しな
いホストとの間でデータを送受信するためのインタフェ
ース制御部20と、印刷部30とを含んで構成されてい
る。インタフェース制御部20には、データ受信部22
と、文字列検索・モード変換部24が設けられている。
尚、インタフェース制御部20には、図示はしないが、
データ送信部等も設けられている。また、プリンタ10
のパネルには、リセットスイッチ26が設けられてお
り、例えば、ユーザがこのリセットスイッチ26をON
すると、所定の信号が文字列検索・モード変換部24に
送られ、文字列検索・モード変換部24はプリンタ10
をデータ捨てモードに移行させる。また、検出部28に
より、例えば、図示しないホストとを接続するケーブル
の接続断が検出されても、同様に検出部28から所定の
信号が文字列検索・モード変換部24に送られ、文字列
検索・モード変換部24はプリンタ10をデータ捨てモ
ードに移行させる。データ受信部22は、受信レジスタ
22Aと、受信バッファ22Bとを含んでいる。受信レ
ジスタ22Aは、所定のビット数のシフトレジスタから
成り、ホストから送信されたシリアルの印刷データを受
信する初段の回路である。受信バッファ22Bは、受信
レジスタ22Aが受信したデータをラッチしておくため
に受信レジスタ22Aの次段に設けられたバッファであ
る。文字列検索・モード変換部24は、受信バッファ2
2Bにラッチされたデータから後述する所定の識別文字
列を検索し、これが認識されると、プリンタ10を上述
したデータ捨てモードから通常モードに移行させる、即
ち、図1に矢印NMで示すように、該文字列認識後のデ
ータを受信バッファ22Bから印刷部30の入力バッフ
ァメモリ部31にDMA転送するように制御する。反対
に、所定の識別文字列が認識されない場合には、これが
認識されるまで上述したデータ捨てモードを継続する。
即ち、図1に矢印AMで示すように、受信バッファ22
Bにラッチしたデータを捨ててしまう(消去する)よう
に制御する。印刷部30は、入力バッファメモリ部3
1、データ読み込み部33、データ解析・変換部35、
データ展開部37、印刷処理部39を有している。入力
バッファメモリ部31は、印刷部30内に設けられたR
AM上に形成され、インタフェース制御部20内のデー
タ受信部22を介して入力されるデータを一時的に蓄積
する。即ち、データ受信部22の受信バッファ22Bに
ラッチされたデータが、この入力バッファメモリ部31
にDMA転送され、このデータが必要に応じて読み出さ
れて所要の印刷処理が実行される。データ読み込み部3
3は、入力バッファメモリ部31内に蓄積されたデータ
を逐次読み込む。データ解析・変換部35は、読み込ん
だデータ中の印刷データを解析し、この印刷データを所
定のデータ形態に変換する。データ展開部37は、デー
タ解析・変換部35によって変換されたデータをイメー
ジデータに展開する。印刷処理部39は、展開されたイ
メージデータに基づいて印刷処理を行う。図2は、上記
第1の実施形態において、プリンタ10が受信する識別
文字列を含む印刷データの内容を表す図である。上述し
たように、通常モードからデータ捨てモードへの移行
は、プリンタに所定のトラブルが生じた場合に自動的に
行われる。即ち、ケーブルの抜け等によりホストとの接
続断を生じ、或いはユーザによりプリンタ10のパネル
リセットがなされた場合には、従来例に関連して述べた
ように、ゴミ印字されるデータ部分201を生じる。し
かしながら、ホストは、プリンタへ出力すべき印刷ジョ
ブ203の先頭に所定の長さ(例えば、30〜40文
字、数10バイト)の識別文字列202を付加してプリ
ンタ10に送信する。尚、図2では、いわゆるパケット
によりデータを送信する構成を例示している。これら各
パケット204にも、データ205の先頭に識別子20
6が付されているが、本実施形態は、かかるパケットの
識別子206とは異なる識別文字列202を設定してい
る。尚、識別文字列202は、その存在意義からして、
少なくともホストから受信する印刷データ(ゴミ印字デ
ータ)中に同様の文字列が他に現れることのない、文字
の組み合わせ及び文字数から成るのが望ましい。図3
は、上記プリンタ10の、通常モードと捨てモード間の
移行を含む一連の動作を表すフローチャートである。ま
ず、プリンタにケーブルの抜け等所定のトラブル(エラ
ー)が生じた場合には(S301)、通常モードからデ
ータ捨てモードへ自動的に移行する(S302)。ホス
トから出力されるデータは、上述したように、データ受
信部22により受信される(S303)。そして、所定
の識別文字列202(図2参照)を受信データ中に認識
できたかが判断され(S304)、これが認識されない
限り(S304でNo)、印刷データの受信が継続され
る(S303)が、受信したデータは、図1でも述べた
ように捨てられる。所定の識別文字列202(図2参
照)が受信データ中に認識された場合(S304でYe
s)には、データ捨てモードから通常モードへ移行する
(S305)。この通常モード下で受信された(S30
6)データは、入力バッファメモリ部31に転送されて
書き込まれ(S307)、コマンド解析・データ展開が
なされ(S308)、印刷が実行される(S309)。
図4は、本発明の第2の実施形態に係る印刷システムの
基本構成を表す図である。本実施形態の印刷システム
は、図4に示されるように、ホスト40とプリンタ10
とを含み、両者は、図示しないインタフェースコネク
タ、接続ケーブルを経由して双方向通信可能に構成され
ている。ホスト40には、プリンタドライバ42がイン
ストールされており、このプリンタドライバ42によ
り、例えばホスト40上のアプリケーションにより作成
された印刷データがプリンタ10により解釈可能な形式
に変換されてプリンタ10に出力される。本実施形態の
プリンタドライバ42は、ホスト40において印刷ジョ
ブが発生した場合にプリンタ10が解釈可能な形式の印
刷データをその印刷ジョブを含めて生成する上記の通常
の処理に加え、当該印刷ジョブの先頭にプリンタ10が
識別可能な所定の文字列を付加する処理を実行する。こ
れにより、図2に示したように、印刷ジョブ203の先
頭に所定の長さの識別文字列202が付加されてプリン
タ10に送信される。尚、プリンタ10の構成は、図1
に示した第1の実施形態のものと全く同様であり、その
動作も図3に示した第1の実施形態のフローと全く同様
であるので、それらの説明は省略する。以下、図5を参
照して、ホスト40とプリンタ10との間で行われるデ
ータの送受信方法等について説明しておく。同図は、ホ
スト40とプリンタ10との間で行われるデータの送受
信の手順を表すシーケンスチャートである。尚、以下の
説明において、T1からT5は、処理ステップを示す。
ホスト40とプリンタ10とがプリンタケーブル等で接
続された状態において、ホスト40からプリンタ10
に、ある印刷ジョブに基づき印字データが送信されてい
る(T1)ものとする。ここで、例えば、ユーザにより
プリンタ10のパネルリセットがなされると、以後ホス
ト40からプリンタ10に送信されるデータは、プリン
タ10が正常に印刷できないゴミ印字データとなる(T
2)が、プリンタ10はデータ捨てモードに移行するの
で、かかるゴミ印字データは、受信されても印刷される
ことなく、捨てられる。この後、例えば、ホスト40か
らプリンタ10に、データ送信の許可を求める信号を送
信(T3)しても、プリンタ10がスタンバイしていな
いと、プリンタ10の応答がなく(T4)、データ捨て
モードも継続される。この後、例えば、プリンタ10が
スタンバイし、ホスト40と通常のコネクト状態が成立
したものとする。ホスト40のプリンタドライバ42
が、新しい印刷ジョブ1の先頭にプリンタ10が識別可
能な所定の文字列を付加する処理を実行し、この識別文
字列202が付加されてプリンタ10に送信される(T
5)。この識別文字列202をプリンタ10のデータ受
信部が認識することにより、プリンタ10は通常モード
に移行し、以後印刷ジョブ1、2のデータは、データ受
信部から印刷部に転送され、適正に印刷される。以上、
本発明を特定の実施形態について述べたが、本発明はこ
れらに限られるものではなく、特許請求の範囲に記載し
た範囲内で他の実施形態についても適用される。例え
ば、以上の実施形態では、印刷ジョブの先頭に、所定の
識別文字列を付加する例について述べたが、パケット通
信方式のデータの送受信がなされる印刷システム等にお
いては、例えば、パケットの先頭に識別データを設け、
この識別データの受信の有無により通常モードとデータ
捨てモード間の移行を制御することも考えられる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram illustrating a basic configuration of a printer according to a first embodiment of the present invention. As shown in FIG. 1, the printer 10 of the present embodiment includes an interface control unit 20 for transmitting and receiving data to and from a host (not shown), and a printing unit 30. The interface control unit 20 includes a data receiving unit 22
And a character string search / mode conversion unit 24.
Although not shown in the interface control unit 20,
A data transmission unit and the like are also provided. The printer 10
Is provided with a reset switch 26. For example, the user turns on the reset switch 26.
Then, a predetermined signal is sent to the character string search / mode converter 24, and the character string search / mode converter 24
To the data discard mode. Also, even if the detection unit 28 detects, for example, disconnection of the cable connecting the host (not shown), a predetermined signal is similarly sent from the detection unit 28 to the character string search / mode conversion unit 24, and the character string The search / mode converter 24 shifts the printer 10 to the data discard mode. The data receiving unit 22 includes a reception register 22A and a reception buffer 22B. The reception register 22A is a first-stage circuit that includes a shift register having a predetermined number of bits and receives serial print data transmitted from the host. The reception buffer 22B is a buffer provided next to the reception register 22A for latching data received by the reception register 22A. The character string search / mode conversion unit 24
A predetermined identification character string described later is searched from the data latched in 2B, and when this is recognized, the printer 10 is shifted from the data discard mode to the normal mode, that is, as shown by an arrow NM in FIG. The data after the character string recognition is controlled to be DMA-transferred from the receiving buffer 22B to the input buffer memory 31 of the printing unit 30. Conversely, if the predetermined identification character string is not recognized, the above-described data discard mode is continued until it is recognized.
That is, as shown by the arrow AM in FIG.
Control is performed so that the data latched in B is discarded (erased). The printing unit 30 includes the input buffer memory unit 3
1, data reading unit 33, data analysis / conversion unit 35,
It has a data development unit 37 and a print processing unit 39. The input buffer memory unit 31 includes an R buffer provided in the printing unit 30.
It is formed on the AM and temporarily stores data input via the data receiving unit 22 in the interface control unit 20. That is, the data latched in the receiving buffer 22B of the data receiving unit 22 is stored in the input buffer memory unit 31.
DMA transfer is performed, the data is read out as needed, and a required printing process is executed. Data reading unit 3
3 sequentially reads the data stored in the input buffer memory unit 31. The data analysis / conversion unit 35 analyzes the print data in the read data, and converts the print data into a predetermined data format. The data expanding section 37 expands the data converted by the data analyzing / converting section 35 into image data. The print processing unit 39 performs a print process based on the developed image data. FIG. 2 is a diagram illustrating the contents of print data including an identification character string received by the printer 10 in the first embodiment. As described above, the transition from the normal mode to the data discarding mode is automatically performed when a predetermined trouble occurs in the printer. That is, when the connection with the host is disconnected due to disconnection of the cable or the like, or when the panel of the printer 10 is reset by the user, the data portion 201 to be printed with dust is generated as described in the related art. . However, the host adds an identification character string 202 of a predetermined length (for example, 30 to 40 characters, several tens of bytes) to the head of the print job 203 to be output to the printer, and transmits the print job 203 to the printer 10. FIG. 2 illustrates a configuration for transmitting data by a so-called packet. Each of these packets 204 also has an identifier 20 at the beginning of the data 205.
In the present embodiment, an identification character string 202 different from the identifier 206 of the packet is set. Note that the identification character string 202 is
It is desirable that the data be composed of a combination of characters and the number of characters so that a similar character string does not appear at least in print data (dust print data) received from the host. FIG.
5 is a flowchart showing a series of operations of the printer 10 including a transition between a normal mode and a discard mode. First, when a predetermined trouble (error) such as disconnection of a cable occurs in the printer (S301), the mode is automatically shifted from the normal mode to the data discarding mode (S302). The data output from the host is received by the data receiving unit 22 as described above (S303). Then, it is determined whether the predetermined identification character string 202 (see FIG. 2) has been recognized in the received data (S304). Unless this is recognized (No in S304), the reception of the print data is continued (S303). The received data is discarded as described in FIG. When a predetermined identification character string 202 (see FIG. 2) is recognized in the received data (Yes in S304)
In s), the mode shifts from the data discard mode to the normal mode (S305). It is received in this normal mode (S30
6) The data is transferred and written to the input buffer memory unit 31 (S307), command analysis and data development are performed (S308), and printing is performed (S309).
FIG. 4 is a diagram illustrating a basic configuration of a printing system according to the second embodiment of the present invention. As shown in FIG. 4, the printing system of the present embodiment includes a host 40 and a printer 10.
And both are configured to be capable of bidirectional communication via an interface connector and a connection cable (not shown). A printer driver 42 is installed in the host 40. The printer driver 42 converts print data created by, for example, an application on the host 40 into a format that can be interpreted by the printer 10 and outputs the data to the printer 10. . The printer driver 42 according to the present embodiment includes, in addition to the above-described normal processing for generating print data in a format that can be interpreted by the printer 10 including a print job when a print job occurs in the host 40, A process of adding a predetermined character string that can be identified by the printer 10 at the beginning is executed. As a result, as shown in FIG. 2, the identification character string 202 having a predetermined length is added to the head of the print job 203 and transmitted to the printer 10. The configuration of the printer 10 is shown in FIG.
And the operation is exactly the same as the flow of the first embodiment shown in FIG. 3, and the description thereof is omitted. Hereinafter, a method of transmitting and receiving data between the host 40 and the printer 10 will be described with reference to FIG. FIG. 4 is a sequence chart showing a procedure for transmitting and receiving data between the host 40 and the printer 10. In the following description, T1 to T5 indicate processing steps.
When the host 40 and the printer 10 are connected by a printer cable or the like, the host 40
It is assumed that print data is transmitted based on a certain print job (T1). Here, for example, when the panel of the printer 10 is reset by the user, the data transmitted from the host 40 to the printer 10 thereafter becomes dust print data that cannot be normally printed by the printer 10 (T
However, since the printer 10 shifts to the data discarding mode, the dust print data is discarded without being printed even if it is received. Thereafter, for example, even if a signal requesting permission of data transmission is transmitted from the host 40 to the printer 10 (T3), if the printer 10 is not in a standby state, there is no response from the printer 10 (T4). Is also continued. Thereafter, for example, it is assumed that the printer 10 is on standby and a normal connection state with the host 40 is established. Printer driver 42 of host 40
Executes a process of adding a predetermined character string that can be identified by the printer 10 to the beginning of the new print job 1, and adds the identification character string 202 to the new print job 1 and transmits it to the printer 10 (T
5). When the data receiving unit of the printer 10 recognizes the identification character string 202, the printer 10 shifts to the normal mode, and thereafter, the data of the print jobs 1 and 2 is transferred from the data receiving unit to the printing unit, and is printed properly. Is done. that's all,
Although the present invention has been described with respect to particular embodiments, the present invention is not limited thereto, and may be applied to other embodiments within the scope of the appended claims. For example, in the above embodiment, an example has been described in which a predetermined identification character string is added to the beginning of a print job. However, in a printing system or the like in which data is transmitted and received in the packet communication system, for example, Provide identification data,
It is conceivable to control the transition between the normal mode and the data discard mode depending on whether or not the identification data is received.

【発明の効果】以上に述べたように、本発明では、プリ
ンタが、通常の印刷モードの他に、ホストから受信した
印刷データを解析することなく捨てるデータ捨てモード
を取り得るようにしたので、何らかのエラーが生じた場
合等に、このデータ捨てモードに移行することで、ゴミ
印字等無駄な印刷がなされるのを有効に防止できる。従
って、印刷用紙、インク等が無駄に消耗されるのを防止
でき、ユーザにとっても快適なプリンタ及び印刷システ
ムを提供し得る。
As described above, according to the present invention, in addition to the normal print mode, the printer can take a data discard mode in which print data received from the host is discarded without analysis. By shifting to the data discarding mode when an error occurs, it is possible to effectively prevent wasteful printing such as dust printing. Accordingly, it is possible to prevent the printing paper, the ink, and the like from being wasted, and to provide a printer and a printing system that are comfortable for the user.

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

【図1】本発明の第1の実施形態に係るプリンタの構成
の概要を表す図である。
FIG. 1 is a diagram illustrating an outline of a configuration of a printer according to a first embodiment of the present invention.

【図2】本発明の第1の実施形態において、プリンタが
受信する識別文字列を含む印刷データの内容を表す図で
ある。
FIG. 2 is a diagram illustrating contents of print data including an identification character string received by a printer in the first embodiment of the present invention.

【図3】本発明の第1の実施形態に係るプリンタの動作
を表すフローチャートである。
FIG. 3 is a flowchart illustrating an operation of the printer according to the first embodiment of the present invention.

【図4】本発明の第2の実施形態に係る印刷システムの
基本構成を表す図である。
FIG. 4 is a diagram illustrating a basic configuration of a printing system according to a second embodiment of the present invention.

【図5】本発明の第2の実施形態において、ホストとプ
リンタとの間で行われるデータの送受信の手順を表すシ
ーケンスチャートである。
FIG. 5 is a sequence chart showing a procedure of data transmission and reception performed between a host and a printer in the second embodiment of the present invention.

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

10 プリンタ 20 インタフェース制御部 30 印刷部 22 データ受信部 24 文字列検索・モード変換部 26 リセットスイッチ 28 検出部 31 入力バッファメモリ部 33 データ読み込み部 35 データ解析・変換部 37 データ展開部 39 印刷処理部 40 ホスト 42 プリンタドライバ 201 ゴミ印字データ 203 印刷ジョブ 202 識別文字列 204 パケット 205 パケットのデータ 206 パケットの識別子 Reference Signs List 10 printer 20 interface control unit 30 printing unit 22 data receiving unit 24 character string search / mode conversion unit 26 reset switch 28 detection unit 31 input buffer memory unit 33 data reading unit 35 data analysis / conversion unit 37 data development unit 39 print processing unit 40 Host 42 Printer Driver 201 Dust Print Data 203 Print Job 202 Identification String 204 Packet 205 Packet Data 206 Packet Identifier

フロントページの続き Fターム(参考) 2C061 AS02 HH13 HJ06 HJ10 HK05 HN04 HN06 HN15 HN21 HP01 HQ20 HV02 HV05 HV19 HV35 HV44 HV58 2C087 AB05 BA01 BB01 BB20 BD01 BD13 DA01 DA09 5B021 AA01 BB01 BB02 BB09 NN17 NN21 Continued on front page F term (reference) 2C061 AS02 HH13 HJ06 HJ10 HK05 HN04 HN06 HN15 HN21 HP01 HQ20 HV02 HV05 HV19 HV35 HV44 HV58 2C087 AB05 BA01 BB01 BB20 BD01 BD13 DA01 DA09 5B021 AA01 BB09 BB01

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 ホストから受信した印刷データを解析す
ることなく捨てるデータ捨てモードと、前記ホストから
受信した印刷データを解析しイメージデータに展開した
上で印刷する通常モードの双方を有することを特徴とす
るプリンタ。
1. A data discard mode for discarding print data received from a host without analyzing the data, and a normal mode for analyzing the print data received from the host and developing the image data before printing. And the printer.
【請求項2】 請求項1記載のプリンタにおいて、前記
データ捨てモードから前記通常モードへの移行は、ホス
トから受信した印刷データ中に所定の識別手段を認識す
ることにより行われることを特徴とするプリンタ。
2. The printer according to claim 1, wherein the transition from the data discarding mode to the normal mode is performed by recognizing a predetermined identification unit in print data received from a host. Printer.
【請求項3】 請求項1記載のプリンタにおいて、前記
通常モードから前記データ捨てモードへの移行は、プリ
ンタに所定のトラブルが生じた場合に自動的に行われる
ことを特徴とするプリンタ。
3. The printer according to claim 1, wherein the transition from the normal mode to the data discarding mode is automatically performed when a predetermined trouble occurs in the printer.
【請求項4】 ホストから出力される印刷データを受信
するデータ受信部と、該データ受信部から送られた前記
印刷データを解析しイメージデータに展開した上で印刷
を行う印刷部とを有するプリンタにおいて、前記データ
受信部は、前記印刷データ中に所定の識別手段を認識す
るまでは、該印刷データを前記印刷部に送ることなく捨
て、前記所定の識別手段を認識した後のデータのみ前記
印刷部に送ることを特徴とするプリンタ。
4. A printer having a data receiving unit for receiving print data output from a host, and a printing unit for analyzing the print data sent from the data receiving unit, developing the data into image data, and printing the image data. In the above, the data receiving unit discards the print data without sending it to the printing unit until recognizing a predetermined identification unit in the print data, and prints only the data after recognizing the predetermined identification unit. A printer to be sent to a printer.
【請求項5】 請求項4記載のプリンタにおいて、前記
データ受信部は、プリンタ内のホストインタフェース部
に設けられることを特徴とするプリンタ。
5. The printer according to claim 4, wherein the data receiving unit is provided in a host interface unit in the printer.
【請求項6】 請求項1〜5記載のプリンタにおいて、
前記所定の識別手段は、少なくとも前記ホストから受信
する印刷データ中に同様の文字列が他に現れることのな
い文字の組み合わせ及び文字数から成る文字列であるこ
とを特徴とするプリンタ。
6. The printer according to claim 1, wherein
The printer, wherein the predetermined identification unit is a character string including a combination of characters and the number of characters in which a similar character string does not appear at least in print data received from the host.
【請求項7】 パケット通信方式によりデータの受信を
行う請求項1〜5記載のプリンタにおいて、前記所定の
識別手段は、パケットの先頭に設けられることを特徴と
するプリンタ。
7. The printer according to claim 1, wherein the data is received by a packet communication method, wherein the predetermined identification unit is provided at the head of the packet.
【請求項8】 印刷データを作成し出力するホストと、
該ホストが作成した前記印刷データに基づき印刷を行う
プリンタとを含み、前記プリンタは前記印刷データを受
信するデータ受信部と該データ受信部から送られる前記
印刷データを解析しイメージデータに展開した上で印刷
を行う印刷部とを有する印刷システムにおいて、 前記ホストは、前記作成した印刷データ中に所定の識別
手段を含めて出力し、 前記プリンタのデータ受信部は、前記所定の識別手段の
みを検索しながら前記印刷データを受信し、該所定の識
別手段を認識することなく受信したデータを捨て、該所
定の識別手段を認識した場合にのみ、該所定の識別手段
以降に受信したデータを前記印刷部に送り、 前記プリンタの印刷部は、前記データ受信部から送られ
る前記所定の識別手段以降に受信したデータのみを解析
しイメージデータに展開した上で印刷を行うことを特徴
とする印刷システム。
8. A host for creating and outputting print data,
A printer for printing based on the print data created by the host, the printer analyzing the print data sent from the data receiving unit and the print data sent from the data receiving unit, and developing the data into image data. A printing unit having a printing unit for performing printing by the host, wherein the host outputs the created print data including a predetermined identification unit, and the data receiving unit of the printer searches only the predetermined identification unit. Receiving the print data, discarding the received data without recognizing the predetermined identification unit, and printing the data received after the predetermined identification unit only when the predetermined identification unit is recognized. The printing unit of the printer analyzes only data received after the predetermined identification unit sent from the data receiving unit and performs image analysis. Printing system and performs printing on expanded into over data.
【請求項9】 請求項8記載の印刷システムにおいて、
前記ホストは、印刷ジョブの先頭に所定の文字列を付加
することにより前記印刷データ中に前記所定の識別手段
を含めることを特徴とする印刷システム。
9. The printing system according to claim 8, wherein
The printing system, wherein the host includes the predetermined identification unit in the print data by adding a predetermined character string to a head of a print job.
【請求項10】 印刷データを作成し出力するホスト
と、該ホストが作成した前記印刷データに基づき印刷を
行うプリンタとの間の前記印刷データの送受信方法にお
いて、 前記ホストが前記作成する印刷データ中に所定の文字列
を含めて出力するステップと、 前記プリンタが前記所定の文字列のみを検索しながら前
記印刷データを受信するステップと、 前記プリンタが、前記所定の文字列を識別することなく
受信したデータを捨てるステップと、 前記プリンタが、前記所定の文字列を識別するステップ
と、 前記プリンタが、該識別した前記所定の文字列以降に受
信したデータのみに基づき印刷を行うステップとを有す
ることを特徴とするホストとプリンタとの間の印刷デー
タの送受信方法。
10. A method of transmitting and receiving print data between a host that creates and outputs print data and a printer that performs printing based on the print data created by the host, the method comprising: Outputting the print data including the predetermined character string; receiving the print data while the printer searches only the predetermined character string; and receiving the print data without identifying the predetermined character string. Discarding the identified data; the printer identifying the predetermined character string; and the printer performing printing based only on the data received after the identified predetermined character string. A method for transmitting and receiving print data between a host and a printer, the method comprising:
【請求項11】 ホストコンピュータが読取り可能なプ
ログラムを記録した記録媒体において、ホストにおいて
印刷ジョブが発生した場合にプリンタが解釈可能な形式
の印刷データを前記印刷ジョブを含めて生成するプログ
ラムであって、前記印刷ジョブの先頭にプリンタが識別
可能な所定の文字列を付加する処理を実行するプログラ
ムを記録したことを特徴とする記録媒体。
11. A recording medium storing a program readable by a host computer, wherein when a print job occurs in the host, the program generates print data in a format interpretable by a printer including the print job. And a program for executing a process of adding a predetermined character string identifiable by a printer to the head of the print job.
【請求項12】 プリンタ内のCPUが読取り可能なプ
ログラムを記録した記録媒体であって、 所定の文字列のみを検索しながらホストから印刷データ
を受信する処理と、 前記所定の文字列を識別することなく受信したデータを
消去する処理と、 前記所定の文字列を識別する処理と、 前記所定の文字列を識別した以降に受信したデータを解
析しイメージデータに展開した上で印刷を実行する処理
とをプリンタに実行させるプログラムを記録したことを
特徴とする記録媒体。
12. A recording medium on which a program readable by a CPU in a printer is recorded, a process of receiving print data from a host while searching for only a predetermined character string, and identifying the predetermined character string. Erasing received data without identifying the character string; identifying the predetermined character string; analyzing data received after identifying the predetermined character string, developing the image data into image data, and executing printing A program for causing a printer to execute the above.
JP11099483A 1999-04-06 1999-04-06 Printer and printing system Withdrawn JP2000289297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11099483A JP2000289297A (en) 1999-04-06 1999-04-06 Printer and printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11099483A JP2000289297A (en) 1999-04-06 1999-04-06 Printer and printing system

Publications (1)

Publication Number Publication Date
JP2000289297A true JP2000289297A (en) 2000-10-17

Family

ID=14248565

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11099483A Withdrawn JP2000289297A (en) 1999-04-06 1999-04-06 Printer and printing system

Country Status (1)

Country Link
JP (1) JP2000289297A (en)

Similar Documents

Publication Publication Date Title
JP2000289297A (en) Printer and printing system
JP3235545B2 (en) Printing system
JP2004284259A (en) Image forming apparatus and its method
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP3284457B2 (en) Printer
JP2002244821A (en) Method of printing by using print server, print server, program and recording medium
JPH11321036A (en) Image-processing apparatus and its control method
JP2002248840A (en) Printing controller, method for processing data and storage medium
JP2002091716A (en) Device and method for controlling printing
JPH1097395A (en) Print controller, print control method for printer device, and storage medium stored with computer-readable program
JP2005122224A (en) External electronic storage medium having virtual information processing device function and virtual printing device function
KR20010019455A (en) Method for management of history in the printer
JP3046478B2 (en) Printing apparatus and printing method
JP3774703B2 (en) Printing apparatus, control method, storage medium
JP2001047706A (en) Imaging system in network environment
KR100341785B1 (en) Method for printing subscription of document
JP2001325081A (en) Print data cache system
JP3711431B2 (en) Printing apparatus, printing apparatus control method, and information recording medium
JP2006123261A (en) Printing apparatus and printing method
JP2002370409A (en) Print system, print control method, program and storage medium
KR100544165B1 (en) Method for changing registered information of printer in printer driver
JP2002370429A (en) Recorder, method of controlling recording thereof and network recording system
JPH11180004A (en) Image forming apparatus
JP2001022542A (en) Data controller, printer, and print system
KR20010018369A (en) Method for re-printing of document

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071010

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071208

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20071228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081021

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20081209