CN105573970B - Data packet reconstruction method and device - Google Patents

Data packet reconstruction method and device Download PDF

Info

Publication number
CN105573970B
CN105573970B CN201510955914.8A CN201510955914A CN105573970B CN 105573970 B CN105573970 B CN 105573970B CN 201510955914 A CN201510955914 A CN 201510955914A CN 105573970 B CN105573970 B CN 105573970B
Authority
CN
China
Prior art keywords
data
editable
data packet
packet
configuration file
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.)
Active
Application number
CN201510955914.8A
Other languages
Chinese (zh)
Other versions
CN105573970A (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.)
Aerospace Star Technology Co Ltd
Original Assignee
Aerospace Star 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 Aerospace Star Technology Co Ltd filed Critical Aerospace Star Technology Co Ltd
Priority to CN201510955914.8A priority Critical patent/CN105573970B/en
Publication of CN105573970A publication Critical patent/CN105573970A/en
Application granted granted Critical
Publication of CN105573970B publication Critical patent/CN105573970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种数据包重构的方法及装置,该方法包括:在源数据包中的抽离出表征动态变化的变化部分数据;将变化部分数据封装为可编辑的配置文件;根据可编辑的所述配置文件,生成数据包的可编辑界面,在可编辑界面能够的添加用户数据以及编辑内容;据可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。本发明方法不受操作系统、硬件环境的限制能够适应各类软硬件环境,大大提高配置文件的编辑效率与准确性。

Figure 201510955914

The invention discloses a data packet reconstruction method and device. The method comprises: extracting the changed part data representing the dynamic change in the source data packet; encapsulating the changed part data into an editable configuration file; The edited configuration file generates an editable interface of the data package, and user data and editing content can be added on the editable interface; according to the data content in the editable interface, the data content in the original data package is verified and calculated, and output packets with the specified format. The method of the invention is not limited by the operating system and the hardware environment, can adapt to various software and hardware environments, and greatly improves the editing efficiency and accuracy of the configuration file.

Figure 201510955914

Description

一种数据包重构方法及装置A kind of data packet reconstruction method and device

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种数据包重构方法及装置。The present application relates to the field of communication technologies, and in particular, to a data packet reconstruction method and apparatus.

背景技术Background technique

近年来,人们对空间的探索与发掘任务越来越多,对卫星导航、定位以及通信的应用越来越广泛。为了支持各项任务的顺利展开,需要生成大量的上注数据包以实施对各空间飞行器的在轨飞控。目前研究比较多的数据包生成方法为软件硬编码,即将数据包的格式以程序代码的形式写入软件,无法适用于格式不断变化的需求。In recent years, people have more and more exploration and excavation tasks in space, and the application of satellite navigation, positioning and communication has become more and more extensive. In order to support the smooth development of various tasks, it is necessary to generate a large number of injection data packets to implement the on-orbit flight control of each space vehicle. Currently, the most researched data packet generation method is software hard coding, that is, the data packet format is written into the software in the form of program code, which cannot be adapted to the changing requirements of the format.

一般,数据包的格式及字段值由所使用的应用系统与协议规定,且不同的阶段均有一定的变化,随着系统的升级与协议的变更,也会进行相应的变化,这需要大量的软件工作,包括:需求整理、软件开发、编译、测试、发布等,大大增加了软件维护的复杂度。Generally, the format and field values of data packets are specified by the application system and protocol used, and there are certain changes in different stages. With the upgrade of the system and the change of the protocol, corresponding changes will also be made, which requires a lot of Software work, including: requirements sorting, software development, compilation, testing, release, etc., greatly increases the complexity of software maintenance.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种数据包重构方法及装置,用以解决现有技术中随着系统的升级与协议的变更,也会进行相应的变化,这需要大量的软件工作的问题。Embodiments of the present invention provide a data packet reconstruction method and device, which are used to solve the problem in the prior art that with system upgrades and protocol changes, corresponding changes are also performed, which requires a lot of software work.

其具体的技术方案如下:Its specific technical solutions are as follows:

一种数据包重构方法,所述方法包括:A data packet reconstruction method, the method comprising:

在源数据包中的抽离出表征动态变化的变化部分数据;Extraction of the changing part of the data representing the dynamic change in the source data packet;

将所述变化部分数据封装为可编辑的配置文件;Encapsulating the changed part data into an editable configuration file;

根据可编辑的所述配置文件,生成数据包的可编辑界面,其中,在所述可编辑界面能够的添加用户数据以及编辑内容;According to the editable configuration file, an editable interface of the data package is generated, wherein user data and editable content can be added in the editable interface;

根据所述可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。According to the data content in the editable interface, the verification calculation is performed on the data content in the original data packet, and the data packet with the specified format is output.

可选的,将所述变化部分数据封装为可编辑的配置文件,具体为:Optionally, encapsulate the changed part data into an editable configuration file, specifically:

将所述变化部分数据封装为可扩展标记语言XML文件,并将所述XML文件作为所述配置文件。The changed part data is encapsulated into an extensible markup language XML file, and the XML file is used as the configuration file.

可选的,根据所述可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包,包括:Optionally, according to the data content in the editable interface, check and calculate the data content in the original data packet, and output a data packet with a specified format, including:

将硬编码的源数据包的数据包格式延迟到数据包生成阶段;Delay the packet format of the hardcoded source packet until the packet generation stage;

通过XML文件将数据包格式与生成器解耦;Decoupling the packet format from the generator via XML files;

基于解耦结果,通过XML文件对所述源数据包进行动态加载,并输出具有指定格式的数据包。Based on the decoupling result, the source data package is dynamically loaded through an XML file, and a data package with a specified format is output.

可选的,通过XML文件对所述源数据包进行动态加载,并输出具有指定格式的数据包,包括:Optionally, dynamically load the source data package through an XML file, and output a data package with a specified format, including:

通过XML文件以树状形式设定比例对数据进行描述,在每个XML节点中配置对应数据包字段的相关属性,并输出具有相关属性的指定格式的数据包。The data is described by setting the scale in the form of a tree through the XML file, and the relevant attributes of the corresponding data packet fields are configured in each XML node, and the data packets in the specified format with the relevant attributes are output.

可选的,在每个XML节点中配置对应的数据包字段的相关属性,具体为:Optionally, configure the relevant attributes of the corresponding data packet fields in each XML node, specifically:

在每个XML节点中配置对应的字段编号、字段名称、所占字节数、依赖关系、字段备注的相关属性。In each XML node, configure the corresponding field number, field name, number of bytes occupied, dependencies, and related attributes of field remarks.

一种数据包重构装置,包括:A data packet reconstruction device, comprising:

抽离模块,用于在源数据包中的抽离出表征动态变化的变化部分数据;The extraction module is used to extract the changed part of the data representing the dynamic change in the source data packet;

配置文件生成模块,用于将所述变化部分数据封装为可编辑的配置文件;a configuration file generation module, used to encapsulate the changed part data into an editable configuration file;

界面生成模块,用于根据可编辑的所述配置文件,生成数据包的可编辑界面,其中,在所述可编辑界面能够的添加用户数据以及编辑内容;an interface generation module for generating an editable interface of the data package according to the editable configuration file, wherein user data and editing content can be added to the editable interface;

重构模块,用于根据所述可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。The reconstruction module is used for checking and calculating the data content in the original data package according to the data content in the editable interface, and outputting a data package with a specified format.

可选的,所述配置文件生成模块,具体用于将所述变化部分数据封装为可扩展标记语言XML文件,并将所述XML文件作为所述配置文件。Optionally, the configuration file generation module is specifically configured to encapsulate the changed part data into an extensible markup language XML file, and use the XML file as the configuration file.

可选的,所述重构模块,具体用于将硬编码的源数据包的数据包格式延迟到数据包生成阶段;通过XML文件将数据包格式与生成器解耦;基于解耦结果,通过XML文件对所述源数据包进行动态加载,并输出具有指定格式的数据包。Optionally, the reconstruction module is specifically used to delay the data packet format of the hard-coded source data packet to the data packet generation stage; decouple the data packet format from the generator through an XML file; based on the decoupling result, through the The XML file dynamically loads the source data package, and outputs the data package with the specified format.

可选的,所述重构模块,具体用于通过XML文件以树状形式设定比例对数据进行描述,在每个XML节点中配置对应数据包字段的相关属性,并输出具有相关属性的指定格式的数据包。Optionally, the reconstruction module is specifically configured to describe the data in a tree-like format through an XML file, configure the relevant attributes of the corresponding data packet fields in each XML node, and output the specified data with relevant attributes. formatted packets.

可选的,所述重构模块,具体用于在每个XML节点中配置对应的字段编号、字段名称、所占字节数、依赖关系、字段备注的相关属性。Optionally, the reconstruction module is specifically configured to configure in each XML node the corresponding field number, field name, number of bytes occupied, dependencies, and relevant attributes of field remarks.

本发明实施例中一种数据包重构的方法,该方法包括:在源数据包中的抽离出表征动态变化的变化部分数据;将变化部分数据封装为可编辑的配置文件;根据可编辑的所述配置文件,生成数据包的可编辑界面,在可编辑界面能够的添加用户数据以及编辑内容;据可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。本发明方法不受操作系统、硬件环境的限制能够适应各类软硬件环境,大大提高配置文件的编辑效率与准确性。In an embodiment of the present invention, a data packet reconstruction method includes: extracting, in a source data packet, changed part data representing dynamic changes; encapsulating the changed part data into an editable configuration file; The described configuration file, generates an editable interface of the data package, and can add user data and editing content in the editable interface; Output packets with the specified format. The method of the invention is not limited by the operating system and the hardware environment, can adapt to various software and hardware environments, and greatly improves the editing efficiency and accuracy of the configuration file.

附图说明Description of drawings

图1为本发明实施例中一种数据包重构方法的流程图;1 is a flowchart of a data packet reconstruction method in an embodiment of the present invention;

图2为本发明实施例中一种数据包重构装置的结构示意图。FIG. 2 is a schematic structural diagram of a data packet reconstruction apparatus according to an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例中一种数据包重构的方法,该方法包括:在源数据包中的抽离出表征动态变化的变化部分数据;将变化部分数据封装为可编辑的配置文件;根据可编辑的所述配置文件,生成数据包的可编辑界面,在可编辑界面能够的添加用户数据以及编辑内容;据可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。本发明方法不受操作系统、硬件环境的限制能够适应各类软硬件环境,大大提高配置文件的编辑效率与准确性。In an embodiment of the present invention, a data packet reconstruction method includes: extracting, in a source data packet, changed part data representing dynamic changes; encapsulating the changed part data into an editable configuration file; The described configuration file, generates an editable interface of the data package, and can add user data and editing content in the editable interface; Output packets with the specified format. The method of the invention is not limited by the operating system and the hardware environment, can adapt to various software and hardware environments, and greatly improves the editing efficiency and accuracy of the configuration file.

下面通过附图以及具体实施例对本发明技术方案做详细的说明,应当理解,本发明实施例以及实施例中的具体技术特征只是对本发明技术方案的说明,而不是限定,在不冲突的情况下,本发明实施例以及实施例中的具体技术特征可以相互组合。The technical solutions of the present invention will be described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific technical features in the embodiments are only descriptions of the technical solutions of the present invention, rather than limitations. In the case of no conflict , the embodiments of the present invention and the specific technical features in the embodiments may be combined with each other.

如图1所示为本发明实施例中一种数据包重构方法的流程图,该方法包括:FIG. 1 is a flowchart of a data packet reconstruction method in an embodiment of the present invention, and the method includes:

S101,在源数据包中的抽离出表征动态变化的变化部分数据;S101, extracting the changed part data representing the dynamic change in the source data packet;

S102,将所述变化部分数据封装为可编辑的配置文件;S102, encapsulating the changed part data into an editable configuration file;

S103,根据可编辑的所述配置文件,生成数据包的可编辑界面;S103, according to the editable configuration file, generate an editable interface of the data packet;

其中,在所述可编辑界面能够的添加用户数据以及编辑内容;Wherein, user data and editing content can be added in the editable interface;

S104,根据所述可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。S104, according to the data content in the editable interface, perform verification calculation on the data content in the original data packet, and output a data packet with a specified format.

具体来讲,在本发明实施例中,在接收到源数据包之后,考虑到源数据包字段的删减、长度的变化,将其中变化的部分抽离出来,从而得到表征动态变化的部分数据,将变化部分数据封装为可扩展标记语言XML文件,并将XML文件作为配置文件。Specifically, in the embodiment of the present invention, after receiving the source data packet, taking into account the deletion of the source data packet field and the change of the length, the changed part is extracted, so as to obtain part of the data representing the dynamic change , which encapsulates the changed part of the data as an extensible markup language XML file, and uses the XML file as a configuration file.

