Data exchange device based on standardized files
By designing a data interaction device based on standardized files, processing and managing files generated by test equipment, the problem of different file formats of different devices is solved, and file reading, writing, editing and safe processing of files under the unified platform is realized, which improves the convenience of data management and security.
Patent Information
- Application Number
- CN202410462270.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-26
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2043-06-26
AI Technical Summary
In the field of testing, the file formats generated by different test equipment vary greatly, resulting in inconvenient centralized management of data. Staff need to use different interpreter programs or software to process different test files.
Design a data interaction device based on standardized files, and generate and process standardized data files through file servers and databases, including main files, description files and data files, use zip algorithm to compress and decompress, and encrypt and decrypt, to ensure the unified format of the files and security.
It realizes the standard format definition of different types of test files, read, write and edit through a unified platform, which facilitates staff call and analyze and process, and solves the data management problems caused by file format differences.
Smart Images

Figure CN118349524B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of testing technology, and in particular relates to a data interaction device based on standardized files. Background Art
[0002] There are many kinds of test files in the testing field. Common test files include data files, waveform files, etc., and the file formats generated by different test devices vary greatly. Workers need to obtain different test files between different devices and use different interpretation programs or software to interpret and process different test files. When there are many types of test devices and test files, it is not convenient for centralized management of data. Summary of the invention
[0003] The present invention provides a data interaction device based on standardized files, aiming to solve at least one of the technical problems existing in the prior art. The data interaction device based on standardized files proposed by the present invention can define standard formats for different types of test files, design corresponding parsing programs for the original data generated by various devices, and then convert them into standard formats. Through a unified platform, the files in the standard format are read, written and edited, which is convenient for staff to call test files and analyze and process the files.
[0004] The technical solution of the present invention relates to a data interaction device based on standardized files, the device comprising:
[0005] File server, used to store files;
[0006] Database, used to store file information;
[0007] A processing device, used for generating and processing description files, master files and standardized data files, wherein the file server and the database are respectively connected to the processing device;
[0008] Wherein, the processing device is used to perform the following steps:
[0009] S100, obtaining a standardized data file, wherein the standardized data file is composed of a main file, a description file and at least one data file in a compressed manner;
[0010] The at least one data file includes a data file obtained from a test device or a file downloaded from a file system or a file server;
[0011] The description file includes the mutual relationship and interpretation mode of the at least one data file, and application status data;
[0012] The master file includes a data file information segment and a description file information segment;
[0013] The standardized data file is a package of the main file, the description file and the data file and written into the standardized data file;
[0014] S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file;
[0015] S300, interpreting the master file to obtain the application type, description file information and data file information of the standardized data file, wherein the application type is a type of application or a preset application name that is expected to be used to open at least one data file in the standardized data file, the description file information includes description file encryption information, and the data file information includes data file encryption information;
[0016] S400, save files, update the file server and update the records of the database;
[0017] The step S400 includes:
[0018] S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0019] S420, updating a record of a database, wherein the record of the updated database includes updating an application type of the standardized data file, a description file content, and a path of at least one of the data files;
[0020] S500, based on the read and write request of the front end, reading the application type, description file information and data file information of the standardized data file from the database or file server;
[0021] S600, based on the front-end operation, update the application type, description file information and data file information; S700, save the file, update the file server and update the database record;
[0022] The step S700 includes:
[0023] S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0024] S720, updating a record of a database, wherein the record of the updated database includes updating an application type of the standardized data file, a description file content, and a path of at least one of the data files;
[0025] S800, based on the file download request of the front end, generating a main file, a description file and a data file from a database and a file server;
[0026] The step S800 includes:
[0027] S810, reading the application type, the file names of all data files, the file types, the file identifiers and the description file information from the database;
[0028] S820, regenerate the master file and description file and save them to the file server;
[0029] S900, encrypt the master file, description file and data file, compress the encrypted master file, description file and data file into a standardized data file, save the standardized data file, master file, description file and all data files to a file server and perform a download operation.
[0030] Furthermore, in the step S200, the standardized data file is decompressed by a zip algorithm.
[0031] Furthermore, after step S200, the following steps are further included:
[0032] S210: If the master file is an encrypted file, decrypt the master file using a preset private key;
[0033] Furthermore, after step S300, the following steps are further included:
[0034] S310, judging whether the description file needs to be decrypted based on the description file encryption information, and if the description file needs to be decrypted, decrypting the description file;
[0035] S320: Based on the data file encryption information, determine whether the data file needs to be decrypted; if the data file needs to be decrypted, decrypt the data file.
[0036] Further, the step S900 includes:
[0037] S910, encrypting description files and data files;
[0038] S920, encrypting the main file after updating the encryption information to the main file;
[0039] S930, compressing the master file, the description file and all the data files by zip compression to obtain a standardized data file, and saving the standardized data file, the master file, the description file and all the data files to a file server;
[0040] S940: Execute a download operation to download corresponding files in the file server to the front end.
[0041] Furthermore, the present invention also provides a computer-readable storage medium having program instructions stored thereon, wherein the method implemented when the program instructions are executed by a processor includes:
[0042] S100, obtaining a standardized data file, wherein the standardized data file is composed of a main file, a description file and at least one data file in a compressed manner;
[0043] The at least one data file includes a data file obtained from a test device or a file downloaded from a file system or a file server;
[0044] The description file includes the mutual relationship and interpretation mode of the at least one data file, and application status data;
[0045] The master file includes a data file information segment and a description file information segment;
[0046] The standardized data file is obtained by packaging the main file, the description file and the data file and writing them into the standardized data file;
[0047] S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file;
[0048] S300, interpreting the master file to obtain the application type, description file information and data file information of the standardized data file, wherein the application type is a type of application or a preset application name that is expected to be used to open at least one data file in the standardized data file, the description file information includes description file encryption information, and the data file information includes data file encryption information;
[0049] S400, save files, update the file server and update the records of the database;
[0050] The step S400 includes:
[0051] S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0052] S420, updating the records of the database, wherein the records of the database are updated including updating the application type of the standardized data file, the description file content and the path of at least one of the data files.
[0053] Furthermore, the method implemented when the program instruction is executed by the processor also includes:
[0054] S500, based on the read and write request of the front end, reading the application type, description file information and data file information of the standardized data file from the database or file server;
[0055] S600, based on the front-end operation, update the application type, description file information and data file information; S700, save the file, update the file server and update the database record;
[0056] S800, based on the file download request of the front end, generating a main file, a description file and a data file from a database and a file server;
[0057] The step S800 includes:
[0058] S810, reading the application type, the file names of all data files, the file types, the file identifiers and the description file information from the database;
[0059] S820. Regenerate the master file and description file and save them to the file server.
[0060] Furthermore, the method implemented when the program instruction is executed by the processor also includes:
[0061] S900, encrypt the master file, description file and data file, compress the encrypted master file, description file and data file into a standardized data file, save the standardized data file, master file, description file and all data files to a file server and perform a download operation.
[0062] Furthermore, the method implemented when the program instruction is executed by the processor also includes:
[0063] The step S900 includes:
[0064] S910, encrypting description files and data files;
[0065] S920, encrypting the main file after updating the encryption information to the main file;
[0066] S930, compressing the master file, the description file and all the data files by zip compression to obtain a standardized data file, and saving the standardized data file, the master file, the description file and all the data files to a file server;
[0067] S940: Execute a download operation to download corresponding files in the file server to the front end.
[0068] According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:
[0069] The data interaction device based on standardized files can define standard formats for different types of test files, design corresponding parsing programs for the original data generated by various devices, and then convert them into standard formats. Files in standard formats can be read, written and edited through a unified platform, making it convenient for staff to call test files and analyze and process the files.
[0070] In addition, additional aspects and advantages of the present invention will be given in part in the following description, and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 It is a flow chart of the data interaction method based on standardized files according to the present invention.
[0072] Figure 2 It is a flowchart of saving files, updating the file server and updating the records of the database according to step S400 of the data interaction method based on standardized files of the present invention.
[0073] Figure 3 It is a flowchart of saving files, updating the file server and updating the records of the database according to step S700 of the data interaction method based on standardized files of the present invention.
[0074] Figure 4 It is a flowchart of step S800 of the data interaction method based on standardized files according to the present invention, in which a main file, a description file and a data file are generated from a database and a file server based on a file download request from a front end.
[0075] Figure 5 It is a flowchart of step S900 of the data interaction method based on standardized files according to the present invention, which encrypts the main file, description file and data file, compresses the encrypted main file, description file and data file into a standardized data file, saves all files to a file server and performs a download operation.
[0076] Figure 6 It is a schematic diagram of a measurement and control data interaction device based on standardized files according to the present invention.
[0077] Figure 7 is a flow chart of a method for generating a standardized data file according to the present invention.
[0078] Figure 8 It is a schematic diagram of the standardized data file structure according to the present invention.
[0079] Fig. 9 is a schematic diagram of a master file according to an embodiment of the present invention.
[0080] Fig.10It is a schematic diagram of a description file according to an embodiment of the present invention.
[0081] Fig.11 is a schematic diagram of a standardized data file generating device according to the present invention.
[0082] Fig.12 is a flow chart of a method for generating a standardized data file according to an embodiment of the present invention. DETAILED DESCRIPTION
[0083] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0084] The concept, specific structure and technical effects of the present invention will be clearly and completely described below in combination with the embodiments and drawings to fully understand the purpose, scheme and effect of the present invention.
[0085] It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to another feature, or it may be indirectly fixed or connected to another feature. The singular forms "a", "said" and "the" used herein are also intended to include the plural forms, unless the context clearly indicates otherwise. In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art. The terms used in this specification are intended only to describe specific embodiments and are not intended to limit the invention. The term "and / or" used herein includes any combination of one or more of the related listed items.
[0086] It should be understood that although the terms first, second, third, etc. may be used to describe various elements in the present disclosure, these elements should not be limited to these terms. These terms are only used to distinguish elements of the same type from each other. For example, without departing from the scope of the present disclosure, the first element may also be referred to as the second element, and similarly, the second element may also be referred to as the first element. The use of any and all examples or exemplary language ("for example", "such as", etc.) provided herein is intended only to better illustrate embodiments of the present invention, and unless otherwise required, will not impose limitations on the scope of the present invention. In addition, the industry term "posture" used herein refers to the position and attitude of a certain element relative to a spatial coordinate system.
[0087] Reference Figures 1 to 6, a data interaction method, device and storage medium based on standardized files, the method comprising the following steps:
[0088] S100, obtaining a standardized data file, wherein the standardized data file is composed of a main file, a description file and at least one data file in a compressed manner;
[0089] S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file;
[0090] S300, interpreting the master file to obtain the application type, description file information and data file information of the standardized data file, wherein the application type is the type of application or a preset application name expected to be used to open the data file, the description file information includes description file encryption information, and the data file information includes data file encryption information;
[0091] S400, save files, update the file server and update the records of the database;
[0092] S500, based on the read and write request of the front end, reading the application type, description file information and data file information of the standardized data file from the database or file server;
[0093] S600, based on the front-end operation, update the application type, description file information and data file information; S700, save the file, update the file server and update the database record;
[0094] S800, based on the file download request of the front end, generating a main file, a description file and a data file from a database and a file server;
[0095] S900, encrypt the master file, description file and data file, compress the encrypted master file, description file and data file into a standardized data file, save all files to the file server and perform a download operation.
[0096] According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:
[0097] The data interaction method, device and storage medium based on standardized files can define standard formats for different types of test files, design corresponding parsing programs for the original data generated by various devices, and then convert them into standard formats. Files in standard formats can be read, written and edited through a unified platform, making it convenient for staff to call test files and analyze and process the files.
[0098] Specifically, the method for obtaining the standardized data file includes directly generating the standardized data file from the test equipment or importing the data file into the system and generating the standardized data file through the system. The raw data file generated by the test equipment includes file formats such as wav, csv, xls, xlsx, mosd, etc.
[0099] Further, refer to Figure 1 In step S200, the standardized data file is decompressed by a zip algorithm. The system extracts all files from the standardized data file by calling zip, including a main file, a description file, and at least one data file.
[0100] In some embodiments, other compression algorithms may also be used for compression and decompression.
[0101] Further, refer to Figure 1 , after step S200, the method further includes:
[0102] S210: If the master file is an encrypted file, decrypt the master file using a preset private key;
[0103] Further, refer to Figure 1 , the step S300 further includes:
[0104] S310, judging whether the description file needs to be decrypted based on the description file encryption information, and if the description file needs to be decrypted, decrypting the description file;
[0105] S320: Based on the data file encryption information, determine whether the data file needs to be decrypted; if the data file needs to be decrypted, decrypt the data file.
[0106] Further, refer to Figure 2 , the step S400 comprises:
[0107] S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0108] S420, updating the records of the database, wherein the records of the database are updated including updating the application type of the standardized data file, the description file content and the path of at least one of the data files.
[0109] Specifically, step S100 to step S420 are method steps for the system to receive standardized data files and process the received standardized data files, the purpose of which is to extract the information of the test data files or standardized data files of the test equipment and store the information in the database, and store the corresponding data files, description files and master files in the file server to facilitate users to call, modify, update and download the corresponding files.
[0110] Further, refer to Figure 3 , the step S700 includes:
[0111] S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0112] S720: Update the records of the database, wherein the records of the database are updated including updating the application type of the standardized data file, the description file content, and the path of at least one of the data files.
[0113] Further, refer to Figure 4 , the step S800 includes:
[0114] S810, reading the application type, the file names of all data files, the file types, the file identifiers and the description file information from the database;
[0115] S820. Regenerate the master file and description file and save them to the file server.
[0116] Further, refer to Figure 5 , the step S900 includes:
[0117] S910, encrypting description files and data files;
[0118] S920, encrypting the main file after updating the encryption information to the main file;
[0119] S930, compressing the master file, the description file and all the data files by zip compression to obtain a standardized data file, and saving the standardized data file, the master file, the description file and all the data files to a file server;
[0120] S940: Execute a download operation to download corresponding files in the file server to the front end.
[0121] Specifically, steps S500 to S930 are execution steps for the system to respond to front-end read and write requests and file download requests, and their purpose is to provide users with a platform for reading, writing and editing data files, and to provide a download function for the latest data files.
[0122] Reference Figure 6 The present invention also proposes a measurement and control data interaction device of a standardized file, which is used to implement a data interaction method based on a standardized file, and the device comprises:
[0123] File server, used to store files;
[0124] Database, used to store file information;
[0125] The processing device is used for generating and processing description files, master files and standardized data files. The file server and the database are respectively connected to the processing device.
[0126] Specifically, the front end can be a user application, which includes host computer software, mobile phone APP and web pages. The front end uploads, requests data and downloads data by connecting to the processing device. The processing device updates information in real time and provides read, write, edit, upload and download services to the outside world by connecting to the database and the file server.
[0127] The present invention also provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, a data interaction method based on a standardized file is implemented.
[0128] In addition, refer to Figures 7 to 11 If only one or more data files can be obtained from the test equipment, in order to integrate the one or more data files into a standardized data file, the embodiment of the present invention also provides a standardized data file generation method, device and storage medium, referring to Figure 7 , the method comprises the following steps:
[0129] S100, obtaining at least one data file, extracting file information of each data file respectively, and assigning an identifier to each data file;
[0130] S200, creating a description file, and writing the interpretation mode, mutual relationship and application status of the data file into the description file based on the data structure predefined by the application that is expected to open the data file;
[0131] S300, establishing a master file, wherein the master file includes a data file information segment and a description file information segment;
[0132] S400, establishing a standardized data file, writing the type of application program expected to open the standardized data file into the application program type information segment of the master file, and packaging the master file, the description file and the data file into the standardized data file;
[0133] S500: compress the standardized data file to obtain a compressed file, and modify the extension of the compressed file.
[0134] Specifically, for step S100, obtaining at least one data file includes obtaining the data file from the test device, or obtaining the file by downloading from a specific file system or file server.
[0135] According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:
[0136] The standardized data file generation method, device and storage medium can define standard formats for different types of test files, design corresponding parsing programs for the original data generated by various devices, and then convert them into standard formats.
[0137] Further, refer to Figures 7 to 10 , the file information of the data file includes the file name and the file type.
[0138] Further, refer to Figures 7 to 10 The format of the data file is csv format, and the format of the description file includes json format, xml format or yml format.
[0139] Further, refer to Figures 7 to 10 , after step S200, the step further includes encrypting the data file and the description file using a symmetric encryption algorithm. In some embodiments, after encrypting the data file and the description file using a symmetric encryption algorithm, the file name, file type, decryption type, key and other information of the description file are written into the master file.
[0140] Further, refer to Figures 7 to 10 After step S300, the method further includes writing the file information, identifiers and data file encryption information of all data files into the data file information segment of the master file, and writing the file name, type and description file encryption information of the description file into the description file information segment.
[0141] Further, refer to Figures 7 to 10 , if the master file contains key information, the master file is encrypted using an asymmetric encryption algorithm based on a public key. In some embodiments, when the master file contains key information, the master file is encrypted using a public key.
[0142] Further, refer to Figures 7 to 10 , compressing the standardized data file based on the zip algorithm. In some embodiments, all data files, description files, and main files are compressed into one file through zip, and the format of the compressed file is mdf.
[0143] In some embodiments, to ensure file security, the files in the standardized data file (mdf file) are optionally encrypted, and the encryption and decryption process is as follows:
[0144] (1) For files other than the main file, a symmetric encryption algorithm may be optionally used to encrypt each file, and the key and encryption type may be written into the main file.
[0145] (2) The master file is encrypted using the public key issued by the system. At this time, only the system can decrypt the master file using the private key.
[0146] (3) When the standardized data file (mdf file) is uploaded to the system, the system uses zip to extract all files, uses the private key to decrypt the main file, reads the encryption type and key information of the remaining files from the main file, and uses this information to decrypt other files.
[0147] In addition, symmetric encryption algorithms run very fast, while asymmetric encryption algorithms are slower, but have the advantage of providing public keys to users. Combining the two here can provide very flexible security protection.
[0148] Further, refer to Figures 7 to 10 The step S600 further includes: modifying the extension of the compressed file to mdf.
[0149] Specifically, in a specific embodiment, the method for generating a standardized data file, when the generated standardized data file MDF is not encrypted, the specific method flow is as follows:
[0150] (1) Collect three data files, namely A.csv, B.csv, and C.csv, and assign identifiers A, B, and C to them respectively.
[0151] (2) Create a new description file and name it Desc. Write the parsing methods and relationships of the three files A, B, and C into the description file (Desc file) according to the data structure predefined by the application.
[0152] (3) Write name=A.csv, id=A, type=csv into the data file information section of the master file;
[0153] Write name = B.csv, id = B, type = csv into the data file information section of the main file;
[0154] Write name=C.csv, id=C, type=csv into the data file information segment of the main file.
[0155] (4) Write name=Desc, type=json into the description file information segment of the main file.
[0156] (5) Write the application type type = TYPE_ENTHALPY_DIFFERENCE_LAB into the application type information segment of the main file.
[0157] (6) Compress all the above files using zip to obtain a compressed file, and set the extension of the compressed file to mdf.
[0158] Specifically, in a specific embodiment, when the generated standardized data file MDF is encrypted, the specific method flow is as follows:
[0159] (1) Three data files are collected, namely A.csv, B.csv, and C.csv, and their identifiers are assigned as A, B, and C respectively.
[0160] (2) Create a new description file and name it Desc. Write the parsing methods and relationships of the three files A, B, and C into the description file (Desc file) according to the data structure predefined by the application.
[0161] (3) Use a symmetric encryption algorithm and a custom key to encrypt three data files and one description file.
[0162] (4) Write name=A.csv, id=A, type=csv, crypt=aes256 and passwd=“key string” into the data file information section of the master file;
[0163] Write name = B.csv, id = B, type = csv, crypt = aes256 and passwd = "key string" into the data file information section of the main file;
[0164] Write name=C.csv, id=C, type=csv, crypt=aes256 and passwd=“key string” into the data file information segment of the main file.
[0165] (5) Write name=Desc, type=json, crypt=aes256 and passwd=“key string” into the description file information segment of the main file.
[0166] (6) Write the application type type = TYPE_ENTHALPY_DIFFERENCE_LAB into the application type information segment in the boot file.
[0167] (7) Use the issued public key to asymmetrically encrypt the master file.
[0168] (8) Compress all the above files using zip to obtain a compressed file, and set the extension of the compressed file to mdf.
[0169] In some embodiments, reference Figures 2 to 4 The standardized data file (mdf file) includes a main file, a description file and at least one data file (data file 1, data file 2...data file n), wherein,
[0170] The main file includes: version number, application type,
[0171] Describes the file name, type, encryption type and key,
[0172] The file name, type, identifier, encryption type and key of data file 1,
[0173] The file name, type, identifier, encryption type and key of data file 2,
[0174] …
[0175] The file name, type, identifier, encryption type and key of data file n;
[0176] The description file includes: the relationship between data file 1, data file 2 ... data file n and the interpretation method, and the call data of the application status;
[0177] The standardized data file (mdf file) also includes at least one data file: data file 1, data file 2, ... data file n.
[0178] Specifically, the standardized data file (mdf file) is a safe and controllable file format of multiple file combinations. The standardized data file (mdf file) is a file that is compressed into one file using zip, and the file extension is defined as mdf. The standardized data file (mdf file) consists of three files, namely, a data file, a description file, and a master file.
[0179] Among them, the data file is one or more data files obtained by collecting or exporting data from the test equipment, and the multiple data files are named with different names. A different string is assigned to each data file as a unique identifier. The identifier uniquely identifies a data file in the description file. The content of the data file can optionally be encrypted by a symmetric encryption algorithm.
[0180] The description file has no predefined file name and needs to be customized and not repeated with other file names. The description file is based on the predefined application data structure and records the following contents: the relationship between each data file, the method of parsing each data file, and the status of the standardized data file (mdf file) application. The description file content can optionally be encrypted using a symmetric encryption algorithm.
[0181] The file name of the master file is uniformly defined as "app", and the master file has no file name extension; the master file is based on the predefined master file data structure, and the record content includes: recording the application type of the standardized data file (mdf file), recording the name, type, and encryption information of the description file, recording the name, type, identifier, and encryption information of all data files, and if the master file content contains key information, the master file is encrypted using an asymmetric algorithm using a public key.
[0182] In particular, the standardized data file (mdf file) also includes an error tolerance method and other encryption methods except the zip encryption method.
[0183] The standardized data file (mdf file) also includes setting a compression password when using zip compression.
[0184] In some embodiments, the master file can be expanded to record more information, including but not limited to:
[0185] (1) Metadata of the standardized data file (mdf file), used to quickly obtain the metadata of the standardized data file (mdf file).
[0186] (2) When an application adds annotation data to a standardized data file (mdf file) while previewing or editing the file, the system can serialize the data into a new data file. The master file records the information of the data file, so that the standardized data file (mdf file) supports saving annotations.
[0187] (3) When the main file is encrypted, its content can record the hash value of other files to increase the verification of the file and prevent the file from being tampered with.
[0188] (4) Similar to the previous point, other types of data file information are recorded in the master file, thereby expanding other different functions.
[0189] In view of the above-mentioned method for generating a standardized data file, the present invention also proposes a device for generating a standardized data file, which is used to implement the method for generating a standardized data file. Fig.11 , the device comprises:
[0190] A file collection device, used to collect data files and extract file information of the data files;
[0191] The file processing device is used to generate description files, master files and standardized data files.
[0192] With respect to the standardized data file generating device, the present invention further proposes a computer-readable storage medium having program instructions stored thereon, wherein the standardized data file generating method is implemented when the program instructions are executed by a processor.
[0193] In a specific embodiment, referring to Fig.12 The method for generating a standardized data file based on measurement and control applications includes the following specific process steps:
[0194] Step S10: determining whether to generate a standardized data file from the test equipment;
[0195] If the answer in step S10 is yes, then:
[0196] Step S11: Obtaining a data file from a test device;
[0197] Step S12: Determine the data file name, file type and identifier;
[0198] Step S13: writing the relationship between the data files, the interpretation method, and the application status into the description file;
[0199] Step S14: Determine whether encryption is required;
[0200] If step S14 is yes, then:
[0201] Step S15: Encrypt all data files and description files using a symmetric encryption algorithm;
[0202] If the answer in step S10 is no, then:
[0203] Step S16: Download the standardized data file MDF from the system;
[0204] Step S17: The system reads the application type, description file, file name, type, and identifier of each data file from the database;
[0205] Step S18: The system pulls all data files from the file server;
[0206] Step S19: writing the relationship between the data files, the interpretation method, and the application status into the description file;
[0207] After step S19 is completed, proceed to step S15: encrypt all data files and description files using a symmetric encryption algorithm;
[0208] After step S15 is completed, the process proceeds to step S20. At the same time, if step S14 is selected as "no", the process also proceeds to step S20.
[0209] Step S20: Write the data file name, file type, identifier, encryption type, and key into the master file;
[0210] Step S21: Write the description file name, type, encryption type, and key into the main file;
[0211] Step S22: writing the application type into the main file;
[0212] Step S23: If the master file contains key information, the public key is used to encrypt the master file;
[0213] Step S24: All data files, description files, and main files are compressed into a single file with an extension of mdf.
[0214] It should be appreciated that the method steps in the embodiments of the present invention can be implemented or implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The method can use standard programming techniques. Each program can be implemented in a high-level process or object-oriented programming language to communicate with a computer system. However, if necessary, the program can be implemented in an assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, the program can be run on a programmed ASIC for this purpose.
[0215] Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions that may be executed by one or more processors.
[0216] Further, the method can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Various aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, a RAM, a ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or portions thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described herein includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention can also include the computer itself.
[0217] The computer program can be applied to input data to perform the functions described herein, thereby converting the input data to generate output data stored in a non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the present invention, the converted data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on the display.
[0218] The above is only a preferred embodiment of the present invention. The present invention is not limited to the above implementation. As long as the technical effect of the present invention is achieved by the same means, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of protection of the present invention. Within the scope of protection of the present invention, its technical scheme and / or implementation method may have various modifications and changes.
Claims
1. A data interaction device based on standardized files, characterized in that: The device comprises: File server, used to store files; Database, used to store file information; A processing device, used for generating and processing description files, master files and standardized data files, wherein the file server and the database are respectively connected to the processing device; Wherein, the processing device is used to perform the following steps: S100, obtaining a standardized data file, wherein the standardized data file is composed of a main file, a description file and at least one data file in a compressed manner; The at least one data file includes a data file obtained from a test device or a file downloaded from a file system or a file server; The description file includes the mutual relationship and interpretation mode of the at least one data file, and application status data; The master file includes a data file information segment and a description file information segment; The standardized data file is a package of the main file, the description file and the data file and written into the standardized data file; S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file; S300, interpreting the master file to obtain the application type, description file information and data file information of the standardized data file, wherein the application type is a type of application or a preset application name that is expected to be used to open at least one data file in the standardized data file, the description file information includes description file encryption information, and the data file information includes data file encryption information; S400, save files, update the file server and update the records of the database; The step S400 includes: S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server; S420, updating a record of a database, wherein the record of the updated database includes updating an application type of the standardized data file, a description file content, and a path of at least one of the data files; S500, based on the read and write request of the front end, reading the application type, description file information and data file information of the standardized data file from the database or file server; S600, based on the operation of the front end, updating the application type, description file information and data file information; S700, save files, update the file server and update the records of the database; The step S700 includes: S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server; S720, updating a record of a database, wherein the record of the updated database includes updating an application type of the standardized data file, a description file content, and a path of at least one of the data files; S800, based on the file download request of the front end, generating a main file, a description file and a data file from a database and a file server; The step S800 includes: S810, reading the application type, the file names of all data files, the file types, the file identifiers and the description file information from the database; S820, regenerate the master file and description file and save them to the file server; S900, encrypt the master file, description file and data file, compress the encrypted master file, description file and data file into a standardized data file, save the standardized data file, master file, description file and all data files to a file server and perform a download operation.
2. The data interaction device based on standardized files according to claim 1, characterized in that: In the step S200, the standardized data file is decompressed by a zip algorithm.
3. The data interaction device based on standardized files according to claim 1, characterized in that: The step S200 further includes: S210: If the master file is an encrypted file, decrypt the master file using a preset private key.
4. The data interaction device based on standardized files according to claim 1, characterized in that: The step S300 further includes: S310, judging whether the description file needs to be decrypted based on the description file encryption information, and if the description file needs to be decrypted, decrypting the description file; S320: Based on the data file encryption information, determine whether the data file needs to be decrypted; if the data file needs to be decrypted, decrypt the data file.
5. The data interaction device based on standardized files according to claim 1, characterized in that: The step S900 includes: S910, encrypting description files and data files; S920, encrypting the main file after updating the encryption information to the main file; S930, compressing the master file, the description file and all the data files by zip compression to obtain a standardized data file, and saving the standardized data file, the master file, the description file and all the data files to a file server; S940: Execute a download operation to download corresponding files in the file server to the front end.
6. A computer-readable storage medium having program instructions stored thereon, characterized in that: The method implemented when the program instructions are executed by the processor includes: S100, obtaining a standardized data file, wherein the standardized data file is composed of a main file, a description file and at least one data file in a compressed manner; The at least one data file includes a data file obtained from a test device or a file downloaded from a file system or a file server; The description file includes the mutual relationship and interpretation mode of the at least one data file, and application status data; The master file includes a data file information segment and a description file information segment; The standardized data file is a package of the main file, the description file and the data file and written into the standardized data file; S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file; S300, interpreting the master file to obtain the application type, description file information and data file information of the standardized data file, wherein the application type is a type of application or a preset application name that is expected to be used to open at least one data file in the standardized data file, the description file information includes description file encryption information, and the data file information includes data file encryption information; S400, save files, update the file server and update the records of the database; The step S400 includes: S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server; S420, updating a record of a database, wherein the record of the updated database includes updating an application type of the standardized data file, a description file content, and a path of at least one of the data files; The method implemented when the program instructions are executed by the processor also includes: S500, based on the read and write request of the front end, reading the application type, description file information and data file information of the standardized data file from the database or file server; S600, based on the operation of the front end, updating the application type, description file information and data file information; S700, save files, update the file server and update the records of the database; The step S700 includes: S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server; S720, updating a record of a database, wherein the record of the updated database includes updating an application type of the standardized data file, a description file content, and a path of at least one of the data files; S800, based on the file download request of the front end, generating a main file, a description file and a data file from a database and a file server; The step S800 includes: S810, reading the application type, the file names of all data files, the file types, the file identifiers and the description file information from the database; S820. Regenerate the master file and description file and save them to the file server.
7. The computer-readable storage medium according to claim 6, wherein: The method implemented when the program instructions are executed by the processor also includes: S900, encrypt the master file, description file and data file, compress the encrypted master file, description file and data file into a standardized data file, save the standardized data file, master file, description file and all data files to a file server and perform a download operation.
8. The computer-readable storage medium according to claim 6, wherein: The method implemented when the program instructions are executed by the processor also includes: The step S900 includes: S910, encrypting description files and data files; S920, encrypting the main file after updating the encryption information to the main file; S930, compressing the master file, the description file and all the data files by zip compression to obtain a standardized data file, and saving the standardized data file, the master file, the description file and all the data files to a file server; S940: Execute a download operation to download corresponding files in the file server to the front end.
