Multi-data source terminal protocol adaptation method in MES system environment
By designing a system with multiple modules in the MES system, the integration of multiple production equipment terminal protocols and data adaptation compatibility is achieved, the problem of multi-data source terminal protocol adaptation in the MES system environment is solved, cost is reduced, and system flexibility and reliability are improved.
Patent Information
- Application Number
- CN202411848164.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-18
AI Technical Summary
In the MES system environment, the integration of multiple production equipment terminal protocols and data adaptation compatibility problems cannot be managed uniformly, resulting in high costs, complex maintenance, and the inability to achieve unified adaptation of multiple data sources.
By designing a system that includes data source pool, protocol stack module, protocol conversion engine, dynamic configuration interface, data cache and synchronization, adaptation module, log components and formatted output module, the compatibility and adaptation of multiple communication protocols is achieved, and the data format output is supported in many-to-one mode.
It reduces the integration cost of the MES system and multi-data source terminal equipment, improves the flexibility and scalability of the system, enhances the stability and reliability of the system, and improves the efficiency of data processing.
Smart Images

Figure FT_1 
Figure FT_2
Abstract
Description
Technical Field
[0001] The present invention relates to the integration of various production equipment terminal protocols in an MES system environment, as well as data adaptation and compatibility issues, and a solution to the problem that unified management and adaptation and compatibility cannot be achieved under various terminal data protocols. Background Art
[0002] In the production process of petroleum, chemical and other types of enterprises, there are many types of intelligent terminal equipment and business management systems at the production site. When connecting with other third-party systems, various incompatibility problems will be encountered. For some specific equipment or communication protocol data sources, specific manufacturers are required to customize and develop special interfaces and special equipment. For enterprises, it will be a large investment in cost management, and maintenance requires high technical personnel. When enterprises face the problem of protocol matching between on-site terminals and business systems and system interfaces in specific environments, most manufacturers on the market have their own MES systems for production plan issuance, auxiliary manufacturing and other scenarios. For the compatibility and adaptation of various types of protocols such as on-site terminal equipment communication protocols, weighing systems, distribution room systems, and business management systems, system debugging and implementation cannot achieve the adaptation of multiple data sources that cannot be managed uniformly. Summary of the invention
[0003] In view of the above specific system environment, the present invention provides and is compatible with a variety of communication protocol formats to achieve data format output in a many-to-one mode. It provides great convenience for technicians in multi-terminal input, format compatibility, equipment debugging and implementation of field terminal equipment. In the production environment of the MES system, input information is flexibly configured through the middleware method. The main functional modules included in the present invention are: data source pool, protocol stack module, protocol conversion engine, dynamic configuration interface, data caching and synchronization, adaptation module, log component, formatted output module and other eight main modules.
[0004] The data source pool module constructs the communication protocols of different devices or different information system exchange packages in the production enterprise into objects that meet the data source pool connection according to certain constraints, and provides link support for its upper-level modules.
[0005] The protocol stack module is a collection of basic protocol driver packages in the present invention, which is an interface for adapting various device data sources in the present invention and a basic resource package for computing work in the system environment of the present invention.
[0006] The protocol conversion engine is a functional module for performing data conversion between different communication protocols, and this module cooperates with other modules of the present invention to work, involving the basic configuration information of the protocol stack module and the dynamically configured interface information, and outputs the converted data packets to the formatted output module according to the definition content of the adapter module.
[0007] The dynamic configuration interface provides an interface for defining output data packets in a system environment, and provides private basic definitions for the data source pool and formatted output modules by defining different configuration information.
[0008] The data cache and synchronization described above is a temporary space for storing intermediate calculation results and output data in the present invention, which improves the operation speed and reduces the number of IO reads and writes. For the same content, the present invention can bypass the algorithm according to the strategy and directly obtain the relevant calculation results from the module.
[0009] The adaptation module is a matching algorithm that completes the three parts of the data source pool, protocol stack and protocol conversion engine, according to the basic data defined in the dynamic configuration interface. On the one hand, the protocol stack and data pool are adapted to the protocol conversion engine, which calculates the adapted result and transfers the result to the data cache and synchronization module, providing a selection algorithm for the formatted output module.
[0010] The log component records the main operation information of the present invention, including four important modules such as the function adaptation module, the protocol conversion engine, the dynamic configuration interface, and the formatted output module. Different levels of log information are constructed respectively to provide different levels of observation of the operation status of the present invention in a specific environment by operation and maintenance personnel.
[0011] The formatted output module is used to format the output according to the format defined in the dynamic configuration interface. It is the docking layer of the upper system environment. The output format is defined according to the requirements of the environment and should be defined in accordance with the requirements of the third-party software environment. It can support multiple output formats.
[0012] Furthermore, the communication protocol of any terminal device can be adapted and converted through this method. According to the parameter settings of the data source connection pool, general content can be configured to standardize the constraints in this method. For example, commonly used parameters include the upper limit gate value of the connection, the survival time of the connection, the type of connection adaptation, etc.
[0013] The compatible protocol types in the protocol stack module, the maximum value of each data transmission, the number of stacks and pop-ups, the maximum number of protocols accommodated, etc., form this internal object after adaptation, and retain the corresponding related attribute information. The output protocol format read by the protocol conversion engine is converted, and the target protocol is encoded and output to complete the process of the present invention.
[0014] Reduce the integration cost of MES system and multi-data source terminal devices. Through the universal protocol parsing and conversion module, there is no need to develop a special interface program for each terminal device, which greatly reduces the development workload and cost.
[0015] Improves the flexibility and scalability of the MES system. New terminal equipment types and communication protocols can be easily added to adapt to the ever-changing needs of industrial production.
[0016] Enhanced the stability and reliability of the MES system. Data caching and synchronization mechanisms ensure data integrity and consistency, reducing system failures caused by data loss or inconsistency.
[0017] Improved data processing efficiency. The protocol conversion engine and data cache mechanism can quickly process a large amount of data from different terminal devices, improving the response speed of the MES system. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of the deployment connection of the multi-data source terminal protocol adaptation method under the MES system environment of the present invention. Figure 2 This is a functional module composition diagram of the multi-data source terminal protocol adaptation method under the MES system environment of the present invention Figure 1 :M1—various equipment and intelligent terminals of the manufacturing enterprise; M2—adaptation components of the present invention; M3—specific environment of the MES system.
[0019] Figure 2 :S0—dynamic configuration interface; S1—data source pool; S2—protocol stack module; S3—adapter module; S4—protocol conversion engine; S5—data cache and synchronization; S6—log component; S7—formatted output module DETAILED DESCRIPTION
[0020] The implementation method of the present invention will be described in detail below in combination with examples, including but not limited to the following contents.
[0021] Example 1: Figure 1 The structure shown in the figure is composed of three parts. M1 is the terminal device on the production site, which is connected and started by M2 to start working. The communication data packets of multiple connected terminal devices are output to the specific environment interface of the MES system according to the set format. The components of M2 can run in virtual hosts, physical hosts, gateways or containers. The TCP network is used for data packaging and processing. Finally, the formatted data packets are uniformly delivered to the environment of M3.
[0022] Based on instance 1, configure and deploy the content in M2. Figure 2 The main program starts the entry of the method of the present invention, loads the contents of the S0 files in sequence, and injects the contents into the S5 module for use by other modules.
[0023] In terms of S1 connection processing, multiple terminal device protocols can be added according to the needs of actual work, and S3 will load them according to the dynamic strategy rule S2, and forward them to S4 for formatting the data packet protocol content. During the processing, S6 is responsible for recording important log information in each link and storing it in a file. At the same time, the output format protocol format in the configuration information of S0 is read to match the target output protocol. It is forwarded to the S7 module for closing the frame format, and finally the deployment process of the entire functional module is completed.
[0024] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein with equivalents, and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of this application, and should all be included in the protection scope of this application.
Claims
1. A multi-data source terminal protocol adaptation method under an MES system environment, characterized in that: The method includes the following steps: flexibly configuring through middleware in the MES system environment. The contents include: data source pool, protocol stack module, protocol conversion engine, dynamic configuration interface, data cache and synchronization, adaptation module, log component, formatted output module and other eight main modules.
2. The method for adapting the multi-data source terminal protocol under the MES system environment according to claim 1, characterized in that: The data source pool module constructs the communication protocols of different devices or different information system exchange packages within the manufacturing enterprise into objects that meet the data source pool connection according to certain constraints, and provides link support for its upper-level modules.
3. According to the method for adapting the terminal protocol of multiple data sources in the MES system environment of claim 1, the protocol stack module is a set of basic protocol driver packages in the present invention, which is an interface for adapting multiple device data sources in the present invention. It is the basic resource package for computing work in the system environment of the present invention.
4. The method for adapting the multi-data source terminal protocol under the MES system environment according to claim 1, characterized in that: The protocol conversion engine is a functional module for performing data conversion between different communication protocols, and this module cooperates with other modules of the present invention. It involves the basic configuration information of the protocol stack module and the dynamically configured interface information, and outputs the converted data packets to the formatted output module according to the definition content of the adapter module.
5. The method for adapting the multi-data source terminal protocol under the MES system environment according to claim 1, characterized in that: The dynamic configuration interface provides an interface for defining output data packets in a system environment, and provides private basic definitions for the data source pool and formatted output modules by defining different configuration information.
6. The method for adapting the multi-data source terminal protocol under the MES system environment according to claim 1, characterized in that: The data cache and synchronization described above is a temporary space for storing intermediate calculation results and output data in the present invention, which improves the operation speed and reduces the number of IO reads and writes. For the same content, the present invention can bypass the algorithm according to the strategy and directly obtain the relevant calculation results from the module.
7. The method for adapting the multi-data source terminal protocol under the MES system environment according to claim 1, characterized in that: The adaptation module is a matching algorithm that completes the three parts of the data source pool, protocol stack and protocol conversion engine, according to the basic data defined in the dynamic configuration interface. On the one hand, the protocol stack and data pool are adapted to the protocol conversion engine, which calculates the adapted result and transfers the result to the data cache and synchronization module, providing a selection algorithm for the formatted output module.
8. The method for adapting the multi-data source terminal protocol under the MES system environment according to claim 1, characterized in that: The log component records the main operation information of the present invention, including four important modules such as the function adaptation module, the protocol conversion engine, the dynamic configuration interface, and the formatted output module. Different levels of log information are constructed respectively to provide different levels of observation of the operation status of the present invention in a specific environment by operation and maintenance personnel.
9. The method for adapting the multi-data source terminal protocol under the MES system environment according to claim 1, characterized in that: The formatted output module is used to format the output according to the format defined in the dynamic configuration interface. It is the docking layer of the upper system environment. The output format is defined according to the requirements of the environment and should be defined in accordance with the requirements of the third-party software environment. It can support multiple output formats.
10. Furthermore, the communication protocol of any terminal device can be adapted and converted through this method. According to the parameter settings of the data source connection pool, general content can be configured to standardize the constraints in this method. For example, commonly used parameters include the upper limit gate value of the connection, the survival time of the connection, the type of connection adaptation, etc.
11. The compatible protocol types in the protocol stack module, the maximum value of each data transmission, the number of stacks and pop-ups, the maximum number of protocols accommodated, etc., form this internal object after adaptation, and retain the corresponding related attribute information. The output protocol format read by the protocol conversion engine is converted to encode the target protocol for output.