Industrial network protocol conversion method and device, equipment, storage medium and product

By analyzing protocol data flow and generating mapping rules, automatically constructing data variable collections and rules, the problem of low conversion efficiency of industrial network protocols is solved, and efficient protocol conversion and error positioning is achieved.

CN118972468APending Publication Date: 2024-11-15PENG CHENG LAB
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410944157.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing industrial network protocol conversion relies on manual development protocol conversion programs, resulting in low protocol conversion efficiency. Especially when the data variables are large in scale, manual configuration errors are difficult to locate and development efficiency is not high.

Method used

By analyzing the protocol data flow, determining the source protocol type and data variable collection, generating data variable mapping rules, generating protocol conversion program examples based on the rules, realizing industrial network protocol conversion, using predicted long and short-term memory network and VAE decoder to identify protocol types, combined with The preset knowledge base performs field extraction and matching, and automatically builds data variable collections and mapping rules.

Benefits of technology

It improves the efficiency of industrial network protocol conversion, reduces the steps of manual mapping and encoding, enhances the error positioning capability, and reduces the development cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972468A_ABST
    Figure CN118972468A_ABST
Patent Text Reader

Abstract

The invention discloses an industrial network protocol conversion method and device, equipment, a storage medium and a product, and relates to the technical field of the Internet, and the industrial network protocol conversion method comprises the steps: determining a source protocol type of a source protocol according to a protocol data flow to be subjected to protocol conversion; analyzing the protocol data stream to obtain a data variable set corresponding to the protocol data stream; determining a data variable mapping rule according to the source protocol type, the data variable set and a target protocol type; and generating a protocol conversion program instance based on the data variable mapping rule, and performing industrial network protocol conversion according to the protocol conversion program instance. Compared with an existing mode that developers manually call interfaces of a source protocol and a target protocol and manually complete mapping coding of all data variables, the mode of the application can improve the efficiency of industrial network protocol conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to industrial network protocol conversion methods, devices, equipment, storage media and products. Background Art

[0002] The necessary prerequisite for the digital transformation of the manufacturing industry is to achieve the interconnection and interoperability of different industrial equipment and form a network for the circulation of all factors. However, most industrial equipment uses incompatible network communication protocols. Therefore, to achieve the interconnection and interoperability of industrial equipment, it is necessary to develop and deploy network protocol conversion programs, and translate the data variables transmitted based on the source communication protocol according to the specifications of the target communication protocol to adapt to the connection requirements of industrial equipment with different interfaces. Due to the large number of industrial network protocols, the development workload of protocol conversion programs is huge. If manual identification of protocol types and mapping rule definitions are used, there will be shortcomings such as repeated development, poor versatility, and long development cycles.

[0003] Related technical means require developers to manually write source code, but people in the industrial field usually do not have the ability to develop complex software engineering. Despite the development trend of low-code development tools in recent years, many visual mapping rule configuration tools based on tables, graphics, etc. have appeared in the field of industrial network protocol conversion, such as Node-Red. However, due to the lack of source code level debugging interface, when the scale of data variables is in the tens of thousands, this manual configuration method based on graphical tools will be difficult to locate the source of the error once an error occurs, and its development efficiency is still low. Therefore, how to improve the efficiency of industrial network protocol conversion has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The main purpose of this application is to provide an industrial network protocol conversion method, device, equipment, storage medium and product, aiming to solve the technical problem that the existing industrial network protocol conversion relies on manually developed protocol conversion programs, resulting in low protocol conversion efficiency.

[0005] To achieve the above purpose, the present application proposes an industrial network protocol conversion method, which includes:

[0006] Determine the source protocol type of the source protocol according to the protocol data stream to be converted into a protocol;

[0007] Parsing the protocol data stream to obtain a data variable set corresponding to the protocol data stream;

[0008] Determine a data variable mapping rule according to the source protocol type, the data variable set, and the target protocol type;

[0009] A protocol conversion program instance is generated based on the data variable mapping rule, and industrial network protocol conversion is performed according to the protocol conversion program instance.

[0010] Optionally, the step of determining the source protocol type of the source protocol according to the protocol data stream to be converted to a protocol comprises:

[0011] Determine the five-tuple information corresponding to the protocol data stream to be converted;

[0012] Identify a source protocol type of a source protocol according to the quintuple information;

