JPH1155299A - Data communication equipment - Google Patents

Data communication equipment

Info

Publication number
JPH1155299A
JPH1155299A JP9204516A JP20451697A JPH1155299A JP H1155299 A JPH1155299 A JP H1155299A JP 9204516 A JP9204516 A JP 9204516A JP 20451697 A JP20451697 A JP 20451697A JP H1155299 A JPH1155299 A JP H1155299A
Authority
JP
Japan
Prior art keywords
data
host computer
communication adapter
communication
scsi
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
JP9204516A
Other languages
Japanese (ja)
Other versions
JP3483738B2 (en
Inventor
Minoru Onchi
地 稔 恩
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP20451697A priority Critical patent/JP3483738B2/en
Publication of JPH1155299A publication Critical patent/JPH1155299A/en
Application granted granted Critical
Publication of JP3483738B2 publication Critical patent/JP3483738B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide data communication equipment in which an encode and decode processing at the time of transmitting and receiving data can be executed by a communication adapter. SOLUTION: This is a data communication device used by a computer system having an SCSI(small computer system interface) bus 13, and this device is provided with a communication adapter 12 having an SCSI function as a target which is connected with an SCSI bus 13, and with a host computer 11 having an SCSI function as an initiator which is connected with the SCSI bus 13. The communication adapter 12 is provided with an encoder 21 for encoding transmission data and a decoder 22 for decoding received data. Thus, a load on a processing operation in the host computer 11 can be reduced, and the execution efficiency of another processing such as communication control can be improved.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はSCSIバスを有するコ
ンピュ−タシステムに用いるデータ通信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication apparatus used in a computer system having a SCSI bus.

【0002】[0002]

【従来の技術】従来、ホストコンピュータのSCSIバ
スに通信アダプタを接続して通信機能を持たせた装置が
ある。ここで、SCSI(Small Computer System Inter
face)とは、ANSI(American National Standard Ins
titute)によって制定された規格である。その仕様上、
命令を出すイニシエータと、命令を受け取り実行するタ
ーゲットとの間でコマンドおよびデータの転送が行われ
る。
2. Description of the Related Art Conventionally, there is a device having a communication function by connecting a communication adapter to a SCSI bus of a host computer. Here, SCSI (Small Computer System Inter
face) is ANSI (American National Standard Ins
titute). Due to its specifications,
Commands and data are transferred between an initiator that issues an instruction and a target that receives and executes the instruction.

【0003】このようなSCSIバスを用いた、ファク
シミリアダプタ等を持つ従来装置では、ホストコンピュ
ータと通信アダプタは、それぞれSCSIのイニシエー
タ(命令を出す側)としての機能とターゲット(命令を
受ける側)としての機能を合わせ持っていた(特開平3-
38163 号公報)。したがって、ホストコンピュタ−と通
信アダプタ間のデ−タ通信において、その都度データを
送信する側がイニシエータ、受信する側がタ−ゲットと
なりデータを送信することにより双方向のデータ通信を
実現していた。
In such a conventional apparatus using a SCSI bus and having a facsimile adapter or the like, the host computer and the communication adapter function as a SCSI initiator (command issuing side) and a target (command receiving side), respectively. (See Japanese Unexamined Patent Publication No.
38163). Therefore, in the data communication between the host computer and the communication adapter, bidirectional data communication has been realized by transmitting data in each case as the initiator transmitting data and the receiving side as the target.

【0004】このような、ホストコンピュータとして使
用されるパソコン, ワークステーションはSCSIのイ
ニシエータの機能のみを持つものが多く、このようなパ
ソコン、ワークステーションを上記従来装置のホストコ
ンピュータとしては使用できないものであった。なぜな
ら、ホストコンピュータがイニシエータの機能のみを備
え、通信アダプタがターゲットの機能のみを備えている
場合、ターゲットである通信アダプタは外部から通信回
線を介してデータが届いたことをイニシエータであるホ
ストコンピュータに知らせることが困難であるという問
題を有し、このため通信アダプタがホストコンピュータ
にデータを送信したくても、自らデータを送信すること
ができないからである。
Many of such personal computers and workstations used as host computers have only the function of the SCSI initiator, and such personal computers and workstations cannot be used as the host computer of the above-mentioned conventional apparatus. there were. Because, when the host computer has only the function of the initiator and the communication adapter has only the function of the target, the communication adapter as the target notifies the host computer as the initiator that data has arrived from the outside via the communication line. This is because it has a problem that it is difficult to notify the user, and therefore, even if the communication adapter wants to transmit data to the host computer, it cannot transmit the data by itself.

【0005】このような、データ通信システムにおける
不備を解決したデータ通信装置として、例えば図6およ
び図7に示すものがある。図6はこのような従来のデー
タ通信装置の概略構成を示すブロック図である。この従
来のデータ通信装置は、SCSIのイニシエータとして
の機能を有するホストコンピュータ1と、SCSIのタ
ーゲットとしての機能を有する通信アダプタと、上記ホ
ストコンピュータ1および通信アダプタを接続するSC
SIバス3とにより構成されている。通信アダプタ2は
また通信回線4に接続されている。図7は上記従来のデ
ータ通信装置に用いられる通信アダプタ2の構成を示す
ブロック図である。この図において、符号5は通信アダ
プタ2全体の動作をコントロールするCPU、6はCP
U5の制御プログラムを記憶する読み出し専用メモリ
(ROM)、7は通信回線4に接続されて通信の制御を
行なう通信制御部、8はSCSIバス3におけるデータ
伝送を制御するSCSI制御部、9は送受信データを一
時的に記憶するバッファメモリである。なお通信アダプ
タ2が外部とデータの送受信を行なう通信回線4として
は有線、無線或いはIrDA(光通信を用いた回線)な
どがある。
[0005] As a data communication device which has solved such a defect in the data communication system, there is, for example, one shown in FIGS. 6 and 7. FIG. 6 is a block diagram showing a schematic configuration of such a conventional data communication device. This conventional data communication apparatus includes a host computer 1 having a function as a SCSI initiator, a communication adapter having a function as a SCSI target, and an SC connecting the host computer 1 and the communication adapter.
And an SI bus 3. The communication adapter 2 is also connected to a communication line 4. FIG. 7 is a block diagram showing a configuration of a communication adapter 2 used in the above-mentioned conventional data communication device. In this figure, reference numeral 5 denotes a CPU that controls the entire operation of the communication adapter 2, and 6 denotes a CP.
A read-only memory (ROM) for storing a control program of U5, a communication control unit 7 connected to the communication line 4 for controlling communication, a SCSI control unit 8 for controlling data transmission on the SCSI bus 3, and a transmission / reception 9 This is a buffer memory for temporarily storing data. The communication line 4 through which the communication adapter 2 transmits and receives data to and from the outside includes a wired, wireless or IrDA (line using optical communication).

【0006】かかる構成を有する従来のデータ通信装置
において、ホストコンピュータ1と通信アダプタ2との
間では次のような動作が行なわれる。図8は上記従来の
データ通信装置の動作を説明するタイムシーケンス図で
ある。このデータ通信装置にあっては、先ず通信アダプ
タ2が外部から受信データを受け取っている(S1)も
のとする。ホストコンピュ−タ1は、前記通信アダプタ
2に外部から受信したデータがあるか否かを、確認用S
CSIコマンドを用いて確認する(S2)。この確認動
作は定期的に実行される。これに対して通信アダプタ2
からは、現在受信データがあるので確認応答が行なわれ
る(S3)。すると、ホストコンピュータ1は通信アダ
プタ2からの確認応答により通信アダプタ2に外部から
受信したデータがあることが判るため、その受信データ
のデータ長を調べるためのデータ長要求SCSIコマン
ドを実行する(S4)。これに対して通信アダプタ2か
らは受信データ長データが送付される(S5)。さらに
ホストコンピュータ1は、データを受信するためにデー
タ要求用のSCSIコマンドを実行する(S6)。これ
に対して通信アダプタ2からは受信データが送付される
(S7)。そして、受信データの送付が一定時間行なわ
れた後、ホストコンピュータ1は再度通信アダプタ2に
外部から受信したデータがあるか否かを、確認用SCS
Iコマンドを用いて確認する(S8)。そしてこのとき
は受信データはないので通信アダプタ2からは、受信デ
ータなしの確認応答が行なわれ(S9)、一連の受信デ
ータの取り込み処理動作が終了する。
In the conventional data communication device having such a configuration, the following operation is performed between the host computer 1 and the communication adapter 2. FIG. 8 is a time sequence diagram for explaining the operation of the conventional data communication apparatus. In this data communication device, it is assumed that the communication adapter 2 first receives received data from outside (S1). The host computer 1 checks whether or not there is data received from outside in the communication adapter 2.
Confirm using a CSI command (S2). This confirmation operation is periodically executed. Communication adapter 2
Thereafter, an acknowledgment is made because there is currently received data (S3). Then, since the host computer 1 knows from the communication adapter 2 that there is data received from outside in the communication adapter 2, the host computer 1 executes a data length request SCSI command for checking the data length of the received data (S4). ). In response, the communication adapter 2 sends the received data length data (S5). Further, the host computer 1 executes a data request SCSI command to receive the data (S6). On the other hand, received data is sent from the communication adapter 2 (S7). After the transmission of the received data has been performed for a certain period of time, the host computer 1 again checks whether or not there is data received from outside in the communication adapter 2.
Confirm using the I command (S8). At this time, since there is no received data, a confirmation response indicating that there is no received data is made from the communication adapter 2 (S9), and a series of receiving data fetching operations ends.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記の
様な従来のデータ通信装置にあっては、IrDAで通信
速度が2400bps〜115.2kbpsの通信を行
なう場合、フレームのエンコード、デコード処理に際し
て行なわれるCRC計算、透過制御、ヘッダ、エンダ、
CRCの付加、分離の各動作は、ホストコンピュータ1
がソフトウェアにより実行するようになっているが、こ
のホストコンピュータ1の処理能力が低い場合はエンコ
ード、デコード処理の付加が他の処理の実行効率を低下
させるという不具合があった。
However, in the conventional data communication apparatus as described above, when communication at a communication speed of 2400 bps to 115.2 kbps is performed by IrDA, it is performed at the time of frame encoding and decoding processing. CRC calculation, transparency control, header, ender,
Each operation of adding and separating the CRC is performed by the host computer 1
Is executed by software. However, if the processing capability of the host computer 1 is low, there is a problem that the addition of the encoding and decoding processing lowers the execution efficiency of other processing.

【0008】また、ホストコンピュータ1が通信アダプ
タ2から受信データを読み出す場合、すでに説明したよ
うに、ホストコンピュータ1は通信アダプタに受信する
データがあるか否かを確認する確認用SCSIコマン
ド、データ長要求SCSIコマンド、およびデータ要求
用SCSIコマンドの、少なくとも3種類のSCSIコ
マンドを実行しなければならないため、高速に受信デー
タを取り出すには適していないという不具合もあった。
When the host computer 1 reads the received data from the communication adapter 2, as described above, the host computer 1 uses the confirmation SCSI command for confirming whether or not there is data to be received by the communication adapter, the data length, and the like. Since at least three types of SCSI commands, a request SCSI command and a data request SCSI command, must be executed, there is also a problem that it is not suitable for extracting received data at high speed.

【0009】本発明は上記問題点を解決するために、デ
ータの送受信に当たってのエンコード、デコード処理を
通信アダプタにおいて実行できるようにしたデータ通信
装置を提供することを第1の目的としている。
SUMMARY OF THE INVENTION It is a first object of the present invention to provide a data communication apparatus capable of executing, in a communication adapter, encoding and decoding processes for transmitting and receiving data in order to solve the above problems.

【0010】本発明はまた、ホストコンピュータが複数
のSCSIコマンドを使い分けなくても、最少限のSC
SIコマンドの実行で受信データの取り出しができるよ
うにし、データ受信が高速で行なえるデータ通信装置を
提供することを第2の目的としている。
[0010] The present invention also provides a minimum SC mode without the host computer using different SCSI commands.
It is a second object of the present invention to provide a data communication device capable of extracting received data by executing an SI command and performing high-speed data reception.

【0011】[0011]

【課題を解決するための手段】上記課題を解決するため
に本発明は、SCSIバスを有するコンピュ−タシステ
ムで用いるデータ通信装置であって、タ−ゲットとして
のSCSI機能を有し前記SCSIバスに接続される通
信アダプタと、イニシエ−タとしてのSCSI機能を有
し前記SCSIバスに接続されるホストコンピュ−タと
を備え、前記通信アダプタは、送信データをエンコード
する手段と、受信データをデコードする手段とを有する
ことを特徴とするものである。このデータ通信装置にお
いて、前記ホストコンピュ−タと通信アダプタとの間に
おいては、フレーム単位のデータ伝送を行なうことが可
能である。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention relates to a data communication apparatus used in a computer system having a SCSI bus, which has a SCSI function as a target and is provided on the SCSI bus. A communication adapter connected thereto; and a host computer having a SCSI function as an initiator and connected to the SCSI bus. The communication adapter decodes transmission data and decodes reception data. Means. In this data communication device, it is possible to perform data transmission in frame units between the host computer and the communication adapter.

【0012】本発明はまた、上記データ通信装置におい
て、ホストコンピュ−タは、通信アダプタに対してデー
タを受信するSCSIコマンドを送付し、通信アダプタ
は、受信データが存在するときは直ちに受信データをホ
ストコンピュ−タに送信する一方、受信データが存在し
ないときはダミーの受信データをホストコンピュ−タに
送信するようにしたことを要旨とするものである。
According to the present invention, in the above data communication apparatus, the host computer sends a SCSI command for receiving data to the communication adapter, and the communication adapter immediately transmits the received data when the received data exists. The gist is that dummy reception data is transmitted to the host computer when the reception data does not exist while transmitting the data to the host computer.

【0013】かかる構成にしたことにより、SCSI機
能を用いたデータ通信を行なう場合において、フレーム
のエンコード、デコード処理が通信アダプタにおいて実
行されるからホストコンピュータにおける処理の負担が
軽減され、通信制御などの他の処理の実行効率を向上さ
せることができる。また、ホストコンピュータが通信ア
ダプタから受信データを取り出すに当たって、通信アダ
プタへはデータ要求のSCSIコマンドを出すだけで、
通信アダプタに受信データが或る場合も、無い場合も対
応することができ、処理の簡素化を図ることができると
ともに、高速のデータ受信が行なえるようになる。
With this configuration, when performing data communication using the SCSI function, the encoding and decoding processes of the frame are executed by the communication adapter, so that the processing load on the host computer is reduced, and the communication control and the like are reduced. The execution efficiency of other processing can be improved. Also, when the host computer retrieves the received data from the communication adapter, the host computer only issues a data request SCSI command to the communication adapter.
It is possible to cope with the case where the communication adapter has received data or not, so that the processing can be simplified and high-speed data reception can be performed.

【0014】[0014]

【発明の実施の形態】本発明の請求項1に記載の発明
は、データ通信装置に、イニシエ−タとしてのSCSI
機能を有するホストコンピュ−タと、タ−ゲットとして
のSCSI機能を有する通信アダプタと、これらホスト
コンピュ−タと通信アダプタとを接続するSCSIバス
とを備え、前記通信アダプタに、送信データをエンコー
ドする手段と、受信データをデコードする手段とを設け
たものであり、SCSI機能を用いたデータ通信を行な
う場合において、フレームのエンコード、デコード処理
が通信アダプタにおいて実行されることにより、ホスト
コンピュータにおける処理の負担が軽減され、通信制御
などの他の処理の実行効率を向上させるという作用を有
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS According to the first aspect of the present invention, a data communication apparatus is provided with a SCSI as an initiator.
A host computer having a function, a communication adapter having a SCSI function as a target, and a SCSI bus connecting the host computer and the communication adapter are provided, and the communication adapter encodes transmission data. Means and means for decoding received data. When data communication using the SCSI function is performed, encoding and decoding of frames are executed in the communication adapter, so that processing in the host computer is performed. This has the effect of reducing the burden and improving the execution efficiency of other processing such as communication control.

【0015】本発明の請求項2に記載の発明は、請求項
1記載のデ−タ通信装置において、前記ホストコンピュ
−タと通信アダプタとの間は、フレーム単位のデータ伝
送が行なわれるようにしたものであり、フレーム構成に
よりSCSIコマンドNO種類を減少させるという作用
を有する。
According to a second aspect of the present invention, in the data communication apparatus according to the first aspect, data transmission is performed in frame units between the host computer and a communication adapter. This has the effect of reducing the number of SCSI command numbers depending on the frame configuration.

【0016】本発明の請求項3に記載の発明は、請求項
2記載のデ−タ通信装置において、ホストコンピュ−タ
と通信アダプタとの間のフレーム単位のデータ伝送に使
用されるフレーム内には受信データのデータ長を表す情
報が組み込まれるようにしたものであり、ホストコンピ
ュータから通信アダプタへの受信データ長の確認用SC
SIコマンドの送付を省略できるという作用を有する。
According to a third aspect of the present invention, in the data communication apparatus according to the second aspect, a frame used for data transmission in frame units between the host computer and the communication adapter is included. The information for indicating the data length of the received data is incorporated therein, and the SC for confirming the received data length from the host computer to the communication adapter.
This has the effect that transmission of the SI command can be omitted.

【0017】本発明の請求項4に記載の発明は、請求項
1記載のデ−タ通信装置において、ホストコンピュ−タ
は、通信アダプタに対してデータを受信するSCSIコ
マンドを送付し、通信アダプタは、受信データが存在す
るときは直ちに受信データをホストコンピュ−タに送信
する一方、受信データが存在しないときはダミーの受信
データをホストコンピュ−タに送信するようにしたもの
であり、ホストコンピュータから通信アダプタへの受信
データの有無の確認用SCSIコマンドの送付を省略で
きるという作用を有する。
According to a fourth aspect of the present invention, in the data communication apparatus according to the first aspect, the host computer sends a SCSI command for receiving data to the communication adapter, and the communication adapter transmits the SCSI command to the communication adapter. Is to transmit the received data to the host computer immediately when the received data exists, while transmitting the dummy received data to the host computer when the received data does not exist. The transmission of the SCSI command for confirming the presence or absence of the received data from the communication adapter to the communication adapter can be omitted.

【0018】以下、本発明の一実施の形態について図面
を参照しながら説明する。図1は、本発明によるデータ
通信装置の一構成例を示すブロック図である。図1にお
いて、符号11は、ホストコンピュータであり、各種演
算処理を行うとともにハードディスク、メモリ等の記憶
手段を備え、テキストデータや画像データ等の通信デー
タを作成、記憶、保存できる。ホストコンピュータ11
はSCSIのイニシエータとしての機能を備えており、
SCSIバスを介して通信アダプタ12にSCSIコマ
ンドを送る。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a data communication device according to the present invention. In FIG. 1, reference numeral 11 denotes a host computer which performs various arithmetic processes and includes storage means such as a hard disk and a memory, and can create, store, and save communication data such as text data and image data. Host computer 11
Has a function as a SCSI initiator,
A SCSI command is sent to the communication adapter 12 via the SCSI bus.

【0019】12は、通信アダプタであり、SCSIの
ターゲットとしての機能を備え、ホストコンピュータ1
1からのSCSIコマンドに従って、ホストコンピュー
タ11のデータを外部に送信、あるいは外部から受信し
たデータをホストコンピュータ11に送る。これらのデ
ータ転送を制御するために、通信アダプタ12は、ソフ
トウェアレジスタあるいはハードウェアレジスタで2種
類のステータス情報を持つ。1つは、通信回線ステータ
スであり、外部から通信アダプタ12にデータを送ろう
としている状態を示す。もう1つは、SCSIステータ
スであり、受信データビットと送信データビットを合わ
せ持つ。受信データビットは、SCSIバスを介してホ
ストコンピュータ11に送るべきデータを外部から受信
したことを示す。送信データビットは、外部へ送るべき
データをホストコンピュータ11からSCSIバスを介
して受け取ったことを示す。13は、ホストコンピュー
タ11と通信アダプタ12が接続されるSCSIバスで
ある。14は、通信アダプタ12に接続された通信回線
である。また、この実施の形態において、通信アダプタ
12はデータ送信時に送信データを符号化するエンコー
ダ21と、データ受信時に受信データを復号化するデコ
ーダ22とを備えている。エンコーダ21はホストコン
ピュータ11とデータバス20を介して接続される一
方、デコーダ22はホストコンピュータ11とSCSI
バス13を介して接続されている。
Reference numeral 12 denotes a communication adapter which has a function as a SCSI target and
According to the SCSI command from the host computer 1, the data of the host computer 11 is transmitted to the outside, or the data received from the outside is transmitted to the host computer 11. In order to control these data transfers, the communication adapter 12 has two types of status information using software registers or hardware registers. One is a communication line status, which indicates a state in which data is to be sent from the outside to the communication adapter 12. The other is a SCSI status, which has both reception data bits and transmission data bits. The received data bit indicates that data to be sent to the host computer 11 via the SCSI bus has been received from the outside. The transmission data bit indicates that data to be transmitted to the outside has been received from the host computer 11 via the SCSI bus. Reference numeral 13 denotes a SCSI bus to which the host computer 11 and the communication adapter 12 are connected. Reference numeral 14 denotes a communication line connected to the communication adapter 12. In this embodiment, the communication adapter 12 includes an encoder 21 for encoding transmission data when transmitting data, and a decoder 22 for decoding reception data when receiving data. The encoder 21 is connected to the host computer 11 via the data bus 20, while the decoder 22 is connected to the host computer 11 and the SCSI.
It is connected via a bus 13.

【0020】図2は、前記通信アダプタ12の一構成例
を示すブロック図である。図2において、符号15はC
PUであり、通信アダプタ12の動作をSCSIバス1
3に対してターゲットとして制御するとともに通信アダ
プタ12内部の機能部全体の動作を制御する。16は、
ROMであり、CPU15の制御プログラムを記憶す
る。17は通信制御部であり、通信回線14を介して外
部とデータの送受信をする。18はSCSI制御部であ
り、ターゲットとしての機能を持ち、ホストコンピュー
タ11とSCSIバス13を介してデータの送受信を行
う。19はバッファメモリ(半導体メモリを使用。)で
あり、SCSI制御部18が送受信するデータや通信制
御部17が送受信するデータを記憶する。バッファメモ
リ9は、半導体メモリを使用するほか、ハードディスク
や他の記憶手段でもよい。23はバスであり通信アダプ
タ12内の各機能部16、17、18、19、21、2
2はバス23を介してCPU15に接続されている。な
お通信アダプタ12が外部とデータの送受信を行なう通
信回線14としては有線回線、無線回線或いはIrDA
(光通信を用いた回線)などがある。
FIG. 2 is a block diagram showing a configuration example of the communication adapter 12. As shown in FIG. In FIG. 2, reference numeral 15 denotes C
A PU, which operates the communication adapter 12 on the SCSI bus 1
3 and controls the operation of the entire functional unit inside the communication adapter 12. 16 is
It is a ROM and stores a control program of the CPU 15. A communication control unit 17 transmits and receives data to and from the outside via the communication line 14. Reference numeral 18 denotes a SCSI controller, which has a function as a target, and transmits and receives data to and from the host computer 11 via the SCSI bus 13. Reference numeral 19 denotes a buffer memory (using a semiconductor memory), which stores data transmitted and received by the SCSI controller 18 and data transmitted and received by the communication controller 17. The buffer memory 9 may use a semiconductor memory, or may be a hard disk or other storage means. Reference numeral 23 denotes a bus, and each functional unit 16, 17, 18, 19, 21, 2 in the communication adapter 12.
2 is connected to the CPU 15 via the bus 23. The communication line 14 through which the communication adapter 12 transmits and receives data to and from the outside is a wired line, a wireless line, or an IrDA
(A line using optical communication).

【0021】かかる構成を有するデータ通信装置におい
て、ホストコンピュータ1と通信アダプタ2との間では
次のような動作が行なわれる。図3は本実施の形態に係
るデータ通信装置の動作を説明するタイムシーケンス図
である。このデータ通信装置にあっては、先ず通信アダ
プタ12が外部から受信データを受け取っている(S1
1)ものとする。通信アダプタ12のデコーダ22は受
信データをデコードするとともにこのデータを通信アダ
プタ12とホストコンピュータ11との間で伝送される
フレーム構造にする。このフレーム構造の一例を図4に
示す。図4から明らかなように、受信データ30は、有
効データ長フィールド31と、アドレスフィールド32
と、コントロールフィールド33と、データフィールド
34とから構成されている。有効データ長フィールド3
2にはデータの有効長さに関する情報が組み込まれてい
る。
In the data communication device having such a configuration, the following operation is performed between the host computer 1 and the communication adapter 2. FIG. 3 is a time sequence diagram illustrating the operation of the data communication device according to the present embodiment. In this data communication device, first, the communication adapter 12 receives received data from outside (S1).
1) shall be. The decoder 22 of the communication adapter 12 decodes the received data and converts the data into a frame structure transmitted between the communication adapter 12 and the host computer 11. FIG. 4 shows an example of this frame structure. As is apparent from FIG. 4, the received data 30 includes a valid data length field 31 and an address field 32.
, A control field 33, and a data field 34. Valid data length field 3
2 incorporates information about the effective length of the data.

【0022】ホストコンピュ−タ11は、受信データを
取り込みたいときは、前記通信アダプタ12に外部から
受信したデータがあるか否かを確認することなく、デー
タ要求用のSCSIコマンドを実行する( S12)。こ
れに対して通信アダプタ12からは、現在受信データ3
0があるので、受信データ30がホストコンピュータ1
1へ送付される( S13)。そして、受信データ30の
送付が一定時間行なわれた後、ホストコンピュータ11
は再度通信アダプタ12に外部から受信したデータを取
り込むべくデータ要求用のSCSIコマンドを実行する
( S14)。そしてこのときは受信データ30はないの
で、通信アダプタ12からは、ダミーの受信データをホ
ストコンピュ−タに送信する処理が行なわれ( S1
5)、一連の受信データの取り込み処理動作が終了す
る。
When the host computer 11 wants to take in the received data, the host computer 11 executes the data request SCSI command without confirming whether the communication adapter 12 has data received from outside (S12). ). On the other hand, from the communication adapter 12, the currently received data 3
0, the received data 30 is stored in the host computer 1
1 (S13). After the transmission of the reception data 30 has been performed for a certain period of time, the host computer 11
Executes the SCSI command for data request in order to take the data received from the outside into the communication adapter 12 again.
(S14). Since there is no received data 30 at this time, a process of transmitting dummy received data to the host computer is performed from the communication adapter 12 (S1).
5), a series of reception data fetching operation ends.

【0023】このような処理動作において、ホストコン
ピュータ11からは通信アダプタ12に対して通信アダ
プタ12に外部から受信したデータがあるか否かを確認
する確認用SCSIコマンドが送付されないが、このよ
うな処理を行なっても、通信アダプタ12からホストコ
ンピュータ11へは、受信データ30が存在するときは
この受信データ30をホストコンピュ−タに送信する一
方、受信データ30が存在しないときはダミーの受信デ
ータをホストコンピュ−タに送信するから、これによっ
てホストコンピュータ11は間接的に受信データの有無
を判別することができる。また、上記処理動作におい
て、ホストコンピュータ11からは通信アダプタ12に
対して受信データのデータ長を調べるためのデータ長要
求SCSIコマンドが実行されないが、このような処理
を行なっても、図4に示す受信データのフレーム構造か
ら明らかなように、フレーム構造の中に有効データ長フ
ィールド31が割り振られているため、ホストコンピュ
ータ11は受信データが送付されてきたときに、このフ
レームを解読することにより受信データのデータ長を認
識することができる。なおダミーの受信データのフレー
ム構造は、先に図4を参照して説明したのとどうような
構造のものが使用される一方、そのフレームの中で、例
えば有効データ長フィールド31の情報として有効デー
タ長が「0」の情報を記述しておくとか、或いはデータ
フィールド34の情報としてこの中にオール「0」の情
報を書き込むとかの方法によって作成される。
In such a processing operation, the host computer 11 does not send a confirmation SCSI command to the communication adapter 12 to confirm whether the communication adapter 12 has data received from outside. Even if the processing is performed, the reception data 30 is transmitted from the communication adapter 12 to the host computer 11 when the reception data 30 exists, while the reception data 30 is transmitted to the host computer when the reception data 30 does not exist. Is transmitted to the host computer, whereby the host computer 11 can indirectly determine the presence or absence of the received data. Further, in the above processing operation, the host computer 11 does not execute the data length request SCSI command for checking the data length of the received data with respect to the communication adapter 12; As is clear from the frame structure of the received data, the valid data length field 31 is allocated in the frame structure. Therefore, when the received data is sent, the host computer 11 decodes the frame to receive the data. The data length of the data can be recognized. As the frame structure of the dummy received data, a structure similar to that described above with reference to FIG. 4 is used. It is created by a method of describing information with a data length of "0" or writing information of all "0" therein as information of the data field 34.

【0024】次に通信アダプタ12からホストコンピュ
ータ11へのデータの送受信処理動作について図5に示
すフロー図の基づいて説明する。この送受信動作が開始
されると、処理ステップ(以下、単にステップという)
41においてデータ受信動作が実行される。このステッ
プ41における「データ受信」では受信データ30のフ
レーム全体の受信が実行される。次にステップ42にお
いて受信されたデータが受信データ30の先頭(Beginn
ing of Frame) であるか否かがチェックされ、受信デー
タの先頭である場合は再度ステップ41のデータ受信処
理が実行される。一方ステップ42において受信された
データが受信データ30の先頭でないと判断されたとき
はアドレスフィールド32が格納される一方、FCSチ
ェック(フレームチェックシーケンス)が開始される。
次にステップ44において次のデータ受信(フレーム受
信)が実行され、ステップ45においてコントロールフ
ィールド33の格納が行なわれる。次にステップ46に
おいて次のデータ受信(フレーム受信)が実行される。
この処理ステップではデータフィールド34の取り込み
が行なわれる。そして、次のステップ47においてデー
タフィールド34の取り込みが終了したか否かをチェッ
クし、取り込みが終了していなければ再度ステップ46
のデータ受信が実行されてデータフィールド34の取り
込みが継続される。他方、ステップ47においてデータ
フィールド34の取り込みが終了したと判断された場合
は、ステップ48においてFCSチェックが終了し、次
いでステップ49においてデータ受信が行なわれる。そ
して、ステップ50においてFCS(或いはCRC)の
格納が行なわれるとともに、ステップ51においてこの
FCS(或いはCRC)チェックの結果が良か不良か
(OKかNGか)がチェックされ、良であればステップ
52においてフレーム受信がOKの処理がなされる一
方、不良であった場合はステップ53においてフレーム
受信がNGの処理がなされる。
Next, the operation of transmitting and receiving data from the communication adapter 12 to the host computer 11 will be described with reference to the flowchart shown in FIG. When this transmission / reception operation is started, a processing step (hereinafter simply referred to as a step)
At 41, a data receiving operation is performed. In “data reception” in step 41, the reception of the entire frame of the reception data 30 is executed. Next, the data received in step 42 is the beginning of the received data 30 (Beginn).
ing of Frame), and if it is the head of the received data, the data reception process of step 41 is executed again. On the other hand, when it is determined in step 42 that the received data is not the head of the received data 30, the address field 32 is stored, and the FCS check (frame check sequence) is started.
Next, in step 44, the next data reception (frame reception) is executed, and in step 45, the control field 33 is stored. Next, in step 46, the next data reception (frame reception) is executed.
In this processing step, the data field 34 is fetched. Then, in the next step 47, it is checked whether or not the capture of the data field 34 has been completed.
Is received, and the capture of the data field 34 is continued. On the other hand, if it is determined in step 47 that the reading of the data field 34 has been completed, the FCS check is completed in step 48, and then data reception is performed in step 49. Then, in step 50, the FCS (or CRC) is stored, and in step 51, whether the result of the FCS (or CRC) check is good or bad (OK or NG) is checked. In step (3), the frame reception is OK, while if it is defective, in step 53, the frame reception is NG.

【0025】以上のようにして、各種のSCSIコマン
ドを実行することなく、且つホストコンピュータ11に
おいてデータのエンコーどおよびデコードを行なうこと
なくデータ受信動作が実行されるため、ホストコンピュ
ータ11の負荷が軽減された状態で、高速にデータ受信
が実行される。
As described above, since the data receiving operation is executed without executing various SCSI commands and without performing encoding and decoding of data in the host computer 11, the load on the host computer 11 is reduced. In this state, data reception is performed at high speed.

【0026】[0026]

【発明の効果】以上説明したように本発明によれば、S
CSIバスを有するコンピュ−タシステムで用いるデー
タ通信装置であって、タ−ゲットとしてのSCSI機能
を有し前記SCSIバスに接続される通信アダプタと、
イニシエ−タとしてのSCSI機能を有し前記SCSI
バスに接続されるホストコンピュ−タとを備え、前記通
信アダプタに、送信データをエンコードする手段と、受
信データをデコードする手段とを備えたため、ホストコ
ンピュータにおける処理動作上の負荷が軽減され、通信
制御などの他の処理の実行効率を向上させることができ
る。
As described above, according to the present invention, S
A data communication device used in a computer system having a CSI bus, the communication adapter having a SCSI function as a target and being connected to the SCSI bus,
The above-mentioned SCSI having a SCSI function as an initiator
A host computer connected to a bus; and the communication adapter having a means for encoding transmission data and a means for decoding received data. Execution efficiency of other processing such as control can be improved.

【0027】また、ホストコンピュータが通信アダプタ
から受信データを取り出すに当たって、通信アダプタへ
はデータ要求のSCSIコマンドを出すだけで、通信ア
ダプタに受信データが或る場合も、無い場合も対応する
ことができ、処理の簡素化を図ることができるととも
に、高速のデータ受信が行なえる等の効果が得られる。
Further, when the host computer takes out the received data from the communication adapter, the host computer only issues a SCSI command of a data request to the communication adapter, so that the communication adapter can cope with the presence or absence of the received data. In addition, the processing can be simplified, and effects such as high-speed data reception can be obtained.

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

【図1】本発明の一実施の形態のデータ通信装置の構成
を示すブロック図
FIG. 1 is a block diagram showing a configuration of a data communication device according to an embodiment of the present invention.

【図2】前記実施の形態において用いられる通信アダプ
タの構成の一例を示すブロック図
FIG. 2 is a block diagram showing an example of a configuration of a communication adapter used in the embodiment.

【図3】前記実施の形態のデータ通信装置の動作を説明
するタイムシーケンス図
FIG. 3 is a time sequence chart for explaining the operation of the data communication device according to the embodiment;

【図4】前記実施の形態のデータ通信装置で受信される
データのフレーム構造の一例を示す図
FIG. 4 is a diagram showing an example of a frame structure of data received by the data communication device according to the embodiment.

【図5】前記実施の形態の通信アダプタからホストコン
ピュータへのデータの送受信処理動作の流れを説明する
フロー図
FIG. 5 is a flowchart illustrating a flow of a data transmission / reception processing operation from the communication adapter to the host computer according to the embodiment.

【図6】従来のデータ通信装置の概略構成を示すブロッ
ク図
FIG. 6 is a block diagram showing a schematic configuration of a conventional data communication device.

【図7】従来のデータ通信装置に用いられる通信アダプ
タの構成を示すブロック図
FIG. 7 is a block diagram showing a configuration of a communication adapter used in a conventional data communication device.

【図8】従来のデータ通信装置の動作を説明するタイム
シーケンス図
FIG. 8 is a time sequence diagram illustrating an operation of a conventional data communication device.

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

11 ホストコンピュータ 12 通信アダプタ 13 SCSIバス 14 通信回線 15 CPU 16 ROM 17 通信制御部 18 SCSI制御部 19 バッファメモリ 20 データバス 21 エンコーダ 22 デコーダ 23 バス 30 受信データ Reference Signs List 11 host computer 12 communication adapter 13 SCSI bus 14 communication line 15 CPU 16 ROM 17 communication control unit 18 SCSI control unit 19 buffer memory 20 data bus 21 encoder 22 decoder 23 bus 30 received data

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 イニシエ−タとしてのSCSI機能を有
するホストコンピュ−タと、タ−ゲットとしてのSCS
I機能を有する通信アダプタと、これらホストコンピュ
−タと通信アダプタとを接続するSCSIバスとを備
え、前記通信アダプタは、送信データをエンコードする
手段と、受信データをデコードする手段とを有すること
を特徴とするデ−タ通信装置。
A host computer having a SCSI function as an initiator and an SCS as a target
A communication adapter having an I function, and a SCSI bus for connecting the host computer and the communication adapter. The communication adapter has a means for encoding transmission data and a means for decoding reception data. Characteristic data communication device.
【請求項2】 前記ホストコンピュ−タと通信アダプタ
との間は、フレーム単位のデータ伝送が行なわれること
を特徴とする請求項1記載のデ−タ通信装置。
2. The data communication apparatus according to claim 1, wherein data transmission is performed in frame units between said host computer and a communication adapter.
【請求項3】 ホストコンピュ−タと通信アダプタとの
間のフレーム単位のデータ伝送に使用されるフレーム内
には受信データのデータ長を表す情報が組み込まれるこ
とを特徴とする請求項2記載のデータ通信装置。
3. The frame according to claim 2, wherein information indicating the data length of the received data is incorporated in a frame used for data transmission in frame units between the host computer and the communication adapter. Data communication device.
【請求項4】 ホストコンピュ−タは、通信アダプタに
対してデータを受信するSCSIコマンドを送付し、通
信アダプタは、受信データが存在するときは直ちに受信
データをホストコンピュ−タに送信する一方、受信デー
タが存在しないときはダミーの受信データをホストコン
ピュ−タに送信することを特徴とする請求項1記載のデ
−タ通信装置。
4. The host computer sends a SCSI command for receiving data to the communication adapter, and the communication adapter immediately transmits the received data to the host computer when the received data exists. 2. The data communication device according to claim 1, wherein when no reception data exists, dummy reception data is transmitted to the host computer.
JP20451697A 1997-07-30 1997-07-30 Data communication device Expired - Fee Related JP3483738B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20451697A JP3483738B2 (en) 1997-07-30 1997-07-30 Data communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20451697A JP3483738B2 (en) 1997-07-30 1997-07-30 Data communication device

Publications (2)

Publication Number Publication Date
JPH1155299A true JPH1155299A (en) 1999-02-26
JP3483738B2 JP3483738B2 (en) 2004-01-06

Family

ID=16491835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20451697A Expired - Fee Related JP3483738B2 (en) 1997-07-30 1997-07-30 Data communication device

Country Status (1)

Country Link
JP (1) JP3483738B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002183072A (en) * 2000-12-13 2002-06-28 Hitachi Ltd Interface controller
JP2006201946A (en) * 2005-01-19 2006-08-03 Fujitsu Ltd Inter-processor communication equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002183072A (en) * 2000-12-13 2002-06-28 Hitachi Ltd Interface controller
JP4615122B2 (en) * 2000-12-13 2011-01-19 株式会社日立製作所 Interface control device
JP2006201946A (en) * 2005-01-19 2006-08-03 Fujitsu Ltd Inter-processor communication equipment

Also Published As

Publication number Publication date
JP3483738B2 (en) 2004-01-06

Similar Documents

Publication Publication Date Title
US6434643B1 (en) Transmission of status information by a selected one of multiple transfer modes based on the cause for sending the status information
JP4451837B2 (en) Data transfer apparatus and data transfer method
JPH07114456A (en) Automatic operation device of computer operation terminal equipment
EP0886410A2 (en) Data communication method, data communication apparatus, and data communication program recording medium
JP3483738B2 (en) Data communication device
US6700887B1 (en) Packet transfer apparatus which generates access reject command during a DMA transfer
US11714608B2 (en) Device and method for handling programming language function
US20040054852A1 (en) Cache/prefetch frame of serial data system and operation method of the same
JPH0438618Y2 (en)
JP3245552B2 (en) Transfer control system
JPS62232057A (en) Pseudo dma system
JPH1074140A (en) Data transferring method decoding device, data transfer device, and data processor
JPH0589022A (en) Information processor
JP2006238209A (en) Hub apparatus and hub system
JP4666369B2 (en) USB device
JP3183959B2 (en) How to raise data
JPH11327798A (en) Data transfer controller
JP2006301810A (en) Data transfer processing method, data transfer processor and data transfer processing control program
JP2009059219A (en) Usb storage system and program for controlling data transmission
JP2001177544A (en) Data transfer controller, information storage medium and electronic equipment
JPH07182257A (en) Image forming device
JPH0713918A (en) Data transfer method and data-processing system
JPH03224052A (en) Data transfer system
JPH08328988A (en) Information processing system
JPH10228442A (en) Data receiving device and method and recording medium using direct memory access

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees