Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3226043B2 - Input / output control method and device - Google Patents
[go: Go Back, main page]

JP3226043B2 - Input / output control method and device - Google Patents

Input / output control method and device

Info

Publication number
JP3226043B2
JP3226043B2 JP23904790A JP23904790A JP3226043B2 JP 3226043 B2 JP3226043 B2 JP 3226043B2 JP 23904790 A JP23904790 A JP 23904790A JP 23904790 A JP23904790 A JP 23904790A JP 3226043 B2 JP3226043 B2 JP 3226043B2
Authority
JP
Japan
Prior art keywords
input
external device
output
key information
output control
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 - Fee Related
Application number
JP23904790A
Other languages
Japanese (ja)
Other versions
JPH04119420A (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.)
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 JP23904790A priority Critical patent/JP3226043B2/en
Publication of JPH04119420A publication Critical patent/JPH04119420A/en
Application granted granted Critical
Publication of JP3226043B2 publication Critical patent/JP3226043B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION 【産業上の利用分野】[Industrial applications]

本発明は、例えばホストコンピユータ等の外部機器と
入出力装置との間のインターフエースを制御する入出力
制御方法及び装置に関するものである。
The present invention relates to an input / output control method and apparatus for controlling an interface between an external device such as a host computer and an input / output device.

【従来の技術】[Prior art]

従来より、ホストコンピユータ(外部機器)と入出力
装置とを接続する接続方式には種々の方式がある。そし
て、このような接続方式の中、同一の方式を外部機器と
入出力装置とが採用している場合は、その通信手順に従
うことにより、外部機器と入出力装置との間で入出力デ
ータの転送を行うことができる。
Conventionally, there are various connection methods for connecting a host computer (external device) and an input / output device. If the external device and the input / output device adopt the same method among such connection methods, by following the communication procedure, the input / output data can be exchanged between the external device and the input / output device. Transfer can be performed.

【発明が解決しようとする課題】[Problems to be solved by the invention]

しかし逆に、ある外部機器には特定の入出力装置しか
接続したくない、或いはある入出力装置はある特定の外
部機器との間でしか、データの転送を行わないように設
定したい場合がある。 しかしながら上記従来例では、例えば信号解析装置な
どにより、実際に接続されて動作している、ある外部機
器と入出力装置との間の通信手順を測定し、例えば、他
の外部機器でその通信手順を模倣することにより、その
入出力装置を任意の他の外部機器に接続して、この外部
機器とその入出力装置との間でデータのやりとりを行う
ことができる。 一般に、ある種の入出力装置、例えばプリンタ等に
は、外部機器より受取るべき画像信号に制限をつけなけ
ればならないもの、或は制限をつける方が好ましいもの
がある。例えばシアン,マゼンタ,イエロー,ブラツク
の4色のトナーを用いて画像形成を行うカラープリンタ
等においては、外部機器より、全ての色を最高濃度でプ
リントするような画像信号が与えられ、そのデータに基
づいて印刷を行うと、プリンタの各部品の寿命を短くし
てまう場合がある。 このような制限事項には、ノウハウ的なものが多く、
一般的に外部には公開されないのがほとんどである。こ
のため、このような制限機能をもたない外部機器に前述
のカラープリンタ等を接続すると、カラープリンタによ
り常に最高濃度で画像を記録するようなデータが入力さ
れたり、プリンタに必要以上の負荷をかける等の事態が
発生する。これにより、プリンタの寿命が短くなつた
り、プリンタが故障する等の問題があつた。 本発明は上記従来例に鑑みてなされたもので、入出力
装置に接続できる外部機器を選択して、ある基準に従つ
た外部機器だけを接続できるようにした入出力制御方法
及び装置を提供することを目的とする。
However, on the contrary, there is a case where it is desired that only a specific input / output device is connected to a certain external device, or that a certain input / output device is set to transfer data only with a specific external device. . However, in the above-mentioned conventional example, for example, a signal analysis device or the like is used to measure a communication procedure between an external device and an input / output device that are actually connected and operating, and for example, the communication procedure is performed by another external device. By imitating, the input / output device can be connected to any other external device, and data can be exchanged between the external device and the input / output device. Generally, some types of input / output devices, such as printers, require that image signals to be received from an external device be restricted, or more desirable. For example, in a color printer or the like that forms an image using toners of four colors of cyan, magenta, yellow, and black, an image signal for printing all colors at the highest density is given from an external device. When printing is performed based on the above, the life of each component of the printer may be shortened. Many of these restrictions are know-how,
In general, it is rarely disclosed to the outside. For this reason, if the above-mentioned color printer or the like is connected to an external device that does not have such a restriction function, data for recording an image at the maximum density by the color printer is always input, or an unnecessary load is imposed on the printer. A situation such as wearing occurs. As a result, there have been problems such as shortening of the life of the printer and failure of the printer. The present invention has been made in view of the above conventional example, and provides an input / output control method and apparatus which select external devices that can be connected to an input / output device so that only external devices that comply with a certain standard can be connected. The purpose is to:

【課題を解決するための手段】[Means for Solving the Problems]

上記目的を達成するために本発明の入出力制御装置は
以下のような構成を備える。即ち、 画像メモリを含む外部機器と画像読取り又は印刷を行
う入出力装置との間のインターフェース仕様を確認する
ための入出力制御装置であって、 前記入出力装置から前記外部機器に対してキー情報を
転送する転送手段と、前記キー情報に基づいて前記外部
機器から前記入出力装置に転送される応答情報を受信す
る受信手段と、前記受信手段により受信された前記応答
情報に含まれる数値が、前記キー情報を基に所定の計算
式に基づいて計算された数値と一致するか否かを判定す
る判定手段と、前記判定手段による判定結果に応じて、
前記外部機器と前記入出力装置間の画像データの転送及
び、或は前記入出力装置における読取り動作又は印刷動
作の制御を行う制御手段と、 を有することを特徴とする。 また上記目的を達成するために本発明の入出力制御装
置は以下のような構成を備える。即ち、 画像メモリを含む外部機器と画像読取り又は印刷を行
う入出力装置との間のインターフェース仕様を確認する
ための入出力制御装置であって、 前記入出力装置から前記外部機器に対してキー情報を
転送する転送手段と、前記キー情報に基づいて前記外部
機器から前記入出力装置に転送される応答情報を受信す
る受信手段と、前記キー情報をもとに複数の回答情報を
算出する算出手段と、前記応答情報が前記複数の回答情
報のいずれと一致するかにより、前記入出力装置におけ
るデータ処理を変更する手段と、 を有することを特徴とする。 更に本発明の入出力制御方法は以下のような工程を備
える。即ち、 外部装置との間で画像データの入出力を行う画像処理
装置における入出力制御方法であって、 前記外部装置にキー情報を送信し、前記外部機器にお
いて前記キー情報に基づいて得られた応答情報を、前記
外部機器から受信し、前記受信した応答情報に従って前
記外部装置が正当なものであるか判定し、その判定結果
に応じて、前記画像データの入出力を制御することを特
徴とする。
In order to achieve the above object, an input / output control device of the present invention has the following configuration. That is, an input / output control device for confirming an interface specification between an external device including an image memory and an input / output device for reading or printing an image, wherein key information is transmitted from the input / output device to the external device. Transfer means for transferring, the receiving means for receiving response information transferred from the external device to the input / output device based on the key information, and a numerical value included in the response information received by the receiving means, Determining means for determining whether or not the numeric value calculated based on a predetermined formula based on the key information is determined, and according to a determination result by the determining means,
Control means for transferring image data between the external device and the input / output device and / or controlling a reading operation or a printing operation in the input / output device. In order to achieve the above object, an input / output control device of the present invention has the following configuration. That is, an input / output control device for confirming an interface specification between an external device including an image memory and an input / output device for reading or printing an image, wherein key information is transmitted from the input / output device to the external device. Transfer means for transferring the reply information, receiving means for receiving response information transferred from the external device to the input / output device based on the key information, and calculating means for calculating a plurality of pieces of response information based on the key information And means for changing data processing in the input / output device depending on which of the plurality of pieces of response information matches the response information. Further, the input / output control method of the present invention includes the following steps. That is, an input / output control method in an image processing apparatus that performs input / output of image data with an external device, wherein key information is transmitted to the external device, and the key information is obtained in the external device based on the key information. Receiving response information from the external device, determining whether the external device is valid according to the received response information, and controlling input / output of the image data according to the determination result. I do.

【作用】[Action]

以上の構成において、請求項1に記載の本願発明の入
出力制御装置によれば、入出力装置から外部機器に対し
てキー情報を転送し、そのキー情報に基づいて外部機器
から入出力装置に転送される応答情報を受信し、その受
信された応答情報に含まれる数値が、そのキー情報を基
に所定の計算式に基づいて計算された数値と一致するか
否かを判定し、その判定結果に応じて、外部機器と入出
力装置間の画像データの転送及び、或はその入出力装置
における読取り動作又は印刷動作の制御を行うように動
作する。 また請求項3に記載の入出力制御装置によれば、入出
力装置から外部機器に対してキー情報を転送し、そのキ
ー情報に基づいて外部機器から入出力装置に転送される
応答情報を受信すると、キー情報をもとに算出された複
数の回答情報のいずれと一致するかにより、その入出力
装置におけるデータ処理を変更するように動作する。 また請求項5に記載の入出力制御方法によれば、外部
装置にキー情報を送信し、その外部機器において、その
キー情報に基づいて得られた応答情報を、外部機器から
受信し、その受信した応答情報に従って外部装置が正当
なものであるか判定し、その判定結果に応じて、画像デ
ータの入出力を制御するように動作する。
In the above configuration, according to the input / output control device of the present invention, the key information is transferred from the input / output device to the external device, and the external device transmits the key information to the input / output device based on the key information. Receives the response information to be transferred, and determines whether a numerical value included in the received response information matches a numerical value calculated based on a predetermined calculation formula based on the key information. According to the result, the image data is transferred between the external device and the input / output device and / or the reading operation or the printing operation of the input / output device is controlled. According to the input / output control device of the third aspect, key information is transferred from the input / output device to the external device, and response information transferred from the external device to the input / output device is received based on the key information. Then, an operation is performed to change the data processing in the input / output device depending on which of the plurality of pieces of answer information calculated based on the key information matches. According to the input / output control method of the fifth aspect, the key information is transmitted to the external device, and the external device receives response information obtained based on the key information from the external device. It determines whether the external device is legitimate according to the response information, and operates to control the input and output of image data according to the determination result.

【実施例】【Example】

以下、添付図面を参照して本発明の好適な実施例を詳
細に説明する。 <第1の実施例> 第1図は本実施例のカラープリンタ2の概略構成を示
すブロツク図である。 このカラープリンタ2は、通信ライン12,13を介して
外部機器1に接続されている。そして、プリント実行時
には、画像ライン12を介して画像信号を受取つてプリン
トを実行する。この時、外部機器1より入力された画像
信号は、画像処理回路8,階調制御回路9を経てプリンタ
エンジン10に送られる。このプリンタエンジン10は何で
も良いが、例えば、この実施例では、キヤノン社製のカ
ラー複写機のプリンタ部であるとする。 この外部機器1より入力した画像信号は、垂直同期信
号VSYNC,水平同期信号HSYNCに同期したリアルタイムな
画像信号であり、このプリンタ2のインターフエース仕
様は、所謂ビデオ・インターフエース仕様となつてい
る。 CPU4は、プログラムROM5に格納されている制御プログ
ラムに基づいて各部の制御を実行している。41はCPU4に
内蔵されたタイマで、CPU4の指示に従つて後述するよう
に、所定時間毎にCPU4にタイマ割込みを発生している。
RAM6はCPU4の動作時、制御用の各種データを一時的に記
憶するためのもので、不図示のバツテリ等により、不揮
発にバツクアツプされている。61は後述するキー(Ke
y)コードを格納しているキーバツフア(Key)である。 7は制御用I/Oポートで、CPU4によりプリンタエンジ
ン10の各部のソレノイドやモータ等を制御するためのも
のである。また、3は外部通信回路で、CPU4が外部機器
1と通信を行うときに、通信手順の制御等を行う。この
実施例では、通信回路3により制御される通信手順を、
例えばRS232C通信手順としている。なお、RS232Cを用い
た通信手順は良く知られているので、そのプロトコル等
については特に説明しない。 <動作説明(第2図〜第4図)> 次に第2図〜第4図に示すフローチヤートを参照し
て、本実施例のカラープリンタ2の動作及びカラープリ
ンタ2と外部機器1との間のインターフエース制御につ
いて説明する。 第2図は、実施例のカラープリンタ2における動作を
示すフローチヤートで、この処理を実行するCPU4の制御
プログラムはROM5に記憶されている。 第2図において、まずカラープリンタ2の電源が投入
されるとステツプS1に進み、外部機器1の仕様をチエツ
クし、接続されている外部機器が正当なものかどうか判
定する。これについては、第4図のフローチヤートを参
照して詳しく後述する。 次にステツプS2に進み、外部機器1からプリント開始
命令が送られてきたかどうかを調べる。なお、このプリ
ント開始命令は、ここでは外部機器1より送られてくる
コードとしているが、コード等による開始命令でなく、
例えば専用の信号線を通して送られる電圧レベル等によ
りプリント開始を指示してもよい。プリント開始命令が
入力されるとステツプS2よりステツプS3に進み、ステツ
プS1で行つた判定結果に基づいて、正当な外部機器であ
ればステツプS4でプリントを行う。 一方、接続されている外部機器1が正当な機器でなけ
ればステツプS1に戻り、再度外部機器1が正当かどうか
を調べる。なお、ステツプS1の外部機器1のチエツク
は、この実施例では電源投入時、及びプリント開始命令
受信時に、ステツプS3で正当な外部機器でないと判断さ
れたときに行うようにしたが、本発明はこれに限定され
るものでなく、例えば不定期に実行されてもよい。 第3図はカラープリンタ2における、タイマ41による
タイマ割込み処理を示すフローチヤートである。 このタイマ割込みは、例えば、2msec毎にタイマ41よ
り出力される割込み信号により起動される。まず、ステ
ツプS11でRAM6の変数Key61に“1"を加えている。この変
数Key61は、例えば、4バイト(Key[0],Key[1],K
ey[2],Key[3]:Key[i]はi番目のバイトを示
す)からなる変数である。 タイマ割り込みは、カラープリンタ2の電源が投入さ
れている時にのみ実行されるので、カラープリンタ2の
電源オン直後のKey値は、電源オフ時のKeyの値と同一で
ある。しかし、プリンタ2の電源オン時には、2msec毎
に上述したKey61の値が更新されているため、このKey61
の値は全く予想できないランダムな数値となる。こうし
て、Key61の値が更新されるとステツプS12に進み、タイ
マ割込みに伴う、その他の処理を行う。 第4図は第2図のステツプS1で示された外部機器1が
正当なものであるかどうかチエツクする処理を示すフロ
ーチヤートである。 まず、ステツプS31で変数Key61を、RAM6に設けられた
図示しない他の変数Key2にコピーする。これは、この処
理の間にタイマ割込みが入つて、Key61の値が変更され
る可能性があるためである。 次にステツプS32に進み、外部通信回路3を通して、K
ey2の値を外部機器1に送信する。次に、ステツプS33に
進み、外部通信回路3を通して、外部機器1からKey2に
対応した応答(ANS1)を受取る。この応答ANS1は、例え
ば、それぞれが4バイトのANS1[0],ANS1[1],ANS1
[2],ANS1[3]からなる変数である(ここで、
[i]はi番目のバイドを示している)。 次に、ステツプS34に進み、このカラープリンタ2内
で、所定の計算式に基づき、Key2からANS2,ANS3を計算
する。これらANS2,ANS3の値も、前述のANS1と同様に、
それぞれ4バイトの変数である。 ここで例えば、ANS2を計算する計算式を以下のように
設定する。 (式1) ANS2[0]=Key[0]+Key[1]+Key[2]+Key[3] ANS2[1]=Key[0]*Key[1]/Key[2] ANS2[2]=(Key[0]+20)*Key[3] ANS2[3]=Key[0]XOR Key[1]XOR Key[2]XOR Key
[3] 但し、これら計算結果が、1バイト以上になつたとき
は、各バイトデータとして、下位ビツトより8ビツトを
採用するものとする。また、*は掛け算を示し、XORは
排他的論理和を示している。 また、ANS3は別の計算式を用いて計算される。これら
の計算式を正当な外部機器1に組み込んでおくことによ
り、正当な外部機器1よりの応答値(ANS1)は、カラー
プリンタ2で計算された値ANS2或はANS3の少なくともい
ずれかと同じ値になるはずである。 こうしてステツプS35に進み、外部機器1より受信し
た応答ANS1がANS3と一致しているかどうか判定する。一
致していればステツプS36に進み、有効デバイス変数と
して“2"を設定する。これは、現在接続されている外部
機器1が正当な機器であり、その機器レベルが“2"(後
述する)であることを意味する。 また、ステツプS35でANS1とANS3とが一致しないとき
はステツプS37に進み、ANS1とANS2とが一致しているか
どうかを判定する。一致していればステツプS38に進
み、有効デバイス変数として“1"を設定する。これは、
現在接続されている外部機器1が正当な機器であり、そ
の機器レベルが“1"(後述する)であることを意味して
いる。 外部機器1より受信した応答ANS1が、カラープリンタ
2内で計算されたANS2及びANS3の何れにも一致しない場
合はステツプS39に進み、その機器レベルを“0"に設定
する。これは、現在、このプリンタ2に接続されている
外部機器1が正当な機器でないことを表わしており、こ
の時は、第2図のステツプS3で正当な外部機器でないと
判断される。 また、ステツプS32或はステツプS33における送信,受
信が失敗した時も、現在接続されている外部機器1の機
器レベルは“0"に設定される。 次に、前述した機器レベルに関して説明する。この機
器レベルは、第2図のフローチヤートのステツプS3にお
いて、接続されている外部機器1が正当かどうかを判定
するのに用いられる。また、第2図のステツプS4でプリ
ントを行う時、例えば実現可能なカラープリンタ2の機
能うち、その外部機器1より送られてきた画像データを
プリントするのに使用する機能を選択したり、画像処理
回路8における画像処理のパラメータを変更するため等
に用いられる。 ここで、前述のように、機器レベルを“1",“2"とい
うように複数設定できるようにしたのは、カラープリン
タ2に固有の制限事項、及びノウハウ等にもいくつかの
レベルがあり、それに応じて外部機器1のレベル分けが
できるようにするためである。例えば、カラープリンタ
2の機能を最大限に発揮して印刷を指示できる外部機器
1に対しては、機器レベル“1"に対応する応答値ANS2を
計算する計算式を記憶しておく。また、いくらかの限定
事項を含むが、このカラープリンタ2に接続しても特に
問題ない外部機器2には、機器レベル“2"に対応する応
答値ANS3を計算する計算式を組み込んでおく。 これにより、カラープリンタ2は外部機器1に送出し
たKeyの値に対する応答値により、接続されている外部
機器1の機器レベルを判断し、必要ならば外部機器1と
の間の送受信を停止したり(機器レベルが“0"のと
き)、外部機器1の機器レベルに応じて、カラープリン
タ2内での画像データの処理を変更したり、階調制御の
方法を変更したりして、受信した画像信号を、例えばこ
のプリンタの最大負荷とならないようにして印刷するこ
とができる。 従つて、カラープリンタ2において過大な負荷がかけ
られた状態で印刷する等の不具合がなくなり、プリンタ
2の過負荷による寿命の短縮化や故障などを低減でき
る。 <第2の実施例(第5図)> 第5図は第2の実施例のカラープリンタ20の概略構成
を示すブロツク図である。 前述の第1の実施例では、カラープリンタ2は画像ラ
イン12を介して、外部機器1よりリアルタイムで画像デ
ータを受取る、所謂ビデオ・インターフエース方式によ
り画像データ(印刷データ)を受信していたが、この第
2の実施例では外部機器1との通信及び画像データの受
信を全て同一の汎用の通信手段14を用いて行う。この通
信手段14は、例えばGPIBやSCSI(Small Computer Syste
ms Interface)のような汎用の通信プロトコルである。 この実施例では、前述したカラープリンタ20より外部
機器1への変数Key2の転送、及び外部機器1よりの応答
値ANS1の受信は通信手段14を介して行われる。また、第
2図のプリント実行時において、画像データも同様に通
信手段14を介して外部機器1から取込まれて、一旦画像
メモリ16−1〜16−3に保存される。その後、画像処理
回路8、階調制御回路9を介してプリンタ・エンジン10
に送られてプリントされる。 なお、これら画像メモリ16を設けたのは、一般に汎用
の通信手段14の転送速度に比べてプリンタエンジン10の
データ印刷速度が遅いため、受信した画像データを一時
的に記憶する必要があるためである。 なお、本実施例では、入出力装置がカラープリンタの
場合で説明したが、本発明はこれに限定されるものでな
く、例えばモノクロプリンタであつても良く、またプリ
ンタでなく、例えばデイスプレイや座標入力装置又はス
キヤナ等の画像入力装置等の他の入出力装置であつても
良い。 また、カラープリンタ側において、前述の第2の応答
値ASN2及びANS3を計算する代りに、例えば外部機器1よ
り送られてきた応答値ANS1から、前述の式1に基づいて
逆算することにより、元のKey値が得られるかどうかに
より外部機器1の機器レベルをチエツクするようにして
も良い。 以上説明したように本実施例によれば、外部機器にキ
ー情報を転送し、これを基に外部機器より返送された応
答値を検査する。そして、この応答値が適正であるとき
のみ、その接続されている外部機器からの画像信号を受
取つて処理することにより、このプリンタ固有の制限事
項を把握していない外部機器との接続を防止することが
できる。 これにより、制限事項を把握していない外部機器と接
続することにより発生する可能性のあるプリンタの故障
或は部品寿命の低下等を防止できる。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. <First Embodiment> FIG. 1 is a block diagram showing a schematic configuration of a color printer 2 of the present embodiment. The color printer 2 is connected to the external device 1 via communication lines 12 and 13. Then, at the time of printing execution, printing is executed by receiving an image signal via the image line 12. At this time, the image signal input from the external device 1 is sent to the printer engine 10 via the image processing circuit 8 and the gradation control circuit 9. The printer engine 10 may be any printer engine. For example, in this embodiment, it is assumed that the printer engine 10 is a printer unit of a color copying machine manufactured by Canon Inc. The image signal input from the external device 1 is a real-time image signal synchronized with the vertical synchronizing signal VSYNC and the horizontal synchronizing signal HSYNC, and the interface specification of the printer 2 is a so-called video interface specification. The CPU 4 controls each unit based on a control program stored in the program ROM 5. Reference numeral 41 denotes a timer built in the CPU 4, which generates a timer interrupt to the CPU 4 at predetermined time intervals according to an instruction from the CPU 4, as described later.
The RAM 6 temporarily stores various control data during the operation of the CPU 4, and is backed up in a non-volatile manner by a battery (not shown) or the like. 61 is the key (Ke
y) It is a key buffer (Key) that stores the code. Reference numeral 7 denotes a control I / O port, which is used by the CPU 4 to control solenoids, motors, and the like of each unit of the printer engine 10. An external communication circuit 3 controls a communication procedure when the CPU 4 communicates with the external device 1. In this embodiment, the communication procedure controlled by the communication circuit 3 is:
For example, an RS232C communication procedure is used. Since the communication procedure using RS232C is well known, its protocol and the like are not particularly described. <Explanation of Operation (FIGS. 2 to 4)> Next, with reference to flowcharts shown in FIGS. 2 to 4, the operation of the color printer 2 of the present embodiment and the communication between the color printer 2 and the external device 1 will be described. The interface control between them will be described. FIG. 2 is a flowchart showing the operation of the color printer 2 of the embodiment. The control program of the CPU 4 for executing this processing is stored in the ROM 5. In FIG. 2, when the power of the color printer 2 is first turned on, the process proceeds to step S1, where the specifications of the external device 1 are checked to determine whether or not the connected external device is valid. This will be described later in detail with reference to the flowchart of FIG. Next, the process proceeds to step S2 to check whether a print start command has been sent from the external device 1. Note that the print start instruction is a code sent from the external device 1 here, but is not a start instruction based on a code or the like.
For example, the start of printing may be instructed by a voltage level or the like sent through a dedicated signal line. When the print start command is input, the process proceeds from step S2 to step S3, and based on the result of the determination made in step S1, if it is a valid external device, printing is performed in step S4. On the other hand, if the connected external device 1 is not a valid device, the process returns to step S1 to check again whether the external device 1 is valid. In this embodiment, the check of the external device 1 in step S1 is performed when the power is turned on and when a print start command is received, and when it is determined in step S3 that the external device 1 is not a valid external device, the present invention is performed. The present invention is not limited to this, and may be executed, for example, irregularly. FIG. 3 is a flowchart showing timer interrupt processing by the timer 41 in the color printer 2. This timer interrupt is activated by an interrupt signal output from the timer 41 every 2 msec, for example. First, "1" is added to the variable Key61 of the RAM 6 in step S11. This variable Key61 is, for example, 4 bytes (Key [0], Key [1], K
ey [2], Key [3]: Key [i] indicates the i-th byte). Since the timer interrupt is executed only when the power of the color printer 2 is turned on, the key value immediately after the power of the color printer 2 is turned on is the same as the value of the key when the power is turned off. However, when the power of the printer 2 is turned on, the value of the key 61 described above is updated every 2 msec.
Is a completely unpredictable random number. When the value of Key 61 is updated in this way, the process proceeds to step S12, where other processes associated with the timer interrupt are performed. FIG. 4 is a flowchart showing a process for checking whether the external device 1 shown in step S1 of FIG. 2 is valid. First, in step S31, the variable Key61 is copied to another variable Key2 (not shown) provided in the RAM 6. This is because there is a possibility that the value of Key61 is changed due to a timer interrupt during this processing. Next, proceeding to step S32, through the external communication circuit 3, K
The value of ey2 is transmitted to the external device 1. Next, the process proceeds to step S33, and a response (ANS1) corresponding to Key2 is received from the external device 1 through the external communication circuit 3. The response ANS1 is, for example, ANS1 [0], ANS1 [1], ANS1 each having 4 bytes.
Is a variable consisting of [2] and ANS1 [3] (where
[I] indicates the i-th byte). Next, the process proceeds to step S34, where ANS2 and ANS3 are calculated from Key2 in the color printer 2 based on a predetermined calculation formula. These values of ANS2 and ANS3 are also similar to ANS1 described above.
Each is a 4-byte variable. Here, for example, a calculation formula for calculating ANS2 is set as follows. (Expression 1) ANS2 [0] = Key [0] + Key [1] + Key [2] + Key [3] ANS2 [1] = Key [0] * Key [1] / Key [2] ANS2 [2] = ( Key [0] +20) * Key [3] ANS2 [3] = Key [0] XOR Key [1] XOR Key [2] XOR Key
[3] However, when the result of the calculation is 1 byte or more, 8 bits from the lower bit are adopted as each byte data. * Indicates multiplication, and XOR indicates exclusive OR. ANS3 is calculated using another formula. By incorporating these formulas into the valid external device 1, the response value (ANS1) from the valid external device 1 becomes the same value as at least one of the values ANS2 or ANS3 calculated by the color printer 2. Should be. Thus, the process proceeds to step S35, and it is determined whether or not the response ANS1 received from the external device 1 matches ANS3. If they match, the flow advances to step S36 to set "2" as a valid device variable. This means that the currently connected external device 1 is a legitimate device and its device level is “2” (described later). If ANS1 and ANS3 do not match in step S35, the flow advances to step S37 to determine whether ANS1 and ANS2 match. If they match, the flow advances to step S38 to set "1" as a valid device variable. this is,
This means that the currently connected external device 1 is a legitimate device and its device level is “1” (described later). If the response ANS1 received from the external device 1 does not match any of ANS2 and ANS3 calculated in the color printer 2, the process proceeds to step S39, and the device level is set to "0". This means that the external device 1 currently connected to the printer 2 is not a valid device. At this time, it is determined in step S3 in FIG. 2 that the external device 1 is not a valid external device. Also, when the transmission or reception in step S32 or step S33 fails, the device level of the currently connected external device 1 is set to "0". Next, the above-described device level will be described. This device level is used in step S3 of the flowchart of FIG. 2 to determine whether the connected external device 1 is valid. When printing is performed in step S4 in FIG. 2, for example, of the functions of the color printer 2 that can be realized, a function used to print the image data sent from the external device 1 is selected. It is used for changing the parameters of the image processing in the processing circuit 8. Here, as described above, a plurality of device levels such as “1” and “2” can be set because there are some restrictions in the color printer 2 and some levels in know-how. This is because the level of the external device 1 can be classified accordingly. For example, for an external device 1 capable of instructing printing by maximizing the function of the color printer 2, a calculation formula for calculating a response value ANS2 corresponding to the device level "1" is stored. Although there are some restrictions, the external device 2 that does not cause any problem even when connected to the color printer 2 incorporates a calculation formula for calculating the response value ANS3 corresponding to the device level “2”. Accordingly, the color printer 2 determines the device level of the connected external device 1 based on the response value to the value of the key transmitted to the external device 1, and stops transmission / reception with the external device 1 if necessary. (When the device level is "0"), the image data processing in the color printer 2 is changed or the gradation control method is changed according to the device level of the external device 1 and received. The image signal can be printed, for example, without causing the maximum load of the printer. Accordingly, there is no problem such as printing in a state where an excessive load is applied to the color printer 2, and the life of the printer 2 due to the overload can be shortened and troubles can be reduced. <Second Embodiment (FIG. 5)> FIG. 5 is a block diagram showing a schematic configuration of a color printer 20 according to a second embodiment. In the above-described first embodiment, the color printer 2 receives image data (print data) by the so-called video interface system, which receives image data from the external device 1 in real time via the image line 12. In the second embodiment, communication with the external device 1 and reception of image data are all performed using the same general-purpose communication means 14. This communication means 14 is, for example, GPIB or SCSI (Small Computer System).
ms Interface). In this embodiment, the transfer of the variable Key2 from the color printer 20 to the external device 1 and the reception of the response value ANS1 from the external device 1 are performed via the communication means 14. At the time of executing the printing shown in FIG. 2, the image data is also taken in from the external device 1 via the communication means 14 and temporarily stored in the image memories 16-1 to 16-3. Thereafter, the printer engine 10 is transmitted via the image processing circuit 8 and the gradation control circuit 9.
To be printed. The image memory 16 is provided because the data printing speed of the printer engine 10 is generally slower than the transfer speed of the general-purpose communication means 14, and it is necessary to temporarily store the received image data. is there. In the present embodiment, the case where the input / output device is a color printer has been described. However, the present invention is not limited to this, and may be, for example, a monochrome printer. Another input / output device such as an input device or an image input device such as a scanner may be used. On the color printer side, instead of calculating the second response values ASN2 and ANS3 described above, for example, by calculating back from the response value ANS1 sent from the external device 1 based on the above-described equation 1, the original value is obtained. The device level of the external device 1 may be checked based on whether or not the key value is obtained. As described above, according to this embodiment, the key information is transferred to the external device, and the response value returned from the external device is inspected based on the key information. Then, only when the response value is appropriate, the image signal from the connected external device is received and processed, thereby preventing the connection with the external device which does not understand the restriction specific to the printer. be able to. As a result, it is possible to prevent a failure of the printer or a reduction in the life of parts, which may occur when the printer is connected to an external device whose restrictions are not understood.

【発明の効果】【The invention's effect】

以上説明したように本発明によれば、入出力装置が正
当でない外部機器に接続されるのを防止できるため、入
出力機器を適正に外部機器に接続して使用でき、故障の
発生等を少なくできる効果がある。
As described above, according to the present invention, an input / output device can be prevented from being connected to an unauthorized external device, so that the input / output device can be properly connected to an external device for use, and occurrence of a failure and the like can be reduced. There is an effect that can be done.

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

第1図は第1の実施例のカラープリンタの概略構成を示
すブロツク図、 第2図〜第4図は実施例のカラープリンタの制御アルゴ
リズムを示すフローチヤート、そして 第5図は第2の実施例のカラープリンタの概略構成を示
すブロツク図である。 図中、1……外部機器、2,20……カラープリンタ、3…
…外部通信回路、4……CPU、5……ROM、6……RAM、
7……制御I/Oポート、8……画像処理回路、9……階
調制御回路、10……プリンタ・エンジン、12……画像ラ
イン、13……通信ライン、14……通信手段、16……画像
メモリ、41……タイマ、61……変数Keyである。
FIG. 1 is a block diagram showing a schematic configuration of a color printer of a first embodiment, FIGS. 2 to 4 are flowcharts showing a control algorithm of the color printer of the embodiment, and FIG. 5 is a second embodiment. FIG. 2 is a block diagram illustrating a schematic configuration of an example color printer. In the figure, 1 ... external device, 2,20 ... color printer, 3 ...
... external communication circuit, 4 ... CPU, 5 ... ROM, 6 ... RAM,
7: control I / O port, 8: image processing circuit, 9: gradation control circuit, 10: printer engine, 12: image line, 13: communication line, 14: communication means, 16 .., Image memory, 41, timer, 61, variable Key.

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像メモリを含む外部機器と画像読取り又
は印刷を行う入出力装置との間のインターフェース仕様
を確認するための入出力制御装置であって、 前記入出力装置から前記外部機器に対してキー情報を転
送する転送手段と、 前記キー情報に基づいて前記外部機器から前記入出力装
置に転送される応答情報を受信する受信手段と、 前記受信手段により受信された前記応答情報に含まれる
数値が、前記キー情報を基に所定の計算式に基づいて計
算された数値と一致するか否かを判定する判定手段と、 前記判定手段による判定結果に応じて、前記外部機器と
前記入出力装置間の画像データの転送及び、或は前記入
出力装置における読取り動作又は印刷動作の制御を行う
制御手段と、 を有することを特徴とする入出力制御装置。
1. An input / output control device for confirming an interface specification between an external device including an image memory and an input / output device for reading or printing an image. Transfer means for transferring key information by means of the key information; reception means for receiving response information transferred from the external device to the input / output device based on the key information; and transmission means included in the response information received by the reception means. Determining means for determining whether a numerical value matches a numerical value calculated based on a predetermined calculation formula based on the key information; and, in accordance with a determination result by the determining means, the external device and the input / output An input / output control device comprising: control means for transferring image data between the devices and / or controlling a reading operation or a printing operation in the input / output device.
【請求項2】前記制御手段は、前記判定手段により一致
しないと判定されると前記外部機器と前記入出力装置間
の入出力データの転送又は入出力動作を禁止することを
特徴とする請求項1に記載の入出力制御装置。
2. The apparatus according to claim 1, wherein said control means prohibits transfer of input / output data or input / output operation between said external device and said input / output device when said determination means determines that they do not match. 2. The input / output control device according to 1.
【請求項3】画像メモリを含む外部機器と画像読取り又
は印刷を行う入出力装置との間のインターフェース仕様
を確認するための入出力制御装置であって、 前記入出力装置から前記外部機器に対してキー情報を転
送する転送手段と、 前記キー情報に基づいて前記外部機器から前記入出力装
置に転送される応答情報を受信する受信手段と、 前記キー情報をもとに複数の回答情報を算出する算出手
段と、 前記応答情報が前記複数の回答情報のいずれと一致する
かにより、前記入出力装置におけるデータ処理を変更す
る手段と、 を有することを特徴とする入出力制御装置。
3. An input / output control device for confirming an interface specification between an external device including an image memory and an input / output device for reading or printing an image. Transfer means for transferring key information by using the key information; receiving means for receiving response information transferred from the external device to the input / output device based on the key information; and calculating a plurality of pieces of response information based on the key information. An input / output control device, comprising: a calculating unit that performs data processing; and a unit that changes data processing in the input / output device depending on which of the plurality of pieces of response information matches the response information.
【請求項4】前記キー情報はランダムな数値であること
を特徴とする請求項1乃至3のいずれか1項に記載の入
出力制御装置。
4. The input / output control device according to claim 1, wherein the key information is a random numerical value.
【請求項5】外部装置との間で画像データの入出力を行
う画像処理装置における入出力制御方法であって、 前記外部装置にキー情報を送信し、 前記外部機器において前記キー情報に基づいて得られた
応答情報を、前記外部機器から受信し、 前記受信した応答情報に従って前記外部装置が正当なも
のであるか判定し、 その判定結果に応じて、前記画像データの入出力を制御
することを特徴とする入出力制御方法。
5. An input / output control method in an image processing apparatus for inputting / outputting image data to / from an external device, comprising: transmitting key information to the external device; Receiving the obtained response information from the external device, determining whether the external device is valid according to the received response information, and controlling input / output of the image data according to the determination result. An input / output control method characterized by the following.
【請求項6】前記入出力の制御は、前記判定結果に応じ
て前記外部装置からの画像データの受信を制御すること
を特徴とする請求項5に記載の入出力制御方法。
6. The input / output control method according to claim 5, wherein said input / output control controls reception of image data from said external device in accordance with said determination result.
JP23904790A 1990-09-11 1990-09-11 Input / output control method and device Expired - Fee Related JP3226043B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23904790A JP3226043B2 (en) 1990-09-11 1990-09-11 Input / output control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23904790A JP3226043B2 (en) 1990-09-11 1990-09-11 Input / output control method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2001028582A Division JP3251574B2 (en) 2001-02-05 2001-02-05 Input / output control method and device

Publications (2)

Publication Number Publication Date
JPH04119420A JPH04119420A (en) 1992-04-20
JP3226043B2 true JP3226043B2 (en) 2001-11-05

Family

ID=17039086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23904790A Expired - Fee Related JP3226043B2 (en) 1990-09-11 1990-09-11 Input / output control method and device

Country Status (1)

Country Link
JP (1) JP3226043B2 (en)

Also Published As

Publication number Publication date
JPH04119420A (en) 1992-04-20

Similar Documents

Publication Publication Date Title
US7038798B2 (en) Method and apparatus for multi-function processing capable of performing a program downloading using a common single connection, and a medium storing the method
JP3226043B2 (en) Input / output control method and device
US20010043343A1 (en) Image processing and method, and storage medium
US8171198B2 (en) Image forming apparatus and control method thereof
JP3251574B2 (en) Input / output control method and device
US7652807B2 (en) Image generating apparatus, image generating method and computer readable medium
JP3040414B2 (en) Color image processing equipment
JP3487284B2 (en) Printer system, printer driver, and printer
JPH0884243A (en) Information communication equipment
JP2006251102A (en) Image forming apparatus
JPH0284364A (en) printing device
JPH086739A (en) Image processing apparatus, image processing method, and image processing system
JP3821189B2 (en) Image forming apparatus
JP3602723B2 (en) Network system
JP2880546B2 (en) Facsimile machine and communication control method in said machine
JP3495398B2 (en) Color digital MFP
JP3320186B2 (en) Image forming method, image processing system, image forming apparatus, and image input apparatus
JP3978805B2 (en) Printing device
KR20010035568A (en) Method for security printing of network printer
JPH0275015A (en) printer device
JP3070436B2 (en) Facsimile machine
JP3122164B2 (en) Image forming apparatus and image forming method
JP2005161580A (en) Image processing apparatus, image processing method, and computer program
JP3209372B2 (en) Image processing method and apparatus
JP2613590B2 (en) Color image forming equipment

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070831

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080831

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090831

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100831

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees