JPH10116248A - Two-way transfer method - Google Patents

Two-way transfer method

Info

Publication number
JPH10116248A
JPH10116248A JP28741496A JP28741496A JPH10116248A JP H10116248 A JPH10116248 A JP H10116248A JP 28741496 A JP28741496 A JP 28741496A JP 28741496 A JP28741496 A JP 28741496A JP H10116248 A JPH10116248 A JP H10116248A
Authority
JP
Japan
Prior art keywords
mode
transfer mode
transfer
terminal device
reverse
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.)
Granted
Application number
JP28741496A
Other languages
Japanese (ja)
Other versions
JP3677533B2 (en
Inventor
Yuichi Watanabe
雄一 渡邉
Hideaki Imaizumi
秀昭 今泉
Atsushi Ito
敦志 伊藤
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data 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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP28741496A priority Critical patent/JP3677533B2/en
Publication of JPH10116248A publication Critical patent/JPH10116248A/en
Application granted granted Critical
Publication of JP3677533B2 publication Critical patent/JP3677533B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten the procedure by switching the transfer direction of data in the same mode and to drastically shorten the processing time for switching the direction of the data transfer without using any hardware. SOLUTION: After a host device 1 is connected to a terminal device 2 to a actuate an interface, a compatible mode M2 is switched to a high-speed switching mode M7 through a negotiation phase to enter a phase for forward transfer provided in it. When a multifunction terminal side is ready to receive, the forward transfer mode (block transfer mode) is entered and data transfer is carried out. When the multifuctional terminal makes a request to transfer data backward, a transfer direction switching phase is done in a short time and the reverse transfer is carried out. After the reverse transfer ends, the forward transfer mode is entered in a short time without performing any termination process.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、上位装置と端末装
置間、例えばパーソナルコンピュータと多機能端末間の
パラレルインタフェースを用いたデータの双方向転送方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bidirectional data transfer method using a parallel interface between a host device and a terminal device, for example, between a personal computer and a multifunction terminal.

【0002】[0002]

【従来の技術】プリンタやファクシミリ装置がますます
多機能化しており、これらが、パーソナルコンピュータ
等の上位装置と多様な双方向通信をしながら動作するよ
うになってきた。こうしたプリンタやファクシミリ装置
機能あるいはコピー機能を備えたものを多機能端末と総
称する。従来のパーソナルコンピュータ(PC)と多機
能端末との間のパラレルインタフェースを用いたデータ
転送には、例えばIEEE標準1284規格で標準化さ
れているようなセントロニクスインタフェースケーブル
が用いられる。この標準規格では、双方向の通信では、
インタフェースケーブルのいずれかの信号線に意味付け
をして、データの送受を行っている。転送モードには、
PCから多機能端末にデータを転送する(正方向と呼
ぶ)コンパチブルモードと多機能端末からPCにデータ
を転送する(逆方向と呼ぶ)ニブルモードがある。
2. Description of the Related Art Printers and facsimile machines have become more and more multifunctional, and have been operating while performing various bidirectional communications with a host device such as a personal computer. Devices having such a printer, facsimile machine function or copy function are collectively referred to as multifunctional terminals. For data transfer using a parallel interface between a conventional personal computer (PC) and a multifunction terminal, for example, a Centronics interface cable standardized by IEEE standard 1284 is used. In this standard, for two-way communication,
Data is transmitted and received by giving meaning to any signal line of the interface cable. In transfer mode,
There is a compatible mode for transferring data from the PC to the multi-function terminal (referred to as forward direction) and a nibble mode for transferring data from the multi-function terminal to the PC (referred to as reverse direction).

【0003】例えばコンパチブルモードでは、2ピンか
ら9ピンまでの8本の信号線でデータを送り、ニブルモ
ードでは11〜13ピンと32ピンの4本のラインを利
用して4ビットずつデータを送る。これらのモードの切
り換えにより、双方向データ転送を実現している。モー
ドの切換えは、PC主導のもとに逆方向転送の有無を問
いかける方式で行っている。
For example, in the compatible mode, data is transmitted by eight signal lines from pin 2 to pin 9, and in the nibble mode, data is transmitted by four bits using four lines of pins 11 to 13 and 32. By switching these modes, bidirectional data transfer is realized. The mode is switched by a method of inquiring of the presence or absence of the reverse transfer under the initiative of the PC.

【0004】[0004]

【発明が解決しようとする課題】ところで、上記のよう
な従来の双方向転送方法には次のような解決すべき課題
があった。端末が多機能化してくると、PCと多機能端
末間のリバース方向のデータ量やデータ転送方向の切り
換え回数が格段に増える。ここで例えば多機能端末がフ
ァクシミリモデム機能を持つ場合、通信時の信号の長さ
や間隔が規格で決まっているから、一定の制限された時
間内に双方向転送を終了しなければならない。しかしな
がら、上記の方法では、ホストが正方向の転送が終った
ときにターミネーションモード→ネゴシエーションモー
ドを経て転送モードを換えないとデータ転送方向の切り
換えができないので、かなり処理時間がかかる。従っ
て、多機能端末の機能を実現するための要求時間内にデ
ータ転送が終了しないという問題がある。また、PC側
に組み込んだ特殊なハードウェアを用いて、ターミネー
ションを行うことなく同一モード内で転送方向を変える
ECPモードというモードがIEEE1284で標準化
されているが、ハードウェアを使用するのでコスト的に
問題がある。
The conventional bidirectional transfer method as described above has the following problems to be solved. As the terminals become multifunctional, the amount of data in the reverse direction between the PC and the multifunctional terminal and the number of times of switching the data transfer direction increase dramatically. Here, for example, when the multi-function terminal has a facsimile modem function, since the length and interval of a signal at the time of communication are determined by the standard, the bidirectional transfer must be completed within a certain limited time. However, in the above method, the data transfer direction cannot be switched unless the transfer mode is changed through the termination mode to the negotiation mode when the host completes the forward transfer, so that a considerable processing time is required. Therefore, there is a problem that data transfer is not completed within a required time for realizing the function of the multi-function terminal. In addition, a mode called an ECP mode in which the transfer direction is changed within the same mode without terminating using special hardware built into the PC side is standardized in IEEE 1284, but since hardware is used, cost is reduced. There's a problem.

【0005】[0005]

【課題を解決するための手段】本発明は以上の点を解決
するため次の構成を採用する。なお、本発明ではPC等
の機器を上位装置、多機能端末等の機器を端末装置と表
現している。 〈構成1〉相互にインタフェースを介して接続された上
位装置と端末装置との間で、データを上位装置から端末
装置へ転送する正方向転送モードと、その逆に、データ
を端末装置から上位装置へ転送する逆方向転送モードと
が存在し、いずれかのモードから他のモードに移行する
場合には、いったん各モードを終了して、予め設定され
た手順を経て他のモードに移行する処理を設定するとと
もに、これらのモードとは別に、高速切り換えモードを
設けて、このモードの中に正方向転送モードと逆方向転
送モードとを含み、正方向転送モードで動作直後に、イ
ンタフェースを構成する所定の信号線を介して端末装置
が上位装置に対してハンドシェイクを実行して、高速切
り換えモードを終了することなく逆方向転送モードに切
り換えを行うことを特徴とする双方向転送方法。
The present invention employs the following structure to solve the above problems. In the present invention, a device such as a PC is referred to as a host device, and a device such as a multifunction terminal is referred to as a terminal device. <Configuration 1> Forward transfer mode for transferring data from a host device to a terminal device between a host device and a terminal device connected to each other via an interface, and conversely, data from the terminal device to the host device When there is a reverse transfer mode for transferring to any mode, and when shifting from one mode to another mode, the process of ending each mode once and shifting to another mode through a preset procedure is performed. In addition to the setting, a high-speed switching mode is provided separately from these modes, and the modes include a forward transfer mode and a reverse transfer mode. The terminal device performs a handshake with the higher-level device via the signal line of (1), and switches to the reverse transfer mode without terminating the high-speed switching mode. Bidirectional transfer wherein.

【0006】〈構成2〉相互にインタフェースを介して
接続された上位装置と端末装置との間で、データを上位
装置から端末装置へ転送する正方向転送モードと、その
逆に、データを端末装置から上位装置へ転送する逆方向
転送モードとが存在し、いずれかのモードから他のモー
ドに移行する場合には、いったん各モードを終了して、
予め設定された手順を経て他のモードに移行する処理を
設定するとともに、これらのモードとは別に、高速切り
換えモードを設けて、このモードの中に正方向転送モー
ドと逆方向転送モードとを含み、逆方向転送モードで動
作直後に、上位装置は、他のタスクと割り込み処理とを
全てマスクして、インタフェースを構成する所定の信号
線を介してハンドシェイクを実行して、高速切り換えモ
ードを終了することなく正方向転送モードに切り換えを
行うことを特徴とする双方向転送方法。
<Structure 2> A forward transfer mode in which data is transferred from a higher-level device to a terminal device between a higher-level device and a terminal device connected to each other via an interface, and vice versa. There is a reverse transfer mode in which data is transferred to the higher-level device, and when shifting from any mode to another mode, the respective modes are temporarily terminated,
In addition to setting processing for shifting to another mode through a preset procedure, a high-speed switching mode is provided separately from these modes, and this mode includes a forward transfer mode and a reverse transfer mode. Immediately after operating in the reverse transfer mode, the host device masks all other tasks and interrupt processing, executes a handshake via a predetermined signal line configuring the interface, and ends the high-speed switching mode. A bidirectional transfer method characterized by switching to a forward transfer mode without performing.

【0007】〈構成3〉相互にインタフェースを介して
接続された上位装置と端末装置との間で、データを上位
装置から端末装置へ転送する正方向転送モードと、その
逆に、データを端末装置から上位装置へ転送する逆方向
転送モードとが存在し、いずれかのモードから他のモー
ドに移行する場合には、いったん各モードを終了して、
予め設定された手順を経て他のモードに移行する処理を
設定するとともに、これらのモードとは別に、高速切り
換えモードを設けて、このモードの中に正方向転送モー
ドと逆方向転送モードとを含み、正方向転送モードで動
作直後に、インタフェースを構成する所定の信号線を介
して端末装置が上位装置に対してハンドシェイクを実行
して、高速切り換えモードを終了することなく逆方向転
送モードに切り換えを行うとともに、逆方向転送モード
で動作直後に、上位装置は、他のタスクと割り込み処理
とを全てマスクして、インタフェースを構成する所定の
信号線を介してハンドシェイクを実行して、高速切り換
えモードを終了することなく正方向転送モードに切り換
えを行うことを特徴とする双方向転送方法。
<Structure 3> A forward transfer mode in which data is transferred from a higher-level device to a terminal device between a higher-level device and a terminal device connected to each other via an interface, and vice versa. There is a reverse transfer mode in which data is transferred to the higher-level device, and when shifting from any mode to another mode, the respective modes are temporarily terminated,
In addition to setting processing for shifting to another mode through a preset procedure, a high-speed switching mode is provided separately from these modes, and this mode includes a forward transfer mode and a reverse transfer mode. Immediately after operating in the forward transfer mode, the terminal device performs a handshake with the higher-level device via a predetermined signal line constituting the interface, and switches to the reverse transfer mode without terminating the high-speed switching mode. Immediately after operating in the reverse transfer mode, the higher-level device masks all other tasks and interrupt processing, executes a handshake via a predetermined signal line configuring the interface, and performs high-speed switching. A bidirectional transfer method characterized by switching to a forward transfer mode without terminating the mode.

【0008】〈構成4〉構成1〜3において、正方向転
送モードからネゴシェーションフェーズを経て逆方向転
送モードに移行し、逆方向転送モードからターミネーシ
ョンフェーズを経て正方向転送モードに移行する処理が
設定されているとき、正方向転送モードからネゴシェー
ションフェーズを経て高速切り換えモードに移行し、高
速切り換えモードからターミネーションフェーズを経て
正方向転送モードに移行する処理を設定することを特徴
とする双方向転送方法。
<Structure 4> In structures 1 to 3, processing for shifting from the forward transfer mode to the reverse transfer mode via the negotiation phase, and shifting from the reverse transfer mode to the forward transfer mode via the termination phase is performed. When set, a process is set to shift from the forward transfer mode to the high-speed switching mode via the negotiation phase and to shift from the fast switching mode to the positive-direction transfer mode via the termination phase. Transfer method.

【0009】〈構成5〉構成1〜3において、上位装置
と端末装置とはいずれも、ハンドシェイクの際に同時
に、正方向転送モードと逆方向転送モードとの間の切り
換え処理を実行することを特徴とする双方向転送方法。
<Structure 5> In structures 1 to 3, both the host device and the terminal device execute the switching process between the forward transfer mode and the reverse transfer mode at the same time as the handshake. Characteristic bidirectional transfer method.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を具体
例を用いて説明する。 〈具体例1〉図1は、本発明の双方向転送方法の具体例
説明図である。例えば、パーソナルコンピュータのよう
な上位装置1と端末装置2とがセントロニクスインタフ
ェースケーブルのような標準パラレルインタフェース3
により接続されている場合に、この図に示すような双方
向転送処理が行われる。この具体例では、端末装置2と
して、ファクシミリ機能を持った多機能端末を使用し
た。この図はIEEE1284に準拠した動作で、電源
投入時はコンパチブルモードM1で動作する。このコン
パチブルモードM1には、正方向の転送モード(上位装
置から端末装置へデータを転送するモード)M2とアイ
ドルモードM3の状態が存在する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below using specific examples. <Specific Example 1> FIG. 1 is an explanatory diagram of a specific example of the bidirectional transfer method of the present invention. For example, a host device 1 such as a personal computer and a terminal device 2 are connected to a standard parallel interface 3 such as a Centronics interface cable.
, The bidirectional transfer processing as shown in this figure is performed. In this specific example, a multifunctional terminal having a facsimile function is used as the terminal device 2. This diagram is an operation based on IEEE1284, and operates in a compatible mode M1 when the power is turned on. The compatible mode M1 includes a forward transfer mode (a mode in which data is transferred from a higher-level device to a terminal device) M2 and an idle mode M3.

【0011】従来は、このような正方向転送モードから
他のモードに移る場合、一旦ネゴシエーションフェーズ
M4を経る。従来から用意されたモードには、逆方向転
送のニブルモード(端末装置から上位装置へデータを転
送するモード)M6が存在する。更に本発明において、
新たに高速切り換えモードM7を設定した。そして、い
ずれのモードもそのモードを抜けるとターミネーション
フェーズM8を介してコンパチブルモードM1に移行す
る。上記高速切り換えモードM7では、内部に正方向の
転送モードと逆方向の転送モードの両方を含むようにし
て正方向と逆方向のデータ転送の切り換えを高速化して
いる。
Conventionally, when shifting from such a forward transfer mode to another mode, a negotiation phase M4 is once performed. A conventionally prepared mode includes a reverse transfer nibble mode (mode for transferring data from a terminal device to a higher-order device) M6. Further, in the present invention,
The high-speed switching mode M7 is newly set. Then, when exiting any of the modes, the mode shifts to the compatible mode M1 via the termination phase M8. In the high-speed switching mode M7, both the forward transfer mode and the reverse transfer mode are included therein to speed up the switching between forward and reverse data transfer.

【0012】即ち、従来の方法では、正方向の転送モー
ドM2から逆方向の転送モードであるニブルモードM6
へ移行する場合、必ずネゴシエーションフェーズM4あ
るいはターミネーションフェーズM8を経由して一方の
モードを抜け、他方のモードに移るという動作を行う。
高速切り換えモードM7においては、1つのモードの中
で正逆両方向の転送モードをサポートする。具体的には
上位装置1と端末装置2、例えばパーソナルコンピュー
タとファクシミリ機能を持った多機能端末とがそれぞれ
割り込み処理の中で向かい合うことによって切り換え時
間を短縮している。なお、高速切り換えモードM7が、
他のニブルモードM6と同様に、ターミネーションフェ
ーズM8を経由し、コンパチブルモードM1に戻るよう
にしたのは、IEEE1284の標準シーケンスとの整
合性を保つためである。
That is, in the conventional method, the nibble mode M6, which is the forward transfer mode, is changed from the forward transfer mode M2.
In the case of transition to, the operation is performed such that one mode is always exited via the negotiation phase M4 or the termination phase M8 and the other mode is entered.
The high-speed switching mode M7 supports both forward and reverse transfer modes in one mode. Specifically, the switching time is reduced by the host device 1 and the terminal device 2, for example, a personal computer and a multi-function terminal having a facsimile function facing each other in the interrupt processing. Note that the high-speed switching mode M7 is
Like the other nibble modes M6, the reason for returning to the compatible mode M1 via the termination phase M8 is to maintain consistency with the IEEE 1284 standard sequence.

【0013】以下、本発明による高速切り換えモードM
7の内容について具体的な説明を行う。図2には、IE
EE1284タイプB準拠のインタフェース信号線の割
当て説明図を示す。これはいわゆるセントロニクスイン
タフェースの各ピンの信号名とその論理、データ転送方
向及び機能を明らかにしたものである。各信号名は規定
通りの記号で記述する。以下、図3以降の図面中の記号
はこの図を参照することにより内容が理解できる。
Hereinafter, the high-speed switching mode M according to the present invention will be described.
7 will be described in detail. FIG. 2 shows the IE
FIG. 3 is an explanatory diagram of assignment of interface signal lines conforming to EE1284 type B. This clarifies the signal name of each pin of the so-called Centronics interface, its logic, data transfer direction and function. Each signal name is described with the specified symbol. Hereinafter, the contents of the symbols in the drawings after FIG. 3 can be understood by referring to this figure.

【0014】図3には、インタフェース信号線の説明図
を示す。上記各インタフェース信号線は、高速切り換え
モードM7において、この図に示すように利用される。
まず、1ピン,14ピン,36ピンは、モード移行時の
初期化に利用される。次に、11ピン,12ピン,13
ピン,32ピンは、いずれも逆方向転送用データ線とし
て使用される。即ち、ニブルモードにおいて、多機能端
末からホストであるPCへデータを転送するために使用
される。また、2ピンから9ピンまでの8本のピンは正
方向転送用データ線として使用される。即ち、コンパチ
ブルモードにおいて、ホストのPCから多機能端末にデ
ータを転送するために使用される。
FIG. 3 is an explanatory diagram of an interface signal line. Each of the above interface signal lines is used in the high-speed switching mode M7 as shown in FIG.
First, pins 1, 14, and 36 are used for initialization at the time of mode transition. Next, 11-pin, 12-pin, 13-pin
Pins and 32 pins are both used as data lines for reverse transfer. That is, in the nibble mode, the multifunction terminal is used to transfer data to the host PC. Eight pins from pin 2 to pin 9 are used as data lines for forward transfer. That is, in the compatible mode, it is used to transfer data from the host PC to the multi-function terminal.

【0015】図4は、高速転送モードにおける転送方向
を正方向から逆方向へ切り換えるためのタイムチャート
を示す。また、図5と図6は、逆方向転送モードの内容
とこのモードから再び正方向転送モードへ移る場合のタ
イムチャートを示している。以下、図1及び図4〜図7
を参照しながら、本発明の方法を更に具体的に説明す
る。
FIG. 4 is a time chart for switching the transfer direction from the forward direction to the reverse direction in the high-speed transfer mode. FIGS. 5 and 6 show the contents of the reverse transfer mode and a time chart when the mode shifts to the forward transfer mode again. Hereinafter, FIG. 1 and FIGS.
, The method of the present invention will be described more specifically.

【0016】IEEE1284に準拠し、電源投入時
は、図1に示すコンパチブルモードに移行する。コンパ
チブルモードから本発明の高速切り換えモードに移行す
る際もIEEE1284で取り決められたネゴシエーシ
ョンフェーズの手続きを経由することでIEEE128
4に準拠する。
In accordance with IEEE 1284, when the power is turned on, the mode shifts to the compatible mode shown in FIG. The transition from the compatible mode to the high-speed switching mode of the present invention is also performed through the procedure of the negotiation phase determined by IEEE1284.
4

【0017】高速切り換えモード移行時は正方向の転送
が可能であり、1回の(e)のnStrobe の立ち下がりと
立ち上がりで2byteのデータを転送する。ホストは適当
なデータ量を1ブロックとし、この単位で転送を実行す
る。
At the time of transition to the high-speed switching mode, forward transfer is possible, and 2-byte data is transferred by one falling and rising of nStrobe (e). The host sets an appropriate amount of data as one block, and executes transfer in this unit.

【0018】1ブロックのデータ転送中ホストはビジー
チェックを行わない。1ブロックのデータ転送が転送終
了した時点でプリンタがビジーかどうかチェックを行
い、ビジーの場合はビジーが解除されるまで、データ転
送は行えない。ビジーにする受信バッファ残量はXXkb
yte 以上である。また、ビジーを解除する受信バッファ
残量はYYkbyte 以下である。ビジーは、(g)のBusy
信号Low で解除される。多機能端末側でPCにデータを
送信したい場合は、多機能端末側のデータ送信要求の意
味付けをした(h)nFaultをLow とする(タイミングt
1)。PC側は正方向でデータを1ブロック分送信した
ところで(h)のnFault信号を監視しnFault=Lowを検出
したら逆方向転送モードに移行する。
The host does not perform a busy check during the transfer of one block of data. When the transfer of one block of data is completed, it is checked whether the printer is busy. If the printer is busy, data transfer cannot be performed until the busy is released. XXkb of receive buffer remaining to be busy
yte or more. The remaining amount of the reception buffer for releasing the busy is YYkbyte or less. Busy (g) Busy
It is released by the signal Low. When it is desired to transmit data to the PC on the multi-function terminal side, (h) nFault giving a meaning of the data transmission request on the multi-function terminal side is set to Low (timing t
1). When the PC transmits data for one block in the forward direction, it monitors the nFault signal in (h), and when nFault = Low is detected, shifts to the reverse transfer mode.

【0019】逆方向転送切り換えフェーズは次のように
動作する。多機能端末側は送信データ有りにより、正方
向転送フェーズまたは、ブロック転送終了フェーズの任
意のタイミングでnFault信号をLow とする。PC側はブ
ロック転送フェーズ終了後にnFaultの監視を行い、Low
を検出した場合、以下の転送方向切り換えハンドシェイ
クを行う。また、単にPCが転送方向を逆方向に変更し
たい場合も以下の動作を行う。
The reverse transfer switching phase operates as follows. The multi-function terminal sets the nFault signal to Low at an arbitrary timing in the forward transfer phase or the block transfer end phase due to the presence of transmission data. The PC monitors nFault after the block transfer phase ends,
Is detected, the following transfer direction switching handshake is performed. The following operation is also performed when the PC simply wants to change the transfer direction to the opposite direction.

【0020】ホストは、1284Active(nSelectIn) を
Low (タイミングt1)にし、HostBusy(nAutoFd) をHi
ghにセットして、IEEE1284モードからのターミ
ネートを要求する。多機能端末は、PtrBusy(Busy) とnD
ataAvail(nFault)をHighにセットする(タイミングt
2)。多機能端末は、XFlag(Select) を反転し(タイミ
ングt3)、PtrClk(nAck)をLow にセットする。
The host sends 1284 Active (nSelectIn)
Set to Low (timing t1) and set HostBusy (nAutoFd) to Hi
Set to gh to request termination from IEEE 1284 mode. Multifunctional terminals are PtrBusy (Busy) and nD
Set ataAvail (nFault) to High (timing t
2). The multi-function terminal inverts XFlag (Select) (timing t3) and sets PtrClk (nAck) to Low.

【0021】ホストは、HostClk(nStrob) ,1284Ac
tive(nSelectin) をHighにし(タイミングt4)、Host
Busy(nAutoFd) をLow にセットする。多機能端末は、Pt
rBusy(Busy) をLow にセットする(タイミングt5)。
ここで、多機能端末がPtrBusy(Busy) をLow に変化させ
なければ、IEEE1284のターミネーションに入る
ことができる。ホストは、HostBusy(nAutoFd) をHighに
セットする(タイミングt6)。多機能端末は、PtrBus
y をHighにセットする(タイミングt7)。このとき、
リバース送信データが有るならば、PError及びnFaultに
Low を、無いならば、Highをセットする。
The host is HostClk (nStrob), 1284Ac
tive (nSelectin) is set to High (timing t4), and Host
Set Busy (nAutoFd) to Low. Multifunctional terminal, Pt
rBusy (Busy) is set to Low (timing t5).
Here, if the multi-function terminal does not change PtrBusy (Busy) to Low, the terminal can enter the termination of IEEE1284. The host sets HostBusy (nAutoFd) to High (timing t6). Multifunctional terminal, PtrBus
y is set to High (timing t7). At this time,
If there is reverse transmission data, PError and nFault
Set Low, if not, set High.

【0022】上記動作終了後、ホストビジーデータアベ
イラブルフェーズへ移行する(図5)。以降の図5に示
す逆方向の転送シーケンスはIEEE1284ニブルモ
ードと同等のため説明を省略する。逆方向の転送が1ブ
ロック終了したら、ホストビジーデータアベイラブルフ
ェーズに入り、(b)の信号を参照してPCからのデー
タ送信要求の有無を確認する(図6のタイミングt
8)。そしてPCからデータ送信要求があったら転送方
向を逆方向から正方向に切り換える。
After the above operation is completed, the process shifts to the host busy data available phase (FIG. 5). The subsequent transfer sequence shown in FIG. 5 in the reverse direction is the same as the IEEE1284 nibble mode, and a description thereof will be omitted. When the transfer in the reverse direction is completed for one block, the host enters the data available phase, and the presence or absence of a data transmission request from the PC is checked by referring to the signal (b) (at timing t in FIG. 6).
8). When a data transmission request is issued from the PC, the transfer direction is switched from the reverse direction to the forward direction.

【0023】正方向転送切り換えフェーズは次のように
動作する。逆方向転送状態において、ニブルモードのタ
ーミネーションフェーズ移行と同等のタイミングで、以
下のハンドシェイクを開始することで、送信方向を正方
向に切り換えることが可能である。
The forward transfer switching phase operates as follows. In the reverse transfer state, it is possible to switch the transmission direction to the forward direction by starting the following handshake at the same timing as the transition to the termination phase of the nibble mode.

【0024】ホストは、1284Active(nSelectIn) を
Low にし(タイミングt9)、HostBusy(nAutoFd) をHi
ghにセットして、IEEE1284モードからのターミ
ネートを要求する。多機能端末は、PtrBusy(Busy) とnD
ataAvail(nFault)をHighにセットする(タイミングt1
0)。ホストは、XFlag(Select) を反転し、PtrClk(nAc
k)をLow にセットする(タイミングt11)。
The host sends 1284 Active (nSelectIn)
Low (at timing t9), and set HostBusy (nAutoFd) to Hi.
Set to gh to request termination from IEEE 1284 mode. Multifunctional terminals are PtrBusy (Busy) and nD
Set ataAvail (nFault) to High (timing t1
0). The host inverts XFlag (Select) and sets PtrClk (nAc
k) is set to Low (timing t11).

【0025】ホストは、HostClk(nStrobe),1284Ac
tive(nSelectln) をHighにし、HostBusy(nAutoFd) をLo
w にセットする(タイミングt12)。多機能端末は、
PtrBusy(Busy) をLow にセットする(タイミングt1
3)。ホストは、HostBusy(nAutoFd) をHighにセットす
る(タイミングt14)。多機能端末は、PtrBusy(Bus
y) をHighにセットし、AckDataReq(PError)をLow、nDat
aAvail(nFault)をHighにセットする(タイミングt1
5)。上記動作終了後、次のフェーズへ移行する。
The host is HostClk (nStrobe), 1284Ac
Set tive (nSelectln) to High and set HostBusy (nAutoFd) to Lo
w (timing t12). Multifunctional terminals are
Set PtrBusy (Busy) to Low (timing t1
3). The host sets HostBusy (nAutoFd) to High (timing t14). Multifunctional terminals are available on PtrBusy (Bus
y) is set to High, AckDataReq (PError) is set to Low, nDat
Set aAvail (nFault) to High (timing t1
5). After the above operation, the process proceeds to the next phase.

【0026】以上のように、この具体例では、電源投入
後、コンパチブルモードからネゴシエーションにて高速
切り換えモードに入り、正方向転送のためのフェーズに
入る。多機能端末側が受信可ならば正方向の転送モード
(ブロックトランスファーフェーズ)になり、多機能端
末から逆方向のデータ転送要求があった場合にnFault信
号をLow にする。それをPCがブロック転送フェーズ終
了時に検出して転送方向切り換えフェーズを行い逆方向
のデータ転送を行う。
As described above, in this specific example, after the power is turned on, the high-speed switching mode is entered by negotiation from the compatible mode, and the phase for the forward transfer is entered. If the multi-function terminal can receive data, the transfer mode is the forward transfer mode (block transfer phase). If the multi-function terminal requests data transfer in the reverse direction, the nFault signal is set to low. The PC detects this at the end of the block transfer phase, performs a transfer direction switching phase, and performs data transfer in the reverse direction.

【0027】なお、PCがブロック転送を行っていない
ときは、リバースアイドル状態かフォワードアイドル状
態になっている。いずれの場合も、ホストビジーデータ
ノットアイドル状態からアイドル状態に移行するときnF
aultはHighの状態だから、nFaultがLow レベルに変化す
るのを検出できる。例えば、図4のタイミングt1で、
nFaultがHighならば、フォワードアイドル状態に移行
し、その後nFaultがLow に変化すると割り込みが発生し
て逆方向の転送要求があったことを知る。
When the PC is not performing the block transfer, the PC is in the reverse idle state or the forward idle state. In either case, when the host busy data knot transitions from the idle state to the idle state, nF
Since ault is High, it can detect that nFault changes to Low level. For example, at timing t1 in FIG.
If nFault is High, the state shifts to the forward idle state. After that, when nFault changes to Low, an interrupt is generated and it is known that there is a transfer request in the reverse direction.

【0028】〈具体例1の効果〉このように、IEEE
1284ECPモードのようなハードウェアを持つこと
なく、上記の方式を適用することにより、1つの高速切
り換えモードの中に正/逆の転送モードを持たせ、正方
向から逆方向あるいは逆方向から正方向の転送方向の切
り換えを、IEEE1284で標準化されているような
複雑な手順をとることなく実現できる。IEEE128
4ではコンパチブルモードからネゴシエーションをして
各転送モード(正方向転送モードや逆方向転送モード)
に移行し、転送方向を換える。従って、必ずターミネー
ションフェーズに移行し再びコンパチブルモードに移行
し、ネゴシエーションフェーズを経て別の転送モードに
移行するという手順をとっていた。しかし、本発明によ
ると同一モードにてデータの転送方向を切り換えること
ができるので大幅な手順の短縮になる。また、データ転
送の方向を切り換える処理時間がハードウェアを使うこ
となく大幅に短縮できるので、今まで切り換え処理時間
が問題で実現できなかった多機能端末の機能が実現でき
る。
<Effect of Specific Example 1> As described above, the IEEE
By applying the above method without having hardware such as the 1284 ECP mode, a forward / reverse transfer mode is provided in one high-speed switching mode, and a forward / reverse direction or a reverse / forward direction is provided. Of the transfer direction can be realized without taking a complicated procedure standardized by IEEE 1284. IEEE128
In mode 4, negotiation is performed from the compatible mode and each transfer mode (forward transfer mode or reverse transfer mode)
Then, the transfer direction is changed. Therefore, the procedure has always been taken to shift to the termination phase, shift to the compatible mode again, and shift to another transfer mode after the negotiation phase. However, according to the present invention, since the data transfer direction can be switched in the same mode, the procedure is greatly shortened. In addition, since the processing time for switching the direction of data transfer can be greatly reduced without using hardware, a function of a multifunctional terminal, which could not be realized until now due to a problem with the switching processing time, can be realized.

