Standardized data file generation method based on test and control applications, and storage medium
Through standardized data file generation methods, the problem of different file formats of different test equipment is solved, unified data management and processing is realized, and data security and readability are improved.
Patent Information
- Application Number
- PCT/CN2024/101132
- 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 devices vary greatly, resulting in inconvenient centralized management of data and requires different interpretation programs or software to be processed, resulting in complex management and processing of data files.
A standardized data file generation method based on measurement and control applications is proposed. By obtaining data files, extracting file information, establishing a description file and main file, using symmetric encryption algorithms and asymmetric encryption algorithms for encryption, and converting them into standardized data files in standard formats. And use the zip algorithm to compress to generate standardized data files.
It realizes the standard format definition of different types of test files, designs corresponding parsing programs, converts them into standard formats, simplifies data management and processing, and improves data uniformity and security.
Smart Images

Figure CN2024101132_02012025_PF_FP_ABST
Abstract
Description
Standardized data file generation method and storage medium based on measurement and control application Technical Field
[0001] The present invention belongs to the field of testing technology, and in particular relates to a method for generating a standardized data file based on measurement and control applications and a storage medium. 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 method and storage medium for generating standardized data files based on measurement and control applications, aiming to address at least one of the technical problems existing in the prior art. This method and storage medium, based on measurement and control applications, defines a standard format for different types of test files, designs corresponding parsing programs for the raw data generated by various devices, and then converts the data into a standard format.
[0005] The technical solution of the present invention relates to a method for generating a standardized data file based on measurement and control applications, the method comprising the following steps:
[0006] S100, obtaining at least one data file, extracting file information of each data file, and assigning an identifier to each data file;
[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] 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;
[0009] After step S200, the step further includes encrypting the data file and the description file using a symmetric encryption algorithm;
[0010] S300, creating a master file, wherein the master file includes a data file information segment and a description file information segment;
[0011] The step S300 further includes:
[0012] Write the file information, identifiers and data file encryption information of all data files into the data file information segment of the master file, and write the file name, type and description file encryption information of the description file into the description file information segment;
[0013] If the master file contains key information, encrypt the master file using an asymmetric encryption algorithm based on the public key;
[0014] 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;
[0015] S500: Compress the standardized data file to obtain a compressed file, and modify the extension of the compressed file.
[0016] Furthermore, the file information of the data file includes the file name and the file type.
[0017] Furthermore, the format of the data file includes a csv format, and the format of the description file includes a json format, an xml format, or a yml format.
[0018] Furthermore, the standardized data file is compressed based on a zip algorithm.
[0019] Furthermore, the step S500 further includes: modifying the extension of the compressed file to mdf.
[0020] Furthermore, the data file is one or more data files obtained by collecting or exporting data from the test device, 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.
[0021] Furthermore, the description file has no predefined file name and needs to be customized, and the name must not be repeated with other file names; the description file records the content according to the predefined application data structure, including: recording the relationship between each data file, recording the method of parsing each data file, and recording the status of the standardized data file mdf file application; the description file content can optionally be encrypted using a symmetric encryption algorithm.
[0022] Furthermore, the file name of the main file is uniformly defined as app, and the main file has no file name extension; the main file records the following content based on the predefined main file data structure: 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 main file content contains key information, the main file is encrypted using an asymmetric algorithm using a public key.
[0023] Furthermore, the method for obtaining standardized data files includes generating standardized data files directly from the test equipment or by importing the data files into the system and generating standardized data files through the system. The original data files generated by the test equipment include file formats such as wav, csv, xls, xlsx, mosd, etc.
[0024] Furthermore, the standardized data file also includes setting a compression password when using zip compression.
[0025] Furthermore, in step S200, the encryption and decryption process includes the following steps:
[0026] (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.
[0027] (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.
[0028] (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.
[0029] The technical method of the present invention also relates to a method for interactive measurement and control data based on standardized files, the method comprising the following steps:
[0030] 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;
[0031] S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file;
[0032] 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;
[0033] S400, save the file, update the file server and update the database record;
[0034] 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;
[0035] S600: Based on the front-end operation, update the application type, description file information and data file information;
[0036] S700, save the file, update the file server and update the database record;
[0037] 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;
[0038] 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 a file server, and perform a download operation.
[0039] Furthermore, after step S300, the following steps are further included:
[0040] 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;
[0041] 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.
[0042] Furthermore, the step S400 includes:
[0043] S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0044] 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.
[0045] Furthermore, the step S700 includes:
[0046] S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0047] 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.
[0048] Furthermore, the step S900 includes:
[0049] S910, encrypting description files and data files;
[0050] S920, after updating the encryption information to the master file, encrypt the master file;
[0051] 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;
[0052] S940: Execute a download operation to download the corresponding file in the file server to the front end.
[0053] The technical method of the present invention relates to a computer-readable storage medium having program instructions stored thereon. When the program instructions are executed by a processor, the method described in the above embodiment of the present invention is implemented.
[0054] The beneficial effects of the present invention are as follows:
[0055] 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.
[0056] 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
[0057] FIG1 is a flow chart of a method for generating a standardized data file according to the present invention.
[0058] FIG2 is a schematic diagram of the structure of a standardized data file according to the present invention.
[0059] FIG3 is a schematic diagram of a master file according to an embodiment of the present invention.
[0060] FIG4 is a schematic diagram of a description file according to an embodiment of the present invention.
[0061] FIG5 is a schematic diagram of a device for generating a standardized data file according to the present invention.
[0062] FIG6 is a flowchart of a method for generating a standardized data file according to an embodiment of the present invention.
[0063] FIG7 is a flow chart of a method for interactive measurement and control data based on standardized files according to the present invention.
[0064] FIG8 is a flowchart of step S400 of the standardized file-based measurement and control data interaction method according to the present invention, which includes saving files, updating the file server, and updating records in the database.
[0065] FIG9 is a flowchart of step S700 of the standardized file-based measurement and control data interaction method according to the present invention, which includes saving files, updating the file server, and updating records in the database.
[0066] 10 is a flowchart of step S800 of the standardized file-based measurement and control 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.
[0067] Figure 11 is a flowchart of step S900 of the measurement and control 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 the file server and performs a download operation.
[0068] FIG12 is a schematic diagram of a measurement and control data interaction device based on standardized files according to the present invention. DETAILED DESCRIPTION
[0069] 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.
[0070] 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.
[0071] 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.
[0072] 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.
[0073] 1 to 6 , an embodiment of the present invention provides a method for generating a standardized data file based on a measurement and control application and a storage medium. The method includes the following steps:
[0074] 1S100. Acquire at least one data file, extract file information of each data file, and assign an identifier to each data file;
[0075] 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;
[0076] S300: Create a master file, which includes a data file information segment and a description file information segment. Write the file information, identifiers, and data file encryption information of all data files into the data file information segment of the master file, and write the file name, type, and description file encryption information of the description file into the description file information segment.
[0077] 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;
[0078] S500: Compress the standardized data file to obtain a compressed file, and modify the extension of the compressed file.
[0079] 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.
[0080] According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:
[0081] The standardized data file generation method and storage medium based on measurement and control applications can define standard formats for different types of test files, design corresponding parsing programs for the raw data generated by various devices, and then convert them into standard formats.
[0082] Further, referring to FIG. 1 and FIG. 2 , the file information of the data file includes a file name and a file type.
[0083] Further, referring to FIG1 to FIG2 , the format of the data file is csv format, and the format of the description file includes json format, xml format or yml format.
[0084] 1 and 2, 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.
[0085] Further, referring to Figures 1 to 2, step S300 also 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.
[0086] 1 to 4 , 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.
[0087] 1 to 4, the standardized data files are compressed based on a zip algorithm. In some embodiments, all data files, description files, and main files are compressed into one file using zip, and the extension of the compressed file is mdf.
[0088] 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:
[0089] (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.
[0090] (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.
[0091] (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.
[0092] 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.
[0093] Further, referring to FIG. 1 to FIG. 4 , the step S500 further includes: modifying the extension of the compressed file to mdf.
[0094] Specifically, in a specific embodiment, when the generated standardized data file MDF is not encrypted, the specific method flow is as follows:
[0095] (1) Collect three data files, namely A.csv, B.csv, and C.csv, and assign identifiers A, B, and C to them respectively.
[0096] (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.
[0097] (3) Write name=A.csv, id=A, type=csv into the data file information section of the master file;
[0098] Write name=B.csv, id=B, type=csv into the data file information section of the main file;
[0099] Write name=C.csv, id=C, type=csv into the data file information segment of the main file.
[0100] (4) Write name=Desc, type=json into the description file information segment of the main file.
[0101] (5) Write the application type type = TYPE_ENTHALPY_DIFFERENCE_LAB into the application type information segment of the main file.
[0102] (6) Compress all the above files using zip to obtain a compressed file, and set the extension of the compressed file to mdf.
[0103] Specifically, in a specific embodiment, when the generated standardized data file MDF is encrypted, the specific method flow is as follows:
[0104] (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.
[0105] (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.
[0106] (3) Use a symmetric encryption algorithm and a custom key to encrypt three data files and one description file.
[0107] (4) Write name=A.csv, id=A, type=csv, crypt=aes256, and passwd=“key string” into the data file information segment of the master file;
[0108] Write name = B.csv, id = B, type = csv, crypt = aes256, and passwd = "key string" into the data file information section of the main file;
[0109] Write name=C.csv, id=C, type=csv, crypt=aes256, and passwd=“key string” into the data file information segment of the main file.
[0110] (5) Write name=Desc, type=json, crypt=aes256 and passwd=“key string” into the description file information segment of the main file.
[0111] (6) Write the application type type = TYPE_ENTHALPY_DIFFERENCE_LAB into the application type information segment in the boot file.
[0112] (7) Use the issued public key to asymmetrically encrypt the master file.
[0113] (8) Compress all the above files using zip to obtain a compressed file, and set the extension of the compressed file to mdf.
[0114] 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:
[0115] The main file includes: version number, application type,
[0116] Describes the file's name, type, encryption type, and key.
[0117] The file name, type, identifier, encryption type and key of data file 1,
[0118] The file name, type, identifier, encryption type and key of data file 2,
[0119] …
[0120] The file name, type, identifier, encryption type, and key of the data file n;
[0121] 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;
[0122] The standardized data file (mdf file) also includes at least one data file: data file 1, data file 2, ..., data file n.
[0123] 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.
[0124] 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.
[0125] 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.
[0126] 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 content based on the predefined master file data structure: 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.
[0127] In particular, the standardized data file (mdf file) also includes an error tolerance method and other encryption methods except the zip encryption method.
[0128] The standardized data file (mdf file) also includes setting a compression password when using zip compression.
[0129] In some embodiments, the master file can be expanded to record more information, including but not limited to:
[0130] (1) Metadata of the standardized data file (mdf file), used to quickly obtain the metadata of the standardized data file (mdf file).
[0131] (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.
[0132] (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.
[0133] (4) Similar to the previous point, other types of data file information are recorded in the master file, thereby expanding other different functions.
[0134] The present invention further proposes a device for generating a standardized data file based on measurement and control applications, which is used to implement a method for generating a standardized data file based on measurement and control applications. The device is characterized in that, referring to FIG. 5 , the device includes:
[0135] A file collection device, used to collect data files and extract file information of the data files;
[0136] The file processing device is used to generate description files, master files and standardized data files.
[0137] The present invention also provides a computer-readable storage medium having program instructions stored thereon. When the program instructions are executed by a processor, a method for generating a standardized data file based on measurement and control applications is implemented.
[0138] In a specific embodiment, referring to FIG6 , the method for generating a standardized data file based on measurement and control applications includes the following specific process steps:
[0139] Step S10: determining whether to generate a standardized data file from the test equipment;
[0140] If the answer in step S10 is yes, then:
[0141] Step S11: Obtaining a data file from a test device;
[0142] Step S12: Determine the data file name, file type and identifier;
[0143] Step S13: writing the relationship between the data files, the interpretation method, and the application status into the description file;
[0144] Step S14: Determine whether encryption is required;
[0145] If the answer in step S14 is yes, then:
[0146] Step S15: Encrypt all data files and description files using a symmetric encryption algorithm;
[0147] If the answer in step S10 is no, then:
[0148] Step S16: Downloading the standardized data file MDF from the system;
[0149] Step S17: The system reads the application type, description file, file name, type, and identifier of each data file from the database;
[0150] Step S18: The system pulls all data files from the file server;
[0151] Step S19: writing the relationship between the data files, the interpretation method, and the application status into the description file;
[0152] After step S19 is completed, go to step S15: encrypt all data files and description files using a symmetric encryption algorithm;
[0153] 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.
[0154] Step S20: Write the data file name, file type, identifier, encryption type, and key into the master file;
[0155] Step S21: Write the description file name, type, encryption type, and key into the main file;
[0156] Step S22: writing the application type into the main file;
[0157] Step S23: If the master file contains key information, the master file is encrypted using the public key;
[0158] Step S24: compress all data files, description files, and main files into a single file with the extension mdf through zip.
[0159] In addition, referring to Figures 7 to 12, the present invention discloses a method for processing one or more data files to generate a standardized data file. In some embodiments, the standardized data file needs to be input into a system for processing, including inputting the standardized data file into the system for processing, reading, writing, and editing the standardized data file in the system, and downloading the standardized data file. Therefore, the present invention also proposes a measurement and control data interaction method based on standardized files, which includes the following steps:
[0160] 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;
[0161] S200, decompressing the standardized data file to obtain the main file, the description file and at least one data file;
[0162] 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;
[0163] S400, save the file, update the file server and update the database record;
[0164] 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;
[0165] S600: Based on the front-end operation, update the application type, description file information and data file information;
[0166] S700, save the file, update the file server and update the database record;
[0167] 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;
[0168] 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 a file server, and perform a download operation.
[0169] According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:
[0170] The measurement and control 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.
[0171] 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.
[0172] 7, 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 the main file, the description file, and at least one data file.
[0173] Further, referring to FIG. 7 , the step S200 further includes:
[0174] S210: If the master file is an encrypted file, decrypt the master file using a preset private key;
[0175] 7 , the step S300 further includes:
[0176] 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;
[0177] 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.
[0178] Further, referring to FIG8 , the step S400 includes:
[0179] S410, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0180] 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.
[0181] 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.
[0182] Further, referring to FIG. 9 , step S700 includes:
[0183] S710, saving the standardized data file, the master file, the description file and at least one of the data files to a file server;
[0184] 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.
[0185] Further, referring to FIG. 10 , the step S800 includes:
[0186] 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;
[0187] S820. Regenerate the master file and description file and save them to the file server.
[0188] Further, referring to FIG. 11 , step S900 includes:
[0189] S910, encrypting description files and data files;
[0190] S920, after updating the encryption information to the master file, encrypt the master file;
[0191] 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;
[0192] S940: Execute a download operation to download the corresponding file in the file server to the front end.
[0193] 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.
[0194] 12 , the present invention further proposes a device for interactive measurement and control data based on standardized files, for implementing a method for interactive measurement and control data based on standardized files, characterized in that the device comprises:
[0195] File server, used to store files;
[0196] Database, used to store file information;
[0197] 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.
[0198] 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.
[0199] The present invention also provides a computer-readable storage medium having program instructions stored thereon. When the program instructions are executed by a processor, a measurement and control data interaction method based on standardized files is implemented.
[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 method for generating standardized data files based on measurement and control applications, characterized in that: The method comprises the following steps: S100, obtaining at least one data file, extracting file information of each data file respectively, and assigning an identifier to each data file; 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; 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; The step S200 further includes encrypting the data file and the description file using a symmetric encryption algorithm; S300, establishing a master file, wherein the master file includes a data file information segment and a description file information segment; The step S300 further includes: Write the file information, identifiers and data file encryption information of all data files into the data file information segment of the master file, and write the file name, type and description file encryption information of the description file into the description file information segment; If the master file contains key information, encrypt the master file using an asymmetric encryption algorithm based on the public key; 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; S500: compress the standardized data file to obtain a compressed file, and modify the extension of the compressed file.
2. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: The file information of the data file includes the file name and the file type.
3. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: The format of the data file includes a csv format, and the format of the description file includes a json format, an xml format, or a yml format.
4. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: The standardized data file is compressed based on a zip algorithm.
5. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: The step S500 further includes: modifying the extension of the compressed file to mdf.
6. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: The data file is one or more data files obtained by collecting or exporting data from the test equipment. The multiple data files are named with different names, and 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.
7. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: There is no predefined file name for the description file. You need to customize the name and make sure it is unique from other files. The description file records the following contents according to the predefined data structure of the application: the relationship between the various data files, the way to parse the various data files, and the status of the application of the standardized data file mdf file; The description file content may optionally be encrypted using a symmetric encryption algorithm.
8. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: The file name of the main file is uniformly defined as app, and the main file has no file name extension; the main file is based on the predefined main 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 main file content contains key information, the main file is encrypted using an asymmetric algorithm using a public key.
9. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: Methods for obtaining standardized data files include generating standardized data files directly from test equipment or generating standardized data files through the system by importing data files into the system. The original data files generated by the test equipment include wav, csv, xls, xlsx, mosd and other file formats.
10. The method for generating a standardized data file based on measurement and control applications according to claim 4, characterized in that: The standardized data file also includes setting a compression password when using zip compression.
11. The method for generating a standardized data file based on measurement and control applications according to claim 1, characterized in that: In step S200, the encryption and decryption process includes the following steps: (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.
12. A method for interactive measurement and control data based on standardized files, the method comprising 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; 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 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; 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; 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; 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.
13. The method for interactive measurement and control data based on standardized files according to claim 12, 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.
14. The method for interactive measurement and control data based on standardized files according to claim 12, characterized in that: 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 the records of the database, wherein the records of the database being updated include updating the application type of the standardized data file, the description file content, and the path of at least one of the data files.
15. The method for interactive measurement and control data based on standardized files according to claim 12, characterized in that: 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: 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.
16. The method for interactive measurement and control data based on standardized files according to claim 12, 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. 17 . A computer-readable storage medium having program instructions stored thereon, wherein the program instructions implement the method according to claim 1 when executed by a processor.
Citation Information
Patent Citations
Statistics data integration method and system
CN106547918A
Generation method of MDF4 format file and automobile remote measurement equipment
CN113392148A
Test data cloud system and method
CN116775490A
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