CN115086443A - Communication protocol conversion method and system - Google Patents

Communication protocol conversion method and system Download PDF

Info

Publication number
CN115086443A
CN115086443A CN202210597461.6A CN202210597461A CN115086443A CN 115086443 A CN115086443 A CN 115086443A CN 202210597461 A CN202210597461 A CN 202210597461A CN 115086443 A CN115086443 A CN 115086443A
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.)
Granted
Application number
CN202210597461.6A
Other languages
Chinese (zh)
Other versions
CN115086443B (en
Inventor
任孝江
陈培泽
王鲲
左志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Discrete Zhizao Technology Innovation Co ltd
Original Assignee
Guangdong Discrete Zhizao Technology Innovation Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Discrete Zhizao Technology Innovation Co ltd filed Critical Guangdong Discrete Zhizao Technology Innovation Co ltd
Priority to CN202210597461.6A priority Critical patent/CN115086443B/en
Publication of CN115086443A publication Critical patent/CN115086443A/en
Application granted granted Critical
Publication of CN115086443B publication Critical patent/CN115086443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

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 is received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs to obtain a plurality of corresponding protocol analysis data, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to a preset rule, and then the integrated data are respectively transmitted to the corresponding bottom layer equipment; when receiving device data sent by bottom layer devices, transmitting second control end data obtained by analyzing the device data to a control end; each protocol analysis program is constructed according to a plurality of first protocol characteristic data stored in the protocol library. The invention constructs the protocol analysis program by utilizing the first protocol characteristic data, and 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 overall communication protocol conversion efficiency and saving the hardware cost.

Description

Communication protocol conversion method and system
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 living standard of residents, the spiritual consumption demand of people is continuously expanding, so that in order to meet the diversified demands of people on the price, the function, the appearance and the like of equipment, a plurality of electric automation devices which are obtained by combining equipment of various brands and models appear on the market. However, at present, devices of different brands have different communication modes and communication protocol requirements, and a Programmable Logic Controller (PLC) for controlling the devices can only support one to two communication protocols, for example, a PLC of siemens supports Profinet communication but does not support an EtherNet/IP communication protocol of rochell PLC, a valve island of DeviceNET can only be controlled by a PLC of ohrons, and the like.
When a plurality of devices with different communication protocol requirements exist in the device, the device can normally run only by configuring a plurality of corresponding PLCs and compiling device control programs of different PLCs, so that the hardware cost and the software development, operation and maintenance cost are higher. Therefore, simplifying the communication between the control end and different devices is the current research focus. At present, the configuration of a third-party protocol conversion module in a PLC is one of common technical means for simplifying communication between a control terminal and different devices, but by adopting the above technical means, communication between the PLC and the devices can be realized by configuring corresponding device information in third-party software, and the problems of complex use and configuration, high debugging difficulty, high maintenance cost and the like exist.
Disclosure of Invention
The invention provides a communication protocol conversion method and a communication protocol conversion system, wherein a protocol analysis program is constructed by utilizing first protocol characteristic data stored in a protocol library, so that the protocol analysis program can be updated in real time according to internal data of the protocol library, communication conversion between a control terminal and bottom equipment is processed through the protocol analysis program, a communication flow is simplified, and the integral communication protocol conversion efficiency is improved.
In order to solve the above technical problem, an embodiment of the present invention provides a communication protocol conversion method, including:
when first control end data sent by a control end is received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs to obtain a plurality of protocol analysis data corresponding to the first control end data, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to a preset rule, and then the integrated data are respectively transmitted to the corresponding bottom layer equipment;
when receiving 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 first protocol characteristic data stored in the protocol library is utilized to construct the corresponding protocol analysis program, 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 terminal 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, control end data are converted into protocol analysis data suitable for formats of all bottom layer devices, and device data sent by the bottom layer devices are analyzed to obtain second control end data suitable for formats of the control ends, so that synchronous communication between the control ends and different bottom layer devices is realized, the whole communication protocol conversion process is simplified, the subsequent debugging and maintenance difficulty is reduced, and the hardware cost is saved.
As a preferred scheme, the method for converting a communication protocol further includes:
monitoring a protocol conversion state and feeding back the protocol conversion state to a user side in real time;
receiving second protocol characteristic data transmitted by the user side and a first device description file corresponding to each bottom layer device, 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 the equipment communication standard requirement 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, the protocol feature data in the protocol library can be adjusted through the user side according to actual application requirements, so that the updated protocol analysis program can output protocol analysis data in a format suitable for the bottom layer 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 the 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 construction of the protocol analysis program specifically comprises:
according to a plurality of communication protocols, obtaining a plurality of corresponding first protocol characteristic data, and storing all the first protocol characteristic data to 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 feature data.
According to 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 the protocol analysis data corresponding to the different communication protocols.
As a preferred scheme, the method for converting a communication protocol further includes:
converting hardware interfaces corresponding to all the communication protocols into universal interfaces through a plurality of first protocol chips; wherein, one first protocol chip corresponds to one communication protocol;
and converting the control interface of the control end into the universal interface through a 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 multiple 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 scheme, when first control end data sent by a control end is received, format conversion is performed on 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, and according to a preset rule, each protocol analysis data and an equipment communication standard requirement corresponding to each bottom equipment are respectively integrated, and then the integrated data are respectively transmitted to the corresponding bottom equipment, 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;
controlling and starting each protocol analysis program to perform format conversion on the control end data according to the control starting instruction to obtain a plurality of protocol analysis data corresponding to the first control end data;
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 equipment respectively, and transmitting the integrated data to the corresponding bottom equipment respectively;
wherein one of the protocol parsing 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 each protocol analysis program is determined through analysis processing of the data of the control end, so as to control and coordinate synchronous operation of all the 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 the equipment communication standard requirements are integrated based on the protocol types, errors and omissions 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, an 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 first control end data by utilizing a plurality of protocol analysis programs when the first control end data sent by a control end is received, obtaining a plurality of protocol analysis data corresponding to the first control end data, respectively integrating each 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 is received, and transmitting the second control end data to the control end.
As a preferred scheme, the communication protocol conversion system further includes:
the interactive module is used for 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 a first device description file corresponding to each bottom layer device, and updating the protocol analysis program according to the second protocol characteristic data;
and the data acquisition module is used for converting each first equipment description file into a second equipment description file with the same format, analyzing each second equipment description file and acquiring the equipment communication standard requirement corresponding to each bottom layer equipment.
As a preferred scheme, the communication protocol conversion system further includes:
the program construction module is used for acquiring a plurality of corresponding first protocol characteristic data according to a plurality of communication protocols and storing all the first protocol characteristic data to 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 feature data.
As a preferred scheme, the communication protocol conversion system further includes:
the interface unification module is used for converting hardware interfaces corresponding to all the communication protocols into universal interfaces through a plurality of first protocol chips; wherein, one first protocol chip corresponds to one communication protocol; and converting the control interface of the control end into the universal interface through a second protocol chip.
As a preferred scheme, 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 integration transmission unit is used for respectively integrating the protocol analysis data and the equipment communication standard requirements corresponding to the bottom equipment according to the protocol types corresponding to the protocol analysis data, and then respectively transmitting the integrated data to the corresponding bottom equipment; wherein one of the protocol parsing data corresponds to one of the protocol types.
Drawings
FIG. 1: a schematic flow chart of a communication protocol conversion method provided in an embodiment of the present invention;
FIG. 2: the structure diagram of a communication protocol conversion system provided by the embodiment of the invention is shown;
FIG. 3: a schematic structural diagram of a first conversion module of a communication protocol conversion system according to an embodiment of the present invention is provided.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, a flow chart of a communication protocol conversion method according to an embodiment of the present invention is shown, the method includes steps S1 to S2, and it should be noted that the sequence of steps S1 and S2 is not limited thereto, and may be changed in sequence or performed simultaneously, and is not specifically limited herein, and depending on the specific application environment, the steps are as follows:
step S1, when first control end data sent by a control end is received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs to obtain a plurality of protocol analysis data corresponding to the first control end data, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to a preset rule, 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 preferable solution of this embodiment, the process of constructing the protocol analysis program includes steps S11 to S12, and each step is as follows:
step S11, according to a plurality of communication protocols, obtaining a plurality of corresponding first protocol feature data, and storing all the first protocol feature data to the protocol library; wherein one of the communication protocols corresponds to one of the first protocol feature data.
Step S12, constructing a plurality of protocol analysis programs according to each of the first protocol feature data.
At present, a plurality of bottom layer devices of different brands exist in the market, communication protocols supported by the bottom layer devices of different brands are different, each protocol has a unique code, and the 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, communication protocols used by a plurality of major brands are collected according to actual needs. 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 protocol of rockvier (Allen-Bradley, AB), the DeviceNET protocol of ohrons, and the mitsubishi CCLINK protocol. And then storing first protocol characteristic data corresponding to a plurality of different communication protocols into a protocol library, simultaneously 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 further constructing a plurality of protocol analysis programs according to the rest first protocol characteristic data and the third protocol characteristic data, so that the protocol analysis programs can accurately represent the conversion relationship between the control end data and the first protocol characteristic data corresponding to other communication protocols. Additionally, 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 representation accuracy of the protocol analysis program on the conversion relation between the third protocol characteristic data and the rest of the first protocol characteristic data 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 as follows:
step S13, when the first control end data sent by the control end is received, the first control end data is analyzed according to a preset analysis algorithm to determine a control start instruction.
Step S14, according to the control start instruction, controlling and starting each protocol parsing program to perform format conversion on the control end data, so as to obtain a plurality of protocol parsing data corresponding to the first control end data.
As an example, a master controller is provided for receiving and analyzing data of the control end, and controlling the contents of the calling of the coordination interface, the starting of the protocol analysis program, and the like, so that all the protocol analysis programs can run synchronously, and the simultaneous and synchronous communication between the control end and different bottom layer devices is realized in an auxiliary manner.
Step S15, according to the protocol type corresponding to each protocol analysis data, integrating each protocol analysis data and the device communication standard requirement corresponding to each bottom device, and transmitting the integrated data to the corresponding bottom device.
In this embodiment, the corresponding protocol analysis data and the equipment communication standard requirements are integrated based on the protocol type, thereby avoiding the occurrence of errors and omissions in the data transmission process and further improving the overall communication protocol conversion efficiency.
Step S2, when receiving the device data sent by the bottom layer device, parsing 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 vendor, the file formats of the GSD of different device vendors are usually different. In order to transmit data sent by different bottom layer devices to the control end, format conversion is performed on the first device description file sent by each bottom layer device, and a second device description file suitable for the format of the control end is obtained. In addition, by combining the data transmission and processing flows described in steps S1 and S2, the control end data is converted into protocol analysis data suitable for each bottom layer device format, and the first device description file sent by different bottom layer devices is converted into the second device description file suitable for the control end format, so that simultaneous and synchronous communication between the control end and different bottom layer devices is realized, the overall communication protocol conversion flow is simplified, and the subsequent debugging and maintenance difficulty is reduced.
As a preferable solution of this embodiment, the method for converting a communication protocol further includes steps S3 to S5, and it should be noted that the sequence of steps S3 to S5 is not limited to this, the sequence may be changed, or individual steps may be performed simultaneously, and this is not specifically limited, and depending on the specific application environment, each step is specifically as follows:
step S3, monitoring the protocol conversion state and feeding back the protocol conversion state to the user end in real time; and receiving second protocol characteristic data transmitted by the user side and a first device description file corresponding to each bottom layer device, 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 user can control and manage conveniently. As an example, when the client receives the alarm information with abnormal state, the failure cause and the communication state of the client are analyzed, so as to realize real-time monitoring of the multi-communication protocol conversion state. Meanwhile, according to the actual application requirements, new protocol characteristic data and equipment description files can be input through the user side, the protocol characteristic data and the equipment description files in the protocol library are adjusted (the adjustment comprises operations such as increasing, reducing or modifying), the representation range of the protocol analysis program is further expanded, the analysis accuracy of the protocol analysis program is guaranteed, and the practicability of the communication protocol conversion method is further improved. The user terminal may be a remote device connected to the network or a local device.
Step S4, converting each first device description file into a second device description file with the same format, and analyzing each second device description file to obtain a device communication standard requirement corresponding to each bottom layer device.
As an example, an equipment parser is provided for converting first equipment description files corresponding to different bottom-layer equipment into second equipment description files with uniform formats, so that uniform control is facilitated, and the communication difficulty between a control end and the bottom-layer equipment is further reduced.
Step S5, converting the hardware interfaces corresponding to all the communication protocols into universal interfaces through a plurality of first protocol chips; converting a control interface of the 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, through the special chip of integrated different communication protocols on the industrial computer mainboard, convert the hardware interface that different communication protocols correspond and the control interface of control end into unified general interface, avoided realizing the many problems of in-process interface of multiple communication protocol conversion, further simplify the communication between control end and the different equipment, reduction in production cost. The general interface may be a common network port, or may be other types of interfaces customized according to requirements, and may be set according to a specific application environment, which is not specifically 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 shown, where the communication protocol conversion system includes a first conversion module 1 and a second conversion module 2, and each module is as follows:
the first conversion module 1 is configured to, when first control end data sent by a control end is received, perform format conversion on 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, integrate each protocol analysis data and an equipment communication standard requirement corresponding to each underlying equipment according to a preset rule, and transmit the integrated data to the corresponding underlying 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 2 is configured to, when receiving the device data sent by the bottom layer device, parse the device data to obtain corresponding second control end data, and transmit 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, and the modules are specifically as follows:
the interaction module 3 is used for 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 a first device description file corresponding to each bottom layer device, and updating the protocol analysis program according to the second protocol characteristic data;
and the data acquisition module 4 is configured to convert each first device description file into a second device description file with the same format, and analyze each second device description file to obtain a device communication standard requirement corresponding to each bottom-layer device.
Referring to fig. 2, as a preferred embodiment of the present invention, the communication protocol conversion system further includes a program building module 5, which is specifically as follows:
the program building 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 in 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 feature data.
Referring to fig. 2 as a preferred embodiment of this embodiment, the communication protocol conversion system further includes an interface unifying module 6, which is as follows:
the interface unifying module 6 is used for converting all hardware interfaces corresponding to the communication protocol into a universal interface through a plurality of first protocol chips; wherein, one first protocol chip corresponds to one communication protocol; and converting the control interface of the control end into the universal interface through a second protocol chip.
As a preferred solution of this embodiment, referring to fig. 3, the first conversion module 1 specifically includes a data conversion unit 11 and an integrated transmission unit 12, and each unit specifically includes the following:
the data conversion unit 11 is configured to, when receiving the first control end data sent by the control end, analyze the first control end data according to a preset analysis algorithm to determine a control start instruction, and control and start each protocol analysis program to perform format conversion on the control end data according to the control start instruction, so as to obtain a plurality of protocol analysis data corresponding to the first control end data;
an integration transmission unit 12, configured to integrate each protocol analysis data and the device communication standard requirement corresponding to each bottom device according to the protocol type corresponding to each protocol analysis data, and transmit the integrated data to the corresponding bottom device; wherein one of the protocol parsing data corresponds to one of the protocol types.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method embodiment, and 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, wherein a protocol analysis program is constructed by utilizing first protocol characteristic data stored in a 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 accuracy of converting the data format of a control end by the protocol analysis program is improved, and the integral communication protocol conversion efficiency is further improved. In addition, by combining data transmission and processing between hardware and an automatically updated protocol analysis program, the method not only can convert the control end data into protocol analysis data meeting the format requirements of each bottom layer device, but also can analyze the device data sent by the bottom layer device to obtain second control end data suitable for the format of the control end, thereby realizing synchronous communication between the control end and different bottom layer devices, simplifying the whole communication protocol conversion process and further reducing the subsequent debugging and maintenance difficulty and cost.
Furthermore, an interactive function is developed, the real-time monitoring of the communication state is realized, the control and management of a user are facilitated, and the effective operation of the communication protocol conversion work is ensured. Meanwhile, through a special protocol chip, a control interface corresponding to a control end and a hardware interface corresponding to each communication protocol are unified, and the interface types are reduced.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the invention, may occur to those skilled in the art and are intended to be included within the scope of the invention.

Claims (10)

1. A method for converting a communication protocol, comprising:
when first control end data sent by a control end is received, format conversion is carried out on the first control end data by utilizing a plurality of protocol analysis programs to obtain a plurality of protocol analysis data corresponding to the first control end data, each protocol analysis data and equipment communication standard requirements corresponding to each bottom layer equipment are respectively integrated according to a preset rule, and then the integrated data are respectively transmitted to the corresponding bottom layer equipment;
when receiving 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.
2. The method of claim 1, further comprising:
monitoring a protocol conversion state and feeding back the protocol conversion state to a user side in real time;
receiving second protocol characteristic data transmitted by the user side and a first device description file corresponding to each bottom layer device, 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 the equipment communication standard requirement corresponding to each bottom layer equipment.
3. The method according to claim 1, wherein the protocol parsing procedure is implemented by:
according to a plurality of communication protocols, obtaining a plurality of corresponding first protocol feature data, and storing all the first protocol feature data to 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 feature data.
4. The method of claim 3, further comprising:
converting hardware interfaces corresponding to all the communication protocols into universal interfaces through a plurality of first protocol chips; wherein, one first protocol chip corresponds to one communication protocol;
and converting the control interface of the control end into the universal interface through a second protocol chip.
5. The method according to claim 1, wherein when first control end data sent by a control end is received, format conversion is performed on the first control end data by using a plurality of protocol parsing programs to obtain a plurality of protocol parsing data corresponding to the first control end data, and according to a preset rule, each protocol parsing 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 devices, 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;
controlling and starting each protocol analysis program to perform format conversion on the control end data according to the control starting instruction to obtain a plurality of protocol analysis data corresponding to the first control end data;
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 equipment respectively, and transmitting the integrated data to the corresponding bottom equipment respectively;
wherein one of the protocol parsing data corresponds to one of the protocol types.
6. A communication protocol conversion system, comprising:
the first conversion module is used for carrying out format conversion on first control end data by utilizing a plurality of protocol analysis programs when the first control end data sent by a control end are received, obtaining a plurality of protocol analysis data corresponding to the first control end data, respectively integrating each 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 is received, and transmitting the second control end data to the control end.
7. The communication protocol conversion system of claim 6 further comprising:
the interactive module is used for 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 a first device description file corresponding to each bottom layer device, and updating the protocol analysis program according to the second protocol characteristic data;
and the data acquisition module is used for converting each first equipment description file into a second equipment description file with the same format, analyzing each second equipment description file and acquiring the equipment communication standard requirement corresponding to each bottom layer equipment.
8. The communication protocol conversion system of claim 6, further comprising:
the program construction module is used for acquiring a plurality of corresponding first protocol characteristic data according to a plurality of communication protocols and storing all the first protocol characteristic data to the protocol library; constructing a plurality of protocol analysis programs according to the first protocol characteristic data; one of the communication protocols corresponds to one of the first protocol feature data.
9. The communication protocol conversion system of claim 8, further comprising:
the interface unification module is used for converting hardware interfaces corresponding to all the communication protocols into universal interfaces through a plurality of first protocol chips; wherein, one first protocol chip corresponds to one communication protocol; and converting the control interface of the control end into the universal interface through a second protocol chip.
10. The system of claim 6, 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 integration transmission unit is used for respectively 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 respectively transmitting the integrated data to the corresponding bottom equipment; wherein one of the protocol parsing data corresponds to one of the protocol types.
CN202210597461.6A 2022-05-27 2022-05-27 Communication protocol conversion method and system Active CN115086443B (en)

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 true CN115086443A (en) 2022-09-20
CN115086443B 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 (15)

* Cited by examiner, † Cited by third party
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
US20220103657A1 (en) * 2020-09-30 2022-03-31 Shenzhen Lenkeng Technology Co.,Ltd Transmitting method, receiving method, transmitting device, and receiving device for control instruction in long-distance transmission
CN114531476A (en) * 2021-12-30 2022-05-24 爱普(福建)科技有限公司 Method and system for analyzing industrial protocol and converting data

Patent Citations (15)

* Cited by examiner, † Cited by third party
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
US20220103657A1 (en) * 2020-09-30 2022-03-31 Shenzhen Lenkeng Technology Co.,Ltd Transmitting method, receiving method, transmitting device, and receiving device for control instruction in long-distance transmission
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
CN115086443B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN108833269B (en) Intelligent Internet of things gateway for industrial field
US20200304342A1 (en) Intelligent monitoring gateway for numerical control machine tool based on internet of things
CN108847979B (en) Self-adaptive configuration system and method based on SCADA
CN108989358B (en) Method for acquiring running data of textile machine based on TCP/IP protocol
US20130031249A1 (en) System and method for servicing field devices in an automation plant
CN111756809B (en) Plug-and-play production industrial adapter for intelligent manufacturing and application thereof
US20130041485A1 (en) System and method for servicing field devices in an automated plant
US9684299B2 (en) Apparatus and method for managing machine tool information for heterogeneous numerical control devices
CN103595717A (en) Household appliance control protocol conversion method and control terminal
CN103905410A (en) Multi-channel communication protocol converter capable of converting user-defined protocol to Modbus protocol
EP3806422A1 (en) Interconnection device, communication method and system comprising robot
KR100949814B1 (en) Monitoring system for totally remotely managing multiple uninterrupted power supplys
CN113766026B (en) Data processing method and system applied to energy industrial network
CN115086443B (en) Communication protocol conversion method and system
KR102204906B1 (en) System for Remote Controlling Machine Tools by Using OPC UA
CN203219328U (en) Multiplex communication protocol converter
CN112866191A (en) OT and IT integrated system based on 5G DTU system
Xu et al. Profibus automation technology and its application in DP slave development
CN117148781B (en) I/O equipment remote control method and system based on multi-PLC interconnection
CN115037639B (en) Processing method, device, equipment and medium of edge data platform interface information
CN110099124B (en) Universal building automation assembly type network communication system and method
TWI682252B (en) An embedded device with wireless-routing function
CN112737907B (en) Modbus communication implementation system and method based on LabVIEW
Shen et al. Development of a Data Acquisition System for a Stainless Steel Pipe Welding Line
CN117931297A (en) OPC UA-based method for carrying out information fusion modeling on industrial control equipment

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