JPH11188929A - Recorder and recording medium - Google Patents

Recorder and recording medium

Info

Publication number
JPH11188929A
JPH11188929A JP9358398A JP35839897A JPH11188929A JP H11188929 A JPH11188929 A JP H11188929A JP 9358398 A JP9358398 A JP 9358398A JP 35839897 A JP35839897 A JP 35839897A JP H11188929 A JPH11188929 A JP H11188929A
Authority
JP
Japan
Prior art keywords
data
buffer
receiving means
received
receiving
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
JP9358398A
Other languages
Japanese (ja)
Inventor
Yasuyuki Onizuka
康如 鬼塚
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP9358398A priority Critical patent/JPH11188929A/en
Publication of JPH11188929A publication Critical patent/JPH11188929A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent communication between a recorder and a host from being terminated in ECP mode by dividing the storage area of a buffer means into a plurality of subareas when a data is inputted to at least a plurality of data receiving means simultaneously thereby ensuring the area for storing the receiving data for each data receiving means. SOLUTION: When a receiving data has been latched at an ECP data receiving section 300, a switch section 302 allots a preset buffer size to a butter control section 304 where one receiving buffer 304 is divided into two buffers and a data is stored in the divided buffer. Using one of two divided receiving butters, a selected data receiving section stores data sequentially which is eventually taken out and recorded. Consequently, data can not be received in ECP mode and a host computer times out thus eliminating termination of communication between the host computer and the recorder through an interface.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ホストコンピュー
ター(以下「ホスト」)等の外部機器より文字データを
入力して記録媒体に記録する記録装置、記憶媒体に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording apparatus and a recording medium for inputting character data from an external device such as a host computer (hereinafter, "host") and recording the data on a recording medium.

【0002】[0002]

【従来の技術】従来、記録装置に於いて、ホストからの
印刷データ、及び制御データのインターフェイスとして
セントロニクス社の8ビットパラレルインターフェイス
が広く用いられている。 ところがホストからのデータ
受信だけでなく、周辺機器からの情報をホスト側に送信
できるインターフェイスとして双方向セントロニクスが
IEEE1284規格として一般に普及しつつある。こ
のIEEE1284にはいくつかのモードがありその中
のひとつとしてECPモードがある。このモードでは、
8ビットパラレルデータを双方向で高速データ送受信可
能である。
2. Description of the Related Art Conventionally, in a recording apparatus, an 8-bit parallel interface of Centronics, Inc. has been widely used as an interface for print data from a host and control data. However, bidirectional Centronics, which is an interface capable of transmitting information from a peripheral device to the host as well as receiving data from the host, is becoming popular as the IEEE1284 standard. The IEEE 1284 has several modes, one of which is the ECP mode. In this mode,
8-bit parallel data can be transmitted and received at high speed in both directions.

【0003】またホストからのデータ受信ではハンドシ
ェイクに定められた時間以内にデータを受信するように
規定されており規定時間内にREADY信号を送出しな
いとホスト側はターミネイトできる仕様となっている。
つまり従来からのセントロニクスインターフェイス(こ
こではコンパチブルモード)のように記録装置側でなん
らかの事象が発生してもBUSY状態にすることができ
ない。記録装置が複数のインターフェイスを装備し、一
方のインターフェイスでデータを受け付け、他方のイン
ターフェイスに対して、BUSY状態とした場合でも、
BUSYにする前にホストからデータが送られて来ると
記録装置はそのデータを受信できず、ECPモードでの
インターフェイスではホストとの通信はタイムアウトと
なりターミネイトしてしまう。
[0003] Further, in data reception from the host, it is specified that data is received within a time specified in a handshake, and the host can terminate if a READY signal is not transmitted within a specified time.
That is, even if any event occurs on the recording device side as in the conventional Centronics interface (here, compatible mode), the BUSY state cannot be set. Even if the recording device is equipped with a plurality of interfaces, one interface accepts data, and the other interface is in a BUSY state,
If data is sent from the host before BUSY, the recording device cannot receive the data, and communication with the host is timed out and terminated in the interface in the ECP mode.

【0004】またECPモードで、記録装置側からデー
タをホストに送信する場合は、記録装置からリバースリ
クエスト信号をホストに送出し、記録装置での状態をホ
ストに知らせることが可能となっている。しかし、すで
にホストからデータが送られた場合は、その後、リバー
スリクエスト信号を記録装置からホストに対して送出し
てもホスト側では既に送信データが準備されており、リ
バースリクエストを送出後であっても、記録装置はホス
トからのデータを受信可能でなければならない。
In the ECP mode, when data is transmitted from the recording device to the host, a reverse request signal is transmitted from the recording device to the host, so that the status of the recording device can be notified to the host. However, if data has already been sent from the host, even if a reverse request signal is subsequently sent from the recording device to the host, the host has already prepared the send data, and after sending the reverse request, Also, the recording device must be able to receive data from the host.

【0005】ところが、このような場合、記録装置側は
同時に複数のインターフェイスからのデータ受信に対し
て1バイトは受信できてもその後に続くデータは受信で
きず結果的にホストはECPモードのインターフェース
を介した記録装置との通信をターミネイトするという問
題があった。
However, in such a case, the recording apparatus side can receive one byte for data reception from a plurality of interfaces at the same time, but cannot receive subsequent data, and as a result, the host switches to the ECP mode interface. There is a problem of terminating the communication with the recording device via the PC.

【0006】[0006]

【発明が解決しようとする課題】上記従来例では次のよ
うな欠点があった。すなわち、ホスト、外部装置等から
記録装置に対して同時にデータが送られた場合、ECP
モードでのデータ受信が他のインターフェイスよりタイ
ミングが遅れて受信された場合は、記録装置は次のデー
タを受信することができない。この場合ホストはタイム
アウトを監視しECPモードから抜け強制的にターミネ
イトしてしまう。記録装置側ではホストに対してBUS
Yを知らせるためのステータスを送信するためにリバー
スリクエスト信号を送るがホストはすぐにはデータ送信
を止めることはせずデータを送ろうとする。
The above prior art has the following drawbacks. That is, when data is simultaneously sent from the host and the external device to the recording device, the ECP
If the data reception in the mode is received later than the other interfaces, the recording device cannot receive the next data. In this case, the host monitors the timeout, exits from the ECP mode, and forcibly terminates. BUS to the host on the recording device side
A reverse request signal is sent to send a status to signal Y, but the host does not stop sending data immediately and tries to send data.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
に、本発明は以下の構成からなる。
Means for Solving the Problems To solve the above problems, the present invention comprises the following constitutions.

【0008】すなわち、ホストコンピュータ等の外部機
器からキャラクターデータ及びイメージデータを画像デ
ータとして受信して印刷する記録装置は、前記ホストコ
ンピュータから、前記画像データを受信するための、少
なくとも2つのデータ受信手段と、何れのデータ受信手
段の受信データを優先するかを決定するスイッチ手段
と、前記受信された画像データ格納のための領域を確保
し、前記受信データを格納するバッファ制御手段と、前
記少なくとも2つのデータ受信手段に対して、共有であ
る受信データを格納するためのバッファ手段とを備え、
前記バッファ制御手段は、同時に前記少なくとも2つの
データ受信手段にデータが入力された場合に、前記バッ
ファ手段の格納領域を2つに分割して、それぞれの受信
データを格納するための領域を確保する。
That is, a recording apparatus for receiving character data and image data as image data from an external device such as a host computer and printing the image data includes at least two data receiving means for receiving the image data from the host computer. A switch for deciding which data receiving unit gives priority to the received data; a buffer control unit for securing an area for storing the received image data and storing the received data; Buffer means for storing shared reception data for one data reception means,
The buffer control unit divides a storage area of the buffer unit into two when data is simultaneously input to the at least two data reception units, and secures an area for storing each received data. .

【0009】また、前記スイッチ手段は、前記少なくと
も2つのデータ受信手段に同時にデータ入力された場合
は、予め設定された優先順位に基づいて前記データ受信
手段を切替える。
When data is simultaneously input to the at least two data receiving means, the switch means switches the data receiving means based on a preset priority.

【0010】また、前記優先順位は、前記少なくとも2
つのデータ受信手段に受信データがラッチされる前後関
係をもって決定される。
[0010] Further, the priority order is at least two.
It is determined based on the context in which the received data is latched by the two data receiving means.

【0011】また、前記スイッチ手段に選択された、前
記一のデータ受信手段からのデータ格納処理中は、前記
他の受信手段をBUSY状態として、前記ホストコンピ
ュータに報知し、前記格納処理の完了に基づき、前記他
の受信手段をREADY状態として、前記ホストコンピ
ュータからのデータ受信を可能とする。
In addition, during the data storage processing from the one data receiving means selected by the switch means, the other receiving means is notified to the host computer as a BUSY state, and upon completion of the storing processing, Based on this, the other receiving means is set to the READY state to enable data reception from the host computer.

【0012】また、前記バッファ制御手段は、前記受信
データの容量に応じて、可変に前記受信バッファ領域を
分割する。
Further, the buffer control means variably divides the reception buffer area according to a capacity of the reception data.

【0013】また、前記少なくとも2つのデータ受信手
段のうちの1つは、IEEE1284規格BiCenn
toronicsに基づいたパラレルインターフェイス
であって、前記ホストコンピュータとのデータ送受信を
IEEE1284規格のECPモードを用いて行なう。
[0013] One of the at least two data receiving means may be an IEEE1284 standard BiCenn.
This is a parallel interface based on toronics, and transmits and receives data to and from the host computer using the ECP mode of the IEEE1284 standard.

【0014】また、前記データ受信手段のうちの他の1
つは、RS422規格のシリアルインターフェイスであ
る。
Further, another one of the data receiving means is provided.
One is an RS422 standard serial interface.

【0015】また、前記少なくとも2つのデータ受信手
段のうち、一の受信手段であるIEEE1284規格の
ECPモードでデータを受信する場合であって、前記他
の受信手段が、前記スイッチ手段に選択され、かつEC
Pモードでのインターフェイスよりデータが受信された
場合はホストコンピュータに対して、リバースリクエス
ト要求を送信する。
[0015] Further, when receiving data in the ECP mode of IEEE1284 standard, which is one of the at least two data receiving means, the other receiving means is selected by the switch means, And EC
When data is received from the interface in the P mode, a reverse request request is transmitted to the host computer.

【0016】また、前記バッファ制御部は、予め設定さ
れたバッファサイズを残して前記バッファ手段のバッフ
ァフル量とする。
Further, the buffer control unit sets the buffer full amount of the buffer means while leaving a preset buffer size.

【0017】また、IEEE1284規格のECPモー
ドでデータを受信する場合であって、ECPモードでデ
ータが受信されバッファフルになった場合、ホストコン
ピュータに対して、リバースリクエスト要求を送信す
る。
When data is received in the ECP mode of the IEEE1284 standard, and data is received in the ECP mode and the buffer becomes full, a reverse request request is transmitted to the host computer.

【0018】また、前記ホストコンピュータから、前記
画像データを受信するための、少なくとも2つのデータ
受信手段と、何れのデータ受信手段の受信データを優先
するかを決定するスイッチ手段と、前記受信された画像
データ格納のための領域を確保し、前記受信データを格
納するバッファ制御手段と、前記少なくとも2つのデー
タ受信手段に対して、共有である受信データを格納する
ためのバッファ手段とを備え、前記バッファ制御手段
は、同時に前記少なくとも2つのデータ受信手段にデー
タが入力された場合に、前記バッファ手段の格納領域を
2つに分割して、それぞれの受信データを格納するため
の領域確保をコンピュータに機能させるためのプログラ
ムを記録したコンピュータ読取り可能な記録媒体を備え
る。。
Also, at least two data receiving means for receiving the image data from the host computer, a switch means for determining which data receiving means has priority on the received data, and A buffer control means for securing an area for storing image data and storing the received data, and a buffer means for storing shared received data for the at least two data receiving means, The buffer control means divides the storage area of the buffer means into two when data is input to the at least two data receiving means at the same time, and reserves an area for storing each received data to the computer. A computer-readable recording medium on which a program for causing the program to function is recorded is provided. .

【0019】[0019]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を詳細に説明する。図2は本発明の一実施形態で
ある記録装置電気ブロック図である。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 2 is an electric block diagram of a recording apparatus according to an embodiment of the present invention.

【0020】図2に於いて100は記録装置に接続され
るホストコンピュータ、102は本記録装置に於ける動
作、処理を実行管理するためのCPU、103はCPU
102の制御プログラムや文字フォント等各種データを
格納するためのROMであり、104は各種データを一
時保存するためのRAMであり、ホストからの受信デー
タを格納する受信バッファはこのRAMに存在する。
In FIG. 2, 100 is a host computer connected to the recording apparatus, 102 is a CPU for executing and managing operations and processing in the recording apparatus, and 103 is a CPU.
Reference numeral 102 denotes a ROM for storing various data such as a control program and character fonts. Reference numeral 104 denotes a RAM for temporarily storing various data. A reception buffer for storing data received from the host is provided in the RAM.

【0021】101はホストコンピュータ等の外部機器
との間でIEEE1284規格による双方向セントロニ
クスのプロトコル通信制御を行なうものと、異なるイン
ターフェイス、例えばシリアルインターフェイス等の複
数のインターフェイスの通信制御を司るインターフェイ
ス部である。このインターフェイス部については後述す
る。108は記録装置の設定状態、動作モード、エラー
メッセージを表示する表示部である。
An interface unit 101 controls bidirectional Centronics protocol communication with an external device such as a host computer in accordance with the IEEE1284 standard, and an interface unit that controls communication of a plurality of interfaces such as different interfaces, for example, a serial interface. . This interface unit will be described later. Reference numeral 108 denotes a display unit that displays a setting state, an operation mode, and an error message of the recording apparatus.

【0022】105は記録装置が記録媒体に画像を記録
するためにCPU102から制御信号をヘッドドライバ
に供給し、記録ヘッドに画像データを転送して印字する
ためのHEAD駆動部。
Reference numeral 105 denotes a HEAD driving unit for supplying a control signal from the CPU 102 to a head driver so that the recording apparatus records an image on a recording medium, and transferring and printing image data to a recording head.

【0023】キャリッジモータドライバとキャリッジモ
ータのCR駆動部107、紙送りモータドライバと紙送
りモータのLF駆動部106はCPU102からそれぞ
れのドライバに制御信号を供給し、印字を記録媒体に行
なう際に必要な記録ヘッドの水平方向移動と垂直方向移
動を促す制御系である。
The carriage motor driver and the CR drive unit 107 of the carriage motor, and the paper feed motor driver and the LF drive unit 106 of the paper feed motor supply control signals from the CPU 102 to the respective drivers, and are necessary for printing on a recording medium. This is a control system that prompts the horizontal and vertical movement of the recording head.

【0024】次に本発明の制御手順を同様に図2を用い
て説明する。まずインターフェイス部101によって入
力されたデータはRAM104に一時格納され、格納に
基づき、ROM103に格納してあるプログラムはCP
U102によりコマンド、イメージデータ、キャラクタ
ーコードの解析を行なう。
Next, the control procedure of the present invention will be described with reference to FIG. First, the data input by the interface unit 101 is temporarily stored in the RAM 104, and based on the storage, the program stored in the ROM 103 is a CP.
The command, image data, and character code are analyzed by U102.

【0025】キャラクターコードの場合、予め格納して
あるフォントデータをROM103より読みだし、順次
104のRAMに格納する。1ライン分の展開が終了す
るか、もしくは外部機器のホストコンピュータより印字
命令が入力された時点でCR駆動部107をドライブ
し、RAM104からHEAD駆動部105に印字デー
タが転送され、印字が実行される。印字終了後、LF駆
動部106がドライブされ一連のシーケンスが終了す
る。
In the case of a character code, font data stored in advance is read from the ROM 103 and sequentially stored in the RAM 104. When the development of one line is completed or when a print command is input from the host computer of the external device, the CR drive unit 107 is driven, the print data is transferred from the RAM 104 to the HEAD drive unit 105, and printing is performed. You. After printing, the LF drive unit 106 is driven, and a series of sequences is completed.

【0026】次に上記インターフェイス部101の詳細
を図3に基づき説明する。
Next, the details of the interface unit 101 will be described with reference to FIG.

【0027】インタフェース部101は2つのデータ受
信部から構成される。300はIEEE1284規格E
CPモードでデータを受信するECPデータ受信部、3
01は第2のデータ受信部で、シリアルデータを受信す
るシリアルデータ受信部である。
The interface unit 101 includes two data receiving units. 300 is IEEE1284 standard E
ECP data receiving unit for receiving data in CP mode, 3
A second data receiving unit 01 is a serial data receiving unit that receives serial data.

【0028】302は異なる2つのデータ受信部のどち
らのデータ受信を優先するかを決定するためのスイッチ
部である。
Reference numeral 302 denotes a switch unit for determining which of the two different data receiving units has priority on data reception.

【0029】IEEE1284双方向セントロニクスの
ECPモードに於けるデータ受信タイミング規格の一部
を図1に示す。データ受信時はHostClk信号とP
eriphAck信号のハンドシェイクで行なわれる。
Tr,Th,Tlはそれぞれのタイミングに於ける時間
規定である。これより、記録装置側ではACK信号は3
5mS以内に応答しなければならない。記録装置で何ら
かの事象が発生し、ホストに対して状態を知らせる場合
にはリバースリクエスト信号をActiveにする。こ
のリバースリクエスト信号はフォワード転送中、つまり
ホストコンピュータから記録装置へのデータ送信中のみ
制御可能な信号である。フォワード転送のときであれば
とくにタイミングの規定はない。但しこの信号は要求信
号であってもホストが転送方向の最終的決定権をもつた
め、記録装置はこの要求信号を出したとしてもホストか
らのデータは受信できなければならない。
FIG. 1 shows a part of a data reception timing standard in the ECP mode of IEEE1284 bidirectional Centronics. When receiving data, the HostClk signal and P
This is performed by a handshake of the eriphAck signal.
Tr, Th, and Tl are time regulations at each timing. Thus, the ACK signal is 3 on the recording device side.
It must respond within 5 ms. When a certain event occurs in the recording device and the status is notified to the host, the reverse request signal is set to Active. This reverse request signal is a signal that can be controlled only during forward transfer, that is, during data transmission from the host computer to the recording device. There is no particular timing specification for forward transfer. However, even if this signal is a request signal, the host has the final right to determine the transfer direction, so that the recording apparatus must be able to receive data from the host even if it issues this request signal.

【0030】このため、図3に示すように、少なくとも
2つのインターフェイスを持ち、その1つがIEEE規
格1284ECPモードでのインターフェイスを持つと
き、同時に他のインターフェイスとデータ受信が競合し
た場合にもホストからデータが受信できるように受信バ
ッファをこの場合に限り2つに分割しホストからのデー
タ受信が最低限受信できるバッファサイズとする。また
同様にバッファフルの時にもホストから既に送られてい
るデータサイズ分は受信できるバッファ構成とする。バ
ッファ制御部303は、受信したデータの属性とデータ
量とから受信バッファの領域サイズを分割するか否か、
また領域サイズを指定するための制御を行なう。304
は受信データを格納する受信バッファである。
Therefore, as shown in FIG. 3, when the host has at least two interfaces, one of which has an interface in the IEEE standard 1284 ECP mode, and at the same time the data reception conflicts with another interface, the host transmits data. In this case, the reception buffer is divided into two so that the reception buffer can receive the data from the host at least. Similarly, when the buffer is full, the buffer is configured to be able to receive the data size already sent from the host. The buffer control unit 303 determines whether to divide the area size of the reception buffer from the attribute of the received data and the data amount,
Control for designating the area size is also performed. 304
Is a reception buffer for storing reception data.

【0031】通常2つのデータ受信部(300、30
1)は接続されたそれぞれのホストコンピュータに対し
てはREADY状態である。ここで2つのデータ受信部
からデータが受信された場合、ECPデータ受信部30
0、シリアルデータ受信部301のそれぞれで受信され
たデータはラッチされる。実際には全く同時にラッチさ
れる場合はまれでどちらかが早くラッチされる。全く同
時にラッチされた場合は予め設定された優先順位に従い
スイッチ部302で制御される。スイッチ部302はE
PCデータ受信部300、シリアルデータ受信部301
で早くラッチされた受信データをバッファ制御部303
を介して、受信バッファ304に格納する。このときI
EEE1284が選択されなかった場合、リバースリク
エスト要求をホストコンピュータに通知する。既にホス
トコンピュータからデータが送信されている場合、つま
りECPデータ受信部300に受信データがラッチされ
ていると、スイッチ部302は予め設定されいるバッフ
ァサイズをバッファ制御部304に割り当て、1つの受
信バッファ304を2つに分割し、分割された受信バッ
ファにデータを格納する。この分割された受信バッファ
にはデータが格納されるのみで記録装置での処理は行わ
れない。ホストコンピュータはECPモードでの送信を
している場合、記録装置からのリバース要求を受けても
データはそのまま送ることは可能である。そのためホス
トコンピュータがリバース要求を受けてデータ送信を止
めるまでの間は記録装置では受信できるバッファ構成し
ておく。選択されたデータ受信部は2つの分割されたバ
ッファの一方を使用しデータを順次格納され、格納され
たデータは順次取り出し記録される。
Usually, two data receiving units (300, 30)
1) is a READY state for each connected host computer. Here, when data is received from the two data receiving units, the ECP data receiving unit 30
0, the data received by each of the serial data receiving units 301 are latched. Actually, in the rare case where latches are performed at exactly the same time, one of them is latched earlier. When latches are performed at exactly the same time, control is performed by the switch unit 302 in accordance with a preset priority. The switch section 302 is E
PC data receiving unit 300, serial data receiving unit 301
The received data latched earlier by the buffer controller 303
, And is stored in the reception buffer 304. Then I
If EEE1284 is not selected, a reverse request request is notified to the host computer. If data has already been transmitted from the host computer, that is, if the received data has been latched in the ECP data receiving unit 300, the switch unit 302 assigns a preset buffer size to the buffer control unit 304, and 304 is divided into two, and data is stored in the divided reception buffers. Only the data is stored in the divided reception buffer, and the processing in the recording device is not performed. If the host computer is transmitting in the ECP mode, the data can be transmitted as it is even if a reverse request is received from the recording device. For this reason, the recording device has a buffer structure that can receive the data until the host computer receives the reverse request and stops data transmission. The selected data receiving unit sequentially stores data using one of the two divided buffers, and the stored data is sequentially retrieved and recorded.

【0032】選択されたインターフェイスからの送信が
終了し、受信バッファが空になったのちにもう一方イン
ターフェイスをREADYにし、データ受信可能とす
る。また分割された受信バッファは分割を解除して1つ
の受信バッファに戻す。このとき既に格納されている受
信データの先頭を一つになった受信バッファの読みだし
先頭とする。設定され直した受信バッファの先頭からデ
ータを取り出し順次処理される。
After the transmission from the selected interface is completed and the reception buffer becomes empty, the other interface is set to READY to enable data reception. The divided reception buffer is released from division and returned to one reception buffer. At this time, the head of the received data already stored is set as the read head of the united reception buffer. Data is taken out from the head of the newly set receiving buffer and sequentially processed.

【0033】<実施形態の効果>以上説明したように少
なくとも2つのインターフェイスを持つ記録装置では同
時にデータが受信された場合でも、このときに限り受信
バッファを分割することで両データを受信し、格納する
ことが可能となる。従って、ECPモードで、受信でき
なくなりホストコンピュータがタイムアウトとなり、ホ
ストコンピュータと記録装置の通信がターミネイトする
ことが解消される。
<Effects of the Embodiment> As described above, even if data is received simultaneously in a recording apparatus having at least two interfaces, the data is received and stored by dividing the reception buffer only at this time. It is possible to do. Therefore, in the ECP mode, the reception cannot be performed, the host computer times out, and the communication between the host computer and the recording device is terminated.

【0034】[0034]

【他の実施形態】なお、本発明は、複数の機器(例えば
ホストコンピュータ,インタフェイス機器,リーダ,プ
リンタなど)から構成されるシステムに適用しても、一
つの機器からなる装置(例えば、複写機,ファクシミリ
装置など)に適用してもよい。
[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus (for example, a copying machine) Machine, facsimile machine, etc.).

【0035】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
An object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU) of the system or apparatus.
And MPU) read and execute the program code stored in the storage medium.

【0036】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0037】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0038】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0039】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0040】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、図4のメモリマップ例に示す各モジュールを
記憶媒体に格納することになる。すなわち、少なくとも
「スイッチモジュール401」「バッファ制御モジュー
ル402」および「ECPデータ受信モジュール40
3」「シリアルデータ受信モジュール404」の各モジ
ュールのプログラムコードを記憶媒体に格納すればよ
い。
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts. Each module shown will be stored in a storage medium. That is, at least “switch module 401”, “buffer control module 402” and “ECP data reception module 40”
3) The program code of each module of the “serial data receiving module 404” may be stored in the storage medium.

【0041】[0041]

【発明の効果】ホストコンピュータ等の外部機器からキ
ャラクターデータ及びイメージデータを画像データとし
て受信して印刷する記録装置は、少なくとも2つのデー
タ受信手段によりホストコンピュータからの画像データ
の受信が可能となる。
The recording apparatus which receives character data and image data as image data from an external device such as a host computer and prints the image data can receive image data from the host computer by at least two data receiving means.

【0042】何れのデータ受信手段の受信データを優先
するかはスイッチ手段により決定される。受信された画
像データは、バッファ制御手段により、バッファ手段で
ある格納のための領域が確保される。格納領域は、少な
くとも2つの受信手段に対して共有であり、データ受信
が競合した場合は、バッファ制御手段は、共有の格納領
域を分割して、それぞれの受信データを格納するための
領域を確保する。
Which of the data receiving means has priority on the received data is determined by the switch means. For the received image data, an area for storing, which is a buffer means, is secured by the buffer control means. The storage area is shared by at least two receiving means, and when data reception conflicts, the buffer control means divides the shared storage area and secures an area for storing each received data. I do.

【0043】従って、少なくとも2つのインターフェイ
スを持つ記録装置では同時にデータが受信された場合で
も、このときに限り受信バッファを分割することで両デ
ータを受信し、格納することが可能となる。従って、E
CPモードで、受信できなくなりホストコンピュータが
タイムアウトとなり、ホストコンピュータと記録装置の
通信がターミネイトすることが解消される。
Therefore, in a recording apparatus having at least two interfaces, even when data is received at the same time, it is possible to receive and store both data by dividing the reception buffer only at this time. Therefore, E
In the CP mode, the reception cannot be performed, the host computer times out, and the termination of communication between the host computer and the recording device is eliminated.

【0044】[0044]

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

【図1】ECPモードに於けるデータ受信タイミングを
示す図である。
FIG. 1 is a diagram showing data reception timing in an ECP mode.

【図2】記録装置の構成を示す電気ブロック図である。FIG. 2 is an electric block diagram illustrating a configuration of a recording apparatus.

【図3】インターフェイス制御部を示すブロック図であ
る。
FIG. 3 is a block diagram illustrating an interface control unit.

【図4】本発明にかかる実施形態における記録媒体のメ
モリマップを示す図である。
FIG. 4 is a diagram showing a memory map of a recording medium in the embodiment according to the present invention.

【符号の説明】 100 ホストコンピュータ 101 インターフェイス制御部 102 CPU 105 HEAD駆動部 106 LF駆動部 107 CR駆動部 108 表示部 300 ECPデータ受信部 301 シリアルデータ受信部 302 スイッチ部 303 バッファ制御部DESCRIPTION OF SYMBOLS 100 Host computer 101 Interface control unit 102 CPU 105 HEAD drive unit 106 LF drive unit 107 CR drive unit 108 Display unit 300 ECP data reception unit 301 Serial data reception unit 302 Switch unit 303 Buffer control unit

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータ等の外部機器からキ
ャラクターデータ及びイメージデータを画像データとし
て受信して印刷する記録装置であって、 前記ホストコンピュータから、前記画像データを受信す
るための、少なくとも2つのデータ受信手段と、 何れのデータ受信手段の受信データを優先するかを決定
するスイッチ手段と、 前記受信された画像データ格納のための領域を確保し、
前記受信データを格納するバッファ制御手段と、 前記少なくとも2つのデータ受信手段に対して、共有で
ある受信データを格納するためのバッファ手段とを備
え、 前記バッファ制御手段は、同時に前記少なくとも2つの
データ受信手段にデータが入力された場合に、前記バッ
ファ手段の格納領域を2つに分割して、それぞれの受信
データを格納するための領域を確保することを特徴とす
る記録装置。
1. A recording device for receiving character data and image data as image data from an external device such as a host computer and printing the image data, wherein at least two data for receiving the image data from the host computer are provided. Receiving means, switch means for determining which data receiving means of the received data should be prioritized, and securing an area for storing the received image data,
Buffer control means for storing the received data; and buffer means for storing received data that is shared with respect to the at least two data receiving means, wherein the buffer control means simultaneously operates the at least two data sets. A recording apparatus wherein, when data is input to a receiving means, a storage area of the buffer means is divided into two to secure an area for storing each received data.
【請求項2】 前記スイッチ手段は、前記少なくとも2
つのデータ受信手段に同時にデータ入力された場合は、
予め設定された優先順位に基づいて前記データ受信手段
を切替えることを特徴とする請求項1記載の記録装置。
2. The switch means according to claim 1, wherein
If data is input to two data receiving means at the same time,
2. The recording apparatus according to claim 1, wherein the data receiving unit is switched based on a priority set in advance.
【請求項3】 前記優先順位は、前記少なくとも2つの
データ受信手段に受信データがラッチされる前後関係を
もって決定されることを特徴とする請求項1記載の記録
装置。
3. The recording apparatus according to claim 1, wherein the priority order is determined based on a context of reception data latched by the at least two data reception units.
【請求項4】 前記スイッチ手段に選択された、前記一
のデータ受信手段からのデータ格納処理中は、前記他の
受信手段をBUSY状態として、前記ホストコンピュー
タに報知し、前記格納処理の完了に基づき、前記他の受
信手段をREADY状態として、前記ホストコンピュー
タからのデータ受信を可能とすることを特徴とする請求
項1記載の記録装置。
4. During the data storage processing from the one data receiving means selected by the switch means, the other receiving means is notified to the host computer as a BUSY state, and upon completion of the storing processing, 2. The recording apparatus according to claim 1, wherein said other receiving means is set to a READY state to enable data reception from said host computer.
【請求項5】 前記バッファ制御手段は、前記受信デー
タの容量に応じて、可変に前記受信バッファ領域を分割
することを特徴とする請求項1記載の記録装置。
5. The recording apparatus according to claim 1, wherein the buffer control unit variably divides the reception buffer area according to a capacity of the reception data.
【請求項6】 前記少なくとも2つのデータ受信手段の
うちの1つは、IEEE1284規格BiCennto
ronicsに基づいたパラレルインターフェイスであ
って、前記ホストコンピュータとのデータ送受信をIE
EE1284規格のECPモードを用いて行なうことを
特徴とする請求項1記載の記録装置。
6. The method according to claim 1, wherein one of said at least two data receiving means is an IEEE1284 standard BiCento.
a parallel interface based on Ronics, which transmits and receives data to and from the host computer through an IE.
2. The recording apparatus according to claim 1, wherein the recording is performed using the ECP mode of the EE1284 standard.
【請求項7】前記データ受信手段のうちの他の1つは、
RS422規格のシリアルインターフェイスであること
を特徴とする請求項1記載の記録装置。
7. Another one of the data receiving means,
2. The recording apparatus according to claim 1, wherein the recording apparatus is a serial interface conforming to the RS422 standard.
【請求項8】 前記少なくとも2つのデータ受信手段の
うち、一の受信手段であるIEEE1284規格のEC
Pモードでデータを受信する場合であって、前記他の受
信手段が、前記スイッチ手段に選択され、かつECPモ
ードでのインターフェイスよりデータが受信された場合
はホストコンピュータに対して、リバースリクエスト要
求を送信することを特徴とする請求項1記載の記録装
置。
8. An IEEE 1284 standard EC which is one of the at least two data receiving means.
In the case of receiving data in the P mode, if the other receiving means is selected by the switch means and data is received from the interface in the ECP mode, a reverse request request is sent to the host computer. 2. The recording apparatus according to claim 1, wherein the recording apparatus transmits.
【請求項9】 前記バッファ制御部は、予め設定された
バッファサイズを残して前記バッファ手段のバッファフ
ル量とすることを特徴とする請求項1記載の記録装置。
9. The recording apparatus according to claim 1, wherein the buffer control unit sets a buffer full amount of the buffer unit while leaving a preset buffer size.
【請求項10】 IEEE1284規格のECPモード
でデータを受信する場合であって、ECPモードでデー
タが受信されバッファフルになった場合、ホストコンピ
ュータに対して、リバースリクエスト要求を送信するこ
とを特徴とする請求項1記載の記録装置。
10. When data is received in the ECP mode of the IEEE1284 standard, and when data is received in the ECP mode and the buffer becomes full, a reverse request request is transmitted to the host computer. The recording apparatus according to claim 1, wherein:
【請求項11】前記ホストコンピュータから、前記画像
データを受信するための、少なくとも2つのデータ受信
手段と、 何れのデータ受信手段の受信データを優先するかを決定
するスイッチ手段と、 前記受信された画像データ格納のための領域を確保し、
前記受信データを格納するバッファ制御手段と、 前記少なくとも2つのデータ受信手段に対して、共有で
ある受信データを格納するためのバッファ手段とを備
え、 前記バッファ制御手段は、同時に前記少なくとも2つの
データ受信手段にデータが入力された場合に、前記バッ
ファ手段の格納領域を2つに分割して、それぞれの受信
データを格納するための領域確保をコンピュータに機能
させるためのプログラムを記録したコンピュータ読取り
可能な記録媒体。
11. At least two data receiving means for receiving the image data from the host computer, a switch means for determining which data receiving means has priority on the received data, and Secure an area for storing image data,
Buffer control means for storing the received data; and buffer means for storing received data that is shared with respect to the at least two data receiving means, wherein the buffer control means simultaneously operates the at least two data sets. When data is input to the receiving means, the storage area of the buffer means is divided into two parts, and a computer readable program recording a program for causing a computer to secure an area for storing each received data is recorded. Recording medium.
JP9358398A 1997-12-25 1997-12-25 Recorder and recording medium Withdrawn JPH11188929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9358398A JPH11188929A (en) 1997-12-25 1997-12-25 Recorder and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9358398A JPH11188929A (en) 1997-12-25 1997-12-25 Recorder and recording medium

Publications (1)

Publication Number Publication Date
JPH11188929A true JPH11188929A (en) 1999-07-13

Family

ID=18459092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9358398A Withdrawn JPH11188929A (en) 1997-12-25 1997-12-25 Recorder and recording medium

Country Status (1)

Country Link
JP (1) JPH11188929A (en)

Similar Documents

Publication Publication Date Title
US6249835B1 (en) System for converting print instruction into image data or print data based on whether a rasterization level is of a first level or a second level
US5450530A (en) High speed receiver/transmitter interface
US6359698B1 (en) Printing apparatus and printing control method for printing the smallest received job first
JP3769839B2 (en) Multifunctional parallel processing electronic device
JPH11272431A (en) Printing system and method for controlling the same system and medium
JP3707509B2 (en) Multifunctional parallel processing electronic device
JPH11188929A (en) Recorder and recording medium
JP3478519B2 (en) Printer device
JP2000280582A (en) Data-processing apparatus and method for processing data and recording medium with data-processing control program recorded
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP2860210B2 (en) Printing control device
JPH09284463A (en) Image output device and communication control method in it
JPH01103466A (en) Control in page-type printer device
JPH0664251A (en) Printing equipment and control method thereof
US7388684B2 (en) Image transfer apparatus
JP3258130B2 (en) Print control device and printer control method
JPH10124265A (en) Printer
JP2002358209A (en) Information processing method and device thereof
JP3442099B2 (en) Data transfer storage device
JPS6410860B2 (en)
JPH09233285A (en) Communication equipment, image formation device and method therefor
JPH11177650A (en) Data transfer device, peripheral equipment, data processing method for data transfer device and peripheral equipment and storage medium storing computer readable program
JP2002229925A (en) Data processing unit with multiple logical channel communication facility, data processor and recording device
JPH1091461A (en) Multifunction parallel processing electronic device
JPH0651920A (en) Control method for printer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050301