JP3056169B2 - Data transmission / reception method and method - Google Patents

Data transmission / reception method and method

Info

Publication number
JP3056169B2
JP3056169B2 JP10235953A JP23595398A JP3056169B2 JP 3056169 B2 JP3056169 B2 JP 3056169B2 JP 10235953 A JP10235953 A JP 10235953A JP 23595398 A JP23595398 A JP 23595398A JP 3056169 B2 JP3056169 B2 JP 3056169B2
Authority
JP
Japan
Prior art keywords
data
transmission
buffer
reception
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP10235953A
Other languages
Japanese (ja)
Other versions
JP2000066874A (en
Inventor
泰一郎 山田
Original Assignee
日本電気移動通信株式会社
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 日本電気移動通信株式会社 filed Critical 日本電気移動通信株式会社
Priority to JP10235953A priority Critical patent/JP3056169B2/en
Publication of JP2000066874A publication Critical patent/JP2000066874A/en
Application granted granted Critical
Publication of JP3056169B2 publication Critical patent/JP3056169B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の記憶装置間
のデータ送受信方式に関し、記憶装置のデータの送受信
処理速度向上及び作業領域の効率化に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission / reception method between a plurality of storage devices, and more particularly to an improvement in data transmission / reception processing speed of a storage device and an increase in work area efficiency.

【0002】[0002]

【従来の技術】従来、この種のデータ転送方式は、無駄
な交信をなくすことにより、送受信データ処理を効率的
に行う目的のため用いられている。その転送方式の一例
が、特開昭61−170855号公報に記載されてい
る。
2. Description of the Related Art Conventionally, this type of data transfer system has been used for the purpose of efficiently performing transmission / reception data processing by eliminating useless communication. One example of such a transfer method is described in Japanese Patent Application Laid-Open No. 61-170855.

【0003】図4に示したものは、上記公報に記載のデ
ータ転送方式である。主記憶装置20内に、アプリケー
ションバッファ24と、データ送受信を行うためのドラ
イバ21が組み込まれている。ドライバ21は、デバイ
スエリア25で受信したデータを、アプリケーションバ
ッファ24へ転送する為のデータ転送命令、及びデータ
に対して複数の記憶装置内格納アドレスを設定するため
の転送先アドレス設定命令を含む入出力制御命令を実行
するためのマイクロプログラム実行制御部が装備されて
いる。ドライバ21は、デバイスエリア25内にある受
信バッファ22と送信バッファ23と、アプリケーショ
ンバッファ24の中間に位置し、アプリケーションバッ
ファ24とデバイスエリア25内の送信バッファ23と
受信バッファ22内のデータの受け渡し処理を行ってい
る。
FIG. 4 shows a data transfer method described in the above publication. An application buffer 24 and a driver 21 for transmitting and receiving data are incorporated in the main storage device 20. The driver 21 includes an input command including a data transfer command for transferring data received in the device area 25 to the application buffer 24 and a transfer destination address setting command for setting a plurality of storage addresses in the storage device for the data. A microprogram execution control unit for executing an output control instruction is provided. The driver 21 is located between the reception buffer 22, the transmission buffer 23, and the application buffer 24 in the device area 25. The driver 21 transfers the data in the application buffer 24, the transmission buffer 23 in the device area 25, and the data in the reception buffer 22. It is carried out.

【0004】なお、本明細書では、上記主記憶装置20
をアプリケーション、主記憶装置20内バッファをアプ
リケーションバッファ24、データ送受信を行うための
処理機能をドライバ21と呼ぶ。
In this specification, the main storage device 20
Is referred to as an application, a buffer in the main storage device 20 is referred to as an application buffer 24, and a processing function for transmitting and receiving data is referred to as a driver 21.

【0005】主記憶装置20から外部バス27への送信
処理に関しては、ドライバ21はアプリケーションバッ
ファ24に書かれているデータを、デバイスエリア25
の送信バッファ23へ転送を行う。受信処理に関して
は、ドライバ21はデバイスエリア25内の受信バッフ
ァ22に書かれたデータを正常かどうかをチェックし、
正常ならばアプリケーションバッファ24へ転送を行
う。
[0005] Regarding the transmission processing from the main storage device 20 to the external bus 27, the driver 21 transfers the data written in the application buffer 24 to the device area 25.
Is transferred to the transmission buffer 23. Regarding the reception processing, the driver 21 checks whether the data written in the reception buffer 22 in the device area 25 is normal,
If normal, transfer to the application buffer 24 is performed.

【0006】また、ドライバ21は、データ転送アドレ
ス設定命令に応じて、データ転送アドレスを設定するた
めの複数のデータ転送アドレスレジスタと、前記アドレ
スレジスタによって指示される転送エリアが、空き状態
にあるかを示すための複数のビジー/フリー識別子レジ
スタが具備されている。
Further, the driver 21 responds to a data transfer address setting command by setting a plurality of data transfer address registers for setting a data transfer address, and determining whether the transfer area designated by the address register is empty. Are provided.

【0007】図5は従来の図4に示すデータ送信方式を
示すフローチャートである。データ送信処理では、主記
憶装置20内のアプリケーションは、送信する段階でア
プリケーションバッファ24がデータ送信の処理を行い
(ステップ21)、アプリケーションバッファ24がデ
ータ送信のデータが正常なものかどうかのチェックを行
い(ステップ22)、正常であれば主記憶装置20内の
データをデバイスエリア25内の送信バッファ23に送
信する(ステップ23)。送信データが正常でなけれ
ば、送信データを破棄する。
FIG. 5 is a flowchart showing the conventional data transmission method shown in FIG. In the data transmission process, the application in the main storage device 20 performs the data transmission process at the transmission stage by the application buffer 24 (step 21), and the application buffer 24 checks whether the data transmitted is normal. Then, if it is normal, the data in the main storage device 20 is transmitted to the transmission buffer 23 in the device area 25 (step 23). If the transmission data is not normal, the transmission data is discarded.

【0008】つぎに、図6は従来の図4に示すデータ受
信方式を示すフローチャートであり、データ受信処理で
は、不図示の入出力制御装置内から前記デバイスエリア
25にデータを受信すると、受信データ有りを示す入出
力ポートが含まれており、その入出力ポートを介して主
記憶装置20に受信データ有りを通知する。ドライバ2
1は、入出力制御装置等の装置により、周辺装置デバイ
スからのデータ入力を入出力ポートを検索し(ステップ
31)入出力ポートに受信データがくるまで待機する
(ステップ32)。受信データがあれば、ドライバ21
は、受信データが正常なものかのチェックを行い(ステ
ップ33)、受信データが正常でなければ受信データを
破棄し、ステップ31に戻る。一方受信データが正常で
あれば、前記データ転送命令が発行されていなくても、
転送アドレスポインタレジスタにより指示されたデータ
転送アドレスレジスタに対応するビジー/フリー識別子
レジスタの状態が空き状態であるのかどうかを判断し
(ステップ35)、空き状態がなければ、空き状態にな
るまで待機し(ステップ35)、空き状態であれば、転
送アドレスレジスタに設定されている主記憶装置20内
の転送エリアへデータ転送処理を行う(ステップ3
7)。空き状態ではなければ待機し、空き状態になった
のを確認後転送処理を行う(ステップ35)。
FIG. 6 is a flowchart showing the conventional data receiving method shown in FIG. 4. In the data receiving process, when data is received in the device area 25 from the inside of the input / output control device (not shown), the received data is received. An input / output port indicating presence is included, and the main storage device 20 is notified of the presence of received data via the input / output port. Driver 2
In step 1, an input / output control device or the like searches an input / output port for data input from a peripheral device (step 31) and waits until received data comes to the input / output port (step 32). If there is received data, the driver 21
Checks whether the received data is normal (step 33), and if the received data is not normal, discards the received data and returns to step 31. On the other hand, if the received data is normal, even if the data transfer instruction has not been issued,
It is determined whether the state of the busy / free identifier register corresponding to the data transfer address register designated by the transfer address pointer register is empty (step 35). If there is no empty state, it waits until it becomes empty. (Step 35) If empty, data transfer processing is performed to the transfer area in the main storage device 20 set in the transfer address register (Step 3).
7). If it is not empty, it waits, and after confirming that it is empty, performs transfer processing (step 35).

【0009】[0009]

【発明が解決しようとする課題】しかしながら、デバイ
スから受信データをアプリケーションバッファに転送し
なくてはならないので、データ転送処理時間がかかって
しまう。また、送信データ処理についても、アプリケー
ションバッファに書かれたデータをデバイス内の送信バ
ッファへ転送しなくてはならないのでデータ送信処理の
処理時間が必要である。
However, since the received data from the device must be transferred to the application buffer, the data transfer processing time is increased. Also, in the transmission data processing, the data written in the application buffer must be transferred to the transmission buffer in the device, so that a processing time for the data transmission processing is required.

【0010】また、アプリケーションエリアにデータ送
受信用のバッファを設け、アプリケーションが処理を行
うために、アプリケーションバッファにデータを転送
し、そこで処理を行わなくてはならないので、この場合
も余分な処理時間を消費してしまう。
Also, a buffer for data transmission / reception is provided in the application area, and data must be transferred to the application buffer for processing by the application, and the processing must be performed there. Consume it.

【0011】[発明の目的]本発明の目的は、アプリケ
ーションが処理を行うために受信データをアプリケーシ
ョンバッファへ転送するという動作は行わず、デバイス
エリア内送信バッファ・受信バッファにてアプリケーシ
ョンは処理を行うようにすることにある。本発明の他の
目的は、アプリケーションバッファを設ける必要がなく
なり、領域を効率よくつかえるようにすることにある。
[Object of the Invention] An object of the present invention is not to perform an operation of transferring received data to an application buffer in order for an application to perform processing, and the application performs processing in a transmission buffer and a reception buffer in a device area. Is to do so. It is another object of the present invention to eliminate the need for providing an application buffer and to efficiently use an area.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
に、本発明のデータ送受信方式では、他記憶装置とのイ
ンターフェースに送受信バッファを有するデバイスエリ
アと、前記デバイスエリア内にある送信バッファと受信
バッファへの送受信することを要求するドライバと、前
記ドライバによる要求によって前記デバイスエリアの送
信バッファへデータの書き込みを実施したり、前記受信
バッファからデータを読み出したりするアプリケーショ
ンとによって構成され、前記アプリケーションと前記デ
バイスエリア内の送信バッファ、受信バッファ間でデー
タの送受信をすることを特徴とする。
In order to achieve the above object, according to the data transmission / reception system of the present invention, a device area having a transmission / reception buffer at an interface with another storage device, a transmission buffer within the device area, and a reception area are provided. A driver for requesting transmission / reception to / from a buffer, and an application for writing data to a transmission buffer in the device area according to a request from the driver or reading data from the reception buffer. Data is transmitted and received between a transmission buffer and a reception buffer in the device area.

【0013】また、本発明のデータ送受信方式では、デ
バイスエリアに送信バッファエリアと受信バッファエリ
アを割り当てる。また、受信したデータが正常データか
どうかのチェックを行い、受信データが格納されている
バッファアドレスを、アプリケーションに通知するデー
タ受信処理ドライバを設ける。これらのドライバは、デ
ータ受信を行うためにアプリケーションが用いるものと
する。
In the data transmission / reception system of the present invention, a transmission buffer area and a reception buffer area are allocated to a device area. Further, a data reception processing driver for checking whether the received data is normal data and notifying the application of the buffer address where the received data is stored is provided. These drivers are used by applications to receive data.

【0014】送信処理も同様にアプリケーションにデー
タを書き込むべき送信バッファアドレスを通知するデー
タ送信開始処理ドライバと、アプリケーションが書き込
んだデータが正常なものかどうかをチェックするデータ
送信処理ドライバを設ける。
Similarly, in the transmission processing, a data transmission start driver for notifying the application of a transmission buffer address to which data is to be written and a data transmission processing driver for checking whether the data written by the application is normal are provided.

【0015】受信処理では、アプリケーションはデータ
受信処理ドライバを用いる。受信バッファ内に受信され
たデータはデータ受信処理ドライバによって正常データ
であるかどうかのチェックが行われ、正常データであっ
たならば、受信バッファ内のデータが入ったバッファア
ドレスをアプリケーションに通知する。
In the reception processing, the application uses a data reception processing driver. The data reception processing driver checks whether the data received in the reception buffer is normal data, and if the data is normal, notifies the application of the buffer address containing the data in the reception buffer.

【0016】これにより、アプリケーションは受信デー
タの在処がわかり、その場所で処理することができる。
[0016] Thus, the application can know the location of the received data and process the data at the location.

【0017】送信処理では、アプリケーションはデータ
送信開始処理ドライバを用いる。データ送信開始処理ド
ライバは、データを書き込むべき場所をアプリケーショ
ンに通知する。アプリケーションは送信バッファ内にデ
ータを書き込み、データ送信処理ドライバを用いて、ア
プリケーションによって書かれたデータが正常かどうか
のチェックを行い、正常であれば送信処理を行う。
In the transmission processing, the application uses a data transmission start processing driver. The data transmission start processing driver notifies the application of a place to write data. The application writes data in the transmission buffer and checks whether the data written by the application is normal using the data transmission processing driver. If the data is normal, the application performs transmission processing.

【0018】また、本発明は、主記憶装置と他記憶装置
間でのデータ送受信を実施するデータ送受信方式におい
て、前記他記憶装置とのインターフェースに送受信バッ
ファを有するデバイスエリアと、前記デバイスエリア内
にある送信バッファと受信バッファへの送受信すること
を要求するドライバと、前記ドライバによる要求によっ
て前記デバイスエリアの送信バッファへデータの書き込
みを実施し、前記受信バッファからデータを読み出すア
プリケーションとによって構成され、前記アプリケーシ
ョンと前記デバイスエリア内の前記送信バッファ、前記
受信バッファ間でデータの送受信をすることを特徴とす
る。
According to the present invention, in a data transmission / reception method for performing data transmission / reception between a main storage device and another storage device, a device area having a transmission / reception buffer at an interface with the other storage device; A driver that requests transmission and reception to a certain transmission buffer and a reception buffer, and an application that performs writing of data to the transmission buffer of the device area by a request from the driver and reads data from the reception buffer, Data is transmitted and received between an application and the transmission buffer and the reception buffer in the device area.

【0019】また、本発明は、主記憶装置と他記憶装置
間でのデータ送受信を実施するデータ送受信方法におい
て、前記他記憶装置とのインターフェースに送受信バッ
ファを有するデバイスエリアと、前記デバイスエリア内
にある送信バッファと受信バッファとへの送受信するこ
とを要求するドライバと、前記ドライバによる要求によ
って前記デバイスエリアの送信バッファへデータの書き
込みを実施し、前記受信バッファからデータを読み出す
アプリケーションとによって構成され、前記ドライバ
は、データ送信時、前記アプリケーションからの送信デ
ータの送信要求に対応して前記送信バッファの空き状態
を検出し、前記空き状態であれば前記アプリケーション
から前記送信データを前記送信バッファに転送し、前記
送信データが正常であるのか否かをチェックするチェッ
クし、前記アプリケーションに前記空き状態の前記送信
バッファ内の空きアドレスを通知し、前記ドライバは、
データ受信時、前記受信バッファにデータがあるのか否
かを検出し、データがありの場合に前記受信バッファ内
の受信データが正常か否かをチェックし、前記アプリケ
ーションに前記受信バッファの前記受信データの格納ア
ドレスを通知することを特徴とする。
According to the present invention, there is provided a data transmission / reception method for transmitting / receiving data between a main storage device and another storage device, comprising: a device area having a transmission / reception buffer at an interface with the other storage device; A driver for requesting transmission and reception to a certain transmission buffer and a reception buffer, and an application for writing data to the transmission buffer of the device area by a request from the driver and reading data from the reception buffer, When transmitting data, the driver detects an empty state of the transmission buffer in response to a transmission data transmission request from the application, and if the empty state, transfers the transmission data from the application to the transmission buffer. The transmission data is normal Check Check whether that notifies a free address in the transmission buffer of the empty state in the application, the driver,
At the time of data reception, it is detected whether or not there is data in the reception buffer, and if there is data, it is checked whether or not the reception data in the reception buffer is normal. The storage address is notified.

【0020】[作用]本発明は、アプリケーションバッ
ファからデバイス内の送信バッファ、デバイス内の受信
バッファからアプリケーションバッファへの転送処理を
行わないことから、処理時間短縮という効果が得られ
る。また、転送を行わないことから、アプリケーション
バッファを設ける必要がなくなり、アプリケーションが
行うべき処理をアプリケーションバッファで行うのでは
なく、デバイスエリア内に設けたバッファ内で行うこと
によりアプリケーションバッファの代用が可能となる。
[Operation] According to the present invention, since the transfer processing from the application buffer to the transmission buffer in the device and from the reception buffer in the device to the application buffer is not performed, the effect of shortening the processing time can be obtained. In addition, since transfer is not performed, it is not necessary to provide an application buffer, and instead of performing the processing to be performed by the application in the buffer provided in the device area, the application buffer can be substituted. Become.

【0021】[0021]

【発明の実施の形態】本発明による実施形態について、
図面を参照しつつ詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments according to the present invention will be described.
This will be described in detail with reference to the drawings.

【0022】[本実施形態の構成]図1に示したもの
は、本実施形態によるデータ転送方式である。本実施形
態によるデータ転送方式は、主記憶装置10と外部記憶
装置18や中央処理装置16、入出力装置17等のハー
ドウェアとソフトウェアのインターフェースとなるRA
M領域を設けたデバイスエリア15とからなり、不図示
の中央処理回路16や入出力装置17とアドレスバスや
データバスとで接続されている。
FIG. 1 shows a data transfer system according to the present embodiment. The data transfer method according to the present embodiment uses an RA that serves as an interface between hardware and software such as the main storage device 10, the external storage device 18, the central processing unit 16, and the input / output device 17.
It comprises a device area 15 provided with an M area, and is connected to a central processing circuit 16 and an input / output device 17 (not shown) via an address bus and a data bus.

【0023】主記憶装置10には、アプリケーション1
4と、そのアプリケーション14に送信・受信用のアド
レスを指定し、送受信するデータが正常化否かをチェッ
クするドライバ11が内蔵されている。また、デバイス
エリア15には、外部バスからアプリケーション14に
データを送付する受信バッファ12と、アプリケーショ
ン14からデータを外部に送出する送信バッファ13と
が備えられている。
The main storage device 10 stores the application 1
4 and a driver 11 for designating an address for transmission / reception to the application 14 and checking whether or not data to be transmitted / received is normal. The device area 15 is provided with a reception buffer 12 for sending data from an external bus to the application 14 and a transmission buffer 13 for sending data from the application 14 to the outside.

【0024】また、ドライバ11は、受信処理で、アプ
リケーション14のデータ受信処理ドライバを用いる。
受信バッファ12内に受信されたデータはデータ受信処
理ドライバ113によって正常データであるかどうかの
チェックが行われ、正常データであったならば、受信バ
ッファ12内のデータが入ったバッファアドレスをアプ
リケーション14に通知する。
The driver 11 uses a data reception processing driver of the application 14 in the reception processing.
The data received in the reception buffer 12 is checked by the data reception processing driver 113 to determine whether it is normal data. If the data is normal, the buffer address containing the data in the reception buffer 12 is changed by the application 14. Notify.

【0025】また、ドライバ11は、送信処理で、アプ
リケーション14のためにデータ送信開始処理ドライバ
111を用いる。データ送信開始処理ドライバ111
は、データを書き込むべき場所をアプリケーション14
に通知する。アプリケーション14は送信バッファ13
内にデータを書き込み、データ送信処理ドライバ112
を用いて、アプリケーション14によって書かれたデー
タが正常かどうかのチェックを行い、正常であれば送信
処理を行う。
The driver 11 uses the data transmission start processing driver 111 for the application 14 in the transmission processing. Data transmission start processing driver 111
Indicates where to write data to application 14
Notify. The application 14 has a transmission buffer 13
Write data in the data transmission processing driver 112
Is used to check whether the data written by the application 14 is normal. If the data is normal, a transmission process is performed.

【0026】ここで、ドライバ11は、RAM等のデバ
イス15内にある受信バッファ12・送信バッファ13
と、アプリケーション14の中間には位置せず、その間
のデータ転送処理も行わない。アプリケーション14と
ドライバ11の間では直接的にデータ転送処理は行わな
いが、ドライバ11は、受信処理の場合、受信バッファ
12内の受信データが正常データであるかどうかのチェ
ックを行い、正常であったならデータが書かれている受
信バッファ12のバッファアドレスをアプリケーション
14に通知する動作を行う。
Here, the driver 11 includes a reception buffer 12 and a transmission buffer 13 in a device 15 such as a RAM.
Is not located in the middle of the application 14, and no data transfer processing is performed between them. Although the data transfer process is not directly performed between the application 14 and the driver 11, in the case of the reception process, the driver 11 checks whether the reception data in the reception buffer 12 is normal data, and determines that the reception data is normal. Then, an operation of notifying the application 14 of the buffer address of the reception buffer 12 in which the data is written is performed.

【0027】また、ドライバ11は、送信処理の場合、
データを書くべき送信バッファ13のバッファアドレス
をアプリケーション14に通知し、アプリケーション1
4がデータを送信バッファ13に書き終えたなら、ドラ
イバ11はこのデータが正常かどうかをチェックし、正
常であったなら送信処理を行う。このように、ドライバ
11が送信バッファ13のバッファアドレスを通知する
ことにより、アプリケーション14は、デバイスエリア
15内の送信バッファ13・受信バッファ12内にて処
理を行うことができ、ドライバ11自身が転送処理を行
わないことによって送受信処理を高速化することが可能
となる。
In the transmission process, the driver 11
The application 14 is notified of the buffer address of the transmission buffer 13 in which the data is to be written.
4 finishes writing the data in the transmission buffer 13, the driver 11 checks whether or not the data is normal. If the data is normal, the driver 11 performs transmission processing. As described above, the driver 14 notifies the buffer address of the transmission buffer 13, so that the application 14 can perform processing in the transmission buffer 13 and the reception buffer 12 in the device area 15, and the driver 11 itself transfers the data. By not performing the processing, it is possible to speed up the transmission / reception processing.

【0028】また、本実施形態によれば、デバイスエリ
ア15に送信バッファエリア13と受信バッファエリア
12を割り当て、ドライバ11がこのバッファエリア1
5の書き込み・読み込みを行うべきバッファアドレスを
アプリケーション14に通知する。アプリケーション1
4は通知されたバッファエリア15にて処理を行うた
め、データの転送処理を1度も行わないで、データ送受
信処理が出来る。従って、本実施形態により、データ転
送処理を1度も行わないため処理時間が短縮され、転送
先のアプリケーションバッファエリアを必要としないた
め、作業領域の有効利用が見込まれる。
According to the present embodiment, the transmission buffer area 13 and the reception buffer area 12 are allocated to the device area 15, and the driver 11
The application 14 is notified of the buffer address at which the writing / reading of 5 should be performed. Application 1
4 performs processing in the notified buffer area 15, so that data transmission / reception processing can be performed without performing any data transfer processing. Therefore, according to the present embodiment, since the data transfer process is not performed at all, the processing time is shortened, and the application buffer area of the transfer destination is not required, so that the effective use of the work area is expected.

【0029】[本実施形態の動作]以下、本実施形態の
動作について、図2に本実施形態によるデータ送信方式
のフローチャートを示し、図3に本実施形態のデータ受
信方式のフローチャートを示して、詳細に説明する。
[Operation of the Present Embodiment] Hereinafter, regarding the operation of the present embodiment, FIG. 2 shows a flowchart of the data transmission system according to the present embodiment, and FIG. 3 shows a flowchart of the data reception system of the present embodiment. This will be described in detail.

【0030】本実施形態の送信処理において、図2を参
照して、アプリケーション14は送信バッファ13の解
放を要求するために、データ送信開始ドライバを用いる
(ステップ1)。データ送信開始ドライバでは、デバイ
スエリア15内の送信バッファ13を解放し、アプリケ
ーション14に対して送信データを書き込むバッファア
ドレスを通知する(ステップ2)。通知されたバッファ
アドレスにアプリケーション14はデータを書き込む
(ステップ3)。それと同時にデータ送信のため、ドラ
イバ11を用いて(ステップ4)、アプリケーション1
4が送信バッファ13内の指定されたアドレスに書いた
データが、正常データかどうかのチェックを行い、正常
データであったなら外部バスに送信処理を行う(ステッ
プ5)。つぎに、図3を参照して、外部バスからのデー
タを受信する受信処理について説明する。本実施形態の
受信処理において、アプリケーション14はデータ受信
処理ドライバを受信バッファ12にデータが存在するか
どうかをチェックする(ステップ11)。デバイスエリ
ア15内の受信バッファ12にデータが書き込まれてい
たなら、データ受信用ドライバ11でそのデータが正常
データかどうかのチェックを行う(ステップ12)。受
信バッファ12内に受信データがなかったなら、次のデ
ータを受信するまで待機している(ステップ13)。
In the transmission processing of the present embodiment, referring to FIG. 2, application 14 uses a data transmission start driver to request release of transmission buffer 13 (step 1). The data transmission start driver releases the transmission buffer 13 in the device area 15 and notifies the application 14 of the buffer address where the transmission data is to be written (step 2). The application 14 writes data to the notified buffer address (step 3). At the same time, for data transmission, the application 1 is used by using the driver 11 (step 4).
4 checks whether the data written at the designated address in the transmission buffer 13 is normal data, and if the data is normal data, performs transmission processing to the external bus (step 5). Next, a receiving process for receiving data from the external bus will be described with reference to FIG. In the receiving process of the present embodiment, the application 14 checks whether or not data exists in the receiving buffer 12 by the data receiving process driver (step 11). If data has been written to the reception buffer 12 in the device area 15, the data reception driver 11 checks whether the data is normal data (step 12). If there is no reception data in the reception buffer 12, it waits until the next data is received (step 13).

【0031】受信バッファ12に受信データが存在し、
正常データであったらデータ受信用のドライバ11に
て、データ受信用ドライバ11はアプリケーション14
にデータが書かれたバッファアドレスを通知する(ステ
ップ14)。受信データが正常データでなければ、その
受信データは破棄し(ステップ15)、次のデータの受
信処理を行うため、ステップ11に帰還する。
When reception data exists in the reception buffer 12,
If the data is normal, the driver 11 for data reception uses the application 14
Is notified of the buffer address where the data is written (step 14). If the received data is not normal data, the received data is discarded (step 15), and the process returns to step 11 to perform the next data receiving process.

【0032】ステップ14の処理後、正常データが有
り、バッファアドレスを通知されたアプリケーション1
4はデバイスエリア15内の受信バッファ12の通知さ
れたバッファアドレス内で処理を行い(ステップ1
6)、処理終了後、次のデータの受信処理を行う。
After the processing in step 14, there is normal data, and the application 1 notified of the buffer address
4 performs processing within the notified buffer address of the reception buffer 12 in the device area 15 (step 1).
6) After the processing is completed, the reception processing of the next data is performed.

【0033】なお、上記実施形態では、説明の都合上主
記憶装置として説明したが、ハードディスクやMO(Ma
gneto-Optics)、磁気テープ等の記憶装置であっても、
バッファエリアと各記憶装置内のドライバを有すること
により、本発明を適用できるものである。
Although the above embodiment has been described as a main storage device for convenience of explanation, a hard disk or an MO (Ma
gneto-Optics), storage devices such as magnetic tapes,
By having a buffer area and a driver in each storage device, the present invention can be applied.

【0034】また、上記実施形態では、バッファエリア
をRAMとして説明したが、RAMに限らず、フラッシ
ュメモリやキャッシュメモリであってもよく、DRAM
やSDRAM(Synchronous Dynamic Random Access Me
mory)であってもよい。
In the above embodiment, the buffer area is described as a RAM. However, the present invention is not limited to the RAM, but may be a flash memory or a cache memory.
And SDRAM (Synchronous Dynamic Random Access Me
mory).

【0035】[0035]

【発明の効果】以上説明したとおり、本発明では、ドラ
イバ11がデバイス内の送信バッファ13・受信バッフ
ァ12とアプリケーション14との間でデータの受け渡
し(データ転送処理)を行わないですむため、データ送
受信処理において処理速度の向上という効果がある。
As described above, according to the present invention, the driver 11 does not need to perform data transfer (data transfer processing) between the transmission buffer 13 / reception buffer 12 and the application 14 in the device. This has the effect of improving the processing speed in the transmission / reception processing.

【0036】また処理速度の向上だけではなく、転送処
理を行わないことによって転送先のバッファエリアを用
いる必要がなくなるため、アプリケーションバッファ領
域が不必要となる。これにより、領域の有効活用という
効果もある。
In addition to the improvement of the processing speed, the absence of the transfer processing eliminates the necessity of using the buffer area of the transfer destination, so that the application buffer area becomes unnecessary. This has the effect of effectively utilizing the area.

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

【図1】本発明によるデータ転送方式を示したブロック
図である。
FIG. 1 is a block diagram showing a data transfer method according to the present invention.

【図2】本発明によるデータ送信方式を示したフローチ
ャート図である。
FIG. 2 is a flowchart illustrating a data transmission method according to the present invention.

【図3】本発明によるデータ受信方式を示したフローチ
ャート図である。
FIG. 3 is a flowchart illustrating a data receiving method according to the present invention.

【図4】従来のデータ転送方式を示したブロック図であ
る。
FIG. 4 is a block diagram showing a conventional data transfer method.

【図5】従来のデータ送信方式を示したフローチャート
図である。
FIG. 5 is a flowchart showing a conventional data transmission method.

【図6】従来のデータ受信方式を示したフローチャート
図である。
FIG. 6 is a flowchart showing a conventional data receiving method.

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

10,20 主記憶装置 11,21 ドライバ 12,22 デバイス内の受信バッファ 13,23 デバイス内の送信バッファ 14 主記憶装置内のアプリケーションバッファ 15,25 デバイスエリア 16,26 中央処理回路 17 入出力装置 18 記憶装置 24 主記憶装置内のアプリケーション 27 外部バス 10, 20 Main storage device 11, 21 Driver 12, 22 Reception buffer in device 13, 23 Transmission buffer in device 14 Application buffer in main storage device 15, 25 Device area 16, 26 Central processing circuit 17 Input / output device 18 Storage device 24 Application in main storage device 27 External bus

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 主記憶装置と他記憶装置間でデータを送
受信するデータ送受信方式において、 前記他記憶装置とのインターフェースに送受信バッファ
を有するデバイスエリアと、該デバイスエリアに接続さ
れた前記主記憶装置とを備え、前記主記憶装置は前記デ
バイスエリア内にある送信バッファと受信バッファに送
受信することを要求するドライバと、前記ドライバによ
る要求によって前記デバイスエリア内の前記送信バッフ
ァへデータへの書き込みを実施し及び前記受信バッファ
からデータを読み出すアプリケーションとによって構成
され、前記ドライバは前記送受信バッファ内の送信又は受信デ
ータが正常であるのか否かをチェックするチェック手段
を備え、 前記ドライバによる前記各バッファのアドレス
指示に従って前記アプリケーションと前記デバイスエリ
ア内の前記送信バッファ及び前記受信バッファ間でデ
ータの送受信をすることを特徴とするデータ送受信方
式。
1. A data transmitting and receiving system for transmitting and receiving data between the main memory and other storage devices, and a device area having a transmission and reception buffer to interface with the other storage device, is connected to the device area
And a the said main storage device, and the main storage device requests to receive the transmit and receive buffers in the device area drivers, to the transmission buffer in said device area by a request by the driver configured to write to the data from the embodiment and and the receive buffer by the application to be read out the data, the driver is transmitting or receiving data of the said transmission and reception buffer
Check means for checking whether data is normal
The provided data transceiver system, characterized by the transmission and reception of data between the inter-transmission buffer and the reception buffer in said device area and the application in accordance with said address instructions in each buffer by the driver.
【請求項2】 請求項1に記載のデータ送受信方式にお
いて、前記ドライバは、前記他記憶装置へデータ送信
時、前記アプリケーションからの送信データの送信要求
に対応して前記送信バッファの空き状態を検出する検出
手段と、前記空き状態であれば前記アプリケーションか
ら前記送信データを前記送信バッファに転送し、前記送
信データが正常であるのか否かをチェックするチェック
手段と、前記アプリケーションに前記空き状態の前記送
信バッファ内の空きアドレスを通知する通知手段とを備
えたことを特徴とするデータ送受信方式。
2. The data transmission / reception system according to claim 1, wherein the driver detects an empty state of the transmission buffer in response to a transmission data transmission request from the application when transmitting data to the other storage device. Detecting means for transferring the transmission data from the application to the transmission buffer if the application is free, and checking whether or not the transmission data is normal. A data transmission / reception system comprising: a notification unit for notifying an empty address in the transmission buffer.
【請求項3】 請求項1に記載のデータ送受信方式にお
いて、前記ドライバは、前記他記憶装置からデータ受信
時、前記受信バッファにデータがあるのか否かを検出す
る検出手段と、前記検出手段が有りを検出したときに前
記受信バッファ内の受信データが正常か否かをチェック
するチェック手段と、前記アプリケーションに前記受信
バッファの前記受信データの格納アドレスを通知する通
知手段とを備えたことを特徴とするデータ送受信方式。
3. The data transmission / reception system according to claim 1, wherein the driver detects whether or not there is data in the reception buffer when receiving data from the other storage device; Checking means for checking whether or not received data in the receiving buffer is normal when the presence is detected, and notifying means for notifying the application of a storage address of the received data in the receiving buffer to the application. Data transmission / reception method.
【請求項4】 前記デバイスエリアはフラッシュメモリ
又はRAM、キャッシュメモリから構成されていること
を特徴とする請求項1に記載のデータ送受信方式。
4. The data transmission / reception system according to claim 1, wherein said device area is constituted by a flash memory, a RAM, and a cache memory.
【請求項5】 記憶装置と他記憶装置間でのデータ送受
信を実施するデータ送受信方法において、 前記他記憶装置とのインターフェースに前記記憶装置の
送受信バッファを有するデバイスエリアと、該デバイス
エリアに接続された前記主記憶装置とを備え、前記主記
憶装置は前記デバイスエリア内にある送信バッファと受
信バッファとへの送受信することを要求するドライバ
と、前記ドライバによる要求によって前記デバイスエリ
アの送信バッファへデータの書き込みを実施し、前記受
信バッファからデータを読み出すアプリケーションとに
よって構成され、 前記ドライバは、前記他記憶装置へデータ送信時、前記
アプリケーションからの送信データの送信要求に対応し
て前記送信バッファの空き状態を検出し、前記空き状態
であれば前記アプリケーションから前記送信データを前
記送信バッファに転送し、前記送信データが正常である
のか否かをチェックするチェックし、前記アプリケーシ
ョンに前記空き状態の前記送信バッファ内の空きアドレ
スを通知し、 前記ドライバは、前記他記憶装置からデータ受信時、前
記受信バッファにデータがあるのか否かを検出し、デー
タがありの場合に前記受信バッファ内の受信データが正
常か否かをチェックし、前記アプリケーションに前記受
信バッファの前記受信データの格納アドレスを通知する
ことを特徴とするデータ送受信方法。
5. A data transmission / reception method for transmitting / receiving data between a storage device and another storage device, comprising: a device area having a transmission / reception buffer of the storage device at an interface with the other storage device;
The main storage device connected to the area,
The storage device performs a data write to a transmission buffer of the device area in response to a request from the driver for requesting transmission / reception to a transmission buffer and a reception buffer in the device area. The driver detects an empty state of the transmission buffer in response to a transmission data transmission request from the application when transmitting data to the other storage device. Transferring the transmission data from the application to the transmission buffer, checking whether the transmission data is normal or not, notifying the application of an empty address in the empty transmission buffer, is data from said another storage device At the time of reception, it is detected whether or not there is data in the reception buffer, and if there is data, it is checked whether or not the reception data in the reception buffer is normal. A data transmission / reception method for notifying a storage address.
【請求項6】 請求項5に記載のデータ送受信方法にお
いて、前記ドライバは、前記データ送信時に動作する前
記アプリケーションの指示により動作を開始するデータ
送信開始ドライバと、前記送信バッファ内の送信データ
が正常か否かをチェックするデータ送信処理ドライバ
と、前記データ受信時に動作するデータ受信処理ドライ
バとを備えたことを特徴とするデータ送受信方法。
6. The data transmission / reception method according to claim 5, wherein the driver is a data transmission start driver that starts operation in accordance with an instruction of the application operating at the time of data transmission, and the transmission data in the transmission buffer is normal. A data transmission / reception method, comprising: a data transmission processing driver that checks whether or not the data is received; and a data reception processing driver that operates when receiving the data.
JP10235953A 1998-08-21 1998-08-21 Data transmission / reception method and method Expired - Fee Related JP3056169B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10235953A JP3056169B2 (en) 1998-08-21 1998-08-21 Data transmission / reception method and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10235953A JP3056169B2 (en) 1998-08-21 1998-08-21 Data transmission / reception method and method

Publications (2)

Publication Number Publication Date
JP2000066874A JP2000066874A (en) 2000-03-03
JP3056169B2 true JP3056169B2 (en) 2000-06-26

Family

ID=16993666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10235953A Expired - Fee Related JP3056169B2 (en) 1998-08-21 1998-08-21 Data transmission / reception method and method

Country Status (1)

Country Link
JP (1) JP3056169B2 (en)

Also Published As

Publication number Publication date
JP2000066874A (en) 2000-03-03

Similar Documents

Publication Publication Date Title
JP3807250B2 (en) Cluster system, computer and program
KR20070116102A (en) Dma controller, node, data transfer control method, and program
JPH01197866A (en) Interface apparatus and method
KR100630071B1 (en) High speed data transmission method using direct memory access method in multi-processors condition and apparatus therefor
JPH06309230A (en) Bus snooping method
WO2006134804A1 (en) External device access device
US7415555B2 (en) Bus bridge device
JP4642531B2 (en) Arbitration of data requests
JP3481308B2 (en) Interface device, data transfer system and data transfer method
JP2001333137A (en) Self-operating communication controller and self- operating communication control method
JP3703532B2 (en) Computer system with multiplexed address bus
JPH10334037A (en) Communication dma device
JP2006268753A (en) Dma circuit and computer system
JP3056169B2 (en) Data transmission / reception method and method
JPH11232213A (en) Data transfer system for input/output device
EP0169909B1 (en) Auxiliary memory device
JPS599767A (en) Multiprocessor
US20030056072A1 (en) System and method for providing data to multi-function memory
JP3110024B2 (en) Memory control system
JP6885635B1 (en) Information processing device, information processing method and program for information processing device
JP2727514B2 (en) Transfer destination ID designating circuit
JP2005301714A (en) Multi-cpu system, its data transfer method, and its program
JPH10307788A (en) Bus bridge
JPH10283302A (en) Method and system for supplying data to bus connected to plural processors
JP3356110B2 (en) Function expansion system and data transfer method used therefor

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees