JPH03217937A - Computer device - Google Patents
Computer deviceInfo
- Publication number
- JPH03217937A JPH03217937A JP2012422A JP1242290A JPH03217937A JP H03217937 A JPH03217937 A JP H03217937A JP 2012422 A JP2012422 A JP 2012422A JP 1242290 A JP1242290 A JP 1242290A JP H03217937 A JPH03217937 A JP H03217937A
- Authority
- JP
- Japan
- Prior art keywords
- printer
- port
- dedicated
- general
- dedicated printer
- 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
Links
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は、1以上のプリンタ用ポートを介して接続さ
れる専用プリンタと一般プリンタに対して処理情報を切
り換え出力可能なコンピュータ装置に関するものである
。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a computer device that can switch and output processing information to a dedicated printer and a general printer connected via one or more printer ports. be.
[従来の技術]
近年のパーソナルコンピュータは、これまでに開発され
てきたソフトウエアの資産を活用するため、市場に投入
されたパーソナルコンピュータ装置とハードウエアレベ
ルでの互換性をもつものの重要性が俄に高まりつつある
。[Prior Art] In recent years, it has become increasingly important for personal computers to be compatible at the hardware level with personal computer devices introduced into the market in order to utilize software assets that have been developed up to now. is increasing.
このようなハードウエアレベルでの互換性を保持するた
めには、プリンタ用ポートのアドレスも限定されてくる
が、複数のポートを持つことも可能にするために2〜3
種のアドレスが選定され、それぞれ第1ポート,第2ポ
ート等と規定されることが多い。In order to maintain compatibility at the hardware level, printer port addresses are also limited, but in order to make it possible to have multiple ports, 2-3
Often, different addresses are selected and defined as a first port, a second port, etc., respectively.
また、一方で可搬性を向上するために本体とインタフェ
ースケーブルを介さずに一体化して接続できるプリンタ
を持つコンピュータ装置も存在し、この種の装置におい
ても、そのプリンタ用のポートを前述の第1もしくは第
2ポートに設定する場合が多い。On the other hand, in order to improve portability, there are computer devices that have a printer that can be connected to the main body integrally without using an interface cable, and even in this type of device, the port for the printer is connected to the Alternatively, it is often set to the second port.
更に、上記コンピュータ装置においても、一般のプリン
タに出力するために、専用プリンタのポート以外のとこ
ろに(専用プリンタポートを第1ポートに設定したら第
2ポートに)一般のプリンタのポートを増設することが
可能な構成となっている場合が多い。Furthermore, in the computer device mentioned above, in order to output to a general printer, a general printer port can be added at a location other than the dedicated printer port (if the dedicated printer port is set as the first port, it becomes the second port). In many cases, the configuration is such that this is possible.
しかしながら、上記従来例では出力先を一般的な第1ポ
ートとすることを前提としたソフトウエアを使用する場
合、専用の一体化されたプリンタに出力したり、専用の
プリンタを使用せずに一般のプリンタに出力したり使い
分けをしようとする時は、専用のプリンタ用のポートを
第1ポートとし、−Mのプリンタ用のポートを第2ポー
トとしたり、専用のプリンタ用のポートを第2ポートと
し、一般のプリンタ用のポートを第1ポートとしたり、
設定を変えるか、ソフトウエアの設定の変更が可能な場
合は、出力するポートの設定を第1ポートとしたり、第
2ポートとしたりしなければならないが、これはどちら
も煩雑な手順を要する問題点があった。However, in the conventional example above, when using software that assumes that the output destination is a general first port, it is possible to output to a dedicated integrated printer, or to use a general port without using a dedicated printer. When outputting to or using different printers, the port for the dedicated printer should be the first port, the port for the -M printer should be the second port, or the port for the dedicated printer should be the second port. and set the port for a general printer as the first port,
If it is possible to change the settings or change the software settings, the output port must be set to the first port or the second port, but both are problems that require complicated procedures. There was a point.
また、上記同様に出力先を一般的な第1ポートとするこ
とを前提としたソフトウエアを使用する場合、専用のプ
リンタを接続せずに一般のプリンタに出力したり、専用
のプリンタを接続してそのプリンタに出力したりと使い
分けを行う場合には、一Mのプリンタ用のポートと専用
のプリンタ用のポートが同じアドレスにマップされない
ように専用のプリンタを接続しない時、一般のプリンタ
用のポートを第1ポートとしたり、専用のプリンタを接
続した時には、一Mのプリンタ用のポートを第2以下の
ポートもしくは使用不可とする必要があった。もしくは
、ソフトウエアが出力ポートの設定を変えることが可能
ならば、専用のプリンタ用のポートを第1ボー.ト、一
般のプリンタ用のポートを第2ポートと固定してソフト
ウエアの出力するポートの設定を切り換えることも可能
であるが、そのためには煩雑な手順を要するという問題
点があった。Similarly to the above, when using software that assumes that the output destination is a general first port, you can output to a general printer without connecting a dedicated printer, or connect a dedicated printer. When outputting to that printer, the port for the 1M printer and the port for the dedicated printer should not be mapped to the same address.When the dedicated printer is not connected, the port for the general printer is When a port is set as the first port or a dedicated printer is connected, it is necessary to set the port for the 1M printer as the second or lower port or to make it unusable. Alternatively, if the software allows you to change the output port settings, you can set the dedicated printer port to the first port. Although it is possible to fix the general printer port as the second port and switch the settings of the software output port, this requires a complicated procedure.
この発明は、上記の問題点を解決するためになされたも
ので、専用のプリンタ以外の一般のプリンタを1以上接
続可能なコンピュータ装置において、専用プリンタの接
続状態に応じて一般プリンタ装置が接続されるプリンタ
ポートのポート出力優先順位を任意に変更設定可能とす
ることにより、煩雑なソフトウエアの変更またはポート
切り換え接続等を行うことなく、ソフトウエアで指示さ
れるポート順位に対応するプリンタから処理情報を出力
可能なコンピュータ装置を得ることを目的とする。The present invention has been made to solve the above-mentioned problems.In a computer device to which one or more general printers other than a dedicated printer can be connected, the general printer device is connected depending on the connection state of the dedicated printer. By making it possible to arbitrarily change and set the port output priority of the printer port that is used, processing information can be output from the printer that corresponds to the port order specified by the software without the need for complicated software changes or port switching connections. The purpose is to obtain a computer device that can output.
〔課題を解決するための手段1
この発明に係るコンピュータ装置は、複数のプリンタの
うち、何れか一方のプリンタポートに接続される専用プ
リンタ接続状態を検知する第1の検知手段と、この第1
の検知手段の検知状態に基づいて専用プリンタまたは一
般プリンタが接続可能な各プリンタポートのポート設定
優先順位を任意に自動設定する第1のポート順位設定手
段とを設けたものである。[Means for Solving the Problems 1] A computer device according to the present invention includes a first detection means for detecting a connection state of a dedicated printer connected to a printer port of one of a plurality of printers;
and a first port order setting means for arbitrarily automatically setting the port setting priority of each printer port to which a dedicated printer or a general printer can be connected based on the detection state of the detection means.
また、何れか一方のプリンタポートに設定される専用プ
リンタポートへの専用プリンタ接続状態を検知する第2
の検知手段と、この第2の検知手段の検知状態に基づい
て専用プリンタポートまたは一般プリンタが接続可能な
プリンタポートのポート設定優先順位を任意に自動設定
する第2のポート順位設定手段とを設けたものである。In addition, there is a second printer that detects the connection status of a dedicated printer to the dedicated printer port set to either printer port.
and a second port order setting means for arbitrarily automatically setting the port setting priority of a dedicated printer port or a printer port to which a general printer can be connected based on the detection state of the second detection means. It is something that
〔作用1
この発明においては、第1の検知手段がプリンタポート
に専用プリンタが接続されたことを検知すると、この検
知状態に基づいて第1のポート順位設定手段が各プリン
タポートのポート設定優先順位を任意に自動設定し、ソ
フトウエアにより第1のポートを選択した場合に、第1
のポートとして設定されたプリンタポートに接続された
専用ブリンクまたは一般プリンタから処理情報を印字処
理させることを可能とする。[Operation 1] In this invention, when the first detection means detects that a dedicated printer is connected to the printer port, the first port order setting means sets the port setting priority of each printer port based on this detection state. automatically set as desired and the first port is selected by the software, the first
It is possible to print processing information from a dedicated blink or general printer connected to a printer port set as a port.
また、第2の検知手段が専用プリンタポートに専用プリ
ンタが接続されたことを検゛知すると、この検知状態に
基づいて第2のポート順位設定手段が専用プリンタポー
トまたは一般プリンタが接続可能なプリンタポートのポ
ート設定優先順位を任意に自動設定し、ソフトウエアに
より第1のポートを選択した場合に、専用プリンタポー
トに専用プリンタポートが接続された場合には、一方の
専用プリンタから処理情報を印字処理させ、専用プリン
タポートに専用プリンタポートが接続されない状態では
、一般プリンタが接続可能な他方のプリンタポートに接
続される一般プリンタより処理情報を印字処理させるこ
とを可能とする。Further, when the second detection means detects that a dedicated printer is connected to the dedicated printer port, the second port order setting means determines whether the dedicated printer port or a printer to which a general printer can be connected is selected based on this detection state. If the port setting priority of the ports is automatically set arbitrarily and the first port is selected by the software, and the dedicated printer port is connected to the dedicated printer port, processing information will be printed from one of the dedicated printers. When the dedicated printer port is not connected to the dedicated printer port, the processing information can be printed by the general printer connected to the other printer port to which the general printer can be connected.
〔第1実施例]
第1図はこの発明の第1実施例を示すコンピュータ装置
の構成を説明するブロック図であり、1はCPU,制御
回路等を含むCPU回路、2はアドレスバス、3はデー
タベース、7はプリンタ用のポートアドレスをデコード
するデコード回路、8,9はプリンタ用ポート(プリン
タポート)、10.11はイネーブル信号で、デコード
回路7によるアドレスバス2の内容解析結果に応じてプ
リンタ用ポート8またはプリンタ用ポート9をイネーブ
ルとする。14はコネクタで、専用プリンタ17が接続
される。12はバスで、このバス,12を介して本体と
専用ブリンク17が相互に通信して印字情報を処理する
。4〜6はバスである。[First Embodiment] FIG. 1 is a block diagram illustrating the configuration of a computer device showing a first embodiment of the present invention, in which 1 is a CPU circuit including a CPU, a control circuit, etc., 2 is an address bus, and 3 is an address bus. 7 is a decoding circuit for decoding the printer port address; 8 and 9 are printer ports; 10 and 11 are enable signals; port 8 or port 9 for printer. 14 is a connector to which a dedicated printer 17 is connected. 12 is a bus, and the main body and the dedicated blink 17 communicate with each other via this bus 12 to process print information. 4 to 6 are buses.
16は接続信号で、例えばプルアップ抵抗器19により
非接続時にHレベルに保持され、コネクタ14に専用プ
リンタ17が接続された際にLレベルに設定され、コネ
クタ14に対する専用プリンタ17の接続有無をデコー
ド回路7に報知する。なお、専用プリンタ17は本体と
一体化して接続可能な構成となっている。Reference numeral 16 is a connection signal, which is held at the H level by a pull-up resistor 19 when not connected, and is set to the L level when the dedicated printer 17 is connected to the connector 14, and indicates whether or not the dedicated printer 17 is connected to the connector 14. Notification is made to the decoding circuit 7. Note that the dedicated printer 17 is configured so that it can be integrated and connected to the main body.
15a,15bはコネクタで、一般プリンタ18が接続
される。13はインタフェースケーブルで、このインタ
フェースケーブル13を介して本体と専用プリンタ17
が相互に通信して印字情報を処理する。15a and 15b are connectors to which a general printer 18 is connected. 13 is an interface cable, and the main body and the dedicated printer 17 are connected via this interface cable 13.
communicate with each other to process print information.
このように構成されたコンピュータ装置において、第1
の検知手段(この実施例ではデコード回路7は識別信号
16のH/Lレベルを識別することにより検知する構成
となっている)が専用プリンタポートに設定されたプリ
ンタポート8に専用プリンタ17が接続されたことを検
知すると、この検知状態に基づいて第1のポート順位設
定手段(この実施例ではデコード回路7が兼ねる)が専
用プリンタポートに設定されたプリンタポート8または
一般プリンタ18が接続可能な各プリンタポート(この
実施例ではプリンタポート9)のポート設定優先順位を
任意に自動設定し、ソフトウエアにより第1のポートを
指示した場合であって、プリンタポート8に専用プリン
タ17が接続された場合には、専用プリンタ17から処
理情報を印字処理させ、プリンタポート8に専用プリン
タ17が接続されない状態では、一Mプリンタ18が接
続可能ないずれかの、この実施例ではプリントポート9
に接続される一般プリンタ18より処理情報を印字処理
させることを可能とする。In the computer device configured in this way, the first
The dedicated printer 17 is connected to the printer port 8 whose detection means (in this embodiment, the decoding circuit 7 detects by identifying the H/L level of the identification signal 16) is set as the dedicated printer port. When it is detected that the printer port 8 has been set as a dedicated printer port or a general printer 18 can be connected based on this detection state, the first port order setting means (in this embodiment, the decoding circuit 7 also serves as the decoding circuit 7) This is a case where the port setting priority of each printer port (printer port 9 in this example) is arbitrarily automatically set and the first port is designated by software, and the dedicated printer 17 is connected to printer port 8. In this case, the processing information is printed from the dedicated printer 17, and when the dedicated printer 17 is not connected to the printer port 8, the 1M printer 18 is connected to any one of the print ports 9 in this embodiment.
The processing information can be printed by a general printer 18 connected to the printer.
具体的には、専用プリンタ17が接続されていない場合
は、識別信号16はプルアップ抵抗器19によりHレベ
ルに保持され、デコード回路7に入力される。この場合
、デコード回路7はアドレスバス2の内容が第1ポート
のアドレスと一致,した時に、イネーブル信号11を介
してプリンタポート9をイネーブルとする。そこで、第
1ポートにプリントデータを出力するソフトウエアをC
PU回路1で動作させた場合、CPU回路1よりデータ
バス3にプリントデータが出力される時、アドレスバス
2に第1ポートのアドレスが出力され、デコード回路7
によりプリンタポート9がイネーブルになるため、プリ
ントデータはプリンタポート9を介して一般プリンタ1
8に転送されることができる。Specifically, when the dedicated printer 17 is not connected, the identification signal 16 is held at H level by the pull-up resistor 19 and input to the decoding circuit 7. In this case, the decode circuit 7 enables the printer port 9 via the enable signal 11 when the contents of the address bus 2 match the address of the first port. Therefore, we installed software that outputs print data to the first port using C.
When operating with the PU circuit 1, when print data is output from the CPU circuit 1 to the data bus 3, the address of the first port is output to the address bus 2, and the decode circuit 7
Since printer port 9 is enabled, print data is sent to general printer 1 via printer port 9.
8 can be transferred.
一方、専用プリンタ17を本体側に接続した場合、専用
プリンタ17は識別信号16をLレベルにしてデコード
回路7に入力させる。この場合、デコード回路7はアド
レスバス2の内容が第1ポートのアドレスと一致した時
には、イネーブル信号10を介してプリンタポート8を
イネーブルにし、第2ポートのアドレスと一致した時に
はイネーブル信号11を介してプリンタポート9をイネ
ーブルとする。そこで、第1ポート(または第2ポート
)にプリントデータを出力するソフトウエアをCPU回
路1で動作させた場合、CPU回路1よりデータバス3
にプリントデータが出力される時、アドレスバス2に第
1ポート(または第2ポート)のアドレスが出力され、
デコード回路7によりプリンタポート8(プリンタポー
ト9)がイネーブルになるため、プリントデータはプリ
ンタポート8(またはプリンタポート9)を介して専用
プリンタ17(または一般プリンタ18)に転送するこ
とができる。On the other hand, when the dedicated printer 17 is connected to the main body side, the dedicated printer 17 sets the identification signal 16 to L level and inputs it to the decoding circuit 7. In this case, the decoding circuit 7 enables the printer port 8 via the enable signal 10 when the content of the address bus 2 matches the address of the first port, and enables the printer port 8 via the enable signal 11 when the content matches the address of the second port. to enable printer port 9. Therefore, when software that outputs print data to the first port (or second port) is operated on the CPU circuit 1, the data bus 3
When print data is output to address bus 2, the address of the first port (or second port) is output to address bus 2.
Since the printer port 8 (or printer port 9) is enabled by the decoding circuit 7, print data can be transferred to the dedicated printer 17 (or general printer 18) via the printer port 8 (or printer port 9).
以下、第2図を参照しながらこの発明に係るコンピュー
タ装置における第1のポート優先順位設定処理について
説明する。The first port priority setting process in the computer device according to the present invention will be described below with reference to FIG.
第2図はこの発明に係るコンピュータ装置における第1
のポート優先順位設定処理手順の一例を説明するフロー
チャートである。なお、(1)〜(1l)は各ステップ
を示す。FIG. 2 shows the first computer system in the computer device according to the present invention.
3 is a flowchart illustrating an example of a port priority setting processing procedure. Note that (1) to (1l) indicate each step.
先ず、識別信号16がHレベル状態かどうかを判断し(
1) Noならば(専用プリンタ17が接続時)、ア
ドレスバス2の内容を解析し(2)CPU回路1が実行
処理中のソフトウエアが第1ポートを指示しているかど
うかを判断し(3)、YESならばイネーブル信号10
を出力し(4)、プリンタポート(ポートA)8を第1
ポートに設定し(5) プリントデータ転送終了を待
機し(6)、データ転送が終了したら処理を終了する。First, it is determined whether the identification signal 16 is in the H level state (
1) If No (when the dedicated printer 17 is connected), the content of the address bus 2 is analyzed (2) CPU circuit 1 determines whether the software being executed is specifying the first port (3) ), if YES, enable signal 10
(4), and set printer port (port A) 8 to the first
port (5) and waits for the print data transfer to finish (6), and when the data transfer is finished, the process ends.
一方、ステップ(3)の判断で、NOの場合は第2ポー
トを有効とし(7)、ステップ(6)に戻る。On the other hand, if the determination in step (3) is NO, the second port is enabled (7) and the process returns to step (6).
一方、ステップ(1)の判断でYESの場合(専用プリ
ンタ17が非接続時)は、アドレスバス2の内容を解析
し(8) CPU回路1が実行処理中のソフトウエア
が第1ポートを指示しているかどうかを判断し(9)
Noならばステップ(7)に戻り、YESならばイネ
ーブル信号11を出力し(10)、プリンタポート(ポ
ートB)9を第1ポートに設定し(11)、ステップ(
6)に戻る。On the other hand, if the judgment in step (1) is YES (when the dedicated printer 17 is not connected), the contents of the address bus 2 are analyzed (8) and the software being executed by the CPU circuit 1 specifies the first port. (9)
If No, return to step (7); if YES, output enable signal 11 (10), set printer port (port B) 9 as the first port (11), and step (
Return to 6).
これにより、ソフトウエアによりプリンタポートを第1
ポートを指示していても、専用プリンタ17の接続状態
に応じてプリンタポート9またはプリンタポート8を第
1ポートとして設定することが可能となる。This allows the software to set the printer port to
Even if a port is specified, printer port 9 or printer port 8 can be set as the first port depending on the connection state of dedicated printer 17.
〔第2実施例〕
第3図はこの発明の第2実施例を示すコンピュータ装置
の構成を説明するブロック図であり、21はCPUや制
御回路等を含むCPU回路、22はアドレスバス、23
はデータパス、24はバスで、アドレスバス22とデコ
ード回路26を接続する。25はバスで、一般プリンタ
用ポート28とデータバス23とを接続する。27はデ
コード回路で、コネクタ38を介して本体のアドレスバ
ス22に接続される。29は専用プリンタ用ポートで、
コネクタ3日を介して本体のデータバス23に接続され
、バス33を介して専用プリンタ36に接続され、デー
タバス23を介して出力される印字情報を専用プリンタ
36に供給する。[Second Embodiment] FIG. 3 is a block diagram illustrating the configuration of a computer device showing a second embodiment of the present invention, in which 21 is a CPU circuit including a CPU and a control circuit, 22 is an address bus, and 23 is a
24 is a data path, and 24 is a bus, which connects the address bus 22 and the decoding circuit 26. A bus 25 connects the general printer port 28 and the data bus 23. A decoding circuit 27 is connected to the address bus 22 of the main body via a connector 38. 29 is a dedicated printer port,
It is connected to the data bus 23 of the main body via the connector 3, and to the dedicated printer 36 via the bus 33, and supplies print information outputted via the data bus 23 to the dedicated printer 36.
30はイネーブル信号で、デコード回路26のアドレス
デコード結果に基づいて一般プリンタ用ポート28をイ
ネーブルとする。32はバスで、コネクタ37a,37
bを介して一般プリンタ35に接続され、−Mプリンタ
用ポート28を介して出力される印字情報を一般プリン
タ35に供給する。39はプルアップ抵抗器で、コネク
タ3日に専用プリンタ36が接続された場合にLレベル
となり、その接続有無を示す識別信号4oをデコード回
路26に出力する。Reference numeral 30 denotes an enable signal that enables the general printer port 28 based on the address decoding result of the decoding circuit 26. 32 is a bus, connectors 37a, 37
It is connected to the general printer 35 via the -M printer port 28, and supplies the print information outputted through the -M printer port 28 to the general printer 35. Reference numeral 39 denotes a pull-up resistor which becomes L level when the dedicated printer 36 is connected on the 3rd day of the connector, and outputs an identification signal 4o indicating whether or not it is connected to the decoding circuit 26.
このように構成されたコンピュータ装置において、第2
の検知手段(デコード回路26が兼ねる)が専用プリン
タポート(専用プリンタ用ポート29)に専用プリンタ
36が接続されたことを検知すると、この検知状態に基
づいて第2のポート順位設定手段が専用プリンタ用ポー
ト29または一般プリンタ35が接続可能なプリンタポ
ート(一般プリンタ用ポート28)のポート設定優先順
位を任意に自動設定し、ソフトウエアにより第1のポー
トを選択した場合に、専用プリンタ用ポート29に専用
プリンタポートが接続された場合には、一方の専用プリ
ンタ36から処理情報を印字処理させ、専用プリンタ用
ポート29に専用プリンタポートが接続されない状態で
は、−Mプリンタ35が接続可能な他方の一般プリンタ
用ポート28に接続される一般プリンタより処理情報を
印字処理させることを可能とする。In the computer device configured in this way, the second
When the detection means (also served by the decoding circuit 26) detects that the dedicated printer 36 is connected to the dedicated printer port (dedicated printer port 29), the second port order setting means selects the dedicated printer based on this detection state. If the port setting priority of the printer port (general printer port 28) to which the printer port 29 or the general printer 35 can be connected is arbitrarily set automatically, and the first port is selected by the software, the dedicated printer port 29 When a dedicated printer port is connected to the dedicated printer port 29, the processing information is printed from one dedicated printer 36, and when the dedicated printer port 29 is not connected to the dedicated printer port 29, the -M printer 35 is printed from the other connectable printer port. It is possible to print processing information from a general printer connected to the general printer port 28.
具体的には、専用プリンタ36が接続されていない場合
は、識別信号4oがプルアップ抵抗器39によりHレベ
ルとなり、デコード回路26に入力される。この場合、
デコード回路26はアドレスバス22の内容が第1ポー
トのアドレスと一致した時にイネーブル信号3oにより
一般プリンタ用ポート28をイネーブルとする。そこで
、第1ポートにプリントデータを出力するソフトウエア
をCPU回路21で動作させた場合、CPU回路21よ
りデータパス23にプリントデータが出力されとき、ア
ドレスバス22に第1ポートのアドレスが出力され、デ
コード回路26により一般プリンタ用ポート28がイネ
ーブルになるため、プリントデータは一般プリンタ用ポ
ート28を介して一般プリンタ35に転送される。Specifically, when the dedicated printer 36 is not connected, the identification signal 4o is set to H level by the pull-up resistor 39 and is input to the decoding circuit 26. in this case,
The decode circuit 26 enables the general printer port 28 using the enable signal 3o when the contents of the address bus 22 match the address of the first port. Therefore, when software that outputs print data to the first port is operated by the CPU circuit 21, when print data is output from the CPU circuit 21 to the data path 23, the address of the first port is output to the address bus 22. Since the general printer port 28 is enabled by the decoding circuit 26, the print data is transferred to the general printer 35 via the general printer port 28.
一方、専用プリンタ部34を本体に接続した場合には、
識別信号40がLレベルとなり、専用プリンタ部34が
接続されたことをデコード回路26に報知する。この場
合、デコード回路26はアドレスバス22の内容が第2
ポートのアドレスと一致した時には、イネーブル信号3
oを介して一般プリンタ用ポート28をイネーブルとす
る。On the other hand, when the dedicated printer section 34 is connected to the main body,
The identification signal 40 becomes L level, and the decoding circuit 26 is notified that the dedicated printer section 34 is connected. In this case, the decoding circuit 26 determines that the contents of the address bus 22 are
When it matches the port address, enable signal 3
Enable the general printer port 28 via o.
方、デコード回路27は、アドレスバス22の内容が第
1ポートのアドレスと一致した時にイネーブル信号31
により専用プリンタ用ポート29をイネーブルとする。On the other hand, the decoding circuit 27 outputs an enable signal 31 when the contents of the address bus 22 match the address of the first port.
This enables the dedicated printer port 29.
そこで、第1ポートにプリントデータを出力するソフト
ウェアをcPU回路21で動作実行させた場合、CPU
回路21より、データバス23にプリントデータが出力
される時、アドレスバス22に第1ポートのアドレスが
出力され、専用プリンタ部34内のデコード回路27に
より専用プリンタ用ポート29がイネーブルになるため
、プリントデータは専用プリンタ用ポート29を介して
専用プリンタ36に転送される。また、第2ポートにプ
リンタデータを出力するソフトウエアをCPU回路21
で動作させた場合は、前述同様にデータバス23にプリ
ントデータが出力される時、アドレスバス22に第2ポ
ートのアドレスが出力され、デコード回路26により一
般プリンタ用ポート28がイネーブルとなるため、プリ
ントデータは一般プリンタ用ポート28を介して一般プ
リンタ35に転送されることとなる。Therefore, when the cPU circuit 21 executes the software that outputs print data to the first port, the CPU
When print data is output from the circuit 21 to the data bus 23, the address of the first port is output to the address bus 22, and the decoding circuit 27 in the dedicated printer section 34 enables the dedicated printer port 29. The print data is transferred to the dedicated printer 36 via the dedicated printer port 29. In addition, the CPU circuit 21 has software that outputs printer data to the second port.
When the print data is output to the data bus 23 as described above, the address of the second port is output to the address bus 22 and the general printer port 28 is enabled by the decoding circuit 26. The print data will be transferred to the general printer 35 via the general printer port 28.
以下、第4図を参照しながらこの発明に係るコンピュー
タ装置における第2のトポート優先順位設定処理につい
て説明する。The second port priority setting process in the computer device according to the present invention will be described below with reference to FIG.
第4図はこの発明に係るコンピュータ装置における第2
のポート優先順位設定処理手順の一例を説明するフロー
チャートである。なお、(1)〜(l8)は各ステップ
を示す@
先ず、識別信号4oがHレベル状態かどうかを判断し(
11 Noならば(専用プリンタ36が接続時)、ア
ドレスバス22の内容を解析し(2)CPU回路21が
実行処理中のソフトウェアが第1ポートを指示している
かどうかを判断し(3)YESならばイネーブル信号3
1を出力し(4)専用プリンタ用ポート(専用ポート)
29をイネーブルとし(5) プリントデータ受信を
待機し(6)、専用プリンタ36で印字し(7)、処理
を終,了する。FIG. 4 shows the second computer system in the computer device according to this invention.
3 is a flowchart illustrating an example of a port priority setting processing procedure. Note that (1) to (l8) indicate each step @ First, it is determined whether the identification signal 4o is in the H level state (
11 If No (when the dedicated printer 36 is connected), analyze the contents of the address bus 22 (2) determine whether the software being executed by the CPU circuit 21 indicates the first port (3) YES Then enable signal 3
1 and (4) Dedicated printer port (dedicated port)
29 is enabled (5), it waits for print data to be received (6), and prints using the dedicated printer 36 (7), ending the process.
一方、ステップ(3)の判断で、NOの場合はイネーブ
ル信号30を出力し(8) 、−Mプリンタ用ポート2
8(一般ポート)を有効とし(9)、プリンタデータ受
信を待機し(1o)、一般プリンタ35にて印字゛を行
い(11)、処理を終了する。On the other hand, if the judgment in step (3) is NO, the enable signal 30 is output (8) and -M printer port 2
8 (general port) is enabled (9), waits for printer data reception (1o), prints on the general printer 35 (11), and ends the process.
一方、ステップ(1)の判断でYESの場合はアドレス
バス22の内容を解析し(l2)、CPU回路21が実
行処理中のソフトウェアが第1ポートを指示しているか
どうかを判断し(13)、Noならばステップ(18)
に進み、エラー処理を実行して処理を終了する。On the other hand, if the determination in step (1) is YES, the content of the address bus 22 is analyzed (l2), and the CPU circuit 21 determines whether or not the software being executed is instructing the first port (13). , if No, step (18)
Proceed to , perform error handling, and end the process.
一方、ステップ(13)の判断でYESの場合は、イネ
ープル信号3oを出力し(l4)、一Mポートをイネー
ブルとする(15)。次いで、プリントデータ受信を待
機し(16)、YESならば一般プリンタ35にて印字
を行い(17)、処理を終了する。On the other hand, if the determination in step (13) is YES, the enable signal 3o is output (14) and the 1M port is enabled (15). Next, it waits for print data to be received (16), and if YES, prints using the general printer 35 (17), and the process ends.
このようにして、専用プリンタ36の接続有無に応じて
ソフトウエアによる専用プリンタポート指定を一般プリ
ンタポート指定に自動設定することにより、ソフトウエ
アのプリント指定/解除等の処理を行わずに所望とする
プリント可能なプリンタより印字情報を仕分け出力する
ことができる。In this way, by automatically setting the dedicated printer port designation by the software to the general printer port designation depending on whether or not the dedicated printer 36 is connected, the desired print designation/cancellation can be performed without performing software print designation/cancellation. Print information can be sorted and output using a printable printer.
〔発明の効果]
以上説明したように、この発明は複数のプリンタのうち
、何れか一方のプリンタポートに接続される専用プリン
タ接続状態を検知する第1の検知手段と、この第1の検
知手段の検知状態に基づいて専用プリンタまたは一般プ
リンタが接続可能な各プリンタポートのポート設定優先
順位を任意に自動設定する第1のポート順位設定手段と
を設けたので、ソフトウエアによるプリンタポートアド
レス指定を変更することなく、何れかのプリンタポート
に接続される専用プリンタ接続状態に基づいて他の各プ
リンタポートの出力順位を任意に設定できる。[Effects of the Invention] As explained above, the present invention includes a first detection means for detecting the connection state of a dedicated printer connected to a printer port of one of a plurality of printers, and a The first port order setting means automatically sets the port setting priority of each printer port to which a dedicated printer or general printer can be connected based on the detection state of the printer port. The output order of each printer port can be arbitrarily set based on the connection state of a dedicated printer connected to any printer port without changing the output order.
また、何れか一方のプリンタポートに設定される専用プ
リンタポートへの専用プリンタ接続状態を検知する第2
の検知手段と、この第2の検知手段の検知状態に基づい
て専用プリンタポートまたは一般プリンタが接続可能な
プリンタポートのポート設定優先順位を任意に自動設定
する第2のポート順位設定手段とを設けたので、ソフト
ウエアによるプリンタポートアドレス指定を変更するこ
となく、一般プリンタが接続されるポートの出力順位を
専用プリンタ接続状態に応じて自動切り換え設定できる
。従って、印字出力先の設定切り換え等のハードまたは
ソフト処理を意識することなく、印字要求された印字情
報を一般プリンタポートに接続されるプリント可能な一
般プリンタまたは専用プリンタより容易に仕分け出力可
能となる等の効果を奏する。In addition, there is a second printer that detects the connection status of a dedicated printer to the dedicated printer port set to either printer port.
and a second port order setting means for arbitrarily automatically setting the port setting priority of a dedicated printer port or a printer port to which a general printer can be connected based on the detection state of the second detection means. Therefore, the output order of ports to which general printers are connected can be automatically switched in accordance with the dedicated printer connection state without changing the printer port address designation by software. Therefore, without having to be aware of hardware or software processing such as changing the settings of the print output destination, the requested print information can be easily sorted and output from a printable general printer or dedicated printer connected to the general printer port. It has the following effects.
第1図はこの発明の第1実施例を示すコンピュータ装置
の構成を説明するブロック図、第2図はこの発明に係る
コンピュータ装置における第1のトポートa先順位設定
処理手順の一例を説明するフローチャート、第3図はこ
の発明の第2実施例を示すコンピュータ装置の構成を説
明するブロック図、第4図はこの発明に係るコンピュー
タ装置における第2のポート優先順位設定処理手順の一
例を説明するフローチャートである。
図中、1はCPU回路、2はアドレスバス、3はデータ
パス、7はデコード回路、8,9はプリンタ用ポート、
17は専用プリンタ、1゛8は一般プリンタである。
1
第
1
図FIG. 1 is a block diagram illustrating the configuration of a computer device according to a first embodiment of the present invention, and FIG. 2 is a flowchart illustrating an example of a first port a priority setting processing procedure in the computer device according to the present invention. , FIG. 3 is a block diagram illustrating the configuration of a computer device according to a second embodiment of the present invention, and FIG. 4 is a flowchart illustrating an example of the second port priority setting processing procedure in the computer device according to the present invention. It is. In the figure, 1 is a CPU circuit, 2 is an address bus, 3 is a data path, 7 is a decoding circuit, 8 and 9 are printer ports,
17 is a special printer, and 1 and 8 are general printers. 1 Figure 1
Claims (2)
ンタポートを1以上有するコンピュータ装置において、
前記複数のプリンタのうち、何れか一方のプリンタポー
トに接続される専用プリンタ接続状態を検知する第1の
検知手段と、この第1の検知手段の検知状態に基づいて
専用プリンタまたは一般プリンタが接続可能な各プリン
タポートのポート設定優先順位を任意に自動設定する第
1のポート順位設定手段とを設けたことを特徴とするコ
ンピュータ装置。(1) In a computer device having one or more printer ports to which a printer other than a dedicated printer can be connected,
a first detection means for detecting a connection state of a dedicated printer connected to one of the printer ports among the plurality of printers, and a dedicated printer or a general printer connected based on the detection state of the first detection means; 1. A computer device comprising: first port order setting means for arbitrarily automatically setting port setting priorities of each possible printer port.
リンタポートへの専用プリンタ接続状態を検知する第2
の検知手段と、この第2の検知手段の検知状態に基づい
て専用プリンタポートまたは一般プリンタが接続可能な
プリンタポートのポート設定優先順位を任意に自動設定
する第2のポート順位設定手段とを具備したことを特徴
とする請求項(1)記載のコンピュータ装置。(2) A second device that detects the connection status of a dedicated printer to the dedicated printer port set to either printer port.
and a second port order setting means for automatically setting port setting priority of a dedicated printer port or a printer port to which a general printer can be connected based on the detection state of the second detection means. The computer device according to claim 1, characterized in that:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012422A JPH03217937A (en) | 1990-01-24 | 1990-01-24 | Computer device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012422A JPH03217937A (en) | 1990-01-24 | 1990-01-24 | Computer device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03217937A true JPH03217937A (en) | 1991-09-25 |
Family
ID=11804831
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012422A Pending JPH03217937A (en) | 1990-01-24 | 1990-01-24 | Computer device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03217937A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7161707B1 (en) | 1999-05-21 | 2007-01-09 | Matsushita Electric Industrial Co., Ltd. | Digital printer |
-
1990
- 1990-01-24 JP JP2012422A patent/JPH03217937A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7161707B1 (en) | 1999-05-21 | 2007-01-09 | Matsushita Electric Industrial Co., Ltd. | Digital printer |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5835791A (en) | Versatile connection of a first keyboard/mouse interface and a second keyboard/mouse interface to a host computer | |
| US6886057B2 (en) | Method and system for supporting multiple bus protocols on a set of wirelines | |
| US6965956B1 (en) | Disk array controller and system with automated detection and control of both ATA and SCSI disk drives | |
| US6895447B2 (en) | Method and system for configuring a set of wire lines to communicate with AC or DC coupled protocols | |
| EP1516261B1 (en) | Bus system, station for use in a bus system, and bus interface | |
| JP3609051B2 (en) | USB-HUB device and control method thereof | |
| US6125418A (en) | Method and apparatus for enabling a computer user to convert a computer system to an intelligent I/O system | |
| CN109558369A (en) | Control method, device, equipment and the system of multi -CPU list serial ports | |
| US10565147B2 (en) | Information processing apparatus for data transfer between a system host and a local device | |
| US10509751B2 (en) | Information processing apparatus that converts an address and requester ID on a local host to an address and requester ID on a system host | |
| JPH03217937A (en) | Computer device | |
| JPH03204749A (en) | Programable connector | |
| CN100555256C (en) | Communication manipulation for resource systems shared by multiple masters | |
| US6754761B1 (en) | Communications system including symmetric bus bridge and method used therewith | |
| KR940005440B1 (en) | Selection circuit for scsi regulation | |
| KR20120019188A (en) | A multimedia system converting usb host and usb device | |
| JPH06332796A (en) | Circuit board controller | |
| JPH0273446A (en) | Interface switching circuit | |
| JP3491838B2 (en) | Input/Output Expansion System | |
| KR100274050B1 (en) | Network device recognition apparatus | |
| JPS6136858A (en) | System constituting controller | |
| JPS61173363A (en) | Input device control system | |
| JPH0383674A (en) | Remote control changeover printer | |
| JPH01303555A (en) | Computer system | |
| JPH1040208A (en) | Device recognition system |