Terminal and industrial equipment adaptation processing method
Through the terminal identity tag automatically identifying and associating industrial equipment and its connection paths, the problem of complex manual configuration and error-prone in the existing technology is solved, and efficient and intelligent device management and data transmission are achieved.
Patent Information
- Application Number
- CN202510065531.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-13
AI Technical Summary
Existing industrial equipment management systems rely on manual configuration and static connection relationships, resulting in high management difficulty, complex operation, and prone to connection errors and configuration omissions.
Automatically identify and associate industrial equipment and its connection paths through terminal identity tags, generate feedback interaction tables and interaction plug-ins to realize automated equipment adaptation and efficient data transmission management.
It significantly improves the efficiency of equipment connection management, reduces human errors, and improves the intelligence level and operation efficiency of the system.
Smart Images

Figure CN119988291A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to a method for processing terminal and industrial equipment adaptation. Background Art
[0002] In modern industrial production environments, with the popularization of automation and intelligence, the number and types of industrial equipment are growing exponentially. In factory workshops, various equipment needs to be flexibly configured and managed according to different production needs, such as robot arms, welding equipment, and painting equipment. However, the linkage and communication between different equipment often require complex configurations, which increases the difficulty of production line management and the complexity of operation. In this environment, improving equipment management efficiency and reducing human errors have become urgent issues to be solved.
[0003] Current industrial equipment management systems usually rely on manual configuration and static connection relationships. These systems require operators to have high professional knowledge. When there are a large number of devices and a variety of types, manual configuration is inefficient and prone to connection errors and configuration omissions.
[0004] Therefore, how to achieve flexible device configuration and improve connection efficiency has become an urgent problem to be solved. Summary of the invention
[0005] The embodiment of the present invention provides a method for processing terminal and industrial equipment adaptation, which realizes flexible equipment configuration and efficient data transmission management, reduces human intervention and configuration errors, and meets the requirements of high efficiency and low error rate for equipment management in complex production environments.
[0006] A first aspect of an embodiment of the present invention provides a method for processing adaptation between a terminal and an industrial device, including: After determining that the first terminal has accessed the server, all first industrial devices to be associated are determined based on the identity tag of the first terminal, and a feedback interaction table and an interaction plug-in are generated and fed back to the first terminal as the first connection paths of all first industrial devices; The first terminal selects at least one first industrial device and / or a first connection path based on the feedback interaction table and the feedback interaction plug-in and feeds back to the server; The server extracts the data protocol corresponding to the first industrial device and / or the first connection path, and generates a protocol structure tree, wherein the first industrial device corresponds to at least one independent data protocol, and the first connection path corresponds to at least one group of data protocols; The server summarizes the extracted data protocols, packages them with the protocol structure tree, and sends them to the first terminal to adapt and integrate the first terminal.
[0007] Optionally, in a possible implementation of the first aspect, after determining that the first terminal accesses the server, determining all first industrial devices to be associated based on the identity tag of the first terminal, and generating a feedback interaction table for the first connection paths of all the first industrial devices and feeding it back to the first terminal includes: After determining that the first terminal accesses the server, extracting the identity tag of the first terminal, each terminal having a preset identity tag when logging in, each identity tag being associated with at least one first industrial device and at least one first connection path; Initializing a feedback interaction table, wherein the feedback interaction table has an initial device slot area and a path slot area; Obtain all first industrial equipment associated with the identity tag, establish corresponding sub-slots in the equipment slot area and fill in the equipment tag, obtain all first connection paths associated with the identity tag, establish corresponding path sub-slots in the path slot area and fill in the path tag, and obtain the filled feedback interaction table and feed it back to the first terminal.
[0008] Optionally, in a possible implementation manner of the first aspect, acquiring all first industrial devices associated with the identity tag, establishing corresponding device sub-slots in the device slot area and filling in device tags, acquiring all first connection paths associated with the identity tag, establishing corresponding path sub-slots in the path slot area and filling in path tags, and obtaining a filled feedback interaction table and feeding it back to the first terminal include: Generate a corresponding device serial number according to the order of each device sub-slot in the device slot area, and generate a corresponding path serial number according to the order of each path sub-slot in the path slot area; Extracting a device tag of each first industrial device in turn, and comparing the extracted device tag with the device tags of all path devices of each first connection path; If the comparison result is consistent, the corresponding path number is added after the device number of the device subslot to obtain a first number combination, and the corresponding device number is added after the path number of the path subslot to obtain a second number combination; The interaction plug-in is configured based on the first sequence number combination and the second sequence number combination, so that the first terminal interacts based on the feedback interaction table and the feedback interaction plug-in.
[0009] Optionally, in a possible implementation manner of the first aspect, the interaction plug-in is configured based on the first sequence number combination and the second sequence number combination so that the first terminal interacts based on the feedback interaction table and the feedback interaction plug-in, including: The interactive plug-in obtains the first serial number quantity of the path serial number in the first serial number combination of each first industrial device, and sorts the path subslots in the path slot area in descending order based on the first serial number quantity; The interactive plug-in obtains the second sequence number quantity of the device sequence numbers in the second sequence number combination of each first connection path, and sorts the device subslots in the device slot area in descending order based on the second sequence number quantity.
[0010] Optionally, in a possible implementation manner of the first aspect, the first terminal selects at least one first industrial device and / or first connection path based on the feedback interaction table and the feedback interaction plug-in to feed back to the server, including: The interactive plug-in interacts with the user to determine whether the path subslot is selected by default or by non-default, wherein the path subslot is selected by default based on the first sequence number combination, and the non-default selection is selected by non-default based on the first sequence number combination; If the feedback interaction plug-in determines that the user selects a device subslot based on the first terminal, and the device subslot corresponds to the first sequence number combination, the path subslot is determined based on the first sequence number combination and is highlighted in a first preset form, and the path subslot is selected by default or not selected by default according to the configuration of the interaction plug-in by the user; If the feedback interaction plug-in determines that the user selects a path subslot based on the first terminal, and the device subslot corresponds to the second sequence number combination, the device subslot is determined based on the second sequence number combination and is highlighted in a second preset form, and the device subslot is selected by default; The interactive plug-in reserves the selected device subslot and path subslot and then feeds back the selected device subslot to the server.
[0011] Optionally, in a possible implementation manner of the first aspect, the server extracts a data protocol corresponding to the first industrial device and / or the first connection path, and generates a protocol structure tree, wherein the first industrial device corresponds to at least one independent data protocol, and the first connection path corresponds to at least one group of data protocols, including: If the server determines that the first connection path is selected, then extracting a group of data protocols of the first connection path; If the server determines that another first connection path is selected, the server compares a data protocol of a group of the other first connection paths with the extracted data protocol, and retains the unextracted data protocol in the other first connection paths until the comparison of the data protocols of all the groups of the first connection paths is completed; sequentially comparing the independent data protocols of the first industrial equipment with the data protocols of the extracted group, and retaining the unextracted data protocols until the comparison of the independent data protocols of all the first industrial equipment is completed; A protocol structure tree is generated based on all the first industrial devices and / or the first connection paths and the retained extracted data protocols.
[0012] Optionally, in a possible implementation manner of the first aspect, generating a protocol structure tree based on all first industrial devices and / or first connection paths and the retained and extracted data protocols includes: Constructing a parent node corresponding to the identity tag of the first terminal; Sequentially obtain the retained extracted data protocols and construct child nodes corresponding to each data protocol, and connect each child node to the parent node; The first connection path is decomposed to obtain multiple first industrial devices, and a grandchild node corresponding to each first industrial device is established. The grandchild node is connected to the corresponding parent node according to the corresponding relationship between each first industrial device and the data protocol to generate a protocol structure tree.
[0013] Optionally, in a possible implementation of the first aspect, the server aggregates the extracted data protocols, packages them with a protocol structure tree, and sends them to the first terminal, and adapts and integrates the first terminal, including: The first terminal establishes a mapped protocol storage space based on the subnodes of the protocol structure tree so that each subnode has a corresponding protocol storage space; The first terminal stores the corresponding data protocol based on the correspondence between the child node and the protocol storage space, and the first terminal adapts and integrates the first industrial device according to the connection relationship between the grandchild nodes; The first terminal stores the corresponding data protocol based on the correspondence between the child node and the protocol storage space, and the first terminal adapts and integrates the first industrial device according to the connection relationship of the grandchild node, including: The first terminal sequentially calls the first industrial equipment corresponding to the grandchild nodes in the order of the grandchild nodes, and initializes the first data transmission interface of the first industrial equipment; The first data transmission interface is adapted based on the data protocol in the protocol storage space corresponding to the first industrial device, so that data transmission is performed between the first terminal and the first industrial device based on the first data transmission interface.
[0014] Optionally, in a possible implementation of the first aspect, the method further includes: Count the protocol structure tree of all associated identity tags; The first protocol ratio of the corresponding data protocol under each protocol structure tree is obtained according to the number of grandchild nodes connected to the child nodes of each protocol structure tree; According to the data transmission volume of the grandchild node connected to the child node of each protocol structure tree in a preset time, the second protocol proportion of the corresponding data protocol under each protocol structure tree is obtained; Based on the first protocol proportion and the second protocol proportion of each protocol structure tree under all protocol structure trees, the data penetration coefficient under the corresponding data protocol is obtained, and the second industrial equipment to be optimized is determined based on the data penetration coefficient.
[0015] Optionally, in a possible implementation of the first aspect, obtaining a data penetration coefficient under a corresponding data protocol based on a first protocol ratio and a second protocol ratio of each protocol structure tree under all protocol structure trees, and determining a second industrial equipment to be optimized based on the data penetration rate includes: The first protocol proportion is weighted based on the quantity weight to obtain a first sub-coefficient, and the second protocol proportion is weighted based on the data weight to obtain a second sub-coefficient; The first sub-coefficient and the second sub-coefficient are added to obtain a data permeability coefficient, the average of all data permeability coefficients is calculated to obtain a mean coefficient, the difference between the data permeability coefficient and the mean coefficient is calculated, and if the difference is less than or equal to a preset value, the corresponding data protocol is used as the data protocol to be optimized; The child nodes of the data protocol to be optimized in all protocol structure trees are determined, and the first industrial equipment of the grandchild node connected to the corresponding child node is determined as the second industrial equipment to be optimized.
[0016] The present invention provides an automated equipment adaptation method based on terminal identity tags. By extracting the identity tags of the terminals, the system can automatically identify and associate the corresponding industrial equipment and their connection paths, and generate feedback interaction tables and interaction plug-ins. This mechanism greatly improves the efficiency of equipment connection management. In a specific embodiment, the equipment and the path are matched by serial number combination, which not only simplifies the operation steps, but also ensures the accuracy of equipment management. This method can be widely used in various industrial automation systems, especially in environments with a wide variety of equipment and complex connections, such as manufacturing, logistics, and automobile assembly lines. Through automated equipment identification and connection configuration, the intelligence level and operational efficiency of the system can be greatly improved.
[0017] The present invention provides users with a flexible device and path selection interface through interactive plug-ins. Users can easily select the required devices and paths, and the system automatically performs dynamic configuration according to the user's selection. Combined with the feedback interactive plug-in configuration in the specific implementation, users can intuitively identify the matching relationship between devices and paths, automatically handle complex device interactions, and significantly improve the convenience of operation and the intelligence level of the system.
[0018] The present invention also implements intelligent management of data protocols for industrial equipment. The server extracts data protocols from selected devices and paths, generates a protocol structure tree, and ensures the orderliness and integrity of protocol management. By calculating the penetration coefficient of the data protocol, the system can identify and optimize devices and protocols with low utilization rates, thereby improving overall system performance. In a specific embodiment, the system can flexibly expand and integrate new industrial equipment to ensure high efficiency in the face of changing production needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flowchart of a method for adapting a terminal and industrial equipment provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of a feedback interaction table provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0022] See also Figure 1 , is a flow chart of a method for processing terminal and industrial equipment adaptation provided by an embodiment of the present invention, the method comprising: S100, after determining that the first terminal is connected to the server, all first industrial devices to be associated are determined based on the identity tag of the first terminal, and a feedback interaction table and an interaction plug-in are generated and fed back to the first terminal as first connection paths of all first industrial devices.
[0023] In existing industrial equipment connection technologies, it is usually necessary to manually configure the connection relationship between devices, which is not only inefficient but also prone to errors. In addition, when the number of devices is large, the management complexity increases significantly. Therefore, a method that can automatically identify and establish a connection has important practical value. The present invention provides a terminal and industrial equipment adaptation processing method, which automatically determines the industrial equipment to be associated and its connection path through the identity tag of the terminal, thereby achieving fast and efficient connection. By automatically identifying the identity tag of the terminal and generating a corresponding feedback interaction table, the connection efficiency between the terminal and the industrial equipment can be significantly improved, human errors can be reduced, and the intelligence level of the system can be improved.
[0024] The first terminal can be a smart device such as a tablet or a mobile phone for an operator to hold. Generally speaking, one operator corresponds to one first terminal. There can be multiple first industrial equipment, such as robotic arm equipment, welding equipment, etc. The first connection path refers to the production path where the first industrial equipment is located. For example, if the assembly equipment, welding equipment, and painting equipment are a production path, then the assembly equipment, welding equipment, and painting equipment are a first connection path.
[0025] In some embodiments, after determining that the first terminal has accessed the server, determining all first industrial devices to be associated based on the identity tag of the first terminal, and generating a feedback interaction table of the first connection paths of all first industrial devices and feeding it back to the first terminal includes: S110, after determining that the first terminal accesses the server, extracting the identity tag of the first terminal, each terminal has a preset identity tag when logging in, and each identity tag is associated with at least one first industrial device and at least one first connection path.
[0026] This step requires determining whether the first terminal is connected to the server. When the first terminal successfully connects to the server, the system extracts the identity tag of the terminal. Each terminal is assigned a preset identity tag when logging in, and the tag is associated with at least one first industrial device and at least one first connection path. For example, the identity tag can be a device ID, a user ID, or other unique identifier.
[0027] S120, initializing a feedback interaction table, wherein the feedback interaction table has an initial device slot area and a path slot area.
[0028] The system initializes a feedback interaction table, see Figure 2 The table includes a device slot area and a path slot area. The device slot area is used to store information of all first industrial devices associated with the identity tag, and the path slot area is used to store information of all first connection paths associated with the identity tag.
[0029] S130, obtain all first industrial equipment associated with the identity tag, establish corresponding sub-slots in the equipment slot area and fill in the equipment tag, obtain all first connection paths associated with the identity tag, establish corresponding path sub-slots in the path slot area and fill in the path tag, obtain the filled feedback interaction table and feed it back to the first terminal.
[0030] The system obtains all associated industrial devices and connection paths based on the identity tag, creates subslots in the corresponding area of the feedback interaction table, and fills in the device tag and path tag. For example, if the identity tag is associated with three industrial devices and two connection paths, three subslots are created in the device slot area and two subslots are created in the path slot area.
[0031] For example, assume that the identity tag of the first terminal is "deviceID1", which is associated with three industrial devices (device A, device B, device C) and two connection paths (path 1, path 2). The system first initializes the feedback interaction table, then creates sub-slots for devices A, B, and C in the device slot area, and creates sub-slots for path 1 and path 2 in the path slot area. Finally, the filled feedback interaction table is sent to the first terminal.
[0032] The step of obtaining all first industrial devices associated with the identity tag, establishing corresponding device sub-slots in the device slot area and filling in device tags, obtaining all first connection paths associated with the identity tag, establishing corresponding path sub-slots in the path slot area and filling in path tags, and obtaining a filled feedback interaction table and feeding it back to the first terminal includes: S131, generating a corresponding device serial number according to the order of each device sub-slot in the device slot area, and generating a corresponding path serial number according to the order of each path sub-slot in the path slot area.
[0033] In this step, the system generates device serial numbers according to the order of each device subslot in the device slot area. For example, the first device subslot corresponds to serial number A, the second device subslot corresponds to serial number B, the third device subslot corresponds to serial number C, and so on. The path subslots in the path slot area also generate path serial numbers in order, for example, the first path subslot corresponds to serial number 1, and the second path subslot corresponds to serial number 2.
[0034] S132, extracting a device tag of each first industrial device in turn, and comparing the extracted device tag with the device tags of all path devices of each first connection path; S133, if the comparison result is consistent, then add the corresponding path number after the device number of the device subslot to obtain a first number combination, and add the corresponding device number after the path number of the path subslot to obtain a second number combination.
[0035] This solution will perform different processing based on the comparison results. If the device label is consistent with the path label, the system will generate two serial number combinations: one is the combination of the device serial number and the path serial number (the first serial number combination), and the other is the combination of the path serial number and the device serial number (the second serial number combination). These two serial number combinations are used to identify the matching relationship between the device and the path. Exemplarily, when comparing device A with path 1, a match is found, and the first serial number combination A1 and the second serial number combination 1A are generated. When comparing device B with path 2, a match is found, and the serial number combination first serial number combination B2 and the second serial number combination 2B are generated.
[0036] S134: The feedback interaction plug-in is configured based on the first sequence number combination and the second sequence number combination, so that the first terminal interacts based on the feedback interaction table and the feedback interaction plug-in.
[0037] Finally, the feedback interaction plug-in configures the system based on the generated first serial number combination and second serial number combination, so that the first terminal can perform correct interaction operations based on the feedback interaction table. This process makes the interaction between the terminal and the industrial equipment more intelligent, and presents feedback to the operator through the interaction plug-in.
[0038] The interaction plug-in is configured based on the first sequence number combination and the second sequence number combination so that the first terminal interacts based on the feedback interaction table and the feedback interaction plug-in, including: The interactive plug-in obtains the first sequence number quantity of the path sequence number in the first sequence number combination of each first industrial device, and sorts the path subslots in the path slot area in descending order based on the first sequence number quantity.
[0039] The interactive plug-in first obtains the number of path numbers contained in the first sequence number combination of each first industrial device. That is, for each industrial device, the number of associated paths is counted. Based on the number of path numbers obtained, the path sub-slots in the path slot area are sorted in descending order. The basis for sorting is the number of times each path number appears in its corresponding first sequence number combination. For example, if path 1 appears 3 times and path 2 appears 2 times, path 1 is ranked first. The sorted result ensures that path sub-slots with more associated paths are displayed first, which improves the convenience and efficiency of users when operating the terminal.
[0040] The interactive plug-in obtains the second sequence number quantity of the device sequence numbers in the second sequence number combination of each first connection path, and sorts the device subslots in the device slot area in descending order based on the second sequence number quantity.
[0041] The interactive plug-in obtains the number of device serial numbers contained in each first connection path in its second serial number combination, that is, counts the number of devices associated with each connection path. Based on the number of device serial numbers obtained, the device subslots in the device slot area are sorted in descending order. The basis for sorting is the number of times each device serial number appears in its corresponding second serial number combination. For example, if device A appears 3 times and device B appears 2 times, then device A is ranked first. The sorted result ensures that device subslots with more associated devices are displayed first, which improves the convenience and efficiency of users when operating the terminal.
[0042] S200: The first terminal selects at least one first industrial device and / or a first connection path based on a feedback interaction table and a feedback interaction plug-in, and feeds back to a server.
[0043] In some embodiments, the first terminal selects at least one first industrial device and / or first connection path based on the feedback interaction table and the feedback interaction plug-in to feed back to the server, including: S210, the feedback interaction plug-in interacts with the user to determine whether the path subslot is selected by default or by non-default. The path subslot is selected by default for selection of the path subslot based on the first sequence number combination, and the non-default is selected by non-default for selection of the path subslot based on the first sequence number combination.
[0044] In this process, users select the industrial equipment or connection path they want to use through a software interface (feedback interaction table) on the first terminal device. This software interface will determine which options are selected by default and which are unselected based on the user's operation.
[0045] S220, if the feedback interaction plug-in determines that the user selects a device subslot based on the first terminal, and the device subslot corresponds to the first serial number combination, the path subslot is determined based on the first serial number combination and is highlighted in a first preset form, and the path subslot is selected by default or not selected by default according to the user's configuration of the interaction plug-in.
[0046] The feedback interaction plug-in detects whether the user has selected a certain device subslot on the first terminal. If the user has selected a device subslot, the feedback interaction plug-in will determine the associated path subslot based on the first serial number combination. According to the first preset form (for example, red form), the determined path subslot is highlighted for easy user identification. Finally, according to the user's configuration in the interaction plug-in, the path subslot is set to default selection or non-default selection. Among them, the default selection means that the relevant path subslot is automatically associated and displayed through the selection of the device subslot, and the user can quickly identify and select the associated path, reducing operation time and improving the intelligence level of the system. Non-default selection means that the relevant path subslot will not be automatically associated and displayed.
[0047] S230, if the feedback interaction plug-in determines that the user selects a path subslot based on the first terminal, and the device subslot corresponds to the second sequence number combination, the device subslot is determined based on the second sequence number combination and is highlighted in a second preset form, and the device subslot is selected by default.
[0048] The feedback interaction plug-in detects whether the user has selected a path subslot in the first terminal. If the user has selected a path subslot, the feedback interaction plug-in will determine the associated device subslot based on the second serial number combination. According to the second preset form (for example, green), the determined device subslot is highlighted for easy user identification. The determined device subslot is selected by default to ensure that the user can use it directly in subsequent operations. Through the selection of the path subslot, the related device subslots are automatically associated and displayed, thereby improving the intelligence level of the system. Users can quickly identify and select associated devices to reduce operation time.
[0049] S240, the feedback interaction plug-in reserves the selected device subslot and path subslot and feeds back to the server.
[0050] The feedback interaction plug-in saves the selected state of the device subslot and path subslot selected by the user on the first terminal. The saved selected state is sent to the server through the feedback interaction plug-in for further processing or recording by the server. It ensures that the server receives the latest selected state and maintains the consistency of data in various parts of the system.
[0051] S300, the server extracts the data protocol corresponding to the first industrial device and / or the first connection path, and generates a protocol structure tree, wherein the first industrial device corresponds to at least one independent data protocol, and the first connection path corresponds to at least one group of data protocols.
[0052] The server is responsible for extracting relevant data protocols from the selected first industrial device and / or the first connection path, and generating a protocol structure tree based on these protocols. The first industrial device corresponds to at least one independent data protocol. The first connection path corresponds to at least one group of data protocols. The server needs to identify and extract the data protocols used by different industrial devices and connection paths. Based on the extracted data protocols, the server constructs a hierarchical protocol structure tree for subsequent data processing and analysis.
[0053] In some embodiments, the server extracts the data protocol corresponding to the first industrial device and / or the first connection path, and generates a protocol structure tree, wherein the first industrial device corresponds to at least one independent data protocol, and the first connection path corresponds to at least one group of data protocols, including: S310: If the server determines that the first connection path is selected, a group of data protocols of the first connection path is extracted.
[0054] The server detects whether the user has selected a specific first connection path. If the first connection path is selected, the server will extract a set of data protocols corresponding to the connection path. Among them, a set of data protocols can have multiple data protocols. For example, the first connection path includes four devices A, B, C, and D. Devices A, B, and C correspond to data protocol 1, and device D corresponds to data protocol 2. Then the set of data protocols corresponding to the first connection path includes data protocol 1 and data protocol 2.
[0055] S320, if the server determines that other first connection paths are selected, it compares a group of data protocols of other first connection paths with the extracted data protocols, and retains the unextracted data protocols in other first connection paths until the comparison of data protocols of all groups of first connection paths is completed.
[0056] The server checks whether other first connection paths are selected. For each selected connection path, extract a set of data protocols corresponding to it. Compare these data protocols with previously extracted data protocols to identify duplicate and unique protocols. Only those unique data protocols that have not been extracted in other connection paths are retained until the data protocol comparison of all selected connection paths is completed. Reduce redundant data protocols and optimize the construction of the protocol structure tree. Reduce the complexity and resource consumption of subsequent processing by deduplication.
[0057] S330, sequentially comparing the independent data protocols of the first industrial equipment with the data protocols of the extracted group, and retaining the unextracted data protocols until the comparison of the independent data protocols of all the first industrial equipment is completed.
[0058] The server processes the independent data protocol of each selected first industrial device in turn. Compare the independent data protocol of each device with the group data protocol previously extracted from the connection path. Only those data protocols that were not extracted in the connection path are retained until the independent data protocol comparison of all devices is completed. Ensure that all relevant data protocols (from the connection path and devices) are included in the construction of the protocol structure tree. Avoid missing any unique data protocols and ensure the comprehensiveness and accuracy of the protocol structure tree.
[0059] S340: Generate a protocol structure tree based on all first industrial devices and / or first connection paths and the retained and extracted data protocols.
[0060] Integrate all unique data protocols extracted and retained from connection paths and industrial devices. Based on the integrated data protocols, build a hierarchical protocol structure tree to show the relationship and hierarchy between the protocols. The protocol structure tree can be optimized later, such as sorting, classification and labeling, to ensure that its logic is clear and easy to understand. The protocol structure tree clearly shows the hierarchy and association between the data protocols, which facilitates subsequent data processing and analysis. The protocol structure tree makes it easier and more intuitive to manage and maintain complex data protocols. The structured data display helps system administrators or users make more informed decisions.
[0061] The generating of a protocol structure tree based on all first industrial devices and / or first connection paths and the retained and extracted data protocols includes: S341: Construct a parent node corresponding to the identity tag of the first terminal.
[0062] This solution constructs a parent node corresponding to the identity tag of the first terminal. The server identifies and obtains the identity tag of the first terminal. This may include information such as the unique identifier of the terminal. Based on the identity tag of the first terminal, the server creates a parent node in the protocol tree structure. The parent node serves as the root node or one of the main branches of the entire protocol tree structure, representing the overall identity and attributes of the first terminal. Through the parent node, child nodes and grandchild nodes can be easily added under it, supporting the scalability of the protocol tree.
[0063] S342, sequentially obtain the retained and extracted data protocols and construct a child node corresponding to each data protocol, and connect each child node to the parent node.
[0064] The server will sequentially obtain all data protocols retained in steps S300 to S340. Create a corresponding child node in the protocol structure tree for each data protocol. Connect each child node to the parent node created in step S341 to form a hierarchical relationship between the parent node and the child node. Each child node should contain detailed attributes related to the data protocol, such as protocol name, version, function description, etc.
[0065] S343, decomposing the first connection path to obtain multiple first industrial devices, establishing a grandchild node corresponding to each first industrial device, connecting the grandchild node to the corresponding parent node according to the correspondence between each first industrial device and the data protocol, and generating a protocol structure tree.
[0066] The server decomposes the first connection path, identifies and extracts multiple first industrial devices. A corresponding grandchild node is created for each decomposed first industrial device. According to the relationship between each first industrial device and its corresponding data protocol, the corresponding grandchild node is connected to the corresponding child node (i.e., the child node under the parent node). After completing the above connection, the protocol structure tree forms a multi-level hierarchical structure, showing the relationship between the first terminal, each data protocol and its corresponding industrial device. By introducing grandchild nodes, the protocol structure tree shows more detailed and hierarchical information, which is conducive to deeper protocol management and analysis. The relationship between each industrial device and the data protocol it uses is clearly shown. These steps ensure that the protocol structure tree not only covers all relevant data protocols, but also clearly shows the relationship between each protocol and the specific industrial device. The whole process improves the organization and visualization of data through hierarchical structure design, and further optimizes the data management and system intelligence level. This complete protocol structure tree generation process provides system administrators and users with an intuitive and efficient tool to facilitate various subsequent operations such as protocol management.
[0067] S400, the server aggregates the extracted data protocols, packages them with the protocol structure tree, and sends them to the first terminal to adapt and integrate the first terminal.
[0068] The server summarizes all the data protocols previously extracted and sorted to ensure the integrity and consistency of the protocols. The generated protocol structure tree is packaged with the summarized data protocol to form a unified data packet, ready to be sent to the first terminal. The packaged data is sent to the first terminal through an appropriate communication method (such as a network transmission protocol) to ensure the reliability and security of data transmission. After receiving the data packet, the first terminal performs adaptation and integration processing to ensure that it can correctly identify and use the received protocol and structure tree.
[0069] In some embodiments, the server aggregates the extracted data protocols and packages them with the protocol structure tree and sends them to the first terminal, and adapts and integrates the first terminal, including: S410: The first terminal establishes a mapped protocol storage space based on the child nodes of the protocol structure tree, so that each child node has a corresponding protocol storage space.
[0070] The first terminal parses the received protocol structure tree and identifies the child nodes (i.e., each data protocol). Create a corresponding protocol storage space for each child node to ensure that each data protocol has an independent storage area. Establish and maintain the mapping relationship between the child node and the protocol storage space to ensure that subsequent data storage and access can accurately correspond. Through the mapping relationship, ensure that the data protocol of each child node has an independent and orderly storage space for easy management and access. Independent protocol storage space reduces conflicts and interference during data access and improves data processing efficiency. When adding or updating a protocol, you only need to operate in the corresponding storage space, which simplifies the protocol management process.
[0071] S420, the first terminal stores the corresponding data protocol based on the correspondence between the child node and the protocol storage space, and the first terminal adapts and integrates the first industrial device according to the connection relationship between the grandchild nodes.
[0072] According to the mapping relationship established in step S410, the data protocol corresponding to each child node is stored in the corresponding protocol storage space. According to the connection relationship of the grandchild nodes in the protocol structure tree, the corresponding first industrial equipment is identified and adapted to complete the integration of the equipment. Orderly protocol storage and management improve the efficiency and accuracy of data processing. Through adaptation and integration, the first terminal can be compatible with and efficiently manage a variety of first industrial equipment, enhancing the flexibility of the system. The standardized storage and integration process improves the overall stability and reliability of the system.
[0073] The first terminal stores the corresponding data protocol based on the correspondence between the child node and the protocol storage space, and the first terminal adapts and integrates the first industrial device according to the connection relationship of the grandchild node, including: S421, the first terminal sequentially calls up the first industrial devices corresponding to the grandchild nodes in the order of the grandchild nodes, and initializes the first data transmission interface of the first industrial device.
[0074] According to the order of the grandchild nodes in the protocol structure tree, the corresponding first industrial devices are retrieved one by one. The first data transmission interface of each first industrial device is initialized to ensure that the device can communicate data with the first terminal. The hierarchical information of the protocol structure tree is used to accurately identify and schedule the industrial devices that need to be initialized. According to the protocol requirements of each device, the corresponding data transmission interface parameters are configured, such as communication protocol, rate, port, etc. The automated device retrieval and interface initialization process reduces manual operations and improves the system startup speed. The standardized initialization process reduces human configuration errors and improves the reliability of the system.
[0075] S422: adapt the first data transmission interface based on the data protocol in the protocol storage space corresponding to the first industrial device, so that data is transmitted between the first terminal and the first industrial device based on the first data transmission interface.
[0076] Extract the data protocol from the corresponding protocol storage space, and adapt the first data transmission interface according to these protocols to ensure that the interface can correctly understand and process the transmitted data. Configure and establish a data transmission channel between the first terminal and the first industrial equipment to ensure that data can be smoothly transmitted between the two. The above steps realize the efficient transmission of the data protocol and protocol structure tree between the server and the first terminal, as well as the automatic adaptation and integration of the first terminal to various industrial equipment. The entire process improves the organization, flexibility and reliability of the system through the hierarchical protocol structure tree and standardized data storage and interface adaptation, and provides solid technical support for protocol management and device integration of complex industrial systems. This perfect process not only optimizes the management and transmission of data protocols, but also significantly improves the overall performance and user experience of the system through automated device adaptation and integration. In the future, with the addition of more protocols and devices, the system will be able to continue to meet the changing industrial needs through a flexible expansion mechanism and maintain its advantages in intelligent and efficient management.
[0077] Based on the above embodiment, it also includes: A1, counting the protocol structure trees of all associated identity tags, and obtaining the first protocol ratio of the corresponding data protocol under each protocol structure tree according to the number of grandchild nodes connected to the child nodes of each protocol structure tree.
[0078] This solution will identify and count the protocol structure trees corresponding to all associated identity tags. The protocol structure trees with associated identity tags will be classified for subsequent analysis. Different identity tags may correspond to different types of protocol structure trees. For example, if Person A and Person B are quality inspectors, then the identity tags of Person A and Person B are associated identity tags. At this time, the equipment corresponding to Person A and Person B may be the same or corresponding types. For example, if Person C is a soldering personnel, then the identity tags of Person A and Person C are unassociated identity tags. At this time, the equipment corresponding to Person A and Person C may be different or uncorrelated types.
[0079] It is understandable that since the number of industrial equipment may be large, and the number of industrial equipment corresponding to certain data protocols may be different, some data protocols may correspond to dozens or even hundreds of industrial equipment, while some data protocols may correspond to 1 industrial equipment. In the above case, the data protocol corresponding to 1 industrial equipment occupies data space, but its usefulness is limited, so it may be necessary to optimize the protocol for the corresponding equipment. Therefore, this solution needs to calculate the proportion of the first protocol of the corresponding data protocol based on the number of grandchild nodes connected to the child node for each protocol structure tree. Traverse the protocol structure tree, count the number of grandchild nodes connected to each child node, and calculate its proportion in the entire protocol structure tree. Among them, the larger the number of grandchild nodes, the larger the corresponding proportion of the first protocol.
[0080] A2, obtaining the second protocol proportion of the corresponding data protocol under each protocol structure tree according to the data transmission volume of the grandchild node connected to the child node of each protocol structure tree within a preset time.
[0081] This solution also takes into account that although the first protocol ratio corresponding to some data protocols may not be very large, the corresponding data transmission volume is very large, that is, it is very useful. Therefore, the second protocol ratio of the corresponding data protocol under each protocol structure tree is obtained in combination with the data transmission volume. The higher the data transmission volume under the preset time, the larger the corresponding second protocol ratio.
[0082] A3, based on the first protocol proportion and the second protocol proportion of each protocol structure tree under all protocol structure trees, obtain the data penetration coefficient under the corresponding data protocol, and determine the second industrial equipment to be optimized based on the data penetration coefficient.
[0083] This solution will calculate the data penetration coefficient under the corresponding data protocol based on the first protocol ratio and the second protocol ratio of each protocol structure tree calculated in A2. According to the data penetration coefficient, the second industrial equipment that needs to be optimized is identified to improve the overall system performance.
[0084] Wherein, the data penetration coefficient under the corresponding data protocol is obtained based on the first protocol proportion and the second protocol proportion of each protocol structure tree under all protocol structure trees, and the second industrial equipment to be optimized is determined based on the data penetration rate, including: A31, weighting the first protocol proportion based on the quantity weight to obtain a first sub-coefficient, and weighting the second protocol proportion based on the data weight to obtain a second sub-coefficient.
[0085] This solution needs to take into account the dimension of node quantity, so the quantity weight is applied to the proportion of the first protocol in each protocol structure tree to obtain the first sub-coefficient. At the same time, this solution needs to take into account the dimension of data volume, so the data weight is applied to the proportion of the second protocol in each protocol structure tree to obtain the second sub-coefficient. The quantity weight and data weight can be pre-set by the user.
[0086] A32, adding the first sub-coefficient and the second sub-coefficient to obtain a data penetration coefficient, calculating the average of all data penetration coefficients to obtain a mean coefficient, calculating the difference between the data penetration coefficient and the mean coefficient, and if the difference is less than or equal to a preset value, taking the corresponding data protocol as the data protocol to be optimized.
[0087] This solution will merge the first sub-coefficient and the second sub-coefficient to obtain the data penetration coefficient, then average the data penetration coefficient to obtain the mean coefficient, and then calculate the difference between each data penetration coefficient and the mean coefficient, that is, the data penetration coefficient minus the mean coefficient. If the difference is less than or equal to the preset value, it means that the corresponding industrial equipment is rarely used, whether in terms of data transmission volume or the corresponding first protocol ratio, then the equipment and the corresponding data protocol can be optimized.
[0088] A33, determining the child nodes of the data protocol to be optimized in all protocol structure trees, and determining the first industrial equipment of the grandchild node connected to the corresponding child node as the second industrial equipment to be optimized.
[0089] Finally, this solution needs to determine the child nodes of the data protocol to be optimized in all protocol structure trees, and determine the first industrial equipment of the grandchild node connected to the corresponding child node as the second industrial equipment to be optimized. The data protocol to be optimized and the second industrial equipment to be optimized are optimized. The optimization can be to change the data protocol of the equipment or replace other equipment with the same function.
[0090] When it is determined that there is a need to build a new production line, a twin planning diagram of the new production line is obtained, the twin planning diagram has the equipment features of the equipment corresponding to the production line, and all grandchild nodes of all previously existing protocol structure trees are traversed based on the equipment features. All grandchild nodes corresponding to the equipment features are determined, and each equipment feature has a preset equipment feature. The data protocols of all child nodes corresponding to all grandchild nodes are obtained to obtain the stem branches of the protocol structure tree, each of which is composed of at least one child node and a grandchild node.
[0091] Create a new parent node of the twin structure tree of the production line, and connect the parent node to the child nodes of all the stem branches. Unify and merge the child nodes of the same data protocol to obtain the merged twin structure tree of the production line, and sort all the child nodes in descending order based on the number of grandchild nodes connected to each child node. Establish corresponding marking slots at the bottom of each child node and grandchild node.
[0092] Traverse each child node in descending order, and add protocol tags to the child nodes of the corresponding child nodes. When traversing the corresponding child nodes, traverse the grandchild nodes of the corresponding child nodes synchronously, and compare the equipment characteristics of the grandchild nodes with the equipment characteristics of the equipment corresponding to the production line. If the judgment is consistent, add the equipment tag to the corresponding tag slot. After it is determined that all equipment tags correspond to the equipment corresponding to the production line, stop traversing, retain the traversed child nodes and parent nodes with protocol tags and equipment tags, and obtain the production line determination structure tree output to the control end.
[0093] If it is determined that after traversing all grandchild nodes of a child node is completed, all device tags do not correspond one-to-one with the devices corresponding to the production line, the present invention will traverse new child nodes and corresponding grandchild nodes again until it is determined that all device tags correspond to the devices corresponding to the production line or after traversing all child nodes and grandchild nodes, the production line determination structure tree is obtained and output to the control end.
[0094] If it is determined that there is a device corresponding to the production line but there is no corresponding device mark, the device corresponding to the production line is used as the device to be processed, and the grandchild node of the device to be processed and the child node with the most grandchild nodes are generated, and the grandchild node of the device to be processed is displayed and processed in a preset form. Through the above technical solution, the present invention can build a production line with the least protocol difference based on the existing equipment and existing protocols when establishing a new production line, so that most of the high-usage devices can communicate quickly without the need for additional data conversion, thereby improving production efficiency and the robustness of the entire system.
[0095] The present invention also provides a storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.
[0096] Among them, the storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, the storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the storage medium can also exist in a communication device as discrete components. The storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0097] The present invention also provides a program product, which includes an execution instruction, which is stored in a storage medium. At least one processor of a device can read the execution instruction from the storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.
[0098] In the above-mentioned terminal or server embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0099] 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. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for adapting a terminal to an industrial device, characterized in that: include: After determining that the first terminal has accessed the server, all first industrial devices to be associated are determined based on the identity tag of the first terminal, and a feedback interaction table and an interaction plug-in are generated and fed back to the first terminal as the first connection paths of all first industrial devices; The first terminal selects at least one first industrial device and / or a first connection path based on the feedback interaction table and the feedback interaction plug-in and feeds back to the server; The server extracts the data protocol corresponding to the first industrial device and / or the first connection path, and generates a protocol structure tree, wherein the first industrial device corresponds to at least one independent data protocol, and the first connection path corresponds to at least one group of data protocols; The server summarizes the extracted data protocols, packages them with the protocol structure tree, and sends them to the first terminal to adapt and integrate the first terminal.
2. The method for adapting a terminal to an industrial device according to claim 1, characterized in that: After determining that the first terminal has accessed the server, determining all first industrial devices to be associated based on the identity tag of the first terminal, and generating a feedback interaction table of first connection paths of all first industrial devices and feeding it back to the first terminal, includes: After determining that the first terminal accesses the server, extracting the identity tag of the first terminal, each terminal having a preset identity tag when logging in, each identity tag being associated with at least one first industrial device and at least one first connection path; Initializing a feedback interaction table, wherein the feedback interaction table has an initial device slot area and a path slot area; Obtain all first industrial equipment associated with the identity tag, establish corresponding sub-slots in the equipment slot area and fill in the equipment tag, obtain all first connection paths associated with the identity tag, establish corresponding path sub-slots in the path slot area and fill in the path tag, and obtain the filled feedback interaction table and feed it back to the first terminal.
3. The method for adapting a terminal to an industrial device according to claim 2, characterized in that: The method of obtaining all first industrial devices associated with the identity tag, establishing corresponding device sub-slots in the device slot area and filling in device tags, obtaining all first connection paths associated with the identity tag, establishing corresponding path sub-slots in the path slot area and filling in path tags, and obtaining a filled feedback interaction table and feeding it back to the first terminal includes: Generate a corresponding device serial number according to the order of each device sub-slot in the device slot area, and generate a corresponding path serial number according to the order of each path sub-slot in the path slot area; Extracting a device tag of each first industrial device in turn, and comparing the extracted device tag with the device tags of all path devices of each first connection path; If the comparison result is consistent, the corresponding path number is added after the device number of the device subslot to obtain a first number combination, and the corresponding device number is added after the path number of the path subslot to obtain a second number combination; The interaction plug-in is configured based on the first sequence number combination and the second sequence number combination, so that the first terminal interacts based on the feedback interaction table and the feedback interaction plug-in.
4. The method for processing terminal and industrial equipment adaptation according to claim 3, characterized in that: The interaction plug-in is configured based on the first sequence number combination and the second sequence number combination so that the first terminal interacts based on the feedback interaction table and the feedback interaction plug-in, including: The interactive plug-in obtains the first serial number quantity of the path serial number in the first serial number combination of each first industrial device, and sorts the path subslots in the path slot area in descending order based on the first serial number quantity; The interactive plug-in obtains the second sequence number quantity of the device sequence numbers in the second sequence number combination of each first connection path, and sorts the device subslots in the device slot area in descending order based on the second sequence number quantity.
5. The method for processing terminal and industrial equipment adaptation according to claim 4, characterized in that: The first terminal selects at least one first industrial device and / or a first connection path based on the feedback interaction table and the feedback interaction plug-in and feeds back to the server, including: The interactive plug-in interacts with the user to determine whether the path subslot is selected by default or by non-default, wherein the path subslot is selected by default based on the first sequence number combination, and the non-default selection is selected by non-default based on the first sequence number combination; If the feedback interaction plug-in determines that the user selects a device subslot based on the first terminal, and the device subslot corresponds to the first sequence number combination, the path subslot is determined based on the first sequence number combination and is highlighted in a first preset form, and the path subslot is selected by default or not selected by default according to the configuration of the interaction plug-in by the user; If the feedback interaction plug-in determines that the user selects a path subslot based on the first terminal, and the device subslot corresponds to the second sequence number combination, the device subslot is determined based on the second sequence number combination and is highlighted in a second preset form, and the device subslot is selected by default; The interactive plug-in reserves the selected device subslot and path subslot and then feeds back the selected device subslot to the server.
6. The method for adapting a terminal to an industrial device according to claim 1, characterized in that: The server extracts the data protocol corresponding to the first industrial device and / or the first connection path, and generates a protocol structure tree, wherein the first industrial device corresponds to at least one independent data protocol, and the first connection path corresponds to at least one group of data protocols, including: If the server determines that the first connection path is selected, then extracting a group of data protocols of the first connection path; If the server determines that another first connection path is selected, the server compares a data protocol of a group of the other first connection paths with the extracted data protocol, and retains the unextracted data protocol in the other first connection paths until the comparison of the data protocols of all the groups of the first connection paths is completed; sequentially comparing the independent data protocols of the first industrial equipment with the data protocols of the extracted group, and retaining the unextracted data protocols until the comparison of the independent data protocols of all the first industrial equipment is completed; A protocol structure tree is generated based on all the first industrial devices and / or the first connection paths and the retained extracted data protocols.
7. The method for processing terminal and industrial equipment adaptation according to claim 6, characterized in that: The generating of a protocol structure tree based on all first industrial devices and / or first connection paths and the retained and extracted data protocols comprises: Constructing a parent node corresponding to the identity tag of the first terminal; Sequentially obtain the retained extracted data protocols and construct child nodes corresponding to each data protocol, and connect each child node to the parent node; The first connection path is decomposed to obtain multiple first industrial devices, and a grandchild node corresponding to each first industrial device is established. The grandchild node is connected to the corresponding parent node according to the corresponding relationship between each first industrial device and the data protocol to generate a protocol structure tree.
8. The method for processing terminal and industrial equipment adaptation according to claim 7, characterized in that: The server aggregates the extracted data protocols and packages them with the protocol structure tree and sends them to the first terminal, and adapts and integrates the first terminal, including: The first terminal establishes a mapped protocol storage space based on the subnodes of the protocol structure tree so that each subnode has a corresponding protocol storage space; The first terminal stores the corresponding data protocol based on the correspondence between the child node and the protocol storage space, and the first terminal adapts and integrates the first industrial device according to the connection relationship between the grandchild nodes; The first terminal stores the corresponding data protocol based on the correspondence between the child node and the protocol storage space, and the first terminal adapts and integrates the first industrial device according to the connection relationship of the grandchild node, including: The first terminal sequentially calls the first industrial equipment corresponding to the grandchild nodes in the order of the grandchild nodes, and initializes the first data transmission interface of the first industrial equipment; The first data transmission interface is adapted based on the data protocol in the protocol storage space corresponding to the first industrial device, so that data transmission is performed between the first terminal and the first industrial device based on the first data transmission interface.
9. The method for processing terminal and industrial equipment adaptation according to claim 8, characterized in that: Also includes: Count the protocol structure tree of all associated identity tags; The first protocol ratio of the corresponding data protocol under each protocol structure tree is obtained according to the number of grandchild nodes connected to the child nodes of each protocol structure tree; According to the data transmission volume of the grandchild node connected to the child node of each protocol structure tree in a preset time, the second protocol proportion of the corresponding data protocol under each protocol structure tree is obtained; Based on the first protocol proportion and the second protocol proportion of each protocol structure tree under all protocol structure trees, the data penetration coefficient under the corresponding data protocol is obtained, and the second industrial equipment to be optimized is determined based on the data penetration coefficient.
10. The method for processing terminal and industrial equipment adaptation according to claim 9, characterized in that: The method of obtaining a data penetration coefficient under a corresponding data protocol based on the first protocol proportion and the second protocol proportion of each protocol structure tree under all protocol structure trees, and determining a second industrial equipment to be optimized based on the data penetration rate, comprises: The first protocol proportion is weighted based on the quantity weight to obtain a first sub-coefficient, and the second protocol proportion is weighted based on the data weight to obtain a second sub-coefficient; The first sub-coefficient and the second sub-coefficient are added to obtain a data permeability coefficient, the average of all data permeability coefficients is calculated to obtain a mean coefficient, the difference between the data permeability coefficient and the mean coefficient is calculated, and if the difference is less than or equal to a preset value, the corresponding data protocol is used as the data protocol to be optimized; The child nodes of the data protocol to be optimized in all protocol structure trees are determined, and the first industrial equipment of the grandchild node connected to the corresponding child node is determined as the second industrial equipment to be optimized.