JPH03154934A - Method for detecting file transfer error - Google Patents

Method for detecting file transfer error

Info

Publication number
JPH03154934A
JPH03154934A JP1293961A JP29396189A JPH03154934A JP H03154934 A JPH03154934 A JP H03154934A JP 1293961 A JP1293961 A JP 1293961A JP 29396189 A JP29396189 A JP 29396189A JP H03154934 A JPH03154934 A JP H03154934A
Authority
JP
Japan
Prior art keywords
file
size
transfer
files
transferred
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
JP1293961A
Other languages
Japanese (ja)
Inventor
Hirokazu Asaga
弘和 浅賀
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP1293961A priority Critical patent/JPH03154934A/en
Publication of JPH03154934A publication Critical patent/JPH03154934A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To detect a file transfer error when a file is transferred in plural times by deciding the transfer error when no coincidence is obtained between the sizes of files stored in a storage medium set at the reception side of files and the total size shown at a size file. CONSTITUTION:A computer 10 produces a size file and transfers the file together with the files A - C in the case of transferring these files. Based on this transfer, the total size of the files A - C stored in a magnetic disk 21 and the size file itself is compared with the total size shown at the size file. If no coincidence is obtained between both sizes, a transfer error is decided. Thus, it is possible to detect a transfer error generated when a file is transferred in plural times.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ファイルを複数回転送した際の転送エラーを
検出するファイル転送エラー検出方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a file transfer error detection method for detecting transfer errors when a file is transferred multiple times.

(従来の技術) 記憶媒体、例えば磁気ディスクに記憶されている各ファ
イルを別の磁気ディスクに転送する場合がある。第5図
は例えば電子キャッシュレジスタなどの商品ファイルを
1つ作成し、このファイルを複数回転送して作成したフ
ァイルをスーパーマーケット等に設置されている各電子
キャッシュレジスタに送る場合を模式的に示している。
(Prior Art) Each file stored on a storage medium, for example a magnetic disk, may be transferred to another magnetic disk. Figure 5 schematically shows a case where one product file, such as an electronic cash register, is created, and this file is transferred multiple times to send the created file to each electronic cash register installed in a supermarket, etc. There is.

この場合、ファイルは、磁気ディスク1から磁気ディス
ク2に転送され、さらにこの磁気ディスク2から磁気デ
ィスクnに複数回転送される。
In this case, the file is transferred from the magnetic disk 1 to the magnetic disk 2, and then transferred from the magnetic disk 2 to the magnetic disk n multiple times.

(発明が解決しようとする課題) ところで、このようなファイルの転送では1回の転送で
あれば、転送されたファイルにエラーが生じていないか
を容品に検出できるが、第5図に示すように複数回それ
ぞれ別の磁気ディスク1〜nに繰り返し転送が行われる
と、磁気ディスクnに記憶されたファイルの内容にエラ
ーが生じていないかを正確に検出することは困難となっ
ている。
(Problem to be Solved by the Invention) By the way, in this type of file transfer, if there is only one transfer, it is possible to detect whether there is an error in the transferred file on the package, but as shown in FIG. When data is repeatedly transferred to different magnetic disks 1 to n a plurality of times, it is difficult to accurately detect whether an error has occurred in the contents of the file stored on magnetic disk n.

従って、転送されたファイルにデータ化けが発生しても
検出できず、複数回転送することのfハ頼性が低い。
Therefore, even if data garbled occurs in the transferred file, it cannot be detected, and the reliability of transferring the file multiple times is low.

そこで本発明は、複数回ファイルが転送された際の転送
エラーを検出できるファイル転送エラー検出方法を提供
することを1的とする。
Therefore, one object of the present invention is to provide a file transfer error detection method that can detect transfer errors when a file is transferred multiple times.

(課題を解決するための手段と作用) 本発明は、転送する全ファイルの合計サイズを示すサイ
ズ用ファイルを作成し、ファイル転送の際に転送すべき
ファイルとともにサイズ用ファイルを転送し、この転送
された側の記憶媒体に記憶されたファイルのサイズとサ
イズ用ファイルに示されている合計サイズとを比較し、
同一サイズでなければ転送エラーとして検出して上記目
的を達成しようとするファイル転送エラー検出方法であ
る。
(Means and effects for solving the problem) The present invention creates a size file indicating the total size of all files to be transferred, and transfers the size file together with the files to be transferred at the time of file transfer. Compare the size of the file stored on the storage medium on which the data was sent and the total size indicated in the size file,
This is a file transfer error detection method that attempts to achieve the above objective by detecting a transfer error if the sizes are not the same.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明のファイル転送エラー検出方法を適用し
たファイル転送装置の構成図である。コンピュータ10
には各磁気ディスク20.21が接続され、磁気ディス
ク20に記憶されている各ファイルが他方の磁気ディス
ク21に転送されるようになっている。ここで、磁気デ
ィスク20には第2図に示すような各ファイルA、B、
Cが記憶されるとともに、サイズ用ファイルが記憶され
ている。このサイズ用ファイルには各ファイルA。
FIG. 1 is a block diagram of a file transfer device to which the file transfer error detection method of the present invention is applied. computer 10
Each magnetic disk 20, 21 is connected to the magnetic disk 20, and each file stored on the magnetic disk 20 is transferred to the other magnetic disk 21. Here, on the magnetic disk 20, each file A, B, etc. as shown in FIG.
C is stored, and a size file is also stored. Each file A for this size file.

B、C及びサイズ用ファイル自身の各サイズの合計サイ
ズが記憶されている。
The total size of B, C, and the size file itself is stored.

コンピュータ10は、サイズ用ファイルを作成し、各フ
ァイルA、B、Cの転送の際に転送すべき各ファイルA
、B、Cとともにサイズ用ファイルを転送し、この転送
により磁気ディスク21に記憶された各ファイルA、B
、C及びサイズ用ファイル自身の合計サイズとサイズ用
ファイルに示されている合計サイズとを比較し、同一サ
イズでなければ転送エラーとして検出する機能を有する
ものである。具体的にはCPU (中央処理装置)11
が備えられ、このCPUI 1にバス12を介してRA
M (ランダム・アクセスやメモリ)13、ROM (
リード・オンリ・メモリ)14及びl10(インプット
/アウトプット)ポート15が接続されている。ROM
14には第3図に示す転送検出流れ図に従ったプログラ
ムが記憶されている。I10ポート15には表示装置1
6が接続されている。
The computer 10 creates a size file and stores each file A to be transferred when each file A, B, and C is transferred.
, B, and C, and each file A, B stored on the magnetic disk 21 by this transfer.
, C and the size file itself and the total size indicated in the size file, and if they are not the same size, it is detected as a transfer error. Specifically, CPU (Central Processing Unit) 11
is provided, and the RA is connected to this CPU 1 via the bus 12.
M (random access or memory) 13, ROM (
read-only memory) 14 and l10 (input/output) port 15 are connected. ROM
14 stores a program according to the transfer detection flowchart shown in FIG. I10 port 15 has display device 1
6 is connected.

次に上記の如く構成された転送装置における転送エラー
検出の作用について第3図に示す転送検出流れ図に従っ
て説明する。
Next, the operation of detecting a transfer error in the transfer apparatus configured as described above will be explained with reference to the transfer detection flowchart shown in FIG.

CPUI 1はステップs1において磁気ディスク20
に記憶されているファイルAをRAM13にロードする
。次にCPUI 1はステップs2に移りRAM13に
記憶したファイルAを読出て磁気ディスク21に記憶す
る。磁気ディスク21への記憶が終了すると、CPU1
1はステップs3においてRAM13に記憶されている
ファイルAと磁気ディスク21に記憶したファイルAと
を比較し、これらファイルA、Aが同一内容であれば次
のステップs5に移る。この比較により各ファイルA。
The CPU 1 reads the magnetic disk 20 in step s1.
Load file A stored in the RAM 13 into the RAM 13. Next, the CPU 1 moves to step s2, reads out the file A stored in the RAM 13, and stores it in the magnetic disk 21. When the storage on the magnetic disk 21 is completed, the CPU 1
1 compares the file A stored in the RAM 13 with the file A stored in the magnetic disk 21 in step s3, and if these files A and A have the same content, the process moves to the next step s5. By this comparison, each file A.

Aの内容が同一でなければ、CPUIIはステラプs9
に移ってエラー処理を実行する。なお、このエラー処理
の旨はI10ポート15を通して表示装置16で表示さ
れる。
If the contents of A are not the same, the CPU II will
and perform error handling. Note that this error processing is displayed on the display device 16 through the I10 port 15.

又、ステップS4における比較の結果、各ファイルの内
容が同一であれば、CPU1’lはステップs5に移っ
てファイルへのサイズを求めてそのサイズ値をRAM1
3に記憶する。
Further, as a result of the comparison in step S4, if the contents of each file are the same, the CPU 1'l moves to step s5, calculates the size of the file, and stores the size value in the RAM 1.
Store in 3.

次にCPUIIはステップsllにおいて全てのファイ
ルA、B、C及びサイズ用ファイルの転送が終了したか
を判断し、この場合、ファイルAだけ転送が終了したの
で、ステップs8に移って磁気ディスク20に記憶され
ているファイルBをRAM13にロードし、ステップs
2においてRAMI 3に記憶したファイルBを読出て
磁気ディスク21に記憶する。以下、上記作用と同様に
CPUI 1はステップs3においてRAMI 3に記
憶されているファイルBと磁気ディスク21に記憶した
ファイルAとを比較し、これらファイルB。
Next, in step sll, the CPU II determines whether the transfer of all files A, B, C and the size file has been completed. Load the stored file B into the RAM 13, and step s
2, the file B stored in the RAMI 3 is read out and stored on the magnetic disk 21. Thereafter, in the same way as the above operation, the CPU 1 compares the file B stored in the RAMI 3 and the file A stored in the magnetic disk 21 in step s3.

Bが同一内容であれば次のステップS5に移り、各ファ
イルの内容が同一であれば、CPUIIはステップs5
に移ってファイルBのサイズを求めてそのサイズ値をR
AM13上のファイルAのサイズ値に加算する。
If the contents of B are the same, the CPU II moves to the next step S5, and if the contents of each file are the same, the CPU II moves to the next step S5.
, find the size of file B, and set the size value to R.
Add to the size value of file A on AM13.

このようにして各ファイルA、B、C及びサイズ用ファ
イルの転送が終了すると、CPUI 1はステップs7
においてRAM13上で加算された各ファイルA、B、
C及びサイズ用ファイルの合=1サイズと転送したサイ
ズ用ファイルに記憶されている合計サイズとを比較する
。この比較の結果、各ファイルA、B、C及びサイズ用
ファイルのサイズの合計値とサイズ用ファイルに記憶さ
れている合計サイズ値とが同一であれば、CPUIIは
転送にエラーが生じていないと判断する。ところが、第
4図に示すように例えばファイルAに化けが生じてサイ
ズの大きさが小さくなると、各ファイルA、B、C及び
サイズ用ファイルのサイズの合計値はサイズ用ファイル
に記憶されている合計サイズ値よりも小さくなる。この
結果、CPU11は転送した各ファイルA、B、Cに化
けが生じたと判断してステップs9に移ってエラー処理
を実行する。
When the transfer of each file A, B, C and size file is completed in this way, the CPU 1 performs step s7.
Each file A, B, added on the RAM 13 in
The total size of C and the size file (=1) is compared with the total size stored in the transferred size file. As a result of this comparison, if the total size of each file A, B, C and the size file is the same as the total size value stored in the size file, the CPU II determines that no error has occurred in the transfer. to decide. However, as shown in Figure 4, for example, if file A becomes corrupted and its size becomes smaller, the total size of each file A, B, C and size file is stored in the size file. be smaller than the total size value. As a result, the CPU 11 determines that each of the transferred files A, B, and C has been garbled, and proceeds to step s9 to execute error processing.

このように上記一実施例においては、転送する全ファイ
ルA、B、C及びサイズ用ファイルの合計サイズを示す
サイズ用ファイルを作成し、ファイル転送の際に転送す
べきファイルA、B、Cとともにサイズ用ファイルを転
送し、この転送により記憶媒体21に記憶された各ファ
イルA、B。
In this way, in the above embodiment, a size file is created that indicates the total size of all files A, B, and C to be transferred and the size file, and is The size files are transferred, and each file A, B is stored in the storage medium 21 by this transfer.

C及びサイズ用ファイルの合=1サイズとサイズ用ファ
イルに示されている合=1サイズとを比較し、同一サイ
ズでなければ転送エラーとして検出するようにしたので
、磁気ディスク20から磁気ディスク21への転送がフ
ァイルA、B、Cの転送として例えば8回目であっても
これらファイルA。
The total size of C and the size file is compared with the total size of 1 shown in the size file, and if they are not the same size, it is detected as a transfer error. Even if this is the 8th transfer of files A, B, and C, these files A.

B、Cの転送エラーを検出できる。Transfer errors of B and C can be detected.

なお、本発明は上記一実施例に限定されるものでなくそ
の主旨を逸脱しない範囲で変形しても良い。例えば、記
憶媒体は磁気ディスクに限らず磁気テープなどにも適用
できる。又、サイズ用ファイルに記憶するサイズはファ
イルA、B、Cの合計サイズでも良い。
Note that the present invention is not limited to the above-mentioned embodiment, and may be modified without departing from the spirit thereof. For example, the storage medium is not limited to a magnetic disk, but can also be applied to a magnetic tape. Further, the size stored in the size file may be the total size of files A, B, and C.

(発明の効果) 以上詳記したように本発明によれば、複数回ファイルが
転送された際の転送エラーを検出できるファイル転送エ
ラー検出方法を提供できる。
(Effects of the Invention) As described in detail above, according to the present invention, it is possible to provide a file transfer error detection method that can detect transfer errors when a file is transferred multiple times.

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

第1図乃至第4図は本発明に係わるファイル転送エラー
検出方法を説明するための図であって、第1図は同方法
を適用したファイル転送装置の構成図、第2図は転送す
るファイルの模式図、第3図はファイル転送流れ図、第
4図はデータ化けが生じたファイルを示す模式図、第5
図はファイルの転送を示す図である。 10・・・コンピュータ、11・・・CPU、12・・
・バス、13・・・RAM、14・・・ROM、15・
・・I10ポート、16・・・表示装置、20.21・
・・磁気ディスク。
1 to 4 are diagrams for explaining the file transfer error detection method according to the present invention, in which FIG. 1 is a configuration diagram of a file transfer device to which the method is applied, and FIG. 2 is a diagram showing files to be transferred. Figure 3 is a file transfer flowchart, Figure 4 is a diagram showing files with garbled data, and Figure 5 is a diagram showing files with garbled data.
The figure is a diagram showing file transfer. 10... Computer, 11... CPU, 12...
・Bus, 13...RAM, 14...ROM, 15.
・・I10 port, 16...Display device, 20.21・
...Magnetic disk.

Claims (1)

【特許請求の範囲】[Claims] 記憶媒体から別の記憶媒体に少なくとも2回ファイルを
転送する際の転送エラーを検出するファイル転送エラー
検出方法において、転送する全ファイルの合計サイズを
示すサイズ用ファイルを作成し、ファイル転送の際に前
記ファイルとともに前記サイズ用ファイルを転送し、こ
の転送された側の前記記憶媒体に記憶された前記ファイ
ルのサイズと前記サイズ用ファイルに示されている合計
サイズとを比較し、同一サイズでなければ転送エラーと
して検出することを特徴とするファイル転送エラー検出
方法。
In a file transfer error detection method that detects transfer errors when transferring a file from one storage medium to another at least twice, a size file is created that indicates the total size of all files to be transferred, and The size file is transferred together with the file, and the size of the file stored in the storage medium on the transferred side is compared with the total size indicated in the size file, and if they are not the same size. A file transfer error detection method characterized by detecting it as a transfer error.
JP1293961A 1989-11-14 1989-11-14 Method for detecting file transfer error Pending JPH03154934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1293961A JPH03154934A (en) 1989-11-14 1989-11-14 Method for detecting file transfer error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1293961A JPH03154934A (en) 1989-11-14 1989-11-14 Method for detecting file transfer error

Publications (1)

Publication Number Publication Date
JPH03154934A true JPH03154934A (en) 1991-07-02

Family

ID=17801431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1293961A Pending JPH03154934A (en) 1989-11-14 1989-11-14 Method for detecting file transfer error

Country Status (1)

Country Link
JP (1) JPH03154934A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6522268B2 (en) 2000-01-05 2003-02-18 Realnetworks, Inc. Systems and methods for multiple-file data compression
EP3451172A4 (en) * 2016-04-28 2019-11-06 Kyocera Document Solutions Inc. Data transmission system and data transmission method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6522268B2 (en) 2000-01-05 2003-02-18 Realnetworks, Inc. Systems and methods for multiple-file data compression
EP3451172A4 (en) * 2016-04-28 2019-11-06 Kyocera Document Solutions Inc. Data transmission system and data transmission method

Similar Documents

Publication Publication Date Title
JPH03154934A (en) Method for detecting file transfer error
US6026504A (en) Multiprocessor system and method for error tracking
JPH01286029A (en) Microprogram patching system
JPS60122426A (en) Write data check system
JPH08202635A (en) Dma controller
JPH04358236A (en) Data processor
JPS59123055A (en) Instruction processing system
JP2609768B2 (en) Error detection method for control information read data
JPH02171939A (en) Method for detecting abnormality of program
JPH0724028B2 (en) Control device with test function
JPH0480860A (en) Program loading system
JPH06188938A (en) Storage circuit for communication data processing
JPS61224052A (en) Data securing system
JPH0782427B2 (en) Sort processing method
JPH03147036A (en) Variable length data processor
JPH03166689A (en) Program checking method
JPH0235549A (en) Loading system for program
JPH036618A (en) Abnormality detecting circuit for stack pointer
JPH01201735A (en) Microprocessor device
JPS62166449A (en) History storage device for logical unit
JPH02144729A (en) Data processor
JPH07193561A (en) System and device for synchronously processing format
JPH01156815A (en) Disk file controller
JPH05113936A (en) Memory error detecting method
JPH03191437A (en) Data processor