JP2844538B2 - Printer control device - Google Patents

Printer control device

Info

Publication number
JP2844538B2
JP2844538B2 JP1304989A JP30498989A JP2844538B2 JP 2844538 B2 JP2844538 B2 JP 2844538B2 JP 1304989 A JP1304989 A JP 1304989A JP 30498989 A JP30498989 A JP 30498989A JP 2844538 B2 JP2844538 B2 JP 2844538B2
Authority
JP
Japan
Prior art keywords
data
software
buffer
host computer
input buffer
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.)
Expired - Lifetime
Application number
JP1304989A
Other languages
Japanese (ja)
Other versions
JPH03166620A (en
Inventor
睦夫 下前
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP1304989A priority Critical patent/JP2844538B2/en
Publication of JPH03166620A publication Critical patent/JPH03166620A/en
Application granted granted Critical
Publication of JP2844538B2 publication Critical patent/JP2844538B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はレーザプリンタ等のプリンタ制御装置、特
にソフトウエア・チェンジ要求後のデータロスの防止に
関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control device such as a laser printer, and more particularly to prevention of data loss after a software change request.

[従来の技術] 従来複数の異種プリンタでサポートされていたコンピ
ュータネットワーク上のものを、できるだけ少数のプリ
ンタでカバーするために異種プリンタのそれぞれのコマ
ンドをソフトウエア・チェンジという方法で行なうこと
が意図されている。
2. Description of the Related Art In order to cover a computer network conventionally supported by a plurality of different types of printers with as few printers as possible, it is intended to execute each command of each type of different type of printer by a software change method. ing.

従来のプリンタ制御装置においてはホストコンピュー
タとの通信コマンドによりソフトウエアを変える機能は
なく、プリンタ本体に付属するオペレーションパネル等
によりソフトウエアの変更を行なっていた。また、近年
通信コマンドによりソフトウエア・チェンジが行なわれ
るようになったが、この場合も指定されたソフトウエア
のみで長時間又は1個の文書を作成することしかできな
かった。
In a conventional printer control device, there is no function of changing software by a communication command with a host computer, and the software is changed by an operation panel or the like attached to the printer body. In recent years, software change has been performed by a communication command. In this case, however, only a specified software can be used to create only one document for a long time.

しかしながら、現在の文書作成においては、プリンタ
制御装置内の異種の処理ソフトウエアを利用して1つの
文書を作成することや、ネットワーク上につながれた1
台のプリンタを利用して多種のアプリケーションを使用
できることが望まれている。この場合、レーザプリンタ
等に異種のソフトウエア用データ列がソフトウエア・チ
ェンジコマンドを区切りとして、連続してホストインタ
ーフェースを経由して送られて来る。
However, in the current document creation, one document is created by using different kinds of processing software in the printer control device, and one document is connected to a network.
It is desired that various applications can be used by using one printer. In this case, different types of software data strings are successively sent to the laser printer or the like via the host interface with software change commands as delimiters.

このようなデータ列が送られるレーザプリンタ等のイ
ンプットバッファ制御は、ホストコンピュータから受信
したデータを即時解釈・実行するコマンドデータ、例え
ばソフトウエアにより異なるがシステムリセットコマン
ドやステイタス要求コマンド等と、コマンドに続くその
他のデータ,印字用のテキストデータ,イメージデータ
等とに分離する。そして、コマンドデータは即時解釈・
実行し、コマンドデータ以外のデータはいったんインプ
ットバファに格納してからプリンタの印刷速度に合せて
次の制御へ送り出すようにしている。また、ソフトエア
・チェンジ要求コマンドは通常即時解釈されず、インプ
ットバッファに格納される。何故なら、ソフトウエア・
チェンジ要求コマンド以前にインプットバッファに入れ
られたデータはソフトウエア・チェンジ以前の異種のソ
フトウエア用のデータ例であるためソフトウエア・チェ
ンジ前に処理すべきである。このため、ソフトウエア・
チェンジ要求コマンドも通常データと同様にインプット
バッファに入れられる。
The input buffer control of a laser printer or the like to which such a data string is sent includes command data for immediately interpreting and executing data received from the host computer, such as a system reset command or a status request command that differs depending on the software, and a command. Then, it is separated into other data, text data for printing, image data, and the like. The command data is interpreted immediately.
After execution, data other than the command data is temporarily stored in the input buffer and then sent to the next control in accordance with the printing speed of the printer. The software change request command is not usually immediately interpreted, but is stored in the input buffer. Because the software
The data put in the input buffer before the change request command is an example of data for different kinds of software before the software change, and should be processed before the software change. For this reason, software
The change request command is also stored in the input buffer like normal data.

このインプットバッファに格納されているデータをイ
ンタプリタで逐次読み出して解釈しながら実行している
ときに、ソフトウエア・チェンジ要求コマンドを認識す
ると、指定されたソフトウエアの初期化ルーチンへジャ
ンプし、変更されたソフトウエアに全体の制御をゆだね
る。そして、新たなソフトウエアはシステムを初期化し
た後、ホストコンピュータとの通信作業を開始してプリ
ント動作を行なう。
When a software change request command is recognized while the data stored in the input buffer is sequentially read and interpreted by the interpreter and executed, the program jumps to the designated software initialization routine and changes. Entrust the entire control to the software. Then, the new software initializes the system, starts communication with the host computer, and performs a printing operation.

[発明が解決しようとする課題] 上記レーザプリンタ等のインプットバッファ制御にお
いて、インプットバッファに格納されたソフトウエア・
チェンジ要求コマンドを認識してシステムを初期化する
際、インプットバッファも初期化してしまう。このた
め、変換前のソフトウエアによってインプットバッファ
に格納されたソフトウエア・チェンジ要求コマンド後の
データも消されてしまい、データロスになってしまうと
いう不具合があった。
[Problem to be Solved by the Invention] In the input buffer control of the laser printer or the like, software stored in the input buffer
When recognizing a change request command and initializing the system, the input buffer is also initialized. For this reason, the data after the software change request command stored in the input buffer by the software before conversion is erased, resulting in a data loss.

この不具合を解消するために、ホストコンピュータ側
にバッファを設けたりして、ソフトウエア・チェンジ要
求コマンド送出直後のデータ送出に遅延時間を設定し、
プリンタ制御装置のソフトウエア・チェンジが完了後に
データ通信を再開するような方法が採られているものも
ある。
In order to solve this problem, a buffer is provided on the host computer side, and a delay time is set for data transmission immediately after transmitting the software change request command,
In some cases, a method of resuming data communication after a software change of the printer control device is completed is adopted.

しかしながら、ホスト側にバッファを設ける方法は使
用するプリンタのソフトウエア・チェンジ要求コマンド
を認識する手段と、ソフトウエア・チェンジ時の待ち時
間制御手段等をホスト側に付加することが必要になり、
ホスト側のシステム構築がわずらわしくなる。また上記
のような手段をホスト側に講じられないものも多くあ
り、データロスの不具合を完全に解消することは困難で
あった。
However, the method of providing a buffer on the host side requires that a means for recognizing a software change request command of a printer to be used and a means for controlling a waiting time at the time of software change be added to the host side.
The system construction on the host side becomes troublesome. In many cases, the above measures cannot be taken on the host side, and it has been difficult to completely eliminate the problem of data loss.

そこで、ソフトウエア・チェンジの際のデータロス対
策をプリンタ内で行なうことが必要になるが、従来はそ
の対策をプリンタ内で行なうことができなかった。その
理由は、即時処理コマンド等はインプットバッファに
入れられず、ソフトウエア・チェンジ要求コマンドがイ
ンプットバッファに格納されることと、ソフトウエア
・チェンジ直後のシステム初期化とともにインプットバ
ッファも初期化されてしまうことによる。後者の理由に
よる不都合は、インプットバッファ領域を前もって異な
るソフトウエア毎に限定し、ソフトウエア・チェンジ後
もそのまま利用できるようにすることで解決することが
できる。しかしながら前者の理由による不都合は単純に
は解決することができない。
Therefore, it is necessary to take measures against data loss at the time of software change in the printer, but conventionally, such measures could not be taken in the printer. The reason is that the immediate processing command and the like are not put in the input buffer, the software change request command is stored in the input buffer, and the input buffer is also initialized together with the system initialization immediately after the software change. It depends. The latter inconvenience can be solved by limiting the input buffer area for each different software in advance so that it can be used as it is even after the software change. However, the inconvenience due to the former reason cannot be simply solved.

すなわち、インプットバッファに格納されたデータを
逐次読み出し制御展開するルーチンがソフトウエア・チ
ェンジ要求コマンドを認識するまではソフトウエア・チ
ェンジが実行される前のソフトウエアによって即時処理
コマンドが実行される。このため、ソフトウエア・チェ
ンジ要求コマンドを受信後に送られたデータが、ソフト
ウエア・チェンジ後のソフトウエアでは即時処理すべき
でなく通常処理用のデータである場合、このデータがソ
フトウエア・チェンジ前のソフトウエアにより即時処理
されてデータロスとなる可能性がある。最も顕著な例と
しては、ソフトウエア・チェンジ要求コマンドの後にイ
メージデータ転送がある場合である。イメージデータは
あらゆるデータコードが予測されるため、イメージデー
タ転送コマンドは即時処理コマンドと同等の処理を受
け、それに続くイメージデータ分だけは即時処理を行な
わない。即時処理コマンドやイメージデータ転送コマン
ドを各ソフトウエアで統一できれば良いが、既存のプリ
ンタのエミュレーションとして使用されるソフトウエア
では統一することは不可能である。このためソフトウエ
ア・チェンジ前と後のソフトウエアでイメージデータで
あるかどうかの認識が異なった場合、ソフトウエア・チ
ェンジ後のソフトウエア用のイメージデータがソフトウ
エア・チェンジ前のソフトウエアにより即時処理され、
結果的にデータロスとなり得る。
That is, until the routine for sequentially reading and developing the data stored in the input buffer and recognizing the software change request command recognizes the software change request command, the software immediately before executing the software change executes the immediate processing command. For this reason, if the data sent after receiving the software change request command should not be processed immediately by the software after the software change, but is data for normal processing, this data is used before the software change. May be immediately processed by this software and result in data loss. The most prominent example is when there is an image data transfer following a software change request command. Since all data codes are predicted for the image data, the image data transfer command receives the same processing as the immediate processing command, and the subsequent image data is not immediately processed. It is sufficient that the immediate processing command and the image data transfer command can be unified by each software, but it is impossible to unify by the software used as the emulation of the existing printer. Therefore, if the software before and after the software change has different recognition of image data, the image data for the software after the software change is immediately processed by the software before the software change. And
As a result, data loss may occur.

このデータロスを解消するために即時処理コマンドも
インプットバッファに格納したり、インプットバッファ
制御の処理ルーチンを各ソフトウエア分だけ持つことも
考えられるが、プログラムが膨大になるという短所があ
った。
In order to eliminate the data loss, it is conceivable to store an immediate processing command in the input buffer or to have a processing routine for input buffer control for each software, but there is a disadvantage that the program becomes enormous.

この発明はかかる短所を解決するためになされたもの
であり、ホスト側にバッファを付加することなしにソフ
トウエア・チェンジの際のデータロスを無くすることが
できるプリンタ制御装置を得ることを目的とするもので
ある。
SUMMARY OF THE INVENTION The present invention has been made in order to solve such a disadvantage, and an object of the present invention is to provide a printer control device capable of eliminating data loss at the time of software change without adding a buffer to a host. Is what you do.

[課題を解決するための手段] この発明に係るプリンタ制御装置は、ソフトウエア・
チェンジ要求があったときに、ホストコンピュータに送
信ストップ要求が行なわれてからホストコンピュータが
実際にデータ送信を中断するまでの間にホストコンピュ
ータから連続して送られるデータ列を格納する補助バッ
ファを備え、ソフトウエア・チェンジ要求を区切りとし
て処理されるデータを分離することを特徴とする。
[Means for Solving the Problems] A printer control device according to the present invention comprises software
An auxiliary buffer for storing a data string continuously transmitted from the host computer after a transmission stop request is made to the host computer when the change request is made and before the host computer actually interrupts data transmission; The data to be processed is separated by setting a software change request as a delimiter.

[作用] この発明においては、ソフトウエア・チェンジ要求コ
マンドがプリンタに送られた後に送られるデータを補助
バッファに格納し、ソフトウエア・チェンジ要求コマン
ドを認識してシステムを初期化し、インプットバッファ
も初期化するときに補助バッファに格納したデータを保
存し、ソフトウエア・チェンジ要求を区切りとして処理
されるデータを分離する。
[Operation] In the present invention, data sent after the software change request command is sent to the printer is stored in the auxiliary buffer, the system is recognized upon recognition of the software change request command, and the input buffer is also initialized. During the conversion, the data stored in the auxiliary buffer is stored, and the data to be processed is separated by a software change request as a delimiter.

[実施例] 第1図はこの発明の一実施例に係るレーザプリンタの
構成を示すブロック図である。図において、1は文字情
報や画像情報を送り出すホストコンピュータ、2はレー
ザプリンタの制御部、3は制御部2により生成された画
像イメージ情報を用紙にプリントするエンジン、4はフ
ォントカード等に記録された外部情報を入力する外部情
報入力部である。
FIG. 1 is a block diagram showing a configuration of a laser printer according to an embodiment of the present invention. In the figure, 1 is a host computer for sending character information and image information, 2 is a control unit of a laser printer, 3 is an engine for printing image image information generated by the control unit 2 on paper, and 4 is recorded on a font card or the like. And an external information input unit for inputting external information.

制御部2はホストインターフェース5,CPU6,プログラ
ムROM7,RAM8,フオントRAM9,不揮発性RAM10,変倍処理部1
1,操作パネル12,オプションインターフェース13,ビデオ
制御部14及びエンジン制御部15を有し、各々CPUバス16
により接続されている。また、ビデオ制御部14とエンジ
ン制御部15はレーザプリンタビデオインターフェース
(以下、LPVIという)17を介してエンジン3に接続され
ている。
The control unit 2 includes a host interface 5, a CPU 6, a program ROM 7, a RAM 8, a font RAM 9, a nonvolatile RAM 10, and a scaling unit 1.
1, an operation panel 12, an option interface 13, a video control unit 14, and an engine control unit 15.
Connected by The video controller 14 and the engine controller 15 are connected to the engine 3 via a laser printer video interface (hereinafter, LPVI) 17.

ホストインターフェース5はホストコンピュータ1と
制御部2間を接続するためのインターフェースであり、
RS232C,セントロニクス仕様準拠等からなる。
The host interface 5 is an interface for connecting the host computer 1 and the control unit 2,
Consists of RS232C, Centronics specifications, etc.

CPU6は16ビット又は36ビットからなりデータ処理部61
やイメージ情報処理部62を有し、制御部2全体を統括的
に制御する中央処理装置である。プログラムROM7はCPU6
を制御するためのマイクロコードが格納されている。
The CPU 6 consists of 16 bits or 36 bits, and the data processing unit 61
And a central processing unit having an image information processing unit 62 and generally controlling the entire control unit 2. Program ROM7 is CPU6
The microcode for controlling is stored.

RAM8は大容量のランダムアクセスメモリであり、シス
テムメモリ81,リングバッファからなるインプットバッ
ファ82,補助バッファ83と、ページバッファ84,フォント
ファイル85,マイクロファイル86,イメージファイル87,
プリントコントロールファイル88及びビデオバッファ89
等に使用される。
The RAM 8 is a large-capacity random access memory, and includes a system memory 81, an input buffer 82 including a ring buffer, an auxiliary buffer 83, a page buffer 84, a font file 85, a micro file 86, an image file 87,
Print control file 88 and video buffer 89
Used for etc.

フォントROM9はホストコンピュータ1からホストイン
ターフェース3を経由して送られてくる文字情報をイメ
ージ情報に変換するためのフォントデータが格納されて
いる。不揮発性RAM10は電源オン後のプリンタの動作状
態を制御するための情報が格納されている。
The font ROM 9 stores font data for converting character information transmitted from the host computer 1 via the host interface 3 into image information. The nonvolatile RAM 10 stores information for controlling the operation state of the printer after the power is turned on.

変倍処理部11は画像イメージ情報の拡大縮小処理を行
なう。ビデオ制御部14はRAM8のビデオバッファにCPU6の
バス幅(16ビット又は32ビット)で記憶されている画像
データをシリアルに変換し、LPVI17を経由してエンジン
3に送る。エンジン制御部15はLPVI17を経由し双方向シ
リアル信号によりエンジン3の状態を検知したり、コマ
ンドを送り出してエンジン3を制御する。
The scaling unit 11 performs scaling processing of the image information. The video controller 14 converts the image data stored in the video buffer of the RAM 8 with the bus width (16 bits or 32 bits) of the CPU 6 into serial data, and sends it to the engine 3 via the LPVI 17. The engine control unit 15 detects the state of the engine 3 by a bidirectional serial signal via the LPVI 17 and sends a command to control the engine 3.

まず、上記のように構成されたレーザプリンタの動作
の概要を、第2図のデータの処理の流れに対する各メモ
リの関係を示すブロック図を参照して説明する。
First, the outline of the operation of the laser printer configured as described above will be described with reference to the block diagram in FIG. 2 showing the relationship between each memory and the flow of data processing.

ホストコンピュータ1から連続して送られるデータ列
はホストインターフェース5のデータ格納処理部51を経
由して直接又は補助バッファ83に一時的に格納された
後、インプットバッファ82に蓄えられる。このインプッ
トバッファ82に格納されたデータはCPU6のデータ処理部
61により取り出され、データの種類に応じてRAM8のメモ
リエリアに登録される。すなわち、用紙搬送経路の指
定,プリント枚数指定等のプリントシーケンス制御情報
はプリントコントロールファイル88に登録し、印字デー
タと印字位置の関係等ページのレイアウト情報はページ
バッファ84に、イメージ情報はイメージファイル87に、
ダウンロードフォントはフォントファイル85に、オーバ
レイ情報等はマイクロファイル86にそれぞれ登録され
る。
A data string continuously transmitted from the host computer 1 is stored directly in the auxiliary buffer 83 via the data storage processing unit 51 of the host interface 5 or temporarily in the auxiliary buffer 83, and then stored in the input buffer 82. The data stored in the input buffer 82 is stored in the data processing unit of the CPU 6.
The data is extracted by 61 and registered in the memory area of the RAM 8 according to the type of data. That is, the print sequence control information such as the specification of the paper transport path and the number of prints is registered in the print control file 88, the page layout information such as the relationship between the print data and the print position is stored in the page buffer 84, and the image information is stored in the image file 87. To
Downloaded fonts are registered in a font file 85, and overlay information and the like are registered in a microfile 86, respectively.

CPU6のイメージ情報処理部62はページバッファ84の内
容にしたがってイメージファイル87,フオントファイル8
5及びフォントROM9の内容を読み出してビデオバッファ8
9に展開する。このビデオバッファ89に1頁分の印字デ
ータが展開されるとエンジン制御部15はプリントコント
ロールファイル88の内容にしたがいLPVI17を経由してエ
ンジン3を起動する。エンジン3が画像記録タイミング
になるとビデオバッファ89に展開されたビデオデータを
ビデオ制御部12とLPVI17を経由してエンジン3に送り、
送られたビデオデータをエンジン3で印字用紙に印字す
る。
The image information processing unit 62 of the CPU 6 stores an image file 87 and a font file 8 in accordance with the contents of the page buffer 84.
Read out the contents of 5 and font ROM 9 and video buffer 8
Expand to 9. When one page of print data is developed in the video buffer 89, the engine control unit 15 activates the engine 3 via the LPVI 17 according to the contents of the print control file 88. When the engine 3 reaches the image recording timing, the video data expanded in the video buffer 89 is sent to the engine 3 via the video control unit 12 and the LPVI 17,
The sent video data is printed on printing paper by the engine 3.

次に、上記処理動作においてインプットバッファ82と
補助バッファ83にデータを格納する場合の動作と、イン
プットバッファ82と補助バッファ83とからデータを読み
出す場合の動作を第3図〜第5図のフローチャートを参
照して説明する。
Next, the operation when storing data in the input buffer 82 and the auxiliary buffer 83 and the operation when reading data from the input buffer 82 and the auxiliary buffer 83 in the above processing operation will be described with reference to the flowcharts of FIGS. It will be described with reference to FIG.

データ格納処理部51でデータを格納するときは、第3
図に示すように、ホストコンピュータ1から制御部2に
データが送られてくると、ホストインターフェース5の
データ格納処理部51が起動され(ステップS301)、デー
タ送信毎にホストコンピュータ1にプリンタの制御部2
からデータ送信ストップ要求中か否かを判断する(ステ
ップS302)。そして、データ送信ストップ要求中でない
ときには、送られたデータが現在実行中のソフトウエア
に対するソフトウエア・チェンジ要求コマンドに一致し
ているかどうかをデータ格納処理部51で判断する、(ス
テップS303)。送られたデータがソフトウエア・チェン
ジ要求コマンドであると認識ずるとホストコンピュータ
1に対してデータ送信ストップ要求を出す(ステップS3
04)。
When storing data in the data storage processing unit 51, the third
As shown in the figure, when data is sent from the host computer 1 to the control unit 2, the data storage processing unit 51 of the host interface 5 is activated (step S301), and the host computer 1 controls the printer every time data is transmitted. Part 2
Then, it is determined whether or not a data transmission stop request is being made (step S302). When the data transmission stop request is not being made, the data storage processing unit 51 determines whether or not the sent data matches the software change request command for the software currently being executed (step S303). When the transmitted data is recognized as a software change request command, a data transmission stop request is issued to the host computer 1 (step S3).
04).

