JPH0441375B2 - - Google Patents

Info

Publication number
JPH0441375B2
JPH0441375B2 JP23116883A JP23116883A JPH0441375B2 JP H0441375 B2 JPH0441375 B2 JP H0441375B2 JP 23116883 A JP23116883 A JP 23116883A JP 23116883 A JP23116883 A JP 23116883A JP H0441375 B2 JPH0441375 B2 JP H0441375B2
Authority
JP
Japan
Prior art keywords
data
written
value
block
check
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
Application number
JP23116883A
Other languages
Japanese (ja)
Other versions
JPS60122426A (en
Inventor
Kazuyuki Nakazato
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP23116883A priority Critical patent/JPS60122426A/en
Publication of JPS60122426A publication Critical patent/JPS60122426A/en
Publication of JPH0441375B2 publication Critical patent/JPH0441375B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (a) 発明の技術分野 この発明は、書込みデータチエツク方式に関
し、さらに詳細には記憶媒体に書き込まれた数値
データの書き込み良否を高精度で検出できるよう
にした新しいチエツク方式に関するものである。
[Detailed Description of the Invention] (a) Technical Field of the Invention The present invention relates to a written data check method, and more specifically, to a new check method that can detect with high accuracy whether or not numerical data written on a storage medium has been written successfully. It is related to the method.

(b) 従来技術と問題点 電算機を使用した商品在庫管理システムでは、
商品コードなどの1つのブロツクになつた数値デ
ータが頻繁に磁気デイスクなどの記憶媒体に対し
て書き込み/読出しを繰り返される。ところで、
記憶媒体に書き込んだ数値データは誤り制御が必
ず行われ、このデータチエツクには次のような方
法が知られている。すなわち、一つは記憶媒体に
書き込んだデータをその書込み直後に読み取り、
これをメモリに記憶してから当該被書込みデータ
と照合し、これが不一致の場合にデータ書込み不
良として出力する方法である。他の一つは記憶媒
体に書き込んだデータとそのチエツクコードをそ
れぞれ読出してから、そのデータを所定のチエツ
クコード算出法によりチエツク値を求め、これを
前記読出したチエツクコードと比較するようにし
た検出方法である。前者の方法によれば、記憶媒
体にデータが正常に書き込まれたか否かを判断で
き利点があるものの、その処理時間が長いという
欠点がある。また後者の方法では比較的短い時間
で処理できるが、データが全く書き込まれていな
い場合でも前回の書込みデータを読出してチエツ
クするためにあたかもこのときのデータ書込みが
正常に行われたように判断されるという欠点があ
つた。
(b) Conventional technology and problems In product inventory management systems using computers,
A block of numerical data such as a product code is frequently written to and read from a storage medium such as a magnetic disk. by the way,
Numerical data written to a storage medium must be subject to error control, and the following methods are known for checking this data. In other words, one is to read data written to a storage medium immediately after writing it,
This is a method in which this is stored in a memory and then compared with the written data, and if they do not match, it is output as a data write failure. The other type of detection is to read out the data written in the storage medium and its check code, calculate a check value from the data using a predetermined check code calculation method, and compare this with the read check code. It's a method. Although the former method has the advantage of being able to determine whether or not data has been correctly written to the storage medium, it has the disadvantage of requiring a long processing time. In addition, the latter method can process in a relatively short time, but even if no data has been written, the previously written data is read and checked, so it is judged as if the data writing at this time was performed normally. It had the disadvantage of being

(c) 発明の目的 この発明は、前記後者の書込みデータチエツク
方式を対象として、被書込みデータが記憶媒体に
正常に書き込まれたか否かのチエツクも行えるよ
うにした新しいチエツク方式の提供を目的とする
ものである。
(c) Purpose of the Invention The purpose of the present invention is to provide a new check method for the latter written data check method, which is also capable of checking whether or not written data has been correctly written to a storage medium. It is something to do.

(d) 発明の構成 簡単に述べるとこの発明は、記憶媒体のブロツ
クに対し複数桁の数値データをそれのチエツクコ
ードとともに書込むようにしたデータ処理装置に
おいて、前記ブロツクに版数表示領域を付設し、
この版数表示領域には新規な数値データの入力ご
とに加算される版数値が書き込まれるようにし、
かつ同ブロツクのチエツク領域にはこの版数値と
入力数値データの関連数値との合計値が書き込ま
れるようにし、この版数値表示領域に記憶された
数値とチエツク領域の記憶内容とによつて当該ブ
ロツクに書き込まれた数値データの良否を検出す
るようにしたことを特徴とするものである。
(d) Structure of the Invention Briefly stated, the present invention provides a data processing device that writes multi-digit numerical data together with its check code into a block of a storage medium, in which a version number display area is attached to the block. death,
In this version number display area, the version number that is added each time new numerical data is input is written.
In addition, the total value of this version value and the related value of the input numerical data is written in the check area of the same block, and the block is The device is characterized in that it detects the quality of numerical data written in it.

(e) 発明の実施例 以下、この発明の一実施例につき図面を参照し
て詳細に説明する。
(e) Embodiment of the invention Hereinafter, an embodiment of the invention will be described in detail with reference to the drawings.

第1図はこの実施例による記憶媒体の単位ブロ
ツク構成を示し、このブロツクは入力された商品
コードなどの数値データを記憶する領域A1と、
書込みの版数を記憶する領域A2と、チエツクコ
ードを記憶する領域A3とからなる。前記版数表
示領域A2に記憶される版数データは、当該ブロ
ツクのデータ領域A1に対し新しく数値データが
書き込まれる度に整数「1」を加算されていく数
値データであり、データ領域A1上に書き込まれ
た入力数値データと共にチエツクコードの対象と
なる。すなわち、前記チエツク領域A3に記憶さ
れるチエツクコードは、入力数値データの数値と
版数データの数値との合計値に関連した数値で形
成される。例えば、入力数値データが「1234」の
4桁の数値であり、版数データが「5」の数値で
あつた場合、チエツクコードはこれらの加算内容
(1+2+3+4+5=15)における下位桁の数
値「5」が用いられる。
FIG. 1 shows a unit block configuration of a storage medium according to this embodiment, and this block includes an area A1 for storing numerical data such as an input product code;
It consists of an area A2 for storing the writing version number and an area A3 for storing the check code. The version number data stored in the version number display area A2 is numerical data that is incremented by an integer "1" each time new numerical data is written to the data area A1 of the block. It is subject to a check code along with the written input numerical data. That is, the check code stored in the check area A3 is formed of a numerical value related to the total value of the numerical value of the input numerical data and the numerical value of the version number data. For example, if the input numerical data is a 4-digit number "1234" and the version data is a number "5", the check code will be the lower digit number "5" in these addition contents (1+2+3+4+5=15). ” is used.

さて次に、このようにして書き込まれる入力数
値データの誤りチエツク動作例を第2図のフロー
チヤートに従つて説明する。
Next, an example of the error checking operation of the input numerical data written in this manner will be explained according to the flowchart of FIG.

まず入力された数値データの書込みが要求され
ると、その入力データがレジスタなどに一時記憶
されるとともに、書き込むべく選択したブロツク
内の版数が読み出されてそれに数値「1」が加算
される。この加算された版数データはレジスタな
どに一時記憶される。次にこの入力データと版数
データとから前述した要領でチエツクコードが作
成され、このチエツクコードは当該入力数値デー
タおよび版数データとともに前記選択ブロツクに
書き込まれる。次にこの書き込み内容をすべて読
出してから、まずその読出し版数データの数値と
前記一時記憶の版数データの数値と比較する。比
較結果が一致であれば、このときの入力データの
書込みが正常であつたとして次の処理に移行する
が、不一致の場合は書込みエラーとして異常報知
信号を出力させる。この書込みエラー処理は、前
述した従来のチエツク方式ではなかつたものであ
る。仮にこの書込みエラーがなかつた場合を考え
ると、読み出された前記入力データの数値と版数
データの数値とによりチエツクコードを計算し、
計算されたこのチエツクコードと読み出されたチ
エツクコードとの数値比較を行う。比較結果が一
致の場合はこのとき書き込まれた入力データが正
しいものとし、不一致の場合は書込みエラーとし
て異常報知信号を出力させる。この書込みエラー
処理は従来方法と基本的には変わらず、この例と
しては或る桁の数値が違つた数値としてデータ領
域A1に書き込まれた場合とか、同領域上にデー
タが書き込まれなかつた場合である。
First, when writing of input numerical data is requested, the input data is temporarily stored in a register, etc., and the version number in the block selected for writing is read out and the numerical value "1" is added to it. . This added version number data is temporarily stored in a register or the like. Next, a check code is created from this input data and version number data in the manner described above, and this check code is written into the selection block along with the input numerical data and version number data. Next, after reading out all of the written contents, first, the numerical value of the read version number data is compared with the numerical value of the version number data in the temporary storage. If the comparison results match, it is assumed that the writing of the input data at this time was normal and the process moves on to the next process, but if they do not match, an abnormality notification signal is output as a writing error. This write error handling is different from the conventional check method described above. Assuming that this writing error does not occur, a check code is calculated based on the read input data value and the version number data value,
A numerical comparison is made between the calculated check code and the read check code. If the comparison result is a match, it is determined that the input data written at this time is correct, and if they are not a match, an abnormality notification signal is output as a write error. This write error handling is basically the same as the conventional method, and examples include cases where a certain digit value is written to data area A1 as a different value, or when no data is written to the same area. It is.

なお、版数データによる書込み良否判定処理と
チエツクコードによる書込み良否判定処理とは、
上記のようにシリーズで行う他にパラレルで同時
に行つても良く、この並行処理によれば判定時間
を短縮できる利点がある。また、記憶媒体に書き
込む数値データの取り扱いに関し、数値「0」を
「10」と認識させてチエツクコードを作成すると、
この「0」データの読み取りミスをした場合でも
従来方法では書込みエラーとして検出できなかつ
たことが可能となる。
Note that writing quality determination processing based on version number data and writing quality determination processing based on check code are as follows.
In addition to performing in series as described above, it may also be performed simultaneously in parallel, and this parallel processing has the advantage of shortening the determination time. Also, regarding the handling of numerical data written to storage media, if you create a check code that recognizes the numerical value "0" as "10",
Even if a mistake is made in reading this "0" data, it is possible to prevent it from being detected as a write error using the conventional method.

(f) 発明の効果 以上の説明から明らかなように、この発明によ
れば、記憶媒体に対する数値データの書込み処理
に際し、そのデータが全く書き込まれなかつた場
合や任意桁の書込み抜け、書込みミスの場合の書
込みエラーを検出できるので、高信頼性のデータ
処理が可能となる。
(f) Effects of the Invention As is clear from the above description, according to the present invention, when writing numerical data to a storage medium, it is possible to prevent the data from being written at all, missing any digits, or writing errors. Since write errors can be detected in case of a write error, highly reliable data processing becomes possible.

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

第1図はこの発明を適用した記憶媒体における
単位ブロツクの1例構成を示す図、第2図はこの
発明の一実施例を説明するためのフローチヤート
である。 A1:データ領域、A2:版数表示領域、A
3:チエツク領域。
FIG. 1 is a diagram showing an example of the structure of a unit block in a storage medium to which the present invention is applied, and FIG. 2 is a flowchart for explaining one embodiment of the present invention. A1: Data area, A2: Version number display area, A
3: Check area.

Claims (1)

【特許請求の範囲】[Claims] 1 記憶媒体のブロツクに対し複数桁の数値デー
タをそれのチエツクコードとともに書込むように
したデータ処理装置において、前記ブロツクに版
数表示領域を付設し、この版数表示領域には新規
な数値データの入力ごとに加算される版数値が書
き込まれるようにし、かつ同ブロツクのチエツク
領域にはこの版数値と入力数値データの関連数値
との合計値が書き込まれるようにし、この版数表
示領域に記憶された数値とチエツク領域の記憶内
容とによつて当該ブロツクに書き込まれた数値デ
ータの良否を検出するようにしたことを特徴とす
る書込みデータチエツク方式。
1. In a data processing device that writes multi-digit numerical data together with its check code to a block of a storage medium, a version number display area is attached to the block, and new numerical data is written in this version number display area. The edition value that is added each time the block is input is written, and the total value of this edition value and the related value of the input numerical data is written in the check area of the same block, and the total value is stored in this edition number display area. 1. A written data check method, characterized in that the quality of the numerical data written in the block is detected based on the written numerical value and the storage contents of the check area.
JP23116883A 1983-12-06 1983-12-06 Write data check system Granted JPS60122426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23116883A JPS60122426A (en) 1983-12-06 1983-12-06 Write data check system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23116883A JPS60122426A (en) 1983-12-06 1983-12-06 Write data check system

Publications (2)

Publication Number Publication Date
JPS60122426A JPS60122426A (en) 1985-06-29
JPH0441375B2 true JPH0441375B2 (en) 1992-07-08

Family

ID=16919375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23116883A Granted JPS60122426A (en) 1983-12-06 1983-12-06 Write data check system

Country Status (1)

Country Link
JP (1) JPS60122426A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2725275B2 (en) * 1988-03-29 1998-03-11 日本電気株式会社 General-purpose mobile communication / positioning device
EP0936617A1 (en) 1998-02-12 1999-08-18 Hewlett-Packard Company Write pass identifier
US6288862B1 (en) 1999-07-30 2001-09-11 Storage Technology Corporation Method and mechanism to distinguish valid from outdated recording blocks in a tape drive
US7380198B2 (en) 2003-06-11 2008-05-27 International Business Machines Corporation System and method for detecting write errors in a storage device

Also Published As

Publication number Publication date
JPS60122426A (en) 1985-06-29

Similar Documents

Publication Publication Date Title
US4531213A (en) Memory through checking system with comparison of data word parity before and after ECC processing
US4688221A (en) Error recovery method and apparatus
US7103811B2 (en) Mechanisms for detecting silent errors in streaming media devices
US5467361A (en) Method and system for separate data and media maintenance within direct access storage devices
US5729679A (en) Powerfail durable NVRAM testing
US4527273A (en) Magnetic disc device
JPH0441375B2 (en)
JPS60113361A (en) Discrimination system of magnetic disk format
JP3196112B2 (en) Method of duplicating card type storage medium
JP3154853B2 (en) Illegal memory access detection method
JPS6051142B2 (en) Logging error control method
JP3222592B2 (en) Data verification device
JPH04123242A (en) Write error identification system
JPS61211786A (en) Ic card
EP0371274A2 (en) Handling of errors in a storage key
JPH01181141A (en) Memory error detecting system
JPS61246854A (en) Error processing system
JPH02143343A (en) Robustizing processing system for storing ordinal file
US7426686B2 (en) System and method for verifying data integrity
JPS62293582A (en) Memory device
JPS6180564A (en) Alternate track write control circuit
JPS6330650B2 (en)
JPH06259335A (en) External storage device
JPS5816556B2 (en) Error detection method
JPS60117354A (en) Discriminating method for priority of read data on memory