JPH01304524A - Magnetic tape controller - Google Patents

Magnetic tape controller

Info

Publication number
JPH01304524A
JPH01304524A JP63132704A JP13270488A JPH01304524A JP H01304524 A JPH01304524 A JP H01304524A JP 63132704 A JP63132704 A JP 63132704A JP 13270488 A JP13270488 A JP 13270488A JP H01304524 A JPH01304524 A JP H01304524A
Authority
JP
Japan
Prior art keywords
data
magnetic tape
transferred
host device
bytes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63132704A
Other languages
Japanese (ja)
Inventor
Mikio Komatsu
小松 幹夫
Katsuji Tsunose
角瀬 勝治
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63132704A priority Critical patent/JPH01304524A/en
Publication of JPH01304524A publication Critical patent/JPH01304524A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the reliability of a magnetic tape controller by checking whether or not the check byte number is normally left within the tape controller after data are transferred to a host device. CONSTITUTION:A magnetic tape controller 13 controls the transmission and reception of data between a host device 11 and a magnetic tape device 14 and consists of a host device connecting part 15, a data compressing part 12, a data buffer 16, a writing part 17, a reading part 18, a device connecting part 19, and a microprocessor 20. The write data is transferred to the controller 13 from the device 11 and compressed by the part 12 via the part 15. This compressed data is written into the buffer 16. When this writing job 17 is through, the compressed data is sent to the device 14 through the part 19 and then restored by the part 12 and sent to the device 11 in a data reading state. Then it is checked whether the added check bytes remain in the prescribed number or not for decision whether the data byte number to be transferred is correct or not.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は磁気テープ制御装置に係り、特に上位装置に転
送するデータ量のエラー検出を′O1能とした磁気テー
プ制御装!に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic tape control device, and more particularly to a magnetic tape control device that is capable of detecting errors in the amount of data transferred to a host device! Regarding.

〔従来の技術〕[Conventional technology]

磁気テープ装置などの外部記憶装置と上位装置と0間の
データ転送に関しては、扱うデータ量の増大に伴い、記
憶容量の効率化、転送時間の短縮を狙いとして各種の工
夫が提案されている。例えば、特公昭61−24686
5号では、特定f′IIt報群の中で転送すべき有意な
データを選択するデータ選択手段と、このデータ選択手
段に選択指示信号を与えるとともに選択された有意なデ
ータの形式を表わすコード化されたデータ形式情報を作
成する制御回路手段と、有意なデータとデータ形式情報
を切替えて送出する手段とを備えることにより、無効な
データの転送動作を止めて有意なデータのみ転送するよ
うにしたものが知られている。すなわち、データをコー
ド化等によりデータ圧縮を行ない、データの転送効率を
向上させるものであるが、上位装置に転送するデータ量
のエラー検出には、例えば転送すべきバイト数と実際に
転送したバイト数を比較しエラーの検出を行なっていた
With regard to data transfer between an external storage device such as a magnetic tape device and a host device, as the amount of data to be handled increases, various methods have been proposed with the aim of increasing the efficiency of storage capacity and shortening transfer time. For example, Tokuko Sho 61-24686
No. 5 includes a data selection means for selecting significant data to be transferred from a specific f'IIt information group, a selection instruction signal to the data selection means, and encoding representing the format of the selected significant data. By comprising a control circuit means for creating data format information and a means for switching and transmitting meaningful data and data format information, the transfer operation of invalid data is stopped and only meaningful data is transferred. something is known. In other words, data is compressed by encoding data to improve data transfer efficiency, but in order to detect errors in the amount of data transferred to a host device, for example, it is necessary to check the number of bytes to be transferred and the bytes actually transferred. Errors were detected by comparing numbers.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記した従来技術においては、データ転送経路にデータ
圧縮等の機能が付加された場合、上位装置に転送すべき
データバイト数と実際に転送したバイト数の比較はでき
ない。しかも、データ圧縮機能等が付加された場合、転
送バイト数のエラー検出について配慮されていない定め
、自装置のハード故障を検出することができないといつ
課題があった。
In the above-mentioned conventional technology, when a function such as data compression is added to the data transfer path, it is not possible to compare the number of data bytes to be transferred to the host device and the number of bytes actually transferred. Moreover, when a data compression function or the like is added, there is a problem in that the provision does not take into account error detection in the number of transferred bytes, and it is not possible to detect hardware failures in the own device.

本発明の目的は、自装置のハード故障を自装置で検出可
能とした磁気テープ制@J装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a magnetic tape @J device that is capable of detecting hardware failures in its own device.

〔課題を解決するための手段〕[Means to solve the problem]

上記した目的は、上位装置と磁気テープ装置間のデータ
送受を制御する磁気テープ制御装置において、上位装置
にデータ転送終了後、チェックバイト数が磁気テープ?
ff1l ml装置内に正常に残っているかを検出する
回路を設けることにより達成される。
The above purpose is to check the number of bytes on the magnetic tape after data transfer to the host device is completed in a magnetic tape control device that controls data transmission and reception between the host device and the magnetic tape device.
This is achieved by providing a circuit that detects whether the ff1l ml remains normally in the device.

〔作用〕[Effect]

本発明に係る磁気テープ制御装置においては、データ圧
縮機能を備え、上位装置に転送すべきデータバイト数が
正しいか否かを判断するために、復元データの後に付加
されているチェックバイトが所定バイト数だけ残ってい
るかを検出することKより転送したデータバイト数の正
常性を保証する。これKより、上位装置でのI L (
IncorrectLength )エラー、すなわち
要求したデータバイト数に対し、転送されたバイト数が
多いデータが防止でき、また自装置のハード故障は自装
置で検出可能となる。
The magnetic tape control device according to the present invention has a data compression function, and in order to determine whether the number of data bytes to be transferred to the host device is correct, a check byte added after the restored data is a predetermined number of bytes. The normality of the number of data bytes transferred from K is guaranteed by detecting whether the number of data bytes remains. From this K, I L (
IncorrectLength) errors, that is, data where the number of transferred bytes is greater than the number of requested data bytes, can be prevented, and hardware failures in the own device can be detected by the own device.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図により説明する。第1
図において、旦は磁気テープ制御装置であって、上位装
置11と磁気テープ装置14との間のデータ送受を制御
する。この磁気テープ制御装置−最−は大別すると、上
位装置t11とのインターフェースにあたる上位装置接
続部15、データの圧縮・復元を行なうデータ圧縮部旦
、データバッファ16、磁気テープ装置14へのデータ
書込みを?!li′lI御する書込み部17、磁気テー
プ装置14からのデータ読取りを制御する読取り部18
、磁気テープ装置14とのインターフェースをなすデバ
イス接続部19、及び磁気テープ制御装置15の各部を
制御するマイクロプロセッサ20から成っている。
An embodiment of the present invention will be described below with reference to FIG. 1st
In the figure, a magnetic tape control device is shown, which controls data transmission and reception between a host device 11 and a magnetic tape device 14 . This magnetic tape control device can be roughly divided into a host device connection section 15 which is an interface with the host device t11, a data compression section which compresses and restores data, a data buffer 16, and a data writing section to the magnetic tape device 14. of? ! a writing section 17 that controls the li'lI; a reading section 18 that controls data reading from the magnetic tape device 14;
, a device connection section 19 that interfaces with the magnetic tape device 14, and a microprocessor 20 that controls each section of the magnetic tape control device 15.

書込みデータは上位装置11から磁気テープ制御装置1
3に転送され、上位装置接続部15を介してデータ圧縮
部■でデータは圧縮された後、データバッファ16に書
込まれる。その後、書込みN517、デバイス接続部1
9全通して磁気テープ装[14に送られる。一方、磁気
テープ装置14からデータを読出す場合は、デバイス接
続部19、読取り部18を通してデータバッファ16に
読出しデータが入る。このデータはデータ圧縮部猛で復
元され、上位装置接続部15を介して上位装置11に転
送される。このとき、データバッファ16からデータ圧
縮部■のデータ復元部122に送られるデータのフォー
マットは、第2図の(A)として示され、一方、データ
復元部122から上位装置接続部15に送られるデータ
のフォーマントは第2図の(B)として示される。第2
図から明らかなように、データ復元の前後ではデー タ
バイト数の一致比較はできない。復元後のデータフォー
マットは復元データとチェックバイトから構成されてお
り、上位装置11に転送するのは復元データのみでチェ
ックバイトは転送しない。
Write data is sent from the host device 11 to the magnetic tape control device 1
3, the data is compressed by the data compression unit 3 via the host device connection unit 15, and then written to the data buffer 16. After that, write N517, device connection part 1
9 are all passed through and sent to the magnetic tape unit [14]. On the other hand, when reading data from the magnetic tape device 14, the read data enters the data buffer 16 through the device connection section 19 and the reading section 18. This data is restored by the data compression section and transferred to the host device 11 via the host device connection section 15. At this time, the format of the data sent from the data buffer 16 to the data decompression unit 122 of the data compression unit (3) is shown as (A) in FIG. The formant of the data is shown as (B) in FIG. Second
As is clear from the figure, it is not possible to compare the number of data bytes before and after data restoration. The data format after restoration is composed of restoration data and check bytes, and only the restoration data is transferred to the host device 11, and the check bytes are not transferred.

本実施例ではチェックバイトは2バイトとしている。し
たがって、転送バイト数が正しいか否かは上位装置11
にデータ転送終了後、チェックバイトが2バイトである
ことを検出し、転送バイトaの正常性を確認する。チェ
ックバイトが2バイト以外の場合は転送バイト数エラー
として報告する。
In this embodiment, the check byte is 2 bytes. Therefore, the host device 11 determines whether the number of transferred bytes is correct or not.
After data transfer is completed, it is detected that the check byte is 2 bytes, and the normality of transferred byte a is confirmed. If the check byte is other than 2 bytes, it is reported as a transfer byte count error.

次にチェックバイトが2バイトであることを検出する回
路の一例を第3図に示す。本実施例では、この検出回路
は磁気テープ制御装置u内の上位装置接続部15に設け
ている。第5図において、1と2はカウンターS1カウ
ンターTであり、5はコンパレータ、4はNkNDゲー
トそして5は組合せ回路である。また、5TROB−P
信号は復元データ及びチェックバイトに同期して出力す
る信号であり、TRANSPULS−P信号は上位装置
接続部15から上位装置11に転送するデータに同期し
て出力す−る信号である。順方向読出しく FORWA
RD−P )時は、組合せ回路5によりカクンターT2
に初期値12″を設定する。データ転送終了後、カクン
ターS1とカクンターT2のカウント値をコンパレータ
3で比較し、一致していない場合はエラーとして報告す
る。復元後のデータフォーマットを第4図に示す。第4
図では順方向読出しくFORWARD−P)を−例に記
載しているが、逆方向読出しくBACKWARD−P)
又は2バイト同時転送モード(6MBYTE−P)時等
でチェックバイト数が異なる場合は、組合せ回路5によ
り初期設定のカウント値を変える。
Next, FIG. 3 shows an example of a circuit for detecting that the check byte is 2 bytes. In this embodiment, this detection circuit is provided in the host device connection section 15 within the magnetic tape control device u. In FIG. 5, 1 and 2 are counters S1 and T, 5 is a comparator, 4 is an NkND gate, and 5 is a combinational circuit. Also, 5TROB-P
The signal is a signal that is output in synchronization with the restored data and the check byte, and the TRANSPULS-P signal is a signal that is output in synchronization with the data transferred from the higher-level device connection section 15 to the higher-level device 11. Forward read FORWA
RD-P), the combinational circuit 5 causes Kakunter T2.
After the data transfer is completed, the count values of Kakuntar S1 and Kakunta T2 are compared by comparator 3, and if they do not match, it is reported as an error.The data format after restoration is shown in Figure 4. Show.4th
In the figure, forward reading (FORWARD-P) is shown as an example, but backward reading (BACKWARD-P) is shown as an example.
Alternatively, if the number of check bytes differs in the 2-byte simultaneous transfer mode (6MBYTE-P), etc., the combinational circuit 5 changes the initial setting count value.

以上説明したように、本実施例によれば、上位装置への
転送バイト数の確認が可能となる。
As explained above, according to this embodiment, it is possible to check the number of bytes transferred to the host device.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、データ量の増大に対処するためコード
化等のデータ圧縮機能を磁気テープ制御装置にもたせて
も、上位装置へのデータ転送バイト数が正常か否かの検
出が可能となる。さらに、データ転送バイト数の異常の
原因であるハードの故障検出は、上位装置に依存するこ
とな(磁気テープ制御装置内で検出できるので、装置の
信頼性向上を図ることができる。
According to the present invention, even if the magnetic tape control device is provided with a data compression function such as encoding to cope with an increase in the amount of data, it is possible to detect whether the number of bytes of data transferred to the host device is normal or not. . Furthermore, detection of a hardware failure that is the cause of an abnormality in the number of data transfer bytes does not depend on the host device (it can be detected within the magnetic tape control device), thereby improving the reliability of the device.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係る磁気テープ制御装置の概略構成を
示すブロック図、第2図は磁気テープ制御装置内の転送
データフォーマットの一例を示す説明図、第3図は磁気
テープ制御装置に設ける検出回路の一実施例を示す回路
図、第4図は第3図に示す回路の動作を説明するタイム
チャートである。 1−#yクンター8.2・・・カクンターT、3・・・
コンパレータ、4・・・NANDゲート、5・・・組合
せ回路、11・・・上位装置、12・・・データ圧縮部
、15・・・磁気テープ制御装置、14・・・磁気テー
プ装置、15・・・上位装置接続部、16・・・データ
バッファ、17・・・督込み部、18・・・読取り部、
19・・・デバイス接続部、20・・・マイクロプロセ
ッサ、21・・・チェックバイト。
FIG. 1 is a block diagram showing a schematic configuration of a magnetic tape control device according to the present invention, FIG. 2 is an explanatory diagram showing an example of a transfer data format in the magnetic tape control device, and FIG. 3 is a block diagram showing an example of a transfer data format in the magnetic tape control device. A circuit diagram showing one embodiment of the detection circuit, and FIG. 4 is a time chart explaining the operation of the circuit shown in FIG. 3. 1-#y Kunta 8.2...Kakunta T, 3...
Comparator, 4... NAND gate, 5... Combination circuit, 11... Host device, 12... Data compression unit, 15... Magnetic tape control device, 14... Magnetic tape device, 15... ... Upper device connection section, 16... Data buffer, 17... Loading section, 18... Reading section,
19...Device connection section, 20...Microprocessor, 21...Check byte.

Claims (1)

【特許請求の範囲】 1、コード化等のデータ圧縮手段を備え、上位装置と磁
気テープ装置間のデータ送受を制御する磁気テープ制御
装置において、前記上位装置からのデータ転送要求にし
たがって前記磁気テープ装置から前記上位装置にデータ
転送後、これら転送したデータ量が所定のものであった
か否かを検出するための検出手段を備えたことを特徴と
する磁気テープ制御装置。 2、検出手段は、データ転送終了後のチェックバイト数
を確認する回路から成ることを特徴とする請求項1記載
の磁気テープ制御装置。
[Scope of Claims] 1. In a magnetic tape control device that includes data compression means such as encoding and controls data transmission and reception between a host device and a magnetic tape device, the magnetic tape A magnetic tape control device comprising: a detection means for detecting whether or not the amount of transferred data is a predetermined amount after data is transferred from the device to the host device. 2. The magnetic tape control device according to claim 1, wherein the detecting means comprises a circuit for checking the number of check bytes after data transfer is completed.
JP63132704A 1988-06-01 1988-06-01 Magnetic tape controller Pending JPH01304524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63132704A JPH01304524A (en) 1988-06-01 1988-06-01 Magnetic tape controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63132704A JPH01304524A (en) 1988-06-01 1988-06-01 Magnetic tape controller

Publications (1)

Publication Number Publication Date
JPH01304524A true JPH01304524A (en) 1989-12-08

Family

ID=15087609

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63132704A Pending JPH01304524A (en) 1988-06-01 1988-06-01 Magnetic tape controller

Country Status (1)

Country Link
JP (1) JPH01304524A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114637A (en) * 1995-10-13 1997-05-02 Nec Software Ltd Data compression/restoration device and data compression/restoration method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114637A (en) * 1995-10-13 1997-05-02 Nec Software Ltd Data compression/restoration device and data compression/restoration method

Similar Documents

Publication Publication Date Title
EP0715735B1 (en) Ata interface architecture employing state machines
US5109505A (en) Semiconductor memory disk apparatus with backup device capable of being accessed immediately after power source is recovered
US5968149A (en) Tandem operation of input/output data compression modules
JPH0461374B2 (en)
JPH01304524A (en) Magnetic tape controller
JPH10171608A (en) Magnetic disk array device and method for checking data in magnetic disk array device
JPH02299043A (en) Overwritten data check device
JPH02245954A (en) Semiconductor storage device
JPS61123921A (en) Data compression control system
JP2596071B2 (en) Transmission method of stored data in terminal device
JPS58223860A (en) Magnetic disk controller
JPH0431129B2 (en)
JPS60144833A (en) Data storage processor
JPH0146890B2 (en)
JPS5916067A (en) Data checking system
JPH01116747A (en) Cache lsi
JPS62287472A (en) Magnetic tape controlling device
JPH03288269A (en) Medical image data transfer device
JPS59177647A (en) Status confirming control system
JPS6095664A (en) Data storage control device
JPH02297619A (en) Disk controller with parallel transfer
JPH01116724A (en) Disk controller
JPS6324416A (en) Data storage control equipment
JPH0214342A (en) Error reporting system
JPH0731639B2 (en) Magnetic disk controller