また、ホストコンピュータ1にデータ送信ストップ要
求中であるときには、そのストップ要求がソフトウエア
・チェンジ要求によるものであるか否かを判断する(ス
テップS305)。そして、データ送信ストップ要求中でな
く送られたデータがソフトウエア・チェンジ要求コマン
ドでないとき、あるいはデータ送信ストップ要求中であ
るが、そのストップ要求がソフトウエア・チェンジ要求
によるものでないときには、送られたデータが即時処理
コマンドか否かを判断し(ステップS306)、即時処理コ
マンドのときには即時処理を実行する(ステップS30
7)。また、即時処理コマンドでないときにはインプッ
トバッファ(82)の記憶容量に空きがあるか否かを判断
し(ステップS308)、インプットバッファ(82)の記憶
容量に空きがあるときには送られたデータをインプット
バッファ(82)に格納する(ステップS309)。またイン
プットバッファ(82)に空きがないときには、ホストコ
ンピュータ1にデータ送信ストップ要求を出す(ステッ
プS310)。
If the data transmission stop request is being issued to the host computer 1, it is determined whether or not the stop request is due to a software change request (step S305). If the data sent is not a data transmission stop request and the transmitted data is not a software change request command, or if the data transmission stop request is being made but the stop request is not due to a software change request, the It is determined whether the data is an immediate processing command (step S306), and if the data is an immediate processing command, immediate processing is executed (step S30).
7). If it is not an immediate processing command, it is determined whether or not there is free space in the storage capacity of the input buffer (82) (step S308). (82) (step S309). If there is no free space in the input buffer (82), a data transmission stop request is issued to the host computer 1 (step S310).

