JPH077331B2 - Control device - Google Patents

Control device

Info

Publication number
JPH077331B2
JPH077331B2 JP3067908A JP6790891A JPH077331B2 JP H077331 B2 JPH077331 B2 JP H077331B2 JP 3067908 A JP3067908 A JP 3067908A JP 6790891 A JP6790891 A JP 6790891A JP H077331 B2 JPH077331 B2 JP H077331B2
Authority
JP
Japan
Prior art keywords
command
computer
printer
control device
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3067908A
Other languages
Japanese (ja)
Other versions
JPH04278629A (en
Inventor
泰治 渡辺
Original Assignee
株式会社メルコ
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 株式会社メルコ filed Critical 株式会社メルコ
Priority to JP3067908A priority Critical patent/JPH077331B2/en
Publication of JPH04278629A publication Critical patent/JPH04278629A/en
Publication of JPH077331B2 publication Critical patent/JPH077331B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータの周辺に
用いられる制御装置に関し、詳しくはプリンタバッフ
ァ,切換器等の介在手段に、または介在手段を介して接
続されたプリンタ等の周辺機器に、制御用のコマンドを
発行する制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device used in the periphery of a computer, and more specifically to an intervening means such as a printer buffer and a switch, or a peripheral device such as a printer connected via the intervening means. The present invention relates to a control device that issues a control command.

【0002】[0002]

【従来の技術】近年、コンピュータとその周辺機器との
間に介装されて両者間のデータのやり取りに介在するバ
ッファ,切換器等の各種介在手段が、広汎に用いられて
いる。例えば、プリンタとの間に接続されてデータのバ
ッファリングを行なうプリンタバッファ、複数台のコン
ピュータ(またはプリンタ)から1台のプリンタ(また
はコンピュータ)を使用可能とするプリンタ切換器、大
容量のハードディスク装置との間に介装されて高速のデ
ータアクセスを可能とするキャッシュメモリ装置、ホス
トコンピュータとの間のデータの転送を扱うモデム等を
挙げることができる。
2. Description of the Related Art In recent years, various intervening means such as a buffer and a switch, which are interposed between a computer and its peripherals and intervene in data exchange between them, have been widely used. For example, a printer buffer that is connected to a printer to buffer data, a printer switching device that enables one printer (or computer) to be used by a plurality of computers (or printers), and a large-capacity hard disk device. Examples thereof include a cache memory device interposed between and to enable high-speed data access, a modem for handling data transfer with a host computer, and the like.

【0003】これらの介在手段には、例えばプリンタの
接続状態の切換など、各種の設定が存在する。従来、こ
うした切換は、介在手段に設けられたスイッチを直接操
作して行なわれていたが、操作性を改善するために、最
近では、コンピュータ側からコマンドを送ることで、プ
リンタとの接続状態を切り換えたり、バッファの内容を
消去可能としたり、バッファの内容を複数回出力可能と
してプリンタに複数部印刷させるといった種々の機能が
付加されている。
Various settings exist in these intervening means, for example, switching of the connection state of the printer. Conventionally, such switching has been performed by directly operating the switch provided in the intervening means, but recently, in order to improve operability, a command is sent from the computer side to change the connection state with the printer. Various functions are added such as switching, erasing the contents of the buffer, outputting the contents of the buffer a plurality of times, and causing a printer to print a plurality of copies.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、コンピ
ュータからコマンドを送信する構成では、他のアプリケ
ーションソフトとの共存を図るため、オペレーティング
システム(以下OSという)に組み込まれる常駐型ソフ
トを開発しなければならない。この場合、各OS毎、ま
たそのOSが登載されるコンピュータの機種毎にソフト
ウェアを開発しなければならず、開発に膨大な手間を要
するという問題があった。
However, in the configuration in which the command is transmitted from the computer, in order to coexist with other application software, it is necessary to develop resident software incorporated in the operating system (hereinafter referred to as OS). . In this case, software has to be developed for each OS and for each computer model on which the OS is installed, which poses a problem that enormous effort is required for the development.

【0005】常駐型ソフトの場合、その起動は、通常、
ホットキーと呼ばれるキーの操作(例えば、コントロー
ルキー+ヘルプキー)により行なわれる。従って、少な
くともこのホットキーの操作を検出する部分はメモリの
一部に常駐する必要があり、メモリの大部分を占有する
タイプのアプリケーションでは、常駐型ソフトが動作し
ない場合も考えられた。
In the case of resident software, it is normally started
It is performed by operating a key called a hot key (for example, control key + help key). Therefore, at least the part for detecting the operation of the hot key needs to be resident in a part of the memory, and in the type of application that occupies most of the memory, the resident software may not operate.

【0006】一方、こうした制御用コマンドを発行する
制御装置をプリンタバッファ等の介在手段に設けること
も考えられるが、コマンドを発行させるためにいちいち
介在手段の側までゆかねばならず、コンピュータと介在
手段との間が隔たっている場合には、使いにくいものと
なってしまう。また、介在手段にこうした制御装置を接
続可能にしようとすると、各種介在手段の形態に合わせ
て、複数種類の制御装置を作らねばならず、開発・製造
に相当の手間を要するという問題があり、現実的な解決
とはならない。
On the other hand, it is conceivable to provide a control device for issuing such a control command in an intervening means such as a printer buffer, but in order to issue the command, it is necessary to go to the intervening means side one by one, and the computer and the intervening means are required. If there is a gap between them, it becomes difficult to use. Further, if it is attempted to connect such a control device to the intervening means, there is a problem in that it is necessary to make a plurality of types of control devices according to the form of various intervening means, which requires considerable labor for development and manufacturing. It is not a realistic solution.

【0007】本発明の制御装置は、こうした問題を解決
し、コンピュータとその周辺機器との間に介装された介
在手段に、使い勝手よく制御用のコマンドを出力するこ
とを目的としている。このために、本発明の制御装置は
次の構成を採った。
The control device of the present invention aims to solve these problems and output a command for control to the intervening means interposed between the computer and its peripheral equipment in a convenient manner. Therefore, the control device of the present invention has the following configuration.

【0008】[0008]

【課題を解決するための手段】本発明の制御装置は、コ
ンピュータとその周辺機器との間に介装されて両者間の
データのやり取りに介在するバッファ,切換器等の介在
手段に接続され、該介在手段を制御する制御装置であっ
て、前記介在手段および前記コンピュータとは別体に設
けられ、前記介在手段を制御するコマンドの発行を指示
する指示手段と、前記コンピュータと前記介在手段との
データの伝送路に設けられ、前記指示手段により、コマ
ンドの発行が指示されたとき、前記コンピュータと前記
介在手段とのデータのやり取りを中断しもしくは無関係
に、前記コマンドを前記介在手段に出力するコマンド出
力手段とを備えたことを要旨とする。
A control device of the present invention is connected to an intervening means such as a buffer and a switching device which is interposed between a computer and its peripheral equipment and which intervenes in exchanging data between them. A control device for controlling the intervening means, the instruction means being provided separately from the intervening means and the computer, for instructing issuance of a command for controlling the intervening means, and the computer and the intervening means. A command that is provided on a data transmission path and outputs the command to the intervening means when the command is instructed by the instructing means, interrupting or unrelated to the data exchange between the computer and the intervening means The gist is to have an output means.

【0009】[0009]

【作用】本発明の制御装置では、バッファ,切換器等の
介在手段およびコンピュータとは別体に設けられた指示
手段により、介在手段を制御するコマンドの発行を指示
する。このとき、コンピュータと介在手段とのデータの
伝送路に設けられたコマンド出力手段は、介在手段制御
用のコマンドを介在手段に出力する。コマンドの発行が
指示されていないときには、コンピュータとその周辺機
器との間のデータの伝送は、介在手段を介して行なわれ
ており、コマンドの発行が指示されたときには、このデ
ータの伝送を中断して、もしくはデータの伝送とは無関
係に、コマンドの出力が行なわれる。コマンドを受けた
介在手段は、予め設定された制御、例えば接続状態の変
更やバッファクリアなどの制御を行なうのである。
In the control device of the present invention, the issuing of a command for controlling the intervening means is instructed by the intervening means such as the buffer and the switch and the instruction means provided separately from the computer. At this time, the command output means provided on the data transmission path between the computer and the intervening means outputs a command for controlling the intervening means to the intervening means. When the command issuance is not instructed, the data transmission between the computer and its peripheral device is performed through the intervening means, and when the command issuance is instructed, the data transmission is interrupted. Command output is performed regardless of the transmission of data. Upon receiving the command, the intervening means performs preset control, such as control of changing the connection state and clearing the buffer.

【0010】ここで、コマンド出力手段は、コンピュー
タからプリンタ等の介在手段に接続された印字用のケー
ブルの途中に設けてもよい。また、データの伝送が電
波,光(可視光,赤外光等),超音波等を用いて行なわ
れる場合には、その少なくともひとつにより、介在手段
にコマンドを出力するいわばリモコンとして構成しても
よい。
Here, the command output means may be provided in the middle of a printing cable connected from the computer to an intervening means such as a printer. When data is transmitted using radio waves, light (visible light, infrared light, etc.), ultrasonic waves, etc., it may be configured as a remote controller that outputs a command to the intervening means by at least one of them. Good.

【0011】[0011]

【実施例】以上説明した本発明の構成・作用を一層明ら
かにするために、以下本発明の好適な実施例について説
明する。図1は、本発明一実施例としての制御装置の接
続関係を示す構成図である。この制御装置1は、コンピ
ュータ3のプリンタ接続ポート5に専用ケーブル7によ
り接続されている。制御装置1は、この専用ケーブル7
が接続された入力コネクタ11と共に出力コネクタ12
を備え、この出力コネクタ12には、プリンタの切換機
能を有するプリンタバッファ15が接続されている。プ
リンタバッファ15には、3台のプリンタ21,22お
よびプロッタ24が接続されている。
Preferred embodiments of the present invention will be described below in order to further clarify the structure and operation of the present invention described above. FIG. 1 is a configuration diagram showing a connection relationship of a control device as an embodiment of the present invention. The control device 1 is connected to the printer connection port 5 of the computer 3 by a dedicated cable 7. The control device 1 uses the dedicated cable 7
Output connector 12 together with input connector 11 connected to
A printer buffer 15 having a printer switching function is connected to the output connector 12. Three printers 21, 22 and a plotter 24 are connected to the printer buffer 15.

【0012】従って、制御装置1は、コンピュータ3か
らプリンタバッファ15を介してプリンタ等に至るいわ
ゆるセントロニクス社仕様のプリンタ用信号線の途中に
介在することになる。セントロニクス社仕様とは、8ビ
ットのパラレルデータをビジー信号BUSYを用いてハ
ンドシェークしながら送信するプリンタ用の仕様であ
り、各信号線の役割およびその電気的な特性等が定めれ
ている。通常のパーソナルコンピュータ等におけるプリ
ンタ用信号線としては、事実上の標準となっている。
Therefore, the control device 1 is interposed in the middle of the so-called Centronics printer signal line from the computer 3 to the printer or the like via the printer buffer 15. The Centronics specifications are specifications for a printer that transmits 8-bit parallel data while handshaking using a busy signal BUSY, and defines the role of each signal line and its electrical characteristics. It has become the de facto standard as a signal line for a printer in an ordinary personal computer or the like.

【0013】制御装置1の構成について説明する。図2
は、制御装置1の内部構成を示すブロック図である。図
示するように、この制御装置1は、ROM,RAMを内
蔵し複数ビットの入出力ポートを備えた1チップのマイ
クロプロセッサ(MPU)31を中心に構成され、この
MPU31の制御により動作する。MPU31の入出力
ポートのうち所定の8ビットは、データ出力ポートDと
して用いられており、双方向性のトライステートバッフ
ァ33の一方のポートに接続されている。
The configuration of the control device 1 will be described. Figure 2
FIG. 3 is a block diagram showing an internal configuration of the control device 1. As shown in the figure, the control device 1 is mainly composed of a one-chip microprocessor (MPU) 31 having a built-in ROM and RAM and having a plurality of bit input / output ports, and operates under the control of this MPU 31. Of the input / output ports of the MPU 31, predetermined 8 bits are used as the data output port D and are connected to one port of the bidirectional tristate buffer 33.

【0014】このトライステートバッファ33の他方の
ポートは、いま一つのトライステートバッファ35のポ
ートと共に、出力コネクタ12に接続されている。トラ
イステートバッファ35の他方のポートは、入力コネク
タ11に接続されている。トライステートバッファ35
を通る信号は、8ビットの印字データP0ないしP7
と、プリンタ21,22等からのビジー信号BUSYで
ある。
The other port of the tri-state buffer 33 is connected to the output connector 12 together with the port of the other tri-state buffer 35. The other port of the tri-state buffer 35 is connected to the input connector 11. Tri-state buffer 35
The signal passing through is the 8-bit print data P0 to P7.
And a busy signal BUSY from the printers 21, 22 and the like.

【0015】プリンタバッファ15を介してプリンタ2
1等から出力されるビジー信号BUSYは、ハイレベル
の間プリンタ21等がデータを受け付けられないことを
示す信号であり、制御装置1内では、MPU31の入力
ポートPA1と、オアゲート38とに接続されている。
このオアゲート38の他方の入力端子は、MPU31の
出力ポートPB1に接続されており、その出力はトライ
ステートバッファ35を介して入力コネクタ11に接続
されている。
Printer 2 via printer buffer 15
The busy signal BUSY output from 1 or the like is a signal indicating that the printer 21 or the like cannot accept data during the high level, and is connected to the input port PA1 of the MPU 31 and the OR gate 38 in the control device 1. ing.
The other input terminal of the OR gate 38 is connected to the output port PB1 of the MPU 31, and its output is connected to the input connector 11 via the tristate buffer 35.

【0016】2個のトライステートバッファ33,35
はワイヤードオア接続されており、各々のイネーブル端
子に排他的な信号が入力される構成となっている。即
ち、MPU31の出力ポートPB2に対して、トライス
テートバッファ33のイネーブル端子は直接に、一方ト
ライステートバッファ35のイネーブル端子はインバー
タ39を介して、各々接続されている。
Two tri-state buffers 33 and 35
Are wired-OR connected, and an exclusive signal is input to each enable terminal. That is, the enable terminal of the tri-state buffer 33 is directly connected to the output port PB2 of the MPU 31, and the enable terminal of the tri-state buffer 35 is connected to the output port PB2 via the inverter 39.

【0017】MPU31のその他の入力ポートPC1な
いしPC7には、制御装置1のフロントパネルに設けら
れたコマンドキー41ないし45および設定キー46,
47が接続されている。コマンドキー41ないし45
は、プリンタバッファ15への制御用のコマンドの送出
指示を行なうものであり、設定キー46,47は、コマ
ンドキー41ないし45へのコマンドの割付を行なうも
のである。これらの使い方については、後述する。
The other input ports PC1 to PC7 of the MPU 31 are provided with command keys 41 to 45 and a setting key 46, which are provided on the front panel of the controller 1.
47 is connected. Command keys 41 to 45
Is to issue a control command to the printer buffer 15, and the setting keys 46 and 47 are to assign commands to the command keys 41 to 45. How to use these will be described later.

【0018】次に、MPU31が行なう処理について、
図3のフローチャートを用いて説明する。MPU31
は、図3に示すコマンド出力処理ルーチンを繰り返し実
行しており、通常キースキャンを行ないつつ(ステップ
100)、コマンドキー41ないし45および設定キー
46,47が操作されるまで待機している(ステップ1
10)。
Next, regarding the processing performed by the MPU 31,
This will be described with reference to the flowchart of FIG. MPU31
3 repeatedly executes the command output processing routine shown in FIG. 3, and normally waits until the command keys 41 to 45 and the setting keys 46 and 47 are operated (step 100) while performing a key scan (step 100). 1
10).

【0019】コマンドキー41ないし45が操作された
場合には(ステップ110)、各コマンドキー41ない
し45に対応して予め設定されたコマンドをRAMから
読み出し(ステップ120)、続いてビジーマスクをセ
ットする処理を行なう(ステップ130)。ここで、ビ
ジーマスクをセットする処理とは、MPU31の出力ポ
ートPB1をハイレベルに反転する処理である。出力ポ
ートPB1がハイレベルに反転すると、オアゲート38
の出力は、プリンタバッファ15からのビジー信号BU
SYの如何にかかわらずハイレベルとなる。
When the command keys 41 to 45 are operated (step 110), the command preset corresponding to each command key 41 to 45 is read from the RAM (step 120), and then the busy mask is set. Processing is performed (step 130). Here, the process of setting the busy mask is a process of inverting the output port PB1 of the MPU 31 to a high level. When the output port PB1 is inverted to the high level, the OR gate 38
Is the busy signal BU from the printer buffer 15.
It goes high regardless of SY.

【0020】次に、MPU31は、入力ポートPA1の
状態を確認して、ビジー信号BUSYがロウレベル(=
0)であるか否かの判断を行ない、ビジー信号BUSY
がハイレベルであれば、現在プリンタ21等がデータを
受信中と判断して、受信動作が完了するまで待機する
(ステップ140)。出力ポートPB1をハイレベルと
したことにより(ステップ130)、プリンタバッファ
15からのビジー信号BUSYがハイレベルからロウレ
ベルに反転しても、コンピュータ3に出力されるビジー
信号BUSYはハイレベルに保たれる。従って、コンピ
ュータ3がデータを出力中である場合には、プリンタ2
1等は、現在受信中のデータの入力処理を完了すると、
コンピュータ3をしばらく待たせ、制御装置1からのコ
マンドを受け取ることが可能な状態となる。
Next, the MPU 31 confirms the state of the input port PA1 and confirms that the busy signal BUSY is at low level (=
0) to determine whether the busy signal BUSY
Is high, it is determined that the printer 21 or the like is currently receiving data, and the process waits until the receiving operation is completed (step 140). By setting the output port PB1 to the high level (step 130), even if the busy signal BUSY from the printer buffer 15 is inverted from the high level to the low level, the busy signal BUSY output to the computer 3 is kept at the high level. . Therefore, when the computer 3 is outputting data, the printer 2
When the 1st class completes the input process of the data currently being received,
The computer 3 is made to wait for a while, and the command from the control device 1 can be received.

【0021】プリンタバッファ15からのビジー信号B
USYがロウレベルとなったとき(ステップ140)、
MPU31は、出力ポートPB2の出力をロウレベルに
反転し、バス切換を行なう(ステップ150)。この結
果、MPU31のポートDに接続されたトライステート
バッファ33がイネーブル状態となり、コンピュータ3
側とのラインに設けられたトライステートバッファ35
の入出力はハイインピーダンス状態となる。
Busy signal B from printer buffer 15
When USY goes low (step 140),
The MPU 31 inverts the output of the output port PB2 to low level, and performs bus switching (step 150). As a result, the tri-state buffer 33 connected to the port D of the MPU 31 is enabled and the computer 3
Tristate buffer 35 provided on the line with the side
The input and output of are in the high impedance state.

【0022】この切換の様子を図4に示す。MPU31
の出力ポートPB2が切り換えられる前は、(A)に示
すように、データ転送はコンピュータ3とプリンタバッ
ファ15との間で行なわれているが、出力ポートPB2
の出力がロウレベルに切り換えられると、(B)に示す
ように、MPU31からプリンタバッファ15にコマン
ド転送が可能となるのである。
The state of this switching is shown in FIG. MPU31
Before the output port PB2 is switched, the data transfer is performed between the computer 3 and the printer buffer 15 as shown in FIG.
When the output of is switched to the low level, the command can be transferred from the MPU 31 to the printer buffer 15 as shown in (B).

【0023】そこで、MPU31は、バスの切換を行な
った後、コマンドの出力を行なう(ステップ160)。
ここで出力されるコマンドは、操作されたコマンドキー
41ないし45に応じてRAMから読み出されたコマン
ドである。コマンドは、通常のデータに含まれない特殊
な文字列、例えば「@BF」等で始まる文字列とこれに
続く所定のコマンド文字列とから構成されている。これ
らのコマンドは、プリンタバッファ15に受け取られて
その機能を切り換えるだけでなく、場合によってはプリ
ンタバッファ15を通過してプリンタ21等に至り、プ
リンタ21等の諸機能(例えば印字速度や印字フォント
等)を切り換える。なお、コマンドの出力に伴って、こ
のコマンドの入力を完了するまでの間、ビジー信号BU
SYはハイレベルに反転する。
Therefore, the MPU 31 outputs the command after switching the buses (step 160).
The command output here is a command read from the RAM in accordance with the operated command key 41 to 45. The command is composed of a special character string not included in normal data, for example, a character string starting with “@BF” and the like, and a predetermined command character string following the character string. These commands are not only received by the printer buffer 15 to switch their functions, but also pass through the printer buffer 15 and reach the printer 21 or the like in some cases. ) Is switched. Note that, along with the output of the command, until the input of this command is completed, the busy signal BU
SY is inverted to high level.

【0024】続いて、MPU31は、入力ポートPA1
の状態をチェックして、ビジー信号BUSYがロウレベ
ルに反転するまで待機し(ステップ170)、ビジー信
号BUSYがロウレベルとなった後、ビジーマスクのリ
セットとバス切換とを行なう(ステップ180)。ビジ
ーマスクのリセットは出力ポートPB1をロウレベルに
落とすことにより、またバス切換は出力ポートPB2を
ハイレベルに反転することにより行なう。
Subsequently, the MPU 31 has the input port PA1.
The state is checked, and it waits until the busy signal BUSY is inverted to the low level (step 170). After the busy signal BUSY becomes the low level, the busy mask is reset and the bus is switched (step 180). The busy mask is reset by dropping the output port PB1 to low level, and the bus switching is performed by inverting the output port PB2 to high level.

【0025】以上の処理の後、「END」に抜けて本処
理ルーチンを終了する。なお、キー入力が設定キーであ
ると判断された場合には(ステップ110)、コマンド
の設定処理を行ない(ステップ200)、「END」に
抜けて本ルーチンを終了する。
After the above processing, the process goes to "END" to end this processing routine. When it is determined that the key input is the setting key (step 110), command setting processing is performed (step 200), the process ends in "END" and the present routine ends.

【0026】本実施例では、コマンドキー41ないし4
5には、図5に示すように、5つのコマンドが各々設定
されている。コマンドキー41に設定されたコマンドA
は、プリンタバッファ15に対する制御コマンドであ
り、プリンタ21,22またはプロッタ24の切換を行
なうコマンドである。コマンドキー41を操作する度に
切換コマンドが出力され、コンピュータ3のデータを打
ち出す機器が順番に切り換えられる。コマンドキー42
に設定されたコマンドBは、プリンタバッファ15のバ
ッファの内容をクリアするコマンドである。
In this embodiment, the command keys 41 to 4 are used.
Five commands are set in each of the five commands, as shown in FIG. Command A set in command key 41
Is a control command for the printer buffer 15 and is a command for switching the printers 21, 22 or the plotter 24. Each time the command key 41 is operated, a switching command is output, and the devices of the computer 3 that output data are switched in order. Command key 42
The command B set to is a command for clearing the contents of the printer buffer 15.

【0027】コマンドキー43に設定されたコマンドC
は、プリンタバッファ15からプリンタ21等へのデー
タの出力を一時的に停止するコマンドであり、このコマ
ンドキー43を操作する度に、プリンタ21等は、出力
の一時停止と再開とを繰り返す。また、コマンドキー4
4に設定されたコマンドDは、プリンタ21等まで送ら
れるプリンタ用の制御コマンドであり、プリンタのエミ
ュレーションモードを切り換えるものである。このコマ
ンドキー44を操作する度に、プリンタ21等は、その
エミュレーションモードを順次切り換える。コマンドキ
ー45に設定されたコマンドEも、プリンタ21等まで
送られるプリンタ用の制御コマンドであり、プリンタの
印字速度を高速と通常とに切り換えるものである。この
コマンドキー45を操作する度に、接続されたプリンタ
21等の印字速度は高速と通常とに切り換えられる。
Command C set in command key 43
Is a command for temporarily stopping the output of data from the printer buffer 15 to the printer 21 or the like, and each time the command key 43 is operated, the printer 21 or the like repeatedly suspends and restarts the output. Also, command key 4
The command D set to 4 is a control command for the printer sent to the printer 21 and the like, and switches the emulation mode of the printer. Each time the command key 44 is operated, the printer 21 or the like sequentially switches its emulation mode. The command E set in the command key 45 is also a control command for the printer that is sent to the printer 21 and the like, and switches the printing speed of the printer between high speed and normal. Each time the command key 45 is operated, the printing speed of the connected printer 21 or the like is switched between high speed and normal.

【0028】コマンドキー41ないし45にコマンドを
設定する処理(図3、ステップ200)は、次のように
行なわれる。制御装置1は、内蔵するROMに予めほと
んどのコマンドを記憶しているが、コンピュータ3か
ら、RAMにコマンドをダウンロードすることも可能で
ある。設定キー46を1回操作すると、制御装置1はコ
マンド記憶モードとなる。この状態で、設定キー47を
操作すると、ROMに記憶されたコマンドが順次呼び出
される。マニュアル等を参照して所定回数設定キー47
を操作し、所望のコマンドが呼び出されたとき設定キー
46を操作する。この結果、所望のコマンドがRAMに
記憶され、次にそのコマンドキー41ないし45を操作
すると、既述した処理により、コマンドキー41ないし
45に対応するコマンドAないしEが、プリンタバッフ
ァ15もしくはプリンタバッファ15を介してプリンタ
21等に出力される。
The process of setting commands in the command keys 41 to 45 (step 200 in FIG. 3) is performed as follows. The control device 1 stores most of the commands in the built-in ROM in advance, but it is also possible to download the commands from the computer 3 to the RAM. When the setting key 46 is operated once, the control device 1 enters the command storage mode. When the setting key 47 is operated in this state, the commands stored in the ROM are sequentially called. Refer to the manual, etc., and set the preset number of times 47
When the desired command is called, the setting key 46 is operated. As a result, the desired command is stored in the RAM, and when the command key 41 to 45 is operated next, the commands A to E corresponding to the command key 41 to 45 are transmitted to the printer buffer 15 or the printer buffer by the processing described above. It is output to the printer 21 or the like via 15.

【0029】以上説明した本実施例の制御装置1は、コ
ンピュータ3の近くに設置することができるから、プリ
ンタバッファ15やプリンタ21等の状態を切り換える
のに、コンピュータ3から離れていちいちプリンタバッ
ファ15やプリンタ21等の近くに行く必要がない。し
かも、制御装置1は、プリンタ用信号線の事実上の標準
であるセントロニクス規格の信号線に介装されるから、
コンピュータ3やプリンタバッファ15あるいはプリン
タ21等の機種に依存することがない。また、コマンド
を出力するソフトをコンピュータ3のOS等に組み込む
必要がなく、この点でも、コンピュータ3の機種やOS
の種類に依存することがない。この結果、開発の労力が
大幅に軽減され、更に制御装置1をコンピュータ3等の
種類に応じて用意する必要がないので、生産工程の管理
や在庫管理も容易となる。また、コンピュータ3の常駐
型ソフトを組み込む必要がないので、コンピュータ3で
使用中のアプリケーションがメモリの大部分を占有する
ものであっても、プリンタバッファ15等のコマンドに
よる切換が可能となる。
Since the control device 1 of the present embodiment described above can be installed near the computer 3, the printer buffer 15 is moved away from the computer 3 to switch the states of the printer buffer 15 and the printer 21. There is no need to go near the printer 21 or the like. Moreover, since the control device 1 is installed in the signal line of the Centronics standard, which is the de facto standard of the signal line for the printer,
It does not depend on the model of the computer 3, the printer buffer 15 or the printer 21. Further, it is not necessary to incorporate software for outputting a command into the OS or the like of the computer 3, and also in this respect, the model or the OS of the computer 3
Does not depend on the type of. As a result, the labor of development is greatly reduced, and since it is not necessary to prepare the control device 1 according to the type of the computer 3 or the like, the management of the production process and the stock management become easy. Further, since it is not necessary to incorporate the resident software of the computer 3, even if the application being used in the computer 3 occupies most of the memory, it is possible to switch by the command of the printer buffer 15 or the like.

【0030】以上、本発明の一実施例について説明した
が、本発明はこの実施例に限定されるものではなく、例
えば、コンピュータに接続されたキャッシュメモリとの
間に本発明の制御装置が接続された構成、RS−232
C等の通信ラインに介装されたモデムなどの間に本発明
の制御装置が接続された構成、データのやり取りを無線
で行なう介在手段に対しデータの伝送を中断することな
く制御用のコマンドを送信する構成など、本発明の要旨
を逸脱しない範囲内において、種々なる態様で実施でき
ることは勿論である。
Although one embodiment of the present invention has been described above, the present invention is not limited to this embodiment. For example, the control device of the present invention is connected to a cache memory connected to a computer. Configuration, RS-232
A configuration in which the control device of the present invention is connected between a modem or the like interposed in a communication line such as C, and control commands can be issued to an intervening means for wirelessly exchanging data without interrupting data transmission. Needless to say, the present invention can be implemented in various modes without departing from the scope of the present invention, such as the configuration for transmitting.

【0031】[0031]

【発明の効果】以上、実施例を挙げて詳述したように、
本発明の制御装置では、コンピュータの側を離れること
なくプリンタバッファなどの介在手段にコマンドを出力
することができ、しかも常駐型ソフトなどのコンピュー
タの機種やOSに依存した開発を行なう必要がないとい
う優れた効果を奏する。また、コンピュータやそのOS
あるいは周辺機器の種類などに柔軟に対処することがで
きるといった利点も得られる。
As described above in detail with reference to the embodiments,
In the control device of the present invention, it is possible to output a command to an intervening means such as a printer buffer without leaving the computer side, and it is not necessary to carry out development depending on the computer model or OS such as resident software. It has an excellent effect. Also, a computer and its OS
Alternatively, there is an advantage that it is possible to flexibly deal with the types of peripheral devices.

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

【図1】本発明の一実施例である制御装置の接続関係を
示す構成図である。
FIG. 1 is a configuration diagram showing a connection relationship of a control device according to an embodiment of the present invention.

【図2】制御装置1の内部構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing an internal configuration of a control device 1.

【図3】制御装置1におけるコマンド出力処理ルーチン
を示すフローチャートである。
FIG. 3 is a flowchart showing a command output processing routine in the control device 1.

【図4】制御装置1におけるデータ,コマンドの転送状
態を示す説明図である。
FIG. 4 is an explanatory diagram showing a transfer state of data and commands in the control device 1.

【図5】コマンドキー41ないし45の一例を示す説明
図である。
FIG. 5 is an explanatory diagram showing an example of command keys 41 to 45.

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

1 制御装置3 コンピュータ 15 プリンタバッファ 21,22 プリンタ 24 プロッタ 31 MPU 41ないし45 コマンドキー 46,47 設定キー 1 Control Device 3 Computer 15 Printer Buffer 21, 22 Printer 24 Plotter 31 MPU 41 to 45 Command Key 46, 47 Setting Key

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータとその周辺機器との間に介
装されて両者間のデータのやり取りに介在するバッフ
ァ,切換器等の介在手段に接続され、該介在手段を制御
する制御装置であって、前記介在手段および前記コンピ
ュータとは別体に設けられ、前記介在手段を制御するコ
マンドの発行を指示する指示手段と、前記コンピュータ
と前記介在手段とのデータの伝送路に設けられ、前記指
示手段により、コマンドの発行が指示されたとき、前記
コンピュータと前記介在手段とのデータの伝送を中断し
もしくは該伝送とは無関係に、前記コマンドを前記介在
手段に出力するコマンド出力手段とを備えた制御装置。
1. A control device which is interposed between a computer and its peripheral equipment and which is connected to an intervening means such as a buffer and a switching device for intervening in data exchange between the computer and the peripheral equipment and which controls the intervening means. The instruction means is provided separately from the intervening means and the computer, and is provided in an instruction means for instructing issuance of a command for controlling the intervening means, and in the data transmission path between the computer and the intervening means. A command output means for interrupting the transmission of data between the computer and the intervening means or for outputting the command to the intervening means irrespective of the transmission when the command is issued. apparatus.
【請求項2】 コマンド出力手段は、コンピュータと印
字に関与する介在手段とを接続する印字用ケーブルの途
中に設けられた請求項1記載の制御装置。
2. The control device according to claim 1, wherein the command output means is provided in the middle of a printing cable connecting the computer and the intervening means involved in printing.
JP3067908A 1991-03-06 1991-03-06 Control device Expired - Fee Related JPH077331B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3067908A JPH077331B2 (en) 1991-03-06 1991-03-06 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3067908A JPH077331B2 (en) 1991-03-06 1991-03-06 Control device

Publications (2)

Publication Number Publication Date
JPH04278629A JPH04278629A (en) 1992-10-05
JPH077331B2 true JPH077331B2 (en) 1995-01-30

Family

ID=13358474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3067908A Expired - Fee Related JPH077331B2 (en) 1991-03-06 1991-03-06 Control device

Country Status (1)

Country Link
JP (1) JPH077331B2 (en)

Also Published As

Publication number Publication date
JPH04278629A (en) 1992-10-05

Similar Documents

Publication Publication Date Title
US5600793A (en) Method and system of bi-directional parallel port data transfer between data processing systems
US6067589A (en) USB legacy support system
EP1546898B1 (en) Interface integrated circuit device for a usb connection
JP4377603B2 (en) Bus communication system and communication control method thereof
JPH09179812A (en) Information processing system and its control method
KR20030031255A (en) Universal serial bus device having logical circuit for conversive and immediate USB Host reset operation
EP0427023A2 (en) Data transmission control apparatus for parallel processing system
KR100579203B1 (en) Streamlined AT device initialization method and device
TW201619835A (en) Keyboard-video-mouse switch and operating method thereof
JPH077331B2 (en) Control device
US5146584A (en) Keyboard interface system allowing a synchronous keyboard to communicate with a host processor asynchronously by manipulating the keyboard clock's state
CN110389919B (en) Asynchronous Transceiver Peripheral and System Based on RISC-V Processor
KR20030044373A (en) Universal serial bus device for using direct memory access interface
KR100259585B1 (en) Dma controller
JPS62232057A (en) Pseudo dma system
JPH0452848A (en) Host adaptor
JP2948380B2 (en) Data communication device
SU723563A1 (en) Interface
KR100427169B1 (en) Communication system and data transmission method thereof
JP3876574B2 (en) Motor control equipment
CN117435534A (en) Data transmission circuit, method and processor based on peripheral bus
KR20050037220A (en) Bus interface apparatus for computer system
JPH0429101B2 (en)
JPS6240748B2 (en)
KR20040009955A (en) Universal serial bus interface device for elevating transmission speed of data between host and portable storage device and method thereof

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees