JPH05165583A - Port switchihg device - Google Patents

Port switchihg device

Info

Publication number
JPH05165583A
JPH05165583A JP33308891A JP33308891A JPH05165583A JP H05165583 A JPH05165583 A JP H05165583A JP 33308891 A JP33308891 A JP 33308891A JP 33308891 A JP33308891 A JP 33308891A JP H05165583 A JPH05165583 A JP H05165583A
Authority
JP
Japan
Prior art keywords
port
data
state
transferred
host computer
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
JP33308891A
Other languages
Japanese (ja)
Inventor
Keiichi Shioda
慶一 塩田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP33308891A priority Critical patent/JPH05165583A/en
Publication of JPH05165583A publication Critical patent/JPH05165583A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To surely perform port switching by preventing a state that data are transferred simultaneously from a host computer from occurring. CONSTITUTION:An on-line state and a ready state are set setting an I/O port 11a as a receivable port, and reception latency time Tr is set on a counter 13 in such state, and preparation for port switching is performed when no data is transferred from the host computer during that time, then, the I/O port 11a is set in a busy state. At that time, transfer monitoring time Tb is set on a counter 14, and the presence/absence of data transfer from the host computer is detected during that time, and data reception processing is performed by returning the I/O port 11a to the ready state when the data is transferred, and also, the next I/O port can be received by setting the I/O port 11a in an off-line state when no data is transferred.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のI/Oポートを
備えた印刷装置等のデータ処理装置に適用されるポート
切替装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a port switching device applied to a data processing device such as a printing device having a plurality of I / O ports.

【0002】[0002]

【従来の技術】従来、複数のI/Oポートを備えた印刷
装置では、データ受信待ち状態において、まず、全ての
ポートをレディ状態にしておき、この状態で最初にホス
トコンピュータからの印刷データを受け取ったポートを
使用可能ポートとして一連のデータ処理(印刷処理)を
開始すると共に、他の非選択ポートをオフライン状態と
し、使用可能ポートに対する一連のデータ処理(印刷処
理)を終了後、再び全ポートを元の状態に戻すといった
ようなポート切替処理を行っていた。
2. Description of the Related Art Conventionally, in a printing apparatus having a plurality of I / O ports, in a data reception waiting state, first, all ports are set to a ready state, and in this state, print data from the host computer is first read. Starts a series of data processing (print processing) with the received port as an available port, sets the other non-selected ports to the offline state, completes a series of data processing (print processing) for the available ports, and then restarts all ports. Port switching processing such as returning to the original state.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
たような従来のポート切替方法では、使用可能ポートが
選択されるまでは、全てのポートがレディ状態にあるた
め、データがホストコンピュータから同時に転送されて
くることがあった。このため、特定のポートを選択する
ための優先度制御回路等が必要となり、回路構成が複雑
になる他、非選択ポートに接続されたホストコンピュー
タがデータを再送しなければならない等の問題があっ
た。
However, in the conventional port switching method as described above, data is transferred from the host computer at the same time because all the ports are in the ready state until the usable port is selected. There was something that came. Therefore, a priority control circuit or the like for selecting a specific port is required, which complicates the circuit configuration and causes a problem that the host computer connected to the non-selected port has to retransmit data. It was

【0004】本発明は上記のような点に鑑みなされたも
ので、ホストコンピュータからデータが同時に転送され
てくる事態を防止して、確実に複数のI/Oポートを切
替ることのできるポート切替装置を提供することを目的
とする。
The present invention has been made in view of the above points, and can prevent a situation in which data is simultaneously transferred from a host computer and can reliably switch a plurality of I / O ports. The purpose is to provide a device.

【0005】[0005]

【課題を解決するための手段】本発明は、複数のI/O
ポートの中で受信可能ポートを切替えるポート切替え手
段を備え、このポート切替え手段によるポート切替えの
際にホストコンピュータからのデータ転送の有無を検出
し、この結果、データ転送がなかった場合には上記ポー
ト切替え手段によるポート切替えを有効とし、データ転
送があった場合には上記ポート切替え手段によるポート
切替えを無効とし元のポート切替え状態に戻すようにし
たものである。
SUMMARY OF THE INVENTION The present invention provides a plurality of I / Os.
The port switching means for switching the receivable port among the ports is provided, and the presence or absence of data transfer from the host computer is detected at the time of port switching by this port switching means. As a result, if there is no data transfer, the above port The port switching by the switching means is enabled, and when there is data transfer, the port switching by the port switching means is disabled and the original port switching state is restored.

【0006】[0006]

【作用】上記の構成によれば、受信可能ポートの切替え
前に、ホストコンピュータからデータが転送されてくる
と、元のポート切替え状態となる。これにより、その間
に転送されてきたデータを受信することができ、その結
果、ホストコンピュータから同時にデータが転送される
事態を防止できる。
According to the above configuration, when data is transferred from the host computer before switching the receivable port, the original port switching state is set. As a result, the data transferred during that time can be received, and as a result, it is possible to prevent the situation in which the data is simultaneously transferred from the host computer.

【0007】[0007]

【実施例】以下、図面を参照して本発明の一実施例に係
るポート切替装置を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A port switching device according to an embodiment of the present invention will be described below with reference to the drawings.

【0008】図1はその構成を示すブロック図である。
この装置には、複数のI/Oポート11a、11b…が
設けられており、複数の異なるホストコンピュータから
のデータを選択的に受信するように構成されている。C
PU12は、この装置全体の制御を行うものであり、こ
こでは図2および図3に示すポート切替処理を実行す
る。カウンタ13、14は、それぞれCPU12の下
で、後述するポート切替処理時に必要となる受信待ち時
間Tr 、転送監視時間Tb をカウントする。受信バッフ
ァ15は、各I/Oポート11a、11b…を通じて得
られたデータを格納する。
FIG. 1 is a block diagram showing the configuration.
This device is provided with a plurality of I / O ports 11a, 11b ... And is configured to selectively receive data from a plurality of different host computers. C
The PU 12 controls the entire apparatus, and here executes the port switching processing shown in FIGS. 2 and 3. Under the CPU 12, the counters 13 and 14 respectively count a reception waiting time Tr and a transfer monitoring time Tb necessary for a port switching process described later. The reception buffer 15 stores the data obtained through the I / O ports 11a, 11b, ....

【0009】また、Oa 、Ob はオンライン/オフライ
ン信号であり、ここでは、「H」レベルのときオンライ
ン状態、「L」レベルのときオフライン状態を示す。オ
ンライン状態とは、ホストコンピュータとのデータ転送
が可能な状態を言う。オフライン状態とは、ホストコン
ピュータとのデータ転送が不可能な状態(エラー等によ
る信号断状態)を言う。Ba 、Bb はビズィ/レディ信
号であり、ここでは、「H」レベルのときビズィ状態、
「L」レベルのときレディ状態を示す。ビズィ状態と
は、受信禁止状態を言う。レディ状態とは、受信許可状
態を言う。ここで、同実施例の動作を説明する前に、図
5を参照して本発明のポート切替方法を説明する。
Further, Oa and Ob are online / offline signals, which indicate an online state at the "H" level and an offline state at the "L" level. The online state is a state in which data transfer with the host computer is possible. The offline state means a state in which data transfer with the host computer is impossible (signal disconnection state due to an error or the like). Ba and Bb are busy / ready signals. In this case, the busy state is set at the "H" level,
When it is at "L" level, it indicates a ready state. The busy state is a reception prohibited state. The ready state is a reception permitting state. Here, before describing the operation of the embodiment, the port switching method of the present invention will be described with reference to FIG.

【0010】図5に示すように、例えば2つのポートA
およびBがあり、各ポートA、BにそれぞれホストA、
Bが接続されていた場合、基本的には、順番に各ポート
A、Bの一方を受信可能状態(以下、分り易くするため
“青”状態と称す)とし、他方を受信不能状態(以下、
分り易くするため“赤”状態と称す)にして受信可能ポ
ートを順次切替える。ここで、各ポートA、Bに接続さ
れているホストA、Bの一方のデータ転送速度が他方に
比べて遅いと、データ転送中に受信可能ポートが切替わ
り、その間に他のホストからもデータが転送されてくる
可能性がある。
As shown in FIG. 5, for example, two ports A
And B, and each port A, B has a host A,
When B is connected, basically, one of the ports A and B is set in a receivable state (hereinafter, referred to as “blue” state for easy understanding) and the other in a non-receivable state (hereinafter,
In order to make it easier to understand, it is called "red" state) and the receivable ports are sequentially switched. If the data transfer speed of one of the hosts A and B connected to each port A and B is slower than that of the other, the receivable port is switched during data transfer, and data from other hosts is also transferred during that time. May be transferred.

【0011】すなわち、例えばポートAが“青”状態に
なり、これを確認したホストAがデータを転送したとす
る。このホストAのデータがポートAに到達する前に、
所定の切替時間が経過してしまい、ポートBが“青”状
態になると、これを確認したホストBがデータを転送
し、結果的にホストA、Bから同時にデータが転送され
てくることになる。この場合には、ホストAのデータは
受け付けられないため、再転送となる。
That is, assume that, for example, the port A is in the "blue" state, and the host A that confirms this has transferred the data. Before the data of this host A reaches port A,
When the predetermined switching time has elapsed and the port B is in the "blue" state, the host B that confirms this transfers the data, and as a result, the hosts A and B simultaneously transfer the data. .. In this case, the data of the host A cannot be accepted, and the transfer is re-transferred.

【0012】そこで、本発明では、受信可能ポートを切
替える際、所定時間(Tb )だけホストコンピュータか
らデータ転送があった否かを検出することにより、デー
タ転送があれば、元のポート切替え状態に戻すことを特
徴とする。すなわち、図5の例で説明すれば、ポートA
−Bを、まず、“青”−“赤”の状態にし、その後、直
ぐに“赤”−“青”の状態に切替えるのではなく、一
旦、“赤”−“赤”の状態にして、所定時間だけホスト
Aからのデータ転送を待つ。そして、その間にデータ転
送があれば、“青”−“赤”のポート切替え状態に戻
し、また、データ転送がなければ、“赤”−“青”の状
態に切替える。これにより、ホストコンピュータから同
時にデータが転送される事態を防止して、効率良く切替
えることができる。
Therefore, in the present invention, when the receivable port is switched, by detecting whether or not there is data transfer from the host computer for a predetermined time (Tb), if there is data transfer, the original port switching state is set. Characterized by returning. That is, in the example of FIG. 5, port A
-B is first set to the "blue"-"red" state and then immediately switched to the "red"-"blue" state. Wait for the data transfer from the host A for the time. If there is data transfer during that time, the port is switched back to the "blue"-"red" state, and if there is no data transfer, it is switched to the "red"-"blue" state. As a result, it is possible to prevent a situation in which data is transferred from the host computer at the same time, and to perform switching efficiently.

【0013】次に、図2乃至図4を参照して同実施例の
動作を説明する。図2および図3は同実施例のポート切
替処理動作を説明するためのフローチャート、図4は同
ポート切替処理動作を説明するためのタイミングチャー
トである。
Next, the operation of the embodiment will be described with reference to FIGS. 2 and 3 are flowcharts for explaining the port switching processing operation of the embodiment, and FIG. 4 is a timing chart for explaining the port switching processing operation.

【0014】CPU12は、まず、I/Oポート11a
を受信可能ポートとして指定し、オンライン/オフライ
ン信号Oa を「H」レベル、ビズィ/レディ信号Ba を
「L」レベルにしてI/Oポート11aをオンライン状
態およびレディ状態にする(ステップS1,S2)。こ
の状態で、CPU12はカウンタ13に受信待ち時間T
r をセットし(ステップS3)、このTr の間にホスト
コンピュータからデータが転送されてくるか否かをチェ
ックし(ステップS4)、データ転送があれば、そのデ
ータを受信バッファ15に格納してデータ受信処理を行
った後(ステップS5)、再びステップS3からの処理
を実行する。
The CPU 12 firstly detects the I / O port 11a.
Is designated as a receivable port, the online / offline signal Oa is set to the "H" level, the busy / ready signal Ba is set to the "L" level, and the I / O port 11a is set to the online state and the ready state (steps S1 and S2). .. In this state, the CPU 12 causes the counter 13 to receive the reception waiting time T.
r is set (step S3), and it is checked whether or not data is transferred from the host computer during this Tr (step S4). If there is data transfer, the data is stored in the reception buffer 15. After performing the data reception process (step S5), the processes from step S3 are executed again.

【0015】一方、受信待ち時間Tr を経過しても、デ
ータ転送がなければ(ステップS6)、CPU12はポ
ート切替準備に入り、ビズィ/レディ信号Ba を「H」
レベルにしてI/Oポート11aをビジィ状態にした後
(ステップS7)、カウンタ14に転送監視時間Tb を
セットし(ステップS8)、さらにこのTb の間にホス
トコンピュータからデータが転送されてくるか否かをチ
ェックする(ステップS9)。
On the other hand, if there is no data transfer even after the reception waiting time Tr has passed (step S6), the CPU 12 enters port switching preparation and sets the busy / ready signal Ba to "H".
After setting the level to make the I / O port 11a busy (step S7), the transfer monitoring time Tb is set in the counter 14 (step S8), and whether data is transferred from the host computer during this time Tb. It is checked whether or not (step S9).

【0016】ここで、転送監視時間Tb の間にデータ転
送があれば、CPU12はビズィ/レディ信号Ba を
「L」レベルにしてI/Oポート11aをレディ状態に
戻し(ステップS10)、そのデータを受信処理した後
(ステップS11)、再びステップS3からの処理を実
行する。また、転送監視時間Tb を経過しても、データ
転送がなければ(ステップS12)、オンライン/オフ
ライン信号Oa を「L」レベルにしてI/Oポート11
aをオフライン状態にし(ステップS13)、次にI/
Oポート11bを受信可能ポートとして指定することに
より(ステップS14)、ステップS1からの処理を繰
り返す。
If there is data transfer during the transfer monitoring time Tb, the CPU 12 sets the busy / ready signal Ba to "L" level to return the I / O port 11a to the ready state (step S10), and the data is transferred. Is received (step S11), the processes from step S3 are executed again. If no data is transferred even after the transfer monitoring time Tb has passed (step S12), the online / offline signal Oa is set to the "L" level and the I / O port 11
a is set to the offline state (step S13), and then I /
By designating the O port 11b as a receivable port (step S14), the processing from step S1 is repeated.

【0017】このように、受信可能ポートの切替え前に
(オフライン状態になる前)、ビジィ状態ではあるが、
ホストコンピュータからデータが転送されてくると、レ
ディ状態に戻り、元のポート切替え状態となる。これに
より、その間に転送されてきたデータを受信することが
でき、その結果、ホストコンピュータから同時にデータ
が転送される事態を防止できる。
As described above, before the receivable port is switched (before the offline state), it is in the busy state,
When data is transferred from the host computer, it returns to the ready state and returns to the original port switching state. As a result, the data transferred during that time can be received, and as a result, it is possible to prevent the situation in which the data is simultaneously transferred from the host computer.

【0018】[0018]

【発明の効果】以上のように本発明によれば、受信可能
ポートの切替え前にデータ転送を有無検出し、データ転
送があれぱ、元のポート切替え状態に戻すようにしたた
め、ホストコンピュータからのデータが同時に転送され
てくる事態を防止して、確実に複数のI/Oポートを切
替ることができる。したがって、複数のI/Oポートを
備えた印刷装置等のデータ処理装置において、特定のポ
ートを選択するための優先度制御回路等を必要とせず
に、複数の異なるホストコンピュータからのデータを選
択的に受信して確実に処理することができる。
As described above, according to the present invention, the presence / absence of data transfer is detected before the receivable port is switched, and the original port switching state is restored if there is data transfer. It is possible to reliably switch a plurality of I / O ports by preventing a situation where data is transferred at the same time. Therefore, in a data processing device such as a printing device having a plurality of I / O ports, data from a plurality of different host computers can be selectively selected without requiring a priority control circuit or the like for selecting a specific port. Can be reliably received and processed.

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

【図1】本発明の一実施例に係る構成を示すブロック
図。
FIG. 1 is a block diagram showing a configuration according to an embodiment of the present invention.

【図2】同実施例の動作を説明するためのフローチャー
ト。
FIG. 2 is a flowchart for explaining the operation of the embodiment.

【図3】同実施例の動作を説明するためのフローチャー
ト。
FIG. 3 is a flowchart for explaining the operation of the embodiment.

【図4】同実施例の動作を説明するためのタイミングチ
ャート。
FIG. 4 is a timing chart for explaining the operation of the embodiment.

【図5】本発明のポート切替方法を説明するための図。FIG. 5 is a diagram for explaining a port switching method according to the present invention.

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

11aおよび11b…I/Oポート、12…CPU、1
3および14…カウンタ、15…受信バッファ、Oa お
よびOb …オンライン/オフライン信号、BaおよびBb
…ビズィ/レディ信号。
11a and 11b ... I / O ports, 12 ... CPU, 1
3 and 14 ... Counter, 15 ... Receive buffer, Oa and Ob ... Online / offline signal, Ba and Bb
… Biz / ready signal.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータから転送されてくる
データを受信する複数のI/Oポートと、 この各I/Oポートの中で受信可能ポートを切替えるポ
ート切替え手段と、 このポート切替え手段によるポート切替えの際に、上記
ホストコンピュータからデータ転送があったか否かを検
出する検出手段と、 この検出手段の結果、上記データ転送がなかった場合に
は上記ポート切替え手段よるポート切替えを有効とし、
上記データ転送があった場合には上記ポート切替え手段
によるポート切替えを無効とし、元のポート切替え状態
に戻す制御手段とを具備したことを特徴とするポート切
替装置。
1. A plurality of I / O ports for receiving data transferred from a host computer, a port switching means for switching a receivable port among the respective I / O ports, and a port switching by the port switching means. In this case, a detection means for detecting whether or not there is data transfer from the host computer, and as a result of this detection means, if there is no data transfer, the port switching by the port switching means is enabled,
A port switching device comprising: a control unit that invalidates the port switching by the port switching unit when the data is transferred, and restores the original port switching state.
JP33308891A 1991-12-17 1991-12-17 Port switchihg device Pending JPH05165583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33308891A JPH05165583A (en) 1991-12-17 1991-12-17 Port switchihg device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33308891A JPH05165583A (en) 1991-12-17 1991-12-17 Port switchihg device

Publications (1)

Publication Number Publication Date
JPH05165583A true JPH05165583A (en) 1993-07-02

Family

ID=18262141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33308891A Pending JPH05165583A (en) 1991-12-17 1991-12-17 Port switchihg device

Country Status (1)

Country Link
JP (1) JPH05165583A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002079726A (en) * 2000-06-28 2002-03-19 Katsuragawa Electric Co Ltd Imaging device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002079726A (en) * 2000-06-28 2002-03-19 Katsuragawa Electric Co Ltd Imaging device

Similar Documents

Publication Publication Date Title
JPS6043535B2 (en) information processing equipment
JP2996440B2 (en) Diagnosis method of data processing system
US5905744A (en) Test mode for multifunction PCI device
JP3051798B2 (en) Output control device and output control method
JPH05165583A (en) Port switchihg device
JP2990800B2 (en) Interrupt processing device
JPH05204692A (en) Failure detecting/separating system for information processor
JP2755998B2 (en) Data transfer device
JP2642489B2 (en) Multi-port switching control method
JPS63228856A (en) Communication controller
JPH05113838A (en) Connection device
JPH0455969A (en) Dma control circuit
JPH04286020A (en) Plural ports printer system
JPS63228855A (en) Communication controller
JPS62125455A (en) Communication controller
JPS63168757A (en) Bus error detecting system
JPS6316358A (en) Control system for i/o command output
JPH05134953A (en) Data transfer controller
JPH0359708A (en) Connection control device
JPH01233645A (en) Data transfer control system for shared bus
JPH064240A (en) Printer device control system
JPH04294181A (en) Printer device
JPS6288198A (en) Memory device
JPH10161893A (en) Interrupt control system
JPS5981950A (en) Data transfer control system