CN115086443B - Communication protocol conversion method and system - Google Patents
Communication protocol conversion method and system Download PDFInfo
- Publication number
- CN115086443B CN115086443B CN202210597461.6A CN202210597461A CN115086443B CN 115086443 B CN115086443 B CN 115086443B CN 202210597461 A CN202210597461 A CN 202210597461A CN 115086443 B CN115086443 B CN 115086443B
- Authority
- CN
- China
- Prior art keywords
- protocol
- data
- control end
- equipment
- communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 130
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 91
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000004458 analytical method Methods 0.000 claims abstract description 69
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 9
- 230000003993 interaction Effects 0.000 claims description 4
- 230000001276 controlling effect Effects 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000012512 characterization method Methods 0.000 description 2
- 208000013407 communication difficulty Diseases 0.000 description 2
- 208000007345 glycogen storage disease Diseases 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000003340 mental effect Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a communication protocol conversion method and a system, comprising the following steps: when first control end data sent by a control end are received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs, a plurality of corresponding protocol analysis data are obtained, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to preset rules, and then the integrated data are respectively transmitted to the corresponding bottom layer equipment; when receiving the device data sent by the bottom layer device, transmitting second control end data obtained by analyzing the device data to the control end; each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in a protocol library. The invention constructs the protocol analysis program by utilizing the first protocol characteristic data, which is convenient for the protocol analysis program to update in real time along with the adjustment of the first protocol characteristic data in the protocol library, thereby improving the whole communication protocol conversion efficiency and saving the hardware cost.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for converting a communication protocol.
Background
With the development of economy and the increasing level of living of residents, the mental consumption demands of people are expanding, and therefore, in order to meet the diversified demands of people on equipment price, functions, appearance and the like, a plurality of electric automation devices obtained by combining equipment of various brands and various models are appeared on the market. However, different brands of devices currently have different communication modes and communication protocol requirements, and a programmable logic controller (Programmable Logic Controller, PLC) for controlling the devices can only support one to two communication protocols, such as the EtherNet communication protocol of siemens PLC, but not the EtherNet/IP communication protocol of rocweil PLC, the valve island of DeviceNET can only be controlled with the PLC of ohmmeter, and so on.
When a plurality of devices with different communication protocol requirements exist in the device, a plurality of corresponding PLCs are required to be equipped, and device control programs of different PLCs are written, so that the device can normally operate, and further the hardware cost and the software development operation and maintenance cost are high. Therefore, simplifying the communication between the control terminal and the different devices is the current research focus. At present, the configuration of a third party protocol conversion module in the PLC is one of the common technical means for simplifying the communication between a control end and different devices, but by adopting the technical means, the communication between the PLC and the devices can be realized by configuring corresponding device information in third party software, the problems of complex configuration, high debugging difficulty, high maintenance cost and the like exist, in addition, the method can only convert two protocols, and a plurality of protocol conversion modules are needed to be purchased under various protocol scenes, so the cost is high.
Disclosure of Invention
The invention provides a communication protocol conversion method and a system, which construct a protocol analysis program by using first protocol characteristic data stored in a protocol library, are convenient for the protocol analysis program to update in real time according to the internal data of the protocol library, and process the communication conversion between a control end and bottom equipment through the protocol analysis program, thereby simplifying the communication flow and further improving the overall communication protocol conversion efficiency.
In order to solve the above technical problems, an embodiment of the present invention provides a method for converting a communication protocol, including:
when first control end data sent by a control end are received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs, a plurality of protocol analysis data corresponding to the first control end data are obtained, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to preset rules, and then the integrated data are respectively transmitted to the corresponding bottom layer equipment;
when receiving the device data sent by the bottom layer device, analyzing the device data to obtain corresponding second control end data, and transmitting the second control end data to the control end;
each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in a protocol library.
By implementing the embodiment of the application, the corresponding protocol analysis program is constructed by using the first protocol characteristic data stored in the protocol library, and when the first protocol characteristic data in the protocol library is adjusted, the protocol analysis program can be updated in real time, so that the processing efficiency of the protocol analysis program on the data of the control end is improved, and the overall communication protocol conversion efficiency is further improved. In addition, through data transmission and processing between hardware and an automatically updated protocol analysis program, the control end data is converted into protocol analysis data suitable for each bottom layer device format, the device data sent by the bottom layer device is analyzed to obtain second control end data suitable for the control end format, and synchronous communication between the control end and different bottom layer devices is realized, so that the whole communication protocol conversion flow is simplified, the subsequent debugging and maintenance difficulty is further reduced, and meanwhile, the hardware cost is saved.
As a preferred solution, the communication protocol conversion method further includes:
monitoring a protocol conversion state and feeding the protocol conversion state back to a user side in real time;
receiving second protocol characteristic data transmitted by the user side and first equipment description files corresponding to the bottom equipment, and updating the protocol analysis program according to the second protocol characteristic data;
and converting each first equipment description file into a second equipment description file with the same format, and analyzing each second equipment description file to obtain equipment communication standard requirements corresponding to each bottom layer equipment.
By implementing the preferred scheme of the embodiment of the application, the protocol conversion state is fed back to the user side in real time, so that the communication state is monitored in real time, and the user management is facilitated. Meanwhile, according to the actual application requirements, the protocol characteristic data in the protocol library can be adjusted through the user side, so that the updated protocol analysis program can output protocol analysis data in a format suitable for the bottom equipment with the newly added communication protocol requirements, and the practicability of the protocol analysis program is further improved. In addition, the first device description files corresponding to different bottom layer devices are converted into second device description files with uniform formats, so that uniform control is facilitated, and the communication difficulty between the control end and the bottom layer devices is further reduced.
As a preferred scheme, the protocol analysis program is constructed specifically as follows:
according to a plurality of communication protocols, obtaining a plurality of corresponding first protocol characteristic data, and storing all the first protocol characteristic data into the protocol library;
constructing a plurality of protocol analysis programs according to the first protocol characteristic data;
wherein one of the communication protocols corresponds to one of the first protocol characteristic data.
According to the implementation of the preferred scheme of the embodiment of the application, the first protocol characteristic data corresponding to a plurality of different communication protocols are stored in the protocol library according to actual requirements, so that the constructed protocol analysis program can convert the control end data into protocol analysis data corresponding to different communication protocols.
As a preferred solution, the communication protocol conversion method further includes:
converting all hardware interfaces corresponding to the communication protocols into universal interfaces through a plurality of first protocol chips; wherein one of the first protocol chips corresponds to one of the communication protocols;
and converting the control interface of the control end into the universal interface through the second protocol chip.
By implementing the preferred scheme of the embodiment of the application, the hardware interfaces corresponding to all communication protocols and the control interfaces of the control end are unified through the special protocol chip, so that the problem of multiple interfaces in the process of realizing conversion of various communication protocols is avoided, the communication between the control end and different devices is further simplified, and the production cost is reduced.
As a preferred solution, when receiving first control end data sent by a control end, format conversion is performed on the first control end data by using a plurality of protocol analysis programs, so as to obtain a plurality of protocol analysis data corresponding to the first control end data, and according to a preset rule, each protocol analysis data and a device communication standard requirement corresponding to each bottom device are respectively integrated, and then the integrated data are respectively transmitted to the corresponding bottom device, specifically:
when the first control end data sent by the control end is received, analyzing the first control end data according to a preset analysis algorithm to determine a control starting instruction;
according to the control starting instruction, controlling and starting each protocol analysis program to perform format conversion on the control end data to obtain a plurality of protocol analysis data corresponding to the first control end data;
integrating the protocol analysis data and the equipment communication standard requirements corresponding to the bottom equipment according to the protocol type corresponding to the protocol analysis data, and transmitting the integrated data to the corresponding bottom equipment;
wherein one of the protocol resolution data corresponds to one of the protocol types.
By implementing the preferred scheme of the embodiment of the application, the control starting instruction for controlling and starting all protocol analysis programs is determined through the analysis processing of the control end data so as to control and coordinate the synchronous operation of all protocol analysis programs and assist in realizing synchronous communication between the control end and different bottom-layer devices. In addition, the corresponding protocol analysis data and equipment communication standard requirements are integrated based on the protocol types, so that error and leakage in the data transmission process are avoided, and the overall communication protocol conversion efficiency is further improved.
In order to solve the same technical problem, the embodiment of the present invention further provides a communication protocol conversion system, including:
the first conversion module is used for carrying out format conversion on the first control end data by utilizing a plurality of protocol analysis programs when the first control end data sent by the control end is received, obtaining a plurality of protocol analysis data corresponding to the first control end data, respectively integrating the protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment according to a preset rule, and then respectively transmitting the integrated data to the corresponding bottom layer equipment; each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in a protocol library;
and the second conversion module is used for analyzing the equipment data to obtain corresponding second control end data when the equipment data sent by the bottom layer equipment are received, and transmitting the second control end data to the control end.
Preferably, the communication protocol conversion system further includes:
the interaction module is used for monitoring the protocol conversion state and feeding the protocol conversion state back to the user side in real time; receiving second protocol characteristic data transmitted by the user side and first equipment description files corresponding to the bottom equipment, and updating the protocol analysis program according to the second protocol characteristic data;
the data acquisition module is used for converting each first equipment description file into a second equipment description file with the same format, and analyzing each second equipment description file to obtain equipment communication standard requirements corresponding to each bottom layer equipment.
Preferably, the communication protocol conversion system further includes:
the program construction module is used for obtaining a plurality of corresponding first protocol characteristic data according to a plurality of communication protocols and storing all the first protocol characteristic data into the protocol library; constructing a plurality of protocol analysis programs according to the first protocol characteristic data; wherein one of the communication protocols corresponds to one of the first protocol characteristic data.
Preferably, the communication protocol conversion system further includes:
the interface unifying module is used for converting all hardware interfaces corresponding to the communication protocols into universal interfaces through a plurality of first protocol chips; wherein one of the first protocol chips corresponds to one of the communication protocols; and converting the control interface of the control end into the universal interface through the second protocol chip.
As a preferred solution, the first conversion module specifically includes:
the data conversion unit is used for analyzing the first control end data according to a preset analysis algorithm when the first control end data sent by the control end is received, so as to determine a control starting instruction, and controlling and starting each protocol analysis program to perform format conversion on the control end data according to the control starting instruction, so as to obtain a plurality of protocol analysis data corresponding to the first control end data;
the integrated transmission unit is used for integrating the protocol analysis data and the equipment communication standard requirements corresponding to the bottom equipment according to the protocol type corresponding to the protocol analysis data, and then transmitting the integrated data to the corresponding bottom equipment; wherein one of the protocol resolution data corresponds to one of the protocol types.
Drawings
Fig. 1: a flow chart of a communication protocol conversion method provided in the first embodiment of the present invention;
fig. 2: a schematic structural diagram of a communication protocol conversion system according to a first embodiment of the present invention is provided;
fig. 3: a first conversion module of a communication protocol conversion system according to a first embodiment of the present invention is shown in the schematic structural diagram.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Embodiment one:
referring to fig. 1, a flow chart of a communication protocol conversion method provided by an embodiment of the present invention is shown, and the method includes steps S1 to S2, it should be noted that the sequence of steps S1 and S2 is not necessarily limited thereto, and the sequence may be changed or performed simultaneously, which is not particularly limited herein, and each step is as follows depending on the specific application environment:
step S1, when first control end data sent by a control end are received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs, a plurality of protocol analysis data corresponding to the first control end data are obtained, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to preset rules, and then the integrated data are respectively transmitted to the corresponding bottom layer equipment; each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in a protocol library.
As a preferred solution of this embodiment, the construction flow of the protocol parsing program includes steps S11 to S12, where each step is specifically as follows:
step S11, according to a plurality of communication protocols, obtaining a plurality of corresponding first protocol characteristic data, and storing all the first protocol characteristic data into the protocol library; wherein one of the communication protocols corresponds to one of the first protocol characteristic data.
Step S12, constructing a plurality of protocol analysis programs according to the first protocol characteristic data.
There are many different brands of underlying devices on the market, and the communication protocols supported by the different brands of underlying devices are usually different, and each protocol has a unique code, so that devices using different communication protocols cannot communicate with each other.
Therefore, in this embodiment, in order to achieve effective communication between different underlying devices and the control end, various communication protocols used by the main brands are collected according to actual requirements. The communication protocol includes, but is not limited to, the following, and may be set according to a specific application environment: the Profinet and Profibus protocols of siemens, the ethernet ip protocol of rocweier (Allen-Bradley, AB), the DeviceNET protocol of ohmmeter, the mitsubishi CCLINK protocol. And then storing the first protocol characteristic data corresponding to a plurality of different communication protocols into a protocol library, determining the communication protocol corresponding to the first control end data, selecting the first protocol characteristic data corresponding to the communication protocol from the protocol library as third protocol characteristic data, and constructing a plurality of protocol analysis programs according to the rest of the first protocol characteristic data and the third protocol characteristic data, so that the protocol analysis programs can accurately represent the conversion relation between the control end data and the first protocol characteristic data corresponding to other communication protocols. In addition, when the first protocol feature data in the protocol library is adjusted, the protocol analysis program can be updated in real time, so that the characterization accuracy of the conversion relationship between the third protocol feature data and the rest of the first protocol feature data by the protocol analysis program is improved, and the overall communication protocol conversion efficiency is further improved.
As a preferable solution of this embodiment, the step S1 includes steps S13 to S15, and each step is specifically as follows:
and step S13, when the first control end data sent by the control end is received, analyzing the first control end data according to a preset analysis algorithm to determine a control start instruction.
And step S14, controlling and starting each protocol analysis program to perform format conversion on the control end data according to the control starting instruction, and obtaining a plurality of protocol analysis data corresponding to the first control end data.
As an example, a master controller is provided for receiving and analyzing the data of the control end, and controlling the contents of calling the coordination interface, starting the protocol analysis program, and the like, so that all the protocol analysis programs can run synchronously, and synchronous communication between the control end and different bottom devices is assisted.
Step S15, according to the protocol type corresponding to each protocol analysis data, integrating each protocol analysis data and the equipment communication standard requirement corresponding to each bottom layer equipment, and transmitting the integrated data to the corresponding bottom layer equipment.
In this embodiment, the corresponding protocol analysis data and the device communication standard requirements are integrated based on the protocol type, so that error leakage in the data transmission process is avoided, and the overall communication protocol conversion efficiency is further improved.
And S2, when the device data sent by the bottom layer device are received, analyzing the device data to obtain corresponding second control end data, and transmitting the second control end data to the control end.
In this embodiment, since the device description file GSD is defined by the device manufacturer, the file formats of GSDs of different device manufacturers are generally different. In order to transmit data sent by different bottom-layer devices to the control end, format conversion is carried out on the first device description file sent by each bottom-layer device, so as to obtain a second device description file suitable for the format of the control end. In addition, by combining the data transmission and processing flows described in the step S1 and the step S2, the control end data is converted into protocol analysis data suitable for the formats of all the bottom layer devices, and the first device description files sent by different bottom layer devices are converted into second device description files suitable for the formats of the control end, so that synchronous communication between the control end and different bottom layer devices is realized together, the whole communication protocol conversion flow is simplified, and further the subsequent debugging and maintenance difficulty is reduced.
As a preferred solution of the present embodiment, the communication protocol conversion method further includes steps S3 to S5, and it should be noted that the sequence of steps S3 to S5 is not limited to this, and the sequence may be exchanged, or the individual steps may be performed simultaneously, which is not limited herein, and each step is specifically as follows depending on the specific application environment:
step S3, monitoring a protocol conversion state and feeding the protocol conversion state back to a user side in real time; and receiving second protocol characteristic data transmitted by the user side and first equipment description files corresponding to the bottom equipment, and updating the protocol analysis program according to the second protocol characteristic data.
In this embodiment, the protocol conversion state is monitored in real time, and the monitoring information is fed back to the user side in real time, so that the control and management of the user are facilitated. As an example, when the user receives the alarm information with abnormal state, the failure cause and the communication state are analyzed, so as to realize the real-time monitoring of the conversion state of the multiple communication protocols. Meanwhile, new protocol characteristic data and equipment description files can be input through the user side according to actual application requirements, and the protocol characteristic data and the equipment description files in the protocol library are adjusted (adjustment comprises operations such as addition, reduction or modification), so that the characterization range of a protocol analysis program is further enlarged, the analysis accuracy of the protocol analysis program is ensured, and the practicability of the communication protocol conversion method is further improved. The user end can be a remote device of networking or a local device.
And S4, converting each first equipment description file into a second equipment description file with the same format, and analyzing each second equipment description file to obtain equipment communication standard requirements corresponding to each bottom layer equipment.
As an example, a device parser is provided to convert the first device description files corresponding to different bottom devices into second device description files with uniform formats, so as to facilitate uniform control and further reduce the communication difficulty between the control end and the bottom devices.
S5, converting all hardware interfaces corresponding to the communication protocols into universal interfaces through a plurality of first protocol chips; converting a control interface of a control end into the universal interface through a second protocol chip; wherein one of the first protocol chips corresponds to one of the communication protocols.
In this embodiment, dedicated chips of different communication protocols are integrated on the motherboard of the industrial personal computer, so that the hardware interfaces corresponding to the different communication protocols and the control interfaces of the control end are converted into a unified universal interface, the problem of multiple interfaces in the process of implementing conversion of multiple communication protocols is avoided, communication between the control end and different devices is further simplified, and production cost is reduced. The universal interface may be a common network port, or may be any other type of interface customized according to the requirement, and may be set according to a specific application environment, which is not limited herein.
Accordingly, referring to fig. 2, a schematic structural diagram of a communication protocol conversion system according to an embodiment of the present invention is provided, where the communication protocol conversion system includes a first conversion module 1 and a second conversion module 2, and each module is specifically as follows:
the first conversion module 1 is configured to, when receiving first control end data sent by a control end, perform format conversion on the first control end data by using a plurality of protocol analysis programs, obtain a plurality of protocol analysis data corresponding to the first control end data, integrate the protocol analysis data and device communication standard requirements corresponding to each bottom device according to a preset rule, and then transmit the integrated data to the corresponding bottom device; each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in a protocol library;
and the second conversion module 2 is used for analyzing the equipment data to obtain corresponding second control end data when the equipment data sent by the bottom layer equipment are received, and transmitting the second control end data to the control end.
As a preferred solution of this embodiment, please refer to fig. 2, the communication protocol conversion system further includes an interaction module 3 and a data acquisition module 4, where each module is specifically as follows:
the interaction module 3 is used for monitoring the protocol conversion state and feeding the protocol conversion state back to the user side in real time; receiving second protocol characteristic data transmitted by the user side and first equipment description files corresponding to the bottom equipment, and updating the protocol analysis program according to the second protocol characteristic data;
the data acquisition module 4 is configured to convert each of the first device description files into a second device description file with the same format, and parse each of the second device description files to obtain a device communication standard requirement corresponding to each of the bottom devices.
As a preferred solution of this embodiment, please refer to fig. 2, the communication protocol conversion system further includes a program building module 5, which specifically includes:
the program construction module 5 is configured to obtain a plurality of corresponding first protocol feature data according to a plurality of communication protocols, and store all the first protocol feature data into the protocol library; constructing a plurality of protocol analysis programs according to the first protocol characteristic data; wherein one of the communication protocols corresponds to one of the first protocol characteristic data.
As a preferred solution of this embodiment, please refer to fig. 2, the communication protocol conversion system further includes an interface unifying module 6, which specifically includes:
the interface unifying module 6 is used for converting all hardware interfaces corresponding to the communication protocols into universal interfaces through a plurality of first protocol chips; wherein one of the first protocol chips corresponds to one of the communication protocols; and converting the control interface of the control end into the universal interface through the second protocol chip.
As a preferred solution of the present embodiment, referring to fig. 3, the first conversion module 1 specifically includes a data conversion unit 11 and an integrated transmission unit 12, where each unit is specifically as follows:
the data conversion unit 11 is configured to parse the first control end data according to a preset parsing algorithm when the first control end data sent by the control end is received, so as to determine a control start instruction, and control to start each protocol parsing program to perform format conversion on the control end data according to the control start instruction, so as to obtain a plurality of protocol parsing data corresponding to the first control end data;
an integration transmission unit 12, configured to integrate each protocol analysis data with a device communication standard requirement corresponding to each bottom device according to a protocol type corresponding to each protocol analysis data, and transmit the integrated data to the corresponding bottom device; wherein one of the protocol resolution data corresponds to one of the protocol types.
It will be clear to those skilled in the art that, for convenience and brevity of description, reference may be made to the corresponding process in the foregoing method embodiment for the specific working process of the above-described system, which is not described herein again.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the invention provides a communication protocol conversion method and a system, which construct a protocol analysis program by using first protocol characteristic data stored in a protocol library, and when the first protocol characteristic data in the protocol library is regulated, the protocol analysis program can be updated in real time so as to improve the accuracy of the protocol analysis program in converting a data format of a control end, thereby improving the overall communication protocol conversion efficiency. In addition, by combining data transmission and processing between hardware and an automatically updated protocol analysis program, the control end data can be converted into protocol analysis data meeting the format requirements of each bottom layer device, the device data sent by the bottom layer device can be analyzed to obtain second control end data suitable for the control end format, and synchronous communication between the control end and different bottom layer devices is realized, so that the whole communication protocol conversion flow is simplified, and the subsequent debugging and maintenance difficulty and cost are further reduced.
Further, an interactive function is developed, real-time monitoring of the communication state is achieved, control and management of a user are facilitated, and effective operation of communication protocol conversion work is guaranteed. Meanwhile, the control interfaces corresponding to the control ends and the hardware interfaces corresponding to the communication protocols are unified through the special protocol chip, so that the interface types are reduced.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.
Claims (8)
1. A method for converting a communication protocol, comprising:
when first control end data sent by a control end are received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs, a plurality of protocol analysis data corresponding to the first control end data are obtained, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to preset rules, and then the integrated data are respectively transmitted to the corresponding bottom layer equipment;
when receiving the device data sent by the bottom layer device, analyzing the device data to obtain corresponding second control end data, and transmitting the second control end data to the control end;
each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in a protocol library;
when the protocol conversion is carried out, the method also comprises the steps of monitoring the protocol conversion state and feeding back the protocol conversion state to the user side in real time; receiving second protocol characteristic data transmitted by the user side and first equipment description files corresponding to the bottom equipment, and updating the protocol analysis program according to the second protocol characteristic data; and converting each first equipment description file into a second equipment description file with the same format, and analyzing each second equipment description file to obtain equipment communication standard requirements corresponding to each bottom layer equipment.
2. The method for converting a communication protocol according to claim 1, wherein the protocol analysis program is constructed by:
according to a plurality of communication protocols, obtaining a plurality of corresponding first protocol characteristic data, and storing all the first protocol characteristic data into the protocol library;
constructing a plurality of protocol analysis programs according to the first protocol characteristic data;
wherein one of the communication protocols corresponds to one of the first protocol characteristic data.
3. The method of claim 2, further comprising:
converting all hardware interfaces corresponding to the communication protocols into universal interfaces through a plurality of first protocol chips; wherein one of the first protocol chips corresponds to one of the communication protocols;
and converting the control interface of the control end into the universal interface through the second protocol chip.
4. The method for converting communication protocol according to claim 1, wherein when receiving first control end data sent by a control end, format converting the first control end data by using a plurality of protocol analysis programs to obtain a plurality of protocol analysis data corresponding to the first control end data, respectively integrating each protocol analysis data and a device communication standard requirement corresponding to each bottom device according to a preset rule, and then respectively transmitting the integrated data to the corresponding bottom device, wherein the method comprises the steps of:
when the first control end data sent by the control end is received, analyzing the first control end data according to a preset analysis algorithm to determine a control starting instruction;
according to the control starting instruction, controlling and starting each protocol analysis program to perform format conversion on the control end data to obtain a plurality of protocol analysis data corresponding to the first control end data;
integrating the protocol analysis data and the equipment communication standard requirements corresponding to the bottom equipment according to the protocol type corresponding to the protocol analysis data, and transmitting the integrated data to the corresponding bottom equipment;
wherein one of the protocol resolution data corresponds to one of the protocol types.
5. A communication protocol conversion system, comprising:
the first conversion module is used for carrying out format conversion on the first control end data by utilizing a plurality of protocol analysis programs when the first control end data sent by the control end is received, obtaining a plurality of protocol analysis data corresponding to the first control end data, respectively integrating the protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment according to a preset rule, and then respectively transmitting the integrated data to the corresponding bottom layer equipment; each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in a protocol library; the second conversion module is used for analyzing the equipment data to obtain corresponding second control end data when the equipment data sent by the bottom layer equipment are received, and transmitting the second control end data to the control end;
the interaction module is used for monitoring the protocol conversion state and feeding the protocol conversion state back to the user side in real time; receiving second protocol characteristic data transmitted by the user side and first equipment description files corresponding to the bottom equipment, and updating the protocol analysis program according to the second protocol characteristic data;
the data acquisition module is used for converting each first equipment description file into a second equipment description file with the same format, and analyzing each second equipment description file to obtain equipment communication standard requirements corresponding to each bottom layer equipment.
6. The communication protocol conversion system according to claim 5, further comprising:
the program construction module is used for obtaining a plurality of corresponding first protocol characteristic data according to a plurality of communication protocols and storing all the first protocol characteristic data into the protocol library; constructing a plurality of protocol analysis programs according to the first protocol characteristic data; wherein one of the communication protocols corresponds to one of the first protocol characteristic data.
7. The communication protocol conversion system according to claim 6, further comprising:
the interface unifying module is used for converting all hardware interfaces corresponding to the communication protocols into universal interfaces through a plurality of first protocol chips; wherein one of the first protocol chips corresponds to one of the communication protocols; and converting the control interface of the control end into the universal interface through the second protocol chip.
8. The communication protocol conversion system according to claim 5, wherein the first conversion module specifically comprises:
the data conversion unit is used for analyzing the first control end data according to a preset analysis algorithm when the first control end data sent by the control end is received, so as to determine a control starting instruction, and controlling and starting each protocol analysis program to perform format conversion on the control end data according to the control starting instruction, so as to obtain a plurality of protocol analysis data corresponding to the first control end data;
the integrated transmission unit is used for integrating the protocol analysis data and the equipment communication standard requirements corresponding to the bottom equipment according to the protocol type corresponding to the protocol analysis data, and transmitting the integrated data to the corresponding bottom equipment; wherein one of the protocol resolution data corresponds to one of the protocol types.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210597461.6A CN115086443B (en) | 2022-05-27 | 2022-05-27 | Communication protocol conversion method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210597461.6A CN115086443B (en) | 2022-05-27 | 2022-05-27 | Communication protocol conversion method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115086443A CN115086443A (en) | 2022-09-20 |
CN115086443B true CN115086443B (en) | 2024-03-22 |
Family
ID=83250147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210597461.6A Active CN115086443B (en) | 2022-05-27 | 2022-05-27 | Communication protocol conversion method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115086443B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR970024753A (en) * | 1995-10-06 | 1997-05-30 | 한승희 | How to convert text-based PC communication service into hypermedia PC communication service |
CN102045334A (en) * | 2010-09-27 | 2011-05-04 | 北京泰豪智能工程有限公司 | Protocol conversion method and device |
GB201113796D0 (en) * | 2010-09-13 | 2011-09-21 | Fisher Rosemount Systems Inc | Methods and apparatus to display process control information |
CN104038414A (en) * | 2013-08-21 | 2014-09-10 | 江南大学 | Multiprotocol intelligent household gateway apparatus and system thereof |
CN104753958A (en) * | 2015-04-17 | 2015-07-01 | 深圳市英威腾电气股份有限公司 | Card and method for converting communication protocols |
CN106130853A (en) * | 2016-08-31 | 2016-11-16 | 深圳Tcl智能家庭科技有限公司 | A kind of intarconnected cotrol method of intelligent home device and system thereof |
CN108173723A (en) * | 2017-12-26 | 2018-06-15 | 深圳市英威腾电气股份有限公司 | A kind of Profinet communications protocol transition card and conversion method |
CN109462613A (en) * | 2018-12-27 | 2019-03-12 | 郑州春泉节能股份有限公司 | A kind of communications protocol compatibility method |
CN109787981A (en) * | 2019-01-23 | 2019-05-21 | 杰克缝纫机股份有限公司 | Protocol conversion system, method, apparatus, equipment and storage medium |
CN111163147A (en) * | 2019-12-24 | 2020-05-15 | 深圳供电局有限公司 | Gateway device, multi-protocol data transmission method and computer device |
CN111447227A (en) * | 2020-03-27 | 2020-07-24 | 四川虹美智能科技有限公司 | Protocol analysis method and device of Internet of things equipment |
CN112405107A (en) * | 2020-11-26 | 2021-02-26 | 北京航空航天大学 | Numerical control machine tool communication heterogeneous feeding system and debugging method thereof |
WO2021203623A1 (en) * | 2020-04-07 | 2021-10-14 | 北京邮电大学 | Internet-of-things resource access system and resource access method |
CN114531476A (en) * | 2021-12-30 | 2022-05-24 | 爱普(福建)科技有限公司 | Method and system for analyzing industrial protocol and converting data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187939A (en) * | 2020-09-30 | 2021-01-05 | 深圳市朗强科技有限公司 | Method and equipment for sending and receiving control instruction in long-distance transmission scene |
-
2022
- 2022-05-27 CN CN202210597461.6A patent/CN115086443B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR970024753A (en) * | 1995-10-06 | 1997-05-30 | 한승희 | How to convert text-based PC communication service into hypermedia PC communication service |
GB201113796D0 (en) * | 2010-09-13 | 2011-09-21 | Fisher Rosemount Systems Inc | Methods and apparatus to display process control information |
CN102045334A (en) * | 2010-09-27 | 2011-05-04 | 北京泰豪智能工程有限公司 | Protocol conversion method and device |
CN104038414A (en) * | 2013-08-21 | 2014-09-10 | 江南大学 | Multiprotocol intelligent household gateway apparatus and system thereof |
CN104753958A (en) * | 2015-04-17 | 2015-07-01 | 深圳市英威腾电气股份有限公司 | Card and method for converting communication protocols |
CN106130853A (en) * | 2016-08-31 | 2016-11-16 | 深圳Tcl智能家庭科技有限公司 | A kind of intarconnected cotrol method of intelligent home device and system thereof |
CN108173723A (en) * | 2017-12-26 | 2018-06-15 | 深圳市英威腾电气股份有限公司 | A kind of Profinet communications protocol transition card and conversion method |
CN109462613A (en) * | 2018-12-27 | 2019-03-12 | 郑州春泉节能股份有限公司 | A kind of communications protocol compatibility method |
CN109787981A (en) * | 2019-01-23 | 2019-05-21 | 杰克缝纫机股份有限公司 | Protocol conversion system, method, apparatus, equipment and storage medium |
CN111163147A (en) * | 2019-12-24 | 2020-05-15 | 深圳供电局有限公司 | Gateway device, multi-protocol data transmission method and computer device |
CN111447227A (en) * | 2020-03-27 | 2020-07-24 | 四川虹美智能科技有限公司 | Protocol analysis method and device of Internet of things equipment |
WO2021203623A1 (en) * | 2020-04-07 | 2021-10-14 | 北京邮电大学 | Internet-of-things resource access system and resource access method |
CN112405107A (en) * | 2020-11-26 | 2021-02-26 | 北京航空航天大学 | Numerical control machine tool communication heterogeneous feeding system and debugging method thereof |
CN114531476A (en) * | 2021-12-30 | 2022-05-24 | 爱普(福建)科技有限公司 | Method and system for analyzing industrial protocol and converting data |
Also Published As
Publication number | Publication date |
---|---|
CN115086443A (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108833269B (en) | Intelligent Internet of things gateway for industrial field | |
CN108847979B (en) | Self-adaptive configuration system and method based on SCADA | |
US7272458B2 (en) | Control system setting device | |
US20130031249A1 (en) | System and method for servicing field devices in an automation plant | |
US20130041485A1 (en) | System and method for servicing field devices in an automated plant | |
CN111756809B (en) | Plug-and-play production industrial adapter for intelligent manufacturing and application thereof | |
CN103312794A (en) | Field equipment integration device based on mobile terminal | |
CN103905410A (en) | Multi-channel communication protocol converter capable of converting user-defined protocol to Modbus protocol | |
KR100949814B1 (en) | Monitoring system for totally remotely managing multiple uninterrupted power supplys | |
CN113341900A (en) | Zero-code-configuration industrial equipment data acquisition system | |
Carlsson et al. | Migration of industrial process control systems to service-oriented architectures | |
WO2022156316A1 (en) | Configuration method and system supporting heterogeneous environment | |
CN115086443B (en) | Communication protocol conversion method and system | |
JPH11231924A (en) | Command generating and monitoring device for different controllers | |
CN109884971A (en) | Long-range control method, apparatus and system | |
CN203219328U (en) | Multiplex communication protocol converter | |
CN117130318A (en) | Industrial data acquisition method, device, system and readable storage medium | |
CN116016699A (en) | Communication protocol conversion method, device and storage medium | |
CN115808908A (en) | Data acquisition method and device, electronic equipment and storage medium | |
Xu et al. | Profibus automation technology and its application in DP slave development | |
KR20200081657A (en) | Platform of Smart Factory | |
CN111314284A (en) | Power distribution terminal-based protocol conversion method and system capable of expanding MODBUS | |
CN100512141C (en) | Method for implementing remote debarkation of embedded equipment by cascade interface | |
Takeuchi | General Information of FDT2 and FDI | |
TWI682252B (en) | An embedded device with wireless-routing function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |