Standardized file-based data interaction method, apparatus, and storage medium
Through the standardized file data interaction method, the data management inconvenience caused by the difference in file formats of different test equipment is solved, and the file reading, writing and editing is realized under the unified platform, simplifying the processing process of test data.
Patent Information
- Application Number
- PCT/CN2024/101131
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-26
- Filing Date
- 2024-06-25
- Publication Date
- 2025-01-02
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.
Using a data interaction method based on standardized files, by obtaining standardized data files, decompressing and interpreting the main file, description files and data files, designing corresponding parsing programs, converting the original data into standard formats, and realizing a unified platform-to-standard format file Read, write and edit.
It realizes the standard format definition of different types of test files, which facilitates staff to call and analyze and process, and simplifies data management and processing.
Smart Images

Figure CN2024101131_02012025_PF_FP_ABST
Abstract
Description
Data interaction method, device and storage medium based on standardized files Technical Field
[0001] The present invention belongs to the field of testing technology, and in particular relates to a data interaction method, device and storage medium based on standardized files. Background Art
[0002] In the testing field, there are many types of test files. Common test files include data files, waveform files, etc., and the file formats generated by different test equipment vary greatly. Workers need to obtain different test files between different devices and use different interpreters or software to interpret and process different test files. When the number and variety of test equipment and test files are large, it is not convenient to centrally manage data.
[0003] Summary of the Invention
[0004] The present invention provides a standardized file-based data interaction method, device, and storage medium, aiming to address at least one of the technical problems existing in the prior art. This method, device, and storage medium define a standard format for different types of test files, design corresponding parsing programs for the raw data generated by various devices, convert the data into a standard format, and read, write, and edit these files through a unified platform, making it easier for personnel to access test files and analyze and process them.
[0005] The technical solution of the present invention relates to a data interaction method, device and storage medium based on standardized files, and the method comprises the following steps:
[0006] S100: Acquire 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;
[0007] 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;
[0008] The description file includes the mutual relationship and interpretation method of the at least one data file, and application status data;
[0009] The master file includes a data file information segment and a description file information segment;
[0010] 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;
[0011] S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file;
[0012] S300: Interpret 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 or a preset application name of an application 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;
[0013] S400, save the file, update the file server and update the database record;
[0014] The step S400 includes:
[0015] S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0016] S420, updating a record in the database, wherein the record in the database is updated including updating an application type, a description file content, and a path of at least one of the data files of the standardized data file;
[0017] 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;
[0018] S600: Based on the front-end operation, update the application type, description file information and data file information;
[0019] S700, save the file, update the file server and update the database record;
[0020] The step S700 includes:
[0021] S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0022] S720: Update a record in the database, wherein the record in the database is updated, including updating an application type, a description file content, and a path of at least one of the data files of the standardized data file;
[0023] S800: Generate a master file, description file, and data file from a database and a file server based on a file download request from the front end;
[0024] The step S800 includes:
[0025] S810, read the application type, the file names of all data files, the file types, the file identifiers and the description file information from the database;
[0026] S820, regenerate the master file and description file and save them to the file server;
[0027] 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 the file server and perform a download operation.
[0028] Furthermore, in step S200, the standardized data file is decompressed using a zip algorithm.
[0029] Furthermore, after step S200, the following steps are further included:
[0030] S210: If the master file is an encrypted file, decrypt the master file using a preset private key.
[0031] Furthermore, after step S300, the following steps are further included:
[0032] S310: Determine whether the description file needs to be decrypted based on the description file encryption information; if the description file needs to be decrypted, decrypt the description file;
[0033] 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.
[0034] Furthermore, the step S900 includes:
[0035] S910, encrypting description files and data files;
[0036] S920, after updating the encryption information to the master file, encrypt the master file;
[0037] S930. Compress the master file, description file, and all data files using zip compression to obtain a standardized data file, and save the standardized data file, master file, description file, and all data files to a file server;
[0038] S940: Execute a download operation to download the corresponding file in the file server to the front end.
[0039] Furthermore, in step S200, a compression password is set for the standardized data file when it is compressed using zip.
[0040] Furthermore, after step S200, the method further includes: encrypting the data file and the description file using a symmetric encryption algorithm.
[0041] Furthermore, the data file and the description file are encrypted by a symmetric encryption algorithm, and information such as the file name, file type, decryption type and key of the description file are written into the main file.
[0042] Furthermore, 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.
[0043] Furthermore, the encryption and decryption process of step S200 is as follows:
[0044] (1) For the remaining files other than the main file, each file can be optionally encrypted using a symmetric encryption algorithm, and the key and encryption type are written into the main file.
[0045] (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.
[0046] (3) When the standardized data file is uploaded to the system, the system uses zip to extract all files, decrypts the main file using the private key, reads the encryption type and key information of the remaining files from the main file, and uses this information to decrypt the other files.
[0047] Furthermore, if the master file contains key information, the master file is encrypted using an asymmetric encryption algorithm based on a public key.
[0048] Furthermore, in step S100, the method for obtaining the standardized data file includes generating the standardized data file directly from the test equipment or generating the standardized data file through the system by importing the data file into the system.
[0049] Furthermore, in step S100, the file information of the data file includes the file name and the file type.
[0050] Furthermore, in step S100, the format of the data file includes the csv format, and the format of the description file includes the json format, the xml format and the yml format.
[0051] The technical solution of the present invention further relates to a computer-readable storage medium having program instructions stored thereon, and when the program instructions are executed by a processor, the method described in the above embodiment of the present invention is implemented.
[0052] The beneficial effects of the present invention are as follows:
[0053] 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. The files in the standard format 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.
[0054] In addition, additional aspects and advantages of the present invention will be set forth 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
[0055] FIG1 is a flow chart of a data interaction method based on standardized files according to the present invention.
[0056] FIG2 is a flow chart of step S400 of the standardized file-based data interaction method according to the present invention, which includes saving files, updating the file server, and updating records in the database.
[0057] FIG3 is a flow chart of step S700 of the standardized file-based data interaction method according to the present invention, which includes saving files, updating the file server, and updating records in the database.
[0058] 4 is a flow chart of step S800 of the standardized file-based data interaction method according to the present invention, in which a master 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.
[0059] Figure 5 is a flowchart of step S900 of the standardized file-based data interaction method 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 the file server and performs a download operation.
[0060] FIG6 is a schematic diagram of a measurement and control data interaction device based on standardized files according to the present invention.
[0061] FIG7 is a flow chart of a method for generating a standardized data file according to the present invention.
[0062] FIG8 is a schematic diagram of a standardized data file structure according to the present invention.
[0063] FIG9 is a schematic diagram of a master file according to an embodiment of the present invention.
[0064] FIG10 is a schematic diagram of a description file according to an embodiment of the present invention.
[0065] FIG11 is a schematic diagram of a device for generating a standardized data file according to the present invention.
[0066] FIG12 is a flowchart of a method for generating a standardized data file according to an embodiment of the present invention. DETAILED DESCRIPTION
[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 making creative efforts shall fall within the scope of protection of the present invention.
[0068] The following will provide a clear and complete description of the concept, specific structure and technical effects of the present invention in conjunction with the embodiments and drawings to fully understand the purpose, scheme and effects of the present invention.
[0069] 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 the other feature, or it may be indirectly fixed or connected to the other 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 commonly understood by those skilled in the art. The terms used in this specification are only for describing specific embodiments and are not intended to limit the invention. The term "and / or" used herein includes any combination of one or more related listed items.
[0070] 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 only intended 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.
[0071] 1 to 6 , a method, device, and storage medium for data interaction based on standardized files include the following steps:
[0072] S100: Acquire 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;
[0073] S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file;
[0074] S300: Interpret 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 an application expected to be used to open the data file or a preset application name, the description file information includes description file encryption information, and the data file information includes data file encryption information;
[0075] S400, save the file, update the file server and update the database record;
[0076] 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;
[0077] S600: Based on the front-end operation, update the application type, description file information and data file information;
[0078] S700, save the file, update the file server and update the database record;
[0079] S800: Generate a master file, description file, and data file from a database and a file server based on a file download request from the front end;
[0080] 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 the file server and perform a download operation.
[0081] According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:
[0082] 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. The files in the standard format 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.
[0083] Specifically, the method for obtaining the standardized data file includes generating the standardized data file directly 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, and mosd.
[0084] 1 , in step S200 , the standardized data file is decompressed using 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.
[0085] In some embodiments, other compression algorithms may also be used for compression and decompression.
[0086] Further, referring to FIG. 1 , the step S200 further includes:
[0087] S210: If the master file is an encrypted file, decrypt the master file using a preset private key;
[0088] Further, referring to FIG. 1 , the step S300 further includes:
[0089] S310: Determine whether the description file needs to be decrypted based on the description file encryption information; if the description file needs to be decrypted, decrypt the description file;
[0090] 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.
[0091] Further, referring to FIG. 2 , step S400 includes:
[0092] S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0093] S420: Update the records of the database, wherein the updating of the records of the database includes updating the application type of the standardized data file, the description file content, and the path of at least one of the data files.
[0094] Specifically, steps S100 to S420 are method steps for the system to receive standardized data files and process the received standardized data files. The purpose 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.
[0095] Further, referring to FIG. 3 , step S700 includes:
[0096] S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0097] S720: Update the records of the database, wherein the updating of the records of the database includes updating the application type of the standardized data file, the description file content, and the path of at least one of the data files.
[0098] Further, referring to FIG. 4 , step S800 includes:
[0099] S810, read the application type, the file names of all data files, the file types, the file identifiers and the description file information from the database;
[0100] S820. Regenerate the master file and description file and save them to the file server.
[0101] It should be noted that in step S800, there is a possibility that the file will be modified by a third party after the previous standardized data file is generated and before the file download request occurs. Therefore, after receiving the download request, in order to avoid possible data changes in the database caused by other programs, the latest file needs to be regenerated.
[0102] Further, referring to FIG. 5 , step S900 includes:
[0103] S910, encrypting description files and data files;
[0104] S920, after updating the encryption information to the master file, encrypt the master file;
[0105] S930. Compress the master file, description file, and all data files using zip compression to obtain a standardized data file, and save the standardized data file, master file, description file, and all data files to a file server;
[0106] S940: Execute a download operation to download the corresponding file in the file server to the front end.
[0107] Specifically, steps S500 to S930 are the execution steps of the system corresponding to the front-end read and write requests and file download requests, the purpose of which 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.
[0108] 6 , the present invention further proposes a device for interactive measurement and control data based on standardized files, for implementing a data interaction method based on standardized files, characterized in that the device comprises:
[0109] File server, used to store files;
[0110] Database, used to store file information;
[0111] The processing device is used to generate and process the description file, the master file and the standardized data file. The file server and the database are respectively connected to the processing device.
[0112] 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 external reading, writing, editing, uploading and downloading services through the connection with the database and the file server.
[0113] The present invention further provides a computer-readable storage medium having program instructions stored thereon. When the program instructions are executed by a processor, a data interaction method based on a standardized file is implemented.
[0114] In addition, referring to FIG7 to FIG11 , 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, an embodiment of the present invention further provides a standardized data file generation method, apparatus, and storage medium. Referring to FIG7 , the method includes the following steps:
[0115] S100, obtaining at least one data file, extracting file information of each data file, and assigning an identifier to each data file;
[0116] 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 a data structure predefined by the application that expects to open the data file;
[0117] S300, creating a master file, wherein the master file includes a data file information segment and a description file information segment;
[0118] S400: Create a standardized data file, write the type of application that is expected to open the standardized data file into the application type information segment of the master file, and package the master file, description file, and data file into the standardized data file;
[0119] S500: Compress the standardized data file to obtain a compressed file, and modify the extension of the compressed file.
[0120] 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.
[0121] According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:
[0122] The standardized data file generation method, device and storage medium can define a standard format for different types of test files, design corresponding parsing programs for the original data generated by various devices, and then convert them into a standard format.
[0123] Further, referring to FIG. 7 to FIG. 10 , the file information of the data file includes a file name and a file type.
[0124] Further, referring to FIG. 7 to FIG. 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.
[0125] 7 to 10 , after step S200, the method 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 the symmetric encryption algorithm, information such as the file name, file type, decryption type, and key of the description file is written into the master file.
[0126] Further, referring to Figures 7 to 10, after step S300, the file information, identifiers and data file encryption information of all data files are written into the data file information segment of the master file, and the file name, type and description file encryption information of the description file are written into the description file information segment.
[0127] 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.
[0128] 7 to 10, the standardized data files are compressed based on the zip algorithm. In some embodiments, all data files, description files, and main files are compressed into one file using zip, and the format of the compressed file is mdf.
[0129] In some embodiments, to ensure file security, the files in the standardized data file (mdf file) are optionally encrypted. The encryption and decryption process is as follows:
[0130] (1) For the remaining files other than the main file, each file can be optionally encrypted using a symmetric encryption algorithm, and the key and encryption type are written into the main file.
[0131] (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.
[0132] (3) When the standardized data file (mdf file) is uploaded to the system, the system uses zip to extract all files, decrypts the main file using the private key, reads the encryption type and key information of the remaining files from the main file, and uses this information to decrypt the other files.
[0133] 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.
[0134] Further, referring to FIG. 7 to FIG. 10 , the step S500 further includes: modifying the extension of the compressed file to mdf.
[0135] Specifically, in a specific embodiment, when the generated standardized data file MDF is not encrypted, the specific method flow is as follows:
[0136] (1) Collect three data files, namely A.csv, B.csv, and C.csv, and assign identifiers A, B, and C to them respectively.
[0137] (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.
[0138] (3) Write name=A.csv, id=A, type=csv into the data file information section of the master file;
[0139] Write name=B.csv, id=B, type=csv into the data file information section of the main file;
[0140] Write name=C.csv, id=C, type=csv into the data file information segment of the main file.
[0141] (4) Write name=Desc, type=json into the description file information segment of the main file.
[0142] (5) Write the application type type = TYPE_ENTHALPY_DIFFERENCE_LAB into the application type information segment of the main file.
[0143] (6) Compress all the above files using zip to obtain a compressed file, and set the extension of the compressed file to mdf.
[0144] Specifically, in a specific embodiment, when the generated standardized data file MDF is encrypted, the specific method flow is as follows:
[0145] (1) Three data files are collected, namely A.csv, B.csv, and C.csv, and the identifiers are assigned to them as A, B, and C respectively.
[0146] (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.
[0147] (3) Use a symmetric encryption algorithm and a custom key to encrypt three data files and one description file.
[0148] (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;
[0149] Write name = B.csv, id = B, type = csv, crypt = aes256, and passwd = "key string" into the data file information section of the main file;
[0150] Write name=C.csv, id=C, type=csv, crypt=aes256, and passwd=“key string” into the data file information segment of the main file.
[0151] (5) Write name=Desc, type=json, crypt=aes256 and passwd=“key string” into the description file information segment of the main file.
[0152] (6) Write the application type type = TYPE_ENTHALPY_DIFFERENCE_LAB into the application type information segment in the boot file.
[0153] (7) Use the issued public key to asymmetrically encrypt the master file.
[0154] (8) Compress all the above files using zip to obtain a compressed file, and set the extension of the compressed file to mdf.
[0155] In some embodiments, referring to FIG. 2 to FIG. 4 , the standardized data file (mdf file) includes a master file, a description file, and at least one data file (data file 1, data file 2, ..., data file n), wherein:
[0156] The main file includes: version number, application type,
[0157] Describes the file's name, type, encryption type, and key.
[0158] The file name, type, identifier, encryption type and key of data file 1,
[0159] The file name, type, identifier, encryption type and key of data file 2,
[0160] …
[0161] The file name, type, identifier, encryption type, and key of the data file n;
[0162] 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;
[0163] The standardized data file (mdf file) also includes at least one data file: data file 1, data file 2, ..., data file n.
[0164] Specifically, the standardized data file (MDF file) is a safe and controllable file format for combining multiple files. The standardized data file (MDF file) is formed by compressing multiple files into one file using zip and defining the file extension as mdf. The standardized data file (MDF file) consists of three files: a data file, a description file, and a main file.
[0165] 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, and the content of the data file can optionally be encrypted by a symmetric encryption algorithm.
[0166] The description file has no predefined file name and needs to be customized and named differently from other files. The description file records the following content based on the predefined application data structure: 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.
[0167] The file name of the master file is uniformly defined as "app" and the master file has no file name extension. The master file records the following contents based on the predefined master file data structure: the application type of the standardized data file (mdf file), the name, type, and encryption information of the description file, and the name, type, identifier, and encryption information of all data files. If the master file content contains key information, the master file is encrypted using an asymmetric algorithm using the public key.
[0168] In particular, the standardized data file (mdf file) also includes an error tolerance method and other encryption methods except the zip encryption method.
[0169] The standardized data file (mdf file) also includes setting a compression password when using zip compression.
[0170] In some embodiments, the master file can be expanded to record more information, including but not limited to:
[0171] (1) Metadata of the standardized data file (mdf file), used to quickly obtain the metadata of the standardized data file (mdf file).
[0172] (2) When an application adds annotation data to a standardized data file (mdf file) while previewing or editing it, the system can serialize this 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.
[0173] (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.
[0174] (4) Similar to the previous point, other types of data file information are recorded in the master file, thereby expanding other different functions.
[0175] In view of the above-mentioned method for generating a standardized data file, the present invention further proposes a device for generating a standardized data file, for implementing the method for generating a standardized data file. The device, referring to FIG. 11 , comprises:
[0176] A file collection device, used to collect data files and extract file information of the data files;
[0177] The file processing device is used to generate description files, master files and standardized data files.
[0178] 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 program instructions implement the standardized data file generating method when executed by a processor.
[0179] In a specific embodiment, referring to FIG12 , the method for generating a standardized data file based on measurement and control applications includes the following specific process steps:
[0180] Step S10: determining whether to generate a standardized data file from the test equipment;
[0181] If the answer in step S10 is yes, then:
[0182] Step S11: Obtaining a data file from a test device;
[0183] Step S12: Determine the data file name, file type and identifier;
[0184] Step S13: writing the relationship between the data files, the interpretation method, and the application status into the description file;
[0185] Step S14: Determine whether encryption is required;
[0186] If step S14 is yes, then:
[0187] Step S15: Encrypt all data files and description files using a symmetric encryption algorithm;
[0188] If the answer in step S10 is no, then:
[0189] Step S16: Downloading the standardized data file MDF from the system;
[0190] Step S17: The system reads the application type, description file, file name, type, and identifier of each data file from the database;
[0191] Step S18: The system pulls all data files from the file server;
[0192] Step S19: writing the relationship between the data files, the interpretation method, and the application status into the description file;
[0193] After step S19 is completed, go to step S15: encrypt all data files and description files using a symmetric encryption algorithm;
[0194] 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.
[0195] Step S20: Write the data file name, file type, identifier, encryption type, and key into the master file;
[0196] Step S21: Write the description file name, type, encryption type, and key into the main file;
[0197] Step S22: writing the application type into the main file;
[0198] Step S23: If the master file contains key information, the master file is encrypted using the public key;
[0199] Step S24: compress all data files, description files, and main files into a single file with the extension mdf through zip.
[0200] It should be appreciated that the method steps in the embodiments of the present invention can be implemented or executed 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 procedural or object-oriented programming language to communicate with the computer system. However, if desired, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, for this purpose, the program can be run on a programmed application-specific integrated circuit.
[0201] Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by the 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 can be executed by one or more processors.
[0202] Further, the methods 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 as 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, RAM, 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 processes described herein. In addition, the machine-readable code, or portions thereof, can be transmitted over 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.
[0203] The computer program can be applied to input data to perform the functions described herein, thereby converting the input data to generate output data that is 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 a physical and tangible object, including a specific visual depiction of the physical and tangible object produced on the display.
[0204] The above description is merely a preferred embodiment of the present invention. The present invention is not limited to the aforementioned embodiments. As long as the technical effects of the present invention are achieved by the same means, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention. Within the scope of protection of the present invention, various modifications and variations of the technical solutions and / or implementation methods are possible.
Claims
1. A data interaction method based on standardized files, characterized in that: The method comprises 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 obtained by packaging the main file, the description file and the data file and writing them 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 the type of application or a preset application name expected to be used to open 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 method 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 method 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 method 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 method 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 the corresponding file in the file server to the front end.
6. The data interaction method based on standardized files according to claim 2 is characterized in that: In the step S200, a compression password is set for the standardized data file when it is compressed using zip.
7. The data interaction method based on standardized files according to claim 1, characterized in that: The step S200 further includes: encrypting the data file and the description file using a symmetric encryption algorithm.
8. The data interaction method based on standardized files according to claim 7, characterized in that: After encrypting the data file and the description file through a symmetric encryption algorithm, the information such as the file name, file type, decryption type and key of the description file is written into the main file.
9. The data interaction method based on standardized files according to claim 8, characterized in that: The step S300 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.
10. The data interaction method based on standardized files according to claim 7, characterized in that: The encryption and decryption process of step S200 is as follows: (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. (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. (3) When the standardized data 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 the other files.
8. The data interaction method based on standardized files according to claim 1 is characterized in that if the master file contains key information, the master file is encrypted using an asymmetric encryption algorithm based on a public key.
11. The data interaction method based on standardized files according to claim 1, characterized in that: In the step S100, the method for obtaining the standardized data file includes generating the standardized data file directly from the test equipment or generating the standardized data file through the system by importing the data file into the system.
12. The data interaction method based on standardized files according to claim 1, characterized in that: In step S100, the file information of the data file includes the file name and the file type.
13. The data interaction method based on standardized files according to claim 1, characterized in that: In the step S100, the format of the data file includes the csv format, and the format of the description file includes the json format, the xml format and the yml format.
14. A computer-readable storage medium having program instructions stored thereon, wherein the program instructions implement the method according to any one of claims 1 to 13 when executed by a processor.
Citation Information
Patent Citations
Generation method of MDF4 format file and automobile remote measurement equipment
CN113392148A
Data processing method and device, equipment, medium and product
CN115794752A
Big data platform data standardization processing system and method applied to data files
CN115952520A
Standardized data file generation method based on measurement and control application and storage medium
CN116776834A
Data interaction method and device based on standardized file and storage medium
CN116795793A