【0029】〈具体例2〉具体例2は、図4のタイミン
グt1〜t7と図5のタイミングt9〜t15を参照す
る。ここで、データ転送方向の切り換えが高速に行える
ように、図4のタイミングt1からt7までのハンドシ
ェイクを多機能端末はフェーズ移行時の割り込み処理内
で全て行う。PC側も図5のタイミングt9から他タス
ク及び割り込み処理を全てマスクして、それ以降のモー
ド切り換えのためのハンドシェイクを全て行う。いずれ
も(f)のnAck=High を検出後に他タスク及び割り込み
のマスクを解除する。こうすれば、PC側と多機能端末
側のソフトウェアがデータ転送切り換えのためのハンド
シェイクを同時に行うことができ高速ハンドシェイクを
実現する。
<Example 2> In Example 2, reference is made to timings t1 to t7 in FIG. 4 and timings t9 to t15 in FIG. Here, the multifunctional terminal performs all the handshaking from timing t1 to t7 in FIG. 4 in the interrupt processing at the time of the phase shift so that the data transfer direction can be switched at a high speed. The PC masks all other tasks and interrupt processing from timing t9 in FIG. 5 and performs all handshaking for subsequent mode switching. In any case, after detecting nAck = High in (f), the mask of the other task and the interrupt is released. By doing so, the software on the PC side and the software on the multi-function terminal side can simultaneously perform the handshake for switching the data transfer, realizing a high-speed handshake.

【0030】〈具体例2の効果〉PC側と多機能端末側
でデータ転送方向切り換えのためのハンドシェイクをお
互いに閉じた処理内で同時に行うことにより、従来発生
していたハンドシェイク時の処理遅延がなくなる。これ
により、転送方向切り換え処理時間が短縮できる。な
お、上記の具体例では、割り込み処理によるハンドシェ
イクを実行したが、所定の信号線を監視することでホス
ト側と端末側とが向き合って、短時間でハンドシェイク
を実行できる構成であれば他の態様でもよい。従って、
例えば専用のCPUやRISC等の高速CPUによる信
号線の監視あるいは他のハードウェアによる監視をする
ようにしてもよい。
<Effect of Specific Example 2> The handshake for switching the data transfer direction on the PC side and the multi-function terminal side is performed simultaneously in a mutually closed process, thereby processing conventionally occurring at the time of handshake. Eliminate delays. Thereby, the transfer direction switching processing time can be reduced. In the specific example described above, the handshake is executed by the interrupt processing. However, if the host side and the terminal side face each other by monitoring a predetermined signal line, the handshake can be executed in a short time. May be used. Therefore,
For example, the signal line may be monitored by a dedicated CPU or a high-speed CPU such as a RISC, or may be monitored by other hardware.

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

【図1】本発明の双方転送方法の具体例を示す説明図で
ある。
FIG. 1 is an explanatory diagram showing a specific example of a two-way transfer method according to the present invention.

【図2】IEEE1284タイプB準拠のインタフェー
ス信号線の割当て説明図を示す。
FIG. 2 is an explanatory diagram of assignment of interface signal lines conforming to IEEE1284 type B;

【図3】インタフェース信号線の説明図である。FIG. 3 is an explanatory diagram of an interface signal line.

【図4】高速切り換えモード動作タイムチャート(その
1)である。
FIG. 4 is a high-speed switching mode operation time chart (1).

【図5】高速切り換えモード動作タイムチャート(その
2)である。
FIG. 5 is a high-speed switching mode operation time chart (No. 2).

【図6】高速切り換えモード動作タイムチャート(その
3)である。
FIG. 6 is a high-speed switching mode operation time chart (3).

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

1 上位装置 2 端末装置 3 パラレルインタフェース M1 コンパチブルモード M4 ネゴシエーションフェーズ M6 ニブルモード M7 高速切り換えモード M8 ターミネーションフェーズ Reference Signs List 1 upper device 2 terminal device 3 parallel interface M1 compatible mode M4 negotiation phase M6 nibble mode M7 fast switching mode M8 termination phase

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 相互にインタフェースを介して接続され
た上位装置と端末装置との間で、データを上位装置から
端末装置へ転送する正方向転送モードと、その逆に、デ
ータを端末装置から上位装置へ転送する逆方向転送モー
ドとが存在し、 いずれかのモードから他のモードに移行する場合には、
いったん各モードを終了して、予め設定された手順を経
て他のモードに移行する処理を設定するとともに、 これらのモードとは別に、高速切り換えモードを設け
て、 このモードの中に正方向転送モードと逆方向転送モード
とを含み、 正方向転送モードで動作直後に、インタフェースを構成
する所定の信号線を介して端末装置が上位装置に対して
ハンドシェイクを実行して、高速切り換えモードを終了
することなく逆方向転送モードに切り換えを行うことを
特徴とする双方向転送方法。
1. A forward transfer mode for transferring data from a host device to a terminal device between a host device and a terminal device mutually connected via an interface, and conversely, data from the terminal device to a host device. When there is a reverse transfer mode for transferring data to the device, and when shifting from one mode to another,
Once each mode is completed, the process to shift to another mode through a preset procedure is set. In addition to these modes, a high-speed switching mode is provided, and a forward transfer mode is included in this mode. Immediately after operating in the forward transfer mode, the terminal device performs a handshake with respect to the higher-level device via a predetermined signal line constituting the interface, and ends the high-speed switching mode. A bidirectional transfer method characterized by switching to a reverse transfer mode without any change.
【請求項2】 相互にインタフェースを介して接続され
た上位装置と端末装置との間で、データを上位装置から
端末装置へ転送する正方向転送モードと、その逆に、デ
ータを端末装置から上位装置へ転送する逆方向転送モー
ドとが存在し、 いずれかのモードから他のモードに移行する場合には、
いったん各モードを終了して、予め設定された手順を経
て他のモードに移行する処理を設定するとともに、 これらのモードとは別に、高速切り換えモードを設け
て、 このモードの中に正方向転送モードと逆方向転送モード
とを含み、 逆方向転送モードで動作直後に、上位装置は、他のタス
クと割り込み処理とを全てマスクして、インタフェース
を構成する所定の信号線を介してハンドシェイクを実行
して、高速切り換えモードを終了することなく正方向転
送モードに切り換えを行うことを特徴とする双方向転送
方法。
2. A forward transfer mode for transferring data from a higher-level device to a terminal device between a higher-level device and a terminal device connected to each other via an interface, and vice versa. When there is a reverse transfer mode for transferring data to the device, and when shifting from one mode to another,
Once each mode is completed, the process to shift to another mode through a preset procedure is set. In addition to these modes, a high-speed switching mode is provided, and a forward transfer mode is included in this mode. Immediately after operating in the reverse transfer mode, the higher-level device masks all other tasks and interrupt processing and executes a handshake via a predetermined signal line constituting the interface. And switching to the forward transfer mode without terminating the high-speed switching mode.
【請求項3】 相互にインタフェースを介して接続され
た上位装置と端末装置との間で、データを上位装置から
端末装置へ転送する正方向転送モードと、その逆に、デ
ータを端末装置から上位装置へ転送する逆方向転送モー
ドとが存在し、 いずれかのモードから他のモードに移行する場合には、
いったん各モードを終了して、予め設定された手順を経
て他のモードに移行する処理を設定するとともに、 これらのモードとは別に、高速切り換えモードを設け
て、 このモードの中に正方向転送モードと逆方向転送モード
とを含み、 正方向転送モードで動作直後に、インタフェースを構成
する所定の信号線を介して端末装置が上位装置に対して
ハンドシェイクを実行して、高速切り換えモードを終了
することなく逆方向転送モードに切り換えを行うととも
に、 逆方向転送モードで動作直後に、上位装置は、他のタス
クと割り込み処理とを全てマスクして、インタフェース
を構成する所定の信号線を介してハンドシェイクを実行
して、高速切り換えモードを終了することなく正方向転
送モードに切り換えを行うことを特徴とする双方向転送
方法。
3. A forward transfer mode for transferring data from a host device to a terminal device between a host device and a terminal device connected to each other via an interface, and conversely, transferring data from the terminal device to a host device. When there is a reverse transfer mode for transferring data to the device, and when shifting from one mode to another,
Once each mode is completed, the process to shift to another mode through a preset procedure is set. In addition to these modes, a high-speed switching mode is provided, and a forward transfer mode is included in this mode. Immediately after operating in the forward transfer mode, the terminal device performs a handshake with respect to the higher-level device via a predetermined signal line constituting the interface, and ends the high-speed switching mode. In the reverse transfer mode, the host device immediately masks the other tasks and interrupt processing immediately after operating in the reverse transfer mode, and hands over the predetermined signal lines constituting the interface. A bidirectional transfer method characterized by performing a shake to switch to a forward transfer mode without terminating a high-speed switching mode. Law.
【請求項4】 請求項1〜3において、 正方向転送モードからネゴシェーションフェーズを経て
逆方向転送モードに移行し、逆方向転送モードからター
ミネーションフェーズを経て正方向転送モードに移行す
る処理が設定されているとき、 正方向転送モードからネゴシェーションフェーズを経て
高速切り換えモードに移行し、高速切り換えモードから
ターミネーションフェーズを経て正方向転送モードに移
行する処理を設定することを特徴とする双方向転送方
法。
4. The process according to claim 1, wherein a process of shifting from the forward transfer mode to the reverse transfer mode via the negotiation phase and a shift from the reverse transfer mode to the forward transfer mode via the termination phase is set. Bidirectional transfer characterized by setting a process for shifting from the forward transfer mode to the high-speed switching mode via the negotiation phase, and for shifting from the fast switching mode to the positive-direction transfer mode via the termination phase. Method.
【請求項5】 請求項1〜3において、 上位装置と端末装置とはいずれも、 ハンドシェイクの際に同時に、正方向転送モードと逆方
向転送モードとの間の切り換え処理を実行することを特
徴とする双方向転送方法。
5. The apparatus according to claim 1, wherein both the host device and the terminal device execute a switching process between the forward transfer mode and the reverse transfer mode simultaneously with the handshake. Bidirectional transfer method.
JP28741496A 1996-10-09 1996-10-09 Bidirectional transfer method Expired - Fee Related JP3677533B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28741496A JP3677533B2 (en) 1996-10-09 1996-10-09 Bidirectional transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28741496A JP3677533B2 (en) 1996-10-09 1996-10-09 Bidirectional transfer method

Publications (2)

Publication Number Publication Date
JPH10116248A true JPH10116248A (en) 1998-05-06
JP3677533B2 JP3677533B2 (en) 2005-08-03

Family

ID=17717027

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28741496A Expired - Fee Related JP3677533B2 (en) 1996-10-09 1996-10-09 Bidirectional transfer method

Country Status (1)

Country Link
JP (1) JP3677533B2 (en)

Also Published As

Publication number Publication date
JP3677533B2 (en) 2005-08-03

Similar Documents

Publication Publication Date Title
CN106951388B (en) PCIe-based DMA data transmission method and system
JP4091195B2 (en) Interface control apparatus and interface control method
US6765878B1 (en) Selective use of transmit complete interrupt delay on small sized packets in an ethernet controller
JP2002055936A (en) Usb device, and system and method for communication between usb devices
EP1895710B1 (en) Transitioning of a port in a communications system from an active state to a standby state
JP4393014B2 (en) Transmission apparatus and transmission method
WO2023208161A1 (en) Communication link switching control circuit, communication link and server
US5724615A (en) Communication circuit receiving data selectably synchronized to the rising or falling edge of a timing signal provided from the data source
JPH10116248A (en) Two-way transfer method
JP2000155701A (en) Debugging circuit
CN114465891B (en) Multi-mode communication configuration method of communication box and terminal equipment
JP3361107B2 (en) How to download
JP2893897B2 (en) Serial I / O device
JPH0981334A (en) Information processor and its data transfer method
JPH0477940B2 (en)
JP3593882B2 (en) Printing apparatus and interface control method
KR100275069B1 (en) A method sending message between nodes by using hsb interface
JPH08317013A (en) Control system for interface
JP4164990B2 (en) Data communication system
JPH06236348A (en) Data transmission system
JPH1153131A (en) Printing device
JPS62199142A (en) Data transmission system
JPH0916495A (en) Communication control method
JPS6117425B2 (en)
JPH02149049A (en) Communication control system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041021

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041026

A602 Written permission of extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A602

Effective date: 20050114

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050414

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080520

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090520

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110520

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130520

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140520

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees