JPH0895720A - Printer type acquisition method and apparatus - Google Patents

Printer type acquisition method and apparatus

Info

Publication number
JPH0895720A
JPH0895720A JP6226502A JP22650294A JPH0895720A JP H0895720 A JPH0895720 A JP H0895720A JP 6226502 A JP6226502 A JP 6226502A JP 22650294 A JP22650294 A JP 22650294A JP H0895720 A JPH0895720 A JP H0895720A
Authority
JP
Japan
Prior art keywords
printer
data
signal line
command
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6226502A
Other languages
Japanese (ja)
Inventor
Koichi Tsuzuki
幸一 都筑
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP6226502A priority Critical patent/JPH0895720A/en
Publication of JPH0895720A publication Critical patent/JPH0895720A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】既存のインタフエース線を利用し、既存の上位
装置に対してはそのソフトウエア改造のみで済むプリン
タ種別取得方法および装置の提供。 【構成】上位装置1は問合せコマンド送出部11により
「DATA」信号線を介してプリンタ種別を問合せるコ
マンドを送出し、「+5V」信号線データ読出し蓄積部
12により問合せコマンドの送出に応答して「ACKバ
ー」信号線を介して受信するタイミング信号に応じて
「+5V」信号線上のデータを読取り蓄積し、蓄積デー
タ解読部13により読取り蓄積されたデータを解読して
プリンタ2のプリンタ種別を取得する。
(57) [Abstract] [Purpose] To provide a printer type acquisition method and device that uses existing interface lines and that only requires software modification for existing host devices. [Structure] The host device 1 sends a command for inquiring about the printer type via the "DATA" signal line by the inquiry command sending unit 11, and responds to the sending of the inquiry command by the "+ 5V" signal line data read / accumulation unit 12 in response to the inquiry command. The data on the "+ 5V" signal line is read and stored according to the timing signal received through the "ACK bar" signal line, and the stored data decoding unit 13 decodes the stored data to acquire the printer type of the printer 2. .

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はプリンタ種別取得方法お
よび装置に関し、特に多種のプリンタを接続替えして使
用する場合に好適なプリンタ種別取得方法および装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer type acquisition method and apparatus, and more particularly to a printer type acquisition method and apparatus suitable when various printers are connected and used.

【0002】[0002]

【従来の技術】従来のプリンタ種別取得方式は、ハード
ウエア的な手法としては、DIPスイッチ等によりプリ
ンタ種を設定し、ソフトウエアによりこれを読み取るこ
とにより、また、ソフトウエア的な手法としては、ハー
ドデイスク等の外部記憶装置に、接続するプリンタ種を
設定し、ソフトウエアによりこれを読み取ることによ
り、それぞれ異なった種類のプリンタに適した制御を行
なっていた。
2. Description of the Related Art In the conventional printer type acquisition method, as a hardware method, a printer type is set by a DIP switch or the like, and this is read by software, and as a software method, By setting the type of printer to be connected to an external storage device such as a hard disk and reading it by software, control suitable for different types of printers is performed.

【0003】しかしながら、上述の従来のプリンタ種別
取得方式は、オペレータの接続プリンタ種の設定ミスに
よるプリンタ動作不良や、プリンタ接続替え毎の運用の
煩雑さが問題であった。
However, the above-described conventional printer type acquisition method has a problem in that the printer malfunctions due to a mistake in setting the connected printer type by the operator and the complexity of operation for each printer connection change.

【0004】このため、特開平2−110625号公報
記載の公知技術では、既存プリンタインタフエースの一
部の信号線を双方向性にしてプリンタ種別取得を行な
い、上記問題点を解決している。
Therefore, in the known technique disclosed in Japanese Patent Laid-Open No. 2-110625, a part of the signal lines of the existing printer interface is made bidirectional to obtain the printer type, thereby solving the above problem.

【0005】すなわち、特開平2−110625号公報
記載によれば、従来、制御コードや文字コード等のコー
ドを上位装置からプリンタへ一方向にのみ送出するのに
使用されていたデータ信号線を双方向性に改造すること
により、この改造されたデータ信号線を介して上位装置
からプリンタへプリンタ種別問合せコードを送出し、そ
の応答としてプリンタから上位装置へ同一データ信号線
を介してそのプリンタ種別データを返送するようにする
ことにより、プリンタ種別取得を行なっている。
That is, according to the description of Japanese Patent Laid-Open No. 2-110625, both data signal lines which were conventionally used to send a code such as a control code or a character code from a host device to a printer in only one direction are disclosed. By modifying the model to be directional, the printer type inquiry code is sent from the host device to the printer via this modified data signal line, and in response, the printer type data is sent from the printer to the host device via the same data signal line. Is sent back to obtain the printer type.

【0006】[0006]

【発明が解決しようとする課題】上述した特開平2−1
10625号公報記載の従来のプリンタ種別取得方式
は、一部の信号線を双方向性に改造する必要があり、こ
のため、従来の既存の上位装置に対して双方向性に改造
された信号線に対する受信機能を追加するというハード
ウエア面での改造を必要とするという問題点がある。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
In the conventional printer type acquisition method described in Japanese Patent No. 10625, it is necessary to remodel some signal lines to be bidirectional. Therefore, the signal lines remodeled to be bidirectional with respect to the existing existing host device. However, there is a problem in that the hardware needs to be modified to add a receiving function for.

【0007】本発明の目的は、既存のインタフエース線
を利用し、既存の上位装置に対してはそのソフトウエア
改造のみで済むプリンタ種別取得方法および装置を提供
することにある。
It is an object of the present invention to provide a printer type acquisition method and apparatus which utilizes an existing interface line and requires only the software modification of the existing host apparatus.

【0008】[0008]

【課題を解決するための手段】第1の発明のプリンタ種
別取得方法は、上位装置とプリンタの間のプリンタイン
タフエースとして前記上位装置から前記プリンタへコー
ドデータを転送するデータ信号線と前記プリンタから前
記上位装置へ前記プリンタの電源投入状態を示すデータ
を転送する電源投入状態信号線と前記プリンタから前記
上位装置へ前記プリンタが前記上位装置からのデータを
誤りなく受信したことを示すデータを転送するデータ受
信応答信号線を有し、前記上位装置は前記データ信号線
を介してプリンタ種別を問合せるコマンドを送出し、前
記問合せコマンドの送出に応答して前記データ受信応答
信号線を介して受信するタイミング信号に応じて前記電
源投入状態信号線上のデータを読取り蓄積し、前記読取
り蓄積されたデータを解読して前記プリンタのプリンタ
種別を取得することを含んで構成されている。
According to a first aspect of the present invention, there is provided a printer type acquisition method, wherein a data signal line for transferring code data from the higher-level device to the printer and a printer as a printer interface between the higher-level device and the printer. A power-on state signal line for transferring data indicating a power-on state of the printer to the higher-level device and a data indicating that the printer has received the data from the higher-level device from the printer to the higher-level device without error Timing for having a data reception response signal line, wherein the higher-level device transmits a command for inquiring the printer type through the data signal line, and receives through the data reception response signal line in response to the transmission of the inquiry command. The data on the power-on state signal line is read and stored according to a signal, and the read and stored data is stored. The decrypts is configured to include obtaining the printer type of the printer.

【0009】第2の発明のプリンタ種別取得方法は、第
1の発明において、プリンタは、データ信号線を介して
上位装置から転送されてきたプリンタ種別を問合せるコ
マンドを受信しこれを解読し、問合せコマンド受信に応
答して自プリンタの種別コードを電源投入状態信号線を
介してビットシリアルデータとして送出しその読出しタ
イミング信号をデータ受信応答信号線を介して送出する
ことを含んで構成されている。
In the printer type acquisition method of the second invention, in the first invention, the printer receives a command for inquiring the printer type transferred from the host device via the data signal line, decodes this command, and inquires. In response to command reception, the type code of the printer itself is transmitted as bit serial data via the power-on status signal line, and its read timing signal is transmitted via the data reception response signal line.

【0010】第3の発明のプリンタ種別取得装置は、上
位装置とプリンタの間のプリンタインタフエースとして
前記上位装置から前記プリンタへコードデータを転送す
るデータ信号線と前記プリンタから前記上位装置へ前記
プリンタの電源投入状態を示すデータを転送する電源投
入状態信号線と前記プリンタから前記上位装置へ前記プ
リンタが前記上位装置からのデータを誤りなく受信した
ことを示すデータを転送するデータ受信応答信号線を有
し、前記上位装置は前記データ信号線を介してプリンタ
種別を問合せるコマンドを送出する問合せコマンド送出
手段と、前記問合せコマンドの送出に応答して前記デー
タ受信応答信号線を介して受信するタイミング信号に応
じて前記電源投入状態信号線上のデータを読取り蓄積す
る電源投入状態信号線データ読出し蓄積手段と、前記読
取り蓄積されたデータを解読して前記プリンタのプリン
タ種別を取得する蓄積データ解読手段とを含んで構成さ
れている。
According to a third aspect of the present invention, there is provided a printer type acquisition device, which comprises a data signal line for transferring code data from the host device to the printer as a printer interface between the host device and the printer, and the printer from the printer to the host device. A power-on status signal line for transferring data indicating a power-on status of the printer and a data reception response signal line for transferring data indicating that the printer has received the data from the higher-order apparatus from the printer to the higher-order apparatus without error. The higher-level device has an inquiry command transmitting means for transmitting a command for inquiring the printer type via the data signal line, and a timing signal received via the data reception response signal line in response to the transmission of the inquiry command. The power-on status signal for reading and storing the data on the power-on status signal line according to And line data read storage means is configured to include a stored data decoding means decodes the read stored data to obtain the printer type of the printer.

【0011】第4の発明のプリンタ種別取得方法は、第
3の発明において、プリンタには、データ信号線を介し
て上位装置から転送されてきたプリンタ種別を問合せる
コマンドを受信しこれを解読する問合せコマンド解読手
段と、問合せコマンド受信に応答して自プリンタの種別
コードを電源投入状態信号線を介してビットシリアルデ
ータとして送出しその読出しタイミング信号をデータ受
信応答信号線を介して送出するプリンタ種別コードビッ
トシリアル転送手段とを含んで構成されている。
In the printer type acquisition method according to the fourth aspect of the present invention, in the third aspect of the present invention, the printer receives a command for inquiring the printer type transferred from a higher-level device via a data signal line and inquiring to decode the command. Command decoding means and printer type code for transmitting the type code of the printer in response to receiving the inquiry command as bit serial data through the power-on status signal line and transmitting the read timing signal through the data reception response signal line Bit serial transfer means is included.

【0012】[0012]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0013】パソコン、ワークステーション、端末装置
等の上位装置とこれに接続されるプリンタ間の信号の授
受を行なう所謂プリンタインタフエースには上位装置か
らプリンタへデータや制御コマンド等を転送する「DA
TA」信号線と、プリンタから上位装置へプリンタが確
実に誤りなく上位装置からのデータを受信したことを示
すデータを転送する「ACKバー」信号線(転送データ
は2値信号中のLレベル)と、同じくプリンタから上位
装置へプリンタへ電源が投入されていることを示すデー
タを転送する「+5V」信号線(転送データは2値信号
中のHレベル)が存在する。本発明はこの3種の信号線
を利用するものである。
A so-called printer interface for exchanging signals between a host device such as a personal computer, a workstation, and a terminal device and a printer connected to the host device transfers data and control commands from the host device to the printer.
"TA" signal line and "ACK bar" signal line for transferring data indicating that the printer has received data from the higher-order device from the printer to the higher-order device without error (transfer data is L level in the binary signal) Similarly, there is a "+ 5V" signal line (the transfer data is the H level in the binary signal) for transferring data indicating that the printer is powered on from the printer to the upper device. The present invention utilizes these three types of signal lines.

【0014】図1は本発明のプリンタ種別取得装置の一
実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the printer type acquisition apparatus of the present invention.

【0015】本実施例のプリンタ種別取得装置は、図1
に示すように、上位装置1には、プリンタ2の種別を問
合せるコマンドを「DATA」信号線を介してプリンタ
2に送出する問合せコマンド送出部11と、「+5V」
信号線を介してプリンタ2からシリアルデータとして送
られてくるプリンタ種別コードを「ACKバー」信号線
を介して送られてくるタイミング信号によるタイミング
で読み出し蓄積する「+5V」信号線データ読出し蓄積
部12と、蓄積されたデータを解読しプリンタ種別を出
力する蓄積データ解読部13とを有し、プリンタ2に
は、上位装置1から「DATA」信号線を介して送られ
てくるプリンタ種別を問合せる問合せコマンドを解読す
る問合せコマンド解読部21と、プリンタ種別を示すプ
リンタ種別コードを「+5V」信号線を介してビットシ
リアルデータとして送出しその読出しタイミング信号を
「ACKバー」信号線を介して送出するプリンタ種別コ
ードビットシリアル転送部22とを有している。
The printer type acquisition apparatus of this embodiment is shown in FIG.
As shown in FIG. 2, the host device 1 has an inquiry command sending unit 11 for sending a command for inquiring the type of the printer 2 to the printer 2 via the “DATA” signal line, and a “+ 5V”.
"+ 5V" signal line data read / accumulation unit 12 for reading and accumulating the printer type code transmitted from the printer 2 via the signal line as serial data at the timing according to the timing signal transmitted via the "ACK bar" signal line. And a stored data decoding unit 13 that decodes the stored data and outputs the printer type, and inquires of the printer 2 about the printer type sent from the higher-level device 1 via the “DATA” signal line. An inquiry command decoding unit 21 for decoding a command, and a printer for transmitting a printer type code indicating a printer type as bit serial data via a "+ 5V" signal line and transmitting a read timing signal thereof through an "ACK bar" signal line. It has a type code bit serial transfer unit 22.

【0016】上位装置1およびプリンタ2はそれぞれ中
央処理部、主記憶部等を有し、プログラム制御により上
記の問合せコマンド送出部11、「+5V」信号線デー
タ読出し蓄積部12、蓄積データ解読部13、問合せコ
マンド解読部21、プリンタ種別コードビットシリアル
転送部22の機能を実行する。
The higher-level device 1 and the printer 2 each have a central processing unit, a main storage unit, etc., and by the program control, the inquiry command sending unit 11, the "+ 5V" signal line data read / storage unit 12, and the stored data decoding unit 13 described above. The functions of the inquiry command decoding unit 21 and the printer type code bit serial transfer unit 22 are executed.

【0017】次に本実施例の動作について、図2、図3
および図4を参照して説明する。
Next, the operation of this embodiment will be described with reference to FIGS.
This will be described with reference to FIG.

【0018】図2は上位装置1の動作を示す流れ図であ
る。
FIG. 2 is a flow chart showing the operation of the host device 1.

【0019】問合せコマンド送出部11は送出したコマ
ンド(ステップ111)がプリンタ種別問合せコマンド
でないときには(ステップ112のN枝)、上位装置1
は従来から行なっていた処理をして(ステップ31)終
了する。送出したコマンドがプリンタ種別問合せコマン
ドのときには(ステップ112のY枝)、「+5V」信
号線データ読出し蓄積部12を起動する。
When the transmitted command (step 111) is not the printer type inquiry command (N branch of step 112), the inquiry command transmission unit 11 outputs the higher order device 1
Performs the processing conventionally performed (step 31) and ends. When the transmitted command is the printer type inquiry command (Y branch of step 112), the "+ 5V" signal line data read / accumulation unit 12 is activated.

【0020】「+5V」信号線読出し蓄積部12は「A
CKバー」信号線がLレベルになるかどうかを監視し
(ステップ123)、一定時間(T)以上経過してもL
レベルにならないときには(ステップ124のY枝)、
蓄積データ解読部13に報知し、蓄積データ解読部13
では接続されているプリンタは従来のプリンタと判定し
て(ステップ131)終了する。
The "+ 5V" signal line read / accumulate unit 12 stores "A
It is monitored whether the "CK bar" signal line becomes L level (step 123), and L is maintained even if a certain time (T) or more has elapsed.
When it does not reach the level (Y branch of step 124),
The accumulated data decoding unit 13 is notified and the accumulated data decoding unit 13 is notified.
Then, the connected printer is determined to be a conventional printer (step 131), and the process ends.

【0021】一定時間(T)以内に「ACKバー」信号
線がLレベルになったときには(ステップ123のY
枝)、「+5V」信号線にあるデータSnを読出しこれ
を蓄積し(ステップ125)、「ACKバー」信号線が
Hレベルになるのを待つ(ステップ126)。このステ
ップ123からステップ126までの動作がプリンタ種
別コードの中の1ビットを読取る1ビット読取り動作で
ある。
When the "ACK bar" signal line becomes L level within a fixed time (T) (Y in step 123).
(Branch), the data Sn on the “+ 5V” signal line is read and accumulated (step 125), and waits for the “ACK bar” signal line to reach the H level (step 126). The operation from step 123 to step 126 is a 1-bit reading operation for reading 1 bit in the printer type code.

【0022】この1ビット読取り動作をプリンタ種別コ
ードを構成するビット数Nと同じ回数だけ繰返した後
(ステップ128のY枝)、蓄積データ解読部13に報
知する。
This 1-bit reading operation is repeated the same number of times as the number of bits N constituting the printer type code (Y branch of step 128), and then the accumulated data decoding section 13 is notified.

【0023】蓄積データ解読部13は蓄積されたN個の
データ(S1 ,S2 ,…SN )を読み出しプリンタ種別
を取得する(ステップ132)。
The stored data decoding unit 13 reads the stored N data (S1, S2, ... SN) and acquires the printer type (step 132).

【0024】図3はプリンタ2の動作を示す流れ図であ
る。
FIG. 3 is a flow chart showing the operation of the printer 2.

【0025】問合せコマンド解読部21は上位装置1か
らのコマンドを受信し(ステップ211)、その受信コ
マンドがプリンタ種別問合せコマンドでない場合には
(ステップ212のN枝)、プリンタ2は従来行なわれ
ていた処理を行なう(ステップ32)。
The inquiry command decoding unit 21 receives a command from the higher-level device 1 (step 211). If the received command is not the printer type inquiry command (N branch of step 212), the printer 2 is conventionally operated. The processing is performed (step 32).

【0026】受信コマンドがプリンタ種別問合せコマン
ドであるときには(ステップ212のY枝)、プリンタ
種別コードビットシリアル転送部22に報知する。
When the received command is the printer type inquiry command (Y branch of step 212), the printer type code bit serial transfer unit 22 is notified.

【0027】次いで、プリンタ種別コードビットシリア
ル転送部22は自プリンタのプリンタ種別コードの第1
ビット目が2値信号の何れかであるかを調べ(ステップ
221)、1の場合には「+5V」信号線をHレベルに
設定し(ステップ223)、0の場合には「+5V」信
号線をLレベルに設定し(ステップ222)、次いで
「ACKバー」信号線をLレベルに設定して「+5V」
信号線の読取りタイミング信号を送出し、一定時間(t
1 )後に「ACKバー」信号線をHレベルに設定し(ス
テップ226)、次いで「+5V」信号線をHレベルに
設定する(ステップ227)。このステップ221から
ステップ227までの動作がプリンタ種別コードの1ビ
ット転送動作である。
Next, the printer type code bit serial transfer section 22 uses the first printer type code of the own printer.
It is checked whether the bit is a binary signal (step 221), if it is 1, the "+ 5V" signal line is set to the H level (step 223), and if it is 0, the "+ 5V" signal line is set. Is set to L level (step 222), then the "ACK bar" signal line is set to L level and "+ 5V" is set.
A read timing signal for the signal line is sent, and a fixed time (t
After 1), the "ACK bar" signal line is set to H level (step 226), and then the "+ 5V" signal line is set to H level (step 227). The operation from step 221 to step 227 is the 1-bit transfer operation of the printer type code.

【0028】この1ビット転送動作を一定時間(t2 )
間隔で(ステップ228)プリンタ種別コードを構成す
るビット数Nと同じ回数だけ繰返してプリンタ種別コー
ドのビットシリアル転送動作を終了する(ステップ23
0のY枝)。
This 1-bit transfer operation is performed for a fixed time (t2).
The bit serial transfer operation of the printer type code is ended by repeating the same number of times as the number of bits N forming the printer type code at intervals (step 228) (step 23).
0 Y branch).

【0029】図4には、プリンタ2から「+5V」信号
線を介してプリンタ種別コードをビットシリアルに転送
する場合のタイミングチャート、およびそれに対応して
「ACKバー」信号線を介して「+5V」信号線を読み
取るタイミング信号を転送する場合のタイミングチャー
トが示してある。
FIG. 4 is a timing chart for transferring the printer type code from the printer 2 to the bit serial via the "+ 5V" signal line, and correspondingly "+ 5V" via the "ACK bar" signal line. A timing chart for transferring a timing signal for reading a signal line is shown.

【0030】以上説明したように、本実施例では既存の
3種のインタフエース信号線を利用して、その用途を一
時変更してプリンタ種別を取得できるようにすることに
より、既存の上位装置のハードウエアの改造をすること
なく、そのプリンタ制御プログラムの修正ですみ、か
つ、オペレータによる接続プリンタの種別の設定を必要
とせず、運用が簡単で、設定ミスによるプリンタ誤動作
がなくなるという効果を有する。
As described above, in the present embodiment, the existing three types of interface signal lines are used to temporarily change the use and acquire the printer type. The printer control program need not be modified without modifying the hardware, and the operator does not need to set the type of the connected printer, and the operation is simple, and the printer malfunction due to a setting error can be eliminated.

【0031】第1と第3の発明は、それぞれ従来の上位
装置に本実施例のような上位装置の機能を備えた場合の
プリンタ種別取得方法とプリンタ種別取得装置を記載
し、第2と第4の発明は、それぞれ、従来の上位装置に
本実施例のような上位装置の機能を備えかつプリンタは
本実施例のプリンタを含む場合のプリンタ種別取得方法
とプリンタ種別取得装置を記載している。
The first and third inventions describe a printer type acquisition method and a printer type acquisition device, respectively, in the case where the conventional upper level device is provided with the functions of the higher level device as in this embodiment, respectively. The invention of No. 4 describes a printer type acquisition method and a printer type acquisition device in the case where a conventional host device is provided with the functions of the host device as in this embodiment and the printer includes the printer of this embodiment. .

【0032】[0032]

【発明の効果】以上説明したように、本発明のプリンタ
種別取得方法および装置は、既存の3種のインタフエー
ス信号線を利用して、その用途を一時変更してプリンタ
種別を取得できるようにすることにより、既存の上位装
置のハードウエアの改造をすることなく、そのプリンタ
制御プログラムの修正ですみ、かつ、オペレータによる
接続プリンタの種別の設定を必要とせず、運用が簡単
で、設定ミスによるプリンタ誤動作がなくなるという効
果を有する。
As described above, the printer type acquiring method and apparatus of the present invention can use the existing three types of interface signal lines to temporarily change the use and acquire the printer type. By doing so, it is only necessary to modify the printer control program without modifying the hardware of the existing higher-level device, and the operator does not need to set the type of connected printer, and the operation is easy and This has the effect of eliminating malfunction of the printer.

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

【図1】本発明のプリンタ種別取得装置の一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a printer type acquisition device of the present invention.

【図2】本実施例のプリンタ種別取得装置における上位
装置の動作の一例を示す流れ図である。
FIG. 2 is a flowchart showing an example of the operation of a higher-level device in the printer type acquisition device of this embodiment.

【図3】本実施例のプリンタ種別取得装置におけるプリ
ンタの動作の一例を示す流れ図である。
FIG. 3 is a flowchart showing an example of the operation of the printer in the printer type acquisition device of the present embodiment.

【図4】プリンタ種別コードのビットシリアル転送のタ
イムチャートである。
FIG. 4 is a time chart of bit serial transfer of a printer type code.

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

1 上位装置 2 プリンタ 11 問合せコマンド送出部 12 「+5V」信号線データ読出し蓄積部 13 蓄積データ解読部 21 問合せコマンド解読部 22 プリンタ種別コードビットシリアル転送部 1 Upper Device 2 Printer 11 Inquiry Command Sending Unit 12 “+ 5V” Signal Line Data Read-out Storage Unit 13 Stored Data Decoding Unit 21 Inquiry Command Decoding Unit 22 Printer Type Code Bit Serial Transfer Unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 上位装置とプリンタの間のプリンタイン
タフエースとして前記上位装置から前記プリンタへコー
ドデータを転送するデータ信号線と前記プリンタから前
記上位装置へ前記プリンタの電源投入状態を示すデータ
を転送する電源投入状態信号線と前記プリンタから前記
上位装置へ前記プリンタが前記上位装置からのデータを
誤りなく受信したことを示すデータを転送するデータ受
信応答信号線を有し、前記上位装置は前記データ信号線
を介してプリンタ種別を問合せるコマンドを送出し、前
記問合せコマンドの送出に応答して前記データ受信応答
信号線を介して受信するタイミング信号に応じて前記電
源投入状態信号線上のデータを読取り蓄積し、前記読取
り蓄積されたデータを解読して前記プリンタのプリンタ
種別を取得することを特徴とするプリンタ種別取得方
法。
1. A data signal line for transferring code data from the host device to the printer as a printer interface between the host device and the printer, and data indicating the power-on state of the printer from the printer to the host device. And a data reception response signal line that transfers data indicating that the printer has received the data from the higher-level device from the printer to the higher-level device without error, and the higher-level device A command for inquiring the printer type is transmitted via a signal line, and in response to the transmission of the inquiry command, the data on the power-on state signal line is read and accumulated according to the timing signal received via the data reception response signal line. And to acquire the printer type of the printer by decoding the read and accumulated data. Printer type acquisition method characterized by
【請求項2】 プリンタは、データ信号線を介して上位
装置から転送されてきたプリンタ種別を問合せるコマン
ドを受信しこれを解読し、問合せコマンド受信に応答し
て自プリンタの種別コードを電源投入状態信号線を介し
てビットシリアルデータとして送出しその読出しタイミ
ング信号をデータ受信応答信号線を介して送出すること
を特徴とする請求項1記載のプリンタ種別取得方法。
2. The printer receives a command for inquiring the printer type transmitted from the host device via the data signal line, decodes the command, and responds to the reception of the inquiry command by turning on the type code of the printer itself. 2. The printer type acquisition method according to claim 1, wherein the read timing signal is transmitted as bit serial data through a signal line and the read timing signal is transmitted through a data reception response signal line.
【請求項3】 上位装置とプリンタの間のプリンタイン
タフエースとして前記上位装置から前記プリンタへコー
ドデータを転送するデータ信号線と前記プリンタから前
記上位装置へ前記プリンタの電源投入状態を示すデータ
を転送する電源投入状態信号線と前記プリンタから前記
上位装置へ前記プリンタが前記上位装置からのデータを
誤りなく受信したことを示すデータを転送するデータ受
信応答信号線を有し、前記上位装置は前記データ信号線
を介してプリンタ種別を問合せるコマンドを送出する問
合せコマンド送出手段と、前記問合せコマンドの送出に
応答して前記データ受信応答信号線を介して受信するタ
イミング信号に応じて前記電源投入状態信号線上のデー
タを読取り蓄積する電源投入状態信号線データ読出し蓄
積手段と、前記読取り蓄積されたデータを解読して前記
プリンタのプリンタ種別を取得する蓄積データ解読手段
とを含むことを特徴とするプリンタ種別取得装置。
3. A data signal line for transferring code data from the host device to the printer as a printer interface between the host device and the printer, and data indicating a power-on state of the printer from the printer to the host device. And a data reception response signal line that transfers data indicating that the printer has received the data from the higher-level device from the printer to the higher-level device without error, and the higher-level device Inquiry command transmitting means for transmitting a command for inquiring about the printer type via a signal line, and on the power-on state signal line in response to a timing signal received via the data reception response signal line in response to the transmission of the inquiry command Power-on state signal line data reading and storing means for reading and storing the data of And a stored data decoding means for decoding the stored data to acquire the printer type of the printer.
【請求項4】 プリンタには、データ信号線を介して上
位装置から転送されてきたプリンタ種別を問合せるコマ
ンドを受信しこれを解読する問合せコマンド解読手段
と、問合せコマンド受信に応答して自プリンタの種別コ
ードを電源投入状態信号線を介してビットシリアルデー
タとして送出しその読出しタイミング信号をデータ受信
応答信号線を介して送出するプリンタ種別コードビット
シリアル転送手段とを含むことを特徴とする請求項3記
載のプリンタ種別取得装置。
4. The printer receives inquiry commands transmitted from a higher-level device via a data signal line for inquiring about the printer type, and decodes the inquiry command, and responds to the inquiry command reception by the own printer. 4. A printer type code bit serial transfer means for transmitting a type code as bit serial data through a power-on status signal line and transmitting a read timing signal thereof through a data reception response signal line. The printer type acquisition device described.
JP6226502A 1994-09-21 1994-09-21 Printer type acquisition method and apparatus Pending JPH0895720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6226502A JPH0895720A (en) 1994-09-21 1994-09-21 Printer type acquisition method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6226502A JPH0895720A (en) 1994-09-21 1994-09-21 Printer type acquisition method and apparatus

Publications (1)

Publication Number Publication Date
JPH0895720A true JPH0895720A (en) 1996-04-12

Family

ID=16846125

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6226502A Pending JPH0895720A (en) 1994-09-21 1994-09-21 Printer type acquisition method and apparatus

Country Status (1)

Country Link
JP (1) JPH0895720A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010204194A (en) * 2009-02-27 2010-09-16 Canon Inc Image forming apparatus and method of controlling the same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6240522A (en) * 1985-08-16 1987-02-21 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Printer
JPS63113625A (en) * 1986-10-30 1988-05-18 Nec Home Electronics Ltd Printer
JPH05341928A (en) * 1992-06-11 1993-12-24 Seiko Epson Corp Printer information inquiry communication method
JPH0632029A (en) * 1992-07-14 1994-02-08 Nec Ic Microcomput Syst Ltd Printer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6240522A (en) * 1985-08-16 1987-02-21 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Printer
JPS63113625A (en) * 1986-10-30 1988-05-18 Nec Home Electronics Ltd Printer
JPH05341928A (en) * 1992-06-11 1993-12-24 Seiko Epson Corp Printer information inquiry communication method
JPH0632029A (en) * 1992-07-14 1994-02-08 Nec Ic Microcomput Syst Ltd Printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010204194A (en) * 2009-02-27 2010-09-16 Canon Inc Image forming apparatus and method of controlling the same

Similar Documents

Publication Publication Date Title
KR100456180B1 (en) A peripheral device and control method thereof
US6058440A (en) Programmable and adaptive resource allocation device and resource use recorder
JPH0548017B2 (en)
JPH06507748A (en) Parallel interface for connecting data processing equipment
JP3134256B2 (en) Printer bidirectional communication method
JP2645223B2 (en) Two-way communication method
JP2636206B2 (en) Information processing system
JP3784624B2 (en) Communication direction switching method
JP6631370B2 (en) Microcomputer and electronic control unit
JP3472638B2 (en) Bidirectional communication switching device and bidirectional communication switching method
JP2576236B2 (en) Communication method of programmable controller
JP2982811B2 (en) Access control device
JP3068701U (en) Printer device
JPH0566613B2 (en)
JP3264770B2 (en) Facsimile machine
JP2570500Y2 (en) Communication control device
JP2000172452A (en) Interface device, host computer, control method thereof, and information recording medium
JPH077770A (en) Distant monitoring equipment
JPH11243643A (en) Remote monitoring control device and recording medium recording remote monitoring control program for executing the same
JP2006119702A (en) Two-way communication system, host device and device unit
JPH06161914A (en) Input/output processor and its diagnostic system
JPH0535380A (en) Communication system for key signal
JP2000295306A (en) Data communication method and device for transmitting telegram in character units
JPS6161584B2 (en)
JPH03246604A (en) Input/output information transmission system for programmable controller system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970603