一方、ホストコンピュータ1に対するデータ送信スト
ップ要求がソフトウエア・チェンジ要求によるものであ
るときには、データ送信ストップ要求後送られるデータ
を補助バッファ83に格納する(ステップS311)。このた
め、補助バッファ83はホストコンピュータ1にデータ送
信ストップ要求を行なってから、ホストコンピュータ1
がその要求を認識して実際にデータ送信を中断するまで
の間に送ってしまうデータを格納できる容量を最低限有
している。すなわち、セントロニクスインターフェース
のようにハードウエアによりデータ送信ストップを制御
できるインターフェースにおいてはホストコンピュータ
1側の応答は速いが、RS232Cのプロトコル制御の場合、
要求に対する応答に遅延があるため、これに対処するた
めである。
On the other hand, if the data transmission stop request to the host computer 1 is due to a software change request, the data sent after the data transmission stop request is stored in the auxiliary buffer 83 (step S311). For this reason, the auxiliary buffer 83 issues a data transmission stop request to the host computer 1 and then transmits the data to the host computer 1.
Has at least a capacity to store the data to be sent until the request is recognized and the data transmission is actually interrupted. That is, in an interface such as a Centronics interface in which data transmission stop can be controlled by hardware, the response on the host computer 1 side is fast, but in the case of RS232C protocol control,
This is to deal with the delay in the response to the request.

このようにして格納されたデータをCPU6のデータ処理
部61がインプットバッファ82から順次取り出して解釈・
実行する。
The data stored in this manner is sequentially taken out of the input buffer 82 by the data processing unit 61 of the CPU 6 and interpreted.
Execute.

この場合は、第4図のフローチャートに示すように、
まずデータ処理部61はインプットバッファ82にデータが
有るか否かを判断する(ステップS41)。この判断の結
果、インプトバッファ82にデータが有るときには、イン
プットバッファ82から順次データを読み出す(ステップ
S43)。この読み出したデータがソフトウエア・チェン
ジ要求コマンドか否かを判断し(ステップS44)、ソフ
トウエア・チェンジ要求でないときには、各データによ
る処理を実行する(ステップS45)。また、読み出した
データがソフトウエア・チェンジ要求であるときには、
全制御を要求されたソフトウエアに移行する(ステップ
S45)。そして、移行先のソフトウエアは補助バッファ8
3の未処理データを保護しながらシステムを初期化し、
インプットバッファ82も初期化する(ステップS46)。
その後、データ処理部61は再びインプットバッファ82の
データ有無を判断し(ステップS41)、インプットバッ
ファ82にデータが無いことを確認してから補助バッファ
処理ルーチンに移行し(ステップS47)、補助バッファ8
3内のデータをインプットバッファ82に転送して上記処
理と同様な処理を行なう。そして、すべてデータの解釈
・実行が完了したら処理を終了する(ステップS48)。
In this case, as shown in the flowchart of FIG.
First, the data processing section 61 determines whether or not there is data in the input buffer 82 (step S41). If the result of this determination is that there is data in the input buffer 82, the data is sequentially read from the input buffer 82 (step
S43). It is determined whether or not the read data is a software change request command (step S44). If the read data is not a software change request, a process based on each data is executed (step S45). When the read data is a software change request,
Transfer all control to requested software (step
S45). The destination software is the auxiliary buffer 8.
Initialize the system while protecting the 3 raw data,
The input buffer 82 is also initialized (step S46).
Thereafter, the data processing section 61 again determines whether or not there is data in the input buffer 82 (step S41), confirms that there is no data in the input buffer 82, and then shifts to an auxiliary buffer processing routine (step S47).
The data in 3 is transferred to the input buffer 82 and the same processing as the above processing is performed. Then, when the interpretation and execution of all the data are completed, the process ends (step S48).

上記補助バッファ処理ルーチンは第5図に示すフロー
チャートにより行なわれる。データ処理部61がインプッ
トバッファ82内のデータを読み出し解釈・実行している
ときに、ソフトウエア・チェンジ要求コマンドを認識す
ると、システムを初期化した後に、補助バッファ83にデ
ータが有るか否かを判断する(ステップS51)。補助バ
ッファ83にデータが有るときには補助バッファ83からデ
ータを読み出す(ステップS52)。この読み出したデー
タが即時処理データか否かを判断し(ステップS53)、
即時処理データであるときには即時処理を行ない(ステ
ップS54)、その後引続き補助バッファ83からデータを
読み出す。また、補助バッファ83から読み出したデータ
が即時処理データでないときには、そのデータをインプ
ットバッファに格納する(ステップS55)。そして、補
助バッファ83内のデータをすべて読み出した後に処理を
終了する。(ステップS56)。一方、補助バッファ83に
データが無いときには、ホストコンピュータ1にデータ
送信ストップ要求中が否かを判断し(ステップS57)、
データ送信ストップ要求中であったら、ホストコンピュ
ータ1にデータ送信可能を通知して処理を終了する(ス
テップS58)。
The auxiliary buffer processing routine is performed according to the flowchart shown in FIG. When the data processing unit 61 recognizes the software change request command while reading and interpreting / executing the data in the input buffer 82, after initializing the system, it is determined whether or not there is data in the auxiliary buffer 83. A judgment is made (step S51). When there is data in the auxiliary buffer 83, the data is read from the auxiliary buffer 83 (step S52). It is determined whether or not the read data is immediate processing data (step S53).
If the data is immediate processing data, immediate processing is performed (step S54), and data is subsequently read from the auxiliary buffer 83. If the data read from the auxiliary buffer 83 is not immediate processing data, the data is stored in the input buffer (step S55). Then, the process ends after reading all the data in the auxiliary buffer 83. (Step S56). On the other hand, when there is no data in the auxiliary buffer 83, it is determined whether a data transmission stop request is being issued to the host computer 1 (step S57).
If the data transmission stop request is being issued, the host computer 1 is notified that data transmission is possible, and the process ends (step S58).

[発明の効果] この発明は以上説明したように、ソフトウエア・チェ
ンジ要求コマンドがプリンタに送られた後に送られるデ
ータを補助バッファに格納し、ソフトウエア・チェンジ
要求コマンドを認識してシステムを初期化してインプッ
トバッファも初期化するときに補助バッファに格納した
したデータを保存するようにしたので、ソフトウエア・
チェンジ要求コマンドを区切りとして処理されるデータ
を分離することができるから、ソフトウエア・チェンジ
後のソフトウエア用データをソフトウエア・チェンジ前
のソフトウエアが即時処理することにより発生するデー
タロスを防止することができる。
[Effect of the Invention] As described above, the present invention stores data sent after a software change request command is sent to a printer in an auxiliary buffer, recognizes the software change request command, and initializes the system. The data stored in the auxiliary buffer is saved when the input buffer is initialized and the input buffer is initialized.
Since the data to be processed can be separated by the change request command as a delimiter, the data loss caused by the immediate processing of the software data after the software change by the software before the software change is prevented. be able to.

また、プリンタ制御装置のRAMに補助バッファを追加
し、この補助バッファの処理プログラムを追加するだけ
ですむから、従来のソフトウエアプログラムの全体構造
をくずすことなしにデータロスを回避することができ
る。
Further, since it is only necessary to add an auxiliary buffer to the RAM of the printer control device and add a processing program for the auxiliary buffer, data loss can be avoided without breaking the entire structure of the conventional software program.

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

第1図はこの発明の実施例に係るレーザプリンタの構成
を示すブロック図、第2図は上記実施例のデータ処理の
流れに対する各メモリの関係を示すブロック図、第3図
は上記実施例によりインプットバッファと補助バッファ
にデータ格納するときの動作を示すフローチャート、第
4図はインプットバッファからデータを読み出すときの
動作を示すフローチャート、第5図は補助バッファから
データを読み出すときの動作を示すフローチャートであ
る。 1……ホストコンピュータ、2……制御部、3……エン
ジン、5……ホストインターフェース、51……データ格
納処理部、6……CPU、61……データ処理部、8……RA
M、82……インプットバッファ、83……補助バッファ。
FIG. 1 is a block diagram showing the configuration of a laser printer according to an embodiment of the present invention, FIG. 2 is a block diagram showing the relationship of each memory to the flow of data processing in the above embodiment, and FIG. 4 is a flowchart showing an operation when data is stored in the input buffer and the auxiliary buffer, FIG. 4 is a flowchart showing an operation when reading data from the input buffer, and FIG. 5 is a flowchart showing an operation when reading data from the auxiliary buffer. is there. DESCRIPTION OF SYMBOLS 1 ... Host computer, 2 ... Control part, 3 ... Engine, 5 ... Host interface, 51 ... Data storage processing part, 6 ... CPU, 61 ... Data processing part, 8 ... RA
M, 82: Input buffer, 83: Auxiliary buffer.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ホストコンピュータからの連続したデータ
列を1つのホストインターフェースを介して受信してイ
ンプットバッファに一時格納し、格納したデータから画
像を作成して印字するプリンタ制御装置において、 ソフトウエア・チェンジ要求があったときに、ホストコ
ンピュータに送信ストップ要求が行われてからホストコ
ンピュータがデータ送信を中断するまでの間にホストコ
ンピュータから送られるデータを格納する補助バッファ
を備え、ソフトウエア・チェンジ要求を区切りとして処
理されるデータを分離することを特徴とするプリンタ制
御装置。
1. A printer control device which receives a continuous data string from a host computer via one host interface, temporarily stores the data string in an input buffer, and creates and prints an image from the stored data. A software change request including an auxiliary buffer for storing data sent from the host computer after a transmission stop request is made to the host computer until the host computer interrupts data transmission when a change request is issued; A printer control device that separates data to be processed by using as a delimiter.
JP1304989A 1989-11-25 1989-11-25 Printer control device Expired - Lifetime JP2844538B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1304989A JP2844538B2 (en) 1989-11-25 1989-11-25 Printer control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1304989A JP2844538B2 (en) 1989-11-25 1989-11-25 Printer control device

Publications (2)

Publication Number Publication Date
JPH03166620A JPH03166620A (en) 1991-07-18
JP2844538B2 true JP2844538B2 (en) 1999-01-06

Family

ID=17939734

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1304989A Expired - Lifetime JP2844538B2 (en) 1989-11-25 1989-11-25 Printer control device

Country Status (1)

Country Link
JP (1) JP2844538B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001319069A (en) * 2000-05-12 2001-11-16 Melco Inc File conversion system, web server, file converting method, and medium with recorded file converting program

Also Published As

Publication number Publication date
JPH03166620A (en) 1991-07-18

Similar Documents

Publication Publication Date Title
EP0716371B1 (en) Device having automatic OS selecting function
US5706410A (en) Printing system having control language command and raster pixel image data processing capability
JPH10285421A (en) Printer color-processing mode automatic controller, method receiver system and storage device therefor
JP3209102B2 (en) Print system, printer driver and printer
JPH05318840A (en) Image forming device and formation thereof
US5313565A (en) Output processing system permitting efficient loading of media resource information used in an output device
JP2844538B2 (en) Printer control device
JPH05318838A (en) Image forming device and formation thereof
US6567183B1 (en) Output apparatus and output method
JP2773632B2 (en) Printing system
JP3689445B2 (en) Printing apparatus and system, and control method
JP2000187579A (en) Printing system, printer, printing control method and recording medium
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP3209911B2 (en) Print control device and data processing method of print control device
JP3202841B2 (en) Printing apparatus, printing system, and printing control method
JP3129679B2 (en) Printer
JP3284457B2 (en) Printer
JPH11296317A (en) Data processor and control method for the same
JP2871274B2 (en) Data processing method in printer
JP3024362B2 (en) Printer
JP3024363B2 (en) Printer
JP3073921B2 (en) Print control device and data processing method of print control device
KR100565792B1 (en) Font data recording method for print
JPH0930088A (en) Printer device and control method thereof
JP3008716B2 (en) Printing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees