[go: up one dir, main page]

CN110933114B - Configuration parameter management method, device, storage medium and control terminal - Google Patents

Configuration parameter management method, device, storage medium and control terminal Download PDF

Info

Publication number
CN110933114B
CN110933114B CN201911397494.0A CN201911397494A CN110933114B CN 110933114 B CN110933114 B CN 110933114B CN 201911397494 A CN201911397494 A CN 201911397494A CN 110933114 B CN110933114 B CN 110933114B
Authority
CN
China
Prior art keywords
model
mapping relationship
data model
parameter
receiving end
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
CN201911397494.0A
Other languages
Chinese (zh)
Other versions
CN110933114A (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.)
Guangzhou Jingxin Communication Technology Co ltd
Jingxin Intelligent Technology Guangzhou Co ltd
Original Assignee
Comba Network Systems 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 Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201911397494.0A priority Critical patent/CN110933114B/en
Publication of CN110933114A publication Critical patent/CN110933114A/en
Application granted granted Critical
Publication of CN110933114B publication Critical patent/CN110933114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The application relates to the field of network communication, in particular to a configuration parameter management method, a device, a storage medium and a control terminal based on model mapping, wherein the method comprises the following steps: acquiring a network protocol model of a receiving end, and performing parameter extraction on the network protocol model of the receiving end to obtain a receiving end data model; acquiring a network protocol model of a sending end, and performing parameter extraction on the network protocol model of the sending end to obtain a sending end data model; establishing a model mapping relation between the receiving end data model and the sending end data model; and when receiving the configuration parameters sent by the sending end, converting the configuration parameters sent by the sending end into target configuration parameters of the receiving end according to the model mapping relation. The method and the device can improve the interactive double-transmission communication efficiency of different communication protocols.

Description

配置参数管理方法、装置、存储介质及控制终端Configuration parameter management method, device, storage medium and control terminal

技术领域technical field

本申请涉及网络通信领域,具体涉及一种配置参数管理方法、装置、存储介质及控制终端。The present application relates to the field of network communication, and in particular, to a configuration parameter management method, device, storage medium and control terminal.

背景技术Background technique

在网络通信领域,网络设备产品在进行交互的过程中,或网络设备产品的不同端口在进行交互的过程中,需要交互双方具备解析对方网络协议的能力,而目前,是在交互双方中配置网络协议的解析功能,而该方案对于交互双方的配置要求复杂,且应用场景单一,造成交互双方的通信效率较低。In the field of network communication, in the process of interaction between network equipment products or different ports of network equipment products, both parties need to have the ability to parse each other's network protocols. The analysis function of the protocol, and this scheme has complex configuration requirements for both parties, and the application scenario is single, resulting in low communication efficiency between the two parties.

发明内容SUMMARY OF THE INVENTION

为克服以上技术问题,特别是现有技术具备不同通信协议的交互双发的通信效率低,应用场景单一的问题,特提出以下技术方案:In order to overcome the above technical problems, especially the problems of low communication efficiency and single application scenario in the prior art with interactive dual transmission with different communication protocols, the following technical solutions are proposed:

第一方面,本申请提供了一种基于模型映射的配置参数管理方法,包括:In a first aspect, the present application provides a method for managing configuration parameters based on model mapping, including:

获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型;Obtain the network protocol model of the receiving end, and perform parameter extraction on the network protocol model of the receiving end to obtain the data model of the receiving end;

获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型;Obtain the network protocol model of the sending end, and perform parameter extraction on the network protocol model of the sending end to obtain the data model of the sending end;

建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系;establishing a model mapping relationship between the receiving end data model and the sending end data model;

当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数。When the configuration parameters sent by the sender are received, the configuration parameters sent by the sender are converted into target configuration parameters of the receiver according to the model mapping relationship.

进一步的,所述接收端与发送端分别采用不同的网络协议;Further, the receiving end and the transmitting end respectively adopt different network protocols;

所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:After the establishment of the model mapping relationship between the data model of the receiving end and the data model of the transmitting end, the method further includes:

根据所述模型映射关系确定接收端的网络协议与发送端的网络协议的映射关系。The mapping relationship between the network protocol of the receiving end and the network protocol of the sending end is determined according to the model mapping relationship.

进一步的,所述述接收端的网络协议与发送端的网络协议包括至少三种不同的网络协议;Further, the network protocol of the receiving end and the network protocol of the sending end include at least three different network protocols;

所述建立所述接收端数据模型和所述发送端数据模型的模型映射关系,包括:Described establishing the model mapping relationship between the data model of the receiving end and the data model of the sending end, including:

建立两两不同的网络协议之间对应的数据模型的模型映射关系,或,Establish a model mapping relationship between the corresponding data models between two different network protocols, or,

将两两不同的网络协议之间对应的数据模型的模型映射关系合并,建立各不同的网络协议之间对应的数据模型的统一模型映射关系。The model mapping relationships of the corresponding data models between the two different network protocols are merged, and a unified model mapping relationship of the corresponding data models between the different network protocols is established.

进一步的,所述按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,包括:Further, converting the configuration parameters sent by the sender into target configuration parameters of the receiver according to the model mapping relationship includes:

按照所述模型映射关系从预置的数据库配置中获取所述发送端发送的配置参数对应的目标配置参数的参数量及参数信息;According to the model mapping relationship, the parameter quantity and parameter information of the target configuration parameter corresponding to the configuration parameter sent by the sending end are obtained from the preset database configuration;

控制预置的软件逻辑根据所述参数量及参数信息生成所述参数量对应个数的目标配置参数。The software logic that controls the preset generates a number of target configuration parameters corresponding to the parameter quantity according to the parameter quantity and the parameter information.

进一步的,所述当接收到发送端发送的配置参数时之后,还包括:Further, after receiving the configuration parameters sent by the sender, the method further includes:

获取所述配置参数的参数类型;Obtain the parameter type of the configuration parameter;

若所述配置参数为查询类型参数,按照所述模型映射关系查询所述配置参数对应的目标配置参数;If the configuration parameter is a query type parameter, query the target configuration parameter corresponding to the configuration parameter according to the model mapping relationship;

将所述目标配置参数发送至发送端。Send the target configuration parameter to the sender.

进一步的,所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:Further, after establishing the model mapping relationship between the receiving end data model and the sending end data model, the method further includes:

当监测接收端数据模型和/或所述发送端数据模型的变更信息时;When monitoring the change information of the data model of the receiving end and/or the data model of the sending end;

根据所述变更信息调整所述接收端数据模型与所述发送端数据模型之间的模型映射关系,或Adjust the model mapping relationship between the receiver data model and the sender data model according to the change information, or

获取变更后的接收端数据模型与所述发送端数据模型,建立变更后的接收端数据模型与所述发送端数据模型之间的模型映射关系。Acquire the changed data model of the receiving end and the data model of the sending end, and establish a model mapping relationship between the changed data model of the receiving end and the data model of the sending end.

进一步的,所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:Further, after establishing the model mapping relationship between the receiving end data model and the sending end data model, the method further includes:

将所述所述接收端数据模型与所述发送端数据模型之间的模型映射关系生成可视化图像,输出所述可视化的图像;generating a visualized image from the model mapping relationship between the receiving end data model and the sending end data model, and outputting the visualized image;

接收用户对所述可视化图像的调整指令,根据所述调整指令调整收端数据模型与所述发送端数据模型之间的模型映射关系,所述调整指令包括增加参数、删除参数、修改参数的调整指令。Receive the user's adjustment instruction for the visualized image, and adjust the model mapping relationship between the data model of the receiving end and the data model of the sending end according to the adjustment instruction, and the adjustment instruction includes the adjustment of adding parameters, deleting parameters, and modifying parameters instruction.

第二方面,本申请提供一种基于模型映射的配置参数管理装置,包括:In a second aspect, the present application provides a configuration parameter management device based on model mapping, including:

模型抽离模块:用于获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型;及获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型;Model extraction module: used to obtain the network protocol model of the receiving end, perform parameter extraction on the network protocol model of the receiving end, and obtain the data model of the receiving end; and obtain the network protocol model of the sending end, and perform the network protocol model of the sending end. The parameters are extracted to obtain the data model of the sender;

模型映射模块:用于建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系;Model mapping module: used to establish a model mapping relationship between the receiving end data model and the sending end data model;

参数配置模块:用于当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数。The parameter configuration module is used to convert the configuration parameters sent by the sender into target configuration parameters of the receiver according to the model mapping relationship when receiving the configuration parameters sent by the sender.

第三方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述的基于模型映射的配置参数管理方法。In a third aspect, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned model mapping-based configuration parameter management method is implemented.

第四方面,本申请还提供了一种控制终端,所述控制终端包括一个或多个处理器、存储器、一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的基于模型映射的配置参数管理方法。In a fourth aspect, the present application further provides a control terminal, the control terminal includes one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to execute the above-described model mapping-based configuration parameter management method.

本申请与现有技术相比,具有以下有益效果:Compared with the prior art, the present application has the following beneficial effects:

本申请提供了一种在多种通信协议交互中,基于模型映射对多种通信协议交互时的参数进行配置、管理的方法,所述方法是在同一设备中进行的,在同一设备种进行多种通信协议的交互,利用一中间模块对网络协议接收端进行参数抽离,得到接收端数据模型,以及对网络协议发送端进行参数抽离,得到发送端数据模型;再对接收端数据模型及发送端数据模型进行梳理,从而建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系,当中间模块接收到发送端发送的配置参数时,便可按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,完成不同网络协议的发送端与接收端的交互,完成参数的接收和参数的发送,并且实现参数的配置与网络协议定义的解耦,提高参数管理的应用广泛性,提高参数的配置效率。The present application provides a method for configuring and managing parameters in the interaction of multiple communication protocols based on model mapping in the interaction of multiple communication protocols. The interaction of a communication protocol, using an intermediate module to extract the parameters of the network protocol receiver to obtain the data model of the receiver, and to extract the parameters of the sender of the network protocol to obtain the data model of the sender; The sender data model is sorted out, so as to establish a model mapping relationship between the receiver data model and the sender data model. When the intermediate module receives the configuration parameters sent by the sender, it can follow the model mapping relationship. Convert the configuration parameters sent by the sending end into target configuration parameters of the receiving end, complete the interaction between the sending end and the receiving end of different network protocols, complete the receiving and sending of parameters, and realize the decoupling of parameter configuration and network protocol definition , to improve the wide application of parameter management and improve the efficiency of parameter configuration.

本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be set forth in part in the following description, which will become apparent from the following description, or may be learned by practice of the present application.

附图说明Description of drawings

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:

图1为本申请基于模型映射的配置参数管理方法的一实施例流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a configuration parameter management method based on model mapping of the present application;

图2为本申请基于模型映射的配置参数管理方法的另一实施例流程示意图;2 is a schematic flowchart of another embodiment of the model mapping-based configuration parameter management method of the present application;

图3为本申请基于模型映射的配置参数管理装置的一实施例示意图;3 is a schematic diagram of an embodiment of a configuration parameter management device based on model mapping in the present application;

图4为本申请控制终端的一实施例结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of a control terminal of the present application.

具体实施方式Detailed ways

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。The following describes in detail the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, but not to be construed as a limitation on the present application.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" as used in the specification of this application refers to the presence of the stated features, integers, steps, operations, but does not exclude the presence or addition of one or more other features, integers, steps, operations.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It should also be understood that terms, such as those defined in a general dictionary, should be understood to have meanings consistent with their meanings in the context of the prior art and, unless specifically defined as herein, should not be interpreted in idealistic or overly formal meaning to explain.

本申请实施例提供一种基于模型映射的配置参数管理方法,如图1所示,所述方法包括以下步骤:An embodiment of the present application provides a method for managing configuration parameters based on model mapping. As shown in FIG. 1 , the method includes the following steps:

S10:获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型。S10: Obtain a network protocol model of the receiving end, and perform parameter extraction on the network protocol model of the receiving end to obtain a data model of the receiving end.

本实施例应用于通信协议上的参数管理,本实施例方法的步骤是在同一设备中进行的,该设备涉及多种通信协议交互,将通信协议交互的双方定义为接收端和发送端,在基于多种通信协议交互的参数管理中,本实施例利用中间模块完成参数的接收和参数的发送,具体的,获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型。This embodiment is applied to parameter management on communication protocols. The steps of the method in this embodiment are performed in the same device, and the device involves the interaction of multiple communication protocols. In the parameter management based on the interaction of multiple communication protocols, the present embodiment uses an intermediate module to complete the reception of parameters and the transmission of parameters. Specifically, the network protocol model of the receiving end is obtained, and the network protocol model of the receiving end is subjected to parameter extraction to obtain Receiver data model.

S20:获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型。S20: Obtain a network protocol model of the sender, and perform parameter extraction on the network protocol model of the sender to obtain a sender data model.

同样的,获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型。Similarly, the network protocol model of the sending end is obtained, and the parameters of the network protocol model of the sending end are extracted to obtain the data model of the sending end.

S30:建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系。S30: Establish a model mapping relationship between the receiving end data model and the sending end data model.

在得到接收端数据模型及发送端数据模型后,对接收端数据模型及发送端数据模型进行梳理,从而建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系。After the receiving end data model and the sending end data model are obtained, the receiving end data model and the sending end data model are sorted out, thereby establishing a model mapping relationship between the receiving end data model and the sending end data model.

S40:当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数。S40: When receiving the configuration parameters sent by the sender, convert the configuration parameters sent by the sender into target configuration parameters of the receiver according to the model mapping relationship.

当中间模块接收到发送端发送的配置参数时,便可按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,模型映射主要是指接收端参数和发送端参数之间的转化关系,通过模型映射便能完成参数的接收和参数的发送,实现参数的配置与网络协议定义的解耦,提高参数管理的应用广泛性。When the intermediate module receives the configuration parameters sent by the sender, it can convert the configuration parameters sent by the sender into the target configuration parameters of the receiver according to the model mapping relationship. The model mapping mainly refers to the parameters of the receiver and the parameters of the sender. The conversion relationship between the parameters can be received and sent through model mapping, which realizes the decoupling of parameter configuration and network protocol definition, and improves the application of parameter management.

本实施例提供了一种在多种通信协议交互中,基于模型映射对多种通信协议交互时的参数进行配置、管理的方法,所述方法是在同一设备中进行的,在同一设备种进行多种通信协议的交互,利用一中间模块对网络协议接收端进行参数抽离,得到接收端数据模型,以及对网络协议发送端进行参数抽离,得到发送端数据模型;再对接收端数据模型及发送端数据模型进行梳理,从而建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系,当中间模块接收到发送端发送的配置参数时,便可按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,完成不同网络协议的发送端与接收端的交互,完成参数的接收和参数的发送,并且实现参数的配置与网络协议定义的解耦,提高参数管理的应用广泛性,提高参数的配置效率。This embodiment provides a method for configuring and managing parameters in the interaction of multiple communication protocols based on model mapping in the interaction of multiple communication protocols. The method is performed in the same device and is performed in the same device. For the interaction of multiple communication protocols, an intermediate module is used to extract the parameters of the network protocol receiving end to obtain the data model of the receiving end, and to extract the parameters of the transmitting end of the network protocol to obtain the data model of the sending end; then the data model of the receiving end is obtained. and the sending end data model to sort out, so as to establish the model mapping relationship between the receiving end data model and the sending end data model. When the intermediate module receives the configuration parameters sent by the sending end, it can be mapped according to the model The relationship converts the configuration parameters sent by the sending end into the target configuration parameters of the receiving end, completes the interaction between the sending end and the receiving end of different network protocols, completes the receiving and sending of parameters, and realizes the configuration of parameters and the definition of network protocols. It can improve the wide application of parameter management and improve the efficiency of parameter configuration.

本申请的一种实施例,所述接收端与发送端分别采用不同的网络协议;所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:In an embodiment of the present application, the receiving end and the transmitting end respectively adopt different network protocols; after establishing the model mapping relationship between the data model of the receiving end and the data model of the transmitting end, the method further includes:

根据所述模型映射关系确定接收端的网络协议与发送端的网络协议的映射关系。The mapping relationship between the network protocol of the receiving end and the network protocol of the sending end is determined according to the model mapping relationship.

本实施例中,当建立了接收端数据模型与所述发送端数据模型之间的模型映射关系,根据所述模型映射关系确定接收端的网络协议与发送端的网络协议的映射关系,能够得到两种不同网络协议之间的映射关系,当后续有相同的网络协议的接收端/发送端时,便可根据所述网络协议的映射关系快速确定对应的接收端数据模型与发送端数据模型之间的模型映射关系,从而快速地完成参数的接收和参数的发送。In this embodiment, when the model mapping relationship between the data model of the receiving end and the data model of the sending end is established, and the mapping relationship between the network protocol of the receiving end and the network protocol of the sending end is determined according to the model mapping relationship, two types of mapping relationships can be obtained. The mapping relationship between different network protocols, when there are receivers/transmitters of the same network protocol subsequently, the mapping relationship between the corresponding receiver data model and the sender data model can be quickly determined according to the mapping relationship of the network protocol. Model mapping relationship, so as to quickly complete the receiving and sending of parameters.

本申请的一种实施例,所述述接收端的网络协议与发送端的网络协议包括至少三种不同的网络协议;In an embodiment of the present application, the network protocol at the receiving end and the network protocol at the sending end include at least three different network protocols;

所述建立所述接收端数据模型和所述发送端数据模型的模型映射关系,包括:Described establishing the model mapping relationship between the data model of the receiving end and the data model of the sending end, including:

建立两两不同的网络协议之间对应的数据模型的模型映射关系,或,Establish a model mapping relationship between the corresponding data models between two different network protocols, or,

将两两不同的网络协议之间对应的数据模型的模型映射关系合并,建立各不同的网络协议之间对应的数据模型的统一模型映射关系。The model mapping relationships of the corresponding data models between the two different network protocols are merged, and a unified model mapping relationship of the corresponding data models between the different network protocols is established.

本实施例中,同一设备中存在多个接收端和发送端,并且所述接收端的网络协议与发送端的网络协议包括至少三种不同的网络协议,即设备中的网络协议交互包括了至少三种不同的网络协议,在建立接收端数据模型和发送端数据模型的模型映射关系时,对于两两不同的网络协议,建立两两不同的网络协议之间对应的数据模型的模型映射关系,从而能够快速地匹配网络协议对应的数据模型的模型映射关系,提高不同网络协议之间交互的效率;或者,将两两不同的网络协议之间对应的数据模型的模型映射关系合并,建立各不同的网络协议之间对应的数据模型的统一模型映射关系,从而能够统一地进行不同网络协议之间的交互,减少资源的占用。在一种实施方式中,接收端的网络协议与发送端的网络协议包括A、B、C三种不同的网络协议,在建立不同的网络协议之间对应的数据模型的模型映射关系,建立网络协议A与网络协议B对应的数据模型的模型映射关系GAB,建立网络协议A与网络协议C对应的数据模型的模型映射关系GAC,建立网络协议B与网络协议C对应的数据模型的模型映射关系GBC,当网络协议A与网络协议B进行交互时,根据模型映射关系GAB便可完成网络协议A与网络协议B之间参数的接收和参数的发送。在另一种实施方式中,将模型映射关系GAB、GAC、GBC进行合并,生成网络协议A、网络协议B及网络协议C之间对应的数据模型的统一模型映射关系GABC,当网络协议A与网络协议C进行交互时,根据模型映射关系GABC便可完成网络协议A与网络协议C之间参数的接收和参数的发送,同样的,当网络协议C与网络协议C进行交互时,根据模型映射关系GABC便可完成网络协议B与网络协议C之间参数的接收和参数的发送。In this embodiment, there are multiple receivers and senders in the same device, and the network protocol of the receiver and the network protocol of the sender include at least three different network protocols, that is, the network protocol interaction in the device includes at least three kinds of network protocols. For different network protocols, when establishing the model mapping relationship between the data model of the receiver and the data model of the sender, for two different network protocols, the model mapping relationship of the corresponding data models between the different network protocols is established, so as to be able to Quickly match the model mapping relationship of the data model corresponding to the network protocol to improve the efficiency of interaction between different network protocols; or combine the model mapping relationship of the corresponding data models between two different network protocols to establish different networks The unified model mapping relationship between the corresponding data models between the protocols enables unified interaction between different network protocols and reduces resource occupation. In one embodiment, the network protocol of the receiving end and the network protocol of the sending end include three different network protocols, A, B, and C, and the model mapping relationship of the corresponding data models between the different network protocols is established, and the network protocol A is established. The model mapping relationship G AB of the data model corresponding to the network protocol B, the model mapping relationship G AC of the data model corresponding to the network protocol A and the network protocol C is established, and the model mapping relationship of the data model corresponding to the network protocol B and the network protocol C is established. G BC , when the network protocol A interacts with the network protocol B, according to the model mapping relationship G AB , the parameter reception and parameter transmission between the network protocol A and the network protocol B can be completed. In another embodiment, the model mapping relationships G AB , G AC , and G BC are combined to generate a unified model mapping relationship G ABC of the corresponding data models between network protocol A, network protocol B, and network protocol C. When When the network protocol A interacts with the network protocol C, the parameter reception and parameter transmission between the network protocol A and the network protocol C can be completed according to the model mapping relationship G ABC . Similarly, when the network protocol C interacts with the network protocol C , the receiving and sending of parameters between network protocol B and network protocol C can be completed according to the model mapping relationship G ABC .

本申请的一种实施例,所述按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,包括:In an embodiment of the present application, converting the configuration parameters sent by the sender into target configuration parameters of the receiver according to the model mapping relationship includes:

按照所述模型映射关系从预置的数据库配置中获取所述发送端发送的配置参数对应的目标配置参数的参数量及参数信息;According to the model mapping relationship, the parameter quantity and parameter information of the target configuration parameter corresponding to the configuration parameter sent by the sending end are obtained from the preset database configuration;

控制预置的软件逻辑根据所述参数量及参数信息生成所述参数量对应个数的目标配置参数。The software logic that controls the preset generates a number of target configuration parameters corresponding to the parameter quantity according to the parameter quantity and the parameter information.

本实施例中,所述模型映射关系保存了模型之间的映射关系逻辑,在按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数时,按照所述模型映射关系从预置的数据库配置中获取所述发送端发送的配置参数对应的目标配置参数的参数量及参数信息,从数据库获取目标配置参数的数量及信息,然后控制预置的软件逻辑根据所述参数量及参数信息生成所述参数量对应个数的目标配置参数,从而生成对应的目标配置参数,映射关系逻辑以预置的软件逻辑控制,而目标配置参数实际参数量以表格配置,所述表格存储在预置的数据库中,两者互不干涉,可以通过修改预置的数据库或修改预置的软件逻辑修改模型映射关系,维护人员可自行调整映射关系,不用进行软件编码,便于维护人员维护,且参数管理具体以配置表格呈现,灵活多变。In this embodiment, the model mapping relationship stores the logic of the mapping relationship between models. When the configuration parameters sent by the sender are converted into target configuration parameters of the receiver according to the model mapping relationship, the model mapping is performed according to the model mapping relationship. The relation obtains the parameter quantity and parameter information of the target configuration parameter corresponding to the configuration parameter sent by the sending end from the preset database configuration, obtains the quantity and information of the target configuration parameter from the database, and then controls the preset software logic according to the described The parameter quantities and parameter information generate target configuration parameters corresponding to the number of parameters, thereby generating corresponding target configuration parameters, the mapping relationship logic is controlled by preset software logic, and the actual parameter quantities of the target configuration parameters are configured in a table, the described The tables are stored in the preset database, and the two do not interfere with each other. The model mapping relationship can be modified by modifying the preset database or modifying the preset software logic. Maintenance personnel can adjust the mapping relationship without software coding, which is convenient for maintenance personnel. Maintenance, and parameter management is presented in a configuration table, which is flexible and changeable.

本申请的一种实施例,所述当接收到发送端发送的配置参数之后,还包括:In an embodiment of the present application, after receiving the configuration parameters sent by the sender, the method further includes:

获取所述配置参数的参数类型;Obtain the parameter type of the configuration parameter;

若所述配置参数为查询类型参数,按照所述模型映射关系查询所述配置参数对应的目标配置参数;If the configuration parameter is a query type parameter, query the target configuration parameter corresponding to the configuration parameter according to the model mapping relationship;

将所述目标配置参数发送至发送端。Send the target configuration parameter to the sender.

本实施例中,当接收到发送端发送的配置参数之后,获取所述配置参数的参数类型,所述参数类型能够反映所述发送端当前的交互意图,若所述配置参数为查询类型参数,则确定发送端当前的交互意图是查询目标配置参数,而不与其他接收端进行交互,此时按照所述模型映射关系查询所述配置参数对应的目标配置参数,当查询到目标配置参数后,将所述目标配置参数返回至发送端,而不需要发送至接收端,提供了发送端查询目标配置参数的效率。In this embodiment, after receiving the configuration parameter sent by the sender, the parameter type of the configuration parameter is obtained, and the parameter type can reflect the current interaction intention of the sender. If the configuration parameter is a query type parameter, Then it is determined that the current interaction intention of the sender is to query the target configuration parameters without interacting with other receivers. At this time, according to the model mapping relationship, the target configuration parameters corresponding to the configuration parameters are queried. When the target configuration parameters are queried, The target configuration parameters are returned to the sender without sending them to the receiver, which provides the sender with the efficiency of querying the target configuration parameters.

本申请的一种实施例,所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:In an embodiment of the present application, after establishing the model mapping relationship between the data model at the receiving end and the data model at the sending end, the method further includes:

当监测接收端数据模型和/或所述发送端数据模型的变更信息时;When monitoring the change information of the data model of the receiving end and/or the data model of the sending end;

根据所述变更信息调整所述接收端数据模型与所述发送端数据模型之间的模型映射关系,或Adjust the model mapping relationship between the receiver data model and the sender data model according to the change information, or

获取变更后的接收端数据模型与所述发送端数据模型,建立变更后的接收端数据模型与所述发送端数据模型之间的模型映射关系。Acquire the changed data model of the receiving end and the data model of the sending end, and establish a model mapping relationship between the changed data model of the receiving end and the data model of the sending end.

本实施例中,在建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,需要实时监测发送端的网络协议或接收端的网络协议是否发生变化,即监测接收端数据模型与所述发送端数据模型是否发送变化,当监测接收端数据模型和/或所述发送端数据模型时,获取接收端数据模型和/或所述发送端数据模型的变更信息,然后根据所述变更信息调整所述接收端数据模型与所述发送端数据模型之间的模型映射关系,在一种实施方式中,基于所述变更信息即可确定变更后的接收端数据模型与所述发送端数据模型之间之间的模型映射关系,则基于所述变更信息调整所述接收端数据模型与所述发送端数据模型之间的模型映射关系。在另0一种实施方式中,基于所述变更信息无法直接确定变更后的接收端数据模型与所述发送端数据模型之间之间的模型映射关系,例如当所述接收端数据模型和/或所述发送端数据模型的变更程度较高时,则获取变更后的接收端数据模型与所述发送端数据模型,然后建立变更后的接收端数据模型与所述发送端数据模型之间的模型映射关系,从而实时更新接收端数据模型与所述发送端数据模型之间的模型映射关系,以准确地管理接收端或发送端的目标配置参数。In this embodiment, after establishing the model mapping relationship between the data model of the receiving end and the data model of the transmitting end, it is necessary to monitor in real time whether the network protocol of the transmitting end or the network protocol of the receiving end has changed, that is, monitoring the data model of the receiving end Depending on whether the data model of the sending end is changed, when monitoring the data model of the receiving end and/or the data model of the sending end, obtain the change information of the data model of the receiving end and/or the data model of the sending end, and then according to the The change information adjusts the model mapping relationship between the receiving end data model and the sending end data model. In one embodiment, the changed receiving end data model and the sending end can be determined based on the changing information. The model mapping relationship between the data models is adjusted based on the change information. The model mapping relationship between the receiving end data model and the sending end data model is adjusted. In another implementation manner, the model mapping relationship between the changed receiving-end data model and the sending-end data model cannot be directly determined based on the change information, for example, when the receiving-end data model and/or Or when the degree of change of the data model of the sending end is relatively high, the changed data model of the receiving end and the data model of the sending end are obtained, and then the relationship between the data model of the receiving end after the change and the data model of the sending end is established. model mapping relationship, so as to update the model mapping relationship between the data model of the receiving end and the data model of the sending end in real time, so as to accurately manage the target configuration parameters of the receiving end or the sending end.

本申请的一种实施例,如图2所示,所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:In an embodiment of the present application, as shown in FIG. 2 , after establishing the model mapping relationship between the data model of the receiving end and the data model of the transmitting end, the method further includes:

S50:将所述所述接收端数据模型与所述发送端数据模型之间的模型映射关系生成可视化图像,输出所述可视化的图像;S50: Generate a visual image from the model mapping relationship between the receiving end data model and the transmitting end data model, and output the visualized image;

S51:接收用户对所述可视化图像的调整指令,根据所述调整指令调整收端数据模型与所述发送端数据模型之间的模型映射关系,所述调整指令包括增加参数、删除参数、修改参数的调整指令。S51: Receive an adjustment instruction for the visualized image from the user, and adjust the model mapping relationship between the data model at the receiving end and the data model at the sending end according to the adjustment instruction, where the adjustment instruction includes adding parameters, deleting parameters, and modifying parameters adjustment command.

本实施例中,当建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,将所述所述接收端数据模型与所述发送端数据模型之间的模型映射关系生成可视化图像,利用可视化的图像直观地展示模型映射关系,然后输出所述可视化的图像,当用户需要对模型映射关系进行调整时,接收用户对所述可视化图像的调整指令,从而根据所述调整指令调整相应的收端数据模型与所述发送端数据模型之间的模型映射关系,所述调整指令包括增加参数、删除参数、修改参数的调整指令,维护人员可以直观地从可视化图像对模型映射关系进行调整,提高了模型映射关系调整的便捷性,维护人员可自行调整映射关系,不用进行软件编码,降低了模型映射关系调整的门槛,提高了模型映射关系调整的效率。In this embodiment, after the model mapping relationship between the receiving end data model and the sending end data model is established, the model mapping relationship between the receiving end data model and the sending end data model is Generate a visualized image, use the visualized image to visually display the model mapping relationship, and then output the visualized image, when the user needs to adjust the model mapping relationship, receive the user's adjustment instruction on the visualized image, so as to adjust according to the adjustment The instruction adjusts the model mapping relationship between the corresponding receiving end data model and the sending end data model. The adjustment instruction includes adjustment instructions for adding parameters, deleting parameters, and modifying parameters. Maintenance personnel can intuitively map the model from the visual image. The relationship is adjusted, which improves the convenience of model mapping relationship adjustment. Maintenance personnel can adjust the mapping relationship by themselves without software coding, which reduces the threshold for model mapping relationship adjustment and improves the efficiency of model mapping relationship adjustment.

在一种应用实施例中,本申请应用于BBU->RRU主机->RRU从机的交互流程中,以配置参数“频点”为例,BBU配置RRU频点的频点交互参数涉及频点的单位,传输比例等,RRU主机与RRU从机的交互参数除了频点参数属性单位,传输比例,还包括主从机交互的OID,数据类型等。本实施例建立BBU->RRU主机的映射关系及RRU主机->RRU从机的映射关系,基于BBU->RRU主机的映射关系将BBU发送的频点转化为RRU主机的频点交互参数,基于RRU主机->RRU从机的映射关系将RRU主机的频点交互参数转化为RRU从机的频点参数属性单位、传输比例、OID及数据类型,完成BBU->RRU主机->RRU从机的交互,其中,RRU是Radio RemoteUnit射频拉远模块,BBU是Building Baseband Unit室内基带处理单元。In an application embodiment, the present application is applied to the interaction process of BBU->RRU master->RRU slave, taking the configuration parameter "frequency point" as an example, the frequency point interaction parameter of the BBU configuring the RRU frequency point involves the frequency point In addition to the frequency parameter attribute unit and transmission ratio, the interaction parameters between the RRU master and the RRU slave also include the OID and data type of the master-slave interaction. This embodiment establishes the mapping relationship between the BBU->RRU master and the RRU master->RRU slave, and converts the frequency points sent by the BBU into the frequency point interaction parameters of the RRU master based on the mapping relationship between the BBU->RRU master. The mapping relationship between the RRU master and the RRU slave converts the frequency interaction parameters of the RRU master into the frequency parameter attribute unit, transmission ratio, OID and data type of the RRU slave, and completes the BBU->RRU master->RRU slave. Interaction, where RRU is the Radio RemoteUnit module, and BBU is the indoor baseband processing unit of the Building Baseband Unit.

如图3所示,在另一种实施例中,本申请提供了一种基于模型映射的配置参数管理装置,包括:As shown in FIG. 3, in another embodiment, the present application provides a configuration parameter management device based on model mapping, including:

模型抽离模块10:用于获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型;及获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型;Model extraction module 10: used to obtain the network protocol model of the receiving end, perform parameter extraction on the network protocol model of the receiving end, and obtain the data model of the receiving end; and obtain the network protocol model of the sending end, and analyze the network protocol model of the sending end. Perform parameter extraction to obtain the data model of the sender;

模型映射模块20:用于建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系;Model mapping module 20: used to establish a model mapping relationship between the receiving end data model and the sending end data model;

参数配置模块30:用于当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数。The parameter configuration module 30 is configured to convert the configuration parameters sent by the sender into target configuration parameters of the receiver according to the model mapping relationship when receiving the configuration parameters sent by the sender.

本申请的一种实施例,所述接收端与发送端分别采用不同的网络协议;所述模型映射模块20还包括执行;In an embodiment of the present application, the receiving end and the sending end respectively use different network protocols; the model mapping module 20 further includes executing;

根据所述模型映射关系确定接收端的网络协议与发送端的网络协议的映射关系。The mapping relationship between the network protocol of the receiving end and the network protocol of the sending end is determined according to the model mapping relationship.

本申请的一种实施例,所述述接收端的网络协议与发送端的网络协议包括至少三种不同的网络协议;所述模型映射模块20还包括执行:In an embodiment of the present application, the network protocol at the receiving end and the network protocol at the sending end include at least three different network protocols; the model mapping module 20 further includes executing:

建立两两不同的网络协议之间对应的数据模型的模型映射关系,或,Establish a model mapping relationship between the corresponding data models between two different network protocols, or,

将两两不同的网络协议之间对应的数据模型的模型映射关系合并,建立各不同的网络协议之间对应的数据模型的统一模型映射关系。The model mapping relationships of the corresponding data models between the two different network protocols are merged, and a unified model mapping relationship of the corresponding data models between the different network protocols is established.

本申请的一种实施例,所述参数配置模块30还包括执行:In an embodiment of the present application, the parameter configuration module 30 further includes executing:

按照所述模型映射关系从预置的数据库配置中获取所述发送端发送的配置参数对应的目标配置参数的参数量及参数信息;According to the model mapping relationship, the parameter quantity and parameter information of the target configuration parameter corresponding to the configuration parameter sent by the sending end are obtained from the preset database configuration;

控制预置的软件逻辑根据所述参数量及参数信息生成所述参数量对应个数的目标配置参数。The software logic that controls the preset generates a number of target configuration parameters corresponding to the parameter quantity according to the parameter quantity and the parameter information.

本申请的一种实施例,所述参数配置模块30还包括执行:In an embodiment of the present application, the parameter configuration module 30 further includes executing:

获取所述配置参数的参数类型;Obtain the parameter type of the configuration parameter;

若所述配置参数为查询类型参数,按照所述模型映射关系查询所述配置参数对应的目标配置参数;If the configuration parameter is a query type parameter, query the target configuration parameter corresponding to the configuration parameter according to the model mapping relationship;

将所述目标配置参数发送至发送端。Send the target configuration parameter to the sender.

本申请的一种实施例,所述装置还包括:In an embodiment of the present application, the device further includes:

调整模块:用于当监测接收端数据模型和/或所述发送端数据模型的变更信息时;Adjustment module: used when monitoring the change information of the data model of the receiving end and/or the data model of the sending end;

根据所述变更信息调整所述接收端数据模型与所述发送端数据模型之间的模型映射关系,或Adjust the model mapping relationship between the receiver data model and the sender data model according to the change information, or

获取变更后的接收端数据模型与所述发送端数据模型,建立变更后的接收端数据模型与所述发送端数据模型之间的模型映射关系。Acquire the changed data model of the receiving end and the data model of the sending end, and establish a model mapping relationship between the changed data model of the receiving end and the data model of the sending end.

本申请的一种实施例,所述调整模块还包括执行:In an embodiment of the present application, the adjustment module further includes executing:

将所述所述接收端数据模型与所述发送端数据模型之间的模型映射关系生成可视化图像,输出所述可视化的图像;generating a visualized image from the model mapping relationship between the receiving end data model and the sending end data model, and outputting the visualized image;

接收用户对所述可视化图像的调整指令,根据所述调整指令调整收端数据模型与所述发送端数据模型之间的模型映射关系,所述调整指令包括增加参数、删除参数、修改参数的调整指令。Receive the user's adjustment instruction for the visualized image, and adjust the model mapping relationship between the data model of the receiving end and the data model of the sending end according to the adjustment instruction, and the adjustment instruction includes the adjustment of adding parameters, deleting parameters, and modifying parameters instruction.

在另一种实施例中,本申请提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述实施例所述的基于模型映射的配置参数管理方法。其中,所述计算机可读存储介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(RandomAcceSS Memory,随即存储器)、EPROM(EraSable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically EraSable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,存储设备包括由设备以能够读的形式存储或传输信息的任何介质,可以是只读存储器,磁盘或光盘等。In another embodiment, the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the model-mapping-based algorithm described in the foregoing Configure the parameter management method. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory) , RAM), EPROM (EraSable Programmable Read-Only Memory), EEPROM (Electrically EraSable Programmable Read-Only Memory), flash memory, magnetic card or light card. That is, a storage device includes any medium that stores or transmits information in a form that can be read by the device, and may be a read-only memory, a magnetic or optical disk, or the like.

本申请实施例提供的一种计算机可读存储介质,可实现获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型;获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型;建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系;当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数。通过提供一种在多种通信协议交互中,基于模型映射对多种通信协议交互时的参数进行配置、管理的方法,所述方法是在同一设备中进行的,在同一设备种进行多种通信协议的交互,利用一中间模块对网络协议接收端进行参数抽离,得到接收端数据模型,以及对网络协议发送端进行参数抽离,得到发送端数据模型;再对接收端数据模型及发送端数据模型进行梳理,从而建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系,当中间模块接收到发送端发送的配置参数时,便可按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,完成不同网络协议的发送端与接收端的交互,完成参数的接收和参数的发送,并且实现参数的配置与网络协议定义的解耦,提高参数管理的应用广泛性,提高参数的配置效率。The computer-readable storage medium provided by the embodiment of the present application can realize the acquisition of the network protocol model of the receiving end, and perform parameter extraction on the network protocol model of the receiving end to obtain the data model of the receiving end; Perform parameter extraction on the network protocol model of the sending end to obtain a data model of the sending end; establish a model mapping relationship between the data model of the receiving end and the data model of the sending end; when receiving the configuration parameters sent by the sending end, The configuration parameters sent by the sender are converted into target configuration parameters of the receiver according to the model mapping relationship. By providing a method for configuring and managing parameters in the interaction of multiple communication protocols based on model mapping in the interaction of multiple communication protocols, the method is performed in the same device, and multiple communications are performed in the same device. For protocol interaction, an intermediate module is used to extract parameters from the receiver of the network protocol to obtain the data model of the receiver, and to extract parameters from the sender of the network protocol to obtain the data model of the sender; then the data model of the receiver and the sender are obtained. The data model is sorted out, so as to establish a model mapping relationship between the data model of the receiving end and the data model of the sending end. When the intermediate module receives the configuration parameters sent by the sending end, it can follow the model mapping relationship. The configuration parameters sent by the sender are converted into the target configuration parameters of the receiver, the interaction between the sender and the receiver of different network protocols is completed, the reception of parameters and the transmission of parameters are completed, and the configuration of parameters is decoupled from the definition of the network protocol. The extensive application of parameter management improves the efficiency of parameter configuration.

本申请实施例提供的计算机可读存储介质可以实现上述基于模型映射的配置参数管理方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。The computer-readable storage medium provided by the embodiment of the present application can implement the above-mentioned embodiment of the configuration parameter management method based on model mapping. For specific function implementation, please refer to the description in the method embodiment, which is not repeated here.

此外,在又一种实施例中,本申请还提供一种控制终端,如图4所示,所述控制终端包括处理器403、存储器405、输入单元407以及显示单元409等器件。本领域技术人员可以理解,图4示出的结构器件并不构成对所有控制终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件。所述存储器405可用于存储计算机程序401以及各功能模块,所述处理器403运行存储在存储器405的计算机程序401,从而执行设备的各种功能应用以及数据处理。所述存储器405可以是内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。In addition, in another embodiment, the present application further provides a control terminal. As shown in FIG. 4 , the control terminal includes a processor 403 , a memory 405 , an input unit 407 , and a display unit 409 and other devices. Those skilled in the art can understand that the structural devices shown in FIG. 4 do not constitute a limitation on all control terminals, and may include more or less components than those shown, or combine certain components. The memory 405 can be used to store the computer program 401 and various functional modules, and the processor 403 executes the computer program 401 stored in the memory 405 to execute various functional applications and data processing of the device. The memory 405 may be internal memory or external memory, or include both internal memory and external memory. Internal memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, or random access memory.

输入单元407用于接收信号的输入及接收用户的输入,输入单元407可包括触控面板以及其它输入设备,触控面板可收集用户在其上或附近的触摸操作,并根据预先设定的程序驱动相应的连接装置。显示单元409可用于显示用户输入的信息或提供给用户的信息以及计算机设备的各种菜单。显示单元409可采用液晶显示器、有机发光二极管等形式。处理器403是计算机设备的控制中心,利用各种接口和线路连接整个电脑的各个部分,通过运行或执行存储在存储器403内的软件程序和/或模块,以及调用存储在存储器内的数据,执行各种功能和处理数据。The input unit 407 is used to receive signal input and user input. The input unit 407 may include a touch panel and other input devices. The touch panel may collect the user's touch operations on or near it, and process the user's touch operations according to a preset program. Activate the corresponding connection device. The display unit 409 may be used to display information input by the user or information provided to the user and various menus of the computer device. The display unit 409 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 403 is the control center of the computer equipment, using various interfaces and lines to connect various parts of the entire computer, by running or executing the software programs and/or modules stored in the memory 403, and calling the data stored in the memory. Various functions and processing data.

在一种实施方式中,所述控制终端包括一个或多个处理器403,以及一个或多个存储器405,一个或多个计算机程序401,其中所述一个或多个计算机程序401被存储在存储器405中并被配置为由所述一个或多个处理器403执行,所述一个或多个计算机程序401配置用于执行以上实施例所述的基于模型映射的配置参数管理方法。图4中所示的一个或多个处理器403能够执行、实现图3中所示的模型抽离模块10、模型映射模块20、参数配置模块30的功能。In one embodiment, the control terminal includes one or more processors 403, and one or more memories 405, one or more computer programs 401, wherein the one or more computer programs 401 are stored in the memory In 405 and configured to be executed by the one or more processors 403, the one or more computer programs 401 are configured to execute the model mapping-based configuration parameter management method described in the above embodiments. The one or more processors 403 shown in FIG. 4 can execute and realize the functions of the model extraction module 10 , the model mapping module 20 , and the parameter configuration module 30 shown in FIG. 3 .

本申请实施例提供的一种控制终端,可实现获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型;获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型;建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系;当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数。通过提供一种在多种通信协议交互中,基于模型映射对多种通信协议交互时的参数进行配置、管理的方法,所述方法是在同一设备中进行的,在同一设备种进行多种通信协议的交互,利用一中间模块对网络协议接收端进行参数抽离,得到接收端数据模型,以及对网络协议发送端进行参数抽离,得到发送端数据模型;再对接收端数据模型及发送端数据模型进行梳理,从而建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系,当中间模块接收到发送端发送的配置参数时,便可按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,完成不同网络协议的发送端与接收端的交互,完成参数的接收和参数的发送,并且实现参数的配置与网络协议定义的解耦,提高参数管理的应用广泛性,提高参数的配置效率。A control terminal provided by an embodiment of the present application can realize the acquisition of a network protocol model of a receiving end, perform parameter extraction on the network protocol model of the receiving end, and obtain a data model of the receiving end; Perform parameter extraction from the network protocol model of the terminal to obtain the data model of the transmitting end; establish a model mapping relationship between the data model of the receiving end and the data model of the transmitting end; when receiving the configuration parameters sent by the transmitting end, follow the described The model mapping relationship converts the configuration parameters sent by the sender into target configuration parameters of the receiver. By providing a method for configuring and managing parameters in the interaction of multiple communication protocols based on model mapping in the interaction of multiple communication protocols, the method is performed in the same device, and multiple communications are performed in the same device. For protocol interaction, an intermediate module is used to extract parameters from the receiver of the network protocol to obtain the data model of the receiver, and to extract parameters from the sender of the network protocol to obtain the data model of the sender; then the data model of the receiver and the sender are obtained. The data model is sorted out, so as to establish a model mapping relationship between the data model of the receiving end and the data model of the sending end. When the intermediate module receives the configuration parameters sent by the sending end, it can follow the model mapping relationship. The configuration parameters sent by the sender are converted into the target configuration parameters of the receiver, the interaction between the sender and the receiver of different network protocols is completed, the reception of parameters and the transmission of parameters are completed, and the configuration of parameters is decoupled from the definition of the network protocol. The extensive application of parameter management improves the efficiency of parameter configuration.

本申请实施例提供的控制终端可以实现上述提供的基于模型映射的配置参数管理方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。The control terminal provided by the embodiments of the present application can implement the above-mentioned embodiments of the model mapping-based configuration parameter management method. For specific function realization, please refer to the description in the method embodiments, which will not be repeated here.

以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can also be made. It should be regarded as the protection scope of this application.

Claims (9)

1.一种基于模型映射的配置参数管理方法,其特征在于,应用于存在多个接收端和发送端的同一设备中,包括以下步骤:1. a configuration parameter management method based on model mapping, is characterized in that, is applied to exist in the same equipment of multiple receivers and transmitters, comprises the following steps: 获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型;Obtain the network protocol model of the receiving end, and perform parameter extraction on the network protocol model of the receiving end to obtain the data model of the receiving end; 获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型;Obtain the network protocol model of the sending end, and perform parameter extraction on the network protocol model of the sending end to obtain the data model of the sending end; 建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系,以预置的软件逻辑控制所述模型映射关系的逻辑;establishing a model mapping relationship between the receiving end data model and the sending end data model, and controlling the logic of the model mapping relationship with preset software logic; 当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数,所述目标配置参数配置为表格,存储在预置的数据库中;按照所述模型映射关系从预置的数据库配置中获取所述发送端发送的配置参数对应的目标配置参数的参数量及参数信息;控制预置的软件逻辑根据所述参数量及参数信息生成所述参数量对应个数的目标配置参数;When the configuration parameters sent by the sender are received, the configuration parameters sent by the sender are converted into target configuration parameters of the receiver according to the model mapping relationship, and the target configuration parameters are configured as a table and stored in a preset database. Obtain the parameter quantity and parameter information of the target configuration parameter corresponding to the configuration parameter sent by the sending end from the preset database configuration according to the model mapping relationship; control the preset software logic to generate according to the parameter quantity and the parameter information The number of target configuration parameters corresponding to the parameter quantity; 通过修改所述预置的软件逻辑或修改所述预置的数据库实现所述模型映射关系的调整。The model mapping relationship is adjusted by modifying the preset software logic or modifying the preset database. 2.根据权利要求1所述的方法,其特征在于,所述接收端与发送端分别采用不同的网络协议;2. The method according to claim 1, wherein the receiving end and the transmitting end adopt different network protocols respectively; 所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:After the establishment of the model mapping relationship between the data model of the receiving end and the data model of the transmitting end, the method further includes: 根据所述模型映射关系确定接收端的网络协议与发送端的网络协议的映射关系。The mapping relationship between the network protocol of the receiving end and the network protocol of the sending end is determined according to the model mapping relationship. 3.根据权利要求2所述的方法,其特征在于,所述述接收端的网络协议与发送端的网络协议包括至少三种不同的网络协议;3. The method according to claim 2, wherein the network protocol of the receiving end and the network protocol of the transmitting end comprise at least three different network protocols; 所述建立所述接收端数据模型和所述发送端数据模型的模型映射关系,包括:Described establishing the model mapping relationship between the data model of the receiving end and the data model of the sending end, including: 建立两两不同的网络协议之间对应的数据模型的模型映射关系,或,Establish a model mapping relationship between the corresponding data models between two different network protocols, or, 将两两不同的网络协议之间对应的数据模型的模型映射关系合并,建立各不同的网络协议之间对应的数据模型的统一模型映射关系。The model mapping relationships of the corresponding data models between the two different network protocols are merged, and a unified model mapping relationship of the corresponding data models between the different network protocols is established. 4.根据权利要求1所述的方法,其特征在于,所述当接收到发送端发送的配置参数时之后,还包括:4. The method according to claim 1, wherein after receiving the configuration parameters sent by the transmitter, the method further comprises: 获取所述配置参数的参数类型;Obtain the parameter type of the configuration parameter; 若所述配置参数为查询类型参数,按照所述模型映射关系查询所述配置参数对应的目标配置参数;If the configuration parameter is a query type parameter, query the target configuration parameter corresponding to the configuration parameter according to the model mapping relationship; 将所述目标配置参数发送至发送端。Send the target configuration parameter to the sender. 5.根据权利要求1所述的方法,其特征在于,所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:5. The method according to claim 1, wherein after establishing the model mapping relationship between the receiving end data model and the sending end data model, the method further comprises: 当监测接收端数据模型和/或所述发送端数据模型的变更信息时;When monitoring the change information of the data model of the receiving end and/or the data model of the sending end; 根据所述变更信息调整所述接收端数据模型与所述发送端数据模型之间的模型映射关系,或Adjust the model mapping relationship between the receiver data model and the sender data model according to the change information, or 获取变更后的接收端数据模型与所述发送端数据模型,建立变更后的接收端数据模型与所述发送端数据模型之间的模型映射关系。Acquire the changed data model of the receiving end and the data model of the sending end, and establish a model mapping relationship between the changed data model of the receiving end and the data model of the sending end. 6.根据权利要求1所述的方法,其特征在于,所述建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系之后,还包括:6. The method according to claim 1, wherein after establishing the model mapping relationship between the receiving end data model and the sending end data model, the method further comprises: 将所述接收端数据模型与所述发送端数据模型之间的模型映射关系生成可视化图像,输出所述可视化的图像;generating a visualized image from the model mapping relationship between the receiving end data model and the sending end data model, and outputting the visualized image; 接收用户对所述可视化图像的调整指令,根据所述调整指令调整接收端数据模型与所述发送端数据模型之间的模型映射关系,所述调整指令包括增加参数、删除参数、修改参数的调整指令。Receive the user's adjustment instruction on the visualized image, and adjust the model mapping relationship between the data model of the receiving end and the data model of the sending end according to the adjustment instruction, and the adjustment instruction includes the adjustment of adding parameters, deleting parameters, and modifying parameters instruction. 7.一种基于模型映射的配置参数管理装置,应用于存在多个接收端和发送端的同一设备中,其特征在于,包括:7. A configuration parameter management device based on model mapping, applied in the same equipment with multiple receivers and transmitters, comprising: 模型抽离模块:用于获取接收端的网络协议模型,对所述接收端的网络协议模型进行参数抽离,得到接收端数据模型;及获取发送端的网络协议模型,对所述发送端的网络协议模型进行参数抽离,得到发送端数据模型;Model extraction module: used to obtain the network protocol model of the receiving end, perform parameter extraction on the network protocol model of the receiving end, and obtain the data model of the receiving end; and obtain the network protocol model of the sending end, and perform the network protocol model of the sending end. The parameters are extracted to obtain the data model of the sender; 模型映射模块:用于建立所述接收端数据模型与所述发送端数据模型之间的模型映射关系;以预置的软件逻辑控制所述模型映射关系的逻辑;Model mapping module: used to establish the model mapping relationship between the data model of the receiving end and the data model of the sending end; the logic of controlling the model mapping relationship with preset software logic; 参数配置模块:用于当接收到发送端发送的配置参数时,按照所述模型映射关系将所述发送端发送的配置参数转化为接收端的目标配置参数;所述目标配置参数配置为表格,存储在预置的数据库中;按照所述模型映射关系从预置的数据库配置中获取所述发送端发送的配置参数对应的目标配置参数的参数量及参数信息;控制预置的软件逻辑根据所述参数量及参数信息生成所述参数量对应个数的目标配置参数;通过修改所述预置的软件逻辑或修改所述预置的数据库实现所述模型映射关系的调整。Parameter configuration module: when receiving the configuration parameters sent by the sender, convert the configuration parameters sent by the sender into the target configuration parameters of the receiver according to the model mapping relationship; the target configuration parameters are configured as a table and stored In the preset database; obtain the parameter quantity and parameter information of the target configuration parameters corresponding to the configuration parameters sent by the sending end from the preset database configuration according to the model mapping relationship; control the preset software logic according to the The parameter quantity and the parameter information generate target configuration parameters corresponding to the number of the parameter quantity; the adjustment of the model mapping relationship is realized by modifying the preset software logic or modifying the preset database. 8.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至6任一项所述的基于模型映射的配置参数管理方法。8. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the model-based model according to any one of claims 1 to 6 is implemented Mapped configuration parameter management methods. 9.一种控制终端,其特征在于,包括:9. A control terminal, characterized in that, comprising: 一个或多个处理器;one or more processors; 存储器;memory; 一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个计算机程序配置用于执行根据权利要求1至6任一项所述的基于模型映射的配置参数管理方法。one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs are configured to execute The configuration parameter management method based on model mapping according to any one of claims 1 to 6.
CN201911397494.0A 2019-12-30 2019-12-30 Configuration parameter management method, device, storage medium and control terminal Active CN110933114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911397494.0A CN110933114B (en) 2019-12-30 2019-12-30 Configuration parameter management method, device, storage medium and control terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911397494.0A CN110933114B (en) 2019-12-30 2019-12-30 Configuration parameter management method, device, storage medium and control terminal

Publications (2)

Publication Number Publication Date
CN110933114A CN110933114A (en) 2020-03-27
CN110933114B true CN110933114B (en) 2022-04-26

Family

ID=69862496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911397494.0A Active CN110933114B (en) 2019-12-30 2019-12-30 Configuration parameter management method, device, storage medium and control terminal

Country Status (1)

Country Link
CN (1) CN110933114B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112688952B (en) * 2020-12-28 2022-09-30 京信网络系统股份有限公司 Message processing method, device, remote radio unit and medium
CN114189365B (en) * 2021-11-26 2024-05-28 特赞(上海)信息科技有限公司 Universal multi-tenant service authorization method and device based on field mapping

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043379A (en) * 2007-03-22 2007-09-26 华为技术有限公司 Network management apparatus and network management method
CN101527704A (en) * 2008-03-05 2009-09-09 华为技术有限公司 Method and device for converting multi-protocol signalings
CN107241221A (en) * 2017-05-27 2017-10-10 烽火通信科技股份有限公司 Support the network management protocol data unified processing system and method for different network management protocols
CN108052315A (en) * 2017-12-26 2018-05-18 广州纬仪信息科技有限公司 Medical software communication means and device
CN109688164A (en) * 2019-02-22 2019-04-26 中国联合网络通信集团有限公司 Method for converting protocol and device
CN109729072A (en) * 2018-11-29 2019-05-07 沈阳无距科技有限公司 Communication protocol information processing method, device and electronic equipment
CN110474794A (en) * 2019-07-10 2019-11-19 烽火通信科技股份有限公司 A kind of information conversion method and system of SDN framework

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7558847B2 (en) * 2002-09-13 2009-07-07 Intelliden, Inc. System and method for mapping between and controlling different device abstractions

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043379A (en) * 2007-03-22 2007-09-26 华为技术有限公司 Network management apparatus and network management method
CN101527704A (en) * 2008-03-05 2009-09-09 华为技术有限公司 Method and device for converting multi-protocol signalings
CN107241221A (en) * 2017-05-27 2017-10-10 烽火通信科技股份有限公司 Support the network management protocol data unified processing system and method for different network management protocols
CN108052315A (en) * 2017-12-26 2018-05-18 广州纬仪信息科技有限公司 Medical software communication means and device
CN109729072A (en) * 2018-11-29 2019-05-07 沈阳无距科技有限公司 Communication protocol information processing method, device and electronic equipment
CN109688164A (en) * 2019-02-22 2019-04-26 中国联合网络通信集团有限公司 Method for converting protocol and device
CN110474794A (en) * 2019-07-10 2019-11-19 烽火通信科技股份有限公司 A kind of information conversion method and system of SDN framework

Also Published As

Publication number Publication date
CN110933114A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN110933146B (en) Data conversion method and device and server
US11929873B1 (en) OPC UA-based centralized user configuration method and system for time-sensitive network
WO2020083289A1 (en) Device management and control method, apparatus, and storage medium
CN110933114B (en) Configuration parameter management method, device, storage medium and control terminal
WO2018176244A1 (en) Data collection method, device, and dynamic environment network management system
CN108494637B (en) A method for connecting smart home equipment to Control4 system
CN112671572B (en) Method, device, storage medium and electronic device for smart device network distribution
CN114114933B (en) Control methods, devices, equipment and storage media for Internet of Things equipment
CN107448779A (en) Pipe leakage signal monitoring system and method based on wireless sensor network
CN111339194A (en) Automatic scheduling method and device for middleware of database access layer
CN104717135B (en) Method and device for realizing intelligent household gateway
CN108234562A (en) A kind of apparatus control method, control device and controlled plant
CN108449246A (en) A kind of intelligent domestic system based on instant message applications Yu Internet of Things Network Communication
CN102984272B (en) A kind of system of remote control mobile terminal communication capacity and method thereof
CN105050028A (en) Method and device for controlling household appliances
CN110198533A (en) A kind of method and BLE bluetooth equipment of long-range control BLE bluetooth equipment
CN110166892A (en) A kind of the intelligent sound box system and operation method of the omnipotent infrared control function of band
CN102025576A (en) Home automation system and control method thereof
CN113596084B (en) Household appliance state feedback method and system, storage medium and electronic device
CN109194731A (en) A kind of concurrent real-time Data Transmission interface realizing method based on configuration software
CN109218147B (en) Method for realizing Internet of things module
CN209784761U (en) Intelligent household control system
CN116980286A (en) Device configuration method, device control method, storage medium, and terminal
CN107172582B (en) M2M communication equipment and method based on NodeJS
WO2022087796A1 (en) Zigbee device attribute subscription method and apparatus, and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Science City, Guangdong, Guangzhou

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Science City, Guangdong, Guangzhou

Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221207

Address after: 7-1, Area A, Floor 7, Building (7), No. 10, Shenzhou Road, Huangpu District, Guangzhou, Guangdong 510663

Patentee after: Guangzhou Jingxin Communication Technology Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Science City, Guangdong, Guangzhou

Patentee before: Jingxin Network System Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250827

Address after: 7-1, Area A, Floor 7, Building (7), No. 10, Shenzhou Road, Huangpu District, Guangzhou, Guangdong 510663

Patentee after: Guangzhou Jingxin Communication Technology Co.,Ltd.

Country or region after: China

Patentee after: Jingxin Intelligent Technology (Guangzhou) Co.,Ltd.

Address before: 7-1, Area A, Floor 7, Building (7), No. 10, Shenzhou Road, Huangpu District, Guangzhou, Guangdong 510663

Patentee before: Guangzhou Jingxin Communication Technology Co.,Ltd.

Country or region before: China