将硬编码的源数据包的数据格式延迟到数据包生成阶段,通过XML文件将数据包格式与生成器解耦,基于解耦结果,通过XML文件对源数据包进行动态加载,并输出具有指定格式的数据包。Delay the data format of the hard-coded source data package to the data package generation stage, decouple the data package format from the generator through the XML file, and dynamically load the source data package through the XML file based on the decoupling result, and output the specified data package. formatted packets.

进一步来讲,在本发明实施例中,通过XML文件以树状形式1:1对数据进行描述,在每个XML节点中配置对应数据包字段的相关属性,并输出具有相关属性的指定格式的数据包。Further, in this embodiment of the present invention, the data is described in a tree-like 1:1 format through an XML file, the relevant attributes of the corresponding data packet fields are configured in each XML node, and a specified format with relevant attributes is output. data pack.

这里的对每个XML节点配置对应的数据包字段的相关属性为:在每个XML节点中配置对应的字段编号、字段名称、所占字节数、依赖关系、字段备注的相关属性,具体的配置代码如下:Here, the relevant attributes of the corresponding data packet fields configured for each XML node are: configure the corresponding field number, field name, number of bytes, dependencies, and field remarks in each XML node. The configuration code is as follows:

Figure BDA0000882467640000051
Figure BDA0000882467640000051

通过上述的方式就可以对XML节点中的每个节点配置对应的相关属性。由于XML文件以树状结构对数据进行管理的方法完全符合数据包的字段形式,可以以1:1的形式对数据包进行精确描述,大大提高配置文件的编辑效率与准确性。Through the above method, the corresponding relevant attributes can be configured for each node in the XML node. Since the method of managing data in a tree-like structure in an XML file completely conforms to the field form of the data packet, the data packet can be accurately described in the form of 1:1, which greatly improves the editing efficiency and accuracy of the configuration file.

进一步,在得到XML文件之后,根据可以编辑的配置文件,生成数据包的可编辑界面,在该可编辑界面中允许用户对数据包的各个字段进行填充或者编辑,从而使得数据包的生成不会受到操作系统、硬件环境的限制,进而能够适应各类软硬件环境。Further, after obtaining the XML file, according to the editable configuration file, an editable interface of the data package is generated, and the user is allowed to fill in or edit each field of the data package in the editable interface, so that the generation of the data package will not Restricted by the operating system and hardware environment, it can adapt to various software and hardware environments.

最后基于可以编辑界面中对各字段所填充或编辑的内容,以及上述的配置文件,对源数据包中的数据内容进行校验计算,从而输出具有指定格式的数据包,从而实现了数据包生成方法满足多类数据包生成的需求。Finally, based on the content filled or edited in each field in the editable interface and the above configuration file, the data content in the source data packet is verified and calculated, so as to output the data packet with the specified format, thus realizing the generation of the data packet The method meets the needs of multi-class packet generation.

总体来讲,在本发明实施例中,将源数据包信息进行可配置化处理,基于配置文件就可以在不修改程序的情况下根据实际需求动态调整所生成数据包;采用直观易读的XML文件作为配置文件,由于XML文件以树状结构对数据进行管理的方法完全符合数据包的字段形式,可以以1:1的形式对数据包进行精确描述,大大提高配置文件的编辑效率与准确性。Generally speaking, in the embodiment of the present invention, the source data package information is configurable, and the generated data package can be dynamically adjusted according to actual needs without modifying the program based on the configuration file; intuitive and easy-to-read XML is used. The file is used as a configuration file. Since the XML file manages data in a tree-like structure, it completely conforms to the field form of the data packet, and can accurately describe the data packet in the form of 1:1, which greatly improves the editing efficiency and accuracy of the configuration file. .

对应本发明实施例中一种数据包重构方法,本发明实施例中还提供了一种数据包重构装置,如图2所示为本发明实施例中一种数据包重构装置的结构示意图,该装置包括:Corresponding to a data packet reconstruction method in an embodiment of the present invention, an embodiment of the present invention also provides a data packet reconstruction apparatus, and FIG. 2 shows the structure of a data packet reconstruction apparatus in an embodiment of the present invention Schematic diagram, the device includes:

抽离模块201,用于在源数据包中的抽离出表征动态变化的变化部分数据;The extraction module 201 is used for extracting the changed part data representing the dynamic change in the source data packet;

配置文件生成模块202,用于将所述变化部分数据封装为可编辑的配置文件;a configuration file generation module 202, configured to encapsulate the changed part data into an editable configuration file;

界面生成模块203,用于根据可编辑的所述配置文件,生成数据包的可编辑界面,其中,在所述可编辑界面能够的添加用户数据以及编辑内容;The interface generation module 203 is configured to generate an editable interface of the data package according to the editable configuration file, wherein user data and editing content can be added in the editable interface;

重构模块204,用于根据所述可编辑界面中的数据内容,对原数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。The reconstruction module 204 is configured to perform verification calculation on the data content in the original data package according to the data content in the editable interface, and output a data package with a specified format.

进一步,在本发明实施例中,所述配置文件生成模块202,具体用于将所述变化部分数据封装为可扩展标记语言XML文件,并将所述XML文件作为所述配置文件。Further, in this embodiment of the present invention, the configuration file generating module 202 is specifically configured to encapsulate the changed part data into an extensible markup language XML file, and use the XML file as the configuration file.

进一步,在本发明实施例中,所述重构模块204,具体用于将硬编码的源数据包的数据包格式延迟到数据包生成阶段;通过XML文件将数据包格式与生成器解耦;基于解耦结果,通过XML文件对所述源数据包进行动态加载,并输出具有指定格式的数据包。Further, in the embodiment of the present invention, the reconstruction module 204 is specifically configured to delay the data packet format of the hard-coded source data packet to the data packet generation stage; decouple the data packet format from the generator through an XML file; Based on the decoupling result, the source data package is dynamically loaded through an XML file, and a data package with a specified format is output.

进一步,在本发明实施例中,所述重构模块204,具体用于通过XML文件以树状形式设定比例对数据进行描述,在每个XML节点中配置对应数据包字段的相关属性,并输出具有相关属性的指定格式的数据包。Further, in this embodiment of the present invention, the reconstruction module 204 is specifically configured to describe the data in a tree-like format through an XML file, configure the relevant attributes of the corresponding data packet fields in each XML node, and Output a packet of the specified format with the associated attributes.

进一步,在本发明实施例中,所述重构模块204,具体用于在每个XML节点中配置对应的字段编号、字段名称、所占字节数、依赖关系、字段备注的相关属性。Further, in this embodiment of the present invention, the reconstruction module 204 is specifically configured to configure in each XML node the relevant attributes of the corresponding field number, field name, number of bytes occupied, dependency, and field remarks.

尽管已描述了本申请的优选实施例,但本领域内的普通技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those of ordinary skill in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this application.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (10)

1.一种数据包重构方法,其特征在于,所述方法包括:1. a data packet reconstruction method, is characterized in that, described method comprises: 在源数据包中抽离出表征动态变化的变化部分数据;Extract the changing part of the data representing the dynamic change in the source data packet; 将所述变化部分数据封装为可编辑的配置文件;Encapsulating the changed part data into an editable configuration file; 根据可编辑的所述配置文件,生成数据包的可编辑界面,其中,在所述可编辑界面能够添加用户数据以及编辑内容;generating an editable interface of the data package according to the editable configuration file, wherein user data and editing content can be added in the editable interface; 根据所述可编辑界面中的数据内容,对源数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。According to the data content in the editable interface, the verification calculation is performed on the data content in the source data package, and the data package with the specified format is output. 2.如权利要求1所述的方法,其特征在于,将所述变化部分数据封装为可编辑的配置文件,具体为:2. The method of claim 1, wherein the changed part data is encapsulated into an editable configuration file, specifically: 将所述变化部分数据封装为可扩展标记语言XML文件,并将所述XML文件作为所述配置文件。The changed part data is encapsulated into an extensible markup language XML file, and the XML file is used as the configuration file. 3.如权利要求2所述的方法,其特征在于,根据所述可编辑界面中的数据内容,对源数据包中的数据内容进行校验计算,并输出具有指定格式的数据包,包括:3. The method according to claim 2, wherein, according to the data content in the editable interface, the data content in the source data packet is checked and calculated, and the data packet with a specified format is output, comprising: 将硬编码的源数据包的数据包格式延迟到数据包生成阶段;Delay the packet format of the hardcoded source packet until the packet generation stage; 通过XML文件将数据包格式与生成器解耦;Decoupling the packet format from the generator via XML files; 基于解耦结果,通过XML文件对所述源数据包进行动态加载,并输出具有指定格式的数据包。Based on the decoupling result, the source data package is dynamically loaded through an XML file, and a data package with a specified format is output. 4.如权利要求3所述的方法,其特征在于,通过XML文件对所述源数据包进行动态加载,并输出具有指定格式的数据包,包括:4. The method according to claim 3, wherein the source data package is dynamically loaded by an XML file, and the data package with a specified format is output, comprising: 通过XML文件以树状形式设定比例对数据进行描述,在每个XML节点中配置对应数据包字段的相关属性,并输出具有相关属性的指定格式的数据包。The data is described by setting the scale in the form of a tree through the XML file, and the relevant attributes of the corresponding data packet fields are configured in each XML node, and the data packets in the specified format with the relevant attributes are output. 5.如权利要求4所述的方法,其特征在于,在每个XML节点中配置对应的数据包字段的相关属性,具体为:5. method as claimed in claim 4 is characterized in that, in each XML node, the relevant attribute of corresponding data packet field is configured, specifically: 在每个XML节点中配置对应的字段编号、字段名称、所占字节数、依赖关系、字段备注的相关属性。In each XML node, configure the corresponding field number, field name, number of bytes occupied, dependencies, and related attributes of field remarks. 6.一种数据包重构装置,其特征在于,包括:6. A data packet reconstruction device, comprising: 抽离模块,用于在源数据包中抽离出表征动态变化的变化部分数据;The extraction module is used to extract the changed part of the data representing the dynamic change in the source data packet; 配置文件生成模块,用于将所述变化部分数据封装为可编辑的配置文件;a configuration file generation module, used to encapsulate the changed part data into an editable configuration file; 界面生成模块,用于根据可编辑的所述配置文件,生成数据包的可编辑界面,其中,在所述可编辑界面能够添加用户数据以及编辑内容;an interface generation module, configured to generate an editable interface of the data package according to the editable configuration file, wherein user data and editing content can be added in the editable interface; 重构模块,用于根据所述可编辑界面中的数据内容,对源数据包中的数据内容进行校验计算,并输出具有指定格式的数据包。The reconstruction module is configured to perform verification calculation on the data content in the source data package according to the data content in the editable interface, and output a data package with a specified format. 7.如权利要求6所述的装置,其特征在于,所述配置文件生成模块,具体用于将所述变化部分数据封装为可扩展标记语言XML文件,并将所述XML文件作为所述配置文件。7. The apparatus according to claim 6, wherein the configuration file generation module is specifically configured to encapsulate the changed part data into an extensible markup language XML file, and use the XML file as the configuration document. 8.如权利要求7所述的装置,其特征在于,所述重构模块,具体用于将硬编码的源数据包的数据包格式延迟到数据包生成阶段;通过XML文件将数据包格式与生成器解耦;基于解耦结果,通过XML文件对所述源数据包进行动态加载,并输出具有指定格式的数据包。8. The apparatus according to claim 7, wherein the reconstruction module is specifically configured to delay the data packet format of the hard-coded source data packet to the data packet generation stage; The generator is decoupled; based on the decoupling result, the source data package is dynamically loaded through an XML file, and a data package with a specified format is output. 9.如权利要求8所述的装置,其特征在于,所述重构模块,具体用于通过XML文件以树状形式设定比例对数据进行描述,在每个XML节点中配置对应数据包字段的相关属性,并输出具有相关属性的指定格式的数据包。9. The apparatus according to claim 8, wherein the reconstruction module is specifically configured to describe the data by setting a ratio in a tree-like form through an XML file, and configure a corresponding data packet field in each XML node , and output a packet of the specified format with the relevant attributes. 10.如权利要求9所述的装置,其特征在于,所述重构模块,具体用于在每个XML节点中配置对应的字段编号、字段名称、所占字节数、依赖关系、字段备注的相关属性。10. The apparatus according to claim 9, wherein the reconstruction module is specifically configured to configure the corresponding field number, field name, number of bytes occupied, dependency relationship, and field remarks in each XML node related properties.
CN201510955914.8A 2015-12-18 2015-12-18 Data packet reconstruction method and device Active CN105573970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510955914.8A CN105573970B (en) 2015-12-18 2015-12-18 Data packet reconstruction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510955914.8A CN105573970B (en) 2015-12-18 2015-12-18 Data packet reconstruction method and device

Publications (2)

Publication Number Publication Date
CN105573970A CN105573970A (en) 2016-05-11
CN105573970B true CN105573970B (en) 2020-03-17

Family

ID=55884122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510955914.8A Active CN105573970B (en) 2015-12-18 2015-12-18 Data packet reconstruction method and device

Country Status (1)

Country Link
CN (1) CN105573970B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109521984B (en) * 2017-09-20 2021-12-10 南京南瑞继保电气有限公司 Liquid crystal panel custom icon display method based on embedded system
CN111949613A (en) * 2020-08-11 2020-11-17 深圳市前海手绘科技文化有限公司 Method for editing and saving JSON configuration file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415026A (en) * 2008-11-28 2009-04-22 闻泰集团有限公司 Method for analyzing XML formatted data of dynamic content distribution client terminal
CN102567514A (en) * 2011-12-27 2012-07-11 广州从兴电子开发有限公司 Data processing method and system
CN103139234A (en) * 2011-11-23 2013-06-05 中国移动通信集团公司 Device and method for encapsulating data service
CN104079573A (en) * 2009-05-19 2014-10-01 安全第一公司 Systems and methods for securing data in the cloud
CN104731586A (en) * 2015-03-11 2015-06-24 大连理工大学 Method for designing editable interface of LCD screen of subway train
CN105095216A (en) * 2014-04-22 2015-11-25 深圳市志友企业发展促进中心 Data assembling method and device and resource communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415026A (en) * 2008-11-28 2009-04-22 闻泰集团有限公司 Method for analyzing XML formatted data of dynamic content distribution client terminal
CN104079573A (en) * 2009-05-19 2014-10-01 安全第一公司 Systems and methods for securing data in the cloud
CN103139234A (en) * 2011-11-23 2013-06-05 中国移动通信集团公司 Device and method for encapsulating data service
CN102567514A (en) * 2011-12-27 2012-07-11 广州从兴电子开发有限公司 Data processing method and system
CN105095216A (en) * 2014-04-22 2015-11-25 深圳市志友企业发展促进中心 Data assembling method and device and resource communication system
CN104731586A (en) * 2015-03-11 2015-06-24 大连理工大学 Method for designing editable interface of LCD screen of subway train

Also Published As

Publication number Publication date
CN105573970A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
AU2010212391B2 (en) Integration environment generator
CN108037961B (en) Application configuration method, device, server and storage medium
US8799299B2 (en) Schema contracts for data integration
CN104424265B (en) Digital asset management method and system
US10331423B1 (en) Utilizing cross platform streamable user interfaces to reduce software deployment frequency caused by user interface improvements
WO2023035563A1 (en) Applet cross-application migration method, device, terminal, system and storage medium
CN102449598A (en) Package design and generation
CN104020994B (en) Stream process definition device and stream process based on streaming system define method
CN103942086B (en) The method of the establishment based on AADL, analysis and emulation hybrid system model
CN105518673B (en) Managing data ingestion
CN110187902A (en) Project remodeling method, device, equipment and storage medium based on spring boot
CN104317587A (en) Automatic android mobile device oriented application generation method
CN102855350B (en) The automatic map delivery method and system of engineering drawing
WO2020199423A1 (en) Automated construction method and system for yang model configuration interface
CN105354036A (en) Database operation code generating method and apparatus
CN112052011B (en) Mini-program packaging method, device, electronic device, and medium
US20140032725A1 (en) Method and system for deploying a model-based application to an application server
CN102023859B (en) Reliability maintainability support software integration method for digital development environment
CN113672204A (en) Interface document generation method, system, electronic equipment and storage medium
CN105573970B (en) Data packet reconstruction method and device
CN117149162A (en) SDK automatic generation method and device, electronic equipment and storage medium
US20140033167A1 (en) Method and system for generating a manifestation of a model in actionscript
CN108153896B (en) Processing method and device for input data and output data
CN110705091A (en) Lightweight virtual test target range object model component construction method
CN103577260A (en) Work scheduling method and system for cloud platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant