WO2011116583A1 - Method and apparatus for implementing management of multi-protocol communication components - Google Patents

Method and apparatus for implementing management of multi-protocol communication components Download PDF

Info

Publication number
WO2011116583A1
WO2011116583A1 PCT/CN2010/076178 CN2010076178W WO2011116583A1 WO 2011116583 A1 WO2011116583 A1 WO 2011116583A1 CN 2010076178 W CN2010076178 W CN 2010076178W WO 2011116583 A1 WO2011116583 A1 WO 2011116583A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
message
protocol
configuration file
module
Prior art date
Application number
PCT/CN2010/076178
Other languages
French (fr)
Chinese (zh)
Inventor
康海涛
边海蓉
高歌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011116583A1 publication Critical patent/WO2011116583A1/en

Links

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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • 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/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/321Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
    • 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/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]

Definitions

  • the present invention relates to a point-to-multipoint communication device in which communication components capture a plurality of communication protocols, and more particularly to a method and apparatus for implementing management of a multi-protocol communication component in such a communication device.
  • a management component at a core location for example, a wavelength division monitoring channel management system
  • a management component may be attached to subcomponents (boards) with a variety of communication protocols, and the management component will have to implement all the protocols to support the various subcomponents that may appear in the system. This may have the following three problems:
  • each project upgrade requires an upgrade of the entire management software in the operating system, which increases the upgrade risk and system downtime.
  • the management component must also load all types of communication protocol stacks, create corresponding send and receive tasks, send and receive queues, and Resources such as semaphores cause waste of communication port resources.
  • the technical problem to be solved by the present invention is to provide a method and apparatus for implementing management of a multi-protocol communication component, which can implement effective dynamic management of a multi-protocol communication component.
  • the present invention provides a method for implementing management of a multi-protocol communication component, which relates to a service application layer and a communication underlayer of a communication device, and the method includes:
  • the communication layer of the protocol stack is recorded in a configuration file by the protocol adaptation layer, and the protocol stack is compiled into a dynamic link library and downloaded to the communication device to form one or more communications. Component, and enable communication components.
  • the method also includes:
  • the communication device When the communication device is initialized at power-on, the communication device is normally operated by creating a corresponding communication task and its sending and receiving queue for the communication component existing in the configuration file through the protocol adaptation layer.
  • the method also includes:
  • the protocol adaptation layer interacts with the service application layer and the communication port under the communication layer through the sending and receiving queues to implement message distribution and/or protocol learning and dynamic port loading or unloading of the protocol stack.
  • Implementing message distribution includes:
  • the service application layer transmits the received message message to the protocol adaptation layer through the message receiving queue of the sending and receiving queue;
  • the protocol adaptation layer determines the communication type of the corresponding communication component in the configuration file according to the destination address to which the message message is sent, and places the basic element information of the communication into the message header provided for the message message, and is provided with a report.
  • the message message of the header is placed in the message sending queue of the corresponding communication task;
  • the bottom layer of the communication fills in the message message, the source address and the destination address in the message sending queue to the corresponding entry parameters of the corresponding driver transceiver function, and realizes the coupling with the corresponding interface of the corresponding communication task.
  • the protocol adaptation layer After the protocol adaptation layer receives the message from the message receiving queue, it will add the newly added header.
  • the type information is recorded in the configuration file and stored as a new communication type.
  • Implementing dynamic loading or unloading of the protocol stack includes:
  • the protocol adaptation layer adds or deletes the communication type in the configuration file, and loads or unloads the corresponding communication task and its sending and receiving queue after the communication device is powered on again.
  • the foregoing method further includes:
  • the protocol adaptation layer creates a configuration file according to the configuration of the communication device.
  • the configuration file In addition to the communication type of the protocol stack currently supported by the communication device, the configuration file also records the message structure information of the communication type; the protocol currently supported by the communication device The stack is compiled into a dynamic link library.
  • the present invention provides an apparatus for implementing management of a multi-protocol communication component, including a service application layer management module and an underlying communication module, and a protocol is further included between the service application layer management module and the communication module.
  • the service application layer management module is configured to: transmit the received message message to the protocol adaptation module; the protocol adaptation module is configured to: at least record the communication type of the protocol stack in a configuration file, and compile the protocol stack into a dynamic Linking library downloads, forming one or more communication components, and enabling communication components; at least, distributing received message messages according to communication types recorded in the configuration file when the device is in normal operation;
  • the communication module is configured to: deliver the message that is distributed by the protocol adaptation module to the corresponding communication component.
  • the protocol adaptation module includes a protocol loading unit, a message distribution unit, and a storage unit, where: the protocol loading unit is configured to: record the communication type of the supported protocol stack into a configuration file saved in the storage unit, and initialize the device on the device. Creating a corresponding communication task and a sending and receiving queue for the communication component existing in the configuration file, and interacting with the service application layer management module and the communication module respectively in the normal operation of the device through the sending and receiving queue;
  • the storage unit is set to: save the configuration file
  • the message distribution unit is set to: according to the message message received from the message receiving queue of the sending and receiving queue
  • the destination address to be sent determines the communication type of the corresponding communication component in the configuration file, and the basic element information of the communication is placed in the message header provided for the message message, and the message message with the message header is placed.
  • the corresponding communication task is sent in the message queue.
  • the protocol adaptation module includes a protocol learning unit, where:
  • the protocol learning unit is configured to: after receiving the message message from the message receiving queue, record the format information of the newly added message header in the configuration file in the storage unit, and save it as a new communication type; the protocol loading unit also sets To: Add or delete the communication type in the configuration file, and load or unload the corresponding communication task and its sending and receiving queue after the device is powered on again.
  • the management component uses the plug-and-play, dynamic learning and dynamic loading methods for the communication component, which can greatly reduce the risk of system upgrade and the interruption time of the service, and support the new component. More quickly and quickly;
  • this way of dynamically loading according to the communication type can greatly reduce the communication port overhead, which is especially true in embedded systems where resources are particularly tight. important.
  • the method and device of the invention can greatly improve the stability and flexibility of the system without increasing the system cost on the basis of the original equipment, so it has a good application prospect and use value.
  • FIG. 1 is a structural block diagram of an embodiment of a multi-protocol communication component management apparatus according to the present invention
  • FIG. 2 is a structural block diagram of an embodiment of the protocol adaptation module shown in FIG.
  • FIG. 3 is a flow chart of an embodiment of a method for managing a multi-protocol communication component according to the present invention.
  • an idealized multi-protocol communication component management device such as an application for a communication monitoring Equipment
  • its service level can completely ignore the details of each protocol used by the underlying layer, and only need to call the corresponding sending and receiving interfaces to perform the sending and receiving of the message.
  • the details of shielding the underlying communication can reduce the coupling of the system, thereby increasing the modularity of the system.
  • it can be achieved by simply modifying the configuration file and downloading a new protocol stack module.
  • the management device is regarded as a host, and all the service boards are regarded as a type of plug-and-play peripheral, thereby facilitating the hooking and unloading.
  • the invention utilizes "plug and play” technology to realize dynamic management of communication protocols.
  • various communication modules can be easily hooked up to the system like a peripheral to support multiple communication protocols.
  • the invention provides a structure for implementing an embodiment of a multi-protocol communication component management device, which adds a layer of "protocol adaptation module” middleware between the service application layer management module and the underlying communication module, as shown in FIG. :
  • the service application layer management module is configured to exchange the received message message (that is, the message body) to the protocol adaptation module by interacting with the protocol adaptation module through the message sending and receiving queue;
  • the details of the underlying communication protocol are transparent at this level. It does not need to know what the header format of each communication type is, and only handles the body part of the message. It needs to communicate with the protocol adaptation module through the sending and receiving queues. Regardless of which type of board the message is sent to, the message is first transmitted to the protocol adaptation module through the message receiving queue for processing.
  • the protocol adaptation module is used as a core part of the plug-and-play communication protocol, and is used for interacting with the upper layer service application layer management module and the lower layer communication port through the sending and receiving queues, thereby realizing message distribution, protocol learning, and dynamic loading of the communication protocol;
  • the creation or deletion of communication tasks and their transceiver queues is dynamically adjusted by the protocol adaptation module.
  • the communication module is configured to, in response to the transceiving task, couple the message content, the source address, and the destination address in the message queue from the protocol adaptation module to an interface corresponding to the corresponding transceiving task.
  • the communication module fills in the message content, source address, and destination address to the corresponding driver transceiver function. On the corresponding entry parameters, an interface coupling corresponding to the corresponding transceiving task is implemented.
  • the destination address here refers to the communication address of each board in the system. These communication addresses are also virtual addresses. To each different physical medium, it needs to be translated into the actual physical address by address resolution, that is, address adaptation. .
  • the protocol adaptation module shown in FIG. 1 further includes a protocol loading unit, a protocol learning unit, a message distribution unit, and a storage unit, as shown in FIG. 2, where:
  • a protocol loading unit configured to record a type of a board communication (ie, a communication protocol type) used in the communication device in a configuration file or a database, and save the data in the storage unit; when in use, load the corresponding communication component into the Running in RAM;
  • the protocol loading unit reads the contents of the configuration file or database when the system is powered on, and creates corresponding communication tasks and sending and receiving queues only for the communication types existing in the configuration file or the database. In this way, when the system needs to support the board of the new communication type, you can add a new protocol by modifying the configuration file or database (modified through the network management or directly modifying). After the power is turned on, the corresponding communication task and sending and receiving queue will be loaded. Resources, while communication protocols not configured in the system are silent and are not enabled.
  • the protocol learning unit is configured to: after receiving the message message from the message receiving queue, record the format information of the newly added message header in a configuration file or a database stored in the storage unit;
  • the interactive packet includes the packet header and the packet body.
  • the main difference between the different types of boards is the format of the packet header, and the packet body is the packet content transmitted through the message queue of the service application layer management module.
  • the protocol learning unit puts the format information of the newly added message header in the configuration file or database, which means that a new communication protocol is learned, which is used for the message distribution unit to perform the >3 ⁇ 4 header adaptation processing. In this way, the message distribution unit reads the format information of the packet header after power-on, and combines the packet header and the packet body to form a new packet for transmission.
  • the message distribution unit is configured to distribute the message transmitted from the service application layer management module through the message receiving queue to different communication tasks.
  • the basic element information of the communication is placed in the message header provided for the message message according to the communication type, and the message message with the message header is placed in the corresponding communication task.
  • the basic element information for a communication system includes the source address, the destination address, and the length of the message.
  • a storage unit that is used to save the configuration file.
  • FIG. 3 shows a flow of an embodiment of the method for managing a multi-protocol communication component of the present invention, including the following steps:
  • the modified configuration file and the recompiled dynamic link library are downloaded to the device to form a new component
  • dlopen/dlsym/dlclose in the Linux system implements the function of opening, using, and uninstalling the dynamic link library, thereby completing the online upgrade without interrupting the service.
  • step 110 is a supplement to step 140 to prevent the system from being restored to the initial state after restarting (ie, the state of the new component is not added), and the configuration file must be modified each time a new component is added/unloaded.
  • Step 120 is to implement the stripping of the communication module and the operating system and the application, so that each pass When the letter module is upgraded, it is not necessary to update the entire Bin file (mega-capacity level), but only the dynamic link library (kilobyte level) part of the communication module protocol stack; and the application (in the business application layer management module) ) Some versions are well controlled.
  • Step 140 is an important step of the present invention. After upgrading the configuration file and the dynamic link library, the required dynamic link library components can be loaded or unloaded directly from the command line.
  • the above method of the present invention is simple and easy to implement in the specific implementation, and is mainly embodied in three links: adding an adaptation layer between the service application layer management module and the underlying communication module, that is, reducing the service and communication module through the protocol adaptation module Degree of coupling between;
  • the protocol stack of the communication module is separated from the device system and compiled into a dynamic link library to facilitate the upgrade;
  • the purpose of supporting the new communication module can be achieved by simple symbol table replacement.
  • the management component uses the plug-and-play, dynamic learning and dynamic loading methods for the communication component, which can greatly reduce the risk of system upgrade and the interruption time of the service, and support the new component. Faster and faster; in addition, if only a few are configured in the system Sub-components of the type, which can dynamically reduce the communication port overhead according to the way the communication type is dynamically loaded, which is particularly important in embedded systems where resources are particularly tight.
  • the method and device of the invention can greatly improve the stability and flexibility of the system without increasing the system cost on the basis of the original equipment, so it has a good application prospect and use value.

Abstract

Disclosed are a method and an apparatus for implementing the management of multi-protocol communication components, wherein the method relates to a service application layer and communication lower layer of a communication device, and includes: adding a protocol adaptation layer between the service application layer and the communication lower layer; when the communication device needs to provide support for a protocol stack, recording the communication type of the protocol stack in a configuration file via the protocol adaptation layer, compiling the protocol stack into a dynamic-link library and downloading the dynamic-link library to the conmmunication device to form one or more communication components, and enabling the communication components. The present invention enables the stability and the flexibility of the system to be improved dramatically without increasing the cost of the system on the basis of the original devices, and thus has good application prospect and value in use.

Description

一种实现对多协议通信组件管理的方法及装置  Method and device for realizing management of multi-protocol communication component
技术领域 Technical field
本发明涉及点对多点通信且通信组件釆取多种通信协议的通信设备, 尤 其涉及在这种通信设备中实现对多协议通信组件管理的方法及装置。  The present invention relates to a point-to-multipoint communication device in which communication components capture a plurality of communication protocols, and more particularly to a method and apparatus for implementing management of a multi-protocol communication component in such a communication device.
背景技术 Background technique
在对多点通信且具有釆取多通信协议的通信组件的设备系统构建时, 经 常会遇到下面的场景: 对于一个处于核心位置的管理组件(譬如以波分监控 通道管理系统为例),它下面可能会挂接具有多种多样通信协议的子组件(单 板) , 则管理组件就不得不实现所有的协议, 用以支持系统中可能出现的各 种子组件。 这样一来可能就会存在以下三个问题:  When constructing a device system for a multipoint communication and communication component with multiple communication protocols, the following scenario is often encountered: For a management component at a core location (for example, a wavelength division monitoring channel management system) It may be attached to subcomponents (boards) with a variety of communication protocols, and the management component will have to implement all the protocols to support the various subcomponents that may appear in the system. This may have the following three problems:
( 1 )对于未来出现的某种新单板, 可能釆用了目前管理组件所不支持的 通信协议类型, 这样新单板的增加就会带来整个管理组件版本的重构。  (1) For some new boards that appear in the future, the types of communication protocols that are not supported by the current management components may be used, so that the addition of new boards will bring about the reconstruction of the entire management component version.
( 2 )为了支持某种新通信协议的单板, 每次工程升级都需要对在运营系 统的整个管理软件进行升级, 增加了升级风险和系统的中断时间。  (2) In order to support a board with a new communication protocol, each project upgrade requires an upgrade of the entire management software in the operating system, which increases the upgrade risk and system downtime.
当系统内部需要新增一类通信协议时, 往往需要对整个系统进行升级, 其复杂度高且时间过长 (包括下载时间和写 flash时间), 由此带来所有业务 长时间的中断。  When a new type of communication protocol needs to be added to the system, it is often necessary to upgrade the entire system. The complexity is high and the time is too long (including download time and flash time), which causes long interruption of all services.
( 3 )假如在系统中只使用了某一种或少量几种类型的通信协议单板, 管 理组件也必须要加载所有类型的通信协议栈, 创建所对应的发送接收任务、 发送接收队列、 各种信号量等资源, 造成通信口资源的浪费。  (3) If only one or a few types of communication protocol boards are used in the system, the management component must also load all types of communication protocol stacks, create corresponding send and receive tasks, send and receive queues, and Resources such as semaphores cause waste of communication port resources.
在某些应用场景下只有某一种或几种类型单板, 其余通信组件如果卸载 不掉而继续执行空转任务会占用大量的 CPU资源。  In some application scenarios, only one or several types of boards can be used. If the remaining communication components cannot be uninstalled and continue to perform idle tasks, they will consume a lot of CPU resources.
综上所述, 可以看出现有的监控设备中的管理组件由于未能对其下单板 的协议栈实行动态管理, 会导致系统组建和维护成本极高, 非常不利于系统 的升级, 且会造成设备内 CPU/RAM/FLASH等资源的严重浪费。 发明内容 In summary, it can be seen that the management components in the existing monitoring equipment fail to implement dynamic management of the protocol stack of the lower board, which will result in extremely high system setup and maintenance costs, which is not conducive to system upgrade, and will This causes serious waste of resources such as CPU/RAM/FLASH in the device. Summary of the invention
本发明所要解决的技术问题是提供一种实现对多协议通信组件管理的方 法及装置, 能够对多协议通信组件实行有效的动态管理。  The technical problem to be solved by the present invention is to provide a method and apparatus for implementing management of a multi-protocol communication component, which can implement effective dynamic management of a multi-protocol communication component.
为了解决上述技术问题, 本发明提供了一种实现对多协议通信组件管理 的方法, 涉及通信设备的业务应用层和通信底层, 该方法包括:  In order to solve the above technical problem, the present invention provides a method for implementing management of a multi-protocol communication component, which relates to a service application layer and a communication underlayer of a communication device, and the method includes:
在业务应用层和通信底层之间增加一个协议适配层;  Add a protocol adaptation layer between the business application layer and the communication underlayer;
当通信设备要对协议栈提供支持时, 通过该协议适配层将协议栈的通信 类型记载在一配置文件中, 并将协议栈编译成动态链接库下载到通信设备, 形成一个或多个通信组件, 并使能通信组件。  When the communication device is to provide support for the protocol stack, the communication layer of the protocol stack is recorded in a configuration file by the protocol adaptation layer, and the protocol stack is compiled into a dynamic link library and downloaded to the communication device to form one or more communications. Component, and enable communication components.
该方法还包括:  The method also includes:
通信设备在上电初始化时, 通过协议适配层为配置文件中存在的通信组 件创建对应的通信任务及其收发队列, 则通信设备正常运行。  When the communication device is initialized at power-on, the communication device is normally operated by creating a corresponding communication task and its sending and receiving queue for the communication component existing in the configuration file through the protocol adaptation layer.
该方法还包括:  The method also includes:
在通信设备正常运行过程中, 协议适配层通过收发队列分别与业务应用 层和通信底层的通信端口交互, 实现消息分发和 /或协议学习以及协议栈的动 态力口载或卸载。  During the normal operation of the communication device, the protocol adaptation layer interacts with the service application layer and the communication port under the communication layer through the sending and receiving queues to implement message distribution and/or protocol learning and dynamic port loading or unloading of the protocol stack.
实现消息分发包括:  Implementing message distribution includes:
业务应用层通过收发队列的消息接收队列将所接收到的报文消息传输给 协议适配层;  The service application layer transmits the received message message to the protocol adaptation layer through the message receiving queue of the sending and receiving queue;
协议适配层根据报文消息发往的目的地址判断对应的通信组件在配置文 件中的通信类型, 将通信的基本要素信息置于为报文消息配备的报文头内, 并将配有报文头的报文消息置于对应的通信任务的消息发送队列中;  The protocol adaptation layer determines the communication type of the corresponding communication component in the configuration file according to the destination address to which the message message is sent, and places the basic element information of the communication into the message header provided for the message message, and is provided with a report. The message message of the header is placed in the message sending queue of the corresponding communication task;
通信底层将消息发送队列中的 ^艮文消息、 源地址以及目的地址填写到对 应的驱动收发函数相应的入口参数上, 实现与对应的通信任务相应接口的耦 合。  The bottom layer of the communication fills in the message message, the source address and the destination address in the message sending queue to the corresponding entry parameters of the corresponding driver transceiver function, and realizes the coupling with the corresponding interface of the corresponding communication task.
实现协议学习包括:  Implementing protocol learning includes:
协议适配层在从消息接收队列收到报文消息后, 将新添加的报文头的格 式信息记载在所述配置文件中, 作为新的通信类型保存。 After the protocol adaptation layer receives the message from the message receiving queue, it will add the newly added header. The type information is recorded in the configuration file and stored as a new communication type.
实现协议栈的动态加载或卸载包括:  Implementing dynamic loading or unloading of the protocol stack includes:
协议适配层在配置文件中添加或删除通信类型, 待通信设备重新上电后 加载或卸载相应的通信任务及其收发队列。  The protocol adaptation layer adds or deletes the communication type in the configuration file, and loads or unloads the corresponding communication task and its sending and receiving queue after the communication device is powered on again.
在协议适配层将协议栈的通信类型记载在配置文件之前, 上述方法还包 括:  Before the protocol adaptation layer records the communication type of the protocol stack in the configuration file, the foregoing method further includes:
协议适配层根据通信设备的配置情况创建配置文件, 在该配置文件中除 了记载通信设备当前支持的协议栈的通信类型外, 还记载通信类型的报文结 构信息; 将通信设备当前支持的协议栈编译成动态链接库。  The protocol adaptation layer creates a configuration file according to the configuration of the communication device. In addition to the communication type of the protocol stack currently supported by the communication device, the configuration file also records the message structure information of the communication type; the protocol currently supported by the communication device The stack is compiled into a dynamic link library.
为了解决上述技术问题, 本发明提供了一种实现对多协议通信组件管理 的装置, 包括业务应用层管理模块和底层的通信模块, 在业务应用层管理模 块和通信模块之间还包括一协议适配模块, 其中: In order to solve the above technical problem, the present invention provides an apparatus for implementing management of a multi-protocol communication component, including a service application layer management module and an underlying communication module, and a protocol is further included between the service application layer management module and the communication module. With modules, where:
业务应用层管理模块设置为:将接收到的报文消息传输给协议适配模块; 协议适配模块设置为: 至少将协议栈的通信类型记载在一配置文件中, 并将协议栈编译成动态链接库下载, 形成一个或多个通信组件, 并使能通信 组件; 至少, 在所述装置正常运行时根据配置文件中记载的通信类型分发收 到的报文消息;  The service application layer management module is configured to: transmit the received message message to the protocol adaptation module; the protocol adaptation module is configured to: at least record the communication type of the protocol stack in a configuration file, and compile the protocol stack into a dynamic Linking library downloads, forming one or more communication components, and enabling communication components; at least, distributing received message messages according to communication types recorded in the configuration file when the device is in normal operation;
通信模块设置为: 将协议适配模块分发的报文消息下发到相应的通信组 件。  The communication module is configured to: deliver the message that is distributed by the protocol adaptation module to the corresponding communication component.
协议适配模块包括协议加载单元、 消息分发单元和存储单元, 其中: 协议加载单元设置为: 将支持的协议栈的通信类型记载到存储单元中保 存的配置文件中, 在所述装置上电初始化时为配置文件中存在的通信组件创 建对应的通信任务及其收发队列, 通过收发队列在所述装置正常运行中分别 与业务应用层管理模块和通信模块交互;  The protocol adaptation module includes a protocol loading unit, a message distribution unit, and a storage unit, where: the protocol loading unit is configured to: record the communication type of the supported protocol stack into a configuration file saved in the storage unit, and initialize the device on the device. Creating a corresponding communication task and a sending and receiving queue for the communication component existing in the configuration file, and interacting with the service application layer management module and the communication module respectively in the normal operation of the device through the sending and receiving queue;
存储单元设置为: 保存配置文件;  The storage unit is set to: save the configuration file;
消息分发单元设置为: 根据从收发队列的消息接收队列接收的报文消息 发往的目的地址判断对应的通信组件在配置文件中的通信类型, 将通信的基 本要素信息置于为报文消息配备的报文头内, 并将配有报文头的报文消息置 于对应的通信任务的消息发送队列中。 The message distribution unit is set to: according to the message message received from the message receiving queue of the sending and receiving queue The destination address to be sent determines the communication type of the corresponding communication component in the configuration file, and the basic element information of the communication is placed in the message header provided for the message message, and the message message with the message header is placed. The corresponding communication task is sent in the message queue.
协议适配模块包括协议学习单元, 其中:  The protocol adaptation module includes a protocol learning unit, where:
协议学习单元设置为: 在从消息接收队列收到报文消息后, 将新添加的 报文头的格式信息记载在存储单元中的配置文件中,作为新的通信类型保存; 协议加载单元还设置为: 在配置文件中添加或删除通信类型, 待装置重 新上电后加载或卸载相应的通信任务及其收发队列。  The protocol learning unit is configured to: after receiving the message message from the message receiving queue, record the format information of the newly added message header in the configuration file in the storage unit, and save it as a new communication type; the protocol loading unit also sets To: Add or delete the communication type in the configuration file, and load or unload the corresponding communication task and its sending and receiving queue after the device is powered on again.
本发明与现有技术相比, 由于管理组件对通信组件釆用了即插即用、 动 态学习以及动态加载的方法, 能够大幅减小系统升级的风险和业务的中断时 间, 对新型组件的支持更加迅速快捷; 此外, 如果系统中只配置了少量几种 类型的子组件, 这种根据通信类型动态加载的方式可以大大减少通信口的开 销, 这在资源显得尤为紧张的嵌入式系统中显得尤为重要。 本发明的方法及 装置, 能够在原有设备的基础上不增加系统成本的前提下使得系统稳定性、 灵活性大幅提升, 故具有良好的应用前景和使用价值。 Compared with the prior art, the management component uses the plug-and-play, dynamic learning and dynamic loading methods for the communication component, which can greatly reduce the risk of system upgrade and the interruption time of the service, and support the new component. More quickly and quickly; In addition, if only a few types of sub-components are configured in the system, this way of dynamically loading according to the communication type can greatly reduce the communication port overhead, which is especially true in embedded systems where resources are particularly tight. important. The method and device of the invention can greatly improve the stability and flexibility of the system without increasing the system cost on the basis of the original equipment, so it has a good application prospect and use value.
附图概述 BRIEF abstract
图 1为本发明的实现对多协议通信组件管理装置实施例的结构框图; 图 2为图 1中所示的协议适配模块实施例的结构框图;  1 is a structural block diagram of an embodiment of a multi-protocol communication component management apparatus according to the present invention; FIG. 2 is a structural block diagram of an embodiment of the protocol adaptation module shown in FIG.
图 3为本发明的实现对多协议通信组件管理方法实施例的流程图。  3 is a flow chart of an embodiment of a method for managing a multi-protocol communication component according to the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
以下结合附图和优选实施例对本发明的技术方案进行详细地阐述。 以下 例举的实施例仅仅用于说明和解释本发明, 而不构成对本发明技术方案的限 制。  The technical solutions of the present invention are described in detail below with reference to the accompanying drawings and preferred embodiments. The following examples are intended to illustrate and explain the present invention and are not intended to limit the invention.
对于一种理想化的多协议通信组件管理装置 (譬如应用为一个通信监控 设备) , 其业务层面完全可以不知道底层具体所使用的各个协议的细节, 只 需要调用相应的发送和接收接口来执行报文的发送接收。 屏蔽底层通信的细 节可以降低系统的耦合性, 从而提高系统的模块化程度。 实际上, 对于一种 新协议类型的单板的应用, 只需要通过简单地修改配置文件和下载新的协议 栈模块就能实现。 对此, 如果通过 "即插即用"技术实现, 譬如将管理装置当 成主机, 把所有的业务单板当成一类即插即用的外设, 从而方便地进行挂接、 卸载。 For an idealized multi-protocol communication component management device (such as an application for a communication monitoring Equipment), its service level can completely ignore the details of each protocol used by the underlying layer, and only need to call the corresponding sending and receiving interfaces to perform the sending and receiving of the message. The details of shielding the underlying communication can reduce the coupling of the system, thereby increasing the modularity of the system. In fact, for a new protocol type of board application, it can be achieved by simply modifying the configuration file and downloading a new protocol stack module. In this regard, if it is implemented by the "plug and play" technology, for example, the management device is regarded as a host, and all the service boards are regarded as a type of plug-and-play peripheral, thereby facilitating the hooking and unloading.
本发明利用 "即插即用"技术来实现通信协议的动态管理。 在此, 各种通 信模块就像一个外设一样可以方便地挂接到系统, 来实现对多种通信协议的 支撑。  The invention utilizes "plug and play" technology to realize dynamic management of communication protocols. Here, various communication modules can be easily hooked up to the system like a peripheral to support multiple communication protocols.
本发明提出了一种在业务应用层管理模块和底层的通信模块之间增加一 层 "协议适配模块" 中间件的实现多协议通信组件管理装置实施例的结构, 如图 1所示, 其中: The invention provides a structure for implementing an embodiment of a multi-protocol communication component management device, which adds a layer of "protocol adaptation module" middleware between the service application layer management module and the underlying communication module, as shown in FIG. :
业务应用层管理模块, 用于通过消息收发队列与协议适配模块交互, 将 所接收到的报文消息 (即报文体)传输给协议适配模块;  The service application layer management module is configured to exchange the received message message (that is, the message body) to the protocol adaptation module by interacting with the protocol adaptation module through the message sending and receiving queue;
对于业务应用层管理模块来说, 底层具体的通信协议细节在此层面都是 透明的, 它无需知道每种通信类型的报文头格式是什么样的, 只负责处理报 文体部分。 它需要通过收发队列与协议适配模块交互, 不管消息是发给哪一 类型的单板, 都先统一将报文消息通过消息接收队列传输给协议适配模块进 行才艮文头适配处理。  For the business application layer management module, the details of the underlying communication protocol are transparent at this level. It does not need to know what the header format of each communication type is, and only handles the body part of the message. It needs to communicate with the protocol adaptation module through the sending and receiving queues. Regardless of which type of board the message is sent to, the message is first transmitted to the protocol adaptation module through the message receiving queue for processing.
协议适配模块, 作为通信协议即插即用的核心部分, 用于通过收发队列 分别与上层的业务应用层管理模块和下层的通信端口交互, 实现消息分发、 协议学习以及通信协议的动态加载;  The protocol adaptation module is used as a core part of the plug-and-play communication protocol, and is used for interacting with the upper layer service application layer management module and the lower layer communication port through the sending and receiving queues, thereby realizing message distribution, protocol learning, and dynamic loading of the communication protocol;
通信任务及其收发队列的创建或删除是由协议适配模块来动态调整的。 通信模块, 用于与收发任务相对应, 将来自协议适配模块的消息队列里 的消息内容、 源地址以及目的地址与对应的收发任务相应的接口耦合。  The creation or deletion of communication tasks and their transceiver queues is dynamically adjusted by the protocol adaptation module. The communication module is configured to, in response to the transceiving task, couple the message content, the source address, and the destination address in the message queue from the protocol adaptation module to an interface corresponding to the corresponding transceiving task.
通信模块将消息内容、 源地址以及目的地址填写到对应的驱动收发函数 相应的入口参数上, 实现与对应的收发任务相应的接口耦合。 The communication module fills in the message content, source address, and destination address to the corresponding driver transceiver function. On the corresponding entry parameters, an interface coupling corresponding to the corresponding transceiving task is implemented.
此处的目的地址是指系统内各个单板的通信地址, 这些通信地址还都是 虚拟地址, 到各个不同的物理媒介上需要通过地址解析将其转换成实际的物 理地址, 即进行地址适配。  The destination address here refers to the communication address of each board in the system. These communication addresses are also virtual addresses. To each different physical medium, it needs to be translated into the actual physical address by address resolution, that is, address adaptation. .
图 1 中所示的协议适配模块进一步包括协议加载单元、 协议学习单元、 消息分发单元以及存储单元, 如图 2所示, 其中: The protocol adaptation module shown in FIG. 1 further includes a protocol loading unit, a protocol learning unit, a message distribution unit, and a storage unit, as shown in FIG. 2, where:
协议加载单元, 用于将通信设备中所用到的单板通信类型 (即通信协议 类型) 以配置文件或数据库的形式记载, 并保存在存储单元中; 在使用时, 将对应的通信组件加载到 RAM中运行;  a protocol loading unit, configured to record a type of a board communication (ie, a communication protocol type) used in the communication device in a configuration file or a database, and save the data in the storage unit; when in use, load the corresponding communication component into the Running in RAM;
协议加载单元在系统上电初始化的时读取该配置文件或数据库的内容, 只对那些在配置文件或者数据库中存在的通信类型创建对应的通信任务以及 收发队列。 这样, 当系统需要支持新通信类型的单板时, 就可以通过修改配 置文件或数据库 (通过网管修改或者直接修改) 的方式增添新协议, 重新上 电后就会加载相应的通信任务和收发队列资源, 而系统中未配置的通信协议 就处于静默状态不启用。  The protocol loading unit reads the contents of the configuration file or database when the system is powered on, and creates corresponding communication tasks and sending and receiving queues only for the communication types existing in the configuration file or the database. In this way, when the system needs to support the board of the new communication type, you can add a new protocol by modifying the configuration file or database (modified through the network management or directly modifying). After the power is turned on, the corresponding communication task and sending and receiving queue will be loaded. Resources, while communication protocols not configured in the system are silent and are not enabled.
协议学习单元, 用于在从消息接收队列收到报文消息后, 将新添加的报 文头的格式信息记载在存储单元存储的配置文件或数据库中;  The protocol learning unit is configured to: after receiving the message message from the message receiving queue, record the format information of the newly added message header in a configuration file or a database stored in the storage unit;
对于不同类型的单板, 存在通信协议格式上的差异。 交互报文包括报文 头和报文体两部分, 不同类型的单板主要差距在报文头的格式上, 而报文体 就是通过上述业务应用层管理模块的消息队列传递过来的报文内容。 协议学 习单元将新添加的报文头的格式信息放在配置文件或数据库中, 意味着学习 到了新的通信协议, 用于消息分发单元进行 >¾文头适配处理。 这样, 消息分 发单元在上电之后去读取报文头部的格式信息, 便将报文头和报文体合并组 成新的报文进行发送。  For different types of boards, there are differences in the format of the communication protocol. The interactive packet includes the packet header and the packet body. The main difference between the different types of boards is the format of the packet header, and the packet body is the packet content transmitted through the message queue of the service application layer management module. The protocol learning unit puts the format information of the newly added message header in the configuration file or database, which means that a new communication protocol is learned, which is used for the message distribution unit to perform the >3⁄4 header adaptation processing. In this way, the message distribution unit reads the format information of the packet header after power-on, and combines the packet header and the packet body to form a new packet for transmission.
消息分发单元, 用于将从业务应用层管理模块通过消息接收队列传输的 消息分发给不同的通信任务。 在配置文件中的通信类型, 将通信的基本要素信息置于根据该通信类型为报 文消息配备的报文头内, 并将配有报文头的报文消息置于对应的通信任务的 收发队列的消息发送队列中待通信模块发送。 The message distribution unit is configured to distribute the message transmitted from the service application layer management module through the message receiving queue to different communication tasks. In the communication type in the configuration file, the basic element information of the communication is placed in the message header provided for the message message according to the communication type, and the message message with the message header is placed in the corresponding communication task. The queue to be sent to the communication module in the message sending queue.
对于一个通信系统的基本要素信息包括源地址、 目的地址和报文长度几 个部分。  The basic element information for a communication system includes the source address, the destination address, and the length of the message.
存储单元, 用于保存配置文件。  A storage unit that is used to save the configuration file.
图 3表示了本发明的实现对多协议通信组件管理方法实施例的流程, 包 括以下步骤: FIG. 3 shows a flow of an embodiment of the method for managing a multi-protocol communication component of the present invention, including the following steps:
110: 根据通信设备的配置情况创建配置文件, 在配置文件中至少记载设 备当前支持的通信通信类型;  110: Create a configuration file according to the configuration of the communication device, and record at least the communication communication type currently supported by the device in the configuration file;
此外, 在配置文件中还记载着设备当前协议的报文结构等其它信息。 In addition, other information such as the message structure of the current protocol of the device is also recorded in the configuration file.
120: 将设备当前支持的通信协议栈编译成动态链接库; 120: Compiling a communication protocol stack currently supported by the device into a dynamic link library;
130: 当需要设备提供对新的协议栈的支持时, 将为此修改的配置文件和 重新编译的动态链接库下载到设备中, 形成一个新的组件;  130: When the device is required to provide support for the new protocol stack, the modified configuration file and the recompiled dynamic link library are downloaded to the device to form a new component;
140: 使协议栈新的组件生效;  140: Make the new components of the protocol stack effective;
很多操作系统都提供了动态链接库管理的接口, 由此可以在不重新启动 系统的前提下动态的加载相应的库文件。 例如 linux 系统中的 dlopen/dlsym/dlclose就实现了动态链接库的打开、使用及卸载功能,借此可以 完成不中断业务的在线升级。  Many operating systems provide an interface for dynamic link library management, which allows dynamic loading of the corresponding library files without rebooting the system. For example, dlopen/dlsym/dlclose in the Linux system implements the function of opening, using, and uninstalling the dynamic link library, thereby completing the online upgrade without interrupting the service.
150: 创建对应的队列和通信任务, 系统进入正常运行状态。  150: Create corresponding queues and communication tasks, and the system enters normal operation.
当为新的组件创建完相应的队列和通信任务后, 便就完成了对新协议的 支撑, 由此系统便可正常运行。  Once the corresponding queue and communication tasks have been created for the new component, the new protocol is supported and the system is up and running.
在此, 步骤 110是对步骤 140的一种补充, 防止系统重启后又恢复到初 始状态(即未增添新组件的状态) , 每次增加 /卸载一新的组件, 必须修改配 置文件。  Here, step 110 is a supplement to step 140 to prevent the system from being restored to the initial state after restarting (ie, the state of the new component is not added), and the configuration file must be modified each time a new component is added/unloaded.
步骤 120是实现通信模块和操作系统以及应用程序的剥离, 这样每次通 信模块升级的时候不用更新整个 Bin文件(兆容量级别) , 而只需更新通信 模块协议栈的动态链接库 (千字节级别)部分; 同时也可使应用程序 (处于 业务应用层管理模块中)部分版本得到很好的控制。 Step 120 is to implement the stripping of the communication module and the operating system and the application, so that each pass When the letter module is upgraded, it is not necessary to update the entire Bin file (mega-capacity level), but only the dynamic link library (kilobyte level) part of the communication module protocol stack; and the application (in the business application layer management module) ) Some versions are well controlled.
步骤 140是本发明重要的一步, 升级完配置文件和动态链接库之后, 可 以直接从命令行加载或卸载所需要动态链接库组件。  Step 140 is an important step of the present invention. After upgrading the configuration file and the dynamic link library, the required dynamic link library components can be loaded or unloaded directly from the command line.
本发明上述的方法在具体实施方面简单易行, 主要体现在三个环节上: 在业务应用层管理模块和底层通信模块之间增加一个适配层, 即通过协 议适配模块降低业务和通信模块之间的耦合度; The above method of the present invention is simple and easy to implement in the specific implementation, and is mainly embodied in three links: adding an adaptation layer between the service application layer management module and the underlying communication module, that is, reducing the service and communication module through the protocol adaptation module Degree of coupling between;
将通信模块的协议栈从设备系统中剥离出来编译成动态链接库, 以方便 升级;  The protocol stack of the communication module is separated from the device system and compiled into a dynamic link library to facilitate the upgrade;
在协议适配模块和通信模块中预留升级接口 , 就可以通过简单的符号表 替换来达到支持新通信模块的目的。  By reserving the upgrade interface in the protocol adaptation module and the communication module, the purpose of supporting the new communication module can be achieved by simple symbol table replacement.
尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人员 将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当不限 于上述实施例。 While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。  One of ordinary skill in the art will appreciate that all or a portion of the steps above may be accomplished by a program to instruct the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
工业实用性 Industrial applicability
本发明与现有技术相比, 由于管理组件对通信组件釆用了即插即用、 动 态学习以及动态加载的方法, 能够大幅减小系统升级的风险和业务的中断时 间, 对新型组件的支持更加迅速快捷; 此外, 如果系统中只配置了少量几种 类型的子组件, 这种才艮据通信类型动态加载的方式可以大大减少通信口的开 销, 这在资源显得尤为紧张的嵌入式系统中显得尤为重要。 本发明的方法及 装置, 能够在原有设备的基础上不增加系统成本的前提下使得系统稳定性、 灵活性大幅提升, 故具有良好的应用前景和使用价值。 Compared with the prior art, the management component uses the plug-and-play, dynamic learning and dynamic loading methods for the communication component, which can greatly reduce the risk of system upgrade and the interruption time of the service, and support the new component. Faster and faster; in addition, if only a few are configured in the system Sub-components of the type, which can dynamically reduce the communication port overhead according to the way the communication type is dynamically loaded, which is particularly important in embedded systems where resources are particularly tight. The method and device of the invention can greatly improve the stability and flexibility of the system without increasing the system cost on the basis of the original equipment, so it has a good application prospect and use value.

Claims

权 利 要 求 书 Claim
1、 一种实现对多协议通信组件管理的方法, 该方法包括:  1. A method for implementing management of a multi-protocol communication component, the method comprising:
在通信设备的业务应用层和通信底层之间增加一个协议适配层; 当所述通信设备要对协议栈提供支持时, 通过所述协议适配层将所述协 议栈的通信类型记载在一配置文件中, 并将所述协议栈编译成动态链接库下 载到所述通信设备, 形成一个或多个通信组件, 并使能所述通信组件。  Adding a protocol adaptation layer between the service application layer and the communication bottom layer of the communication device; when the communication device is to provide support for the protocol stack, the communication type of the protocol stack is recorded by the protocol adaptation layer In the configuration file, the protocol stack is compiled into a dynamic link library and downloaded to the communication device to form one or more communication components, and the communication component is enabled.
2、 按照权利要求 1所述的方法, 该方法还包括:  2. The method of claim 1 further comprising:
所述通信设备在上电初始化时, 通过所述协议适配层为所述配置文件中 存在的通信组件创建对应的通信任务及其收发队列,所述通信设备正常运行。  The communication device creates a corresponding communication task and a transceiver queue for the communication component existing in the configuration file by the protocol adaptation layer during power-on initialization, and the communication device operates normally.
3、 按照权利要求 2所述的方法, 该方法还包括:  3. The method of claim 2, further comprising:
在所述通信设备正常运行过程中, 所述协议适配层通过所述收发队列分 别与所述业务应用层和所述通信底层的通信端口交互, 实现消息分发和 /或协 议学习以及协议栈的动态加载或卸载。  During normal operation of the communication device, the protocol adaptation layer interacts with the service application layer and the communication port of the communication bottom layer through the transceiver queue to implement message distribution and/or protocol learning and protocol stack. Dynamically load or unload.
4、 按照权利要求 3所述的方法, 其中, 实现消息分发包括: 所述业务应用层通过所述收发队列的消息接收队列将所接收到的报文消 息传输给所述协议适配层;  The method according to claim 3, wherein the implementing the message distribution comprises: transmitting, by the service application layer, the received message message to the protocol adaptation layer by using a message receiving queue of the sending and receiving queue;
所述协议适配层根据所述报文消息发往的目的地址判断对应的通信组件 在所述配置文件中的通信类型, 将通信的基本要素信息置于为所述报文消息 配备的报文头内, 并将配有报文头的报文消息置于对应的通信任务的消息发 送队列中;  Determining, by the protocol adaptation layer, the communication type of the corresponding communication component in the configuration file according to the destination address to which the message message is sent, and placing the basic element information of the communication into the message provided for the message In the header, the message message with the message header is placed in the message sending queue of the corresponding communication task;
所述通信底层将所述消息发送队列中的报文消息、 源地址以及目的地址 填写到对应的驱动收发函数相应的入口参数上, 实现与对应的通信任务相应 接口的耦合。  The communication bottom layer fills the message message, the source address and the destination address in the message sending queue to the corresponding entry parameters of the corresponding driver transceiver function, and implements coupling with the corresponding interface of the corresponding communication task.
5、 按照权利要求 4所述的方法, 其中, 实现协议学习包括: 所述协议适配层在从所述消息接收队列收到所述报文消息后, 将新添加 的报文头的格式信息记载在所述配置文件中, 作为新的通信类型保存。  5. The method according to claim 4, wherein implementing the protocol learning comprises: the protocol adaptation layer, after receiving the message from the message receiving queue, adding format information of the newly added packet header It is recorded in the configuration file and saved as a new communication type.
6、 按照权利要求 4所述的方法,其中, 实现协议栈的动态加载或卸载 包括: 6. The method of claim 4, wherein dynamic loading or unloading of the protocol stack is implemented Includes:
所述协议适配层在所述配置文件中添加或删除所述通信类型, 待所述通 信设备重新上电后加载或卸载相应的通信任务及其收发队列。  The protocol adaptation layer adds or deletes the communication type in the configuration file, and loads or unloads the corresponding communication task and its sending and receiving queue after the communication device is powered on again.
7、 按照权利要求 1至 6任一项所述的方法,在所述协议适配层将所述 协议栈的通信类型记载在配置文件之前, 所述方法还包括:  The method according to any one of claims 1 to 6, before the protocol adaptation layer records the communication type of the protocol stack in the configuration file, the method further includes:
所述协议适配层根据所述通信设备的配置情况创建所述配置文件, 在所 述配置文件中除了记载所述通信设备当前支持的协议栈的通信类型外, 还记 载所述通信类型的报文结构信息; 将所述通信设备当前支持的协议栈编译成 动态链接库。  The protocol adaptation layer creates the configuration file according to the configuration of the communication device, and records the communication type report in addition to the communication type of the protocol stack currently supported by the communication device in the configuration file. The structure information; compiling the protocol stack currently supported by the communication device into a dynamic link library.
8、 一种实现对多协议通信组件管理的装置,其包括业务应用层管理模 块和底层的通信模块, 在所述业务应用层管理模块和所述通信模块之间所述 装置还包括一协议适配模块, 其中:  8. An apparatus for implementing management of a multi-protocol communication component, comprising: a service application layer management module and an underlying communication module, wherein the device further includes a protocol between the service application layer management module and the communication module With modules, where:
所述业务应用层管理模块设置为: 将接收到的报文消息传输给所述协议 适配模块;  The service application layer management module is configured to: transmit the received message message to the protocol adaptation module;
所述协议适配模块设置为: 将协议栈的通信类型记载在一配置文件中, 并将所述协议栈编译成动态链接库下载, 形成一个或多个通信组件, 并使能 所述通信组件; 在所述装置正常运行时根据所述配置文件中记载的通信类型 分发收到的所述 文消息;  The protocol adaptation module is configured to: record a communication type of the protocol stack in a configuration file, and compile the protocol stack into a dynamic link library download to form one or more communication components, and enable the communication component And distributing the received text message according to the communication type described in the configuration file when the device is in normal operation;
所述通信模块设置为: 将所述协议适配模块分发的报文消息下发到相应 的通信组件。  The communication module is configured to: deliver the message that is distributed by the protocol adaptation module to the corresponding communication component.
9、 按照权利要求 8所述的装置,其中, 所述协议适配模块包括协议加 载单元、 消息分发单元和存储单元,  9. The apparatus according to claim 8, wherein the protocol adaptation module comprises a protocol loading unit, a message distribution unit, and a storage unit,
所述协议加载单元设置为: 将支持的协议栈的通信类型记载到所述存储 单元中保存的所述配置文件中, 在所述装置上电初始化时为所述配置文件中 存在的通信组件创建对应的通信任务及其收发队列, 通过所述收发队列在所 述装置正常运行中分别与所述业务应用层管理模块和所述通信模块交互; 所述存储单元设置为: 保存所述配置文件;  The protocol loading unit is configured to: record a communication type of the supported protocol stack into the configuration file saved in the storage unit, and create a communication component existing in the configuration file when the device is powered on and initialized Corresponding communication tasks and their sending and receiving queues, respectively, interacting with the service application layer management module and the communication module in the normal operation of the device through the sending and receiving queues; the storage unit is configured to: save the configuration file;
所述消息分发单元设置为: 根据从所述收发队列的消息接收队列接收的 所述报文消息发往的目的地址判断对应的通信组件在所述配置文件中的通信 类型, 将通信的基本要素信息置于为所述报文消息配备的报文头内, 并将配 有报文头的报文消息置于对应的通信任务的消息发送队列中。 The message distribution unit is configured to: receive according to a message receiving queue from the sending and receiving queue Determining, by the destination address to which the message message is sent, the communication type of the corresponding communication component in the configuration file, and placing the basic element information of the communication into the message header provided for the message message, and The message message of the packet header is placed in the message sending queue of the corresponding communication task.
10、 按照权利要求 9所述的装置,其中, 所述协议适配模块包括协议学 习单元,  10. The apparatus of claim 9, wherein the protocol adaptation module comprises a protocol learning unit,
所述协议学习单元设置为:在从所述消息接收队列收到所述报文消息后, 将新添加的报文头的格式信息记载在所述存储单元中的配置文件中, 作为新 的通信类型保存;  The protocol learning unit is configured to: after receiving the message message from the message receiving queue, record format information of the newly added message header in a configuration file in the storage unit, as a new communication Type save;
所述协议加载单元还设置为: 在所述配置文件中添加或删除所述通信类 型, 待所述装置重新上电后加载或卸载相应的通信任务及其收发队列。  The protocol loading unit is further configured to: add or delete the communication type in the configuration file, and load or unload the corresponding communication task and its sending and receiving queue after the device is powered on again.
PCT/CN2010/076178 2010-03-26 2010-08-20 Method and apparatus for implementing management of multi-protocol communication components WO2011116583A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010139681.1A CN101820361B (en) 2010-03-26 2010-03-26 Method and device for managing multi-protocol communication components
CN201010139681.1 2010-03-26

Publications (1)

Publication Number Publication Date
WO2011116583A1 true WO2011116583A1 (en) 2011-09-29

Family

ID=42655314

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076178 WO2011116583A1 (en) 2010-03-26 2010-08-20 Method and apparatus for implementing management of multi-protocol communication components

Country Status (2)

Country Link
CN (1) CN101820361B (en)
WO (1) WO2011116583A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780997A (en) * 2012-06-29 2012-11-14 深圳市赛格导航科技股份有限公司 Communication method and communication device for wireless communication modules
EP3703328A4 (en) * 2017-10-25 2020-10-28 Crsc Research & Design Institute Group Co., Ltd. Rssp-ii security protocol separation and deployment method
CN112131087A (en) * 2020-09-19 2020-12-25 中国电子科技集团公司第二十研究所 Decoupling system of simulation software communication layer and service application layer and implementation method
CN112985376A (en) * 2021-03-08 2021-06-18 中国电子科技集团公司第二十研究所 Method for realizing self-adaptive interface of navigation sensor
CN114979309A (en) * 2022-05-18 2022-08-30 中国电子科技集团公司第二十八研究所 Method for supporting random access and processing of networked target data

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331931B (en) * 2011-07-25 2014-05-14 深圳万兴信息科技股份有限公司 Dynamic library managing method and device
CN102508661A (en) * 2011-10-28 2012-06-20 航天科工深圳(集团)有限公司 Method and device of communication module development and configuration
CN102624685B (en) * 2011-11-24 2015-05-20 高新兴科技集团股份有限公司 Encodable protocol processing method for intelligent equipment
CN108521851B (en) 2016-03-30 2021-06-29 Oppo广东移动通信有限公司 Method, apparatus and computer readable storage medium for relay transmission
WO2017206186A1 (en) * 2016-06-03 2017-12-07 广东欧珀移动通信有限公司 Method and device for relay transmission
CN106452833B (en) * 2016-08-30 2023-08-04 南京金水尚阳信息技术有限公司 Data transmission method for RTU multi-protocol dynamic loading
CN108170491B (en) * 2017-12-26 2022-01-28 五八有限公司 APP dynamic link library configuration method, terminal and computer readable storage medium
CN109766194B (en) * 2018-11-29 2021-02-05 南瑞集团有限公司 Method and system for realizing low-coupling plan task component based on message
CN109885309B (en) * 2019-01-14 2022-05-24 北京中科晶上科技股份有限公司 Method for generating configuration file for establishing protocol stack software
CN110502352A (en) * 2019-08-21 2019-11-26 广州慧营智能科技有限公司 A kind of external device management system and application method and the self-service machine for having the system
CN111343201A (en) * 2020-05-18 2020-06-26 成都数之联科技有限公司 Analysis method, device and system for rapidly adapting to protocol change

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008084434A1 (en) * 2007-01-11 2008-07-17 Philips Intellectual Property & Standards Gmbh Protocol converter for wireless patient monitoring
CN101227473A (en) * 2008-01-28 2008-07-23 中兴通讯股份有限公司 Method and system of main control conference for multimedia communication system
US20090073983A1 (en) * 2007-09-13 2009-03-19 Jin-Hyoung Kim METHOD AND APPARATUS FOR PROVIDING GATEWAY TO TRANSMIT IPv6 PACKET IN A WIRELESS LOCAL AREA NETWORK SYSTEM
CN101587351A (en) * 2009-05-15 2009-11-25 深圳市康必达控制技术有限公司 The method of intelligent electronic device reliable communicating

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567841A (en) * 2003-07-04 2005-01-19 华为技术有限公司 An equipment and method for implementing information forwarding
CN100377556C (en) * 2004-01-01 2008-03-26 浙江大学 Structuralization realization method of communication protocol
CN100488263C (en) * 2005-07-08 2009-05-13 北京邮电大学 Intelligent external system based on control and use separation and having business generation ability

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008084434A1 (en) * 2007-01-11 2008-07-17 Philips Intellectual Property & Standards Gmbh Protocol converter for wireless patient monitoring
US20090073983A1 (en) * 2007-09-13 2009-03-19 Jin-Hyoung Kim METHOD AND APPARATUS FOR PROVIDING GATEWAY TO TRANSMIT IPv6 PACKET IN A WIRELESS LOCAL AREA NETWORK SYSTEM
CN101227473A (en) * 2008-01-28 2008-07-23 中兴通讯股份有限公司 Method and system of main control conference for multimedia communication system
CN101587351A (en) * 2009-05-15 2009-11-25 深圳市康必达控制技术有限公司 The method of intelligent electronic device reliable communicating

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780997A (en) * 2012-06-29 2012-11-14 深圳市赛格导航科技股份有限公司 Communication method and communication device for wireless communication modules
CN102780997B (en) * 2012-06-29 2018-06-26 深圳市赛格导航科技股份有限公司 The communication means and device of wireless communication module
EP3703328A4 (en) * 2017-10-25 2020-10-28 Crsc Research & Design Institute Group Co., Ltd. Rssp-ii security protocol separation and deployment method
CN112131087A (en) * 2020-09-19 2020-12-25 中国电子科技集团公司第二十研究所 Decoupling system of simulation software communication layer and service application layer and implementation method
CN112131087B (en) * 2020-09-19 2024-04-16 中国电子科技集团公司第二十研究所 Decoupling system for simulation software communication layer and business application layer and implementation method
CN112985376A (en) * 2021-03-08 2021-06-18 中国电子科技集团公司第二十研究所 Method for realizing self-adaptive interface of navigation sensor
CN112985376B (en) * 2021-03-08 2024-03-15 中国电子科技集团公司第二十研究所 Method for realizing self-adaptive interface of navigation sensor
CN114979309A (en) * 2022-05-18 2022-08-30 中国电子科技集团公司第二十八研究所 Method for supporting random access and processing of networked target data
CN114979309B (en) * 2022-05-18 2023-08-18 中国电子科技集团公司第二十八研究所 Method for supporting random access and processing of networked target data

Also Published As

Publication number Publication date
CN101820361A (en) 2010-09-01
CN101820361B (en) 2014-08-13

Similar Documents

Publication Publication Date Title
WO2011116583A1 (en) Method and apparatus for implementing management of multi-protocol communication components
US8966499B2 (en) Virtual switch extensibility
US7197553B2 (en) Network system having a virtual-service-module
US8151258B2 (en) Managing software patches
US20100058329A1 (en) Method and apparatus for dynamically instantiating services using a service insertion architecture
US10313282B1 (en) Flexible middleware messaging system
CN106685679A (en) Network service deployment method and device
WO2015158120A1 (en) Method and apparatus for upgrading software version
WO2009097776A1 (en) System, device and method for achieving service upgrade
EP3734910B1 (en) Method and device for upgrading driver
WO2012113196A1 (en) Method and apparatus for realizing upgrade of master single-board and slave single-board
CN105162667B (en) Virtual machine configuration method and apparatus
US10824486B1 (en) Two-way clipboard exchange in virtual console
JP4071098B2 (en) Architecture and runtime environment for network filter drivers
WO2018040923A1 (en) Pos terminal application package download method and apparatus, and communication method
WO2011131059A1 (en) Plug-in based centralized signalling tracking method and system
US20110119348A1 (en) Methods and systems for transmitting disk images
CN102707976A (en) ATCA (advanced telecom computing architecture) system and method for managing firmware versions by ATCA system
CN105573801B (en) The method, apparatus and system of software upgrading are realized in stacking system
CN107547277A (en) One kind virtualization control panel implementation method and network communication equipment
CN109150724B (en) Communication method and network card
US20030154472A1 (en) Installation server
KR101943936B1 (en) Integrated external interconnection system and method for web standard application development
CN115913778A (en) Network strategy updating method, system and storage medium based on sidecar mode
US7546361B2 (en) Method and network for delivering management software for a network element

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10848245

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10848245

Country of ref document: EP

Kind code of ref document: A1