JP2005173956A - Data transfer method and data transfer system - Google Patents
Data transfer method and data transfer system Download PDFInfo
- Publication number
- JP2005173956A JP2005173956A JP2003412831A JP2003412831A JP2005173956A JP 2005173956 A JP2005173956 A JP 2005173956A JP 2003412831 A JP2003412831 A JP 2003412831A JP 2003412831 A JP2003412831 A JP 2003412831A JP 2005173956 A JP2005173956 A JP 2005173956A
- Authority
- JP
- Japan
- Prior art keywords
- data transfer
- host computer
- strobe signal
- ata
- abnormal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、ホストコンピュータとドライブ装置間のデータ転送方法およびそのデータ転送方法を有するデータ転送システムに関する。 The present invention relates to a data transfer method between a host computer and a drive device, and a data transfer system having the data transfer method.
パーソナルコンピュータ等のホストコンピュータと光ディスク装置等のドライブ装置間のデータ転送を行うインターフェース(I/F)の代表例として、スカジー(SCSI)とアタ/アタピ(ATA/ATAPI)があり、SCSIは、データバスにパリティビットを設けてデータ転送時のデータ誤りを検出することができるが、ATA/ATAPIは、エラー検出用ビットが無く、ATAPIケーブルの物理的特性などによるインピーダンスの影響や高速データ転送にて、ホストコンピュータとドライブ装置間でデータ転送中にデータ誤りが発生することがあるという問題があった。ATA/ATAPIの詳細は例えば非特許文献1に記載されている。 As typical examples of interfaces (I / F) for transferring data between a host computer such as a personal computer and a drive device such as an optical disk device, there are Scuzzy (SCSI) and Ata / Atapi (ATA / ATAPI). Although it is possible to detect a data error during data transfer by providing a parity bit on the bus, ATA / ATAPI has no error detection bit, and is affected by impedance due to the physical characteristics of the ATAPI cable and high-speed data transfer. There is a problem that a data error may occur during data transfer between the host computer and the drive device. Details of ATA / ATAPI are described in Non-Patent Document 1, for example.
本問題に対する対応例として、従来、ホストコンピュータからドライブ装置へ転送中にデータ誤りの発生有無を診断するホストインターフェース診断処理が知られている。この処理方法では、ホストコンピュータが選択したデータ転送モードを用いて所定のデータをドライブ装置へ送信し、ドライブ装置にて、ホストコンピュータから受信した所定のデータと、予めホストコンピュータからの命令に基づいて作成してある比較用データとを比較し、比較結果が同じでない場合はエラーが発生したと判断して、ホストコンピュータとの間の上記選択したデータ転送モードによるデータの送受信を禁止し、比較結果が同じ場合は、エラーが発生していないと判断して、データの送受信を行う。この処理方法は、例えば特許文献1に記載されている。 As an example of dealing with this problem, a host interface diagnosis process for diagnosing whether or not a data error has occurred during transfer from a host computer to a drive device is conventionally known. In this processing method, predetermined data is transmitted to the drive device using the data transfer mode selected by the host computer, and the drive device receives the predetermined data received from the host computer and a command from the host computer in advance. Compare with the created comparison data. If the comparison results are not the same, it is determined that an error has occurred, and data transmission / reception with the selected data transfer mode with the host computer is prohibited. Are the same, it is determined that no error has occurred and data is transmitted and received. This processing method is described in Patent Document 1, for example.
しかし、このデータ転送方法では、データ転送のひとつのPIO(プログラム・インプット・アウトプット)データ転送において、ホストコンピュータ側で、ノイズや誤動作などにより、ストローブ信号のプロトコル違反が発生する場合について、何ら考慮されていない。 However, in this data transfer method, no consideration is given to the case where a protocol violation of the strobe signal occurs due to noise or malfunction on the host computer side during one PIO (program / input / output) data transfer. It has not been.
ストローブ信号は、レジスタまたはデータを読み書きするために読み書きのタイミングをコントロールする信号であり、PIOデータ転送においては、ドライブ装置→ホストコンピュータの転送方向を示すIOR-信号と、ホストコンピュータ→ドライブ装置の転送方向を示すIOW-信号の2種類の信号を使う。 The strobe signal is a signal for controlling the read / write timing in order to read / write the register or data. In the PIO data transfer, the IOR- signal indicating the transfer direction from the drive device to the host computer and the transfer from the host computer to the drive device. Two types of signals are used: IOW-signals that indicate directions.
ストローブ信号のプロトコル違反が発生して、ストローブ信号のドライブ装置→ホストコンピュータの転送方向を示すIOR-信号や、ホストコンピュータ→ドライブ装置の転送方向を示すIOW-信号に誤りが生じた場合、ドライブ装置側が誤ったストローブ信号によるデータ処理をしてしまい、誤ったストローブ信号によるデータ処理をしたデータと正常なストローブ信号によるデータ処理をしたデータとが混在して、以後の転送データが破綻してデータ転送を終了することができないという課題がある。 If a strobe signal protocol violation occurs and an error occurs in the IOR- signal indicating the transfer direction of the strobe signal from the drive device to the host computer or the IOW- signal indicating the transfer direction of the host computer to the drive device, the drive device Data processed by the wrong strobe signal on the side, data processed by the incorrect strobe signal and data processed by the normal strobe signal are mixed, and subsequent transfer data fails and data transfer occurs There is a problem that can not be finished.
本発明の目的は、ホストコンピュータ側でストローブ信号のプロトコル違反が発生した場合に、データ転送を終了することが可能なデータ転送方法およびデータ転送システムを提供することにある。 An object of the present invention is to provide a data transfer method and a data transfer system capable of terminating data transfer when a protocol violation of a strobe signal occurs on the host computer side.
本発明による請求項1記載のデータ転送方法は、ホストコンピュータから受信したストローブ信号によるデータ処理をしたデータを、ホストコンピュータにデータ転送するデータ転送方法において、前記ホストコンピュータから受信したストローブ信号を、該ストローブ信号に先立って受信し保存してあるATA/ATAPIコマンドの内容と比較して、正常ストローブ信号か異常ストローブ信号かを判断し、該異常ストローブ信号のとき該異常ストローブ信号の受信する数が予め決めた数に達したらデータ転送をしないで前記ATA/ATAPIコマンドに対するエラー終了通知を、前記ホストコンピュータに送信することを特徴とする。 According to a first aspect of the present invention, there is provided a data transfer method according to the first aspect of the present invention, in which the data processed by the strobe signal received from the host computer is transferred to the host computer, the strobe signal received from the host computer is transmitted to the host computer. Compared to the contents of the ATA / ATAPI command received and stored prior to the strobe signal, it is determined whether the strobe signal is a normal strobe signal or an abnormal strobe signal. When the determined number is reached, an error completion notice for the ATA / ATAPI command is transmitted to the host computer without transferring data.
本発明による請求項2記載のデータ転送方法は、請求項1記載のデータ転送方法において、前記ホストコンピュータから受信したストローブ信号が前記異常ストローブ信号のときは、直ちに前記ATA/ATAPIコマンドに対するエラー終了通知を、前記ホストコンピュータに送信することを特徴とする。 The data transfer method according to claim 2 of the present invention is the data transfer method according to claim 1, wherein when the strobe signal received from the host computer is the abnormal strobe signal, an error completion notification for the ATA / ATAPI command is immediately performed. Is transmitted to the host computer.
本発明による請求項3記載のデータ転送システムは、ホストコンピュータから受信したストローブ信号によるデータ処理をしたデータを、ホストコンピュータにデータ転送するデータ転送システムにおいて、前記ホストコンピュータから受信したストローブ信号を、該ストローブ信号に先立って受信し保存してあるATA/ATAPIコマンドの内容と比較して、正常ストローブ信号か異常ストローブ信号かを判断し、該異常ストローブ信号のとき該異常ストローブ信号の受信する数が予め決めた数に達したらデータ転送をしないで前記ATA/ATAPIコマンドに対するエラー終了通知を、前記ホストコンピュータに送信することを特徴とする。 According to a third aspect of the present invention, there is provided a data transfer system according to a third aspect of the present invention, in which the data processed by the strobe signal received from the host computer is transferred to the host computer, the strobe signal received from the host computer is transmitted to the host computer. Compared to the contents of the ATA / ATAPI command received and stored prior to the strobe signal, it is determined whether the strobe signal is a normal strobe signal or an abnormal strobe signal. When the determined number is reached, an error completion notice for the ATA / ATAPI command is transmitted to the host computer without transferring data.
本発明による請求項4記載のデータ転送システムは、請求項3記載のデータ転送システムにおいて、前記ホストコンピュータから受信したストローブ信号が前記異常ストローブ信号のときは、直ちに前記ATA/ATAPIコマンドに対するエラー終了通知を、前記ホストコンピュータに送信することを特徴とする。 The data transfer system according to claim 4 of the present invention is the data transfer system according to claim 3, wherein when the strobe signal received from the host computer is the abnormal strobe signal, an error completion notification for the ATA / ATAPI command is immediately performed. Is transmitted to the host computer.
本発明によれば、ホストコンピュータ側でストローブ信号のプロトコル違反が発生した場合に、データ転送を終了することが可能なデータ転送方法およびデータ転送システムを得ることができる。 According to the present invention, it is possible to obtain a data transfer method and a data transfer system capable of ending data transfer when a strobe signal protocol violation occurs on the host computer side.
以下、図面に基づき本発明による実施の形態について説明する。 Embodiments of the present invention will be described below with reference to the drawings.
図1は、本発明に係るデータ転送方法を有するデータ転送システムの実施の形態の構成図である。 FIG. 1 is a configuration diagram of an embodiment of a data transfer system having a data transfer method according to the present invention.
図1において、データ転送システムは、ホストコンピュータ1とドライブ装置2とが通信線3を介して互いにデータ転送可能に接続されている。 In FIG. 1, in a data transfer system, a host computer 1 and a drive device 2 are connected via a communication line 3 so as to be able to transfer data to each other.
ホストコンピュータ1は、マイコン(マイクロコンピュータ)11とメモリ12とATA/ATAPI I/F13を備え、ドライブ装置2は、ATA/ATAPI I/F21とDSP(デジタル・シグナル・プロセッサ)22とメモリ23とマイコン(マイクロコンピュータ)24を備える。
The host computer 1 includes a microcomputer 11, a
DSP22は、その内部に異常ストローブカウンタ22−1とバイト カウント(BYTE COUNT)レジスタ22−2とインタラプト リーズン(INTERRUPT REASON)レジスタ22−3とステイタス(STATUS)レジスタ22−4を備える。これらのレジスタのうち、異常ストローブカウンタ22−1以外のレジスタ22−2〜22−4は、ATA/ATAPI I/F13用のDSP22に、ATA/ATAPIレジスタとして従来より内蔵されているレジスタである。
The
図2は、本発明に係るデータ転送方法の例を示すフローチャート図である。この図2は、ドライブ装置2がホストコンピュータ1からATA/ATAPIコマンドを受信してからATA/ATAPIコマンドに基づく終了をホストコンピュータ1に送信までのフローチャートを示す図である。 FIG. 2 is a flowchart showing an example of the data transfer method according to the present invention. FIG. 2 is a diagram showing a flowchart from when the drive apparatus 2 receives an ATA / ATAPI command from the host computer 1 to transmission of an end based on the ATA / ATAPI command to the host computer 1.
まずステップ201で、ホストコンピュータ1からのATA/ATAPIコマンドをATA/ATAPI I/F21を介してDSP22が受信して、ATA/ATAPIコマンドの内容をメモリ23に保存する。
First, in step 201, the DSP 22 receives the ATA / ATAPI command from the host computer 1 via the ATA / ATAPI I /
次にステップ202で、受信したATA/ATAPIコマンドで要求されたデータ転送の全バイト数例えば20バイトの転送すべきデータ(ドライブ装置2の情報等)を、DSP22が作成してメモリ23に保存する。
Next, in
次にステップ203で、DSP22の異常ストローブカウンタ22−1の初期化をする。初期設定値は例えば転送1回あたりのバイト数の1/2にする。(ストローブ信号1発につき2バイトのデータ転送をすると規格で決められているので、1回のデータ転送で発生する予定の総ストローブ信号数に相当する)。転送1回あたりのバイト数が例えば20バイトの場合、初期設定値を10に、マイコン(マイクロコンピュータ)24が設定する。
Next, at
次にステップ204で、データ転送を起動する。データ転送の起動は、バイト カウント(BYTE COUNT)レジスタ22−2に、転送1回あたりのバイト数を例えば20に、マイコン(マイクロコンピュータ)24が設定する。 Next, in step 204, data transfer is activated. To start data transfer, the microcomputer (microcomputer) 24 sets the number of bytes per transfer to 20, for example, in the byte count register (BYTE COUNT) 22-2.
またインタラプト リーズン(INTERRUPT REASON)レジスタ22−3に、ATA/ATAPIコマンドの内容によって決められたデータ転送方向を、マイコン(マイクロコンピュータ)24が設定する。
The
さらにステイタス(STATUS)レジスタ22−4のビジーをクリアしてデータリクエスト(DRQ)を、マイコン(マイクロコンピュータ)24がセットする。 Further, the microcomputer (microcomputer) 24 sets the data request (DRQ) by clearing the busy of the status (STATUS) register 22-4.
このことで、DSP22内のATA/ATAPIの各レジスタの設定が完了し、データ転送の準備が完了したことを、マイコン(マイクロコンピュータ)24がDSP22とATA/ATAPI I/F21を介してホストコンピュータ1に通知する。
As a result, the setting of each ATA / ATAPI register in the
次にステップ205で、ホストコンピュータ1からのストローブ信号をATA/ATAPI I/F21を介してDSP22が受信する。
In
次にステップ206で、受信したストローブ信号が異常ストローブ信号であるかどうかを、マイコン(マイクロコンピュータ)24がメモリ23に保存しているATA/ATAPIコマンドの内容と比較して判断する。
Next, in
例えばATA/ATAPIコマンドがドライブ装置→ホストコンピュータの転送方向を示すIOR-信号であった場合、受信したストローブ信号がIOR-信号であるときは正常ストローブ信号と判断し、受信したストローブ信号がIOW-信号であるときは異常ストローブ信号と判断する。 For example, if the ATA / ATAPI command is an IOR- signal indicating the transfer direction from the drive device to the host computer, if the received strobe signal is an IOR- signal, it is determined as a normal strobe signal, and the received strobe signal is IOW- If it is a signal, it is determined as an abnormal strobe signal.
異常ストローブ信号と判断したとき、次のステップ207で、異常ストローブカウンタ22−1の初期設定値を1減算する処理、例えば初期設定値10を1減算する処理を、マイコン(マイクロコンピュータ)24が行う。
When it is determined that the signal is an abnormal strobe signal, in the
次にステップ208で、異常ストローブカウンタ22−1の減算した値が0であるかを、マイコン(マイクロコンピュータ)24が判断する。
Next, at
減算した値が0でないと判断したときはステップ205に戻り、減算した値が0であると判断したときは、ステップ209で、ステップ201でのATA/ATAPIコマンドの受信に対するエラー終了通知を、マイコン(マイクロコンピュータ)24がDSP22とATA/ATAPI I/F21を介してホストコンピュータ1に送信する。
When it is determined that the subtracted value is not 0, the process returns to
ステップ206で、受信したストローブ信号が正常ストローブ信号と判断したときは、ステップ210で、正常ストローブ信号に従いメモリ23に保存してあるデータ転送1回あたりの全バイト数例えば20バイトのうちの最初の2バイトを取り出すという、正常なストローブ信号によるデータ処理をしたデータのデータ転送を、マイコン(マイクロコンピュータ)24がDSP22とATA/ATAPI I/F21を介してホストコンピュータ1に行う。
If it is determined in
次にステップ211で、DSP22が転送したバイト数が転送1回あたりの全バイト数例えば20の数になり転送が終了したかを、マイコン(マイクロコンピュータ)24がバイト カウント(BYTE COUNT)レジスタ22−2の内容と比較して判断する。
Next, at
転送が終了していないと判断したときはステップ205に戻り、ステップ206で次に受信したストローブ信号が正常ストローブ信号と判断したときは、ステップ210で、次の2バイトを取り出すという、正常なストローブ信号によるデータ処理をしたデータのデータ転送を、ホストコンピュータ1に行う。
When it is determined that the transfer has not been completed, the process returns to
転送が終了したと判断したときは、ステップ212で、ATA/ATAPIコマンドで要求されたデータ転送の全バイト数例えば20バイトのデータ転送が終了したかを、マイコン(マイクロコンピュータ)24が判断する。
If it is determined that the transfer has been completed, in
ATA/ATAPIコマンドで要求されたデータ転送の全バイト数例えば20バイトのデータ転送が終了していないと判断したときはステップ203に戻り、残りのバイトのデータ転送を行う。 If it is determined that the total number of bytes of data transfer requested by the ATA / ATAPI command, for example, 20 bytes has not been completed, the process returns to step 203 to transfer the remaining bytes.
ATA/ATAPIコマンドで要求されたデータ転送の全バイト数例えば20バイトのデータ転送が終了したと判断したときは、ステップ213で、ステップ201でのATA/ATAPIコマンドの受信に対する正常終了通知を、マイコン(マイクロコンピュータ)24がDSP22とATA/ATAPI I/F21を介してホストコンピュータ1に送信する。
When it is determined that the data transfer of the total number of data transfer requested by the ATA / ATAPI command, for example, 20 bytes has been completed, in step 213, a normal end notification for the reception of the ATA / ATAPI command in step 201 is sent to the microcomputer. (Microcomputer) 24 transmits to the host computer 1 via the
なお、上記のステップ204で、バイト カウント(BYTE COUNT)レジスタ22−2に、データ転送1回あたりのバイト数を10に設定した場合は、ステップ211では、バイト カウント(BYTE COUNT)レジスタ22−2に設定してある転送1回あたりのバイト数が10の数になり1回のデータ転送が終了したかを判断し、転送が終了したと判断したときは、ステップ212で、ATA/ATAPIコマンドで要求されたデータ転送の全バイト数例えば20バイトのデータ転送が終了したかを判断する。
If the number of bytes per data transfer is set to 10 in the byte count (BYTE COUNT) register 22-2 in step 204, the byte count (BYTE COUNT) register 22-2 is set in
また、上記のステップ203において、異常ストローブカウンタ22−1の初期設定値を1に設定した場合は、ステップ206で始めて異常ストローブ信号と判断したとき、ステップ207で異常ストローブカウンタが0となるので、受信したストローブ信号が異常ストローブ信号のときはデータ転送をしないで、直ちに、ステップ209で、ステップ201でのATA/ATAPIコマンドの受信に対するエラー終了通知をホストコンピュータ1に送信する。
If the initial setting value of the abnormal strobe counter 22-1 is set to 1 in
1…ホストコンピュータ、2…ドライブ装置、3…通信線、11…マイコン(マイクロコンピュータ)、12…メモリ、13,21…ATA/ATAPI I/F、22…DSP(デジタル・シグナル・プロセッサ)、22−1…異常ストローブカウンタ、22−2…バイト カウント(BYTE COUNT)レジスタ、22−3…インタラプト リーズン(INTERRUPT REASON)レジスタ、22−4…ステイタス(STATUS)レジスタ、23…メモリ、24…マイコン(マイクロコンピュータ)。
DESCRIPTION OF SYMBOLS 1 ... Host computer, 2 ... Drive apparatus, 3 ... Communication line, 11 ... Microcomputer (microcomputer), 12 ... Memory, 13, 21 ... ATA / ATAPI I / F, 22 ... DSP (digital signal processor), 22 -1 ... Abnormal strobe counter, 22-2 ... Byte count register (BYTE COUNT), 22-3 ... Interrupt reason register, 22-4 ... STATUS register, 23 ... Memory, 24 ... Microcomputer (micro) Computer).
Claims (4)
4. The data transfer system according to claim 3, wherein when the strobe signal received from the host computer is the abnormal strobe signal, an error end notification for the ATA / ATAPI command is immediately transmitted to the host computer. Data transfer system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003412831A JP2005173956A (en) | 2003-12-11 | 2003-12-11 | Data transfer method and data transfer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003412831A JP2005173956A (en) | 2003-12-11 | 2003-12-11 | Data transfer method and data transfer system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005173956A true JP2005173956A (en) | 2005-06-30 |
Family
ID=34733124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003412831A Pending JP2005173956A (en) | 2003-12-11 | 2003-12-11 | Data transfer method and data transfer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005173956A (en) |
-
2003
- 2003-12-11 JP JP2003412831A patent/JP2005173956A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4391954B2 (en) | File control system and file control apparatus | |
US7069350B2 (en) | Data transfer control system, electronic instrument, and data transfer control method | |
US7620747B1 (en) | Software based native command queuing | |
JPS59188752A (en) | Bus for defective cycle operation type data processing system | |
JP2008090375A (en) | Interrupt control system and storage control system using the same | |
US11500707B2 (en) | Controller, memory controller, storage device, and method of operating the controller | |
JP5442634B2 (en) | Read status controller | |
JP5700514B2 (en) | Communication speed control device and communication speed control method | |
US20130173986A1 (en) | Memory controller, data storage device, and memory controlling method | |
KR20120019407A (en) | Methods and apparatus for improved serial advanced technology attachment performance | |
JP2006190257A (en) | Data transfer device and its method | |
US8918542B2 (en) | Facilitating transport mode data transfer between a channel subsystem and input/output devices | |
US9836370B2 (en) | Backup memory administration using an active memory device and a backup memory device | |
JP2005173956A (en) | Data transfer method and data transfer system | |
JP2012063971A (en) | I/o bridge device, response notification method and program | |
JP5930469B2 (en) | System and method for responding to error detection | |
JP4455393B2 (en) | Programmable logic controller | |
KR101109600B1 (en) | Method for transmitting data using direct memory access control and apparatus therefor | |
JP4649304B2 (en) | COMMUNICATION CONTROL DEVICE AND ITS CONTROL METHOD | |
KR20060009241A (en) | Method, apparatus and program storage device for providing status from a host bus adapter | |
US7330998B2 (en) | Data integrity verification | |
JP2009037479A (en) | Data transfer control device and electronic device | |
JP4499909B2 (en) | Multiplexed storage controller | |
KR970002400B1 (en) | Control scheme of interrupt go and done in a multiprocessor interrupt requester | |
TW407232B (en) | Data transferring/separating controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060221 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20060221 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080624 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080701 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090113 |