Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and system for self-verification of files

A self-checking, document technology, applied in the direction of response error generation, redundant code error detection, etc., can solve the problem of not being able to judge whether the document has changed, etc., and achieve the effect of convenient, fast and reliable inspection steps.

Active Publication Date: 2019-09-20
RAYSOLUTION DIGITAL MEDICAL IMAGING CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a file self-verification method and system, which can effectively solve the problem that the file cannot be judged whether the file has changed in various hardware storage environments, and ensure the integrity of the original data of the file

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for self-verification of files
  • A method and system for self-verification of files
  • A method and system for self-verification of files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention will be further described below in conjunction with the embodiments shown in the accompanying drawings.

[0039] Such as figure 1 As shown, the present invention discloses a file self-checking method, and the file includes original file data and an added file header.

[0040] In one embodiment, the added file header includes file header data and matching information, and the file header data includes pre-stored file check information CRC (head CRC), file compression method, length of the file before compression, and length of the file after compression. File data Part length, file data part CRC checksum (file CRC).

[0041] Then the file self-verification includes the following steps: (1) carry out file header information verification, if the verification is successful, go to step (2), if the verification fails, then directly go to step (4);

[0042] Such as figure 2As shown, in step (1), the file header information verification includes the fo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file self-verification method and system, which adds a file header on the basis of the original file data, and defines the structure of the file header, including file header data and matching information, and the file header data includes pre-stored files The CRC of the verification information, the compression method of the file, the length of the file before compression, the length of the compressed file, the length of the file data part, the CRC checksum (file CRC) of the file data part, etc., and then according to the above file header structure information The file header and file data are verified separately. When both are verified successfully, the target file is judged to be definite and complete, and subsequent file replacement can be performed. If one of the verification fails, it means that the file is being transferred or stored, etc. If damage occurs during the process, the process will end, and the inspection steps are convenient, fast, and highly reliable.

Description

technical field [0001] The invention relates to the field of embedded system data communication, in particular to a method for verifying file integrity. Background technique [0002] With the rapid development of embedded technology, embedded products are more and more widely used, such as high-speed railways, communication equipment, etc. Embedded development includes hardware and software development. In order to improve the development speed, files are generally used in embedded software development. The system stores files and data in the file system. The use of the file system can bring many benefits, such as simple and convenient use, rich API interface, fast use and development speed, and convenient file transfer. [0003] However, embedded systems are sometimes used in harsh environments. Complicated surrounding environments, software defects, etc. may cause file content to be destroyed or rewritten, and in special cases, the file system may also be damaged. Usually...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/10
Inventor 闫礼飞陈荣
Owner RAYSOLUTION DIGITAL MEDICAL IMAGING CO LTD