Device and method for multi-source heterogeneous protocol integration

By configuring multiple isolated protocol conversion modules and a dynamic update mechanism in the industrial control system, the problem of private protocol leakage caused by unexpected cross-communication between equipment units is solved, and secure protocol conversion and system compatibility and stability are achieved.

CN118972470APending Publication Date: 2024-11-15INSTR TECH & ECONOMY INST P R CHINA

Patent Information

Application Number
CN202411312901.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In industrial control systems, unintended cross-communication between equipment units can lead to the leakage of proprietary protocols and security issues. In particular, when it comes to proprietary protocols, how can we effectively prevent unauthorized cross-communication and protect proprietary protocols from unauthorized access or tampering?

Method used

A protocol conversion device is used to configure multiple isolated protocol conversion modules, each corresponding to a private protocol. Protocol conversion is achieved through interfaces and data dictionaries, and dynamic updates are performed through a patch management module. Protocol identification and matching are performed in conjunction with a monitoring module and an indicator database.

Benefits of technology

It achieves effective isolation between device units, protects the security of proprietary protocols, and ensures compatibility between different protocols and the flexibility and scalability of the system, thereby improving communication efficiency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972470A_ABST
    Figure CN118972470A_ABST
Patent Text Reader

Abstract

The invention provides equipment and method for multi-source heterogeneous protocol integration, and the equipment comprises a protocol conversion device which is provided with a plurality of protocol conversion modules which are isolated from one another. The plurality of protocol conversion modules respectively correspond to a plurality of different private protocols, and each of the plurality of protocol conversion modules comprises an interface and a data dictionary; wherein the data dictionary of each protocol conversion module corresponds to one private protocol; each of the data dictionaries comprises first information, and the first information is based on a public protocol; each of the plurality of protocol conversion modules is configured to configure second information based on the respective private protocol and a mapping relationship between the second information and the first information in the data dictionary through the interface by a protocol provider of the corresponding private protocol. According to the protocol conversion method, the protocol conversion is carried out, and each private protocol can be protected while the protocol conversion is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of protocol integration, and in particular, to a device and method for integrating multi-source heterogeneous protocols. Background Art

[0002] In the current industrial control field, with the rapid development of automation technology, integrating multiple devices to achieve complex production processes and high-efficiency management has become an industry standard. This highly integrated system can significantly improve production efficiency, optimize resource allocation, and reduce operating costs. Various sensors, actuators, controllers, and intelligent devices are closely connected through advanced communication protocols, together forming a complex and sophisticated industrial control system.

[0003] Although integration brings many conveniences, a significant problem that comes with it is the cross-communication phenomenon that may occur between equipment units. Since different equipment units may run on different communication protocols, and for the sake of compatibility and flexibility, a certain degree of protocol conversion and transparent transmission is often allowed in system design. Although this design enhances the flexibility of the system, it also makes the communication boundaries between equipment units blurred, which is easy to cause unexpected data exchange, especially when it involves equipment private protocols. As the core technical secrets of equipment manufacturers, private protocols will seriously threaten the security, stability and market competitiveness of equipment once they are leaked or maliciously used.

[0004] Therefore, how to effectively prevent unauthorized cross-communication between equipment units and protect private protocols from illegal access or tampering has become a key issue that needs to be urgently addressed in the current industrial control field. Summary of the invention

[0005] In order to solve the existing technical problems, the present application provides a device and method for integrating multi-source heterogeneous protocols.

[0006] In a first aspect, an embodiment of the present application provides a device for integrating multi-source heterogeneous protocols, including: A protocol conversion device, wherein the protocol conversion device is configured with a plurality of mutually isolated protocol conversion modules; the plurality of protocol conversion modules correspond to a plurality of different private protocols, respectively, and each of the plurality of protocol conversion modules includes an interface and a data dictionary; Among them, the data dictionary of each of the multiple protocol conversion modules corresponds to a private protocol; each of the data dictionaries includes first information, and the first information is based on a public protocol; each of the multiple protocol conversion modules is configured so that the protocol provider corresponding to the private protocol configures the second information based on the respective private protocol in the data dictionary through an interface, as well as the mapping relationship between the second information and the first information.

[0007] Optionally, the device further includes a patch management module; The patch management module is configured to receive patches released by the private protocol provider and send the patches to the protocol conversion device. The protocol conversion device determines the protocol conversion module according to the correspondence between the patches and the private protocol, and applies the patches to update the data dictionary in the protocol conversion module.

[0008] Optionally, the first information in multiple data dictionaries is the same.

[0009] Optionally, isolation includes physical isolation, logical isolation and / or access permission control.

[0010] Optionally, each of the plurality of protocol conversion modules is configured to be accessible only to a provider of a private protocol.

[0011] Optionally, the device further includes a monitoring module and an indicator database; The indicator database is configured with identifiers corresponding to each private protocol; The monitoring module is configured to parse an identifier from the data received by the protocol conversion device; determine the private protocol adopted by the data received by the protocol conversion device based on the identifier; and match the data received by the protocol conversion device with the corresponding protocol conversion module based on the determination result.

[0012] In a second aspect, an embodiment of the present application provides a method for multi-source heterogeneous protocol integration, including: Providing a device for multi-source heterogeneous protocol integration, a host computer, and a plurality of device units based on a private protocol as described in any one of the first aspects; When multiple equipment units communicate with the host computer: The plurality of protocol conversion modules in the protocol conversion device respectively receive second data from the plurality of equipment units according to the type of the private protocol; the second data includes second information; The protocol conversion module converts the second information in the second data corresponding to each protocol into the first information mapped with the second information according to the data dictionary corresponding to each private protocol; The protocol conversion module creates first data based on the converted first information and sends the first data to the host computer.

[0013] Optionally, the multi-source heterogeneous protocol integration method further includes: When the host computer communicates with multiple equipment units: The protocol conversion device receives first data sent by the host computer, where the first data includes first information and the type of private protocol adopted by the communication object; The protocol conversion device selects a corresponding data dictionary based on the type of the private protocol, and converts the first information in the first data into second information mapped with the first information; The protocol conversion device creates second data based on the converted second information and transmits the second data to the plurality of equipment units.

[0014] Optionally, the method further comprises: providing a patch management module; The patch management module is configured to receive patches issued by a private protocol provider and send the patches to the protocol conversion device so that the data dictionary corresponding to the private protocol in the protocol conversion device is updated.

[0015] Optionally, the method further includes: the protocol conversion device parses the received first data / second data to obtain an identifier corresponding to the private protocol; and determines the protocol adopted by the first data / second data based on the identifier; The first data / the second data is matched to the corresponding protocol conversion module according to the judgment result.

[0016] In the technical solution of the present application, by configuring multiple mutually isolated protocol conversion modules in the protocol conversion device, performing protocol conversion through the protocol conversion modules, and realizing the interaction between the host computer and the device unit, each device unit can be effectively isolated, and the private protocol is only set in each protocol conversion module and is not open to the outside, which can effectively achieve the effect of protecting the private protocol. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.

[0018] Figure 1 An architectural diagram of a device for multi-source heterogeneous protocol integration provided by an embodiment of the present application is shown.

[0019] Figure 2 A diagram showing the association relationship between private protocols, public protocols and protocol conversion modules.

[0020] Figure 3 A signaling diagram of a patch update process performed by a patch management module provided in an embodiment of the present application is shown.

[0021] Figure 4 An architectural diagram of a device for multi-source heterogeneous protocol integration including an indicator database and a monitoring module provided in an embodiment of the present application is shown.

[0022] Figure 5 A flow chart of a method for parsing and forwarding messages by a monitoring module provided in an embodiment of the present application is shown.

[0023] Figure 6 A signaling diagram showing a specific process of a host computer sending a message to a device unit provided in an embodiment of the present application.

[0024] Figure 7 A signaling diagram showing a specific process of a device unit provided in an embodiment of the present application sending a message to a host computer.

[0025] Figure 8 An architectural diagram of a multi-source heterogeneous integrated system including a protocol conversion device provided in Example 3 of the present application is shown.

[0026] Fig. 9 A relationship diagram of the protocol conversion and data dictionary management provided by Example 4 of the present application is shown.

[0027] Fig.10 A protocol conversion module update patch flow chart provided in Example 5 of the present application is shown. DETAILED DESCRIPTION

[0028] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as methods, devices, electronic devices, computer-readable storage media, and computer program products. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.

[0029] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM), flash memories, optical fibers, compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices or any combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device, or device.

[0030] The computer program code contained in the above-mentioned computer-readable storage medium can be transmitted by any appropriate medium, including: wireless, wire, optical cable, radio frequency (RF) or any suitable combination thereof.

[0031] The computer program code for performing the operation of the embodiment of the present invention can be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages ​​or a combination thereof, wherein the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as C language or a similar programming language. The computer program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, and completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer or to an external computer through any type of network, including a local area network (LAN) or a wide area network (WAN).

[0032] The embodiments of the present invention describe the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.

[0033] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.

[0034] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.

[0035] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.

[0036] The embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0037] Normally, in order to protect their own commercial interests and prevent potential security vulnerabilities from being exploited, some private protocol manufacturers usually do not disclose protocol documents to the public. In order to achieve compatibility between different protocols in industrial automation systems, gateway manufacturers or users may need to reverse parse the protocol. Doing so consumes gateway computing power, reduces system efficiency, and also has a negative impact on the security of the entire system, and faces many legal risks. Therefore, how to achieve compatibility between different private protocols while ensuring the security of private protocols is a technical problem that needs to be solved urgently.

[0038] Figure 1 FIG. 1 shows an architecture diagram of a device for integrating multi-source heterogeneous protocols provided by an embodiment of the present invention. Figure 1 As shown, the device includes: A protocol conversion device, wherein the protocol conversion device is configured with a plurality of mutually isolated protocol conversion modules; the plurality of protocol conversion modules correspond to a plurality of different private protocols, respectively, and each of the plurality of protocol conversion modules includes an interface and a data dictionary; Among them, the data dictionary of each of the multiple protocol conversion modules corresponds to a private protocol; each of the data dictionaries includes first information, and the first information is based on a public protocol; each of the multiple protocol conversion modules is configured so that the protocol provider corresponding to the private protocol configures the second information based on the respective private protocol in the data dictionary through an interface, as well as the mapping relationship between the second information and the first information.

[0039] Protocol conversion plays a vital role in modern communication systems, especially in the direction of system integration, integrating hardware devices from various manufacturers into a complete system and interacting with each other. When exchanging data and communicating between different systems, different private protocol standards are often required. Protocol conversion provides an intermediate layer for the entire system, realizing seamless conversion between different private protocols and promoting the circulation and sharing of information.

[0040] Hardware manufacturers usually provide some API interfaces for operating devices, which are used to control devices and obtain relevant data. This will inevitably expose relevant private protocols. Often, multiple device units are deployed in a network, and there may be risks that hardware devices are accessed and controlled by unplanned device units. There may also be other devices or applications that illegally access or illegally operate device units, and obtain or tamper with the information of other device units in unplanned situations by intercepting and simulating interactive information, which greatly reduces the security and stability of the system. Therefore, how to isolate devices from each other without affecting the normal use of device units has become an issue that people need to consider urgently.

[0041] The protocol conversion device is equipped with multiple isolated protocol conversion modules. The main purpose of this design is to improve the security and reliability of the system. Each module focuses on the conversion of one or a class of private protocols. Through physical or logical isolation, it effectively prevents the mutual propagation of data conflicts, misoperations or security vulnerabilities that may exist between different protocols. This modular design also facilitates the expansion and maintenance of the system. When it is necessary to support a new private protocol, only a new protocol conversion module needs to be added, without large-scale changes to the existing system.

[0042] In the present application, the protocol conversion device is configured with multiple protocol conversion modules isolated from each other, and each protocol conversion module corresponds to a private protocol. First, the protocol conversion module is used to convert the private protocol of the device unit into a public protocol, and each device conversion module corresponds to a device unit. Optionally, one protocol conversion module corresponds to multiple device units of the same model; optionally, one protocol conversion module corresponds to multiple device units using a specified private protocol. It should be noted that the aforementioned public protocol can be an existing public protocol, and can also be provided by the manufacturer of the equipment for multi-source heterogeneous protocol integration provided by this application.

[0043] Each protocol conversion module is equipped with a dedicated interface, which is a bridge for the protocol conversion module to interact with the outside. The data dictionary is the core component of the protocol conversion module, which stores all the necessary information required for the conversion between private protocols and public protocols. The data dictionary of each protocol conversion module is customized for its corresponding private protocol, and contains a series of first information (data structures, fields, etc. based on public protocol definitions) and second information (data structures, fields, etc. based on private protocol definitions), as well as the mapping relationship between the two. This mapping relationship is the key to achieving protocol conversion. An important feature of the protocol conversion device is its dynamic configuration capability. The private protocol provider (i.e., the private protocol manufacturer or maintainer) can directly configure the second information and the mapping relationship between the second information and the first information in the data dictionary of its corresponding protocol conversion module through the interface. This configuration process can be either static (completed once when the system is deployed) or dynamic (adjusted as needed during the operation of the system). This flexibility ensures that the protocol conversion device can adapt to the ever-changing protocol standards and business needs. When data flows from one private protocol system to another, the protocol conversion device first receives the data through the corresponding interface, and then maps it to the data dictionary of the corresponding protocol conversion module according to the private protocol to which the data belongs. In the data dictionary, the data of the private protocol is converted into the data format of the public protocol by using the pre-configured mapping relationship between the second information and the first information. Finally, the converted data is sent to the host computer through another interface to complete the entire conversion process. In other words, when the host computer communicates with the subordinate computer, it only needs to send instructions based on the public protocol to the device for multi-source heterogeneous protocol integration provided by the present application; when the subordinate computer communicates with the host computer, it only needs to send instructions based on the respective private protocols to the device for multi-source heterogeneous protocol integration provided by the present application. Thereby, the protocol conversion device provided by the present application realizes compatibility between devices using different protocols while ensuring the security of the private protocol.

[0044] Each protocol conversion module is equipped with a data dictionary, such as Figure 2 As shown, the data dictionary contains first information, and the first information has a mapping relationship with second information based on the public protocol; the data dictionary has a corresponding relationship with the private protocol, thereby realizing the mapping and conversion between the public protocol and the private protocol.

[0045] The protocol conversion device provides strong support for data exchange between different private protocol systems through its multi-protocol isolation design, modular composition, dynamic configuration capability and efficient conversion process, promotes the integration and sharing of information resources, realizes isolation between devices, and improves the security and stability of the system. As a component that specializes in handling protocol conversion tasks, the protocol conversion module undertakes the important task of converting data in one protocol format into another protocol format. In the protocol conversion device of the present application, mutually isolated protocol conversion modules are provided for different private protocol providers so that they can configure independent data dictionaries based on their own protocols, avoiding the potential risks of public protocol documents (including free and paid public) and reverse engineering. In addition, compared with traditional gateways, the protocol conversion device provided by the present application establishes a mapping between private protocols and data dictionaries by private protocol providers, releasing most of the computing power used to parse protocols, thereby improving the communication efficiency of the system. Optionally, the protocol conversion module can use more efficient algorithms and data structures to optimize the conversion process. This specialized processing method makes data conversion faster, thereby reducing delays in data transmission. For application scenarios with high real-time requirements, such as industrial automation, fast response speed is particularly important. The application of protocol conversion modules can ensure that the host computer can obtain the processed data in time and respond quickly, improving the real-time and reliability of the entire system. With the development of technology and changes in business needs, the system may need to access more types of devices or support new communication protocols. This may face the situation where existing devices cannot adapt to the new protocols, and it may be necessary to replace existing gateways and other equipment in large quantities. The device for multi-source heterogeneous protocol integration using this application only needs to allocate a new protocol conversion module to the provider of the new private protocol. This achieves support for new devices or new protocols, greatly enhancing the flexibility and scalability of the system.

[0046] In some embodiments, optionally, Figure 3 As shown, the device also includes a patch management module; the patch management module is configured to receive patches released by a private protocol provider and send the patches to a protocol conversion device, the protocol conversion device determines the protocol conversion module based on the correspondence between the patches and the private protocol, and applies the patches to update the data dictionary in the protocol conversion module.

[0047] The patch management module is responsible for managing newly added or updated patches, which are used to create or update the data dictionary in the specified protocol conversion module. The specific process of patch creation or update is as follows: the private protocol provider provides the patch and sends the patch to the patch management module; the patch management module pre-processes and performs version management on the patch sent by the private protocol provider, and sends the pre-processed patch to the protocol conversion device; the protocol conversion device receives the patch sent by the patch management module, queries the corresponding protocol conversion module according to the corresponding relationship, and applies the patch to create or update the data dictionary in the protocol conversion module.

[0048] The patch management module first defines a set of standard or application-specific interfaces for receiving patches released by private protocol providers. These interfaces may be based on protocols such as HTTP, FTP, SFTP, etc. to ensure the security and reliability of data transmission. Before receiving the patch, a strict verification process will be performed, including checking the signature of the patch (such as using digital signature technology), version compatibility, and publisher identity authentication to prevent malware or unauthorized patches from being introduced into the system. After verification, the patch will be securely stored in a predetermined storage location, usually an encrypted or access-controlled storage area, for subsequent processing. Optionally, the private protocol provider needs to perform comprehensive testing before the patch is released to ensure the correctness and standardization of the information.

[0049] The patch management module will regularly check the availability of new patches, or automatically trigger the patch sending process according to the notification of the private protocol provider. Once a new patch is available, the module will start the sending process. Through the defined communication protocol and interface, the patch management module sends the patch file or patch description information to the protocol conversion device. Optionally, the patch is encrypted to ensure the security of data during transmission. After receiving the patch, the protocol conversion device first parses the patch content and identifies the private protocol targeted by the patch. Based on the correspondence between the patch and the private protocol, the logic inside the device determines the protocol conversion module that needs to be updated. Optionally, the relationship between the patch and the corresponding protocol conversion module is determined by querying a mapping table or database, which records the association information between different versions of the protocol version and the corresponding protocol conversion module. After determining the target protocol conversion module, the device will apply the patch, including updating the data dictionary in the module (i.e., updating or expanding the data structure used to parse and generate protocol messages), modifying the code logic, or replacing the entire data dictionary. The data dictionary is a core component in the protocol conversion module, which defines the meaning, type, length, and other information of each field in the protocol message. Updating the data dictionary is a key step to ensure the accuracy and compatibility of protocol conversion. Optionally, the patch contains new field definitions, modified field attributes, or obsolete field information. The protocol conversion device dynamically updates the data dictionary based on the patch content, including adding new entries, modifying existing entries, or deleting entries that are no longer needed. Optionally, after the data dictionary is updated, the protocol conversion device performs a series of verifications and tests to ensure that the updated module can correctly parse and generate protocol messages without introducing new problems or errors. Through the above process, the patch management module works together with the protocol conversion device to ensure that the system can flexibly and securely respond to various changes, maintain synchronization with private protocol providers, and thus provide stable and efficient communication services.

[0050] In some embodiments, optionally, the first information in multiple data dictionaries is the same. After multiple private protocols are converted into a unified public protocol, it is beneficial to the integration and unification of information and provide a data basis for subsequent upper computer data processing. Optionally, the public protocol is divided into an operation-type public protocol and a data display-type public protocol. According to the type of the second data based on the private protocol, the message is converted into different types of first data based on the public protocol.

[0051] In some embodiments, optionally, isolation includes physical isolation, logical isolation and / or access control. Isolation is a core concept in information security and data protection, which aims to limit or prevent unauthorized access, data leakage or the spread of malware through different technical means. Isolation strategies include physical isolation, logical isolation and access control, each of which has its own unique application scenarios and advantages. Physical isolation is the most direct and basic isolation method, which involves completely separating different systems, networks or devices at the physical level to ensure that there is no direct physical connection between them. This isolation method is usually used in environments with high security requirements to prevent external threats from directly invading the system. Physical isolation can be achieved by using different physical networks, independent computer rooms, or even geographical separation. Logical isolation is to achieve isolation between different systems or networks through software or network protocols without changing the physical connection. This isolation method relies on network technologies such as firewalls, virtual local area networks (VLANs), routing policies, security groups, and security policy settings at the operating system level. Logical isolation allows systems or networks to be physically connected, but logically divided into different security areas, each with its own security policies and access control rules. In this way, the flow of data between different areas can be restricted to prevent the spread of malware or unauthorized access. Access control is another important isolation method, which involves strict permission management for access to system resources, data or services. By assigning different access rights to different users or user groups, it can be ensured that only authorized users can access specific resources or services. Access control can be achieved through mechanisms such as identity authentication, role management, and permission allocation.

[0052] In some embodiments, optionally, each of the multiple protocol conversion modules is configured to be accessible only to the provider of a private protocol. Each protocol conversion module focuses on processing a private protocol, and by limiting access rights, potential security threats between different protocols can be effectively isolated. Even if a protocol module is attacked, the risk can be controlled within a local range to prevent the attack from spreading to other protocol modules. Restricting access rights means that only authorized providers can modify or update the module, thereby reducing the risk of vulnerability exposure due to external improper operation or malware. The data processed by each private protocol may have different sensitivity and protection requirements. By limiting access rights, it can be ensured that only specific providers can access and process the data of their corresponding protocols, thereby improving the security and privacy protection capabilities of the data.

[0053] In some embodiments, optionally, Figure 4 As shown, the device also includes a monitoring module and an indicator database; The indicator database is configured with identifiers corresponding to each private protocol; The monitoring module is configured to parse an identifier from the data received by the protocol conversion device; determine the private protocol adopted by the data received by the protocol conversion device based on the identifier; and match the data received by the protocol conversion device with the corresponding protocol conversion module based on the determination result.

[0054] The indicator database is a vital part of the device, which stores key information about different private protocols. Optionally, each private protocol has a unique identification (ID) or name in the database, which is used to uniquely identify and distinguish different protocols within the system. Optionally, the database also contains other data about these protocols, such as protocol version, data format, supported functions, etc. Each private protocol has a corresponding, unique identifier in the database. This identifier can be a simple string, a numeric code, or a more complex encoding form.

[0055] The monitoring module is a functional module in the system responsible for real-time processing and analysis of data from the protocol conversion device. It receives the first data from the host computer and parses out the first information, especially the identification information related to the private protocol. Based on this information, the monitoring module can determine the private protocol adopted by the first data and match these first data with the corresponding protocol conversion module in the system for further processing or conversion. The monitoring module first receives the first data from the host computer. These first data may contain first information based on different private protocols, so they need to be carefully analyzed and processed. From the received data, the monitoring module parses out the identification information related to the private protocol. This usually involves reading and identifying the header, specific fields or tags of the data packet. Using the parsed identification information, the monitoring module searches for matching private protocol records in the indicator database. By comparing the identification in the database, the monitoring module can determine the private protocol adopted by the received data. Once the private protocol adopted by the data is determined, the monitoring module will match the received data with the corresponding protocol conversion module in the system according to this judgment result. This means that the data will be sent to a specific module that can process the first data in order to process the subsequent process.

[0056] like Figure 5 As shown, after receiving the first data, the protocol conversion device sends the first data to the monitoring module; the monitoring module parses the received first data and obtains an identifier from the first data, where the identifier is related to the private protocol; the protocol conversion module to which the first data should be sent is determined through the private protocol corresponding to the identifier, and the first data is sent to the designated protocol conversion module; after receiving the first data, the protocol conversion module processes the first data.

[0057] The present application also provides a method for multi-source heterogeneous protocol integration, including: Providing a device for multi-source heterogeneous protocol integration, a host computer, and a plurality of device units based on a private protocol as described in any one of the first aspects; When multiple equipment units communicate with the host computer: The plurality of protocol conversion modules in the protocol conversion device respectively receive second data from the plurality of equipment units according to the type of the private protocol; the second data includes second information; The protocol conversion module converts the second information in the second data corresponding to each protocol into the first information mapped with the second information according to the data dictionary corresponding to each private protocol; The protocol conversion module creates first data based on the converted first information and sends the first data to the host computer.

[0058] When the host computer communicates with multiple equipment units: The protocol conversion device receives first data sent by the host computer, where the first data includes first information and the type of private protocol adopted by the communication object; The protocol conversion device selects a corresponding data dictionary based on the type of the private protocol, and converts the first information in the first data into second information mapped with the first information; The protocol conversion device creates second data based on the converted second information and transmits the second data to the plurality of equipment units.

[0059] When multiple device units communicate with a host computer, multiple device units (such as sensors, actuators, etc.) generate second data according to their own private protocols and send them to the corresponding protocol conversion module in a certain way (such as serial communication, network transmission, etc.). The second data contains the second information, that is, the specific data or instructions that the device unit wants to convey to the host computer. The protocol conversion module searches for the corresponding data dictionary according to the type of private protocol it is responsible for. The data dictionary is a predefined mapping table that defines the correspondence between the second information in the private protocol and the first information in the public protocol (or a protocol recognizable by the host computer). Using the data dictionary, the protocol conversion module converts the second information in the second data into the first information mapped thereto. Optionally, the protocol conversion includes data format conversion, encoding method adjustment, data unit conversion, etc. After the conversion is completed, the protocol conversion module creates the first data based on the converted first information, and the first data is in a format that the host computer can understand and process. The protocol conversion module sends the first data to the host computer through an appropriate communication method (such as a serial port, a network interface, etc.).

[0060] When the host computer communicates with multiple equipment units: the host computer generates first data according to business needs and sends it to the protocol conversion device. These data include first information (i.e., data or instructions that need to be conveyed to a specific equipment unit) and the private protocol identifier adopted by the communication object. After the protocol conversion device receives the first data, the monitoring module first parses out the first information and the private protocol identifier adopted by the communication object. According to the identifier of the private protocol, the protocol conversion device selects the corresponding protocol conversion module. Using the data dictionary in the protocol conversion module, the protocol conversion module converts the first information in the first data into the second information mapped thereto, ensuring that the data can be correctly conveyed to the target equipment unit. After the conversion is completed, the protocol conversion module creates second data based on the second information obtained by the conversion, and then sends the second data to the specified equipment unit in an appropriate manner.

[0061] Embodiment 1: The protocol conversion device includes at least two protocol conversion modules, namely protocol conversion module A and protocol conversion module B, which are respectively deployed on different electronic devices. Among them, protocol conversion module A is connected to the electric actuator of manufacturer A through an interface, and protocol conversion module B is connected to the temperature sensor of manufacturer B through an interface.

[0062] The host computer sends the first data to control the electric actuator of manufacturer A to start, as follows: { … "protocolType": "CONTROL", "deviceType": "ELECTRIC_ACTUATOR", "firstData": { "action": "START" } … } Among them, protocolType indicates the protocol type, and the value CONTROL corresponding to this field indicates a control instruction; deviceType indicates the device type, and the value ELECTRIC_ACTUATOR of this field indicates that the operated device is an electric actuator; firstData indicates a data object, and the value START of this field indicates that the control action is to start the electric actuator.

[0063] The host computer sends the above first data to the protocol conversion device. After the protocol conversion device receives the message, the monitoring module parses it. According to the value of the deviceType field ELECTRIC_ACTUATOR, by querying the indicator database, it is determined that the target device unit of the message is the electric actuator of manufacturer A; according to the corresponding relationship in the data dictionary, the private protocol corresponding to the electric actuator of manufacturer A is found, and the corresponding protocol conversion module is further found, and the above first data is sent to the protocol conversion module; the protocol conversion module receives the above first message and parses it; the first information extracted from the first data is action: START, the purpose is to control the electric actuator to enter the start mode. According to the corresponding relationship in the data dictionary, the second information corresponding to START is found to be 0x01; after determining the second information, the protocol conversion module generates the second data that the electric actuator can recognize from the second information, specifically: [Device address][0x01][Check code] Among them, [Device Address] is the unique identification of the electric actuator, and [Check Code] is used to ensure the correctness of data transmission. After the second data is generated, the second data is sent to the electric actuator through the interface.

[0064] Embodiment 2: The temperature sensor sends the second data, and sends the real-time temperature data to the upper computer, as follows: TEMP:25.0 After receiving the above message, the protocol conversion module corresponding to the temperature sensor parses the above second data and obtains the second information TEMP, that is, the current temperature is 25.0 degrees. By querying the mapping relationship in the data dictionary, it is found that the first information corresponding to the second information TEMP is temperature, and the value is 25.0. The above first information is used to generate the first data, specifically: { "protocolType": "DATA_RECEIVE", "deviceType": "TEMPERATURE_SENSOR", "firstData": { "temperature": 25.0 } } Among them, protocolType indicates the protocol type, and the value DATA_RECEIVE corresponding to this field indicates a data receiving instruction; deviceType indicates the device type, and the value TEMPERATURE_SENSOR of this field indicates that the data source device is a temperature sensor; firstData indicates the data object, and the value temperature of this field indicates that the current temperature is 25.0 degrees.

[0065] The protocol conversion module sends the generated first data to the host computer, and the host computer receives the first data and performs response processing.

[0066] Example 3: Figure 8 As shown, the multi-source heterogeneous integration system includes a protocol conversion device and equipment units of multiple manufacturers. The protocol conversion device includes multiple protocol conversion modules, and the protocol conversion modules correspond to the private protocols of multiple manufacturers respectively. The multi-source heterogeneous integration system also includes a private cloud, which is used to store and manage data related to the protocol conversion device, such as a data dictionary, a mapping relationship between the first information and the protocol conversion module, and protocol conversion patches of various manufacturers. The system also includes a patch management module for adding and updating protocol patches of various manufacturers. The system also includes a regional center, which is used to control the equipment units of various manufacturers, and read and display the data generated by the equipment units of various manufacturers.

[0067] For example, the process of controlling device unit A in the regional center is: The regional center generates first data based on the public protocol for controlling device A and sends the data to the protocol conversion device, wherein the first data includes first information related to the controlling device A; After receiving the first data, the protocol conversion device parses the first data according to the public protocol to obtain the first information, and then finds the corresponding protocol conversion module A according to the mapping relationship in the private cloud based on the first information; The protocol conversion module A converts the first information into second information corresponding to the private protocol A according to the private protocol A through the mapping relationship stored in the data dictionary therein, and generates second data based on the private protocol A from the second information; The protocol conversion module A sends the second data to the device unit A through the interface between the protocol conversion module A and the device unit A; Equipment unit A receives the second data and performs relevant operations according to the content of the second data.

[0068] For example, when the manufacturer of device unit A applies to update private protocol A, the process is as follows: Manufacturer A develops patch A and submits a patch update request; System maintenance personnel test and evaluate patch A and give an evaluation result on whether to allow the upgrade; If the above evaluation result is approved, patch A will be sent to the patch management module; When the patch management module detects a newly added patch A, it sends patch A to the protocol conversion device; The protocol conversion device parses patch A, finds the protocol conversion module A corresponding to the private protocol A related to patch A through the private cloud, and forwards patch A to the protocol conversion module A; The protocol conversion module A receives the patch A, and uses the patch A to update the data dictionary stored therein.

[0069] Example 4: Fig. 9 As shown, it is a relationship diagram of protocol conversion and data dictionary management, in which multiple equipment units of different manufacturers communicate with the system based on their own private protocols through their own access interfaces. After receiving the second data from each equipment unit, the system parses the second data to obtain the second information, and in combination with the data dictionary and the private cloud, queries the first information based on the public protocol corresponding to the second information. The above steps are the mapping relationship between the private protocol and the public protocol, in which the private cloud at least stores the mapping relationship between the private protocol and the protocol conversion module and the mapping relationship between the second information based on the specified private protocol and the corresponding first information based on the public protocol. The conversion step includes: converting the second information into the first information according to the mapping relationship, generating the first data based on the public protocol according to the first information, and forwarding the first data to the target device. The figure also includes a data dictionary management system, which interacts with the system through an API interface to realize operations such as content acquisition, parsing, conversion, and storage of the data dictionary, and stores the process information in the data dictionary database of the system, with the purpose of maintaining and managing the relevant content and relevant versions of the data dictionary.

[0070] Example 5: Fig.10 The figure shows a specific flow chart of updating the patch for the protocol conversion module. The specific steps include: After the device manufacturer applies for an update patch and the new patch file passes review, the new patch file is placed on the FTP file server; The protocol conversion device is provided with a monitoring module for the FTP file server. When a file change is found on the FTP file server, the changed file is obtained and copied to the protocol conversion device. The protocol conversion device parses the newly added patch file, determines the protocol conversion module corresponding to the newly added patch file, and sends the newly added patch file to the MQTT message queue through an HTTP request; MQTT processes the messages in the message queue and sends the newly added patch files to the specified protocol conversion module; The protocol conversion module receives the newly added patch file, and updates the data dictionary corresponding to the newly added patch file according to the received newly added patch file through an HTTP request.

[0071] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiment of the present invention, which should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention should be based on the protection scope of the claims.

Claims

1. A device for integrating multi-source heterogeneous protocols, It is characterized in that The device comprises a protocol conversion device, wherein the protocol conversion device is configured with a plurality of protocol conversion modules isolated from each other; the plurality of protocol conversion modules respectively correspond to a plurality of different private protocols, and each of the plurality of protocol conversion modules comprises an interface and a data dictionary; Among them, the data dictionary of each of the multiple protocol conversion modules corresponds to a private protocol; each of the data dictionaries includes first information, and the first information is based on a public protocol; each of the multiple protocol conversion modules is configured so that the protocol provider corresponding to the private protocol configures second information based on the respective private protocol in the data dictionary through the interface, as well as a mapping relationship between the second information and the first information.

2. The device according to claim 1, It is characterized in that The device also includes a patch management module; The patch management module is configured to receive patches released by a private protocol provider and send the patches to the protocol conversion device. The protocol conversion device determines a protocol conversion module based on the correspondence between the patches and the private protocol, and applies the patches to update the data dictionary in the protocol conversion module.

3. The device according to claim 1, It is characterized in that The first information in the multiple data dictionaries is the same.

4. The device according to claim 1, It is characterized in that The isolation includes physical isolation, logical isolation and / or access permission control.

5. The device according to claim 1, It is characterized in that Each of the plurality of protocol conversion modules is configured to be accessible only to a provider of a private protocol.

6. The device according to claim 1, It is characterized in that The device also includes a monitoring module and an indicator database; The indicator database is configured with identifiers corresponding to each private protocol; The monitoring module is configured to parse the identifier from the data received by the protocol conversion device; Determining the private protocol adopted by the data received by the protocol conversion device based on the identifier; The data received by the protocol conversion device is matched with the corresponding protocol conversion module based on the judgment result.

7. A method for integrating multi-source heterogeneous protocols, It is characterized in that include: Provide a device for multi-source heterogeneous protocol integration, a host computer, and a plurality of device units based on a private protocol as described in any one of claims 1 to 6; When the plurality of equipment units communicate with the host computer: The plurality of protocol conversion modules in the protocol conversion device respectively receive second data from the plurality of equipment units according to the type of the private protocol; the second data includes second information; The protocol conversion module converts the second information in the second data corresponding to each protocol into first information mapped with the second information according to the data dictionary corresponding to each private protocol; The protocol conversion module creates first data based on the converted first information and sends the first data to the host computer.

8. The method according to claim 7, It is characterized in that The method comprises: When the host computer communicates with the multiple device units: The protocol conversion device receives first data sent by the host computer, wherein the first data includes first information and a type of private protocol adopted by a communication object; The protocol conversion device selects a corresponding data dictionary based on the type of the private protocol, and converts the first information in the first data into second information mapped with the first information; The protocol conversion device creates second data based on the converted second information, and transmits the second data to the plurality of equipment units.

9. The method according to claim 7, It is characterized in that The method further comprises: providing a patch management module; The patch management module is configured to receive a patch issued by a private protocol provider, and send the patch to the protocol conversion device, so that the data dictionary corresponding to the private protocol in the protocol conversion device is updated.

10. The method according to claim 7, It is characterized in that The method further includes: the protocol conversion device parses the received first data / second data to obtain an identifier corresponding to the private protocol; and determines the protocol adopted by the first data / second data based on the identifier; The first data / second data is matched to a corresponding protocol conversion module according to the judgment result.

Citation Information

Patent Citations

  • Apparatus and method for protocol adaptation

    CN113691484A

  • Protocol conversion device and system, configuration method, electronic equipment and storage medium

    CN115037806A

  • Multifunctional data acquisition and conversion device

    CN116389608A

  • Data management method and device for multi-terminal access gateway

    CN117201631A

Cited By

  • Data transmission method and module, linear motor device, electronic device and medium

    CN119766900A