[0013] In the case where the source protocol type cannot be identified according to the quintuple information, grouping the protocol data stream to obtain a timing message;

[0014] A source protocol type of the source protocol is determined according to the timing message.

[0015] Optionally, the step of determining the source protocol type of the source protocol according to the timing message includes:

[0016] Performing preliminary feature extraction on the time series message to obtain a feature extraction result;

[0017] Inputting the feature extraction result into the prediction long short-term memory network for data classification prediction to obtain the prediction result output by the prediction long short-term memory network;

[0018] A source protocol type of the source protocol is determined according to the prediction result and the VAE decoder network.

[0019] Optionally, the step of parsing the protocol data stream to obtain a data variable set corresponding to the protocol data stream includes:

[0020] Parsing the protocol data stream to obtain a parsing result;

[0021] Performing field extraction on the protocol data stream according to the parsing result to obtain a field extraction result;

[0022] Matching the field extraction result with a preset knowledge base to obtain variable information corresponding to the field extraction result;

[0023] A data variable set corresponding to the protocol data stream is determined according to the variable information.

[0024] Optionally, before the step of determining the source protocol type of the source protocol according to the protocol data stream to be converted to protocol, the step further includes:

[0025] Obtain different types of process information;

[0026] Performing knowledge extraction based on the process information to obtain a knowledge extraction result;

[0027] A preset knowledge base is constructed according to the knowledge extraction result.

[0028] Optionally, the step of determining a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type includes:

[0029] Determine function block network program templates based on target industry standards;

[0030] A data variable mapping rule is determined according to the function block network program template, the source protocol type, the data variable set and the target protocol type.

[0031] In addition, to achieve the above purpose, the present application also proposes an industrial network protocol conversion device, the industrial network protocol conversion device comprising:

[0032] A protocol type identification module, used to determine the source protocol type of the source protocol according to the protocol data stream to be converted into a protocol;

[0033] A parsing module, used for parsing the protocol data stream to obtain a data variable set corresponding to the protocol data stream;

[0034] A data variable mapping rule determination module, used to determine a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type;

[0035] The protocol conversion module is used to generate a protocol conversion program instance based on the data variable mapping rule, and perform industrial network protocol conversion according to the protocol conversion program instance.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes an industrial network protocol conversion device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the industrial network protocol conversion method described above.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the industrial network protocol conversion method described above are implemented.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the industrial network protocol conversion method described above are implemented.

[0039] The present application determines the source protocol type of the source protocol according to the protocol data stream to be converted; parses the protocol data stream to obtain a data variable set corresponding to the protocol data stream; determines a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type; generates a protocol conversion program instance based on the data variable mapping rule, and performs industrial network protocol conversion according to the protocol conversion program instance. Compared with the existing developer manually calling the interface of the source protocol and the target protocol and manually completing the mapping encoding of all data variables, the above method of the present application can improve the efficiency of industrial network protocol conversion. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A flowchart of the first embodiment of the industrial network protocol conversion method of the present application is provided;

[0043] Figure 2 A schematic diagram of building a knowledge base provided in Example 1 of the industrial network protocol conversion method of this application;

[0044] Figure 3 A schematic diagram of protocol data payload transmission data variable analysis provided in Embodiment 1 of the industrial network protocol conversion method of the present application;

[0045] Figure 4 A schematic diagram of generating data variable mapping rules provided in Embodiment 1 of the industrial network protocol conversion method of the present application;

[0046] Figure 5 A flow chart of the second embodiment of the industrial network protocol conversion method provided in this application;

[0047] Figure 6 A schematic diagram of automatic classification of protocol data stream types provided in Example 2 of the industrial network protocol conversion method of the present application;

[0048] Figure 7 This is a schematic diagram of the module structure of the industrial network protocol conversion device according to an embodiment of the present application;

[0049] Figure 8This is a schematic diagram of the device structure of the hardware operating environment involved in the industrial network protocol conversion method in the embodiment of the present application.

[0050] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0053] The main solution of the embodiment of the present application is: determine the source protocol type of the source protocol according to the protocol data stream to be converted; parse the protocol data stream to obtain a set of data variables corresponding to the protocol data stream; determine the data variable mapping rules according to the source protocol type, the data variable set and the target protocol type; generate a protocol conversion program instance based on the data variable mapping rules, and perform industrial network protocol conversion according to the protocol conversion program instance.

[0054] Compared with the existing method in which developers manually call the interfaces of the source protocol and the target protocol and manually complete the mapping encoding of all data variables, the above method of the present application can improve the efficiency of industrial network protocol conversion.

[0055] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an industrial network protocol conversion device, etc. The following takes the industrial network protocol conversion device as an example to illustrate this embodiment and the following embodiments.

[0056] Based on this, the present application embodiment provides an industrial network protocol conversion method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the industrial network protocol conversion method of the present application.

[0057] In this embodiment, the industrial network protocol conversion method includes steps S10 to S40:

[0058] Step S10, determining the source protocol type of the source protocol according to the protocol data stream to be converted into a protocol;

[0059] It should be noted that the protocol data stream to be converted may be a data stream corresponding to the industrial equipment to be connected to the target network. The protocol corresponding to the industrial equipment is the source protocol. The source protocol type of the source protocol determined according to the protocol data stream to be converted may be the source protocol type of the source protocol determined according to the five-tuple information in the protocol data stream.

[0060] Step S20, parsing the protocol data stream to obtain a data variable set corresponding to the protocol data stream;

[0061] It should be noted that the parsing of the protocol data stream to obtain the data variable set corresponding to the protocol data stream can be achieved by traversing the protocol data stream through an iterative window, performing field extraction on the data in the traversed protocol data stream, matching in a preset knowledge base based on the extracted fields, obtaining representation information of the extracted fields in the target protocol, traversing the protocol data stream through an iterative window to obtain representation information of each field in the protocol data stream in the target protocol, and constructing a data variable set based on the extracted fields and the representation information.

[0062] Furthermore, in order to accurately determine the representation information of the extracted field in the target protocol, before step S20, the method further includes: obtaining different types of process information;

[0063] Performing knowledge extraction based on the process information to obtain a knowledge extraction result;

[0064] A preset knowledge base is constructed according to the knowledge extraction result.

[0065] It should be noted that the process information may include control system programs, historical databases, configuration interfaces and other software corresponding to the industrial equipment that needs to be converted to a protocol, as well as corresponding document information. This information contains the prior knowledge required for protocol type identification and data variable analysis. The collected information is subjected to knowledge modeling to form an abstract knowledge base of a unified type, namely a preset knowledge base, which mainly includes two parts: variable entities and relationship entities. Among them, the variable entity consists of basic information such as the data variable name, variable type and variable range, while the relationship entity defines the inclusion relationship between various variables.

[0066] For details, please refer to Figure 2 , Figure 2The schematic diagram of knowledge base construction provided for the first embodiment of the industrial network protocol conversion method of this application, the construction of the preset knowledge base can be: for different types of process information, such as production process, electrolysis process, purification process, etc., different knowledge extraction means are used to identify the names and types of object data such as control, monitoring and decision-making links, and establish a preset knowledge base. Specific knowledge extraction means include but are not limited to: using relevant image processing technology to convert the configuration program interface into structured data, using a graph mapping method for the database storing process history data, using a wrapper method for semi-structured documents (such as documents generated based on code comments or HTML-based CHM documents commonly used in the industrial field, etc.), and using knowledge representation learning technology for unstructured data such as logs and operation manuals to generate triple information, so as to realize the construction of the process data information ontology knowledge base transmitted by the network.

[0067] In the specific implementation, through the sequence alignment algorithm, the fixed header and variable data segment of the industrial network protocol (i.e., protocol data stream) are mined through the iterative window, and the field boundary features suitable for the variable-length binary protocol data of the industrial network are constructed to complete the field extraction. Based on this, the format of the extracted variable-length short field is inferred. Finally, for the inferred process data field format, through the reasoning match with the information in the preset knowledge base, the conversion and extraction of common data formats such as character type, floating point type and integer type are performed to separate the number and type of variables contained in the load. Finally, a traversal search is performed in the preset knowledge base, and the variables with the highest matching degree are obtained based on indicators such as cosine similarity, so as to finally obtain the data variable set required for protocol conversion.

[0068] Further, in order to improve the efficiency of protocol conversion, the step S20 may include: parsing the protocol data stream to obtain a parsing result;

[0069] Performing field extraction on the protocol data stream according to the parsing result to obtain a field extraction result;

[0070] Matching the field extraction result with a preset knowledge base to obtain variable information corresponding to the field extraction result;

[0071] A data variable set corresponding to the protocol data stream is determined according to the variable information.

[0072] It should be noted that the parsing of the protocol data stream to obtain the parsing result may be to use an iterative window to mine the fixed header and variable data segment of the protocol data stream to determine the field boundary characteristics. The field extraction of the protocol data stream according to the parsing result to obtain the field extraction result may be to extract the fields in the protocol data stream according to the field boundary characteristics. The matching of the field extraction result with a preset knowledge base to obtain the variable information corresponding to the field extraction result may be to match the field in the field extraction result in the preset knowledge base with the corresponding representation in the target protocol to be converted, that is, the variable information. The determination of the data variable set corresponding to the protocol data stream according to the variable information may be to determine the corresponding representation of the field in the protocol data stream in the target protocol according to the variable information.

[0073] In the specific implementation, please refer to Figure 3 , Figure 3 A schematic diagram of protocol data payload transmission data variable analysis provided in the first embodiment of the industrial network protocol conversion method of the present application; in view of the variable length and binary characteristics of the data of the industrial protocol, the two types of "single global length segment + multiple data segments" and "local length segment + data segment" that are often used in the variable length data segment can be considered respectively. Through the progressive multiple sequence alignment algorithm, the process of using iterative windows to mine the fixed header and variable data segments of the industrial network protocol is added, and finally the field boundary features suitable for the industrial network variable length binary protocol data are constructed to complete the field extraction. The format of the extracted variable length short field is inferred. For the inferred process data field format, through the reasoning match with the information in the preset knowledge base, the conversion and extraction of general data formats such as character type, floating point type and integer type are performed, and the number and type of variables contained in the load are separated. A traversal search is performed in the preset knowledge base, and the variables with the highest matching degree are obtained based on indicators such as cosine similarity, and then a data variable set is obtained, so as to obtain the complete information required for protocol conversion.

[0074] Step S30, determining a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type;

[0075] It should be noted that the data variable mapping rule determined according to the source protocol type, the data variable set and the target protocol type can be defined as a template using the function block network program defined in the IEC 61499 standard, and the source protocol type, the data variable set and the target protocol type obtained in the above steps are used as input information to generate a data variable mapping rule between two protocols (source protocol and target protocol), and output it as a text in XML format. The mapping rule is specifically embodied as the data port connection information in the IEC 61499 function block network program.

[0076] Step S40: generating a protocol conversion program instance based on the data variable mapping rule, and performing industrial network protocol conversion according to the protocol conversion program instance.

[0077] It should be noted that the generation of the protocol conversion program instance based on the data variable mapping rule can be to download the text corresponding to the data variable mapping rule to the industrial gateway or industrial equipment control system that supports the IEC 61499 standard specification, and dynamically generate the corresponding protocol conversion program instance by the internal IEC 61499 operating environment, and finally complete the end-to-end automatic conversion from the source protocol to the target protocol. When the source protocol or the target protocol changes, only the above steps need to be repeated to quickly complete the change, thereby meeting the needs of multi-source heterogeneous industrial network protocol conversion.

[0078] In the specific implementation, please refer to Figure 4 , Figure 4 A schematic diagram of data variable mapping rule generation provided in the first embodiment of the industrial network protocol conversion method of the present application; a function block network containing two function block instances can be constructed based on the language format specified by the IEC 61499 standard, wherein the first function block instance represents the industrial equipment providing the source protocol data, and the second function block instance represents the receiving entity based on the target network protocol, which is usually an edge gateway or other industrial equipment control system. According to the obtained data variable set, the corresponding function block instance sending and receiving ports are created respectively, and the data port connection is automatically created. At the same time, the data port connection object is attributed according to the type and name information. Thus, the IEC 61499 standard function block network program corresponding to the protocol conversion program is completed. The IEC 61499 standard function block network program corresponding to the protocol conversion program is exported to the corresponding XML format text. Among them, the creation command of the function block instance and the communication protocol library configuration is first generated, and then the data port connection object between the two function block instances is created, and finally, the auxiliary event connection object is added to control the initialization and interaction behavior of the function block instance.

[0079] This embodiment determines the source protocol type of the source protocol according to the protocol data stream to be converted; parses the protocol data stream to obtain a data variable set corresponding to the protocol data stream; determines a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type; generates a protocol conversion program instance based on the data variable mapping rule, and performs industrial network protocol conversion according to the protocol conversion program instance. Compared with the existing developer manually calling the source protocol and target protocol interface, manually completing the mapping encoding of all data variables, the above method of this embodiment can improve the efficiency of industrial network protocol conversion.

[0080] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 , the step S10 further includes:

[0081] Step S101: Determine quintuple information corresponding to the protocol data stream to be converted into a protocol;

[0082] It should be noted that the five-tuple information includes the IP addresses of both ends, the port number, and the transport layer protocol.

[0083] Step S102: Identify the source protocol type of the source protocol according to the quintuple information;

[0084] It should be noted that the source protocol type of the source protocol identified according to the quintuple information may be the source protocol type of the source protocol determined according to the transport layer protocol in the quintuple information.

[0085] Step S103: when the source protocol type cannot be identified according to the five-tuple information, grouping the protocol data stream to obtain a timing message;

[0086] It should be noted that industrial Ethernet or industrial Internet protocols based on TCP / IP or UDP protocols and using fixed ports can be directly identified through quintuple information. However, protocol data that uses an unknown port number or is not based on TCP / IP or UDP protocols cannot be directly identified through quintuple information. The grouping of the protocol data stream to obtain timing messages can be to subdivide the protocol data stream to obtain data packets with different behavior modes and different communication stages, and group them into different timing messages.

[0087] Step S104: Determine the source protocol type of the source protocol according to the timing message.

[0088] It should be noted that the source protocol type of the source protocol determined according to the timing message may be inputting the timing message into a preset protocol identification model to obtain the source protocol type output by the preset protocol identification model. The preset protocol identification model may be a model for identifying the source protocol type corresponding to a protocol data stream obtained by pre-training based on industrial network protocol data samples of known protocol types.

[0089] Further, in order to accurately identify the source protocol type of the source protocol, the step S104 may include: performing preliminary feature extraction on the timing message to obtain a feature extraction result;

[0090] Inputting the feature extraction result into the prediction long short-term memory network for data classification prediction to obtain the prediction result output by the prediction long short-term memory network;

[0091] A source protocol type of the source protocol is determined according to the prediction result and the VAE decoder network.

[0092] It should be noted that the preliminary feature extraction of the time series message may be performed by a VAE encoder network in a preset protocol recognition model. The predicted long short-term memory network may be a long short-term memory network (LSTM). The source protocol type of the source protocol determined according to the prediction result and the VAE decoder network may be determined by using the prediction result output by the predicted long short-term memory network as the input of the VAE decoder network for network reconstruction, and finally obtaining the source protocol type of the source protocol output by the VAE decoder network.

[0093] In the specific implementation, please refer to Figure 6 , Figure 6 Schematic diagram of automatic classification of protocol data stream types provided for the second embodiment of the industrial network protocol conversion method of this application; for industrial Ethernet or industrial Internet protocols based on TCP / IP or UDP protocols and using fixed ports, first directly identify them through quintuple information (IP addresses and port numbers at both ends, transport layer protocols). For protocol data that uses unknown port numbers or is not based on TCP / IP or UDP protocols, it is necessary to subdivide the protocol data stream to obtain data packets with different behavior modes and different communication stages, and group them into different time series messages. The time series messages are used as the input of the VAE encoder network for preliminary feature extraction, and the obtained features are input into the LSTM network for classification and classification prediction. On this basis, the prediction results are further used as the input of the VAE decoder network for network reconstruction. The overall network parameters are updated online under the premise of calculating the reconstruction loss. Finally, attention mechanisms are constructed for the various features obtained to capture their key features to update the feature library of protocol data. The neural network obtained in this step will be used for industrial network protocol type identification using periodic transmission behavior patterns. The network first needs to be trained using industrial network protocol data samples of known types.

[0094] This embodiment is suitable for the automatic generation of multi-source heterogeneous industrial network protocol conversion programs, including: based on deep neural networks and rule bases, constructing an industrial network protocol parser that integrates process knowledge, realizing automatic analysis of source protocol and target protocol data, and obtaining protocol type information and transmission data variable information; based on the information obtained by automatic parsing, automatically constructing the mapping logic required for protocol conversion, and realizing one-step conversion from source protocol to target protocol; the obtained mapping logic adopts the automation programming language specification defined by the IEC61499 international standard, and dynamically generates a protocol conversion program by downloading it to an industrial edge gateway equipped with an IEC 61499 standard operating environment. This embodiment can also be implemented using neural network structures including Transformer, CNN, etc., and can also use knowledge base construction methods such as ontology modeling and knowledge graphs to build a preset knowledge base, and use similar similarity indicators such as Euclidean distance and Pearson correlation coefficient for spatial search.

[0095] This embodiment automatically identifies the type of communication protocol used by industrial equipment and the data variables currently transmitted, and automatically constructs the mapping rules of data variables between the two protocols according to the target protocol to be converted. This rule follows the IEC 61499 standard, and can be dynamically parsed and created by the corresponding operating environment, so as to automatically connect the industrial equipment to the target network. Therefore, the overall technical effect of this implementation is to automatically generate and deploy end-to-end industrial network protocol conversion programs, which can integrate the advantages of the existing two industrial network protocol conversion technical solutions, and can adapt to the mutual conversion of multiple industrial network protocols with universal interface compatibility, while also ensuring conversion efficiency and avoiding the two conversion steps of the middleware solution. At the same time, this implementation can completely identify the protocol type and mine specific data variable information from unknown network data traffic by integrating the prior knowledge related to the industrial automation system as a guide.

[0096] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the industrial network protocol conversion method of the present application. More forms of simple transformations based on this technical concept are all within the scope of protection of the present application.

[0097] The present application also provides an industrial network protocol conversion device, please refer to FIG. 7, the industrial network protocol conversion device includes:

[0098] The protocol type identification module 10 is used to determine the source protocol type of the source protocol according to the protocol data stream to be converted into a protocol;

[0099] A parsing module 20, configured to parse the protocol data stream to obtain a data variable set corresponding to the protocol data stream;

[0100] A data variable mapping rule determination module 30, configured to determine a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type;

[0101] The protocol conversion module 40 is used to generate a protocol conversion program instance based on the data variable mapping rule, and perform industrial network protocol conversion according to the protocol conversion program instance.

[0102] This embodiment determines the source protocol type of the source protocol according to the protocol data stream to be converted; parses the protocol data stream to obtain a data variable set corresponding to the protocol data stream; determines a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type; generates a protocol conversion program instance based on the data variable mapping rule, and performs industrial network protocol conversion according to the protocol conversion program instance. Compared with the existing developer manually calling the source protocol and target protocol interface, manually completing the mapping encoding of all data variables, the above method of this embodiment can improve the efficiency of industrial network protocol conversion.

[0103] The industrial network protocol conversion device provided by the present application adopts the industrial network protocol conversion method in the above embodiment, which can solve the technical problem that the existing industrial network protocol conversion relies on manually developed protocol conversion programs, resulting in low protocol conversion efficiency. Compared with the prior art, the beneficial effects of the industrial network protocol conversion device provided by the present application are the same as the beneficial effects of the industrial network protocol conversion method provided by the above embodiment, and the other technical features in the industrial network protocol conversion device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0104] The present application provides an industrial network protocol conversion device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the industrial network protocol conversion method in the above-mentioned embodiment one.

[0105] Reference below Figure 8, which shows a schematic diagram of the structure of an industrial network protocol conversion device suitable for implementing the embodiment of the present application. The industrial network protocol conversion device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The industrial network protocol conversion device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0106] like Figure 8 As shown, the industrial network protocol conversion device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Onl y Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the industrial network protocol conversion device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the industrial network protocol conversion device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an industrial network protocol conversion device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0107] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0108] The industrial network protocol conversion device provided by the present application adopts the industrial network protocol conversion method in the above embodiment, which can solve the technical problem that the existing industrial network protocol conversion relies on manually developed protocol conversion programs, resulting in low protocol conversion efficiency. Compared with the prior art, the beneficial effects of the industrial network protocol conversion device provided by the present application are the same as the beneficial effects of the industrial network protocol conversion method provided by the above embodiment, and the other technical features in the industrial network protocol conversion device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0109] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

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

[0111] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the industrial network protocol conversion method in the above-mentioned embodiment.

[0112] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0113] The above-mentioned computer-readable storage medium may be included in the industrial network protocol conversion device; or may exist independently without being assembled into the industrial network protocol conversion device.

[0114] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the industrial network protocol conversion device, the industrial network protocol conversion device executes the industrial network protocol conversion method.

[0115] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0116] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0117] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0118] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned industrial network protocol conversion method, and can solve the technical problem that the existing industrial network protocol conversion relies on manually developed protocol conversion programs, resulting in low protocol conversion efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the industrial network protocol conversion method provided by the above-mentioned embodiment, and will not be repeated here.

[0119] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned industrial network protocol conversion method when executed by a processor.

[0120] The computer program product provided by the present application can solve the technical problem that the existing industrial network protocol conversion relies on manually developed protocol conversion programs, resulting in low protocol conversion efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the industrial network protocol conversion method provided by the above embodiment, which will not be repeated here.

[0121] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An industrial network protocol conversion method, characterized in that: The industrial network protocol conversion method comprises the following steps: Determine the source protocol type of the source protocol according to the protocol data stream to be converted into a protocol; Parsing the protocol data stream to obtain a data variable set corresponding to the protocol data stream; Determine a data variable mapping rule according to the source protocol type, the data variable set, and the target protocol type; A protocol conversion program instance is generated based on the data variable mapping rule, and industrial network protocol conversion is performed according to the protocol conversion program instance.

2. The industrial network protocol conversion method according to claim 1, characterized in that: The step of determining the source protocol type of the source protocol according to the protocol data stream to be converted to a protocol comprises: Determine the five-tuple information corresponding to the protocol data stream to be converted; Identify a source protocol type of a source protocol according to the quintuple information; In the case where the source protocol type cannot be identified according to the quintuple information, grouping the protocol data stream to obtain a timing message; A source protocol type of the source protocol is determined according to the timing message.

3. The industrial network protocol conversion method according to claim 2, characterized in that: The step of determining the source protocol type of the source protocol according to the timing message comprises: Performing preliminary feature extraction on the time series message to obtain a feature extraction result; Inputting the feature extraction result into the prediction long short-term memory network for data classification prediction to obtain the prediction result output by the prediction long short-term memory network; A source protocol type of the source protocol is determined according to the prediction result and the VAE decoder network.

4. The industrial network protocol conversion method according to claim 1, characterized in that: The step of parsing the protocol data stream to obtain a data variable set corresponding to the protocol data stream includes: Parsing the protocol data stream to obtain a parsing result; Performing field extraction on the protocol data stream according to the parsing result to obtain a field extraction result; Matching the field extraction result with a preset knowledge base to obtain variable information corresponding to the field extraction result; A data variable set corresponding to the protocol data stream is determined according to the variable information.

5. The industrial network protocol conversion method according to claim 4, characterized in that: Before the step of determining the source protocol type of the source protocol according to the protocol data stream to be converted, the method further includes: Obtain different types of process information; Performing knowledge extraction based on the process information to obtain a knowledge extraction result; A preset knowledge base is constructed according to the knowledge extraction result.

6. The industrial network protocol conversion method according to any one of claims 1 to 5, characterized in that: The step of determining the data variable mapping rule according to the source protocol type, the data variable set and the target protocol type comprises: Determine function block network program templates based on target industry standards; A data variable mapping rule is determined according to the function block network program template, the source protocol type, the data variable set and the target protocol type.

7. An industrial network protocol conversion device, characterized in that: The industrial network protocol conversion device comprises: A protocol type identification module, used to determine the source protocol type of the source protocol according to the protocol data stream to be converted into a protocol; A parsing module, used for parsing the protocol data stream to obtain a data variable set corresponding to the protocol data stream; A data variable mapping rule determination module, used to determine a data variable mapping rule according to the source protocol type, the data variable set and the target protocol type; The protocol conversion module is used to generate a protocol conversion program instance based on the data variable mapping rule, and perform industrial network protocol conversion according to the protocol conversion program instance.

8. An industrial network protocol conversion device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the industrial network protocol conversion method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the industrial network protocol conversion method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the industrial network protocol conversion method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Equipment access method and device and Internet of Things system

    CN119652982A

  • Protocol generation method and device, electronic equipment and storage medium

    CN119676319A

  • Industrial computer multi-protocol adaptive control system based on edge computing

    CN120201104A

  • Optical network information security processing system and method, electronic equipment and storage medium

    CN120614406A