Movatterモバイル変換


[0]ホーム

URL:


CN116795793A - Data interaction method, device and storage medium based on standardized files - Google Patents

Data interaction method, device and storage medium based on standardized files
Download PDF

Info

Publication number
CN116795793A
CN116795793ACN202310762435.9ACN202310762435ACN116795793ACN 116795793 ACN116795793 ACN 116795793ACN 202310762435 ACN202310762435 ACN 202310762435ACN 116795793 ACN116795793 ACN 116795793A
Authority
CN
China
Prior art keywords
file
data
files
standardized
description
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310762435.9A
Other languages
Chinese (zh)
Other versions
CN116795793B (en
Inventor
李明超
陈英武
周毅峰
孙博
曾令军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Jingshi Measurement And Control Technology Co ltd
Original Assignee
Zhuhai Jingshi Measurement And Control Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Jingshi Measurement And Control Technology Co ltdfiledCriticalZhuhai Jingshi Measurement And Control Technology Co ltd
Priority to CN202410462270.8ApriorityCriticalpatent/CN118349524B/en
Priority to CN202310762435.9Aprioritypatent/CN116795793B/en
Publication of CN116795793ApublicationCriticalpatent/CN116795793A/en
Application grantedgrantedCritical
Publication of CN116795793BpublicationCriticalpatent/CN116795793B/en
Priority to PCT/CN2024/101132prioritypatent/WO2025002082A1/en
Priority to PCT/CN2024/101130prioritypatent/WO2025002080A1/en
Priority to PCT/CN2024/101131prioritypatent/WO2025002081A1/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明涉及基于标准化文件的数据交互方法、装置及存储介质,其中方法包括:获取标准化数据文件;解压缩所述标准化数据文件;解释所述主文件;保存文件,更新文件服务器和更新数据库的记录;基于前端的读写请求,从数据库或文件服务器读取信息;基于前端的操作,更新信息;基于前端的文件下载请求,从数据库和文件服务器中生成文件并执行下载操作。本发明可以实现对不同类型的测试文件定义了标准格式,针对各种设备产生的原始数据设计了相应的解析程序,然后转换成标准格式,通过统一的平台对标准格式的文件进行读写编辑,方便工作人员调用测试文件和对文件进行分析处理。

The invention relates to a data interaction method, device and storage medium based on standardized files, wherein the method includes: obtaining standardized data files; decompressing the standardized data files; interpreting the main files; saving files, updating file servers and updating database records ; Based on front-end read and write requests, read information from the database or file server; Front-end-based operations, update information; Based on front-end file download requests, generate files from the database and file server and perform download operations. The present invention can define standard formats for different types of test files, design corresponding parsing programs for raw data generated by various devices, and then convert them into standard formats, and read, write, and edit files in standard formats through a unified platform. It is convenient for staff to call test files and analyze and process files.

Description

Translated fromChinese
基于标准化文件的数据交互方法、装置及存储介质Data interaction method, device and storage medium based on standardized files

技术领域Technical field

本发明属于测试技术领域,特别涉及基于标准化文件的数据交互方法、装置及存储介质。The invention belongs to the field of testing technology, and particularly relates to data interaction methods, devices and storage media based on standardized files.

背景技术Background technique

在测试领域存在多种的测试文件,常见的测试文件有数据文件、波形文件等,而且不同测试设备生成的文件格式千差万别,工作人员需要在不同设备间获取不同的测试文件,针对不同的测试文件使用不用的解释程序或软件进行解释处理,当测试设备和测试文件数量种类繁多时,不便于数据的集中管理。There are a variety of test files in the testing field. Common test files include data files, waveform files, etc., and the file formats generated by different test equipment vary widely. Workers need to obtain different test files from different equipment to target different test files. Using different interpreters or software for interpretation processing makes centralized management of data inconvenient when there are a wide variety of test equipment and test files.

发明内容Contents of the invention

本发明提供基于标准化文件的数据交互方法、装置及存储介质,旨在至少解决现有技术中存在的技术问题之一。本发明提出的基于标准化文件的数据交互方法、装置及存储介质,可以实现对不同类型的测试文件定义了标准格式,针对各种设备产生的原始数据设计了相应的解析程序,然后转换成标准格式,通过统一的平台对标准格式的文件进行读写编辑,方便工作人员调用测试文件和对文件进行分析处理。The present invention provides a data interaction method, device and storage medium based on standardized files, aiming to solve at least one of the technical problems existing in the prior art. The data interaction method, device and storage medium based on standardized files proposed by the present invention can define standard formats for different types of test files, design corresponding parsing programs for the original data generated by various devices, and then convert them into standard formats. , read, write and edit files in standard formats through a unified platform, making it convenient for staff to call test files and analyze and process files.

本发明的技术方案涉及基于标准化文件的数据交互方法、装置及存储介质,所述方法包括以下步骤:The technical solution of the present invention relates to a data interaction method, device and storage medium based on standardized files. The method includes the following steps:

S100、获取标准化数据文件,所述标准化数据文件为由主文件、描述文件和至少一个数据文件通过压缩的方式构成;S100. Obtain a standardized data file. The standardized data file is composed of a main file, a description file and at least one data file through compression;

S200、解压缩所述标准化数据文件,得到所述主文件、描述文件和至少一个数据文件;S200. Decompress the standardized data file to obtain the main file, description file and at least one data file;

S300、解释所述主文件,得到所述标准化数据文件的应用程序类型、描述文件信息和数据文件信息,所述应用程序类型为期望用于打开所述数据文件的应用程序的类型或预设的应用程序名,所述描述文件信息包括描述文件加密信息,所述数据文件信息包括数据文件加密信息;S300. Interpret the main file to obtain the application type, description file information and data file information of the standardized data file. The application type is the type of application expected to be used to open the data file or a preset one. Application name, the description file information includes description file encryption information, and the data file information includes data file encryption information;

S400、保存文件,更新文件服务器和更新数据库的记录;S400. Save the file, update the file server and update the database records;

S500、基于前端的读写请求,从数据库或文件服务器读取所述标准化数据文件的应用程序类型、描述文件信息和数据文件信息;S500: Based on the front-end read and write request, read the application type, description file information and data file information of the standardized data file from the database or file server;

S600、基于前端的操作,更新应用程序类型、描述文件信息和数据文件信息;S700、保存文件,更新文件服务器和更新数据库的记录;S600, based on the front-end operation, update the application type, description file information and data file information; S700, save the file, update the file server and update the database records;

S800、基于前端的文件下载请求,从数据库和文件服务器中生成主文件、描述文件和数据文件;S800, based on the front-end file download request, generates the main file, description file and data file from the database and file server;

S900、加密主文件、描述文件和数据文件,把加密后的主文件、描述文件和数据文件压缩为标准化数据文件,保存所有文件到文件服务器并执行下载操作。S900: Encrypt the main file, description file and data file, compress the encrypted main file, description file and data file into a standardized data file, save all files to the file server and perform a download operation.

进一步,所述步骤S200中,通过zip算法对所述标准化数据文件进行解压缩。Further, in step S200, the standardized data file is decompressed through a zip algorithm.

进一步,所述步骤S200后还包括:Further, after step S200, it also includes:

S210、若所述主文件为加密文件,则通过预设的私钥解密所述主文件;S210. If the main file is an encrypted file, decrypt the main file through the preset private key;

进一步,所述步骤S300后还包括:Further, after step S300, it also includes:

S310、基于所述描述文件加密信息,判断是否需要解密所述描述文件,如果需要解密所述描述文件,则解密所述描述文件;S310. Based on the encryption information of the description file, determine whether the description file needs to be decrypted. If the description file needs to be decrypted, decrypt the description file;

S320、基于所述数据文件加密信息,判断是否需要解密所述数据文件,如果需要解密所述数据文件,则解密所述数据文件。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.

进一步,所述步骤S400包括:Further, the step S400 includes:

S410、保存所述标准化数据文件、所述主文件、所述描述文件和至少一个所述数据文件到文件服务器;S410. Save the standardized data file, the main file, the description file and at least one data file to a file server;

S420、更新数据库的记录,所述更新数据库的记录包括更新所述标准化数据文件的应用程序类型、描述文件内容和至少一个所述数据文件的路径。S420. Update the records of the database. The updating of the records of the database includes updating the application type of the standardized data file, the content of the description file, and the path of at least one of the data files.

进一步,所述步骤S700包括:Further, the step S700 includes:

S710、保存所述标准化数据文件、所述主文件、所述描述文件和至少一个所述数据文件到文件服务器;S710. Save the standardized data file, the main file, the description file and at least one data file to a file server;

S720、更新数据库的记录,所述更新数据库的记录包括更新所述标准化数据文件的应用程序类型、描述文件内容和至少一个所述数据文件的路径。S720. Update the records of the database. The updating of the records of the database includes updating the application type of the standardized data file, the content of the description file, and the path of at least one of the data files.

进一步,所述步骤S800包括:Further, the step S800 includes:

S810、从数据库中读取应用程序类型、所有数据文件的文件名、文件的类型、文件的标识符和描述文件信息;S810. Read the application type, file names of all data files, file types, file identifiers and description file information from the database;

S820、重新生成主文件和描述文件并保存到文件服务器。S820. Regenerate the main file and description file and save them to the file server.

进一步,所述步骤S900包括:Further, the step S900 includes:

S910、加密描述文件和数据文件;S910, encrypt description files and data files;

S920、把加密信息更新到主文件后对主文件进行加密;S920. Update the encryption information to the main file and then encrypt the main file;

S930、通过zip压缩的方式对主文件、描述文件和所有数据文件进行压缩,得到标准化数据文件,保存标准化数据文件、主文件、描述文件和所有数据文件到文件服务器;S930. Compress the main file, description files and all data files through zip compression to obtain standardized data files, and save the standardized data files, main files, description files and all data files to the file server;

S940、执行下载操作,将文件服务器内的相应文件下载到前端。S940. Execute the download operation and download the corresponding file in the file server to the front end.

本发明还提出一种标准化文件的测控数据交互装置,用于实现基于标准化文件的数据交互方法,其特征在于,所述装置包括:The present invention also proposes a standardized file measurement and control data interaction device for implementing a data interaction method based on standardized files, which is characterized in that the device includes:

文件服务器,用于存储文件;File server, used to store files;

数据库,用于保存文件的信息;Database, used to save file information;

处理装置,用于生成和处理描述文件、主文件和标准化数据文件,所述文件服务器和所述数据库分别与所述处理装置连接。A processing device is used to generate and process description files, master files and standardized data files. The file server and the database are respectively connected to the processing device.

本发明还提出一种计算机可读存储介质,其上储存有程序指令,所述程序指令被处理器执行时实施基于标准化文件的数据交互方法。The present invention also proposes a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, a data interaction method based on standardized files is implemented.

根据本发明的一些实施例,本发明的有益效果如下:According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:

基于标准化文件的数据交互方法、装置及存储介质可以实现对不同类型的测试文件定义了标准格式,针对各种设备产生的原始数据设计了相应的解析程序,然后转换成标准格式,通过统一的平台对标准格式的文件进行读写编辑,方便工作人员调用测试文件和对文件进行分析处理。Data interaction methods, devices and storage media based on standardized files 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 through a unified platform Read, write and edit files in standard formats to facilitate staff to call test files and analyze and process files.

此外,本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additionally, additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of the drawings

图1是根据本发明的基于标准化文件的数据交互方法的流程图。Figure 1 is a flow chart of a data interaction method based on standardized files according to the present invention.

图2是根据本发明的基于标准化文件的数据交互方法的步骤S400保存文件,更新文件服务器和更新数据库的记录的流程图。Figure 2 is a flow chart of step S400 of saving files, updating file servers and updating records in the database according to the standardized file-based data interaction method of the present invention.

图3是根据本发明的基于标准化文件的数据交互方法的步骤S700保存文件,更新文件服务器和更新数据库的记录的流程图。Figure 3 is a flow chart of step S700 of saving files, updating file servers and updating records in the database according to the standardized file-based data interaction method of the present invention.

图4是根据本发明的基于标准化文件的数据交互方法的步骤S800基于前端的文件下载请求,从数据库和文件服务器中生成主文件、描述文件和数据文件的流程图。Figure 4 is a flow chart of step S800 of the standardized file-based data interaction method of the present invention, in which the main file, description file and data file are generated from the database and file server based on the front-end file download request.

图5是根据本发明的基于标准化文件的数据交互方法的步骤S900加密主文件、描述文件和数据文件,把加密后的主文件、描述文件和数据文件压缩为标准化数据文件,保存所有文件到文件服务器并执行下载操作的流程图。Figure 5 is step S900 of the data interaction method based on standardized files according to the present invention. Encrypt the main file, description file and data file, compress the encrypted main file, description file and data file into a standardized data file, and save all files to files. Server and performs the flow chart of the download operation.

图6是根据本发明的基于标准化文件的测控数据交互装置的示意图。Figure 6 is a schematic diagram of a measurement and control data interaction device based on standardized files according to the present invention.

图7是根据本发明的标准化数据文件生成方法的流程图。Figure 7 is a flow chart of a standardized data file generating method according to the present invention.

图8是根据本发明的标准化数据文件结构示意图。Figure 8 is a schematic diagram of the structure of a standardized data file according to the present invention.

图9是根据本发明的一个实施例的主文件示意图。Figure 9 is a schematic diagram of a master file according to an embodiment of the present invention.

图10是根据本发明的一个实施例的描述文件示意图。Figure 10 is a schematic diagram of a description file according to an embodiment of the present invention.

图11是根据本发明的标准化数据文件生成装置的示意图。Figure 11 is a schematic diagram of a standardized data file generating device according to the present invention.

图12是根据本发明的一个实施例的标准化数据文件生成方法的流程图。Figure 12 is a flow chart of a standardized data file generating method according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

以下将结合实施例和附图对本发明的构思、具体结构及产生的技术效果进行清楚、完整的描述,以充分地理解本发明的目的、方案和效果。The following will give a clear and complete description of the concept, specific structure and technical effects of the present invention in conjunction with the embodiments and drawings, so as to fully understand the purpose, solutions and effects of the present invention.

需要说明的是,如无特殊说明,当某一特征被称为“固定”、“连接”在另一个特征,它可以直接固定、连接在另一个特征上,也可以间接地固定、连接在另一个特征上。本文所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。此外,除非另有定义,本文所使用的所有的技术和科学术语与本技术领域的技术人员通常理解的含义相同。本文说明书中所使用的术语只是为了描述具体的实施例,而不是为了限制本发明。本文所使用的术语“和/或”包括一个或多个相关的所列项目的任意的组合。It should be noted that, unless otherwise specified, when a feature is said to be "fixed" or "connected" to another feature, it can be directly fixed or connected to another feature, or it can be indirectly fixed or connected to another feature. on a characteristic. As used herein, the singular forms "a," "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description herein is for describing specific embodiments only and is not intended to limit the invention. As used herein, the term "and/or" includes any combination of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种元件,但这些元件不应限于这些术语。这些术语仅用来将同一类型的元件彼此区分开。例如,在不脱离本公开范围的情况下,第一元件也可以被称为第二元件,类似地,第二元件也可以被称为第一元件。本文所提供的任何以及所有实例或示例性语言(“例如”、“如”等)的使用仅意图更好地说明本发明的实施例,并且除非另外要求,否则不会对本发明的范围施加限制。此外,本文所采用的行业术语“位姿”是指某个元件相对于空间坐标系的位置和姿态。It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, 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, a first element could be termed a second element, and similarly, a second element could be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language ("such as," "such as," etc.) provided herein is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed. . In addition, the industry term "pose" used in this article refers to the position and attitude of a certain component relative to the spatial coordinate system.

参照图1至图6,基于标准化文件的数据交互方法、装置及存储介质,所述方法包括以下步骤:Referring to Figures 1 to 6, a data interaction method, device and storage medium based on standardized files, the method includes the following steps:

S100、获取标准化数据文件,所述标准化数据文件为由主文件、描述文件和至少一个数据文件通过压缩的方式构成;S100. Obtain a standardized data file. The standardized data file is composed of a main file, a description file and at least one data file through compression;

S200、解压缩所述标准化数据文件,得到所述主文件、描述文件和至少一个数据文件;S200. Decompress the standardized data file to obtain the main file, description file and at least one data file;

S300、解释所述主文件,得到所述标准化数据文件的应用程序类型、描述文件信息和数据文件信息,所述应用程序类型为期望用于打开所述数据文件的应用程序的类型或预设的应用程序名,所述描述文件信息包括描述文件加密信息,所述数据文件信息包括数据文件加密信息;S300. Interpret the main file to obtain the application type, description file information and data file information of the standardized data file. The application type is the type of application expected to be used to open the data file or a preset one. Application name, the description file information includes description file encryption information, and the data file information includes data file encryption information;

S400、保存文件,更新文件服务器和更新数据库的记录;S400. Save the file, update the file server and update the database records;

S500、基于前端的读写请求,从数据库或文件服务器读取所述标准化数据文件的应用程序类型、描述文件信息和数据文件信息;S500: Based on the front-end read and write request, read the application type, description file information and data file information of the standardized data file from the database or file server;

S600、基于前端的操作,更新应用程序类型、描述文件信息和数据文件信息;S700、保存文件,更新文件服务器和更新数据库的记录;S600, based on the front-end operation, update the application type, description file information and data file information; S700, save the file, update the file server and update the database records;

S800、基于前端的文件下载请求,从数据库和文件服务器中生成主文件、描述文件和数据文件;S800, based on the front-end file download request, generates the main file, description file and data file from the database and file server;

S900、加密主文件、描述文件和数据文件,把加密后的主文件、描述文件和数据文件压缩为标准化数据文件,保存所有文件到文件服务器并执行下载操作。S900: Encrypt the main file, description file and data file, compress the encrypted main file, description file and data file into a standardized data file, save all files to the file server and perform a download operation.

根据本发明的一些实施例,本发明的有益效果如下:According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:

基于标准化文件的数据交互方法、装置及存储介质可以实现对不同类型的测试文件定义了标准格式,针对各种设备产生的原始数据设计了相应的解析程序,然后转换成标准格式,通过统一的平台对标准格式的文件进行读写编辑,方便工作人员调用测试文件和对文件进行分析处理。Data interaction methods, devices and storage media based on standardized files 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 through a unified platform Read, write and edit files in standard formats to facilitate staff to call test files and analyze and process files.

具体地,获取标准化数据文件的方法包括直接从测试设备生成标准化数据文件或者通过将数据文件导入系统,通过系统生成标准化数据文件。所述测试设备生成的原始数据文件包括wav、csv、xls、xlsx、mosd等文件格式。Specifically, the method of obtaining the standardized data file includes directly generating the standardized data file from the test equipment or by importing the data file into the system and generating the standardized data file through the system. The original data files generated by the test equipment include wav, csv, xls, xlsx, mosd and other file formats.

进一步,参照图1,所述步骤S200中,通过zip算法对所述标准化数据文件进行解压缩。系统通过调用zip的方式从标准化数据文件中提取出所有文件,包括主文件、描述文件以及至少一个数据文件。Further, referring to Figure 1, in step S200, the standardized data file is decompressed through a zip algorithm. The system extracts all files from the standardized data file by calling zip, including the main file, description file and at least one data file.

在一些实施例中,也可以使用其他压缩算法进行压缩和解压缩。In some embodiments, other compression algorithms may also be used for compression and decompression.

进一步,参照图1,所述步骤S200后还包括:Further, referring to Figure 1, the step S200 also includes:

S210、若所述主文件为加密文件,则通过预设的私钥解密所述主文件;S210. If the main file is an encrypted file, decrypt the main file through the preset private key;

进一步,参照图1,所述步骤S300后还包括:Further, referring to Figure 1, the step S300 also includes:

S310、基于所述描述文件加密信息,判断是否需要解密所述描述文件,如果需要解密所述描述文件,则解密所述描述文件;S310. Based on the encryption information of the description file, determine whether the description file needs to be decrypted. If the description file needs to be decrypted, decrypt the description file;

S320、基于所述数据文件加密信息,判断是否需要解密所述数据文件,如果需要解密所述数据文件,则解密所述数据文件。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.

进一步,参照图2,所述步骤S400包括:Further, referring to Figure 2, the step S400 includes:

S410、保存所述标准化数据文件、所述主文件、所述描述文件和至少一个所述数据文件到文件服务器;S410. Save the standardized data file, the main file, the description file and at least one data file to a file server;

S420、更新数据库的记录,所述更新数据库的记录包括更新所述标准化数据文件的应用程序类型、描述文件内容和至少一个所述数据文件的路径。S420. Update the records of the database. The updating of the records of the database includes updating the application type of the standardized data file, the content of the description file, and the path of at least one of the data files.

具体地,步骤S100到步骤S420为系统接收标准化数据文件并对接收到的标准化数据文件进行处理的方法步骤,其目的在于提取测试设备的测试数据文件或标准化数据文件的信息,并将信息存储在数据库内,将相应的数据文件、描述文件和主文件存储在文件服务器的过程,以便于用户调用、修改更新和下载相应的文件。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 In the database, the process of storing the corresponding data files, description files and master files in the file server makes it easier for users to call, modify, update and download the corresponding files.

进一步,参照图3,所述步骤S700包括:Further, referring to Figure 3, the step S700 includes:

S710、保存所述标准化数据文件、所述主文件、所述描述文件和至少一个所述数据文件到文件服务器;S710. Save the standardized data file, the main file, the description file and at least one data file to a file server;

S720、更新数据库的记录,所述更新数据库的记录包括更新所述标准化数据文件的应用程序类型、描述文件内容和至少一个所述数据文件的路径。S720. Update the records of the database. The updating of the records of the database includes updating the application type of the standardized data file, the content of the description file, and the path of at least one of the data files.

进一步,参照图4,所述步骤S800包括:Further, referring to Figure 4, the step S800 includes:

S810、从数据库中读取应用程序类型、所有数据文件的文件名、文件的类型、文件的标识符和描述文件信息;S810. Read the application type, file names of all data files, file types, file identifiers and description file information from the database;

S820、重新生成主文件和描述文件并保存到文件服务器。S820. Regenerate the main file and description file and save them to the file server.

进一步,参照图5,所述步骤S900包括:Further, referring to Figure 5, the step S900 includes:

S910、加密描述文件和数据文件;S910, encrypt description files and data files;

S920、把加密信息更新到主文件后对主文件进行加密;S920. Update the encryption information to the main file and then encrypt the main file;

S930、通过zip压缩的方式对主文件、描述文件和所有数据文件进行压缩,得到标准化数据文件,保存标准化数据文件、主文件、描述文件和所有数据文件到文件服务器;S930. Compress the main file, description files and all data files through zip compression to obtain standardized data files, and save the standardized data files, main files, description files and all data files to the file server;

S940、执行下载操作,将文件服务器内的相应文件下载到前端。S940. Execute the download operation and download the corresponding file in the file server to the front end.

具体地,步骤S500到步骤S930为系统相应前端读写请求和文件下载请求的执行步骤,其目的在于为用户提供一个读写编辑数据文件的平台,并对最新的数据文件提供下载的功能。Specifically, steps S500 to S930 are the execution steps of the system's corresponding front-end read and write requests and file download requests. The purpose is to provide users with a platform for reading, writing and editing data files, and to provide a download function for the latest data files.

参照图6,本发明还提出一种标准化文件的测控数据交互装置,用于实现基于标准化文件的数据交互方法,其特征在于,所述装置包括:Referring to Figure 6, the present invention also proposes a standardized file measurement and control data interaction device for implementing a data interaction method based on standardized files, which is characterized in that the device includes:

文件服务器,用于存储文件;File server, used to store files;

数据库,用于保存文件的信息;Database, used to save file information;

处理装置,用于生成和处理描述文件、主文件和标准化数据文件,所述文件服务器和所述数据库分别与所述处理装置连接。A processing device is used to generate and process description files, master files and standardized data files. The file server and the database are respectively connected to the processing device.

具体地,前端可以是用户应用程序,所述用户应用程序包括上位机软件、手机APP和网页等形式,前端通过连接所述处理装置上传、请求数据和下载数据,所述处理装置通过与所述数据库和所述文件服务器的连接,实时更新信息并对外提供读写编辑、上传和下载的服务。Specifically, the front end can be a user application program, which includes host computer software, mobile APP, web page, etc. The front end uploads, requests data and downloads data by connecting to the processing device, and the processing device communicates with the The connection between the database and the file server updates information in real time and provides external reading, writing, editing, uploading and downloading services.

本发明还提出一种计算机可读存储介质,其上储存有程序指令,所述程序指令被处理器执行时实施基于标准化文件的数据交互方法。The present invention also proposes a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, a data interaction method based on standardized files is implemented.

此外,参照图7至图11,如果从测试设备中只能获取到一个或多个数据文件,为了将一个或多个数据文件整合为标准化数据文件,本发明实施例还提供了一种标准化数据文件生成方法、装置及存储介质,参照图7,所述方法包括以下步骤:In addition, referring to Figures 7 to 11, if only one or more data files can be obtained from the test equipment, in order to integrate one or more data files into a standardized data file, an embodiment of the present invention also provides a standardized data File generation method, device and storage medium, referring to Figure 7, the method includes the following steps:

S100、获取至少一个数据文件,分别提取每一个数据文件的文件信息,分配每一个数据文件的标识符;S100. Obtain at least one data file, extract the file information of each data file respectively, and assign an identifier to each data file;

S200、建立描述文件,基于期望打开所述数据文件的应用程序预定义的数据结构,将所述数据文件的解释方式、相互关系和应用程序状态写入描述文件;S200. Create a description file, and write the interpretation method, 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;

S300、建立主文件,所述主文件包括数据文件信息段和描述文件信息段;S300. Create a master file, which includes a data file information segment and a description file information segment;

S400、建立标准化数据文件,将期望打开所述标准化数据文件的应用程序类型写入所述主文件的应用程序类型信息段,将主文件、描述文件和数据文件打包写入标准化数据文件;S400. Create a standardized data file, write the application type expected to open the standardized data file into the application type information section of the main file, and package the main file, description file and data file into the standardized data file;

S500、压缩所述标准化数据文件得到压缩文件,修改所述压缩文件的扩展名。S500: Compress the standardized data file to obtain a compressed file, and modify the extension of the compressed file.

具体地,对于步骤S100,获取至少一个数据文件包括从测试设备上获取数据文件,或者通过特定的文件系统、文件服务器中下载的方式获取文件。Specifically, for step S100, obtaining at least one data file includes obtaining the data file from a test device, or obtaining the file by downloading from a specific file system or file server.

根据本发明的一些实施例,本发明的有益效果如下:According to some embodiments of the present invention, the beneficial effects of the present invention are as follows:

标准化数据文件生成方法、装置及存储介质可以实现对不同类型的测试文件定义了标准格式,针对各种设备产生的原始数据设计了相应的解析程序,然后转换成标准格式。Standardized data file generation methods, devices and storage media 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.

进一步,参照图7至图10,所述数据文件的文件信息包括文件名和文件类型。Further, referring to Figures 7 to 10, the file information of the data file includes file name and file type.

进一步,参照图7至图10,所述数据文件的格式为csv格式,所述描述文件的格式包括json格式或xml格式或yml格式。Further, referring to Figures 7 to 10, the format of the data file is csv format, and the format of the description file includes json format, xml format, or yml format.

进一步,参照图7至图10,所述步骤S200后还包括,将所述数据文件和所述描述文件通过对称加密算法进行加密。在一些实施例中,将所述数据文件和所述描述文件通过对称加密算法进行加密后把描述文件的文件名、文件类型、解密类型和密钥等信息写入所述主文件。Further, referring to FIGS. 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, the data file and the description file are encrypted using a symmetric encryption algorithm, and then the file name, file type, decryption type, key and other information of the description file are written into the main file.

进一步,参照图7至图10,所述步骤S300后还包括,,将所有数据文件的文件信息、标识符和数据文件加密信息写入所述主文件的数据文件信息段,将描述文件的文件名、类型和描述文件加密信息写入描述文件信息段。Further, referring to Figures 7 to 10, the step S300 also includes writing the file information, identifiers and data file encryption information of all data files into the data file information section of the main file, and writing the file description file into the data file information section of the main file. The name, type and description file encryption information are written into the description file information section.

进一步,参照图7至图10,若所述主文件中含有密钥信息,对所述主文件基于公钥进行非对称加密算法进行加密。在一些实施例中,当主文件包含密钥信息时,则使用公钥加密所述主文件。Further, referring to Figures 7 to 10, if the master file contains key information, the master file is encrypted using an asymmetric encryption algorithm based on the public key. In some embodiments, when the master file contains key information, the public key is used to encrypt the master file.

进一步,参照图7至图10,基于zip算法对所述标准化数据文件进行压缩。在一些实施例中,将所有数据文件、描述文件、主文件通过zip压缩为一个文件,压缩后的文件的格式为mdf。Further, referring to Figures 7 to 10, the standardized data file is compressed based on the zip algorithm. In some embodiments, all data files, description files, and main files are compressed into one file through zip, and the format of the compressed file is mdf.

在一些实施例中,为确保文件安全,标准化数据文件(mdf文件)内的文件,可选地进行加密,加密及解密流程如下:In some embodiments, in order to ensure file security, the files in the standardized data file (mdf file) are optionally encrypted. The encryption and decryption process is as follows:

(1)对主文件以外的其余文件,可选地使用对称加密算法对每个文件进行加密,并将密钥及加密类型写入到主文件中。(1) For the remaining files other than the main file, optionally use a symmetric encryption algorithm to encrypt each file, and write the key and encryption type into the main file.

(2)对主文件使用系统颁发的公钥进行加密,此时只有系统能用私钥对主文件解密。(2) Encrypt the main file using the public key issued by the system. At this time, only the system can decrypt the main file using the private key.

(3)标准化数据文件(mdf文件)上传到系统中时,系统使用zip提取出所有文件后,使用私钥对主文件解密,从主文件中读取到其余文件的加密类型及密钥信息,并用这些信息对其他文件进行解密。(3) When the standardized data file (mdf file) is uploaded to the system, the system uses zip to extract all the files, uses the private key to decrypt the main file, and reads the encryption type and key information of the remaining files from the main file. And use this information to decrypt other files.

此外,对称加密算法运行速度非常快,非对称加密算法速度则较慢,但优势是可以提供公钥给用户,这里使用两者结合的方式可以提供非常灵活的安全保障。In addition, the symmetric encryption algorithm runs very fast, while the asymmetric encryption algorithm is slower, but the advantage is that it can provide the public key to the user. The combination of the two can provide a very flexible security guarantee.

进一步,参照图7至图10,所述步骤S600还包括:修改所述压缩文件的扩展名为mdf。Further, referring to Figures 7 to 10, the step S600 also includes: modifying the extension of the compressed file to mdf.

具体地,在一个具体的实施例中,所述的一种标准化数据文件生成方法,当生成的标准化数据文件MDF为无加密时,具体的方法的流程如下:Specifically, in a specific embodiment of the method for generating a standardized data file, when the generated standardized data file MDF is unencrypted, the specific method flow is as follows:

(1)采集3个数据文件,分别是A.csv、B.csv、C.csv,分别为其分配标识符为A、B、C。(1) Collect three data files, namely A.csv, B.csv, and C.csv, and assign identifiers A, B, and C to them respectively.

(2)新建1个描述文件,将描述文件命名为Desc,将A、B、C三个文件的解析方式与相互关系,按应用程序预定义的数据结构写入到描述文件(Desc文件)。(2) Create a new description file, name the description file Desc, and write the parsing methods and mutual relationships of the three files A, B, and C into the description file (Desc file) according to the data structure predefined by the application.

(3)将name=A.csv、id=A、type=csv写入到主文件中数据文件信息段;(3) Write name=A.csv, id=A, type=csv to the data file information section in the main file;

将name=B.csv、id=B、type=csv写入到主文件中数据文件信息段;Write name=B.csv, id=B, type=csv to the data file information section in the main file;

将name=C.csv、id=C、type=csv写入到主文件中数据文件信息段。Write name=C.csv, id=C, type=csv to the data file information section in the main file.

(4)将name=Desc、type=json写入到主文件中描述文件信息段。(4) Write name=Desc and type=json to the main file describing the file information section.

(5)将应用程序类型type=TYPE_ENTHALPY_DIFFERENCE_LAB写入到主文件中应用程序类型的信息段。(5) Write application type type=TYPE_ENTHALPY_DIFFERENCE_LAB to the application type information segment in the main file.

(6)将上述所有文件,通过zip进行压缩,得到压缩文件,将压缩文件扩展名设置为mdf。(6) Compress all the above files through zip to obtain a compressed file, and set the compressed file extension to mdf.

具体地,在一个具体的实施例中,所述的一种标准化数据文件生成方法,当生成的标准化数据文件MDF为带加密时,具体的方法的流程如下:Specifically, in a specific embodiment of the method for generating a standardized data file, when the generated standardized data file MDF is encrypted, the specific method flow is as follows:

(1)采集到3个数据文件,分别是A.csv、B.csv、C.csv,分别为其分配标识符为A、B、C。(1) Three data files were collected, namely A.csv, B.csv, and C.csv, with identifiers A, B, and C assigned to them respectively.

(2)新建1个描述文件,将描述文件命名为Desc,将A、B、C三个文件的解析方式与相互关系,按应用程序预定义的数据结构写入到描述文件(Desc文件)。(2) Create a new description file, name the description file Desc, and write the parsing methods and mutual relationships of the three files A, B, and C into the description file (Desc file) according to the data structure predefined by the application.

(3)使用对称加密算法,自定义密钥,将3个数据文件和1个描述文件进行加密。(3) Use a symmetric encryption algorithm and a custom key to encrypt 3 data files and 1 description file.

(4)将name=A.csv、id=A、type=csv、crypt=aes256和passwd=“密钥字符串”写入到主文件中数据文件信息段;(4) Write name=A.csv, id=A, type=csv, crypt=aes256 and passwd="key string" into the data file information section in the main file;

将name=B.csv、id=B、type=csv、crypt=aes256和passwd=“密钥字符串”写入到主文件中数据文件信息段;Write name=B.csv, id=B, type=csv, crypt=aes256 and passwd="key string" to the data file information section in the main file;

将name=C.csv、id=C、type=csv、crypt=aes256和passwd=“密钥字符串”写入到主文件中数据文件信息段。Write name=C.csv, id=C, type=csv, crypt=aes256 and passwd="key string" to the data file information section in the main file.

(5)将name=Desc、type=json、crypt=aes256和passwd=“密钥字符串”写入到主文件中描述文件信息段。(5) Write name=Desc, type=json, crypt=aes256 and passwd="key string" to the description file information section in the main file.

(6)将应用程序类型type=TYPE_ENTHALPY_DIFFERENCE_LAB写入导主文件中应用程序类型的信息段。(6) Write the application type type=TYPE_ENTHALPY_DIFFERENCE_LAB into the application type information segment in the host file.

(7)使用颁发的公钥对主文件进行非对称加密。(7) Use the issued public key to asymmetrically encrypt the master file.

(8)将上述所有文件,通过zip进行压缩,得到压缩文件,将压缩文件扩展名设置为mdf。(8) Compress all the above files through zip to obtain a compressed file, and set the compressed file extension to mdf.

在一些实施例中,参照图2至图4,所述标准化数据文件(mdf文件)包括一个主文件、一个描述文件和至少一个数据文件(数据文件1、数据文件2……数据文件n),其中,In some embodiments, referring to Figures 2 to 4, the standardized data file (mdf file) includes a main file, a description file and at least one data file (data file 1, data file 2...data file n), in,

所述主文件包括:版本号、应用程序类型、The main file includes: version number, application type,

描述文件的文件名、类型、加密类型和密钥、Describes the file name, type, encryption type and key,

数据文件1的文件名、类型、标识符、加密类型和密钥、The file name, type, identifier, encryption type and key of data file 1,

数据文件2的文件名、类型、标识符、加密类型和密钥、The file name, type, identifier, encryption type and key of data file 2,

……

数据文件n的文件名、类型、标识符、加密类型和密钥;The file name, type, identifier, encryption type and key of data file n;

所述描述文件包括:数据文件1、数据文件2……数据文件n的相互关系以及解释方式、应用程序状态的接过话数据;The description file includes: the relationship between data file 1, data file 2...data file n, the interpretation method, and the call data of the application status;

所述标准化数据文件(mdf文件)还包括至少一个数据文件:数据文件1、数据文件2……数据文件n。The standardized data file (mdf file) also includes at least one data file: data file 1, data file 2...data file n.

具体地,所述标准化数据文件(mdf文件)是一种安全可控的多文件组合的文件格式,所述标准化数据文件(mdf文件)是使用zip将多个文件压缩而成一个文件,并将文件扩展名定义为mdf。所述标准化数据文件(mdf文件)由3种文件组成,分别是数据文件、描述文件和主文件。Specifically, the standardized data file (mdf file) is a safe and controllable file format that combines multiple files. The standardized data file (mdf file) is compressed into one file using zip, and the The file extension is defined as mdf. The standardized data file (mdf file) consists of three types of files, namely data files, description files and main files.

其中,数据文件是从测试设备采集或导出数据得到一个或多个数据文件,将多个数据文件分别命名为不相同的名字,为每个数据文件分配不同的字符串作为唯一标识符,该标识符在描述文件中唯一确认一个数据文件,数据文件内容可选地可通过对称加密算法进行加密。Among them, the data file is one or more data files collected or exported from the test equipment. The multiple data files are named with different names, and each data file is assigned a different string as a unique identifier. The character uniquely identifies a data file in the description file, and the data file content can optionally be encrypted using a symmetric encryption algorithm.

描述文件无预定义文件名,需自定义名字,并与其余文件命名不重复;描述文件根据预定义的应用程序的数据结构,记录内容包括:记录各个数据文件的相互关系、记录解析各个数据文件的方式和记录标准化数据文件(mdf文件)应用程序的状态;描述文件内容可选地可通过对称加密算法进行加密。The description file does not have a predefined file name and needs to be customized with a name that does not overlap with other file names. The description file is based on the predefined data structure of the application. The recording content includes: recording the relationship between each data file and recording and parsing each data file. A way to record and record the status of an application in a standardized data file (mdf file); the content of the description file can optionally be encrypted by a symmetric encryption algorithm.

主文件的文件名统一定义为“app”,主文件无文件名扩展;主文件根据预定义的主文件数据结构,记录内容包括:记录标准化数据文件(mdf文件)的应用程序类型、记录描述文件的名字、类型、加密信息、记录所有数据文件的名字、类型、标识符、加密信息、如果主文件内容含有密钥信息,则对主文件使用公钥进行非对称算法加密。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 application type of standardized data file (mdf file), recording description file The name, type, encryption information, record the name, type, identifier, encryption information of all data files. If the main file content contains key information, use the public key to encrypt the main file with an asymmetric algorithm.

特别地,构成所述标准化数据文件(mdf文件)还包括容错方法和除zip加密方法外的其他加密方法。In particular, the standardized data file (mdf file) that constitutes it also includes a fault-tolerant method and other encryption methods in addition to the zip encryption method.

所述标准化数据文件(mdf文件)还包括在使用zip压缩时设置压缩密码。The standardized data file (mdf file) also includes setting a compression password when using zip compression.

在一些实施例中,所述主文件可以扩展记录更多信息,包括但不限于:In some embodiments, the master file can be expanded to record more information, including but not limited to:

(1)标准化数据文件(mdf文件)的元数据Metadata,用于快速获得该标准化数据文件(mdf文件)的元数据。(1) Metadata of the standardized data file (mdf file), used to quickly obtain the metadata of the standardized data file (mdf file).

(2)应用程序在预览或编辑标准化数据文件(mdf文件)时对文件添加批注数据,系统可以将这些数据序列化到一个新的数据文件中,主文件记录该数据文件的信息,使标准化数据文件(mdf文件)支持保存批注。(2) The application adds annotation data to the file when previewing or editing the standardized data file (mdf file). The system can serialize these data into a new data file. The main file records the information of the data file, making the standardized data Files (mdf files) support saving comments.

(3)主文件加密的情况下,其内容可以记录其他文件的hash值,用于增加对文件的校验,防止文件被篡改。(3) When the main file is encrypted, its content can record the hash values of other files, which is used to increase the verification of the file and prevent the file from being tampered with.

(4)类似上一点,在主文件中记录其他类型的数据文件信息,由此可以扩展其他不同的功能。(4) Similar to the previous point, recording other types of data file information in the main file can expand other different functions.

针对所述的标准化数据文件生成方法,本发明还提出一种标准化数据文件生成装置,用于实现标准化数据文件生成方法,其特征在于,参照图11,所述装置包括:Regarding the standardized data file generation method, the present invention also proposes a standardized data file generation device for implementing the standardized data file generation method, which is characterized in that, with reference to Figure 11, the device includes:

文件采集装置,用于采集数据文件并提取所述数据文件的文件信息;A file collection device used to collect data files and extract file information of the data files;

文件处理装置,用于生成描述文件、主文件和标准化数据文件。File processing device for generating description files, master files and standardized data files.

针对所述的标准化数据文件生成装置,本发明还提出一种计算机可读存储介质,其上储存有程序指令,所述程序指令被处理器执行时实施标准化数据文件生成方法。Regarding the standardized data file generating device, the present invention also proposes a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, a standardized data file generating method is implemented.

在一个具体的实施例中,参照图12,所述的基于测控应用的标准化数据文件生成方法包括以下具体流程步骤:In a specific embodiment, referring to Figure 12, the standardized data file generation method based on measurement and control applications includes the following specific process steps:

步骤S10:判断从测试设备生成标准化数据文件;Step S10: Determine whether to generate a standardized data file from the test equipment;

如果步骤S10选择是,则:If yes is selected in step S10, then:

步骤S11:从测试设备获取数据文件;Step S11: Obtain the data file from the test device;

步骤S12:确定数据文件名、文件类型和标识符;Step S12: Determine the data file name, file type and identifier;

步骤S13:将数据文件的相互关系、解释方式、应用程序状态写入描述文件;Step S13: Write the mutual relationships, interpretation methods, and application status of the data files into the description file;

步骤S14:判断是否需要加密;Step S14: Determine whether encryption is required;

如果步骤S14是,则:If step S14 is yes, then:

步骤S15:使用对称加密算法加密所有数据文件、描述文件;Step S15: Encrypt all data files and description files using a symmetric encryption algorithm;

如果步骤S10选择否,则:If you choose No in step S10, then:

步骤S16:从系统下载标准化数据文件MDF;Step S16: Download the standardized data file MDF from the system;

步骤S17:系统从数据库读取应用程序类型、描述文件、各数据文件的文件名、类型、标识符;Step S17: The system reads the application type, description file, and file name, type, and identifier of each data file from the database;

步骤S18:系统从文件服务器拉去所有数据文件;Step S18: The system pulls all data files from the file server;

步骤S19:将数据文件的相互关系、解释方式、应用程序状态写入描述文件;Step S19: Write the mutual relationships, interpretation methods, and application status of the data files into the description file;

步骤S19完成后进入步骤S15:使用对称加密算法加密所有数据文件、描述文件;After step S19 is completed, enter step S15: use a symmetric encryption algorithm to encrypt all data files and description files;

步骤S15完成后进入步骤S20,与此同时,如果步骤S14选择否,也进入步骤S20;After step S15 is completed, go to step S20. At the same time, if you select No in step S14, go to step S20;

步骤S20:将数据文件名、文件类型、标识符、加密类型、密钥写入主文件;Step S20: Write the data file name, file type, identifier, encryption type, and key into the main file;

步骤S21:将描述文件名、类型、加密类型、密钥写入主文件;Step S21: Write the description file name, type, encryption type, and key into the main file;

步骤S22:将应用程序类型写入主文件;Step S22: Write the application type into the main file;

步骤S23:主文件含密钥信息则使用公钥加密主文件;Step S23: If the master file contains key information, use the public key to encrypt the master file;

步骤S24:将所有数据文件、描述文件、主文件通过zip压缩为单一文件、扩展名为mdf。Step S24: Compress all data files, description files, and main files into a single file with an mdf extension through zip.

应当认识到,本发明实施例中的方法步骤可以由计算机硬件、硬件和软件的组合、或者通过存储在非暂时性计算机可读存储器中的计算机指令来实现或实施。所述方法可以使用标准编程技术。每个程序可以以高级过程或面向对象的编程语言来实现以与计算机系统通信。然而,若需要,该程序可以以汇编或机器语言实现。在任何情况下,该语言可以是编译或解释的语言。此外,为此目的该程序能够在编程的专用集成电路上运行。It should be appreciated that the method steps in embodiments of the present invention may be implemented or implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The methods may use standard programming techniques. Each program may 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 may be a compiled or interpreted language. Furthermore, the program can be run on programmed application specific integrated circuits for this purpose.

此外,可按任何合适的顺序来执行本文描述的过程的操作,除非本文另外指示或以其他方式明显地与上下文矛盾。本文描述的过程(或变型和/或其组合)可在配置有可执行指令的一个或多个计算机系统的控制下执行,并且可作为共同地在一个或多个处理器上执行的代码(例如,可执行指令、一个或多个计算机程序或一个或多个应用)、由硬件或其组合来实现。所述计算机程序包括可由一个或多个处理器执行的多个指令。Furthermore, the operations of the processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described herein may be performed under the control of one or more computer systems configured with executable instructions, and may be executed as code collectively executed on one or more processors (e.g., , executable instructions, one or more computer programs or one or more applications), implemented by hardware or a combination thereof. The computer program includes a plurality of instructions executable by one or more processors.

进一步,所述方法可以在可操作地连接至合适的任何类型的计算平台中实现,包括但不限于个人电脑、迷你计算机、主框架、工作站、网络或分布式计算环境、单独的或集成的计算机平台、或者与带电粒子工具或其它成像装置通信等等。本发明的各方面可以以存储在非暂时性存储介质或设备上的机器可读代码来实现,无论是可移动的还是集成至计算平台,如硬盘、光学读取和/或写入存储介质、RAM、ROM等,使得其可由可编程计算机读取,当存储介质或设备由计算机读取时可用于配置和操作计算机以执行在此所描述的过程。此外,机器可读代码,或其部分可以通过有线或无线网络传输。当此类媒体包括结合微处理器或其他数据处理器实现上文所述步骤的指令或程序时,本文所述的发明包括这些和其他不同类型的非暂时性计算机可读存储介质。当根据本发明所述的方法和技术编程时,本发明还可以包括计算机本身。Further, the methods may be implemented in any type of computing platform operably connected to a suitable computer, including but not limited to a personal computer, minicomputer, main frame, workstation, network or distributed computing environment, stand-alone or integrated computer platform, or communicate with charged particle tools or other imaging devices, etc. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that they are readable by a programmable computer, the storage media or devices when read by the computer can be used to configure and operate the computer to perform the processes described herein. Additionally, machine-readable code, or portions thereof, may be transmitted over wired or wireless networks. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media includes instructions or programs that perform the steps described above in conjunction with a microprocessor or other data processor. The invention may also include the computer itself when programmed according to the methods and techniques described herein.

计算机程序能够应用于输入数据以执行本文所述的功能,从而转换输入数据以生成存储至非易失性存储器的输出数据。输出信息还可以应用于一个或多个输出设备如显示器。在本发明优选的实施例中,转换的数据表示物理和有形的对象,包括显示器上产生的物理和有形对象的特定视觉描绘。A 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 non-volatile memory. Output information can also be applied to one or more output devices such as displays. In preferred embodiments of the present invention, the converted data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.

以上所述,只是本发明的较佳实施例而已,本发明并不局限于上述实施方式,只要其以相同的手段达到本发明的技术效果,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。在本发明的保护范围内其技术方案和/或实施方式可以有各种不同的修改和变化。The above are only preferred embodiments of the present invention. The present invention is not limited to the above-mentioned embodiments. As long as the technical effects of the present invention are achieved by the same means, any modification can be made within the spirit and principles of the present invention. Any modifications, equivalent substitutions, improvements, etc. shall be included in the scope of protection of the present invention. Various modifications and changes may be made to the technical solutions and/or implementations within the scope of the present invention.

Claims (10)

Translated fromChinese
1.基于标准化文件的数据交互方法,其特征在于,所述方法包括以下步骤:1. A data interaction method based on standardized files, characterized in that the method includes the following steps:S100、获取标准化数据文件,所述标准化数据文件为由主文件、描述文件和至少一个数据文件通过压缩的方式构成;S100. Obtain a standardized data file. The standardized data file is composed of a main file, a description file and at least one data file through compression;S200、解压缩所述标准化数据文件,得到所述主文件、描述文件和至少一个数据文件;S200. Decompress the standardized data file to obtain the main file, description file and at least one data file;S300、解释所述主文件,得到所述标准化数据文件的应用程序类型、描述文件信息和数据文件信息,所述应用程序类型为期望用于打开所述数据文件的应用程序的类型或预设的应用程序名,所述描述文件信息包括描述文件加密信息,所述数据文件信息包括数据文件加密信息;S300. Interpret the main file to obtain the application type, description file information and data file information of the standardized data file. The application type is the type of application expected to be used to open the data file or a preset one. Application name, the description file information includes description file encryption information, and the data file information includes data file encryption information;S400、保存文件,更新文件服务器和更新数据库的记录;S400. Save the file, update the file server and update the database records;S500、基于前端的读写请求,从数据库或文件服务器读取所述标准化数据文件的应用程序类型、描述文件信息和数据文件信息;S500: Based on the front-end read and write request, read the application type, description file information and data file information of the standardized data file from the database or file server;S600、基于前端的操作,更新应用程序类型、描述文件信息和数据文件信息;S600, based on front-end operation, updates application type, description file information and data file information;S700、保存文件,更新文件服务器和更新数据库的记录;S700, save the file, update the file server and update the database records;S800、基于前端的文件下载请求,从数据库和文件服务器中生成主文件、描述文件和数据文件;S800, based on the front-end file download request, generates the main file, description file and data file from the database and file server;S900、加密主文件、描述文件和数据文件,把加密后的主文件、描述文件和数据文件压缩为标准化数据文件,保存所有文件到文件服务器并执行下载操作。S900: Encrypt the main file, description file and data file, compress the encrypted main file, description file and data file into a standardized data file, save all files to the file server and perform a download operation.2.根据权利要求1所述的基于标准化文件的数据交互方法,其特征在于,所述步骤S200中,通过zip算法对所述标准化数据文件进行解压缩。2. The data interaction method based on standardized files according to claim 1, characterized in that, in step S200, the standardized data files are decompressed through a zip algorithm.3.根据权利要求1所述的基于标准化文件的数据交互方法,其特征在于,3. The data interaction method based on standardized files according to claim 1, characterized in that,所述步骤S200后还包括:After step S200, it also includes:S210、若所述主文件为加密文件,则通过预设的私钥解密所述主文件。S210. If the main file is an encrypted file, decrypt the main file using a preset private key.4.根据权利要求1所述的基于标准化文件的数据交互方法,其特征在于,4. The data interaction method based on standardized files according to claim 1, characterized in that,所述步骤S300后还包括:After step S300, it also includes:S310、基于所述描述文件加密信息,判断是否需要解密所述描述文件,如果需要解密所述描述文件,则解密所述描述文件;S310. Based on the encryption information of the description file, determine whether the description file needs to be decrypted. If the description file needs to be decrypted, decrypt the description file;S320、基于所述数据文件加密信息,判断是否需要解密所述数据文件,如果需要解密所述数据文件,则解密所述数据文件。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.根据权利要求1所述的基于标准化文件的数据交互方法,其特征在于,5. The data interaction method based on standardized files according to claim 1, characterized in that,所述步骤S400包括:The step S400 includes:S410、保存所述标准化数据文件、所述主文件、所述描述文件和至少一个所述数据文件到文件服务器;S410. Save the standardized data file, the main file, the description file and at least one data file to a file server;S420、更新数据库的记录,所述更新数据库的记录包括更新所述标准化数据文件的应用程序类型、描述文件内容和至少一个所述数据文件的路径。S420. Update the records of the database. The updating of the records of the database includes updating the application type of the standardized data file, the content of the description file, and the path of at least one of the data files.6.根据权利要求1所述的基于标准化文件的数据交互方法,其特征在于,6. The data interaction method based on standardized files according to claim 1, characterized in that,所述步骤S700包括:The step S700 includes:S710、保存所述标准化数据文件、所述主文件、所述描述文件和至少一个所述数据文件到文件服务器;S710. Save the standardized data file, the main file, the description file and at least one data file to a file server;S720、更新数据库的记录,所述更新数据库的记录包括更新所述标准化数据文件的应用程序类型、描述文件内容和至少一个所述数据文件的路径。S720. Update the records of the database. The updating of the records of the database includes updating the application type of the standardized data file, the content of the description file, and the path of at least one of the data files.7.根据权利要求1所述的基于标准化文件的数据交互方法,其特征在于,所述步骤S800包括:7. The data interaction method based on standardized files according to claim 1, characterized in that the step S800 includes:S810、从数据库中读取应用程序类型、所有数据文件的文件名、文件的类型、文件的标识符和描述文件信息;S810. Read the application type, file names of all data files, file types, file identifiers and description file information from the database;S820、重新生成主文件和描述文件并保存到文件服务器。S820. Regenerate the main file and description file and save them to the file server.8.根据权利要求1所述的基于标准化文件的数据交互方法,其特征在于,所述步骤S900包括:8. The data interaction method based on standardized files according to claim 1, characterized in that the step S900 includes:S910、加密描述文件和数据文件;S910, encrypt description files and data files;S920、把加密信息更新到主文件后对主文件进行加密;S920. Update the encryption information to the main file and then encrypt the main file;S930、通过zip压缩的方式对主文件、描述文件和所有数据文件进行压缩,得到标准化数据文件,保存标准化数据文件、主文件、描述文件和所有数据文件到文件服务器;S930. Compress the main file, description files and all data files through zip compression to obtain standardized data files, and save the standardized data files, main files, description files and all data files to the file server;S940、执行下载操作,将文件服务器内的相应文件下载到前端。S940. Execute the download operation and download the corresponding file in the file server to the front end.9.一种标准化文件的测控数据交互装置,用于实现如权利要求1至8任一项所述的基于标准化文件的数据交互方法,其特征在于,所述装置包括:9. A measurement and control data interaction device for standardized files, used to implement the data interaction method based on standardized files according to any one of claims 1 to 8, characterized in that the device includes:文件服务器,用于存储文件;File server, used to store files;数据库,用于保存文件的信息;Database, used to save file information;处理装置,用于生成和处理描述文件、主文件和标准化数据文件,所述文件服务器和所述数据库分别与所述处理装置连接。A processing device is used to generate and process description files, master files and standardized data files. The file server and the database are respectively connected to the processing device.10.一种计算机可读存储介质,其上储存有程序指令,所述程序指令被处理器执行时实施如权利要求1至8中任一项所述的方法。10. A computer-readable storage medium having program instructions stored thereon, which implement the method according to any one of claims 1 to 8 when executed by a processor.
CN202310762435.9A2023-06-262023-06-26 Data interaction method, device and storage medium based on standardized filesActiveCN116795793B (en)

Priority Applications (5)

Application NumberPriority DateFiling DateTitle
CN202410462270.8ACN118349524B (en)2023-06-262023-06-26 Data exchange device based on standardized files
CN202310762435.9ACN116795793B (en)2023-06-262023-06-26 Data interaction method, device and storage medium based on standardized files
PCT/CN2024/101132WO2025002082A1 (en)2023-06-262024-06-25Standardized data file generation method based on test and control applications, and storage medium
PCT/CN2024/101130WO2025002080A1 (en)2023-06-262024-06-25Test data cloud system, and method
PCT/CN2024/101131WO2025002081A1 (en)2023-06-262024-06-25Standardized file-based data interaction method, apparatus, and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310762435.9ACN116795793B (en)2023-06-262023-06-26 Data interaction method, device and storage medium based on standardized files

Related Child Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410462270.8ADivisionCN118349524B (en)2023-06-262023-06-26 Data exchange device based on standardized files

Publications (2)

Publication NumberPublication Date
CN116795793Atrue CN116795793A (en)2023-09-22
CN116795793B CN116795793B (en)2024-06-11

Family

ID=88047749

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN202410462270.8AActiveCN118349524B (en)2023-06-262023-06-26 Data exchange device based on standardized files
CN202310762435.9AActiveCN116795793B (en)2023-06-262023-06-26 Data interaction method, device and storage medium based on standardized files

Family Applications Before (1)

Application NumberTitlePriority DateFiling Date
CN202410462270.8AActiveCN118349524B (en)2023-06-262023-06-26 Data exchange device based on standardized files

Country Status (1)

CountryLink
CN (2)CN118349524B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118349524A (en)*2023-06-262024-07-16珠海精实测控技术股份有限公司 Data exchange device based on standardized files
CN118349451A (en)*2023-06-262024-07-16珠海精实测控技术股份有限公司Data cloud measurement and control method
WO2025002082A1 (en)*2023-06-262025-01-02珠海精实测控技术股份有限公司Standardized data file generation method based on test and control applications, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20110087652A1 (en)*2009-10-142011-04-14Great Connection, Inc.Systems and methods for converting and delivering medical images to mobile devices and remote communications systems
CN104471528A (en)*2012-04-232015-03-25谷歌公司Associating a file type with an application in a network storage service
CN104851056A (en)*2015-05-262015-08-19中国电力科学研究院Intelligent transformer station secondary system model standard library management system and method
CN109766525A (en)*2019-01-142019-05-17湖南大学 A data-driven sensitive information leak detection framework
WO2020111197A1 (en)*2018-11-302020-06-04了宣 山本Document arrangement support system
CN111881084A (en)*2020-07-272020-11-03南京慧目信息技术有限公司Ophthalmic data standardization method
CN116010740A (en)*2023-01-042023-04-25中国建设银行股份有限公司Data file updating method and device of browser, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9976868B2 (en)*2016-03-032018-05-22Northrop Grumman Systems Corporation4D temporal data structures for visualization of alternative mission plans over time
CN110019169B (en)*2017-12-292021-04-13中国移动通信集团陕西有限公司 A method and device for data processing
CN115309795A (en)*2021-05-072022-11-08上汽通用汽车有限公司Vehicle big data analysis management system
CN113392148A (en)*2021-05-282021-09-14联合汽车电子有限公司Method for generating MDF4 format file and automobile remote measuring equipment
CN115934654A (en)*2023-02-032023-04-07北京联合伟世科技股份有限公司Packing method, device and equipment of experimental resources and storage medium
CN118349524B (en)*2023-06-262024-11-22珠海精实测控技术股份有限公司 Data exchange device based on standardized files

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20110087652A1 (en)*2009-10-142011-04-14Great Connection, Inc.Systems and methods for converting and delivering medical images to mobile devices and remote communications systems
CN104471528A (en)*2012-04-232015-03-25谷歌公司Associating a file type with an application in a network storage service
CN104851056A (en)*2015-05-262015-08-19中国电力科学研究院Intelligent transformer station secondary system model standard library management system and method
WO2020111197A1 (en)*2018-11-302020-06-04了宣 山本Document arrangement support system
CN109766525A (en)*2019-01-142019-05-17湖南大学 A data-driven sensitive information leak detection framework
CN111881084A (en)*2020-07-272020-11-03南京慧目信息技术有限公司Ophthalmic data standardization method
CN116010740A (en)*2023-01-042023-04-25中国建设银行股份有限公司Data file updating method and device of browser, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张义玉;: "全国文件格式及数据元标准化技术委员会成立", 交通标准化, no. 04, 15 November 1987 (1987-11-15)*
徐梅;钟忠;王荣良;: "基于UEFI的自动测试系统的设计与实现", 微计算机信息, no. 18, 25 June 2010 (2010-06-25)*
白丽锐;杨友朋;王春新;: "数据标准化在电力物联网综合业务平台的应用", 物联网技术, no. 08, 15 August 2013 (2013-08-15)*

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118349524A (en)*2023-06-262024-07-16珠海精实测控技术股份有限公司 Data exchange device based on standardized files
CN118349451A (en)*2023-06-262024-07-16珠海精实测控技术股份有限公司Data cloud measurement and control method
CN118349451B (en)*2023-06-262024-10-18珠海精实测控技术股份有限公司Data cloud measurement and control method
WO2025002082A1 (en)*2023-06-262025-01-02珠海精实测控技术股份有限公司Standardized data file generation method based on test and control applications, and storage medium
WO2025002081A1 (en)*2023-06-262025-01-02珠海精实测控技术股份有限公司Standardized file-based data interaction method, apparatus, and storage medium
WO2025002080A1 (en)*2023-06-262025-01-02珠海精实测控技术股份有限公司Test data cloud system, and method

Also Published As

Publication numberPublication date
CN118349524B (en)2024-11-22
CN116795793B (en)2024-06-11
CN118349524A (en)2024-07-16

Similar Documents

PublicationPublication DateTitle
CN116795793B (en) Data interaction method, device and storage medium based on standardized files
CN115176241A (en)System and method for tracking data lineage and recording lifecycle using distributed ledger
JP5575071B2 (en) Information processing apparatus, information processing method, and program
US20110289310A1 (en)Cloud computing appliance
WO2019201003A1 (en)File packing and file package unpacking method and apparatus, and network device
WO2014187255A1 (en)Application packaging device and method
CN108694331B (en)Data storage method, device and system and computer readable storage medium
US11150879B2 (en)Method and system for configuring processes of software applications using activity fragments
EP3809300A1 (en)Method and apparatus for data encryption, method and apparatus for data decryption
US20240394272A1 (en)Active Data Executable
CN116775490B (en)Test data cloud system and method
CN116249982A (en)Validating tracked portions of received sensor data with a computer encryption process
CN106897082A (en)A kind of network equipment provides the method and a kind of network equipment of application program
CN114925041A (en) A data query method and device
US11922239B1 (en)System and method for abstraction of application programming interface creation without code
CN116776834A (en)Standardized data file generation method based on measurement and control application and storage medium
CN112416893A (en) Data sharing method, system, apparatus, computer equipment and storage medium
CN111143310B (en)Log recording method and device and readable storage medium
WO2025002082A1 (en)Standardized data file generation method based on test and control applications, and storage medium
CN118861139A (en) Data processing method, device, system, storage medium and processor
JP4663292B2 (en) Electronic document storage management system, electronic document storage management method, and electronic document storage management program
US20240292053A1 (en)Method and apparatus for generating material package, video editing method and apparatus, and device and medium
CN111352910B (en) A method and device for online preview of data
CN116432196A (en) Database layered encryption for hybrid cloud environments
CN106789836B (en)Electronic resource protection method and system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp