Network optimization method and device of controller, electronic equipment, medium and product

The virtual controller obtains and generates information, solves the network delay problem caused by hardware bottlenecks, improves the controller's network optimization capabilities, and achieves more efficient industrial automation network processing.

CN120455290APending Publication Date: 2025-08-08PHOENIX CONTACT NANJING R&D ENG CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510533970.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, hardware-type controllers are subject to hardware bottlenecks in industrial automation scenarios, resulting in high network latency and unable to meet the minimum processing cycle requirements of industrial sites.

Method used

The communication device deploying the virtual controller obtains the configuration configuration data and the current network data packet of the target device, generates the first information and the second information, and sends it to the network system to achieve network optimization.

Benefits of technology

It improves the minimum processing cycle of the controller in various network forms, solves the network delay problem, and improves the real-timeness of the controller and the accuracy of network optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455290A_ABST
    Figure CN120455290A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network optimization method and device of a controller, electronic equipment, a medium and a product. The method comprises the steps that configuration data of target equipment or a current network data packet is acquired through communication equipment deployed with a virtual controller, and the communication equipment is an industrial personal computer or network equipment or a network terminal; generating first information according to the configuration data or the current network data packet; and sending the first information to a network system, so that the network system performs network optimization on the communication device and the target device according to the first information. According to the scheme, network optimization is carried out through the first information and the second information generated by the virtual controller which is not limited by hardware bottleneck in real time, the problem of influencing network delay can be solved in time, and therefore the minimum processing period of the controller in various network forms is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation technology, and in particular to a network optimization method, device, electronic equipment, medium and product for a controller. Background Art

[0002] In industrial automation scenarios, with the rapid development of intelligent manufacturing, control instructions can be sent remotely to industrial equipment through the network, and industrial equipment performs industrial tasks according to the control instructions, thus realizing industrial automation.

[0003] In related technologies, control instructions are sent to industrial equipment through a hardware-based controller to achieve industrial automation.

[0004] However, in modern industrial environments, the number of industrial devices has increased dramatically and data traffic has become increasingly complex. This method is limited by the hardware bottleneck of hardware-based controllers and has the problem of high network latency in sending control instructions, resulting in the controller's minimum processing cycle not meeting the actual requirements of the industrial site. Summary of the Invention

[0005] Embodiments of the present application provide a controller network optimization method, device, electronic device, medium, and product to improve the minimum processing cycle of the controller under various network forms.

[0006] In a first aspect, an embodiment of the present application provides a network optimization method for a controller, comprising: obtaining configuration data and current network data packets of a target device through a communication device that deploys a virtual controller, wherein the communication device is an industrial computer, a network device, or a network terminal; generating first information based on the configuration data; generating second information based on the current network data packet; and sending the first information and the second information to a network system so that the network system performs network optimization on the communication device and the target device based on the first information and the second information.

[0007] In one possible implementation, generating the second information based on the current network data packet includes: determining the historical moment when the communication device last sent data information to the network system; determining whether the current duration between the current moment and the historical moment is greater than or equal to a preset duration; if so, generating an alarm message based on the current network data packet, and determining the alarm message as the second information.

[0008] In a possible implementation, generating the first information according to the configuration data includes: determining a parsing tool for the virtual controller; and parsing the configuration data using the parsing tool to obtain the first information.

[0009] In one possible implementation, generating alarm information based on the current network data packet includes: decrypting the current network data packet through the network system to obtain current network data; determining whether the current network data includes connection timeout information; if so, performing network optimization on the current network data, and generating the alarm information based on the connection timeout information.

[0010] In one possible implementation, generating the alarm information based on the current network data includes: determining multiple indicator calculation methods, multiple weights, and performance thresholds; calculating and processing the current network data separately using the multiple indicator calculation methods to obtain multiple network performance values; performing weighted summation processing on the multiple network performance values according to the multiple weights to obtain a target performance value; if the target performance value is less than the performance threshold, generating the alarm information based on the multiple network performance values.

[0011] In one possible embodiment, sending the first information and the second information to the network system includes: sending the first information and the second information to the network system through the first interface of the communication device; or, sending the first information and the second information in the shared memory to the network system through the second interface of the industrial automation platform.

[0012] In one possible implementation, the method further includes: determining the current business type of the target device; determining the target priority of the target device based on the current business type; and sending the target priority to the network system so that the network system performs network optimization on the target device based on the target priority.

[0013] In second aspect, an embodiment of the present application provides a network optimization device for a controller, comprising: an acquisition module for acquiring configuration data and current network data packets of a target device through a communication device on which a virtual controller is deployed, wherein the communication device is an industrial computer, a network device, or a network terminal; a first generation module for generating first information based on the configuration data; a second generation module for generating second information based on the current network data packet; and a sending module for sending the first information and the second information to a network system, so that the network system performs network optimization on the communication device and the target device based on the first information and the second information.

[0014] In one possible implementation, the second generation module is specifically used to determine the historical moment when the communication device last sent data information to the network system; the second generation module is also specifically used to determine whether the current duration between the current moment and the historical moment is greater than or equal to a preset duration; the second generation module is also specifically used to, if so, generate an alarm message based on the current network data packet, and determine the alarm message as the second information.

[0015] In a possible implementation, the first generation module is specifically configured to determine a parsing tool for the virtual controller; the first generation module is further specifically configured to parse the configuration data using the parsing tool to obtain the first information.

[0016] In one possible embodiment, the device also includes: a processing module, which is used to decrypt the current network data packet through the network system to obtain current network data; the processing module is also used to determine whether the current network data includes connection timeout information; the processing module is also used to, if so, perform network optimization on the current network data and generate the alarm information based on the connection timeout information.

[0017] In one possible implementation, the processing module is specifically used to determine multiple indicator calculation methods, multiple weights, and performance thresholds; the processing module is also specifically used to calculate and process the current network data separately using the multiple indicator calculation methods to obtain multiple network performance values; the processing module is also specifically used to perform weighted summation processing on the multiple network performance values according to the multiple weights to obtain a target performance value; the processing module is also specifically used to generate the alarm information based on the multiple network performance values if the target performance value is less than the performance threshold.

[0018] In one possible embodiment, the device also includes: an execution module, used to send the first information and the second information to the network system through the first interface of the communication device; or, the execution module is also used to send the first information and the second information in the shared memory to the network system through the second interface of the industrial automation platform.

[0019] In one possible embodiment, the device also includes: a priority module for determining the current business type of the target device; the priority module is also used to determine the target priority of the target device based on the current business type; the priority module is also used to send the target priority to the network system so that the network system performs network optimization on the target device according to the target priority.

[0020] In a third aspect, an embodiment of the present application provides a network optimization device of a controller, comprising: a memory, a processor;

[0021] The memory stores computer-executable instructions;

[0022] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementation methods of the first aspect.

[0024] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0025] The network optimization method, device, electronic device, medium and product of the controller provided in the embodiment of the present application include: obtaining the configuration data and current network data packet of the target device through the communication device of the deployed virtual controller, wherein the communication device is an industrial computer, a network device, or a network terminal; generating first information according to the configuration data; generating second information according to the current network data packet; sending the first information and the second information to the network system so that the network system performs network optimization on the communication device and the target device according to the first information and the second information. The above scheme performs network optimization by using the first information and the second information generated in real time by the virtual controller that is not limited by the hardware bottleneck, which can promptly solve the problem affecting the network delay, thereby improving the minimum processing cycle of the controller under various network forms. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] Figure 1 A schematic diagram of an application scenario of a network optimization method for a controller provided in an embodiment of the present application;

[0028] Figure 2 A flowchart of a network optimization method for a controller provided in an embodiment of the present application;

[0029] Figure 3 A flowchart of a network optimization method for a controller provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram of generating alarm information provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of calculating target performance values provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of network-industry collaboration provided in an embodiment of the present application;

[0033] Figure 7 A schematic diagram of the structure of a network optimization device for a controller provided in an embodiment of the present application;

[0034] Figure 8 A schematic diagram of the structure of a network optimization device for a controller provided in an embodiment of the present application;

[0035] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0036] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0037] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0038] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0039] In addition, this application involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.), and the use of artificial intelligence technology for automated decision-making, and a technical solution for making decisions that have a significant impact on personal rights and interests based on the results of automated decision-making. The application provides users with corresponding operation entrances for users to choose to agree or reject the results of automated decision-making; if the user chooses to reject, the expert decision-making process will be entered.

[0040] It should be noted that the network optimization method, device, electronic equipment, medium and product of the controller of the present application can be used in the field of automation technology, and can also be used in any field other than automation. The application field of the network optimization method, device, electronic equipment, medium and product of the controller of the present application is not limited.

[0041] Figure 1 A schematic diagram of an application scenario of a network optimization method for a controller provided in an embodiment of the present application is given as an example in combination with the illustrated scenario: the controller sends instructions to the target device through the network to remotely control the target device to perform tasks.

[0042] Exemplarily, the target device may be an industrial device, such as an automatic guided vehicle, a sorting machine, a data acquisition device, a barcode scanner, or a palletizer.

[0043] Combined with the scenario example, the controller remotely sends control instructions to the target device, and the target device automatically performs the task corresponding to the control instruction. During this process, the user does not need to operate the target device on site, which can improve the efficiency of task completion.

[0044] In related technologies, controllers are hardware devices that establish a network connection with target devices via interfaces. However, hardware devices are subject to both interface and hardware limitations. The interfaces limit the amount of information transmitted, while the hardware limitations—the hardware controllers are traditional Layer 3 IP network devices—result in high network latency and, in turn, low real-time performance. This low real-time performance can lead to reduced device control accuracy, task execution failures, and security risks.

[0045] The controller network optimization method provided in this application is intended to solve the above technical problems in the prior art.

[0046] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0047] Figure 2A flow chart of a controller network optimization method provided in an embodiment of the present application, the method comprising the following steps:

[0048] S201. Obtain configuration data and current network data packets of a target device through a communication device deployed with a virtual controller, where the communication device is an industrial computer, a network device, or a network terminal.

[0049] For example, a virtual controller is a software-based control technology that emulates the functionality of a hardware controller by running control logic on a communication device. Compared to hardware controllers, virtual controllers leverage virtualization technology and cloud computing platforms to provide a more flexible, scalable, and lower-cost control solution.

[0050] For example, an industrial computer, acting as a host computer or master control device, is responsible for remotely managing and controlling the entire system. It can be used to generate control instructions, record production data, or perform data processing tasks. Network devices can include base stations and other devices. Network terminals can include routers, gateways, and other devices.

[0051] Optionally, the configuration data of the target device may include hardware parameters or software parameters, such as status information (online / offline, fault status, etc.) of the target device, topology information (network connection relationship, node distribution, etc.), or configuration information (subnet mask, gateway address, etc.). The current network data packet is the data packet currently passing through the communication device.

[0052] Optionally, the network to which the communication device and the target device are currently connected may be a 4G network, a 5G network, etc., which is not limited in this application.

[0053] S202: Generate first information according to configuration data.

[0054] Exemplarily, the configuration data of the target device reflects configuration-related parameters of the target device.

[0055] In combination with the scenario example, the real-time device status of the target device can be reflected by generating the first information. By analyzing the real-time device status, a real-time optimization strategy can be determined, thereby optimizing the network in a timely manner to reduce network latency.

[0056] S203: Generate second information according to the current network data packet.

[0057] Exemplarily, network data packets reflect current network quality (eg, network load, network packet loss rate, etc.).

[0058] Combined with the scenario example, the generated second information can reflect the real-time network status of the target device. By analyzing the real-time network status, a real-time optimization strategy can be determined, thereby optimizing the network in a timely manner to reduce network latency.

[0059] S204: Send the first information and the second information to the network system, so that the network system performs network optimization on the communication device and the target device according to the first information and the second information.

[0060] For example, network-business collaboration is achieved through target devices and network systems. Network-business collaboration refers to establishing a close collaborative relationship between the network system and the business system, meeting business needs through the support of network technology, and driving network optimization and resource allocation based on business needs. Specifically, the business system in this application is the target device.

[0061] In this scenario example, the network system is responsible for tasks such as data transmission, communication connections, network resource management, bandwidth allocation, latency control, and security assurance. Communication devices are used to control target devices to achieve specific tasks. The communication devices provide real-time feedback of first and second information to the network system, which dynamically adjusts network parameters based on the real-time feedback of the first and second information to achieve real-time network optimization.

[0062] Based on the above implementation methods, the network quality of the connection between the communication device and the target device is ensured through real-time optimization of the network system, thereby improving the real-time performance of the communication device control.

[0063] The controller network optimization method provided in an embodiment of the present application obtains configuration data and current network data packets of a target device by deploying a communication device of a virtual controller, where the communication device is an industrial computer, a network device, or a network terminal; generates first information based on the configuration data; generates second information based on the current network data packet; and sends the first information and the second information to a network system, so that the network system optimizes the communication device and the target device based on the first information and the second information. The above scheme, by performing network optimization using the first information and the second information generated in real time by a virtual controller that is not limited by hardware bottlenecks, can promptly resolve issues that affect network latency, thereby improving the minimum processing cycle of the controller under various network configurations.

[0064] Based on any of the above embodiments, Figure 3 , the detailed process of controller network optimization is explained.

[0065] Figure 3 This is a flow chart of a controller network optimization method provided in an embodiment of the present application. Figure 3 As shown, the method includes:

[0066] S301. Obtain configuration data and current network data packets of a target device through a communication device deployed with a virtual controller, where the communication device is an industrial computer, a network device, or a network terminal.

[0067] It should be noted that the execution process of S301 refers to S201 and will not be repeated here.

[0068] S302: Determine the historical moment when the communication device last sent data information to the network system.

[0069] Among them, data information can be sent when the network between the communication device and the network system is normal. Whether the data information can be sent normally can be used to verify whether there is any abnormality in the network.

[0070] Exemplarily, the historical moment is the moment when the communication device last sent data information to the network system.

[0071] S303: Determine whether the current duration between the current moment and the historical moment is greater than or equal to a preset duration.

[0072] Exemplarily, the preset duration is used to determine whether the interval duration for sending data information reaches a threshold.

[0073] S304: If yes, generate alarm information according to the current network data packet, and determine the alarm information as the second information.

[0074] Among them, the alarm information is real-time alarm information.

[0075] In a feasible implementation, the first information may be generated according to the configuration data by the following method: determining a parsing tool for the virtual controller; and parsing the configuration data by the parsing tool to obtain the first information.

[0076] Optionally, the virtual controller has multiple built-in parsing tools, each of which is targeted at a specific type of configuration data (such as JSON, XML, binary format, etc.).

[0077] Optionally, the appropriate parsing tool can be automatically matched based on the format and content of the configuration data.

[0078] For example, during the parsing process, the parsing tool reads the configuration data and extracts key fields (such as device ID, IP address, protocol type, hardware parameters, etc.). The extracted data is formatted to ensure it conforms to the standard format of the target configuration information. During processing, if the configuration data contains redundant information or invalid fields, the parsing tool will filter them out. If certain fields are missing or incomplete, the parsing tool may attempt to complete them from other sources or mark them as abnormal.

[0079] Exemplarily, after parsing and processing, the generated first information is a structured data packet containing the latest configuration status of the communication device. The first information can be directly used for network system optimization and configuration synchronization.

[0080] In this feasible implementation, the use of dedicated parsing tools can quickly and accurately extract key information from configuration data, avoiding the inefficiency and errors of manual analysis, thereby improving the accuracy of network optimization.

[0081] A feasible implementation method can generate alarm information based on the current network data packet by the following method: decrypt the current network data packet through the network system to obtain the current network data; determine whether the current network data includes connection timeout information; if so, optimize the current network data and generate alarm information based on the connection timeout information.

[0082] For example, in order to improve the security of the network, the network data packets have been encrypted, and the decryption process is used to ensure that the content of the network data packets can be correctly parsed and analyzed.

[0083] Optionally, decryption is performed using a preset encryption algorithm, including but not limited to: AES, RSA, etc.

[0084] Exemplarily, the connection timeout information is determined according to the time interval between two consecutive messages.

[0085] Combined with the scenario example, if there is connection timeout information in the current network data, the current network data will be intercepted to prevent the current network data from affecting the system operation. At the same time, an alarm message will be generated based on the connection timeout information to instruct the network system to quickly locate the abnormality and repair the abnormality in time.

[0086] Next, combine Figure 4 Describes the generation of alarm information.

[0087] Figure 4 This is a schematic diagram of generating alarm information provided by an embodiment of the present application. Figure 4 As shown, the current network data packet is decrypted by the encryption algorithm in the communication device to obtain the current network data in the current network data packet. Whether there is connection timeout information in the current network data is detected. If there is connection timeout information, the connection timeout information is intercepted and an alarm information is generated.

[0088] Optionally, if the current network data does not include connection timeout information, current network status information is generated based on the current network data.

[0089] In this scenario example, if the current network data does not include connection timeout information, indicating that no connection timeout exception has occurred, only current network status information is generated to represent the current network status, without requiring alarm processing. Current network status information is generated based on current network data to enable the network system to promptly understand the network's operating status and optimize the network as needed.

[0090] In this feasible implementation, not only is an alarm message generated when a connection timeout message is detected, but the current network status information can also be generated for monitoring under normal circumstances. This flexibility allows the network system to dynamically adjust the optimization strategy according to actual conditions to improve the accuracy of network optimization.

[0091] A feasible implementation method can generate alarm information based on current network data through the following method: determine multiple indicator calculation methods, multiple weights, and performance thresholds; calculate and process the current network data separately using multiple indicator calculation methods to obtain multiple network performance values; perform weighted summation processing on the multiple network performance values based on multiple weights to obtain a target performance value; if the target performance value is less than the performance threshold, generate alarm information based on the multiple network performance values.

[0092] Optional indicators include but are not limited to: packet loss rate, delay, jitter, bandwidth utilization, etc.

[0093] Optionally, a weight of each indicator is determined based on the degree of impact of each indicator on network quality.

[0094] Next, combine Figure 5 The calculation of the target performance value is explained.

[0095] Figure 5 This is a schematic diagram of the calculation target performance value provided in the embodiment of the present application. Figure 5 As shown, different indicator calculation methods are used to calculate the current network data and obtain the network performance value corresponding to each indicator. Each network performance value corresponds to an indicator dimension. Based on the weight corresponding to each indicator, multiple network performance values are weighted and summed to obtain the target performance value.

[0096] For example, the weight reflects the degree of influence of each indicator on the network quality, and the target performance value combines the network performance value of each indicator to reflect the overall network quality.

[0097] Combined with the scenario example, if the target performance value is less than the performance threshold, it means that the overall network quality does not meet the preset requirements, and an alarm message is generated.

[0098] Optionally, multiple network performance values are classified in the alarm information so that the network system can perform targeted optimization of the network from multiple dimensions according to the multiple network performance values, thereby improving the accuracy of network optimization.

[0099] In this feasible implementation, the network status can be comprehensively evaluated through indicators in multiple dimensions, thereby improving the accuracy of the evaluation.

[0100] S305: Send the first information and the second information to the network system through the first interface of the communication device.

[0101] Among them, the second information is warning information.

[0102] Exemplarily, after the communication device generates the first information and the second information, directly sending the first information and the second information through the first interface can reduce intermediate links and ensure that the first information and the second information can quickly reach the network system.

[0103] S306: Send the first information and the second information in the shared memory to the network system through the second interface of the industrial automation platform.

[0104] For example, the industrial automation platform may use a shared memory to store and transmit data. In this case, the first information and the second information are first written into the shared memory and then sent to the network system via the second interface.

[0105] Exemplarily, when using shared memory, the first information and the second information are directly stored in a common memory area, and all participating processes can directly access this memory without performing additional data copy operations.

[0106] For example, the communication device transmits the target configuration information to the network system via UDP communication, or the communication device transmits the target configuration information to the network system based on the OPC UA protocol.

[0107] Combined with the scenario example, the use of shared memory can enable multiple subsystems to directly read and write the first information and the second information without the need for data transmission through an intermediate layer, thereby achieving fast response.

[0108] In a feasible implementation method, the network optimization method of the controller may also include: determining the current business type of the target device; determining the target priority of the target device based on the current business type; and sending the target priority to the network system so that the network system performs network optimization on the target device based on the target priority.

[0109] For example, different priorities are assigned to different types of services to ensure that critical tasks have sufficient network resources.

[0110] Optionally, priority rules for different service types are pre-set. According to the current service type, the corresponding priority value is matched to obtain the target priority.

[0111] Exemplarily, the network system adjusts resource configuration according to the received priority, allocating more network resources to devices with higher priority.

[0112] Next, combine Figure 6 Explain network industry collaboration.

[0113] Figure 6 This is a schematic diagram of network collaboration provided by the embodiment of this application. Figure 6 As shown, a communication device, as a business system, obtains configuration data or a network data packet. The communication device generates first information based on the configuration data or the network data packet. The communication device sends the first information to a network device. The network device allocates network resources to the communication device based on the first information, thereby achieving network-business collaboration.

[0114] In this feasible implementation, by assigning higher priorities to critical services, we ensure that these services receive sufficient resources even in situations of network congestion or limited resources. High-priority services can enjoy lower latency and less packet loss, improving the reliability and stability of the overall system.

[0115] Figure 7 This is a schematic diagram of the structure of a network optimization device for a controller provided in an embodiment of the present application. Figure 7 As shown, the network optimization device 70 of the controller may include: an acquisition module 71, a first generation module 72, a second generation module 73, and a sending module 74, wherein:

[0116] The acquisition module 71 is used to acquire the configuration data and current network data packets of the target device through the communication device deployed with the virtual controller, where the communication device is an industrial computer, a network device, or a network terminal.

[0117] The first generating module 72 is configured to generate first information according to the configuration data.

[0118] The second generating module 73 is configured to generate second information according to the current network data packet.

[0119] The sending module 74 is configured to send the first information and the second information to the network system, so that the network system performs network optimization on the communication device and the target device according to the first information and the second information.

[0120] Optionally, the acquisition module 71 may execute Figure 2 S201 in the embodiment.

[0121] Optionally, the first generating module 72 may execute Figure 2 S202 in the embodiment.

[0122] Optionally, the second generation module 73 may execute Figure 2 S203 in the embodiment.

[0123] Optionally, the sending module 74 may execute Figure 2 S204 in the embodiment.

[0124] It should be noted that the network optimization device of the controller shown in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0125] In a possible implementation, the first generating module 72 is specifically configured to:

[0126] Determine the analytical tools for virtual controllers;

[0127] The configuration data is parsed by a parsing tool to obtain first information.

[0128] In a possible implementation, the second generating module 73 is specifically configured to:

[0129] Determine the historical moment when the communication device last sent data information to the network system;

[0130] Determine whether the current duration between the current moment and the historical moment is greater than or equal to the preset duration;

[0131] If so, alarm information is generated according to the current network data packet, and the alarm information is determined as the second information.

[0132] Figure 8 This is a schematic diagram of the structure of a network optimization device for a controller provided in an embodiment of the present application. Figure 7 Based on the embodiment shown, Figure 8 As shown, the network optimization device 80 of the controller further includes: a processing module 75, an execution module 76 and a priority module 77, wherein:

[0133] The processing module 75 is configured to:

[0134] Decrypt the current network data packet through the network system to obtain the current network data;

[0135] Determine whether the current network data includes connection timeout information;

[0136] If so, the current network data is optimized and an alarm message is generated according to the connection timeout information.

[0137] In a possible implementation, the processing module 75 is specifically configured to:

[0138] Determine multiple indicator calculation methods, multiple weights, and performance thresholds;

[0139] Calculate and process the current network data separately through multiple indicator calculation methods to obtain multiple network performance values;

[0140] Perform weighted summation on multiple network performance values according to multiple weights to obtain a target performance value;

[0141] If the target performance value is less than the performance threshold, an alarm message is generated based on multiple network performance values.

[0142] The execution module 76 is configured to:

[0143] Sending the first information and the second information to the network system through the first interface of the communication device; or,

[0144] The first information and the second information in the shared memory are sent to the network system through the second interface of the industrial automation platform.

[0145] Priority module 77, for:

[0146] Determine the current business type of the target device;

[0147] Determine the target priority of the target device based on the current business type;

[0148] The target priority is sent to the network system so that the network system performs network optimization on the target device according to the target priority.

[0149] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 9 As shown, the electronic device includes:

[0150] The electronic device includes a processor 291 and a memory 292; a communication interface 293, and a bus 294. The processor 291, memory 292, and communication interface 293 can communicate with each other via bus 294. Communication interface 293 can be used for information transmission. The processor 291 can invoke logic instructions in memory 292 to execute the methods of the above embodiments.

[0151] In addition, the logic instructions in the memory 292 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0152] Memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. Processor 291 executes the software programs, instructions, and modules stored in memory 292 to perform functional applications and data processing, thereby implementing the methods in the above-mentioned method embodiments.

[0153] Memory 292 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Memory 292 may also include high-speed random access memory and non-volatile memory.

[0154] An embodiment of the present application provides a non-transitory computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method of the aforementioned embodiment.

[0155] An embodiment of the present application provides a computer program product, including a computer program, which implements the method of the aforementioned embodiment when executed by a processor.

[0156] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.

[0157] It should be further noted that, although the various steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps may be performed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution order of these sub-steps or stages is not necessarily to be performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0158] It should be understood that the above-described device embodiments are merely illustrative, and the device of the present application may also be implemented in other ways. For example, the division of units / modules in the above-described embodiments is merely a logical functional division, and actual implementations may employ other division methods. For example, multiple units, modules, or components may be combined or integrated into another system, or some features may be omitted or not implemented.

[0159] In addition, unless otherwise specified, the functional units / modules in the various embodiments of the present application may be integrated into a single unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The aforementioned integrated units / modules may be implemented in the form of hardware or software program modules.

[0160] If the integrated unit / module is implemented in hardware, the hardware may be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. The processor may be any appropriate hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC. The storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as resistive random access memory (RRAM), dynamic random access memory (DRAM), static random access memory (SRAM), enhanced dynamic random access memory (EDRAM), high-bandwidth memory (HBM), and hybrid memory cube (HMC).

[0161] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0162] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a particular embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined in any way. To keep the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0163] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0164] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A controller network optimization method, characterized in that: include: Obtaining configuration data and current network data packets of a target device through a communication device deployed with a virtual controller, wherein the communication device is an industrial computer, a network device, or a network terminal; generating first information according to the configuration data; Generate second information according to the current network data packet; The first information and the second information are sent to a network system, so that the network system performs network optimization on the communication device and the target device according to the first information and the second information.

2. The method according to claim 1, characterized in that Generating second information according to the current network data packet includes: Determining the historical moment when the communication device last sent data information to the network system; Determine whether the current duration between the current moment and the historical moment is greater than or equal to a preset duration; If so, generate alarm information according to the current network data packet, and determine the alarm information as the second information.

3. The method according to claim 2, characterized in that Generating first information according to the configuration data includes: determining a parsing tool for the virtual controller; The configuration data is parsed by the parsing tool to obtain the first information.

4. The method according to claim 2, characterized in that Generating alarm information according to the current network data packet includes: Decrypting the current network data packet through the network system to obtain current network data; Determining whether the current network data includes connection timeout information; If so, network optimization is performed on the current network data, and the alarm information is generated according to the connection timeout information.

5. The method according to claim 4, characterized in that Generating the alarm information according to the current network data includes: Determine multiple indicator calculation methods, multiple weights, and performance thresholds; Calculate and process the current network data respectively using the multiple indicator calculation methods to obtain multiple network performance values; Performing weighted summation processing on the multiple network performance values according to the multiple weights to obtain a target performance value; If the target performance value is less than the performance threshold, the alarm information is generated according to the multiple network performance values.

6. The method according to claim 4 or 5, characterized in that Sending the first information and the second information to the network system includes: Sending the first information and the second information to the network system through the first interface of the communication device; or, The first information and the second information in the shared memory are sent to the network system through the second interface of the industrial automation platform.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Determining a current service type of the target device; determining a target priority of the target device according to the current service type; The target priority is sent to the network system, so that the network system performs network optimization on the target device according to the target priority.

8. A network optimization device for a controller, characterized in that: include: An acquisition module is used to acquire the configuration data and current network data packets of the target device through a communication device deployed with a virtual controller, wherein the communication device is an industrial computer, a network device, or a network terminal; A first generating module, configured to generate first information according to the configuration data; A second generating module, configured to generate second information according to the current network data packet; The sending module is used to send the first information and the second information to the network system, so that the network system performs network optimization on the communication device and the target device according to the first information and the second information.

9. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when executed by a processor.