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

JPH07101880B2 - Peripheral device sharing method - Google Patents

Peripheral device sharing method

Info

Publication number
JPH07101880B2
JPH07101880B2 JP2326397A JP32639790A JPH07101880B2 JP H07101880 B2 JPH07101880 B2 JP H07101880B2 JP 2326397 A JP2326397 A JP 2326397A JP 32639790 A JP32639790 A JP 32639790A JP H07101880 B2 JPH07101880 B2 JP H07101880B2
Authority
JP
Japan
Prior art keywords
control
control device
printer
peripheral device
active
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 - Lifetime
Application number
JP2326397A
Other languages
Japanese (ja)
Other versions
JPH04196843A (en
Inventor
憲位 江上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2326397A priority Critical patent/JPH07101880B2/en
Publication of JPH04196843A publication Critical patent/JPH04196843A/en
Publication of JPH07101880B2 publication Critical patent/JPH07101880B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、プリンタ等の周辺装置を複数の計算機等の
制御装置で共用するための周辺装置の共用化方式に関す
るものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a peripheral device sharing system for sharing a peripheral device such as a printer with a control device such as a plurality of computers.

〔従来の技術〕[Conventional technology]

第4図は従来の周辺装置の共用化方式を実現するシステ
ムの構成を示すブロック図であり、図において、1,2は
それぞれマイクロコンピュータ等の制御装置A,B、3は
前記制御装置A1,B2により共用される周辺装置としての
プリンタ、4は前記プリンタ3と制御装置A1あるいは制
御装置B2とを物理的に接続するための切換器である。
FIG. 4 is a block diagram showing a configuration of a system that realizes a conventional peripheral device sharing method. In the figure, reference numerals 1 and 2 are control devices A and B such as microcomputers, and 3 is the control device A1. A printer 4 as a peripheral device shared by B2 is a switch for physically connecting the printer 3 and the control device A1 or the control device B2.

また、図中、aは前記制御装置A1と切換器4とを接続す
るセントロニクス準拠のインタフェースケーブル(以
下、I/Fケーブルという)、bは前記制御装置B2と切換
器4とを接続するセントロニクス準拠のI/Fケーブル、
cは前記切換器4とプリンタ3とを接続するセントロニ
クス準拠のI/Fケーブルである。
In the figure, a is a Centronics-compliant interface cable (hereinafter referred to as an I / F cable) that connects the control device A1 and the switch 4, and b is a Centronics-compliant interface that connects the control device B2 and the switch 4. I / F cable,
Reference numeral c is a Centronics compliant I / F cable that connects the switch 4 and the printer 3.

次に動作について説明する。Next, the operation will be described.

制御装置A1がプリンタ3を使用する場合は、切換器4が
物理的にはI/FケーブルaとI/Fケーブルcを接続し、該
制御装置A1から印字データをプリンタ3に転送すること
で印字使用を可能にする。
When the control device A1 uses the printer 3, the switching device 4 physically connects the I / F cable a and the I / F cable c and transfers the print data from the control device A1 to the printer 3. Enables printing.

また、制御装置B2がプリンタ3を使用する場合は、切換
器4が物理的にはI/FケーブルbとI/Fケーブルcを接続
し、該制御装置B2から印字データをプリンタ3に転送す
ることで印字使用を可能にする。
When the control device B2 uses the printer 3, the switch 4 physically connects the I / F cable b and the I / F cable c, and transfers the print data from the control device B2 to the printer 3. This enables printing.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

従来の周辺装置の共用化方式は以上のように構成されて
いるので、周辺装置を共用するために新たに切換器が必
要となり、また、この切換器に異常が発生すると、プリ
ンタ等の周辺装置への制御ができないなどの課題があっ
た。
Since the conventional system for sharing peripheral devices is configured as described above, a new switching device is required to share the peripheral device, and when an abnormality occurs in this switching device, peripheral devices such as printers are also required. There was a problem such as not being able to control.

この発明は上記のような課題を解消するためになされた
もので、前記切換器がなくとも周辺装置の共用を可能に
する周辺装置の共用化方式を得ることを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a sharing system for peripheral devices that enables sharing of peripheral devices without the switching device.

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

この発明に係る周辺装置の共用化方式は各制御装置にそ
れぞれ1本の制御線を割付け、これら各制御装置に、周
辺装置の使用要求発生に伴い使用権の占有要求信号をオ
ープンコレクタ出力させ、一定時間待機後に全制御線の
うちから読込んだアクティブとなっている信号について
自ら優先判断を行わせ、使用権の占有あるいは放棄を決
定させるようにしたものである。
The peripheral device sharing method according to the present invention allocates one control line to each control device, and causes each of these control devices to output an occupancy request signal of the usage right as an open collector output when a usage request for the peripheral device occurs. After waiting for a certain period of time, the active signal read from all the control lines is given priority judgment by itself, and the occupation right or abandonment of the right of use is decided.

〔作用〕[Action]

この発明における周辺装置の共用化方式は、各制御装置
に周辺装置の使用権の占有要求信号をオープンコレクタ
出力させ、一定時間待機後に全制御線のうちから読込ん
だアクティブとなっている信号について自ら優先判断す
るようにしたので、切換器がなくとも競合状態を回避で
きる。
The peripheral device sharing method according to the present invention relates to an active signal read from all the control lines after allowing each control device to output an occupancy request signal for the peripheral device usage right and waiting for a certain time. Since the priority judgment is made by itself, the race condition can be avoided even without the switch.

〔発明の実施例〕Example of Invention

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図はこの発明の一実施例による周辺装置の共用化方
式を実現するシステムの構成を示すブロック図であり、
従来の周辺装置の共用化方式(第4図)と同一又は相当
部分は同一符号を付して説明を省略する。
FIG. 1 is a block diagram showing the configuration of a system that realizes a peripheral device sharing system according to an embodiment of the present invention.
The same or corresponding parts as those of the conventional peripheral device sharing system (FIG. 4) are designated by the same reference numerals and the description thereof will be omitted.

図において、5は各制御装置A1,B2にそれぞれ1本割付
けられた制御線である。なお、図中、I/Fケーブルa,b,d
はそれぞれ分けて示されているが、実際には同一の制御
信号を転送するケーブルである。
In the figure, 5 is a control line assigned to each of the control devices A1 and B2. In the figure, I / F cables a, b, d
, Which are shown separately, are actually cables that transfer the same control signal.

また、第2図は前記各制御装置A1,B2の内部構成を示す
ブロック図であり、図において、5a,5bは前記制御線5
を構成する各制御装置A1,B2に割付けられた制御線(以
下、RA*,RB*という)であり、このRA*5a,RB*5bの状
態が制御装置内情報の第1ビット(最下位ビット)、第
2ビットにそれぞれ相当する(なお、アクティブ状態を
“1"として以下説明する)。6a,6bは前記RA*5a,RB*5b
に対し、それぞれ使用権の占有要求信号をオープンコレ
クタ出力するインバータ、7は前記各インバータ6a,6b
が出力する情報を保持するレジスタ、8は前記RA*5a,R
B*5bの状態を読込むインパクト形のバッファであり、
例えばRA*5aのみアクティブとなっていれば(01)
(2進数表示)、RA*5a,RB*5bともアクティブとな
っていれば(11)(2進数表示)などの情報を格納す
る。9は制御装置内の内部バス、10はプリンタ3の使用
状態の情報を保持するフリップフロップ(以下、F/Fと
いい、セット状態で使用可、リセット状態で使用不可と
する)、11はプリンタ3との情報授受を行うためのプリ
ンタI/Fである。
2 is a block diagram showing the internal configuration of each of the control devices A1 and B2. In FIG. 2, 5a and 5b are the control lines 5.
Is a control line (hereinafter referred to as RA *, RB *) assigned to each of the control devices A1 and B2 that compose the control device. The state of RA * 5a, RB * 5b is the first bit (the least significant bit) of the control device information. Bit) and the second bit (note that the active state is "1" in the following description). 6a and 6b are RA * 5a and RB * 5b
On the other hand, 7 is an inverter that outputs an open collector output of an occupation request signal for each usage right, and 7 is each of the inverters 6a and 6b.
Is a register for holding the information output by the device, 8 is the RA * 5a, R
It is an impact type buffer that reads the status of B * 5b.
For example, if only RA * 5a is active (01)
If 2 (binary display) and RA * 5a, RB * 5b are active, information such as (11) 2 (binary display) is stored. Reference numeral 9 is an internal bus in the control device, 10 is a flip-flop (hereinafter, referred to as F / F, which can be used in the set state and cannot be used in the reset state) for holding information on the use state of the printer 3, and 11 is the printer. A printer I / F for exchanging information with the printer 3.

次に動作について第3図のフローチャートを用いて説明
する。ここでは、説明の都合上制御装置A1,B2(制御装
置A1の方が優先度が高いものとする)についての共用化
方式について説明するが、制御装置の台数に特に制限は
ない。
Next, the operation will be described with reference to the flowchart of FIG. Here, for convenience of explanation, a sharing method for the control devices A1 and B2 (assuming that the control device A1 has a higher priority) will be described, but the number of control devices is not particularly limited.

まず、制御装置A1においてプリンタ3の使用要求が発生
すると(以下、制御装置B2についても同様)、バッファ
8から各RA*5a,RB*5bのアクティブ情報を読込み(ス
テップST1)、各制御線の状態を調べる(ステップST
2)。もし、いずれかの制御装置の制御線がアクティブ
であれば(この実施例ではバッファ8の情報として(1
0)となり、制御装置B2がプリンタ3を使用している
場合が考えられる)強制終了し、すべての制御線がノン
アクティブ(この実施例ではRA*5aがアクティブとなっ
ている場合は起らない)であればレジスタ7に(01)
をセットし(ステップST3)、インバータ6a,6bそれぞれ
のオープンコレクタ出力によりRA*5aのみアクティブに
して(制御装置B2の場合は(10)をセットしてRB*5b
のみアクティブにする)一定時間待機する(ステップST
4)。これは、例えば優先度の高い制御装置A1と優先度
の低い制御装置B2に同時にプリンタ3の使用要求が発生
した場合、ステップST1での確認ではRA*5a,RB*5bのど
ちらもノンアクティブなので使用権の占有要求信号をレ
ジスタ7にセットするが、制御装置A1が該レジスタ7に
使用権の占有要求信号(01)をセットする前に、制御
装置B2が(10)をセットして後述するステップST5を
実行してしまうと、該制御装置B2がプリンタ3の使用が
可能となり、その後に優先度の高い制御装置A1も使用可
能となる(使用権の占有要求信号が複数の場合優先度の
高い方に使用権が与えられるため)。このような競合状
態を回避するため、同時に使用要求が発生した全制御装
置がレジスタ7への使用権の占有要求信号のセットが終
了するまで(自制御線をアクティブにするまで)待機す
る必要がある。
First, when a request for using the printer 3 is generated in the control device A1 (hereinafter, the same applies to the control device B2), the active information of each RA * 5a, RB * 5b is read from the buffer 8 (step ST1) and each control line Check status (ST
2). If the control line of any one of the control devices is active (in this embodiment, the information (1
0) 2 and it is considered that the control device B2 is using the printer 3) Forced termination, all control lines are non-active (in this embodiment, RA * 5a is active when RA * 5a is active). If it does not exist, register 01 into (01) 2
Is set (step ST3), and only RA * 5a is activated by the open collector output of each of the inverters 6a and 6b ((10) for controller B2, 2 is set and RB * 5b is set.
Wait for a certain period of time (activate only) (step ST
Four). This is because, for example, when requests to use the printer 3 are issued to the control device A1 having a high priority and the control device B2 having a low priority at the same time, both RA * 5a and RB * 5b are non-active in the confirmation in step ST1. The use right occupancy request signal is set in the register 7, but the control device B2 sets (10) 2 before the control device A1 sets the use right occupancy request signal (01) 2. If step ST5 to be described later is executed, the control device B2 can use the printer 3, and then the control device A1 having a higher priority can also be used (if there are a plurality of usage right occupancy request signals, priority is given. Because the right to use is given to those who have a high degree). In order to avoid such a race condition, it is necessary to wait for all the control devices that have simultaneously issued a use request until the setting of the use right occupancy request signal to the register 7 is completed (until its own control line is activated). is there.

次に、再度バッファ8のアクティブ情報を読込み(ステ
ップST5)、使用要求の発生状態をチェックする(ステ
ップST6)。この実施例では制御装置A1のみの場合は(0
1)、制御装置B2のみの場合は(10)となり、両制
御装置A1,B2の場合は(11)(これは各制御装置A1,B2
からのオープンコレクタ出力(01)2,(10)により得
られるOR出力に相当する)となるが、(11)の場合に
使用権の占有要求信号を出力したそれぞれの制御装置で
優先判断を行い(ステップST7)、優先度が低いと判断
すると、レジスタ7をリセットすることで(ステップST
8)自らプリンタ3の使用権を放棄する。
Next, the active information of the buffer 8 is read again (step ST5), and the generation state of the use request is checked (step ST6). In this embodiment, (0
1) 2 and (10) 2 in the case of control device B2 only, and (11) 2 in the case of both control devices A1 and B2 (this is control device A1, B2
The open collector output (corresponding to the OR output obtained from (01) 2 and (10) 2 ) is used, but in the case of (11) 2 , each control device that has output the usage right occupation request signal gives priority judgment. (Step ST7), and when it is determined that the priority is low, the register 7 is reset (step ST7).
8) Relinquish the right to use printer 3 by yourself.

一方、優先度の高い制御装置A1はそのままレジスタ7の
内容を保持しておき、F/F10をセット状態にすることで
プリンタI/F11を使用可能状態にする(ステップST9)。
そして、プリンタ3による印字処理(ステップST10)を
行った後、該F/F10をリセットするとともに、レジスタ
7をリセットし(ステップST11)、RA*5aをノンアクテ
ィブにする。
On the other hand, the control device A1 having a high priority keeps the contents of the register 7 as it is, and sets the F / F 10 in the set state to make the printer I / F 11 available (step ST9).
After the printing process (step ST10) by the printer 3, the F / F10 is reset, the register 7 is reset (step ST11), and RA * 5a is made inactive.

なお、上記実施例ではプリンタ3を共用する場合につい
て示したが、他の周辺装置でも同様の効果を奏する。
In the above embodiment, the case where the printer 3 is shared is shown, but other peripheral devices also have the same effect.

〔発明の効果〕〔The invention's effect〕

以上のように、この発明によれば各制御装置のそれぞれ
に制御線を1本割付けておき、周辺装置の使用権の占有
要求信号をオープンコレクタ出力させ、一定時間待機後
に全制御線のうちから読込んだアクティブとなっている
信号について自ら優先判断するように構成したので、切
替器を必要としない簡単かつ安価な構成によって周辺装
置の共用が可能となり、これによりシステムの信頼性、
経済性を向上させる効果がある。
As described above, according to the present invention, one control line is assigned to each control device, an occupancy request signal for the peripheral device usage right is output as an open collector, and after waiting for a certain time, all control lines are selected. Since it is configured to prioritize the read active signal by itself, it is possible to share peripheral devices with a simple and inexpensive configuration that does not require a switching device, thereby improving system reliability and
It has the effect of improving economic efficiency.

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

第1図はこの発明の一実施例による周辺装置の共用化方
式を実現するシステムの構成を示すブロック図、第2図
はこの発明における制御装置の内部構成を示すブロック
図、第3図はこの発明の一実施例による周辺装置の共用
化方式を説明するフローチャート、第4図は従来の周辺
装置の共用化方式を実現するシステムの構成を示すブロ
ック図である。 図において、1,2は制御装置、3はプリンタ、5は制御
線である。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram showing a configuration of a system for realizing a sharing system of peripheral devices according to an embodiment of the present invention, FIG. 2 is a block diagram showing an internal configuration of a control device in the present invention, and FIG. FIG. 4 is a flowchart for explaining a peripheral device sharing system according to an embodiment of the invention, and FIG. 4 is a block diagram showing a configuration of a system for realizing the conventional peripheral device sharing system. In the figure, 1 and 2 are control devices, 3 is a printer, and 5 is a control line. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】周辺装置を複数の制御装置で競合すること
なく共用する周辺装置の共用化方式において、前記各制
御装置にそれぞれ1本の制御線を割付け、これら各制御
装置は、前記周辺装置の使用要求発生に伴い使用権の占
有要求信号を前記全制御線にオープンコレクタ出力し、
一定時間待機後、全制御線のうちからアクティブとなっ
ている制御線の信号を読込んで自ら優先判断を行い、自
制御装置の使用権の占有あるいは放棄を行うことを特徴
とする周辺装置の共用化方式。
1. A method of sharing a peripheral device in which a plurality of control devices share the peripheral device without competing with each other, wherein one control line is allocated to each of the control devices. Output request signal for exclusive use of the right of use to all the control lines,
After waiting for a certain period of time, it reads the signal of the active control line from all control lines and makes a priority decision by itself, and occupies or abandons the usage right of its own control device. Method.
JP2326397A 1990-11-28 1990-11-28 Peripheral device sharing method Expired - Lifetime JPH07101880B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2326397A JPH07101880B2 (en) 1990-11-28 1990-11-28 Peripheral device sharing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2326397A JPH07101880B2 (en) 1990-11-28 1990-11-28 Peripheral device sharing method

Publications (2)

Publication Number Publication Date
JPH04196843A JPH04196843A (en) 1992-07-16
JPH07101880B2 true JPH07101880B2 (en) 1995-11-01

Family

ID=18187343

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2326397A Expired - Lifetime JPH07101880B2 (en) 1990-11-28 1990-11-28 Peripheral device sharing method

Country Status (1)

Country Link
JP (1) JPH07101880B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59171237A (en) * 1983-03-17 1984-09-27 Fujitsu Ltd Data transfer system
JPS6074848A (en) * 1983-09-30 1985-04-27 Toshiba Corp Serial data transfer system
EP0187503A3 (en) * 1984-12-31 1987-08-19 Xerox Corporation Shared line communication system
JPS6232738A (en) * 1985-08-05 1987-02-12 Fujitsu Ltd Multiplexing and accelerating circuit for data bus
JPS6273831A (en) * 1985-09-27 1987-04-04 Toshiba Corp Local area network system

Also Published As

Publication number Publication date
JPH04196843A (en) 1992-07-16

Similar Documents

Publication Publication Date Title
US3993981A (en) Apparatus for processing data transfer requests in a data processing system
US4030075A (en) Data processing system having distributed priority network
US3997896A (en) Data processing system providing split bus cycle operation
US3995258A (en) Data processing system having a data integrity technique
US4000485A (en) Data processing system providing locked operation of shared resources
EP0432978B1 (en) Apparatus for conditioning priority arbitration in buffered direct memory addressing
KR960006506B1 (en) Computer system, system expansion unit, bus combiner and bus access control method
US4001790A (en) Modularly addressable units coupled in a data processing system over a common bus
US4961140A (en) Apparatus and method for extending a parallel synchronous data and message bus
US6434643B1 (en) Transmission of status information by a selected one of multiple transfer modes based on the cause for sending the status information
EP0737924A2 (en) Bus arbritation and data transfer
JPS61109164A (en) Bus control
KR900001120B1 (en) Distributed priority network logic for allowing a low priority unit to reside in a high priority position
US4837767A (en) Bus adapter module with improved error recovery in a multibus computer system
US6122699A (en) Data processing apparatus with bus intervention means for controlling interconnection of plural busses
JPH0573482A (en) Information processing apparatus and bus control method thereof
JPH07101880B2 (en) Peripheral device sharing method
JP3476499B2 (en) Data transfer method
JP2000155738A (en) Data processing device
JPS6132162A (en) Competition preventing circuit of information transfer
KR100243868B1 (en) Arbiter logic in main computer system
JP3050131B2 (en) Arbitration method
JP3639321B2 (en) Storage controller
JPH04233028A (en) printer device
CN1137447C (en) Data interface and high-speed communication system using same